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
Store a newly created resource in storage.
public function store($budget) { $b = new Budget(); if($b->validate($budget)) { Budget::create([ 'tag_id' => $budget->tag_id, 'amount' => $budget->amount ]); } }
{ "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) { // handled by backbone routes }
{ "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) { // handled by backbone routes }
{ "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($id) { // }
{ "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) { Budget::destroy($id); }
{ "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
Fetches and returns the User with given id.
public function get(int $id): User { return $this->model->findOrFail($id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUser($id)\r\n {\r\n $userRepository = $this->entityManager->getRepository(User::class);\r\n $user = $userRepository->find($id);\r\n\r\n return $user;\r\n }", "public function getUser($id) {\n return $this->getEntityManager()\n ->getRepos...
[ "0.85704434", "0.8530532", "0.8505663", "0.84892774", "0.84422714", "0.8394144", "0.83546454", "0.83227384", "0.8315866", "0.83101684", "0.83050245", "0.81845504", "0.8159322", "0.8157532", "0.8138331", "0.80967546", "0.8085167", "0.80665886", "0.8062331", "0.8061631", "0.806...
0.83211166
8
Creates new User from the given attributes and returns that User.
public function store(array $attributes): User { if (array_key_exists("password", $attributes)) { $attributes["password"] = Hash::make($attributes["password"]); } return $this->model->create($attributes); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function create(array $attributes): User\n {\n $userId = wp_insert_user(array_merge($attributes, [\n 'user_login' => $attributes['user_email'],\n 'user_email' => $attributes['user_email'],\n 'role' => static::ROLE,\n 'show_admin_bar_front' => 'fal...
[ "0.7792693", "0.76485854", "0.75652957", "0.7512723", "0.7428981", "0.7409275", "0.73048687", "0.72799426", "0.72344613", "0.7191361", "0.7163837", "0.7116158", "0.70916647", "0.7056211", "0.7043297", "0.70266503", "0.7020207", "0.7005941", "0.69826376", "0.6980501", "0.69741...
0.7421046
5
Updates the given user with given attributes and returns the user.
public function update(User $user, array $attributes): User { if (array_key_exists("password", $attributes) && $attributes["password"] != null && $attributes["password"] != "") { $attributes["password"] = Hash::make($attributes["password"]); } else { unset($attributes['passwo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update(User $user)\n {\n $data = request()->validate([\n 'first_name' => '',\n 'last_name' => '',\n 'gender' => '',\n 'email' => '',\n 'phone_number' => '',\n '...
[ "0.7072398", "0.6988696", "0.68158597", "0.67847306", "0.673627", "0.6723879", "0.66468763", "0.6639159", "0.66325927", "0.66089255", "0.658974", "0.65817297", "0.652922", "0.652608", "0.6469641", "0.64532644", "0.6438656", "0.64348656", "0.6432247", "0.6410259", "0.6408248",...
0.6962604
2
Deletes the given User.
public function destory(User $user) { return $user->delete(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteUser()\n {\n $this->delete();\n }", "public function delete_user($user);", "public function delete(User $user)\n {\n //\n }", "public function deleting(User $user)\n {\n //\n }", "public function deleting(User $user)\n {\n //\n }", ...
[ "0.84389365", "0.80897576", "0.80447096", "0.80249155", "0.80249155", "0.80249155", "0.7934586", "0.79339594", "0.78338915", "0.78198403", "0.77961993", "0.7794699", "0.76495105", "0.76424676", "0.7640873", "0.76209164", "0.75908273", "0.75819594", "0.75819594", "0.75737464", ...
0.0
-1
Create a new command instance.
public function __construct() { parent::__construct(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function newCommand() {\n return newinstance(Command::class, [], '{\n public static $wasRun= false;\n public function __construct() { self::$wasRun= false; }\n public function run() { self::$wasRun= true; }\n public function wasRun() { return self::$wasRun; }\n }');\n }", "pu...
[ "0.8010746", "0.7333379", "0.72606754", "0.7164165", "0.716004", "0.7137585", "0.6748632", "0.67234164", "0.67178184", "0.6697025", "0.6677973", "0.66454077", "0.65622073", "0.65437883", "0.64838654", "0.64696646", "0.64292693", "0.6382209", "0.6378306", "0.63773245", "0.6315...
0.0
-1
Execute the console command.
public function handle() { $this->info('This command will set an user as superadmin.'); $this->info('Note: The target user has to logged in once first.'); $mail = $this->ask('UTT email: '); $user = User::where(['mail' => $mail])->first(); if(!$user) { $th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function handle()\n {\n\t\t$this->info('league fetching ..');\n $object = new XmlFeed();\n\t\t$object->fetchLeague($this->argument('sports_id'));\n\t\t$this->info('league saved');\n }", "public function handle()\n {\n //get us the Converter class instance and call the convert() meth...
[ "0.6469962", "0.6463639", "0.64271367", "0.635053", "0.63190264", "0.62747604", "0.6261977", "0.6261908", "0.6235821", "0.62248456", "0.62217945", "0.6214421", "0.6193356", "0.61916095", "0.6183878", "0.6177804", "0.61763877", "0.6172579", "0.61497146", "0.6148907", "0.614841...
0.0
-1
/ this is where you can add your own data to Timber's context object
function add_to_context($data){ $data['menu'] = wp_nav_menu(array('menu' => 175, 'echo' => false)); $data['sidebar'] = Timber::get_sidebar(); return $data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_to_context($data)\r\n{\r\n $data['THEME_URL'] = THEME_URL;\r\n $data['homeurl'] = get_site_url();\r\n if (ICL_LANGUAGE_CODE != 'en') {\r\n $data['homeurl'] .= '/' . ICL_LANGUAGE_CODE;\r\n }\r\n // Menus\r\n $data['topmenu'] = new TimberMenu(36);\r\n $data['menu'] = new Timb...
[ "0.6469483", "0.64335245", "0.6302492", "0.62954605", "0.6156891", "0.6063967", "0.6023671", "0.5990483", "0.5931456", "0.58824116", "0.5862924", "0.5839097", "0.58296806", "0.5816952", "0.57756054", "0.5730181", "0.572674", "0.5696568", "0.5675952", "0.5659818", "0.559544", ...
0.64176327
2
/ this is where you can add your own fuctions to twig
function add_to_twig($twig){ $twig->addExtension(new Twig_Extension_StringLoader()); return $twig; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function addFunctions()\n {\n \tself::$twig->addFunction(new \\Twig_SimpleFunction('asset', function ($asset) {\n return sprintf('%s', ltrim($asset, '/'));\n\t\t}));\n\n self::$twig->addFunction(new \\Twig_SimpleFunction('getBaseUrl', function () {\n return getBase...
[ "0.77792615", "0.75107807", "0.7138035", "0.69234395", "0.6707439", "0.6668352", "0.6665638", "0.656582", "0.65453553", "0.6535299", "0.652385", "0.64922214", "0.64496917", "0.64496917", "0.64496917", "0.63753915", "0.63751644", "0.6358195", "0.63558716", "0.6346505", "0.6328...
0.5861048
52
Run the database seeds.
public function run() { $user_model = new \App\Model\UserBase(); $password = 'water2015'; $user_name = 'water2015'; $phone = '12345678901'; $real_password = (new \App\Application\User\UserService())->encryptPassword($password); if (($user = $user_model::where('passwor...
{ "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
WPTC's specific hooks start
public function just_initialized_fresh_backup_wptc_h($args) { wptc_log($args, '-------just_initialized_fresh_backup_wptc_h--------'); $this->backup_before_update_obj->check_and_initiate_if_update_required_after_backup_wptc($args); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function preStartPageHook() {}", "public function preStartPageHook() {}", "public function init_hooks() {\n\t}", "private function public_hooks()\n\t{\n\t}", "private function init_hooks() {\n\t\t\tadd_action( 'init', array( $this, 'init' ), 0 );\n\t\t}", "public function addHooks() {\n\t\tadd_act...
[ "0.7495526", "0.7495526", "0.72882694", "0.6937315", "0.67716366", "0.676709", "0.6711884", "0.6607949", "0.65881246", "0.65868205", "0.65577817", "0.6546976", "0.65463674", "0.65406924", "0.65368056", "0.6527438", "0.6523464", "0.6501123", "0.6494094", "0.649404", "0.649404"...
0.0
-1
Get the etapas for the proyect.
public function etapas() { return $this->hasMany('App\Etapa', 'id_proyecto')->where("id_etapa", "is not null"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProcesosEtapas(){\n log_message('INFO','#TRAZA | #TRAZ-PROD-TRAZASOFT | Etapa | getProcesosEtapas() ');\n\n $empr_id = empresa();\n\n $rsp = $this->Etapas->getProcesosEtapas($empr_id);\n // $rsp['data'] = $this->Etapas->getProcesosEtapas($empr_id)->procesos->proceso;\...
[ "0.65223473", "0.59106654", "0.5701791", "0.5629499", "0.5618967", "0.55185014", "0.5464379", "0.54187757", "0.54031867", "0.5342498", "0.52437884", "0.5239545", "0.5236148", "0.52271676", "0.5221936", "0.5221089", "0.52210116", "0.5219377", "0.5206115", "0.5188076", "0.51846...
0.57864255
2
public function edit($id = null)
public function get_keywords_mix($num = 3) { // public function get_keywords_mix($num) { Utils::write_Log( Utils::get_dPath_Log(), "get_keywords_mix: num = ".$num, __FILE__, __LINE__); /******************************* get: all keywords *******************************/ $keywords = $this-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit($id = null)\n {\n //\n }", "public function edit($id = null)\n {\n //\n }", "public function edit($id = null)\n\t{\n\t\t//\n\t}", "public function edit($id = null)\n\t{\n\t\t//\n\t}", "public function edit($id) {\r\n //\r\n }", "public function edi...
[ "0.9807718", "0.9807718", "0.9657914", "0.9657914", "0.96136177", "0.9611997", "0.9611997", "0.96017116", "0.96017116", "0.96017116", "0.96017116", "0.96017116", "0.96017116", "0.96017116", "0.96017116", "0.96017116", "0.96017116", "0.96017116", "0.96017116", "0.96017116", "0...
0.0
-1
Unique ID for the user.
public function getId(): ?int { return $this->id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function uniqueId(): string\n {\n return strval($this->user->id);\n }", "public static function UserID()\n\t\t{\n\t\treturn sprintf\n\t\t\t(\n\t\t\t'%04x%04x-%04x-%04x-%04x-%04x%04x%04x',\n\t\t\tmt_rand(0, 0xffff),\n\t\t\tmt_rand(0, 0xffff),\n\t\t\tmt_rand(0, 0xffff),\n\t\t\tmt_rand(0, 0x0fff...
[ "0.85220474", "0.8043015", "0.78707397", "0.7833384", "0.7820024", "0.7796736", "0.77190804", "0.7709077", "0.7696114", "0.7671116", "0.7644671", "0.76409495", "0.7584534", "0.7536353", "0.7536353", "0.7536353", "0.7526879", "0.7515445", "0.75001115", "0.748954", "0.74865633"...
0.0
-1
Unique ID for the user.
public function setId(?int $id): self { $this->initialized['id'] = true; $this->id = $id; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function uniqueId(): string\n {\n return strval($this->user->id);\n }", "public static function UserID()\n\t\t{\n\t\treturn sprintf\n\t\t\t(\n\t\t\t'%04x%04x-%04x-%04x-%04x-%04x%04x%04x',\n\t\t\tmt_rand(0, 0xffff),\n\t\t\tmt_rand(0, 0xffff),\n\t\t\tmt_rand(0, 0xffff),\n\t\t\tmt_rand(0, 0x0fff...
[ "0.85220474", "0.8043015", "0.78707397", "0.7833384", "0.7820024", "0.7796736", "0.77190804", "0.7709077", "0.7696114", "0.7671116", "0.7644671", "0.76409495", "0.7584534", "0.7536353", "0.7536353", "0.7536353", "0.7526879", "0.7515445", "0.75001115", "0.748954", "0.74865633"...
0.0
-1
The first name of the user.
public function getFirstName(): ?string { return $this->firstName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserFirstName() :string {\n\t\treturn($this->userFirstName);\n\t}", "public function name(): string {\n return (string) $this->user?->first_name;\n }", "public function getuserFirstName()\n {\n return $this->userFirstName;\n }", "public function getFirstNameAttribute...
[ "0.8764015", "0.855814", "0.8546058", "0.8455288", "0.842269", "0.8386428", "0.8356362", "0.829062", "0.82791704", "0.827442", "0.8268603", "0.8246348", "0.8184424", "0.8178528", "0.8168591", "0.81551665", "0.8144606", "0.8136889", "0.8122665", "0.81138194", "0.8109499", "0...
0.0
-1
The first name of the user.
public function setFirstName(?string $firstName): self { $this->initialized['firstName'] = true; $this->firstName = $firstName; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserFirstName() :string {\n\t\treturn($this->userFirstName);\n\t}", "public function name(): string {\n return (string) $this->user?->first_name;\n }", "public function getuserFirstName()\n {\n return $this->userFirstName;\n }", "public function getFirstNameAttribute...
[ "0.8764015", "0.855814", "0.8546058", "0.8455288", "0.842269", "0.8386428", "0.8356362", "0.829062", "0.82791704", "0.827442", "0.8268603", "0.8246348", "0.8184424", "0.8178528", "0.8168591", "0.81551665", "0.8144606", "0.8136889", "0.8122665", "0.81138194", "0.8109499", "0...
0.0
-1
The last name of the user.
public function getLastName(): ?string { return $this->lastName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserLastName() :string {\n\t\treturn($this->userFirstName);\n\t}", "public function getLastNameAttribute(): string\n {\n if ($this->user !== null) {\n return $this->user->last_name;\n }\n return '';\n }", "public function getuserLastName()\n {\n ...
[ "0.88119984", "0.8801715", "0.8676459", "0.86635536", "0.8629203", "0.8629203", "0.8629203", "0.8629203", "0.8629203", "0.86017054", "0.85869616", "0.8579217", "0.85782194", "0.85692924", "0.8555011", "0.8462773", "0.8429425", "0.8429425", "0.8390829", "0.8388941", "0.8383462...
0.0
-1
The last name of the user.
public function setLastName(?string $lastName): self { $this->initialized['lastName'] = true; $this->lastName = $lastName; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserLastName() :string {\n\t\treturn($this->userFirstName);\n\t}", "public function getLastNameAttribute(): string\n {\n if ($this->user !== null) {\n return $this->user->last_name;\n }\n return '';\n }", "public function getuserLastName()\n {\n ...
[ "0.88119984", "0.8801715", "0.8676459", "0.86635536", "0.8629203", "0.8629203", "0.8629203", "0.8629203", "0.8629203", "0.86017054", "0.85869616", "0.8579217", "0.85782194", "0.85692924", "0.8555011", "0.8462773", "0.8429425", "0.8429425", "0.8390829", "0.8388941", "0.8383462...
0.0
-1
The email address of the user.
public function getEmail(): ?string { return $this->email; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEmailAddress()\n {\n return $this->_getVar('user_email');\n }", "public function getUserEmail()\n {\n return $this->getUserAttribute(static::ATTRIBUTE_EMAIL);\n }", "public function getUserEmail() {\n\t\treturn $this->userEmail;\n\t}", "public function getUserEmai...
[ "0.8790845", "0.8503285", "0.84948754", "0.84948754", "0.84664834", "0.8465921", "0.8465921", "0.8460337", "0.844014", "0.8415811", "0.8355762", "0.81931734", "0.8164056", "0.8121378", "0.81126916", "0.81029534", "0.80569607", "0.8026041", "0.80231893", "0.8017779", "0.798085...
0.0
-1
The email address of the user.
public function setEmail(?string $email): self { $this->initialized['email'] = true; $this->email = $email; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEmailAddress()\n {\n return $this->_getVar('user_email');\n }", "public function getUserEmail()\n {\n return $this->getUserAttribute(static::ATTRIBUTE_EMAIL);\n }", "public function getUserEmail() {\n\t\treturn $this->userEmail;\n\t}", "public function getUserEmai...
[ "0.8790845", "0.8503285", "0.84948754", "0.84948754", "0.84664834", "0.8465921", "0.8465921", "0.8460337", "0.844014", "0.8415811", "0.8355762", "0.81931734", "0.8164056", "0.8121378", "0.81126916", "0.81029534", "0.80569607", "0.8026041", "0.80231893", "0.8017779", "0.798085...
0.0
-1
Whether the user should be automatically added to future projects.
public function getHasAccessToAllFutureProjects(): ?bool { return $this->hasAccessToAllFutureProjects; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function can_auto_create_users() {\n return (bool)$this->config['weautocreateusers'];\n }", "public static function userCreationAllowed(): bool\n {\n return self::isConfigured(self::ACTION_ADD_USER);\n }", "function is_project( $user )\n {\n //Unimplemented\n }", "public fu...
[ "0.6969866", "0.69488287", "0.6767225", "0.6289844", "0.6256219", "0.6183131", "0.6175795", "0.6166051", "0.6161071", "0.61585057", "0.61391586", "0.61328673", "0.61261135", "0.61255133", "0.6115374", "0.6114228", "0.60964096", "0.60844576", "0.60812944", "0.6054576", "0.6050...
0.5680166
79
Whether the user should be automatically added to future projects.
public function setHasAccessToAllFutureProjects(?bool $hasAccessToAllFutureProjects): self { $this->initialized['hasAccessToAllFutureProjects'] = true; $this->hasAccessToAllFutureProjects = $hasAccessToAllFutureProjects; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function can_auto_create_users() {\n return (bool)$this->config['weautocreateusers'];\n }", "public static function userCreationAllowed(): bool\n {\n return self::isConfigured(self::ACTION_ADD_USER);\n }", "function is_project( $user )\n {\n //Unimplemented\n }", "public fu...
[ "0.6969866", "0.69488287", "0.6767225", "0.6289844", "0.6256219", "0.6183131", "0.6175795", "0.6166051", "0.6161071", "0.61585057", "0.61391586", "0.61328673", "0.61261135", "0.61255133", "0.6115374", "0.6114228", "0.60964096", "0.60844576", "0.60812944", "0.6054576", "0.6050...
0.0
-1
Whether the user is a contractor or an employee.
public function getIsContractor(): ?bool { return $this->isContractor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function isEmployee()\n {\n if(!Auth::check())\n return false;\n $user = Auth::User();\n if(stristr($user->type, 'Employee'))\n return true;\n return false;\n }", "public function isEmployee()\n {\n return (\\Auth::user()->role == 'employee...
[ "0.7352465", "0.7207462", "0.68899715", "0.6690852", "0.6568308", "0.64714617", "0.64645416", "0.64232475", "0.64177823", "0.63612634", "0.6347091", "0.62668294", "0.62507993", "0.61558646", "0.61419773", "0.61069214", "0.6103447", "0.6103447", "0.60649955", "0.6021482", "0.6...
0.0
-1
Whether the user is a contractor or an employee.
public function setIsContractor(?bool $isContractor): self { $this->initialized['isContractor'] = true; $this->isContractor = $isContractor; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function isEmployee()\n {\n if(!Auth::check())\n return false;\n $user = Auth::User();\n if(stristr($user->type, 'Employee'))\n return true;\n return false;\n }", "public function isEmployee()\n {\n return (\\Auth::user()->role == 'employee...
[ "0.7352649", "0.7207533", "0.6889986", "0.669094", "0.6568375", "0.6471521", "0.6464812", "0.64231515", "0.64176136", "0.6361215", "0.63472646", "0.6266689", "0.6250795", "0.6155795", "0.61418325", "0.6106936", "0.6103513", "0.6103513", "0.6064959", "0.6021351", "0.60118604",...
0.0
-1
Whether the user is active or archived.
public function getIsActive(): ?bool { return $this->isActive; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_active()\n {\n return $this->userData[$this->user_active];\n }", "public function isArchived()\n {\n return ($this->archived);\n }", "public function getIsArchived()\n\t{\n\t\treturn $this->is_archived;\n\t}", "function getIsArchived() {\n return $this->getIsOwner() ? false...
[ "0.7159531", "0.7073164", "0.7063489", "0.70386815", "0.7038469", "0.6977563", "0.6976283", "0.6912273", "0.69085896", "0.6874977", "0.682688", "0.6762801", "0.6739425", "0.6739425", "0.6739425", "0.67094153", "0.6709098", "0.66875976", "0.66789657", "0.6674226", "0.66697806"...
0.0
-1
Whether the user is active or archived.
public function setIsActive(?bool $isActive): self { $this->initialized['isActive'] = true; $this->isActive = $isActive; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_active()\n {\n return $this->userData[$this->user_active];\n }", "public function isArchived()\n {\n return ($this->archived);\n }", "public function getIsArchived()\n\t{\n\t\treturn $this->is_archived;\n\t}", "function getIsArchived() {\n return $this->getIsOwner() ? false...
[ "0.7159531", "0.7073164", "0.7063489", "0.70386815", "0.7038469", "0.6977563", "0.6976283", "0.6912273", "0.69085896", "0.6874977", "0.682688", "0.6762801", "0.6739425", "0.6739425", "0.6739425", "0.67094153", "0.6709098", "0.66875976", "0.66789657", "0.6674226", "0.66697806"...
0.0
-1
The billable rate to use for this user when they are added to a project.
public function getDefaultHourlyRate(): ?float { return $this->defaultHourlyRate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBillableAmount() : float\n {\n return $this->billableAmount;\n }", "public function getAmountRate()\n {\n return $this->amountRate;\n }", "public function getRate() {\n return $this->rate;\n }", "public function toMoney()\n {\n return $this->ra...
[ "0.6737792", "0.61487097", "0.6132963", "0.61248946", "0.6123719", "0.6123719", "0.6123719", "0.6123719", "0.6123719", "0.6032343", "0.6017798", "0.6017798", "0.5932584", "0.57452494", "0.5685986", "0.567888", "0.5677948", "0.5677948", "0.5677948", "0.5676787", "0.5644843", ...
0.0
-1
The billable rate to use for this user when they are added to a project.
public function setDefaultHourlyRate(?float $defaultHourlyRate): self { $this->initialized['defaultHourlyRate'] = true; $this->defaultHourlyRate = $defaultHourlyRate; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBillableAmount() : float\n {\n return $this->billableAmount;\n }", "public function getAmountRate()\n {\n return $this->amountRate;\n }", "public function getRate() {\n return $this->rate;\n }", "public function getRate()\n {\n return $this->ra...
[ "0.67363626", "0.61487997", "0.6133954", "0.6124631", "0.6124631", "0.6124631", "0.6124631", "0.6124631", "0.6124529", "0.6032216", "0.60189426", "0.60189426", "0.5931399", "0.5745432", "0.5685813", "0.56779295", "0.5677518", "0.5677518", "0.5677518", "0.56753707", "0.5644434...
0.0
-1
Descriptive names of the business roles assigned to this person. They can be used for filtering reports, and have no effect in their permissions in Harvest.
public function getRoles(): ?array { return $this->roles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRolesNames ();", "public static function getRolesNames()\n {\n return ArrayHelper::getColumn(static::getNotDefaultRoles(), 'name');\n }", "public function getRoles()\n\t{\n\t\t$roles = array_map(function($value)\n\t\t{\n\t\t\treturn Html::a($value, $value->links['self']);\n\t\t}...
[ "0.7013869", "0.70003366", "0.6958998", "0.69506437", "0.68633217", "0.6845099", "0.6693507", "0.66211915", "0.65939087", "0.6589485", "0.6567311", "0.6550298", "0.6456864", "0.644433", "0.644174", "0.6432512", "0.64042497", "0.6403491", "0.64018035", "0.6395029", "0.63549507...
0.0
-1
Descriptive names of the business roles assigned to this person. They can be used for filtering reports, and have no effect in their permissions in Harvest.
public function setRoles(?array $roles): self { $this->initialized['roles'] = true; $this->roles = $roles; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRolesNames ();", "public static function getRolesNames()\n {\n return ArrayHelper::getColumn(static::getNotDefaultRoles(), 'name');\n }", "public function getRoles()\n\t{\n\t\t$roles = array_map(function($value)\n\t\t{\n\t\t\treturn Html::a($value, $value->links['self']);\n\t\t}...
[ "0.7014604", "0.7000951", "0.6958543", "0.69508016", "0.6864135", "0.6844285", "0.6693432", "0.6621631", "0.6594212", "0.6590019", "0.65680724", "0.6550222", "0.6457476", "0.6444706", "0.6442908", "0.6432932", "0.64045364", "0.64037573", "0.6400779", "0.63950837", "0.63554823...
0.0
-1
Date and time the user was created.
public function getCreatedAt(): ?\DateTime { return $this->createdAt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCreatedDate() {\n return $this->get('created_date', 'user');\n }", "function created() {\n return date('Y-m-d H:i:s');\n }", "public function getCreate_time()\r\n {\r\n return $this->create_time;\r\n }", "public function getUserCreated()\n {\n ret...
[ "0.80122006", "0.797557", "0.79517", "0.7810502", "0.7810502", "0.7804862", "0.77925944", "0.7746124", "0.7708143", "0.7693591", "0.767289", "0.7671067", "0.76221955", "0.7592212", "0.75833946", "0.75833946", "0.75833946", "0.75833946", "0.75833946", "0.75833946", "0.75833946...
0.0
-1
Date and time the user was created.
public function setCreatedAt(?\DateTime $createdAt): self { $this->initialized['createdAt'] = true; $this->createdAt = $createdAt; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCreatedDate() {\n return $this->get('created_date', 'user');\n }", "function created() {\n return date('Y-m-d H:i:s');\n }", "public function getCreate_time()\r\n {\r\n return $this->create_time;\r\n }", "public function getUserCreated()\n {\n ret...
[ "0.80122006", "0.797557", "0.79517", "0.7810502", "0.7810502", "0.7804862", "0.77925944", "0.7746124", "0.7708143", "0.7693591", "0.767289", "0.7671067", "0.76221955", "0.7592212", "0.75833946", "0.75833946", "0.75833946", "0.75833946", "0.75833946", "0.75833946", "0.75833946...
0.0
-1
Date and time the user was last updated.
public function getUpdatedAt(): ?\DateTime { return $this->updatedAt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function lastUpdated()\n {\n // TODO: Implement lastUpdated() method.\n return self::$user['updated_at'];\n\n }", "public function getUpdatedTime() {\r\n return $this->updated_time;\r\n }", "public function getUpdate_time()\r\n {\r\n return $this->update_time;\r\n }"...
[ "0.85422254", "0.77593565", "0.77030116", "0.76657414", "0.7511567", "0.7474671", "0.746905", "0.746905", "0.74567455", "0.74439704", "0.74261713", "0.7421215", "0.7421215", "0.741876", "0.73913664", "0.73913664", "0.7375552", "0.7375552", "0.7375552", "0.7375552", "0.7372403...
0.0
-1
Date and time the user was last updated.
public function setUpdatedAt(?\DateTime $updatedAt): self { $this->initialized['updatedAt'] = true; $this->updatedAt = $updatedAt; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function lastUpdated()\n {\n // TODO: Implement lastUpdated() method.\n return self::$user['updated_at'];\n\n }", "public function getUpdatedTime() {\r\n return $this->updated_time;\r\n }", "public function getUpdate_time()\r\n {\r\n return $this->update_time;\r\n }"...
[ "0.85422254", "0.77593565", "0.77030116", "0.76657414", "0.7511567", "0.7474671", "0.746905", "0.746905", "0.74567455", "0.74439704", "0.74261713", "0.7421215", "0.7421215", "0.741876", "0.73913664", "0.73913664", "0.7375552", "0.7375552", "0.7375552", "0.7375552", "0.7372403...
0.0
-1
Set navigation for "Modules"
protected function configureBackendNavigation(): void { $navigationModulesId = $this->setNavigation(null, 'Modules'); $this->setNavigation( $navigationModulesId, $this->getModule(), 'media_galleries/media_gallery_index', [ 'media_galler...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getModuleMenu() {}", "protected function getModuleMenu() {}", "protected function getModuleMenu() {}", "public function moduleNavigation() {\n\t\t$out = '';\n\t\tif($modules = DataObject::get('WorkflowCategory', '', 'priority ASC')) {\n\t\t\tforeach ($modules as $module) {\n\t\t\t\tif (Per...
[ "0.6798846", "0.679673", "0.679673", "0.67157423", "0.667608", "0.6660322", "0.6555966", "0.6486355", "0.6460155", "0.64191127", "0.63718", "0.6340679", "0.6331853", "0.62807184", "0.62178624", "0.6217156", "0.6217122", "0.62168646", "0.62005675", "0.6139522", "0.6129061", ...
0.6613893
6
check if module is enabled
public function isEnabled() { if ((string)$this->global->enabled === "1") { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _isModuleEnabled()\n {\n return $this->_helper->isEnabled();\n }", "public function _isEnabledModule()\r\n {\r\n return ($this->scopeConfig->getValue(self::ENABLE_MODULE)) ? true:false ;\r\n }", "public function isModuleEnable()\n {\n return $this->helperD...
[ "0.8316367", "0.8211139", "0.80676585", "0.8033061", "0.7948994", "0.7878458", "0.7668826", "0.76385516", "0.76385516", "0.7519524", "0.7504649", "0.74970454", "0.74545336", "0.74489254", "0.74104905", "0.7393989", "0.73669225", "0.73565775", "0.7355135", "0.73424286", "0.732...
0.66589797
59
Run the database seeds.
public function run() { //roles $super_admin = Role::create(['name' => 'super-admin', 'description' => 'Super Administrador']); $admin = Role::create(['name' => 'administer', 'description' => 'Administrador del sistema']); $user = Role::create(['name' => 'user', 'descrip...
{ "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
Simulate shop for 1.3 / 1.4
public function getID() { return 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateshops() {\n\n\tif (rand(1,8)<2) {\t// shops replenish too fast - slow them down\n\t\t// for now let's just pick a random inventory item and increase it by 1 (up to max)\n\t\t// FIXME: cant get RAND to work with UPDATE !?!?\n\t\t// $result=mysql_query(\"UPDATE phaos_shop_inventory SET quantity=quanti...
[ "0.6052192", "0.5908422", "0.58461493", "0.5763058", "0.56733954", "0.5625444", "0.5528824", "0.5499307", "0.5499307", "0.5476716", "0.5473365", "0.54683244", "0.5443562", "0.5442309", "0.5422682", "0.5412495", "0.54113334", "0.5369834", "0.53279763", "0.53267777", "0.5302168...
0.0
-1
Get shop theme name
public function getTheme() { return _THEME_NAME_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getThemeName() {}", "public function get_theme_name(){\n\t\treturn $this->current_theme;\n\t}", "function get_theme_name(){\n\tglobal $theme;\n\treturn $theme->get_theme_name();\n}", "public function getThemeName(){\n\t\treturn $info->name;\n\t}", "public function getTheme() {\n retu...
[ "0.8378498", "0.8289977", "0.8189544", "0.817327", "0.80988276", "0.8078548", "0.7995568", "0.79778916", "0.7933194", "0.7677797", "0.7669818", "0.7487091", "0.7430291", "0.72055596", "0.71933496", "0.710634", "0.7090857", "0.70623654", "0.7055624", "0.70372576", "0.7008686",...
0.80117714
6
Get the package name.
public function getPackage() { return $this->package; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_package_name()\n {\n return $this->_package_name;\n }", "public function getPackageName()\n {\n return $this->package_name;\n }", "public function getPackagedName()\n {\n return Generator::getPackageName() . $this->getContextualPart() . ucfirst(self::uniqueName($...
[ "0.8664686", "0.82033145", "0.80060035", "0.7870606", "0.7836645", "0.75766784", "0.7300283", "0.7277384", "0.72658867", "0.7123169", "0.7106426", "0.7001965", "0.69703996", "0.69418854", "0.6934462", "0.6909492", "0.6907871", "0.6905329", "0.6849536", "0.6812478", "0.6807389...
0.7029798
12
Set the package name.
public function setPackage( $package ) { $this->package = $package; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setName($name) {\n\t\t$this->_name = $name;\n\t}", "public function setName( string $name ) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->_name = (string)$name;\n\t}", "public function setName($_name)\n {\n if (is_string($_name)) {\n \t$this...
[ "0.6881168", "0.68551207", "0.6842347", "0.68363726", "0.6769118", "0.67673904", "0.67673904", "0.67673904", "0.67673904", "0.67673904", "0.67673904", "0.67673904", "0.67673904", "0.67630726", "0.67630726", "0.67630726", "0.67630726", "0.6752091", "0.67481774", "0.6746145", "...
0.0
-1
Get the UI name.
public function getUI() { return $this->ui; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUiElementName()\n {\n if (array_key_exists(\"uiElementName\", $this->_propDict)) {\n return $this->_propDict[\"uiElementName\"];\n } else {\n return null;\n }\n }", "function ui_title() {\n if (!isset($this->plugin['ui_title'])) {\n retu...
[ "0.7306643", "0.7152161", "0.678674", "0.66871583", "0.66480595", "0.66424924", "0.6619136", "0.6619136", "0.6619136", "0.6619136", "0.6619136", "0.6619136", "0.6619136", "0.6618611", "0.6614704", "0.6540541", "0.65222657", "0.6510794", "0.6503642", "0.64919585", "0.64919585"...
0.0
-1
Set the UI name.
public function setUI( $ui ) { $this->ui = $ui; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setControllerName()\n {\n $this->name = \"tagui\";\n }", "protected function setName($name)\n\t{\n\t\t$this->pageName = $name;\n\t}", "public function setName($name){\n $this->__set('name',$name);\n }", "function setName($value) {\n $this->name = $value;\n }", ...
[ "0.7447792", "0.69254756", "0.6924366", "0.6912408", "0.6907779", "0.6874918", "0.6873667", "0.68566346", "0.68566346", "0.68389255", "0.6837997", "0.6837997", "0.6837997", "0.6837997", "0.6837997", "0.6837997", "0.6837997", "0.6837997", "0.6808324", "0.6808324", "0.68058735"...
0.0
-1
Get the namespace name.
public function getNamespacing() { return $this->namespacing; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_namespace() : string\n {\n return $this->namespace;\n }", "public function getNamespaceName()\n\t{\n\t\t$pos = strrpos($this->name, '\\\\');\n\t\treturn false === $pos ? '' : substr($this->name, 0, $pos);\n\t}", "public function getNamespaceName() {\n\n\t\treturn $this->_namesp...
[ "0.83667487", "0.82175666", "0.7982317", "0.79639864", "0.79602325", "0.7815272", "0.77170026", "0.7694942", "0.75933766", "0.75933766", "0.7515076", "0.74937767", "0.74484116", "0.74405485", "0.7388894", "0.7382573", "0.7357268", "0.73418087", "0.7339329", "0.723244", "0.722...
0.70768213
40
Set the namespace name.
public function setNamespacing( $namespace ) { $this->namespacing = $namespace; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setNamespace($name);", "function setNamespace ($name);", "public function setNamespaceName($namespace);", "public function setNamespaceName($namespace) {\n $this->nsname= $namespace;\n }", "function setNamespace($namespace);", "public function setNamespace($namespace)\n {\n ...
[ "0.83150876", "0.8094634", "0.80790335", "0.8025089", "0.7372484", "0.6973344", "0.68900657", "0.6767861", "0.6759829", "0.6750573", "0.673891", "0.6737784", "0.6560648", "0.65114754", "0.65033734", "0.6493168", "0.6460899", "0.6447308", "0.64254236", "0.64254236", "0.6425423...
0.7480669
4
Get the package namespace.
public function namespacing() { return $this->namespacing ? trim($this->namespacing, '::') . '::' : ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_namespace() : string\n {\n return $this->namespace;\n }", "public function getNamespace(): string\n {\n return $this->namespace;\n }", "public function getNamespace(): string\n {\n return $this->namespace;\n }", "public function getNamespace()\n {...
[ "0.80943525", "0.7913865", "0.7913865", "0.7894293", "0.78006256", "0.7774496", "0.7770916", "0.77511144", "0.77464825", "0.7740753", "0.77317023", "0.77317023", "0.77317023", "0.77317023", "0.77317023", "0.77317023", "0.77317023", "0.77317023", "0.77317023", "0.77317023", "0...
0.0
-1
Resolve a namespaced line.
protected function resolve($resolver, $key, $arguments = null) { // Get the package namespace $namespace = stripos($key, '::') === false ? $this->namespacing() : ''; // Get the package line $line = str_singular($this->package) . '.' .$key; // Use package namespace line ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function parse(&$line)\n {\n foreach ($this->_pattern as $key => $magicConstant) {\n $line = str_replace($key, $magicConstant, $line);\n }\n\n return $line;\n }", "public function getLine($line);", "abstract public function parse( $line );", "public function getCa...
[ "0.5477326", "0.52856666", "0.52423686", "0.51126623", "0.50734884", "0.5035769", "0.4964434", "0.48616973", "0.48520038", "0.48306715", "0.48100874", "0.47237137", "0.46904656", "0.46824288", "0.46610004", "0.46496192", "0.46378094", "0.4623076", "0.4611389", "0.46034175", "...
0.4529394
30
Generate a subview for the layout.
public function content($key, array $data = [], $name = null) { // Assign a default content name $name = is_null($name) ? 'content' : $name; // Get the confg line for the view $config = 'views.' . $this->ui . '.' . $key; $line = $this->config($config); if (is_null($l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract function buildShowLayout(): void;", "public function renderLayout();", "abstract protected function getView();", "public function getView();", "protected function makeViewLayout()\n {\n new MakeLayout($this, $this->files);\n }", "public function generate()\r\n {\r\n $loade...
[ "0.62319034", "0.61636245", "0.6123348", "0.585073", "0.58067334", "0.57235694", "0.56795776", "0.56795776", "0.5611649", "0.55342996", "0.5518624", "0.5512464", "0.5436148", "0.53772587", "0.5340117", "0.5329424", "0.53138053", "0.5289246", "0.52350444", "0.52111536", "0.521...
0.0
-1
Generate a modal view.
public function modal($key, array $data = [], $name = null) { // Check to see if the config line is defined $line = $this->config('views.' . $this->ui . '.modal'); if (empty($line)) { // The config line is not defined, so look for it on the esensi::core package $line ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function modalTest()\n {\n return view('main.modalTest');\n }", "public static function getModalView() {\n\t\t$modal = \"<div class='modal-ic-komi-view'></div>\";\n\t\treturn $modal;\n\t}", "public function createShowModal()\n {\n $this->resetValidation();\n $this->resetVar...
[ "0.7483777", "0.7426607", "0.70107925", "0.7002699", "0.69139814", "0.68817985", "0.6868688", "0.6833254", "0.67498213", "0.67201763", "0.6612807", "0.6568027", "0.6554786", "0.6554429", "0.6487733", "0.6455993", "0.64390546", "0.6426881", "0.63476866", "0.63415873", "0.63283...
0.5654332
79
Resolve the templates for an email template.
public function email($key) { // Get the confg line for the view $config = 'emails.' . $this->ui . '.' . $key; $lines = $this->config($config); if (is_null($lines)) { throw new InvalidArgumentException('Email config line ['.$config.'] not found.'); } retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function retrieveEmailTemplates()\n {\n return $this->start()->uri(\"/api/email/template\")\n ->get()\n ->go();\n }", "function edd_pup_get_email_templates() {\r\n\r\n\t$templates = edd_get_email_templates();\r\n\t$eddpdfi_email_templates = array(\r\n\t\t'invoice_default',\r\n\t\t'blue_...
[ "0.63525003", "0.6088721", "0.60688496", "0.60321265", "0.58356386", "0.5826905", "0.5802894", "0.57616144", "0.5741586", "0.5722071", "0.5714392", "0.5658209", "0.5629991", "0.55300725", "0.5522724", "0.54940885", "0.5493797", "0.54857343", "0.5459362", "0.54584885", "0.5457...
0.0
-1
Get a configuration line.
public function config($key, $default = null) { return $this->resolve(app('config'), $key, $default); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLine()\n {\n return $this->get(self::_LINE);\n }", "public function config_get(){\n\t\treturn $this->fb->exec('dhcp.config_get');\n\t}", "public function get_line()\n {\n return $this->line;\n }", "public function getLine() {\n return $this->parse()['line'];\n }", "...
[ "0.62535185", "0.61817116", "0.6088285", "0.6075447", "0.600133", "0.5970064", "0.58608556", "0.58608556", "0.58608556", "0.58608556", "0.58608556", "0.58608556", "0.57797265", "0.577432", "0.5769382", "0.5722998", "0.5722998", "0.5722998", "0.5722998", "0.5722998", "0.572299...
0.0
-1
Get a TTL configuration line.
public function ttl($key, $default = null) { return $this->config('ttl.' . $key, $default); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function GetTTL();", "public function getDrift($ttl);", "public function getTTL(): float\n {\n return $this->ttl;\n }", "public function getCacheTTL();", "public function getTtl()\n {\n return $this->ttl;\n }", "public function getTtl(): int\n {\n return $this->...
[ "0.5902753", "0.54882276", "0.54537094", "0.5408284", "0.53726435", "0.52404267", "0.5219748", "0.520688", "0.5140868", "0.51330835", "0.50783265", "0.49992022", "0.49475816", "0.49444142", "0.49205697", "0.48859218", "0.48805994", "0.48712775", "0.48224947", "0.48178726", "0...
0.4924158
14
Get a language line.
public function language($key, array $replacements = []) { return $this->resolve(app('translator'), $key, $replacements); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get($line, array $params = array(), $default = null, $language = null) {\n\t\t($language === null) and $language = static::get_lang ();\n\t\t\n\t\treturn isset ( static::$lines [$language] ) ? \\Str::tr ( \\Fuel::value ( \\Arr::get ( static::$lines [$language], $line, $default ) ), $params )...
[ "0.69607234", "0.6707883", "0.6643836", "0.6639657", "0.6355696", "0.63289326", "0.63188434", "0.62352264", "0.6233133", "0.61606246", "0.6033768", "0.6033768", "0.6033768", "0.6033768", "0.6033768", "0.6033768", "0.6010309", "0.5999274", "0.5980491", "0.59678704", "0.595185"...
0.0
-1
Get an error language line.
public function error($key, array $replacements = []) { return $this->language('errors.' . $key, $replacements); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLine(): int\n\t{\n\t\treturn $this->err->getLine();\n\t}", "function line($line = '')\n\t{\n\t\treturn ($line == '' OR ! isset($this->language[$line])) ? FALSE : $this->language[$line];\n\t}", "public function getError();", "public function getError();", "public function getError();", ...
[ "0.61030006", "0.6051544", "0.6028134", "0.6028134", "0.6028134", "0.6024384", "0.5979263", "0.595934", "0.5941412", "0.5941412", "0.5939918", "0.58470196", "0.58386606", "0.58378106", "0.58378106", "0.5723251", "0.571055", "0.57094175", "0.56904197", "0.5685686", "0.5685686"...
0.0
-1
Get a message language line.
public function message($key, array $replacements = []) { return $this->language('messages.' . $key, $replacements); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLine()\n {\n return $this->get(self::_LINE);\n }", "public static function get($line, array $params = array(), $default = null, $language = null) {\n\t\t($language === null) and $language = static::get_lang ();\n\t\t\n\t\treturn isset ( static::$lines [$language] ) ? \\Str::tr ( \...
[ "0.66350937", "0.6435465", "0.6397483", "0.6329912", "0.6282423", "0.61834973", "0.61148477", "0.6036753", "0.6036753", "0.6036753", "0.6036753", "0.6036753", "0.6036753", "0.6008673", "0.60006803", "0.59950864", "0.59228057", "0.5918139", "0.5845985", "0.5809959", "0.5807591...
0.0
-1
Get an option language line.
public function option($key, array $replacements = []) { return $this->language('options.' . $key, $replacements); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getLanguageSelection() {}", "public static function get($line, array $params = array(), $default = null, $language = null) {\n\t\t($language === null) and $language = static::get_lang ();\n\t\t\n\t\treturn isset ( static::$lines [$language] ) ? \\Str::tr ( \\Fuel::value ( \\Arr::get ( static::...
[ "0.6233816", "0.62315345", "0.60979295", "0.585773", "0.5821248", "0.58189034", "0.58136725", "0.5793499", "0.57545185", "0.57178026", "0.57178026", "0.57178026", "0.57178026", "0.57178026", "0.57178026", "0.5622837", "0.55972636", "0.5588424", "0.55370677", "0.55024445", "0....
0.0
-1
Get a subject language line.
public function subject($key, array $replacements = []) { return $this->language('subjects.' . $key, $replacements); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function line($line = '')\n\t{\n\t\treturn ($line == '' OR ! isset($this->language[$line])) ? FALSE : $this->language[$line];\n\t}", "public function getLine()\n {\n return $this->get(self::_LINE);\n }", "public function getLang();", "public function line($text) { return $this->l($text); }", "...
[ "0.58132184", "0.5786559", "0.57482797", "0.5705911", "0.5700131", "0.56704456", "0.56672674", "0.561209", "0.5581823", "0.5573367", "0.55361533", "0.5509255", "0.5501547", "0.5501547", "0.54551744", "0.54496944", "0.5446885", "0.54461676", "0.54461676", "0.54461676", "0.5446...
0.0
-1
Generate a redirect back.
public function back($key, array $params = []) { // Short circuit to referrer URL or follow redirect $referer = app('request')->header('referer'); $redirect = ! empty($referer) ? app('redirect')->back() : $this->redirect($key, $params); return $redirect; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _redirectBack()\n {\n $this->_helper->redirector->gotoUrl($this->_request->getServer('HTTP_REFERER'));\n }", "public function redirectBack()\n {\n $httpReferer = $this->referer();\n $previousRoute = \\explode(\"?\", $httpReferer)[0];\n\n $this->redirect($p...
[ "0.76929986", "0.7628157", "0.7383962", "0.7237488", "0.70558494", "0.693268", "0.6841236", "0.6814006", "0.6814006", "0.6814006", "0.6792978", "0.6785673", "0.67082316", "0.665177", "0.66407925", "0.66366744", "0.65727246", "0.656447", "0.6529712", "0.6513135", "0.64939535",...
0.6000528
79
Combine the event name with the namespace of the package.
public function getNamespacedEventName($name) { $namespace = trim($this->namespacing(), '::'); $namespace = ! empty($namespace) ? $namespace . '.' : ''; return strtolower($namespace . $this->package . '.' . $name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getEventNamespace(): string\n {\n return Components::detectClassComponent(static::class)->slug . ':' . static::class;\n }", "protected function getPackageName(PackageEvent $event)\n {\n return $this->getPackage($event)->getName();\n }", "public static function g...
[ "0.7164336", "0.636638", "0.60878617", "0.6079372", "0.6065608", "0.6060202", "0.60278594", "0.6019438", "0.59989625", "0.59707975", "0.59707975", "0.5948002", "0.594338", "0.59385395", "0.5918697", "0.5863427", "0.5863066", "0.58243495", "0.5823832", "0.5796731", "0.5767998"...
0.7438675
0
Fire a namespaced event until the first nonnull response.
public function eventUntil($name, array $arguments = []) { return app('events')->until($this->getNamespacedEventName($name), $arguments); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function pollFirst();", "public function until($event, $payload = []);", "function _startElement ($parser, $name, $attrs)\r {\r if ((($this->_parseMode == EBATNS_PARSEMODE_CALL || $this->_parseMode == EBATNS_PARSEMODE_CALLEXTENSION) \r && !$this->_inResponse && $name != $this->_wait...
[ "0.47958156", "0.47638327", "0.46877322", "0.4429249", "0.44134843", "0.44076666", "0.4395229", "0.43935874", "0.41741663", "0.41638836", "0.41621882", "0.41303372", "0.4116794", "0.41009158", "0.40984026", "0.40906233", "0.40895507", "0.40809318", "0.40563822", "0.40557435", ...
0.0
-1
Fire a namespaced event.
public function eventFire($name, array $arguments = []) { return app('events')->dispatch($this->getNamespacedEventName($name), $arguments); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fireEvent($eventName) {}", "public function getNamespacedEventName($name)\n {\n $namespace = trim($this->namespacing(), '::');\n $namespace = ! empty($namespace) ? $namespace . '.' : '';\n return strtolower($namespace . $this->package . '.' . $name);\n }", "public fun...
[ "0.65423495", "0.55460143", "0.55250466", "0.54567826", "0.54061586", "0.5394785", "0.53767425", "0.52946305", "0.5280783", "0.52439815", "0.52439815", "0.5170199", "0.51611525", "0.5108261", "0.5101814", "0.5101814", "0.49915344", "0.49723879", "0.49132532", "0.48353076", "0...
0.44371966
65
Queue a namespaced event.
public function eventQueue($name, array $arguments = []) { return $this->eventPush($name, $arguments); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function queueEvent($eventId);", "public static function queue($event)\n {\n }", "private function dispatchEventJob (EventQueue $queue)\n {\n $job = $queue->event_detail->job_name;\n if ( !$job ) return;\n\n //check if job class exists before calling\n if ( !...
[ "0.65994775", "0.6236877", "0.5639359", "0.55879915", "0.5328891", "0.5304475", "0.5304475", "0.5301795", "0.5287511", "0.522366", "0.51814777", "0.5167485", "0.498279", "0.49123147", "0.4893733", "0.48902804", "0.48871022", "0.4869249", "0.484824", "0.48392546", "0.4828712",...
0.46618327
40
Push a namespaced event onto the queue.
public function eventPush($name, array $arguments = []) { return app('events')->push($this->getNamespacedEventName($name), $arguments); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function queueEvent($eventId);", "public static function queue($event)\n {\n }", "public function publishEventToQueue(Serializable $event): void\n {\n $message = ['event' => get_class($event), 'serialize' => $event->serialize()];\n $this->queueProducer->sendEvent($this->qu...
[ "0.6102147", "0.59909034", "0.57724565", "0.5476742", "0.5391619", "0.53495187", "0.53378206", "0.52991784", "0.52576053", "0.52287036", "0.51965773", "0.5160306", "0.5110873", "0.5104793", "0.50974536", "0.5087875", "0.5056592", "0.505441", "0.500303", "0.49867207", "0.49667...
0.46477693
59
REQUIRED. Set up a constructor that references the parent constructor. We use the parent reference to set some default configs.
function __construct(){ global $status, $page; //Set parent defaults parent::__construct( array( 'singular' => 'listing', //singular name of the listed records 'plural' => 'listings', //plural name of the listed records 'ajax' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct()\n\t{\n\t\t// Make sure that parent constructor is always invoked, since that\n\t\t// is where any default values for this object are set.\n\t\tparent::__construct();\n\t}", "public function __construct()\n\t{\n\t\t// Make sure that parent constructor is always invoked, since that\n\...
[ "0.77249676", "0.77249676", "0.77249676", "0.77249676", "0.77249676", "0.77249676", "0.77249676", "0.77249676", "0.77249676", "0.77249676", "0.77249676", "0.77249676", "0.77249676", "0.76227254", "0.7559854", "0.75488496", "0.7508623", "0.7508623", "0.7508623", "0.7508623", "...
0.0
-1
Recommended. This method is called when the parent class can't find a method specifically build for a given column. Generally, it's recommended to include one method for each column you want to render, keeping your package class neat and organized. For example, if the class needs to process a column named 'title', it w...
function column_default($item, $column_name){ switch($column_name){ case 'type': case 'quantity_sold': case 'asin': case 'status': return $item[$column_name]; case 'fees': case 'price': return $this->number_f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function columns();", "protected function get_column_info()\n {\n }", "protected function get_column_info()\n {\n }", "protected function _prepareColumns()\n\t{\n\t\t$this->addColumn('id',\n\t\t\t\tarray(\n\t\t\t\t\t\t'header'=> $this->__('ID'),\n\t\t\t\t\t\t'al...
[ "0.6470815", "0.6279414", "0.62791187", "0.6237916", "0.6227969", "0.6206913", "0.61997426", "0.61968255", "0.617465", "0.6170329", "0.61668247", "0.61647385", "0.61469716", "0.61423624", "0.61210823", "0.6120176", "0.61140084", "0.60978687", "0.6071302", "0.6036948", "0.6031...
0.0
-1
overwrite WP_List_Table::single_row to insert optional message row
public function single_row( $item ) { echo '<tr>'; $this->single_row_columns( $item ); $this->displayMessageRow( $item ); echo '</tr>'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_row($selector, $row = \\false, $post_id = \\false)\n{\n}", "function add_sub_row($selector, $row = \\false, $post_id = \\false)\n{\n}", "function single_row( $item ) {\r\n\t\tstatic $row_class = '';\r\n\r\n\t\t// WP 4.2+ uses \"striped\" CSS styles to implement \"alternate\"\r\n\t\tif ( version_co...
[ "0.6295404", "0.5945382", "0.5917445", "0.58279717", "0.58221585", "0.5644677", "0.5599541", "0.5599541", "0.55975413", "0.5569235", "0.54667115", "0.5455615", "0.5451195", "0.53785753", "0.5373998", "0.5261557", "0.523028", "0.5226587", "0.52214026", "0.5194971", "0.51915973...
0.6246777
1
show errors and warnings
function displayMessageRow( $item ){ $listing_title = ''; // show errors and warning on online and failed items if ( in_array( $item['status'], array( 'online', 'failed' ) ) ) { $history = maybe_unserialize( $item['history'] ); $tips_errors = array(); $tip...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function show_errors() {\n\t\t\t$this->show_errors = true;\n\t\t}", "function show_errors()\n\t\t{\n\t\t\t$this->show_errors = true;\n\t\t}", "function show_errors()\n\t\t{\n\t\t\t$this->show_errors = true;\n\t\t}", "public function showError();", "public static function show_errors(){\n\t\t\tself::$SHOWIN...
[ "0.7737365", "0.772229", "0.772229", "0.76137996", "0.75079256", "0.7334275", "0.72469276", "0.72212404", "0.6988639", "0.6900124", "0.68694216", "0.68088216", "0.6800063", "0.67903256", "0.67903256", "0.6674271", "0.6671123", "0.6639078", "0.66142815", "0.66142166", "0.66098...
0.0
-1
for parent variations variations check each price...
function column_price($item){ if ( $item['post_id'] && WPLA_ProductWrapper::hasVariations( $item['post_id'] ) ) { $variations = $this->getProductVariations( $item['post_id'] ); if ( ! is_array($variations) || ! sizeof($variations) ) return ''; $price_min = PHP_INT_MAX; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_on_sale() {\n\t\n\t\tif ( $this->has_child() ) :\n\t\t\n\t\t\t$onsale = false;\n\t\t\t\n\t\t\tforeach ($this->children as $child) :\n\t\t\t\tif ( isset($child->product->data['sale_price']) && $child->product->data['sale_price']==$child->product->price ) :\n\t\t\t\t\treturn true;\n\t\t\t\tendif;\n\t\t\t...
[ "0.66020596", "0.63148606", "0.61230445", "0.6019033", "0.59610105", "0.5939815", "0.58777785", "0.5857147", "0.58443433", "0.570069", "0.56907254", "0.56128234", "0.56028163", "0.55940706", "0.55913746", "0.5588766", "0.55731744", "0.55629194", "0.5557842", "0.55541164", "0....
0.55964077
13
get profile object if possible from cache
function getProfile( $profile_id ) { // update cache if required if ( $this->last_profile_id != $profile_id ) { $this->last_profile_object = new WPLA_AmazonProfile( $profile_id ); $this->last_profile_id = $profile_id; } return $this->last_profile_object; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getProfile(){\n $profile = $this->loadUser();\n return $profile;\n }", "public function getProfile(){\n\t\treturn (new Profile($this->userName));\n\t}", "function yz_profile() {\n\treturn Youzer_Profile::get_instance();\n}", "public function fetch(): object\n {\n return $t...
[ "0.7011431", "0.6802176", "0.6677892", "0.6673705", "0.6673705", "0.65596294", "0.6528889", "0.65261894", "0.65084875", "0.6487563", "0.6487563", "0.6487563", "0.6469138", "0.6325378", "0.6320044", "0.63184", "0.6308052", "0.629311", "0.6285728", "0.62789893", "0.6217724", ...
0.69050723
1
get product object if possible from cache
function getProduct( $post_id ) { // update cache if required if ( $this->last_product_id != $post_id ) { $this->last_product_object = wc_get_product( $post_id ); $this->last_product_id = $post_id; } return $this->last_product_object; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function product( )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n $ret = new eZProduct( $this->ProductID );\n \n return $ret;\n }", "protected function _getProduct()\n {\n if (!$this->_product) {\n $this->_product = $this...
[ "0.68839234", "0.6856231", "0.6771152", "0.6697587", "0.66940814", "0.66208065", "0.6599815", "0.65619075", "0.6553598", "0.65498453", "0.65498453", "0.65498453", "0.6533188", "0.64223444", "0.64223444", "0.6408147", "0.6383503", "0.635589", "0.6354054", "0.6308353", "0.62998...
0.61617404
25
get product variations if possible from cache
function getProductVariations( $post_id ) { // update cache if required if ( $this->last_product_var_id != $post_id ) { $this->last_product_variations = WPLA_ProductWrapper::getVariations( $post_id ); $this->last_product_var_id = $post_id; } return $this...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_woocommerce_product_list() {\n\t$full_product_list = array();\n\t$products = new WP_Query( array(\n\t\t'post_type' => array( 'product', 'product_variation' ),\n\t\t'posts_per_page' => - 1,\n\t\t'product_cat' => 'learn',\n\t) );\n\n\t$products = $products->posts;\n\n\tforeach ( $produc...
[ "0.646947", "0.61799383", "0.6152451", "0.608554", "0.60367185", "0.6032799", "0.6030406", "0.598879", "0.5983093", "0.59770244", "0.5905447", "0.5901039", "0.58955264", "0.5884197", "0.586345", "0.5836014", "0.58249617", "0.57974774", "0.5783396", "0.5780727", "0.57726747", ...
0.6040774
4
REQUIRED if displaying checkboxes or using bulk actions! The 'cb' column is given special treatment when columns are processed. It ALWAYS needs to have it's own method.
function column_cb($item){ return sprintf( '<input type="checkbox" name="%1$s[]" value="%2$s" />', /*$1%s*/ $this->_args['singular'], //Let's simply repurpose the table's singular label ("listing") /*$2%s*/ $item['id'] //The value of the checkbox should be the recor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function column_cb($item)\r\r\n {\r\r\n //\treturn sprintf( '<input type=\"checkbox\" name=\"bulk-select[]\" value=\"%s\" />', $item->ID );\r\r\n }", "function column_cb( $item ) {\n\t\t//return sprintf( $item['stock_id'] );\n\t\t//return sprintf('<input type=\"checkbox\" name=\"b...
[ "0.74917656", "0.7435229", "0.73371387", "0.73143846", "0.73033875", "0.72856563", "0.727545", "0.7255724", "0.70694566", "0.7044173", "0.69993967", "0.6994152", "0.6977276", "0.6961794", "0.6940149", "0.6940149", "0.6940149", "0.6938849", "0.6938849", "0.6938849", "0.6938079...
0.72991127
5
REQUIRED! This method dictates the table's columns and titles. This should return an array where the key is the column slug (and class) and the value is the column's title text. If you need a checkbox for bulk actions, refer to the $columns array below. The 'cb' column is treated differently than the rest. If including...
function get_columns(){ $columns = array( 'cb' => '<input type="checkbox" />', //Render a checkbox instead of text 'img' => __( 'Image', 'wp-lister-for-amazon' ), 'sku' => __( 'SKU', 'wp-lister-for-amazon' ), 'listing_title' =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_columns()\n\t{\n\t\t$columns = array();\n\t\t$class = $this->activeRecordClass;\n\t\t\n\t\tif ( ! empty( $this->bulkActions ) )\n\t\t{\n\t\t\t$columns[ 'cb' ] = '<input type=\"checkbox\" />';\n\t\t}\n\t\t\n\t\tif ( isset( $this->columns ) )\n\t\t{\n\t\t\t$columns = array_merge( $columns, $this-...
[ "0.770147", "0.72612435", "0.7080554", "0.70650494", "0.6988134", "0.6985066", "0.6981752", "0.695819", "0.6878438", "0.6789337", "0.67866886", "0.67840815", "0.67818063", "0.6773149", "0.67706084", "0.67589915", "0.67551255", "0.6746788", "0.6738671", "0.67214566", "0.671955...
0.6290984
50
Optional. If you want one or more columns to be sortable (ASC/DESC toggle), you will need to register it here. This should return an array where the key is the column that needs to be sortable, and the value is db column to sort by. Often, the key and value will be the same, but this is not always the case (as the valu...
function get_sortable_columns() { $sortable_columns = array( 'date_published' => array('date_published',false), //true means its already sorted 'listing_title' => array('listing_title',false), 'quantity' => array('quantity',false), 'price' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_sortable_columns() {\n return $sortable = array(\n \"col_user\"=>array(\"user_login\",false),\n \"col_groupName\"=>array(\"groupName\",false)\n );\n }", "function get_sortable_columns()\n {\n $sortable_columns = array(\n// 'id' => arra...
[ "0.8203006", "0.819806", "0.8177926", "0.81510276", "0.81334066", "0.811198", "0.8089933", "0.80892706", "0.8087506", "0.8067091", "0.80648834", "0.8041721", "0.8014852", "0.7996868", "0.79708755", "0.7958342", "0.79559505", "0.79559505", "0.7942052", "0.7930315", "0.78993297...
0.7976938
14
Optional. If you need to include bulk actions in your list table, this is the place to define them. Bulk actions are an associative array in the format 'slug'=>'Visible Title' Also note that list tables are not automatically wrapped in elements, so you will need to create those manually in order for bulk actions to fun...
function get_bulk_actions() { $actions = array( // 'update' => __( 'Update details from Amazon', 'wp-lister-for-amazon' ), // TODO // 'reapply' => __( 'Re-apply profile', 'wp-lister-for-amazon' ), // 'end_item' => __( 'Pause listings', 'wp-lister-for-amazon' ), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function get_bulk_actions()\n {\n }", "protected function get_bulk_actions()\n {\n }", "function get_bulk_actions( ) {\r\n\t\t$actions = array();\r\n\r\n\t\tif ( $this->is_trash ) {\r\n\t\t\t$actions['restore'] = __( 'Restore', 'media-library-assistant' );\r\n\t\t\t$action...
[ "0.6617141", "0.6616945", "0.65267926", "0.6427139", "0.6425721", "0.6418086", "0.6405519", "0.6347333", "0.6343649", "0.6271729", "0.6236177", "0.6216175", "0.6202172", "0.61953837", "0.6183305", "0.61396444", "0.6099587", "0.60669327", "0.60669327", "0.6030608", "0.6006115"...
0.6532614
2
Optional. You can handle your bulk actions anywhere or anyhow you prefer. For this example package, we will handle it in the class to keep things clean and organized.
function process_bulk_action() { global $wbdb; //Detect when a bulk action is being triggered... if( 'delete'===$this->current_action() ) { #wp_die('Items deleted (or they would be if we had items to delete)!'); #$wpdb->query("DELETE FROM {$wpdb->prefix}amazon_li...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function get_bulk_actions()\n {\n }", "protected function get_bulk_actions()\n {\n }", "function process_bulk_action() {\n\t\t\n\t\t//Detect when a bulk action is being triggered...\n\t\tif( 'delete'=== $this->current_action() ) {\n\t\t\twp_die( 'Items deleted (or they wou...
[ "0.80978477", "0.80977654", "0.7501694", "0.7411748", "0.7246197", "0.7233409", "0.7109676", "0.7087637", "0.7050037", "0.7009967", "0.697412", "0.69441736", "0.69395", "0.6913532", "0.6913532", "0.6869704", "0.6869666", "0.68279386", "0.6771851", "0.66670257", "0.66552174", ...
0.75569177
2
Generates the table navigation above or bellow the table and removes the _wp_http_referer and _wpnonce because it generates a error about URL too large
function display_tablenav( $which ) { $mode = isset($_REQUEST['mode']) ? wpla_clean($_REQUEST['mode']) : 'list'; ?> <div class="tablenav <?php echo esc_attr( $which ); ?>"> <div class="alignleft actions"> <?php $this->bulk_actions(); ?> </div> ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function renderBrokenLinksTable() {}", "function extra_tablenav( $which ) {\n if ( $which == \"top\" ){\n //The code that goes before the table is here\n echo \"<h2>Funny Quotes<a href='admin.php?page=add_funny_quotes' class='add-new-h2'>+ Ajouter une nouvelle citation</a><...
[ "0.60313797", "0.60168725", "0.5852999", "0.5846631", "0.58126706", "0.56766397", "0.56577694", "0.5551725", "0.5550415", "0.5546814", "0.55014753", "0.54818106", "0.54716086", "0.54589957", "0.5439701", "0.5427568", "0.5424297", "0.5383421", "0.5367173", "0.53512335", "0.534...
0.0
-1
REQUIRED! This is where you prepare your data for display. This method will usually be used to query the database, sort and filter the data, and generally get it ready to be displayed. At a minimum, we should set $this>items and $this>set_pagination_args(), although the following properties and methods are frequently i...
function prepare_items( $items = false ) { // process bulk actions $this->process_bulk_action(); // get pagination state $current_page = $this->get_pagenum(); $per_page = $this->get_items_per_page('listings_per_page', 20); // def...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function prepare_items() {\n\t\t\n\t\t// Get how many records per page to show\n\t\t$per_page\t= $this->per_page;\n\t\t\n\t\t// Get All, Hidden, Sortable columns\n\t\t$columns\t= $this->get_columns();\n\t\t$hidden \t= array();\n\t\t$sortable \t= $this->get_sortable_columns();\n\t\t\n\t\t// Get final column header\...
[ "0.8033512", "0.7923114", "0.7846496", "0.77490413", "0.7504822", "0.7463514", "0.7409375", "0.7389718", "0.7307089", "0.7230815", "0.72013706", "0.7191535", "0.7160296", "0.7131162", "0.71161544", "0.70649695", "0.70639604", "0.7018044", "0.6965505", "0.6922046", "0.690366",...
0.6690872
28
small helper to make sure $price is not a string
function number_format( $price, $decimals = 2 ) { return number_format_i18n( floatval($price), $decimals ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function validatePrice($price)\n {\n if (!is_numeric($price)) {\n return \"Please type a valid price\";\n }\n }", "function validatePrice()\n {\n return empty($this->price)?false:true;\n }", "public function testCreateFromNotString()\n {\n Money::cr...
[ "0.70998216", "0.6641739", "0.6186272", "0.6129545", "0.5958036", "0.59497815", "0.5935939", "0.58309156", "0.58309156", "0.5795915", "0.5741942", "0.57012284", "0.56876934", "0.5639954", "0.56253904", "0.56253904", "0.56229395", "0.56054974", "0.55819744", "0.55308187", "0.5...
0.0
-1
Joom!Fish Controler for the Control Panel
function __construct($config = array()) { parent::__construct($config); $this->registerTask( 'show', 'display' ); $this->registerTask('postInstall', 'postInstall'); $this->registerTask('information', 'information'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionControlPanel()\n {\n $this->render('controlPanel');\n }", "public function panel()\n {\n $panel = new \\Shieldon\\Firewall\\Panel();\n $panel->entry();\n }", "function controller()\n\t\t{\t\n\t\t\t$this->admin_page_header();\n\t\t\t$this->admin_menu();\n\t...
[ "0.71627223", "0.651215", "0.64208484", "0.6297405", "0.60774606", "0.603571", "0.60353106", "0.6023209", "0.59708774", "0.5916611", "0.5908692", "0.59021884", "0.58898145", "0.5880917", "0.58782643", "0.5878095", "0.58114815", "0.5785198", "0.5775819", "0.5768128", "0.576694...
0.0
-1
Standard display control structure
function display($cachable = false, $urlparams = array()) { $this->view = $this->getView("help"); parent::display(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract function display();", "abstract function display();", "public abstract function display();", "public function display(){}", "public function getDisplay();", "function display()\r\n\t {\r\n\t parent::display();\r\n\t }", "function display() {\r\n\t\tparent::display ();\r\n\t}", "...
[ "0.70967865", "0.70967865", "0.6913034", "0.67997974", "0.6762043", "0.6739164", "0.6708138", "0.666625", "0.6647952", "0.6647952", "0.6645737", "0.6645737", "0.66329366", "0.660041", "0.660041", "0.660041", "0.6511873", "0.6511873", "0.6503889", "0.645187", "0.6441038", "0...
0.0
-1
multiple queries from database to admin
public function update() { $this->connect(); mysqli_multi_query($this->con, $this->sql); $this->sql = ""; mysqli_close($this->con); $this->getStories(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function query()\n {\n return Admin::query();\n }", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public fu...
[ "0.6336266", "0.6325932", "0.6325932", "0.6325932", "0.6325932", "0.6325932", "0.6325932", "0.6325932", "0.6325932", "0.6325932", "0.6325932", "0.6325932", "0.6325932", "0.6325932", "0.6325932", "0.6325932", "0.6325932", "0.6325932", "0.6325932", "0.6325932", "0.6325932", "...
0.0
-1
A unique identifier is defined to store the options in the database and reference them from the theme.
function optionsframework_option_name() { // Change this to use your theme slug return 'vieu'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function optionsframework_option_name() {\n\t\t$themename = get_option( 'stylesheet' );\n\t\t$themename = preg_replace(\"/\\W/\", \"_\", strtolower($themename) );\n\t\n\t\t$optionsframework_settings = get_option('optionsframework');\n\t\t$optionsframework_settings['id'] = $themename;\n\t\tupdate_option('optionsfra...
[ "0.6603594", "0.6558042", "0.6504788", "0.6485519", "0.6482863", "0.6433164", "0.6408985", "0.63890195", "0.63649756", "0.63629276", "0.6359281", "0.6338252", "0.6338252", "0.6320288", "0.6316424", "0.6259112", "0.6242717", "0.6238489", "0.6231641", "0.6212818", "0.61924326",...
0.587491
43
Defines an array of options that will be used to generate the settings page and be saved in the database. When creating the 'id' fields, make sure to use all lowercase and no spaces. If you are making your theme translatable, you should replace 'options_framework_theme' with the actual text domain for your theme. Read ...
function optionsframework_options() { // Test data $test_array = array( 'one' => __('One', 'options_framework_theme'), 'two' => __('Two', 'options_framework_theme'), 'three' => __('Three', 'options_framework_theme'), 'four' => __('Four', 'options_framework_theme'), 'five' => __('Five', 'options_framework_t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function optionsframework_options() {\n\n\t$options = array();\n\t$options[] = array(\n\t\t'name' => __('Logo Upload', 'options_check'),\n\t\t'desc' => __('Logo Upload', 'options_check'),\n\t\t'id' => 'logo_upload',\n\t\t'type' => 'upload');\n\n\t$options[] = array(\n\t\t'name' => __('Footer Copyright', 'options_c...
[ "0.76901215", "0.75077313", "0.7358718", "0.73063207", "0.7286981", "0.7284079", "0.7236361", "0.7225575", "0.71874255", "0.7024629", "0.6989876", "0.6892446", "0.6811867", "0.6798462", "0.67745644", "0.6772553", "0.67663133", "0.6761673", "0.67433745", "0.6731729", "0.672815...
0.66805124
28
When we connect we should get a 200 OK from couch
public function testConnect() { self::$sag = new sag\client("127.0.0.1", 5984); $response = self::$sag->getStats(); $this->assertEquals(200, $response->status); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function isConnectSuccessful() {}", "public static function sendOkResponse(){\n http_response_code(200);\n die();\n }", "public function ping(){\n http_response_code(200);\n ob_end_flush();\n }", "public function testConnect() {\n\t\t$client = new \\Esprit\\Transport\\Http(a...
[ "0.64285827", "0.6066676", "0.58446276", "0.5782149", "0.5760063", "0.5724716", "0.56955963", "0.56575966", "0.56302404", "0.56277174", "0.56080234", "0.5606654", "0.5569124", "0.55672777", "0.55611724", "0.55568606", "0.5525591", "0.5525157", "0.55236715", "0.5517172", "0.55...
0.5773891
4
We haven't authed yet, if we can create a db here something is wrong
public function testCreateDbNoAuth() { self::$sag->createDatabase("sag-test-db"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function initDatabase() {\n \n \n \n }", "function check_db(){\n if( ! $this->database_exists() ){\n $this->create_table();\n }\n }", "protected function createDatabaseStructure() {}", "abstract protected function initDB();", "private function mak...
[ "0.7337018", "0.72331345", "0.7182815", "0.70035666", "0.6932822", "0.69129515", "0.6877853", "0.68159664", "0.6785854", "0.6775382", "0.6774484", "0.6746336", "0.66954285", "0.6675554", "0.66463476", "0.6644641", "0.6630942", "0.6627445", "0.65736544", "0.6561102", "0.654309...
0.7032927
3
Fetch a doc that shouldn't exist yet
public function testFetchDoesntExist() { self::$sag->get("foo"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testRetrieveReturnFalseIfNotFound()\n {\n if (! $this->_url) $this->markTestSkipped(\"Test requires a CouchDb server set up - see TestConfiguration.php\");\n $db = $this->_setupDb();\n\n $ret = $db->retrieve('nonexistingdoc');\n $this->assertFalse($ret);\n \n ...
[ "0.71450967", "0.6197753", "0.5921436", "0.5875945", "0.5763566", "0.5703948", "0.56345326", "0.55992043", "0.5566758", "0.5551524", "0.55242133", "0.5523264", "0.5515667", "0.54462475", "0.5440051", "0.53946185", "0.5386363", "0.53138953", "0.53120726", "0.5252978", "0.52290...
0.64492387
1
This doc update should conflict, we're replacing a new rev (2) with an old rev (1)
public function testUpdateConflict() { self::$sag->put("foo", self::$temp); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testUpdateDocumentMetadata()\n {\n }", "function _wp_upgrade_revisions_of_post($post, $revisions)\n {\n }", "function change_revision($file) {\n\n global $DOCDIR, $LANG;\n\n $en_file = preg_replace(\"'^\".$DOCDIR.$LANG.\"/'\", $DOCDIR.\"en/\", $file);\n\n // Get en file cvs revis...
[ "0.61158824", "0.5918505", "0.58002394", "0.56655854", "0.56439906", "0.56054044", "0.5588727", "0.5563737", "0.55597174", "0.55127037", "0.5463727", "0.5453025", "0.53749734", "0.53313017", "0.5324848", "0.5322737", "0.53156227", "0.5273841", "0.52627987", "0.525325", "0.524...
0.5638272
5
Generation d'un GUID au format FB6BD791F5B14D2F9E7832A205A5703D
public static function generateGuid(bool $upperCase = true, bool $withSeparator = true) { $guid = sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x', // 32 bits for "time_low" mt_rand(0, 0xffff), mt_rand(0, 0xffff), // 16 bits for "time_mid" mt_rand(0, 0xffff...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getGuid()\n {\n $data = self::generateCryptoKey(16);\n\n $data[6] = chr(ord($data[6]) & 0x0f | 0x40); // set version to 0100b = 4\n $data[8] = chr(ord($data[8]) & 0x3f | 0x80); // set bits 6-7 to 10\n\n return vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex(...
[ "0.8059092", "0.7890656", "0.7785148", "0.77648", "0.7755295", "0.76545143", "0.7645326", "0.7606052", "0.7551564", "0.7546217", "0.7540404", "0.7507789", "0.74901617", "0.7471996", "0.7413061", "0.7387295", "0.72840005", "0.72348166", "0.7227782", "0.7210019", "0.7209973", ...
0.0
-1
Determine si l'on doit etre en minuscule, majuscule, ou mixte
private static function case_upper_lower($char, $case) { switch( $case ): case self::CASE_LOWER : return strtolower($char); break; case self::CASE_UPPER : return strtoupper($char); break; case self:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function testMajuscule($valeurTeste){\r\n $retour = \"faux\";\r\n if($valeurTeste>=\"A\" && $valeurTeste<=\"Z\"){\r\n $retour = \"vrai\";\r\n }\r\n return $retour;\r\n }", "function testMinuscle2($valeurTeste){\r\n return ($valeurTeste>...
[ "0.6682391", "0.56747496", "0.5644409", "0.55432576", "0.55147856", "0.54941314", "0.5492893", "0.54358524", "0.5398489", "0.53818476", "0.5326216", "0.53099036", "0.52986807", "0.5278336", "0.5274358", "0.52115923", "0.5185464", "0.5151906", "0.5150547", "0.51455605", "0.512...
0.0
-1
Retourne une valeur en fonction du nombre passer en parametre
private static function assign_rand_value(int $pNum) { // 26 lettre // 10 chiffre // 10 caractere spéciaux $list = array( 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function valorCampo($nombreCampo){\n\t if($this->val!=\"\")\n\t\tforeach($this->val as $indice => $valor){\n\t\t\tif($nombreCampo==$indice){\n\t\t\t\treturn $valor;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public function value($parameter);", "function getValue() {\n global ${$this->name}, ${$this-...
[ "0.6841824", "0.64691323", "0.6380986", "0.63496816", "0.61944336", "0.6178985", "0.61746854", "0.6170601", "0.61549026", "0.61549026", "0.61510575", "0.6145991", "0.6107048", "0.60623276", "0.60608596", "0.605425", "0.60300964", "0.59988934", "0.5987937", "0.5987937", "0.598...
0.0
-1
Display a listing of the resource.
public function index() { $data['fishHealts'] = FishHealth::with('projectTank')->get(); return view('admin.fishHealth.fishHealthInfo',$data); }
{ "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() { $data['projectTanks'] = ProjectTank::with('project')->with('tank')->get(); return view('admin.fishHealth.addFishHealth',$data); }
{ "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([ 'date' => 'required', 'project_tank_id' => 'required', 'fish_amount' => 'required', 'weight' => 'required', ]); $fishHealth = new FishHealth(); $fishHealth->date = $request->da...
{ "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(FishHealth $fishHealth) { // }
{ "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