query
stringlengths
7
5.25k
document
stringlengths
15
1.06M
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Display a listing of the resource.
public function index() { $categories = Category::all(); $optionGroups = OptionGroup::all(); $subcategories = (new Category)->getSubcategories(); $orders = Order::limit(15)->orderBy('created_at', 'desc')->get(); if (request()->wantsJson()) { return response($orders, 200); } return view( 'admin.restaurantindex', compact('optionGroups', 'categories', 'subcategories') ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Display the specified resource.
public function show() { $orders = new Order(); $yearlyTotal = $orders->yearlyTotal(); $totalOrders = $orders->totalOrders(); $taxcollection = $orders->taxCollection(); $totalOrdersYearBefore = $orders->totalOrdersYearBefore(); $taxcollectionYearBefore = $orders->taxCollectionYearBefore(); $averageOrder = $orders->averageOrder(); return view( 'admin.panel', compact( 'yearlyTotal', 'totalOrders', 'taxcollection', 'totalOrdersYearBefore', 'taxcollectionYearBefore', 'averageOrder' ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245...
0.0
-1
Register any application services.
public function register() { // Service $this->app->bind('UserService', UserService::class); // Repository $this->app->bind(UserRepositoryInterface::class, UserRepository::class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register()\n {\n $this->registerServices();\n }", "public function register()\n {\n $this->registerAssets();\n $this->registerServices();\n }", "public function register()\n\t{\n\n $this->registerUserService();\n $this->registerCountryService();\n ...
[ "0.7879658", "0.7600202", "0.74930716", "0.73852855", "0.736794", "0.7306089", "0.7291359", "0.72896826", "0.72802424", "0.7268026", "0.7267702", "0.72658145", "0.7249053", "0.72171587", "0.7208486", "0.7198799", "0.7196415", "0.719478", "0.7176513", "0.7176227", "0.7164647",...
0.0
-1
Bootstrap any application services.
public function boot() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function bootstrap(): void\n {\n if (! $this->app->hasBeenBootstrapped()) {\n $this->app->bootstrapWith($this->bootstrappers());\n }\n\n $this->app->loadDeferredProviders();\n }", "public function boot()\n {\n // Boot here application\n }", "public func...
[ "0.7344842", "0.7212776", "0.7207748", "0.7123287", "0.7109729", "0.70822036", "0.7076881", "0.70718396", "0.7051853", "0.7025475", "0.7011949", "0.70043486", "0.6955807", "0.69322443", "0.69319373", "0.69272774", "0.6911386", "0.69069713", "0.6898877", "0.6898432", "0.689659...
0.0
-1
Run the database seeds.
public function run() { foreach (range(1, 200) as $value) { Users::create(['user_nickname' => strlen(10), 'user_telephone' => '1828019' . rand(1000, 9999), 'user_time' => $_SERVER['REQUEST_TIME'], 'user_password' => encrypt('admin')]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n fact...
[ "0.8013876", "0.79804534", "0.7976992", "0.79542726", "0.79511505", "0.7949612", "0.794459", "0.7942486", "0.7938189", "0.79368967", "0.79337025", "0.78924936", "0.78811055", "0.78790957", "0.78787595", "0.787547", "0.7871811", "0.78701615", "0.7851422", "0.7850352", "0.78414...
0.0
-1
Template file used via Ajax
function sanitize($arg) { if (is_array($arg)) { return array_map('sanitize', $arg); } return htmlentities($arg, ENT_QUOTES, 'UTF-8'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function renderTemplate();", "private function renderTemplate(){\n\t\trequire($this->TemplateFile);\n\t}", "function render($file='') {\n\tif(isset($_REQUEST['ajax'])) {\n\t\tprint '{\"success\":\"Done\",\"error\":false}';\n\t\treturn;\n\t}\n\n\t//Otherwise, render it.\n\t$GLOBALS['template']->render($f...
[ "0.6876186", "0.68158495", "0.6768764", "0.67432666", "0.67408407", "0.67408407", "0.6723754", "0.6639431", "0.6522823", "0.6522729", "0.6522729", "0.6522729", "0.6508507", "0.6493109", "0.64623487", "0.6429008", "0.64194155", "0.63971514", "0.6393888", "0.6393888", "0.639388...
0.0
-1
Tests that a user receives the right permissions for group nodes.
public function testPermissions() { $handler = $this->entityManager->getAccessControlHandler('media'); // Test anonymous permissions. $view = $handler->access($this->mediaEntity1, 'view', $this->anonymous, TRUE); $update = $handler->access($this->mediaEntity1, 'update', $this->anonymous, TRUE); $delete = $handler->access($this->mediaEntity1, 'delete', $this->anonymous, TRUE); $this->assertTrue($view instanceof AccessResultAllowed, '1 Anonymous should be able to view media A.'); $this->assertTrue($update instanceof AccessResultNeutral, '2 Anonymous should be able to update media A depending on "user.permissions".'); $this->assertTrue($delete instanceof AccessResultNeutral, '3 Anonymous should be able to delete media A depending on "user.permissions".'); // Test as member of group A1. $this->groupA1->addMember($this->account); $this->clearCaches(); $view = $handler->access($this->mediaEntity1, 'view', $this->account, TRUE); $update = $handler->access($this->mediaEntity1, 'update', $this->account, TRUE); $delete = $handler->access($this->mediaEntity1, 'delete', $this->account, TRUE); $this->assertTrue($view instanceof AccessResultAllowed, '4 Member should be able to view media A.'); $this->assertTrue($update instanceof AccessResultAllowed, '5 Member should be able to update media A.'); $this->assertTrue($delete instanceof AccessResultAllowed, '6 Member should be able to delete media A.'); // Test outsider permissions. $view = $handler->access($this->mediaEntity2, 'view', $this->account, TRUE); $update = $handler->access($this->mediaEntity2, 'update', $this->account, TRUE); $delete = $handler->access($this->mediaEntity2, 'delete', $this->account, TRUE); $this->assertTrue($view instanceof AccessResultAllowed, '7 Outsider should be able to view media A.'); $this->assertTrue($update instanceof AccessResultNeutral, '8 Outsider should be able to update media A depending on "user.permissions"'); $this->assertTrue($delete instanceof AccessResultNeutral, '9 Outsider should be able to delete media A depending on "user.permissions"'); // Test as author. $view = $handler->access($this->mediaEntity3, 'view', $this->account, TRUE); $update = $handler->access($this->mediaEntity3, 'update', $this->account, TRUE); $delete = $handler->access($this->mediaEntity3, 'delete', $this->account, TRUE); $this->assertTrue($view instanceof AccessResultAllowed, '10 Author should be able to view media A.'); $this->assertTrue($update instanceof AccessResultAllowed, '11 Author should be able to update media A.'); $this->assertTrue($delete instanceof AccessResultAllowed, '12 Author should be able to delete media A.'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAccessModulePermission() {\n $this->drupalLogin($this->adminUser);\n\n // When Node is not installed, the node-permissions page is not available.\n $this->drupalGet('admin/people/permissions/module/node');\n $this->assertSession()->statusCodeEquals(403);\n\n // Modules that do no...
[ "0.6800941", "0.64626575", "0.6456137", "0.63845026", "0.6374069", "0.63727885", "0.63681656", "0.632655", "0.6325659", "0.6280718", "0.62506217", "0.6249304", "0.62220126", "0.6208894", "0.61564285", "0.6132432", "0.61323667", "0.6113838", "0.6082301", "0.60804015", "0.60765...
0.5682366
68
Grant permissions to a user role.
protected function grantPermissions(RoleInterface $role, array $permissions) { foreach ($permissions as $permission) { $role->grantPermission($permission); } $role->trustData()->save(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function grantPermissionToUserAction()\n {\n $data['email'] = $this->params()->fromPost('email','');\n $data['featureName'] = $this->params()->fromPost('featureName','');\n \n $user = $this->entityManager->getRepository(Usersso::class)->findOneByEmail($data['email']);\n ...
[ "0.6846279", "0.66425914", "0.6507504", "0.6435825", "0.6371213", "0.6353974", "0.632731", "0.6325993", "0.6303463", "0.614327", "0.6086499", "0.6079334", "0.6072519", "0.6056568", "0.6009098", "0.5989631", "0.5989022", "0.5970255", "0.59632045", "0.59330463", "0.5932881", ...
0.65905255
2
Get the document that owns the document pic.
public function document() { return $this->belongsTo('App\Document'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOwnerDocument()\n {\n return $this->document;\n }", "public function getOwnerPdfDocument();", "public function getOwnerPdfDocument() {}", "public function getOwnerPdfDocument() {}", "public function getOwnerPdfDocument() {}", "public function getOwnerPdfDocument() {}", "...
[ "0.73866093", "0.708827", "0.7010102", "0.7010102", "0.70094514", "0.70094514", "0.6422977", "0.62486047", "0.6131506", "0.6126206", "0.6054657", "0.6054657", "0.60396755", "0.60393167", "0.60393167", "0.6016094", "0.6014086", "0.58988655", "0.58805126", "0.58710754", "0.5827...
0.0
-1
Get the pic that owns the document pic.
public function pic() { return $this->belongsTo('App\Pic'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPicture()\n\t{\n\t\treturn $this->picture;\n\t}", "public function getAbsolutePicture();", "public function getPicture()\n {\n return $this->picture;\n }", "public function getPicture()\n {\n return $this->picture;\n }", "public function getPicture() {\n ...
[ "0.6765548", "0.6737297", "0.6707673", "0.6707673", "0.6661579", "0.652561", "0.6456228", "0.6456228", "0.6437082", "0.6389591", "0.63231903", "0.6322596", "0.6322596", "0.6322596", "0.6322596", "0.6322596", "0.63184077", "0.628055", "0.6223906", "0.62201834", "0.62138915", ...
0.0
-1
Return the default loader object.
public function getLoader(ObjectManager $manager, $queryBuilder, $class) { return new EntityChoice\ArbitrarySetLoader( $queryBuilder ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_loader() {\n\t\treturn $this->loader;\n\t}", "public function get_loader() {\n\t\treturn $this->loader;\n\t}", "public function get_loader() {\n\t\treturn $this->loader;\n\t}", "public function get_loader() {\n\t\treturn $this->loader;\n\t}", "public function get_loader() {\n\t\treturn ...
[ "0.77556056", "0.77556056", "0.77556056", "0.77556056", "0.77556056", "0.77556056", "0.77556056", "0.77556056", "0.77556056", "0.7751041", "0.7749072", "0.7717993", "0.7593732", "0.75734484", "0.7508862", "0.7413813", "0.7358335", "0.7299955", "0.72876936", "0.7237762", "0.71...
0.0
-1
updateFriendList.php Inserts or deletes a user from the user's friend list. Then redirects user to either search page or profile page. Date: 11/30/14 Created by Nishi
function connectSQL(){ //MySQL default credentials $servername = "localhost"; $username = "root"; $password = ""; // Create connection $conn = new mysqli($servername, $username, $password); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } echo "Connected successfully"; return $conn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateFriends($user) {\n if ($user==null)\n return;\n $this->load->model('facebook_model');\n $facebook_friends = $this->facebook_model->getFriends();\n if (count($facebook_friends)==0)\n return;\n // filter users in DB\n $friends = $this->ge...
[ "0.6385278", "0.627395", "0.6115488", "0.6075004", "0.607336", "0.59694046", "0.5966418", "0.5937028", "0.59320205", "0.5930388", "0.5854676", "0.5848173", "0.5801219", "0.57924646", "0.5789029", "0.5776227", "0.5754267", "0.5721999", "0.5718345", "0.57091075", "0.57048243", ...
0.0
-1
Create a new bug
public function create() { $this->operationsModel->create($_POST); $this->response('',200,'Success'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return view('bug.create');\n }", "public function actionCreate()\n {\n $model = new BugReport();\n $uploadForm = new UploadForm();\n $model->reporter_id = Yii::$app->user->id;\n $model->status = '1';\n\n if ($model->load(Yii::$app-...
[ "0.6431337", "0.6357885", "0.6187069", "0.59068686", "0.5887191", "0.5845717", "0.5677965", "0.5677239", "0.56608456", "0.56126624", "0.55801684", "0.55487925", "0.5529405", "0.5526376", "0.5491195", "0.54613173", "0.5441347", "0.54365516", "0.54258657", "0.5399503", "0.53903...
0.0
-1
Return the bug details for edit popup
public function details() { try { $details = $this->operationsModel->details($_POST['bugId']); if($details) { $this->response($details,200,'Success'); } else { $this->response('',204,'Error'); } } catch(Exception $ex) { $this->response('',500,'Error'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Bug $bug)\n {\n //\n }", "public function edit(bugget $bugget)\n {\n //\n }", "public function edit($bug)\n {\n try {\n $bug = Bug::findOrFail($bug);\n } catch (ModelNotFoundException $e) {\n return redirect()->route('bug.lis...
[ "0.6919226", "0.67677397", "0.625697", "0.6183319", "0.6159619", "0.6142164", "0.608063", "0.60436064", "0.5992308", "0.595144", "0.5945361", "0.5807392", "0.57942796", "0.5749806", "0.5730146", "0.5653799", "0.5650548", "0.56180835", "0.56001145", "0.5593354", "0.55507857", ...
0.6501748
2
Get value for given key or fallback to default.
public function get(string $key, $default = null);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get(string $key, mixed $default = null): mixed;", "public function get(string $key, mixed $default = null): mixed;", "public function getValueOrDefault($key) {\n return $this->values->get($key) !== NULL\n ? $this->values->get($key)\n : $this->values->get('Default'.$key);\n ...
[ "0.80616677", "0.80616677", "0.802364", "0.80105823", "0.7990101", "0.7983538", "0.7841551", "0.784092", "0.7811634", "0.776442", "0.7735907", "0.7730122", "0.77077806", "0.768114", "0.7656249", "0.75836086", "0.7580555", "0.75744015", "0.75744015", "0.75744015", "0.75744015"...
0.7664975
20
Constructor This is the constructor for the Spaz_Urltitle object
public function __construct($url) { $this->server = new Memcache(); $this->server->addServer('localhost'); $this->url = $url; $this->url_hash = md5($url); $this->url_key = 'urltitle_'.$this->url_hash; $this->curl = curl_init(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct($title) {\n $this->title = $title;\n }", "function __construct($title = \"Default\") {\n\t\t$this->_title = $title;\n\t}", "protected function __construct($title) {\n $this->title = $title;\n }", "public function __construct($url, $title){\r\r\n\t\tparent::__construct(...
[ "0.7305493", "0.72863674", "0.7228181", "0.72196484", "0.7215191", "0.7129741", "0.71046036", "0.710126", "0.7065462", "0.7060845", "0.70362455", "0.70204663", "0.6958482", "0.69535226", "0.69064236", "0.6890854", "0.6868172", "0.6813723", "0.6758345", "0.67227846", "0.671863...
0.62839997
49
Get URL info This method fetches info about the URL, like the HTTP response code and content type.
public function get() { $res = $this->server->get($this->url_key); if ($res === false) { curl_setopt($this->curl, CURLOPT_URL, $this->url); curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($this->curl, CURLOPT_FILETIME, true); curl_setopt($this->curl, CURLOPT_AUTOREFERER, true); curl_setopt($this->curl, CURLOPT_FOLLOWLOCATION, true); curl_setopt($this->curl, CURLOPT_MAXREDIRS, 6); curl_setopt($this->curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10"); $html = curl_exec($this->curl); // print_r(htmlentities($body)); curl_close($this->curl); $tidy_config = array( 'clean' => true, 'output-html'=>true, 'wrap' => 78, 'quiet'=>1 ); $tidy = new tidy; $tidy->parseString($html, $tidy_config); $tidy->cleanRepair(); $html = $tidy->html()->value; // Buffer DOM errors rather than emitting them as warnings $oldSetting = libxml_use_internal_errors(true); $dom = new DOMDocument(); $dom->loadHTML($html); $xpath = new DOMXPath($dom); $titles = $xpath->evaluate('//*[name()="title"]'); $title = $titles->item(0)->nodeValue; // Clear any existing errors from previous operations libxml_clear_errors(); // Revert error buffering to its previous setting libxml_use_internal_errors($oldSetting); $res = array('title'=>$title); $res = json_encode($res); $this->server->add($this->url_key, $res, MEMCACHE_COMPRESSED, self::CACHE_LIMIT); } return json_decode($res, TRUE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getInfo($url);", "public function getInfo()\n {\n return curl_getinfo($this->_handle);\n }", "public function getInfo()\n\t{\n\t\treturn curl_getinfo($this->s);\n\t}", "public function url() {\n return $this->info['url'];\n }", "public function getInfo($type)\n {\n...
[ "0.7892658", "0.67621326", "0.6746962", "0.6628087", "0.6596959", "0.65889156", "0.6572802", "0.6541535", "0.6326795", "0.62641454", "0.6256839", "0.6238894", "0.62298775", "0.6204564", "0.6144923", "0.6135794", "0.61211455", "0.6108506", "0.6108506", "0.608345", "0.5987276",...
0.0
-1
Display a listing of the resource.
public function index() { return view('admin.kesekretariatan.skkades.index'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Show the form for creating a new resource.
public function create() { $model = new skKades(); return view('admin.kesekretariatan.skkades.form', compact('model')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { $this->validate($request,[ 'nama_sk'=>'required', 'file'=>'required|mimes:pdf|max:3048', 'nomor_keputusan_kades'=>'required', 'tgl_keputusan_kades'=>'required' ]); $file = $request->file('file'); $namafile = $file->getClientOriginalName(); $destinasi = 'ubold/filedocMail/skkadesfile'; $file->move($destinasi,$namafile); $model = new skKades(); $model->tahun = date('Y'); $model->nama_sk = $request->nama_sk; $model->uraian = $request->uraian; $model->nomor_keputusan_kades = $request->nomor_keputusan_kades; $model->tgl_keputusan_kades = $request->tgl_keputusan_kades; $model->nomor_dilaporkan = $request->nomor_dilaporkan; $model->tgl_dilaporkan = $request->tgl_dilaporkan; $model->keterangan = $request->keterangan; $model->file = $namafile; $model->save(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.63424...
0.0
-1
Display the specified resource.
public function show($id) { $model = skKades::where('id',decrypt($id))->first(); return view('admin.kesekretariatan.skkades.detail', compact('model')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245...
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { $model = skKades::where('id',decrypt($id))->first(); return view('admin.kesekretariatan.skkades.form', compact('model')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { $this->validate($request,[ 'nama_sk'=>'required', 'file'=>'mimes:pdf|max:3048', 'nomor_keputusan_kades'=>'required', 'tgl_keputusan_kades'=>'required' ]); if (!is_null($request->file)) { $file = $request->file('file'); $namafile = $file->getClientOriginalName(); $destinasi = 'ubold/filedocMail/skkadesfile'; $file->move($destinasi,$namafile); } $model = skKades::where('id',$id)->first(); $model->tahun = date('Y'); $model->nama_sk = $request->nama_sk; $model->uraian = $request->uraian; $model->nomor_keputusan_kades = $request->nomor_keputusan_kades; $model->tgl_keputusan_kades = $request->tgl_keputusan_kades; $model->nomor_dilaporkan = $request->nomor_dilaporkan; $model->tgl_dilaporkan = $request->tgl_dilaporkan; $model->keterangan = $request->keterangan; if (!is_null($request->file)) { $model->file = $namafile; } else { $model->file = $request->tampungFile; } $model->save(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { $model = skKades::where('id',decrypt($id))->first(); $model->delete(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n ...
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897...
0.0
-1
Loads the product from the DB, incuding product variation info
public function load($id) { global $DB; parent::load($id); $productVariations = $DB->get_records( 'local_moodec_variation', array( 'product_id' => $id, ) ); if(!!$productVariations) { foreach ($productVariations as $pv) { $variationid = (int) $pv->id; $this->_variations[$variationid] = new MoodecProductVariation($variationid, true); } } else { throw new Exception('Unable to load product variation information using identifier: ' . $id); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function load($product, $productAttribute, $options, $data);", "public function load()\n {\n $query\n = '\n select\n *\n from\n aca_product\n where\n product_id = \"' . $this->productId . '\"';\n\n $this->db->setQuery($query...
[ "0.6955738", "0.6884401", "0.68206215", "0.6680621", "0.640358", "0.6381325", "0.6380651", "0.63370186", "0.63091284", "0.62851", "0.62492704", "0.62274253", "0.6206193", "0.6196525", "0.6160851", "0.6158004", "0.61410207", "0.60924953", "0.604175", "0.6021404", "0.5966728", ...
0.72337687
0
Retrieves the product variation
public function get_variation($id = null, $returnDisabled = false){ // Check if there is a variation matching that ID if( array_key_exists($id, $this->_variations) ) { if( $this->_variations[$id]->is_enabled() || $returnDisabled ) { return $this->_variations[$id]; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getVariation()\n {\n return $this->db->get($this->product_variant);\n }", "function get_variation( $variation_id, $product ) {\n\n\t\tif ( isset( $this->variations_cache[ $variation_id ] ) )\n\t\t\treturn $this->variations_cache[ $variation_id ];\n\n\t\t$variation = $product->get_child( $v...
[ "0.8370942", "0.7373479", "0.72611874", "0.72476953", "0.6889464", "0.68786544", "0.6845588", "0.65703034", "0.65638375", "0.6562082", "0.652585", "0.65065014", "0.65053344", "0.64728487", "0.64709586", "0.6431143", "0.6431143", "0.6431143", "0.6431143", "0.6431143", "0.64311...
0.6207671
33
Returns the product variations
public function get_variations($returnAll = false) { if( $returnAll ) { return $this->_variations; } $enabledVariations = array(); // We only want to return variations which are enabled foreach ($this->_variations as $id => $v) { if( $v->is_enabled() ) { $enabledVariations[$id] = $v; } } return $enabledVariations; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function variations()\n {\n return $this->hasMany(ProductVariation::class);\n }", "public function getVariation()\n {\n return $this->db->get($this->product_variant);\n }", "public function get_product_variations() : array {\n\t\tpreg_match( '/skuProducts=\\[(.*?)\\];/si', $this->req...
[ "0.79466677", "0.76460606", "0.7625203", "0.73682", "0.713566", "0.7074928", "0.69126153", "0.68476933", "0.68169487", "0.67912775", "0.67758983", "0.67715305", "0.676726", "0.6758203", "0.67469615", "0.6732361", "0.67214406", "0.6696025", "0.6684171", "0.6668452", "0.6564265...
0.62958395
33
Prepares the environment before running a test.
protected function setUp() { parent::setUp(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function prepareRealTestEnvironment() {}", "protected function setUp () : void {\n\n $_ENV['foo'] = \"bar\";\n $_SERVER['foo'] = \"baz\";\n\n $_ENV['bar'] = \"lorem\";\n $_SERVER['baz'] = \"ipsum\";\n\n // And quux isn't defined.\n }", "protected function _before...
[ "0.82813984", "0.74528134", "0.7089828", "0.70875514", "0.70170575", "0.6992361", "0.69501555", "0.69016063", "0.68578815", "0.68517196", "0.67532045", "0.6745241", "0.66899645", "0.66775244", "0.66723675", "0.66720474", "0.66672695", "0.6664573", "0.66530484", "0.6621275", "...
0.0
-1
Cleans up the environment after running a test.
protected function tearDown() { parent::tearDown(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function tearDown(): void\n {\n unset($_SERVER['foo'], $_ENV['foo']);\n }", "public function tearDown(): void\n {\n self::$environ->cleanupTestUploadFiles();\n self::$environ->clean();\n }", "protected function tearDown(): void\n {\n $this->config = null;\n ...
[ "0.7499918", "0.7465399", "0.7313867", "0.7240087", "0.72257245", "0.72239214", "0.71817493", "0.71759856", "0.7174705", "0.71517044", "0.71517044", "0.715084", "0.71412283", "0.7115216", "0.71096313", "0.7072444", "0.70685935", "0.7056217", "0.7027916", "0.7005705", "0.70002...
0.0
-1
Display a listing of the resource.
public function index() { $admins = User::orderBy('id', 'asc')->get(); return view('adminLayouts.manageLayouts.index', compact('admins')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Show the form for creating a new resource.
public function create() { return view('adminLayouts.manageLayouts.create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { $request->validate([ 'name' => 'required|string|max:255|min:3', 'username' => 'required|string|max:50|min:3|unique:users', 'email' => 'required|string|email|max:255|unique:users', 'password' => 'required|string|min:8|confirmed' ]); User::create([ 'role_id' => $request->input('role'), 'name' => $request->input('name'), 'username' => $request->input('username'), 'email' => $request->input('email'), 'password' => Hash::make($request->input('password')), ]); $admins = User::orderBy('id', 'asc')->get(); return view('adminLayouts.manageLayouts.index', compact('admins')); die(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.63424...
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { $id = request()->segment(5); $admin = User::find($id); return view('adminLayouts.manageLayouts.edit', compact('admin')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { User::where('id', $id)->update([ 'role_id' => $request->input('role'), 'name' => $request->input('name'), 'username' => $request->input('username'), 'email' => $request->input('email'), ]); $admins = User::orderBy('id', 'asc')->get(); return redirect()->route('admin.manage', [ 'locale' => app()->getLocale(), 'admins' => $admins, ]); die(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { $admin = User::find($id); $adminCountBeforeDelete = User::count(); $admin->delete(); $adminCountAfterDelete = User::count(); if ($adminCountAfterDelete < $adminCountBeforeDelete) { return redirect()->back(); } else { abort(404); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n ...
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897...
0.0
-1
Get the value of id
public function getId() { return $this->id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getId(){\n\t\t\treturn $this->$id;\n\t\t}", "public function getId()\n {\n return $this->getValue('id');\n }", "public function getId() {\n\t\treturn $this -> data['id'];\n\t}", "function get_id() {\n\t\treturn $this->get_data( 'id' );\n\t}", "function getID() {\n\t\treturn $this->dat...
[ "0.77531433", "0.75790346", "0.7551146", "0.74920887", "0.7472376", "0.7445116", "0.7433321", "0.7433321", "0.74298936", "0.7415067", "0.7415067", "0.732741", "0.7291388", "0.72722006", "0.7259057", "0.7259057", "0.7255057", "0.7253809", "0.72535557", "0.72535557", "0.7253555...
0.0
-1
Get the value of userId
public function getUserId() { return $this->userId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getUserId() {\n\t\treturn $this->getData('userId');\n\t}", "public function getUserId ()\n {\n return $this->storage->get(self::$prefix . 'userId');\n }", "public function getUserId()\n {\n return parent::getValue('user_id');\n }", "public function getUserId();", "public function...
[ "0.84530276", "0.83761144", "0.8282258", "0.8251538", "0.8251538", "0.8251538", "0.8251538", "0.8251538", "0.8251538", "0.8251538", "0.8251538", "0.8251538", "0.81998295", "0.8192698", "0.8164337", "0.81628764", "0.8160796", "0.81497985", "0.81081927", "0.81081927", "0.808748...
0.81289697
28
Get the value of title
public function getTitle() { return $this->title; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTitle()\n {\n return $this->getValue('title');\n }", "public function getTitle()\n {\n return $this->getValue();\n }", "public function get_title () {\r\n\t\treturn $this->get_info()['title'];\r\n\t}", "public function title()\n {\n return $this->{static...
[ "0.82995707", "0.8291306", "0.82038474", "0.8115967", "0.8109889", "0.8095531", "0.8095531", "0.8092283", "0.80683935", "0.8064733", "0.806069", "0.8040775", "0.8038859", "0.8023465", "0.8017808", "0.8012197", "0.8009827", "0.8009827", "0.8009827", "0.8009827", "0.8009409", ...
0.0
-1
Set the value of title
public function setTitle($title) { $this->title = $title; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setTitle($value)\n {\n $this->_title = $value;\n }", "public function setTitle($value)\n {\n $this->title = $value;\n }", "function set_title($title){\r\n\t\t$this->_title = $title;\r\n\t}", "function setTitle($title)\n {\n $this->m_title = $title;\n }", "func...
[ "0.8617192", "0.8556605", "0.8322929", "0.8255466", "0.82530844", "0.82464516", "0.82464516", "0.82444715", "0.82316023", "0.821708", "0.8215294", "0.82145464", "0.8211219", "0.82073224", "0.8198277", "0.81962633", "0.8189961", "0.81880856", "0.8186093", "0.8182676", "0.81706...
0.0
-1
Get the value of content
public function getContent() { return $this->content; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getValue(){\n return $this->_content;\n }", "function getContent()\n {\n return $this->getAttribute(\"content\");\n }", "function get_content() {\r\n\t\treturn $this->content;\r\n\t}", "function getValue() { return $this->readText(); }", "public function getContent(){\n\t\t...
[ "0.85331315", "0.74687165", "0.73241013", "0.7278748", "0.72559625", "0.7208305", "0.71906906", "0.71874195", "0.7178343", "0.71637803", "0.71446687", "0.71446687", "0.7136236", "0.7113005", "0.70963526", "0.7089355", "0.70798546", "0.70798546", "0.70798546", "0.7056765", "0....
0.69578254
55
Set the value of content
public function setContent($content) { $this->content = $content; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract function setContent();", "protected function setContent() {}", "public function setContent( string $content );", "public function setContent($content){\n $this->_content = $content;\n }", "public function setContent($content);", "public function setContent($content);", "public function set...
[ "0.85002345", "0.83700746", "0.8131375", "0.8093801", "0.8076925", "0.8076925", "0.8076925", "0.8076925", "0.8076925", "0.8076925", "0.8076925", "0.8076925", "0.8076925", "0.8076925", "0.797122", "0.7876089", "0.7843392", "0.77945745", "0.7776669", "0.7770874", "0.7743636", ...
0.0
-1
Get the value of date
public function getDate() { return $this->date; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDate();", "public function getDate();", "public function getDate()\n {\n if ( $this->value != null ) {\n $date = strtotime( $this->value );\n return date( 'd m Y', $date );\n }\n return null;\n }", "public function getDate()\r\n {\r\n ...
[ "0.73365295", "0.73365295", "0.7282412", "0.7201814", "0.7152258", "0.7143704", "0.7143586", "0.71411586", "0.7135938", "0.71044344", "0.71044344", "0.71044344", "0.71039176", "0.7101078", "0.70954573", "0.7092461", "0.7089096", "0.7089096", "0.7067405", "0.7046301", "0.70416...
0.713308
35
Set the value of date
public function setDate($date) { $this->date = $date; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDate($value) {\n\t\t$this->_date = $value;\n\t}", "public function setDate($date);", "public function setDate($date){\n\t\t$this->date = $date;\n\t}", "public function setDate($date)\n {\n $this->date = $date;\n }", "public function setDate($date)\n {\n $this->date...
[ "0.8595994", "0.8144333", "0.7925046", "0.7790953", "0.7790953", "0.7787397", "0.7771945", "0.7639952", "0.75454897", "0.73710495", "0.73293585", "0.73129904", "0.72541124", "0.7214808", "0.7174494", "0.71497524", "0.7071404", "0.7051499", "0.70395744", "0.6980755", "0.694751...
0.0
-1
Set the value of id
public function setId($id) { $this->id = $id; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function SetId($value) { $this->id=$value; }", "function setId($value) {\n $this->_id = intval($value);\n }", "public function setID($value) {\r\n //if (!is_numeric($value)) die(\"setID() only accepts a numerical ID value\");\r\n $this->id = $value;\r\n }", "function set_id($id) {\...
[ "0.88871074", "0.843179", "0.8386374", "0.82243615", "0.8207132", "0.8197505", "0.8139511", "0.81316125", "0.8130276", "0.81274986", "0.8092258", "0.80916125", "0.807949", "0.80521345", "0.80423075", "0.8040586", "0.8028681", "0.8028681", "0.80261153", "0.8006119", "0.8002501...
0.0
-1
Get the value of personId Set the value of personId
public function setUserId($userId) { $this->userId = $userId; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setPersonID($personID) \n {\n $this->setValueByFieldName('person_id',$personID);\n //return $this->getValueByFieldName( 'applicant_codename' );\n }", "public function setPersonId($personId)\n {\n $this->personId = $personId;\n }", "function setPersonID( $personID )\n ...
[ "0.725484", "0.7241983", "0.7214347", "0.70860344", "0.7013466", "0.6850949", "0.64999497", "0.62236404", "0.6220824", "0.6200126", "0.6200126", "0.61595035", "0.5970711", "0.5876493", "0.58482337", "0.583861", "0.581785", "0.5807853", "0.5807853", "0.5805777", "0.57709986", ...
0.0
-1
Verifica que los datos para iniciar session sean validos
function validarLogin ($usuario, $clave, $validacion = true, $callback = null) { $clave = md5($clave); $result = $this->consulta()->filtro( ['clave_usuario' => $clave, 'nombre_usuario' => $usuario, 'validacion' => 1 ])->fila(); if ((is_array($result) or (is_object($result) and $result instanceof \Countable)) and count($result) > 0) { $this->establecerAtributos($result); $this->__obtConsultaInstancia($this->id_usuario); $this->obtenerDataRelaciones(); $this->registrarSesion(); $this->activo = 1; $this->salvar(); $this->obtenerPerfiles(); return $result; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validar_sessao() {\n if (!$this->session->userdata('LOGADO')) {\n redirect('admin/acesso');\n }\n return true;\n }", "function verificalogin(){\n if(!isset($this->session->datosusu)){\n return true;\n }\n }", "public function sessionIsValid()\n ...
[ "0.6899414", "0.68961394", "0.68505645", "0.6806266", "0.67897844", "0.67871016", "0.67592096", "0.671046", "0.6702791", "0.66686136", "0.66679984", "0.6645442", "0.66319704", "0.660578", "0.65980417", "0.6551364", "0.6520535", "0.64912266", "0.643308", "0.64293957", "0.64242...
0.0
-1
Obtiene los perfiles asociados a un usuario de base de datos
private function obtenerPerfiles ($idUser = "") { if ($idUser != "") { $this->id_usuario = $idUser; } if (count($this->perfiles) < 1) { $query = $this->stringConsulta() . " where a.id_usuario=$this->id_usuario"; $data = $this->bd->ejecutarQuery($query); if ($data instanceof \Countable and count($data) > 1) { throw new Exception("No se han obtenido los perfiles del usuario", 1); } while ($perfil = $this->bd->obtenerArrayAsociativo($data)) { $this->perfiles[$perfil['clave_perfil']] = $perfil['clave_perfil']; } } else { $this->perfiles[] = 'UsuarioPublico'; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getPerfiles($idUser){\n\t\t/*\n\t\tDeben obtenerse de control_perfil_usuario los id de perfiles a los que pertenece el \n\t\tusuario para poder desplegarlos en el formulario de edición de datos\n\t\t*/\n\t\t$array=array();\n\t\t$oPerfilUsuario=new Perfil_usuario($this->oDBM);\n\t\t$arrayPerfilUsuario=$oPe...
[ "0.6968639", "0.68458104", "0.66054463", "0.64045686", "0.62305546", "0.6122248", "0.60863817", "0.6086165", "0.60755014", "0.60463136", "0.5945213", "0.5937028", "0.59190816", "0.5898024", "0.58893895", "0.5883103", "0.5865218", "0.58140594", "0.58000606", "0.57975334", "0.5...
0.6981998
0
Retorna los perfiles asociados al usuario inicializado
function getPerfiles () { $this->obtenerPerfiles(); return $this->perfiles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function GetAllPerfiles()\n {\n \t$perfiles = Perfil::all();\n \treturn $perfiles;\n }", "function getPerfiles($idUser){\n\t\t/*\n\t\tDeben obtenerse de control_perfil_usuario los id de perfiles a los que pertenece el \n\t\tusuario para poder desplegarlos en el formulario de edición de datos\n...
[ "0.725103", "0.69314086", "0.67408234", "0.6612475", "0.6587419", "0.6564555", "0.6185635", "0.616599", "0.61365926", "0.60886085", "0.60865104", "0.5995152", "0.5976353", "0.59704477", "0.594228", "0.59020215", "0.58871555", "0.58761585", "0.58587563", "0.5837018", "0.583524...
0.6502526
6
Registra la sesion del usuario
function registrarSesion () { if (!empty($this->id_usuario)) { $this->salvar(['ultima_session' => 'current_timestamp', 'activo' => 1 ]); Helpers\Sesion::sessionLogin(); } else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function register(): void\n {\n $user = User::factory()->create();\n $this->actingAs($user);\n }", "public function register () : void\n {\n $this->getHttpReferer();\n\n // if the user is already logged in,\n // redirection to the previous page\...
[ "0.6576822", "0.6534289", "0.64748466", "0.6435742", "0.64080954", "0.6390943", "0.6385458", "0.6348849", "0.63176566", "0.6269694", "0.62469727", "0.6242618", "0.6229436", "0.6209444", "0.62056667", "0.61699224", "0.6160058", "0.6127496", "0.6113927", "0.6113444", "0.6065418...
0.7339701
0
Registra los perfiles asociados a un usuario
function asociarPerfiles ($perfiles) { $insert = "insert into s_usuarios_perfiles (id_usuario_perfil, id_usuario, id_perfil) values "; $i = 0; foreach ($perfiles as $key => $idPerfil) { if ($i > 0) $insert .= ","; $insert .= "(null,$this->id_usuario,$idPerfil)"; $i++; } $delete = "delete from s_usuarios_perfiles where id_usuario=$this->id_usuario;"; $this->bd->ejecutarQuery($delete . $insert, 2); return ['ejecutado' => 1]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addPerfilAction() {\n $perfil= new Perfiles();\n $perfil->setIdperfilUsuario(\"Sec\");\n $perfil->setNombrePerfil(\"Secretaria\");\n $perfil->setDescripcionPerfil(\"Perfil Agregado desde UsuariosController\");\n \n $em=$this->getDoctrine()->getEntityManager...
[ "0.6224378", "0.59013027", "0.581284", "0.5777077", "0.5769535", "0.57361114", "0.5701051", "0.5693234", "0.56805843", "0.56518084", "0.5603112", "0.5370323", "0.5357536", "0.5356267", "0.5354409", "0.5332031", "0.5331295", "0.5326001", "0.53057986", "0.52602893", "0.52591676...
0.61545753
1
Cambia la clave de un usuario
function cambiarClave ($clave, $nuevaClave) { $clave = md5($clave); //Helpers\Debug::imprimir("$clave===$this->clave_usuario",true); if ($clave === $this->clave_usuario) { $this->clave_usuario = md5($nuevaClave); $this->salvar(); return true; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getClaveUsuario(){\n return $this->claveUsuario;\n }", "public function restaurarClave()\n {\n echo $this->Usuarios_model->cambiarClave($this->input->post(\"ciu\"), hash(\"sha512\", \"12345678\"));\n }", "public function cambiarClave()\n {\n echo $this->Usuarios_model->cam...
[ "0.8038806", "0.7438939", "0.7246355", "0.69747436", "0.66613954", "0.66232985", "0.66155577", "0.66034585", "0.6599402", "0.63700956", "0.63416874", "0.62916684", "0.62677586", "0.62593347", "0.6248087", "0.6248087", "0.6248087", "0.6248087", "0.6248087", "0.6248087", "0.624...
0.66414
5
Verifica el codigo de activacion creado en el registro de un usuario
function validarCodigoActivacion ($codigo) { $data = $this->select()->filtro(['validacion' => $codigo])->fila(); if ($this->bd->totalRegistros > 0) { $this->establecerAtributos($data); $this->activo = 1; $this->validacion = 1; $this->id_estatus = 1; if ($this->salvar()->ejecutado()) { return true; } else { return false; } } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function verificarActivacion($codActivacion){\n $this-> Conexion -> abrir();\n $this -> Conexion -> ejecutar($this -> ClienteDAO -> verificarActivacion($codActivacion));\n if($this -> Conexion -> numFilas()){\n $this -> Conexion -> ejecutar( $this -> ClienteDAO -> activacion(...
[ "0.70125216", "0.6680873", "0.66770405", "0.65301144", "0.651596", "0.64585334", "0.63454396", "0.6283189", "0.6255636", "0.6255348", "0.6212573", "0.6203343", "0.61870575", "0.61454344", "0.61378765", "0.6103033", "0.6079236", "0.6069586", "0.60378146", "0.60357666", "0.6015...
0.69735533
1
Make sure the user is logged in
public function contentHTML() { // If not then offer them a login or registration link if( !isset($_SESSION['username']) ) { echo 'You need to be logged in'; return; } //include account html include 'templates/search/searchform.php'; include 'templates/account/user-account.php'; // If user is an admin if( $_SESSION['privilege'] == 'admin' ) { include 'templates/account/admin-controls.php'; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function isUserLoggedIn() {}", "protected function isUserLoggedIn() {}", "public function check_login(){\n\t\t\tif( isset( $_SESSION['user_id'] ) ) {\n\t\t\t\t$this->user_id = $_SESSION['user_id'];\n\t\t\t\t$this->logged_in = true;\n\t\t\t} else {\n\t\t\t\tunset( $this->user_id );\n\t\t\t\t$this->log...
[ "0.83521706", "0.83521706", "0.799548", "0.7994199", "0.7966886", "0.788059", "0.7870306", "0.7868187", "0.78295004", "0.78223246", "0.7813323", "0.7809981", "0.7804663", "0.77909565", "0.7739792", "0.77396", "0.7708924", "0.77039087", "0.76800233", "0.7671621", "0.7671621", ...
0.0
-1
$this>mongo_db>where(array('triggers_type' => $trigger_type,'coin' => $global_symbol,'order_mode' => $global_mode));
public function rulesOrderProfitLoss($coin, $order_mode,$triggers_type,$userID,$start_date,$end_date) { $this->mongo_db->limit(100); $rulesSet_result = $this->mongo_db->get('trigger_global_setting'); $rulesSet_arr = iterator_to_array($rulesSet_result); echo "<pre>"; print_r($rulesSet_arr); exit; return $rulesSet_arr[0]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dbWhereVars() {\n\n foreach ($this->fields() as $f) {\n if ($this->$f === false) continue;\n $this->db->where($this->model.'.'.$f,$this->$f);\n }\n\n }", "function s_m_put_get_condition($ref_id_db_arr, $ref_data){\r\n $where = \"\";\r\n for($i = 0; $i < count($ref_id_db_arr); $i++){\r...
[ "0.5492911", "0.54797816", "0.52177733", "0.5212182", "0.51435363", "0.51335293", "0.51284814", "0.5115798", "0.5102637", "0.5098043", "0.50964355", "0.5084329", "0.5076734", "0.505389", "0.505389", "0.5031265", "0.50268036", "0.50047094", "0.50002205", "0.49989867", "0.49849...
0.4775082
41
Write a procedure ShiftLeft3(A, B, C) that performs a left cyclic shift by assigning the initial values of A, B, C to variables C, A, B respectively (A, B, C are input and output realvalued parameters). Using this procedure, perform the left cyclic shift for each of two given triples of real numbers: (A1, B1, C1) and (A2, B2, C2).
function ShiftLeft3(&$A, &$B, &$C){ $var = $C; $C = $B ; $B = $A ; $A = $var; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function bitwiseLeftShift(int $shift);", "private function getLeftShift()\n {\n if ($this->currentPage < 3) {\n $shift = 3;\n } else {\n $shift = 1;\n }\n return $shift;\n }", "function shift_left_CD($CorD, $shift_schedule){\n $arr[16][28] = a...
[ "0.51497823", "0.49912277", "0.48430577", "0.46106917", "0.45953348", "0.45932406", "0.4551648", "0.45476073", "0.44131067", "0.43816963", "0.43816963", "0.43797442", "0.43797442", "0.43543637", "0.41905352", "0.41420537", "0.41283697", "0.41007546", "0.40672085", "0.4000949", ...
0.73764396
0
Return early if no sidebars are active
function scratch_home_page_setup() { if (!in_array(true, $home_sidebars)) { return; } if( $home_sidebars['home-welcome']) { add_action('genesis_after_header', 'scratch_add_home_welcome'); } if( $home_sidebars['call-to-action']) { add_action('genesis_after_header', 'scratch_add_call_to_action'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function no_sidebars() {\n\t\techo '<p>'. __('You haven&rsquo;t added any sidebars yet. Add one using the form on the right hand side!',self::TEXT_DOMAIN) .'</p>';\n\t}", "function discard_sidebar_being_rendered()\n {\n }", "function ts_check_if_any_sidebar($ifNoSidebars,$ifOneSidebar, $ifTwoSideb...
[ "0.7353241", "0.68996406", "0.67829204", "0.66129977", "0.6590218", "0.65776527", "0.6565056", "0.6565056", "0.653077", "0.65107536", "0.650736", "0.64769024", "0.64769024", "0.6472891", "0.6469332", "0.64147216", "0.6399931", "0.6372368", "0.6366004", "0.63465744", "0.633267...
0.0
-1
this method is called when the module is being created
public function init() { // you may place code here to customize the module or the application // import the module-level models and components $this->setImport(array( 'admin.models.*', 'admin.components.*', )); $this->layoutPath = Yii::getPathOfAlias('admin.views.layouts'); $this->layout = 'main'; $this->publishCssFile('admin.assets', '/styles.css'); //$this->publishJsFile('admin.assets', '/vendors/modernizr-2.6.2-respond-1.1.0.min.js'); Yii::app()->clientScript->registerCoreScript('jquery'); Yii::app()->clientScript->registerCoreScript('jquery.ui'); //$this->publishJsFile('admin.assets', '/vendors/jquery-1.9.1.min.js'); //$this->publishJsFile('admin.assets', '/vendors/jquery-ui-1.10.3.js'); //$this->publishJsFile('admin.assets', '/bootstrap/js/bootstrap.js'); //$this->publishJsFile('admin.assets', '/vendors/datatables/js/jquery.dataTables.min.js'); $this->publishJsFile('admin.assets', '/scripts.js'); //$this->publishJsFile('admin.assets', '/DT_bootstrap.js'); Yii::app()->errorHandler->errorAction = '/admin/default/error'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function init()\n {\n // you may place code here to customize the module or the application\n }", "function on_creation() {\n $this->init();\n }", "protected function onInit() {}", "public function init() {\n // you may place code here to customize the module or the appli...
[ "0.7632283", "0.72788334", "0.7178431", "0.71653306", "0.71461445", "0.71461445", "0.71461445", "0.71461445", "0.7144346", "0.7144346", "0.7144346", "0.7144346", "0.7144346", "0.7144346", "0.71433365", "0.71433365", "0.7096021", "0.7055633", "0.70553154", "0.70553154", "0.702...
0.0
-1
Registers any custom rule extensions
protected function registerRuleExtensions(RuleExtensionRegistry $ruleExtensionRegistry) { $ruleExtensionRegistry->registerRuleExtension(new Forbidden()); $ruleExtensionRegistry->registerRuleExtension(new ExactlyOne()); $ruleExtensionRegistry->registerRuleExtension(new Base64()); $ruleExtensionRegistry->registerRuleExtension(new MaxLength()); $ruleExtensionRegistry->registerRuleExtension(new MinLength()); $ruleExtensionRegistry->registerRuleExtension(new Url()); $ruleExtensionRegistry->registerRuleExtension(new Uuid()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerCustomValidationRules()\n {\n Validator::extend('platform', function ($attribute, $value, $parameters, $validator) {\n return Device::isPlatformValueOrAlias($value);\n });\n }", "protected static function _registerCoreExtensions()\n {\n self::re...
[ "0.62995833", "0.60734963", "0.6050026", "0.59406465", "0.59124744", "0.5869441", "0.58467513", "0.5838353", "0.5807829", "0.5758012", "0.5725592", "0.5716446", "0.5703893", "0.5678612", "0.5643395", "0.56365854", "0.5612093", "0.5591013", "0.5570018", "0.5503729", "0.5492288...
0.6213242
1
Get read permission checker.
public static function getReadPermissionChecker() { return array(__CLASS__, 'onReadPermissionCheck'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function can_read () {\r\n\r\n return $this->permissions[\"R\"] ? true : false;\r\n\r\n }", "function isReadable() { return $this->flagAccessRead; }", "public function check_read_permission($post)\n {\n }", "public function check_read_permission($post)\n {\n ...
[ "0.7392462", "0.7036591", "0.66918", "0.66918", "0.66576624", "0.657163", "0.65252495", "0.6428532", "0.6401286", "0.63801414", "0.63638514", "0.62240356", "0.6202258", "0.6183938", "0.6167421", "0.61546487", "0.61390316", "0.6138477", "0.6138477", "0.61219746", "0.61157024",...
0.79322946
0
On read permission check.
public static function onReadPermissionCheck(Result $result) { if (Security\User::current()->canView()) { return; } $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR_NO_READ_ACCESS'))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function check_read_permission($post)\n {\n }", "public function check_read_permission($post)\n {\n }", "public function check_read_permission($post)\n {\n }", "protected function check_read_permission($status)\n {\n }", "public function can...
[ "0.7861233", "0.78550017", "0.78550017", "0.75949556", "0.74207586", "0.72818285", "0.72066045", "0.7181149", "0.71709603", "0.71709603", "0.7170915", "0.7170915", "0.7170915", "0.7170398", "0.7170398", "0.7170398", "0.70791113", "0.701246", "0.694722", "0.6911423", "0.685467...
0.60835135
68
Get write permission checker.
public static function getWritePermissionChecker() { return array(__CLASS__, 'onWritePermissionCheck'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function can_write () {\r\n\r\n return $this->permissions[\"W\"] ? true : false;\r\n\r\n }", "public function canWrite(){\n\t\treturn is_writable($this->file);\n\t}", "public function isWriteable(): bool;", "public function isWriteable()\n {\n $this->is_writable = null;...
[ "0.7644738", "0.6752038", "0.6724825", "0.67009765", "0.6555009", "0.6518307", "0.6468478", "0.6432084", "0.6390556", "0.63715786", "0.63186526", "0.63186526", "0.6317494", "0.6317494", "0.63150537", "0.6287586", "0.6266522", "0.6256065", "0.6205228", "0.6195523", "0.61613965...
0.8053417
0
On write permission check.
public static function onWritePermissionCheck(Result $result) { if (Security\User::current()->canEdit()) { return; } $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_ACCESS'))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkWriteAccess() {\r\n\t\tif (!$this->hasWriteAccess()) throw new UserError(_(\"Vous n'avez pas les droits d'écriture sur cette annonce\"));\r\n\t}", "public function can_write () {\r\n\r\n return $this->permissions[\"W\"] ? true : false;\r\n\r\n }", "public function enforceOnW...
[ "0.80685425", "0.7708975", "0.7235534", "0.7199416", "0.7160152", "0.7110058", "0.70368034", "0.7009818", "0.6871481", "0.6840123", "0.6832856", "0.68172175", "0.6758443", "0.6748806", "0.67073876", "0.66625327", "0.6661144", "0.66604483", "0.66604483", "0.66604483", "0.66604...
0.63395715
50
Get permission checker for viewing Letter.
public static function getViewLetterPermissionChecker() { return function (Result $result) { if (Security\Access::getInstance()->canViewLetters()) { return; } $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR_NO_READ_ACCESS'))); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPermission(){\n\t\tif (Yii::$app->getUserOpt->Modul_akses('11')){\n\t\t\treturn Yii::$app->getUserOpt->Modul_akses('11');\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "public static function getModifyLetterPermissionChecker()\n {\n return function (Result $result) {\n if...
[ "0.6293804", "0.6119971", "0.60978514", "0.60493803", "0.59566474", "0.59347457", "0.59149206", "0.59149206", "0.59149206", "0.59145534", "0.59145534", "0.5914509", "0.5914509", "0.5914509", "0.5871723", "0.5846903", "0.58238155", "0.57836443", "0.57720375", "0.5769872", "0.5...
0.69067806
0
Get permission checker for modifying Letter.
public static function getModifyLetterPermissionChecker() { return function (Result $result) { if (Security\Access::getInstance()->canModifyLetters()) { return; } $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_ACCESS'))); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getViewLetterPermissionChecker()\n {\n return function (Result $result) {\n if (Security\\Access::getInstance()->canViewLetters()) {\n return;\n }\n\n $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR_NO_RE...
[ "0.6133229", "0.61281526", "0.60791415", "0.6056289", "0.60234785", "0.5973391", "0.5890391", "0.5704964", "0.5696499", "0.56874144", "0.5668803", "0.56526756", "0.56501627", "0.56007904", "0.5599411", "0.55924153", "0.5582373", "0.5548666", "0.55447257", "0.55447257", "0.554...
0.7384962
0
Get permission checker for modifying Abuse.
public static function getModifyAbusePermissionChecker() { return function (Result $result) { if (Security\Access::getInstance()->canModifyAbuses()) { return; } $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_ACCESS'))); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkPermissions();", "public static function uses_permissions(): bool;", "private function permissionInstance()\n\t{\n\t\treturn new PermissionMaker();\n\t}", "public static function getModifyAdPermissionChecker()\n {\n return function (Result $result) {\n if (Security\\...
[ "0.69026065", "0.65754366", "0.64763993", "0.6440685", "0.639471", "0.63770056", "0.63055724", "0.63027704", "0.63027704", "0.63027704", "0.63027704", "0.63027704", "0.6266197", "0.62584025", "0.6225956", "0.6209819", "0.62080765", "0.62080765", "0.62080765", "0.62067884", "0...
0.70240664
0
Get permission checker for viewing Segment.
public static function getViewSegmentPermissionChecker() { return function (Result $result) { if (Security\Access::getInstance()->canViewSegments()) { return; } $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR_NO_READ_ACCESS'))); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getSelectSegmentPermissionChecker()\n {\n return function (Result $result) {\n if (Security\\Access::getInstance()->canViewSegments()) {\n return;\n }\n if (Security\\Access::getInstance()->canViewLetters()) {\n return;...
[ "0.7301632", "0.6323381", "0.62603754", "0.6251687", "0.6142566", "0.6142566", "0.6142566", "0.6142566", "0.6142566", "0.6142205", "0.61233217", "0.6098302", "0.6092688", "0.60910434", "0.60897166", "0.60364956", "0.60060346", "0.5959245", "0.5951448", "0.5951448", "0.5950463...
0.670777
1
Get permission checker for selecting Segment.
public static function getSelectSegmentPermissionChecker() { return function (Result $result) { if (Security\Access::getInstance()->canViewSegments()) { return; } if (Security\Access::getInstance()->canViewLetters()) { return; } if (Security\Access::getInstance()->canViewAds()) { return; } if (Security\Access::getInstance()->canViewRc()) { return; } if (Security\Access::getInstance()->canModifySettings()) { return; } $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR_NO_READ_ACCESS'))); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getModifySegmentPermissionChecker()\n {\n return function (Result $result) {\n if (Security\\Access::getInstance()->canModifySegments()) {\n return;\n }\n\n $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR...
[ "0.60791427", "0.60461384", "0.5780635", "0.5740629", "0.5740629", "0.5689016", "0.5608048", "0.55742043", "0.557218", "0.54922813", "0.54641026", "0.5454264", "0.5454264", "0.5454264", "0.5454264", "0.5454264", "0.5403058", "0.5379075", "0.53535944", "0.5271953", "0.5267266"...
0.78514
0
Get permission checker for modifying Segment.
public static function getModifySegmentPermissionChecker() { return function (Result $result) { if (Security\Access::getInstance()->canModifySegments()) { return; } $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_ACCESS'))); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getSelectSegmentPermissionChecker()\n {\n return function (Result $result) {\n if (Security\\Access::getInstance()->canViewSegments()) {\n return;\n }\n if (Security\\Access::getInstance()->canViewLetters()) {\n return;...
[ "0.69190854", "0.6452372", "0.6450016", "0.6296729", "0.61881", "0.615267", "0.5978442", "0.5963707", "0.5963707", "0.5963707", "0.5963707", "0.5963707", "0.5943561", "0.5942078", "0.59220827", "0.5902732", "0.58819616", "0.58792764", "0.58548754", "0.580614", "0.580614", "...
0.72991794
0
Get permission checker for viewing RC.
public static function getViewRcPermissionChecker() { return function (Result $result) { if (Security\Access::getInstance()->canViewRc()) { return; } $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR_NO_READ_ACCESS'))); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkPermissions();", "public function getPermission(){\n\t\tif (Yii::$app->getUserOpt->Modul_akses('11')){\n\t\t\treturn Yii::$app->getUserOpt->Modul_akses('11');\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "public function & GetPermissions ();", "public function permissions();", "publi...
[ "0.67443115", "0.66270953", "0.65135026", "0.6484154", "0.6484154", "0.6484154", "0.6484154", "0.6484154", "0.63726616", "0.6342119", "0.6315979", "0.6292842", "0.62815636", "0.6276726", "0.6276726", "0.62648296", "0.6246302", "0.6232253", "0.61533964", "0.61510795", "0.61428...
0.6644883
1
Get permission checker for modifying RC.
public static function getModifyRcPermissionChecker() { return function (Result $result) { if (Security\Access::getInstance()->canModifyRc()) { return; } $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_ACCESS'))); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkPermissions();", "public static function getModifySettingsPermissionChecker()\n {\n return function (Result $result) {\n if (Security\\Access::getInstance()->canModifySettings()) {\n return;\n }\n\n $result->addError(new Error(Loc::ge...
[ "0.6704651", "0.65782005", "0.63510907", "0.6344431", "0.6317396", "0.6310521", "0.62894964", "0.62569547", "0.62562865", "0.62562865", "0.62562865", "0.62562865", "0.62562865", "0.6221094", "0.6184906", "0.6177133", "0.61091477", "0.610039", "0.6084153", "0.6059748", "0.6059...
0.7098316
0
Get permission checker for viewing RC.
public static function getViewBlacklistPermissionChecker() { return function (Result $result) { if (Security\Access::getInstance()->canViewBlacklist()) { return; } $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR_NO_READ_ACCESS'))); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkPermissions();", "public static function getViewRcPermissionChecker()\n {\n return function (Result $result) {\n if (Security\\Access::getInstance()->canViewRc()) {\n return;\n }\n\n $result->addError(new Error(Loc::getMessage('SENDER...
[ "0.67443115", "0.6644883", "0.66270953", "0.65135026", "0.6484154", "0.6484154", "0.6484154", "0.6484154", "0.6484154", "0.63726616", "0.6342119", "0.6315979", "0.6292842", "0.62815636", "0.6276726", "0.6276726", "0.62648296", "0.6246302", "0.6232253", "0.61533964", "0.615107...
0.0
-1
Get permission checker for modifying RC.
public static function getModifyBlacklistPermissionChecker() { return function (Result $result) { if (Security\Access::getInstance()->canModifyBlacklist()) { return; } $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_ACCESS'))); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getModifyRcPermissionChecker()\n {\n return function (Result $result) {\n if (Security\\Access::getInstance()->canModifyRc()) {\n return;\n }\n\n $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_A...
[ "0.7098316", "0.6704651", "0.65782005", "0.63510907", "0.6344431", "0.6317396", "0.6310521", "0.62894964", "0.62569547", "0.62562865", "0.62562865", "0.62562865", "0.62562865", "0.62562865", "0.6221094", "0.6184906", "0.61091477", "0.610039", "0.6084153", "0.6059748", "0.6059...
0.6177133
16
Get permission checker for viewing ad.
public static function getViewAdPermissionChecker() { return function (Result $result) { if (Security\Access::getInstance()->canViewAds()) { return; } $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR_NO_READ_ACCESS'))); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkPermissions();", "public function get_announcement_permissions_check() {\n return current_user_can( 'manage_options' );\n }", "public function checkAccess() {}", "public function checkAccess() {}", "public function checkAccess() {}", "public function checkAccess() {}", "p...
[ "0.6467925", "0.6206585", "0.61714286", "0.61714286", "0.61714286", "0.6170596", "0.6170596", "0.6169882", "0.61697716", "0.61697716", "0.61697716", "0.616466", "0.61621225", "0.61532056", "0.61513406", "0.6141661", "0.61276966", "0.6061856", "0.60611343", "0.6040426", "0.600...
0.67129576
0
Get permission checker for modifying ad.
public static function getModifyAdPermissionChecker() { return function (Result $result) { if (Security\Access::getInstance()->canModifyAds()) { return; } $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_ACCESS'))); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkPermissions();", "public static function getModifyAbusePermissionChecker()\n {\n return function (Result $result) {\n if (Security\\Access::getInstance()->canModifyAbuses()) {\n return;\n }\n\n $result->addError(new Error(Loc::getMess...
[ "0.6759991", "0.6660755", "0.65371853", "0.62435865", "0.62106514", "0.6200163", "0.6168307", "0.61410314", "0.6109556", "0.6108003", "0.6106346", "0.6106346", "0.6106346", "0.6106346", "0.6106346", "0.60883087", "0.60842174", "0.6045964", "0.60349435", "0.60338366", "0.60067...
0.7263932
0
Get permission checker for viewing recipients.
public static function getViewRecipientsPermissionChecker() { return function (Result $result) { if (Security\Access::getInstance()->canViewSegments()) { return; } $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR_NO_READ_ACCESS'))); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getModifyRecipientsPermissionChecker()\n {\n return function (Result $result) {\n if (Security\\Access::getInstance()->canModifySegments()) {\n return;\n }\n\n $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ER...
[ "0.6474706", "0.61962634", "0.58606696", "0.57558185", "0.5754672", "0.5747898", "0.5737334", "0.5705835", "0.5655026", "0.5655026", "0.56410104", "0.5619583", "0.5578729", "0.5578528", "0.55465716", "0.5533397", "0.5508826", "0.5493374", "0.54809177", "0.5454348", "0.5453453...
0.69527423
0
Get permission checker for modifying recipients.
public static function getModifyRecipientsPermissionChecker() { return function (Result $result) { if (Security\Access::getInstance()->canModifySegments()) { return; } $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_ACCESS'))); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getModifySettingsPermissionChecker()\n {\n return function (Result $result) {\n if (Security\\Access::getInstance()->canModifySettings()) {\n return;\n }\n\n $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERRO...
[ "0.6416856", "0.6386573", "0.63151634", "0.6233498", "0.6038729", "0.58068275", "0.57921255", "0.57638216", "0.5547894", "0.5500841", "0.5479608", "0.5475386", "0.54669327", "0.5465107", "0.5405045", "0.5393103", "0.53840935", "0.5377553", "0.53530544", "0.5327288", "0.532157...
0.74266493
0
Get permission checker for modifying settings.
public static function getModifySettingsPermissionChecker() { return function (Result $result) { if (Security\Access::getInstance()->canModifySettings()) { return; } $result->addError(new Error(Loc::getMessage('SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_ACCESS'))); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getSettingsPermissions() {\n $settings_permissions_read_only = TRUE;\n // http://en.wikipedia.org/wiki/File_system_permissions.\n $writes = array('2', '3', '6', '7');\n $settings_file = './' . DrupalKernel::findSitePath(\\Drupal::request(), TRUE) . '/settings.php';\n $permissions = ...
[ "0.6640244", "0.65241057", "0.62436396", "0.6203463", "0.61914337", "0.61419463", "0.6092144", "0.609213", "0.6044892", "0.6027715", "0.6024488", "0.6024488", "0.6024488", "0.6024488", "0.6024488", "0.6003032", "0.5994742", "0.5972926", "0.5972926", "0.59399426", "0.59333557"...
0.73782706
0
Resource id requested when the error raised
public function __construct($message, $jsonBody = null, $resource = null, $resourceId = null) { $this->jsonBody = $jsonBody; $this->resource = $resource; $this->resourceId = $resourceId; parent::__construct($message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getParameterId(){\n\t\tthrow new Exception('Unknown Error!', REST_ER_PAGE_NOTFOUND);\n\t}", "public function getResourceID()\n {\n return $this->get('ResourceID');\n }", "public function getResourceID()\n {\n return $this->get('ResourceID');\n }", "public function...
[ "0.6430196", "0.63689154", "0.63689154", "0.6368119", "0.6368119", "0.6334225", "0.6305789", "0.6276282", "0.625186", "0.61579794", "0.61579794", "0.6149905", "0.6118105", "0.6118105", "0.60462105", "0.60319", "0.60216", "0.60216", "0.6013611", "0.6007329", "0.5997308", "0....
0.0
-1
Setup before running any test cases
public static function setUpBeforeClass() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "...
[ "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8299111", "0.8298778", "0.8298778", "0.8298778", "0.8298778", "0.8298778", "0.8298778", "0.8298778", "...
0.0
-1
Setup before running each test case
public function setUp() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "...
[ "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136364", "0.8136321", "0.8136321", "0.8136321", "0.8136321", "0.8136321", "0.8136321", "...
0.0
-1
Clean up after running each test case
public function tearDown() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public fu...
[ "0.7987785", "0.7987785", "0.7987785", "0.7987785", "0.7987785", "0.7987785", "0.7987785", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "0.7986567", "...
0.0
-1
Clean up after running all test cases
public static function tearDownAfterClass() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public fu...
[ "0.79781395", "0.79781395", "0.79781395", "0.79781395", "0.79781395", "0.79781395", "0.79781395", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.7976836", "0.797683...
0.0
-1
Test case for addPackingPlan Create a packingPlan.
public function testAddPackingPlan() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createPlan(){\n if(!$this->request->plan_name || !$this->request->plan_description) {\n return false;\n }\n $this->plan = Planes::create([\n 'name' => $this->request->plan_name,\n 'description' => $this->request->plan_description,\n ...
[ "0.69531554", "0.6901942", "0.6676506", "0.63307506", "0.6304023", "0.6225091", "0.61637425", "0.6150241", "0.6102987", "0.608851", "0.60822415", "0.6023581", "0.59372133", "0.57835346", "0.5757038", "0.57414585", "0.56579274", "0.56268644", "0.55209213", "0.5484042", "0.5446...
0.7591891
0
Test case for addPackingPlanAudit Add new audit for a packingPlan.
public function testAddPackingPlanAudit() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAddPackingPlan()\n {\n }", "public function addAudit(Audit $audit);", "public function testAddExternalShipmentAudit()\n {\n }", "public function test_addExternalShipmentAudit() {\n\n }", "public function testAddReplenishmentAudit()\n {\n }", "public function testA...
[ "0.60553193", "0.5969876", "0.5941007", "0.58760846", "0.57419807", "0.5704287", "0.56345534", "0.56341517", "0.5615037", "0.5517533", "0.5516703", "0.54870427", "0.546986", "0.5468823", "0.537823", "0.53143084", "0.5251664", "0.5245915", "0.5208634", "0.51976657", "0.5169436...
0.75321937
0
Test case for addPackingPlanFile Attach a file to a packingPlan.
public function testAddPackingPlanFile() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAddPackingPlanFileByURL()\n {\n }", "public function addFile($file);", "public function testGetPackingPlanFiles()\n {\n }", "public function testAddExternalShipmentFile()\n {\n }", "public function testAddPackingPlan()\n {\n }", "function addFile(FileUpload $fi...
[ "0.64937943", "0.6147898", "0.5951913", "0.57769436", "0.57392806", "0.5660011", "0.5600821", "0.5544153", "0.55356807", "0.5426812", "0.54084337", "0.54066163", "0.53932345", "0.53909034", "0.5379048", "0.5373547", "0.53595406", "0.53562784", "0.5340339", "0.5317471", "0.531...
0.7034536
0
Test case for addPackingPlanFileByURL Attach a file to a packingPlan by URL..
public function testAddPackingPlanFileByURL() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAddExternalShipmentFileByURL()\n {\n }", "public function testAddReplenishmentFileByURL()\n {\n }", "public function testAddPackingPlanFile()\n {\n }", "public function testAddLowStockFileByURL()\n {\n }", "public function testAddVendorComplianceSurveyFileByURL()...
[ "0.719052", "0.6704658", "0.6700121", "0.6331982", "0.6223605", "0.6202839", "0.6042983", "0.6011462", "0.5978323", "0.5866754", "0.5808024", "0.5804502", "0.573996", "0.5668431", "0.56314516", "0.5616567", "0.5586306", "0.55138797", "0.55037266", "0.5491123", "0.54792", "0...
0.80135447
0
Test case for addPackingPlanTag Add new tags for a packingPlan..
public function testAddPackingPlanTag() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetPackingPlanTags()\n {\n }", "function TestPlan_add_tag($plan_id, $tag_name) {\n\t// Create call\n\t$call = new xmlrpcmsg('TestPlan.add_tag', array(new xmlrpcval($plan_id, \"int\"), new xmlrpcval($tag_name, \"string\")), \"array\");\n\n\t// Do call and return value\n\treturn do_call($...
[ "0.7443316", "0.7109381", "0.69109", "0.6716628", "0.6704143", "0.6696913", "0.6470231", "0.6455306", "0.6453562", "0.64048386", "0.63709253", "0.627634", "0.6233461", "0.6232321", "0.6210739", "0.6147645", "0.6126428", "0.6117921", "0.61094236", "0.60676575", "0.6034293", ...
0.8144903
0
Test case for deletePackingPlan Delete a packingPlan.
public function testDeletePackingPlan() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDeletePackingPlanTag()\n {\n }", "public function testDeletePackingPlanFile()\n {\n }", "function delete($id_plan) {\r\n $sql = \"DELETE FROM planes WHERE planes.id_plan ='\" . $id_plan . \"'\";\r\n\r\n $response = getResultSQL($sql);\r\n if (!$response) {\...
[ "0.7143373", "0.7074826", "0.68252337", "0.656634", "0.6563426", "0.65526646", "0.65000063", "0.6320457", "0.61559975", "0.6149151", "0.6058827", "0.6050592", "0.6044464", "0.60418653", "0.59389263", "0.58917886", "0.5835245", "0.5801051", "0.5733828", "0.5711874", "0.5699017...
0.7878823
0
Test case for deletePackingPlanFile Delete a file for a packingPlan..
public function testDeletePackingPlanFile() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDeleteExternalShipmentFile()\n {\n }", "public function testDeletePackingPlan()\n {\n }", "public function testDeleteReplenishmentFile()\n {\n }", "public function testDeleteOrderFile()\n {\n }", "public function testDeleteFile()\n {\n\n }", "public funct...
[ "0.737229", "0.7365223", "0.72413445", "0.71475613", "0.7139573", "0.7068676", "0.6961639", "0.6852623", "0.6636421", "0.64679205", "0.63812435", "0.6374441", "0.6262466", "0.6213497", "0.6207218", "0.61939514", "0.6192248", "0.61883134", "0.61622506", "0.61516905", "0.609758...
0.84973305
0
Test case for deletePackingPlanTag Delete a tag for a packingPlan..
public function testDeletePackingPlanTag() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDeleteReplenishmentTag()\n {\n }", "public function testDeletePackingPlan()\n {\n }", "public function testDeleteExternalShipmentTag()\n {\n }", "public function test_deleteReplenishmentProcessTag() {\n\n }", "public function testDeleteOrderTag()\n {\n }", "...
[ "0.75049424", "0.74548256", "0.73071057", "0.72864676", "0.72135395", "0.71300733", "0.71039486", "0.69620395", "0.67902803", "0.6778699", "0.6758027", "0.6744535", "0.665486", "0.65008515", "0.64844185", "0.64660484", "0.64602417", "0.6387559", "0.6356673", "0.63381916", "0....
0.8673388
0
Test case for getDuplicatePackingPlanById Get a duplicated a packingPlan by id.
public function testGetDuplicatePackingPlanById() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPlanById()\n {\n // Arrange\n // Act\n if (! isset($this->plans)) {\n $this->getsAListOfPlans();\n }\n $plans = $this->plans;\n $plan = $plans['data'][0];\n\n $plan = Ezypay::getPlan($plan['id']);\n\n // Assert\n $this-...
[ "0.6362934", "0.6326791", "0.5976135", "0.5921401", "0.58511144", "0.58135414", "0.58023816", "0.5753263", "0.56158876", "0.55545306", "0.55315685", "0.54724145", "0.5409555", "0.5407465", "0.5402911", "0.5362996", "0.5341648", "0.52647996", "0.5260013", "0.5235977", "0.52282...
0.7463125
0
Test case for getPackingPlanByFilter Search packingPlans by filter.
public function testGetPackingPlanByFilter() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetPackingPlanById()\n {\n }", "public function getsAListOfPlans()\n {\n // Arrange\n // Act\n $plans = Ezypay::getPlans();\n\n // Assert\n //$this->assertEquals(3, sizeof($plans->data)); // Causing issues as there are aditional plans\n $this...
[ "0.58953774", "0.5631039", "0.549957", "0.54921854", "0.54473865", "0.5440574", "0.54392135", "0.54009104", "0.53968537", "0.53416896", "0.5280663", "0.5257933", "0.51928085", "0.5184721", "0.5144235", "0.5115523", "0.5068483", "0.5067525", "0.5060737", "0.5035444", "0.501442...
0.7464687
0
Test case for getPackingPlanById Get a packingPlan by id.
public function testGetPackingPlanById() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPlanById()\n {\n // Arrange\n // Act\n if (! isset($this->plans)) {\n $this->getsAListOfPlans();\n }\n $plans = $this->plans;\n $plan = $plans['data'][0];\n\n $plan = Ezypay::getPlan($plan['id']);\n\n // Assert\n $this-...
[ "0.77702576", "0.72825444", "0.72723746", "0.6831339", "0.6782894", "0.67447287", "0.6649196", "0.64445394", "0.6245478", "0.6219346", "0.6130191", "0.6126213", "0.61237174", "0.6088018", "0.60769147", "0.60667604", "0.6017432", "0.60142", "0.6013399", "0.6007578", "0.6003456...
0.7068605
3
Test case for getPackingPlanFiles Get the files for a packingPlan..
public function testGetPackingPlanFiles() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFiles() {}", "public function getFiles ();", "public function testAddPackingPlanFile()\n {\n }", "public function getFiles();", "public function getFiles();", "public function getFiles();", "private function getTestFileList() {\n\t\treturn [\n\t\t\tself::makeFileInfo('a.txt', 4...
[ "0.6358665", "0.6284666", "0.6281518", "0.6195965", "0.6195965", "0.6195965", "0.6157322", "0.60981625", "0.59759873", "0.585842", "0.5834721", "0.581556", "0.5802916", "0.5802916", "0.5802916", "0.580035", "0.57596576", "0.5733025", "0.56986207", "0.5646056", "0.56386656", ...
0.7125844
0
Test case for getPackingPlanTags Get the tags for a packingPlan..
public function testGetPackingPlanTags() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function TestPlan_get_tags($plan_id) {\n\t// Create call\n\t$call = new xmlrpcmsg('TestPlan.get_tags', array(new xmlrpcval($plan_id, \"int\")));\n\n\t// Do call and return value\n\treturn do_call($call);\n}", "public function testAddPackingPlanTag()\n {\n }", "public function getTags() {}", "public fun...
[ "0.71208864", "0.6392587", "0.6225167", "0.6007116", "0.6007116", "0.6007116", "0.6007116", "0.6007116", "0.5823012", "0.579516", "0.5794438", "0.5788409", "0.5757023", "0.57225233", "0.5714984", "0.56988513", "0.56901634", "0.56783414", "0.56783414", "0.5649785", "0.5606331"...
0.73883945
0
Test case for updatePackingPlan Update a packingPlan.
public function testUpdatePackingPlan() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testUpdatePackingPlanCustomFields()\n {\n }", "public function updateListingPackageUsage(&$plan_info)\n {\n global $rlDb, $account_info, $reefless, $lang;\n\n $paid_status = false;\n\n // Existing package mode\n if ($plan_info['Type'] == 'package' && $plan_inf...
[ "0.7085014", "0.64787024", "0.64551836", "0.63667226", "0.63057375", "0.618564", "0.60914385", "0.6039051", "0.5972267", "0.59612525", "0.58209085", "0.58053815", "0.5709977", "0.5689258", "0.5667135", "0.5660933", "0.56361514", "0.5576673", "0.555598", "0.5493142", "0.547912...
0.8442888
0
Test case for updatePackingPlanCustomFields Update a packingPlan custom fields.
public function testUpdatePackingPlanCustomFields() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_updateReplenishmentProcessCustomFields() {\n\n }", "public function testUpdateExternalShipmentCustomFields()\n {\n }", "public function testUpdateReplenishmentCustomFields()\n {\n }", "public function testUpdateOrderCustomFields()\n {\n }", "public function test_up...
[ "0.6866356", "0.681878", "0.676151", "0.6522969", "0.6496353", "0.6493229", "0.6392022", "0.63785917", "0.62884486", "0.6207397", "0.5950137", "0.5714613", "0.5666781", "0.54865575", "0.5420234", "0.5369768", "0.5338579", "0.53100634", "0.5309191", "0.5246068", "0.5223773", ...
0.84104824
0
Create the event listener.
public function __construct() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addRequestCreateListener($listener);", "public function onEvent();", "private function init_event_listeners() {\n\t\t// add_action('wp_ajax_example_action', [$this, 'example_function']);\n\t}", "public function listener(Listener $listener);", "protected function setupListeners()\n {\n ...
[ "0.65685207", "0.62875676", "0.6221792", "0.6197413", "0.61627764", "0.6129312", "0.6096226", "0.6056844", "0.6051069", "0.6041841", "0.596228", "0.596194", "0.5957539", "0.59439605", "0.58821785", "0.58821785", "0.5874665", "0.5864387", "0.5856076", "0.584338", "0.5824244", ...
0.0
-1
Definicion de variables para ejecucion del procedimientp
function listarAnalisisPorqueDet(){ $this->procedimiento='gem.ft_analisis_porque_det_sel'; $this->transaccion='GM_DET_SEL'; $this->tipo_procedimiento='SEL';//tipo de transaccion $this->setParametro('id_analisis_porque','id_analisis_porque','int4'); //Definicion de la lista del resultado del query $this->captura('id_analisis_porque_det','int4'); $this->captura('id_analisis_porque','int4'); $this->captura('solucion','varchar'); $this->captura('estado_reg','varchar'); $this->captura('porque','varchar'); $this->captura('respuesta','varchar'); $this->captura('fecha_reg','timestamp'); $this->captura('id_usuario_reg','int4'); $this->captura('id_usuario_mod','int4'); $this->captura('fecha_mod','timestamp'); $this->captura('usr_reg','varchar'); $this->captura('usr_mod','varchar'); //Ejecuta la instruccion $this->armarConsulta(); $this->ejecutarConsulta(); //Devuelve la respuesta return $this->respuesta; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cl_parametroprogressaoparcial() {\n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"parametroprogressaoparcial\");\n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "public function main(){\n\t\t\n\t\tif (isset($_REQUEST[\"do\"])){\n\t...
[ "0.63526833", "0.6159355", "0.61329705", "0.6124346", "0.6103556", "0.60986793", "0.6097274", "0.6054769", "0.6051147", "0.6047721", "0.6036274", "0.60013384", "0.59993804", "0.59993804", "0.59993804", "0.59993804", "0.59989494", "0.59909284", "0.5987163", "0.59816426", "0.59...
0.0
-1
Definicion de variables para ejecucion del procedimiento
function insertarAnalisisPorqueDet(){ $this->procedimiento='gem.ft_analisis_porque_det_ime'; $this->transaccion='GM_DET_INS'; $this->tipo_procedimiento='IME'; //Define los parametros para la funcion $this->setParametro('id_analisis_porque','id_analisis_porque','int4'); $this->setParametro('solucion','solucion','varchar'); $this->setParametro('estado_reg','estado_reg','varchar'); $this->setParametro('porque','porque','varchar'); $this->setParametro('respuesta','respuesta','varchar'); //Ejecuta la instruccion $this->armarConsulta(); $this->ejecutarConsulta(); //Devuelve la respuesta return $this->respuesta; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setVariablesEntrada()\r\n\t{\r\n\t\t$request = $this->requestStack->getCurrentRequest();\r\n\t\t\r\n\t\t$this->tipo = $request->get('tipo');\r\n\t\t$this->apoyoTapas = $request->get('apoyoTapas');\r\n\t\t$this->prof = $request->get('prof');\r\n\t\t$this->anchoPanel = $request->get('ancho');\r\n\t\t...
[ "0.63395226", "0.6269071", "0.6237446", "0.61952", "0.61481035", "0.6063121", "0.6015433", "0.6007989", "0.6007334", "0.59933347", "0.59633636", "0.59626824", "0.59582067", "0.5950034", "0.5950034", "0.5950034", "0.5950034", "0.5941078", "0.5935831", "0.5930651", "0.59009725"...
0.0
-1