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
Encrypting password returns salt and encrypted password
public function hashSSHA($password) { $salt = sha1(rand()); $salt = substr($salt, 0, 10); $encrypted = base64_encode(sha1($password . $salt, true) . $salt); $hash = array("salt" => $salt, "encrypted" => $encrypted); return $hash; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function salt_and_encrypt($password) {\n\t$hash_format=\"$2y$10$\";\n\t$salt_length=22;\n\t$salt=generate_salt($salt_length);\n\t$format_and_salt=$hash_format.$salt;\n\t$hash=crypt($password,$format_and_salt);\t\n\treturn $hash;\n}", "private function encryptPassword($password, $salt) {\n\t\treturn hash('sha256'...
[ "0.7708768", "0.75818574", "0.74065554", "0.7371837", "0.7354037", "0.7346148", "0.7297861", "0.7154472", "0.7138968", "0.71238375", "0.7111309", "0.70405835", "0.7037206", "0.6997646", "0.69882494", "0.6963891", "0.6963849", "0.69594157", "0.694625", "0.6943403", "0.69198793...
0.0
-1
Decrypting password returns hash string
public function checkhashSSHA($salt, $password) { $hash = base64_encode(sha1($password . $salt, true) . $salt); return $hash; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getEncryptedPassword($password){\n\treturn password_hash($password, PASSWORD_DEFAULT );\n}", "function cryptPasswordDeCrypt( $cifer, $key )\r\n{\r\n\treturn base64_decode( $cifer );\r\n}", "public function GetPasswordHash ();", "public function decrypt();", "public function generateHash (string $p...
[ "0.68400794", "0.6840016", "0.6681664", "0.66551745", "0.663799", "0.65458", "0.65453297", "0.6487461", "0.64322996", "0.6429342", "0.64183456", "0.6413354", "0.6398452", "0.6390187", "0.6379546", "0.6365341", "0.63591754", "0.635378", "0.6324162", "0.6321762", "0.63163465", ...
0.0
-1
Update helpers_available table returns helpers if needed
public function updateAvailableHelpers($user_id, $store_id, $tag) { if($tag == 'users_available_add'){ $combosAlreadyMade = $this->checkHelpersAvailable($user_id, $store_id); if($combosAlreadyMade == 'Exists'){ return 'Exists'; } } if ($tag == 'users_available_add') { $query = " INSERT INTO helpers_available ( store_id, user_id ) VALUES ( :store_id, :user_id ) "; } else if ($tag == 'users_available_remove') { $query = " DELETE FROM helpers_available WHERE store_id = :store_id and user_id = :user_id "; } else if ($tag == 'users_remove_all') { $query = " DELETE FROM helpers_available WHERE user_id = :user_id "; } else if ($tag == 'users_select') { $query = " select * FROM helpers_available WHERE store_id = :store_id "; } try { $stmt = $this->_db->prepare($query); if ($tag != 'users_select') { $stmt->bindValue(':user_id',$user_id); } if ($tag != 'users_remove_all') { $stmt->bindValue(':store_id',$store_id); } $stmt->execute(); if ($tag == 'users_select') { $result = $stmt->fetchAll(); return $result; } } catch(PDOException $ex) { $h = $ex->getMessage (); die($h); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateHelperTableUnsub(){\n\n\t\tDB::statement(\"update email_logic_helper elh\n\t\t\t\t\t\tset is_unsubscribed = 1\n\t\t\t\t\t\twhere exists\n\t\t\t\t\t\t(\n\t\t\t\t\t\t Select\n\t\t\t\t\t\t 1\n\t\t\t\t\t\t from\n\t\t\t\t\t\t email_suppression_lists esl\n\t\t\t\t\t\...
[ "0.59207535", "0.5678665", "0.55026263", "0.53104615", "0.5232378", "0.52070856", "0.5170452", "0.5124988", "0.51126915", "0.50581384", "0.5056871", "0.50312257", "0.5025955", "0.5021511", "0.50185174", "0.5012625", "0.49745548", "0.49740693", "0.49525017", "0.4948488", "0.49...
0.6236805
0
Check help_requests table for existing request
public function checkHelpRequests($helper_id, $request_help_id ){ $query = " SELECT * FROM help_requests WHERE helper_id = :helper_id and request_help_id = :request_help_id "; $stmt = $this->_db->prepare($query); $stmt->bindValue(':helper_id',$helper_id); $stmt->bindValue(':request_help_id',$request_help_id); $stmt->execute(); $result = $stmt->fetchAll(); if($stmt->rowCount() > 0){ return 'Exists'; } else { return; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateHelpRequests($helper_id, $request_help_id, $tag) {\n\t\t\n\t\tif($tag == 'help_request_add'){\n\t\t$combosAlreadyMade = $this->checkHelpRequests($helper_id, $request_help_id);\n\t\t\n\t\tif($combosAlreadyMade == 'Exists'){\n\t\t\treturn 'Exists';\n\t\t}\n\t\t}\n\t\t\n\t\tif ($tag == 'help_req...
[ "0.6180808", "0.58976334", "0.58936745", "0.58855444", "0.5875356", "0.5729869", "0.5626661", "0.56181514", "0.55960053", "0.55850476", "0.55850476", "0.541711", "0.5380878", "0.5359403", "0.5348564", "0.53327745", "0.53033966", "0.52853775", "0.5236666", "0.5232295", "0.5196...
0.7164381
0
Update helpers_available table returns helpers if needed
public function updateHelpRequests($helper_id, $request_help_id, $tag) { if($tag == 'help_request_add'){ $combosAlreadyMade = $this->checkHelpRequests($helper_id, $request_help_id); if($combosAlreadyMade == 'Exists'){ return 'Exists'; } } if ($tag == 'help_request_add') { $query = " INSERT INTO help_requests ( helper_id, request_help_id ) VALUES ( :helper_id, :request_help_id ) "; } else if ($tag == 'help_request_remove') { $query = " DELETE FROM help_requests WHERE helper_id = :helper_id and request_help_id = :request_help_id "; } else if ($tag == 'requests_remove_all') { $query = " DELETE FROM help_requests WHERE helper_id = :helper_id "; } else if ($tag == 'requests_select') { $query = " select * FROM help_requests WHERE helper_id = :helper_id "; } try { $stmt = $this->_db->prepare($query); $stmt->bindValue(':helper_id',$helper_id); if ($tag != 'requests_remove_all' and $tag != 'requests_select') { $stmt->bindValue(':request_help_id',$request_help_id); } $stmt->execute(); if ($tag == 'requests_select') { $result = $stmt->fetchAll(); return $result; } } catch(PDOException $ex) { $h = $ex->getMessage (); die($h); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateAvailableHelpers($user_id, $store_id, $tag) {\n\t\t\n\t\tif($tag == 'users_available_add'){\n\t\t$combosAlreadyMade = $this->checkHelpersAvailable($user_id, $store_id);\n\t\t\n\t\tif($combosAlreadyMade == 'Exists'){\n\t\t\treturn 'Exists';\n\t\t}\n\t\t}\n\t\tif ($tag == 'users_available_add')...
[ "0.6236805", "0.59207535", "0.5678665", "0.55026263", "0.53104615", "0.5232378", "0.52070856", "0.5170452", "0.5124988", "0.51126915", "0.50581384", "0.5056871", "0.50312257", "0.5025955", "0.5021511", "0.50185174", "0.5012625", "0.49745548", "0.49740693", "0.49525017", "0.49...
0.48891926
25
Return Massive Array of all groceries
public function getGroceries($store_id) { $query = " select * FROM groceries WHERE store_id = :store_id "; try { $stmt = $this->_db->prepare($query); $stmt->bindValue(':store_id',$store_id); $stmt->execute(); $result = $stmt->fetchAll(); return $result; } catch(PDOException $ex) { $h = $ex->getMessage (); die($h); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllArr()\n\t{\n\t\t$sql = \"SELECT g.id,g.nombre,g.total,u.nombre,u.apellido_pat,u.apellido_mat,g.created_date,gt.nombre gastostipo,gt.tipo\n\t\tFROM gastos g \n\t\tleft join gastos_tipo gt on gt.id=g.id_gastostipo \n\t\tleft join user u on u.id=g.id_user \n\t\t\twhere g.status='active';\";\n\t...
[ "0.6751863", "0.67493594", "0.6698359", "0.65858924", "0.65840924", "0.6517589", "0.6475148", "0.64405", "0.6380433", "0.63300055", "0.63084346", "0.62500083", "0.61897945", "0.6141704", "0.6130353", "0.60877013", "0.60667086", "0.60525656", "0.6030644", "0.60290956", "0.6008...
0.0
-1
Return User Position array of groceries
public function getUserGroceries($user_id) { $query = " select * FROM user_grocery_list WHERE user_id = :user_id "; try { $stmt = $this->_db->prepare($query); $stmt->bindValue(':user_id',$user_id); $stmt->execute(); $result = $stmt->fetch(); return $result; } catch(PDOException $ex) { $h = $ex->getMessage (); die($h); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getGroupParents($gid)\n {\n return array();\n }", "public function get_roster()\n\t\t{\n\t\t\t$retArr = null;\n\t\t\t// Scaffolding Code For Array:\n\t\t\t$objs = $this->obj->find_all();\n\t\t\t \n\t\t\tforeach($objs as $obj)\n\t\t\t{\n\t\t\t\t$basics = $obj->getBasics();\n\t\t\t\t$user = O...
[ "0.614213", "0.60914093", "0.60509825", "0.60292554", "0.6012779", "0.59849936", "0.5943648", "0.59227616", "0.5890956", "0.58883476", "0.5866227", "0.5812127", "0.5758109", "0.5709156", "0.5707038", "0.5693925", "0.56848514", "0.5664437", "0.5661549", "0.5655564", "0.5650883...
0.60528755
2
Insert into user groceries page
public function insertUserGroceries($user_id, $position_array) { $query = " INSERT INTO user_grocery_list ( user_id, position_array ) VALUES ( :user_id, :position_array ) "; try { $stmt = $this->_db->prepare($query); $stmt->bindValue(':user_id',$user_id); $stmt->bindValue(':position_array',$position_array); $stmt->execute(); } catch(PDOException $ex) { $h = $ex->getMessage (); die($h); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function insertUserGroup() {\n\t $groupInfo = self::getQueryInfo('base_group', 'group_name', 'id');\n\t $userInfo = self::getQueryInfo('users', 'email', 'id');\n\t\t\n\t\tDB::table('base_user_group')->insert(['user_id'\t=> $userInfo['sales.reporting@smartfren.com'], 'group_id' => $groupInfo['sales.r...
[ "0.72369885", "0.6636542", "0.6520992", "0.63086736", "0.62573063", "0.61589605", "0.6151196", "0.61402845", "0.604364", "0.6043411", "0.6023357", "0.5995185", "0.59914654", "0.5990566", "0.59901804", "0.59901804", "0.5982227", "0.5977917", "0.59748524", "0.5971797", "0.59356...
0.64605
3
Insert into user groceries page
public function deleteUserGroceries($user_id) { $query = " DELETE FROM user_grocery_list WHERE user_id = :user_id "; try { $stmt = $this->_db->prepare($query); $stmt->bindValue(':user_id',$user_id); $stmt->execute(); } catch(PDOException $ex) { $h = $ex->getMessage (); die($h); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function insertUserGroup() {\n\t $groupInfo = self::getQueryInfo('base_group', 'group_name', 'id');\n\t $userInfo = self::getQueryInfo('users', 'email', 'id');\n\t\t\n\t\tDB::table('base_user_group')->insert(['user_id'\t=> $userInfo['sales.reporting@smartfren.com'], 'group_id' => $groupInfo['sales.r...
[ "0.72369885", "0.6636542", "0.6520992", "0.64605", "0.63086736", "0.62573063", "0.61589605", "0.6151196", "0.61402845", "0.604364", "0.6043411", "0.6023357", "0.5995185", "0.59914654", "0.5990566", "0.59901804", "0.59901804", "0.5982227", "0.5977917", "0.59748524", "0.5971797...
0.0
-1
Return Massive Array of all groceries
public function selectUsersById($user_id) { $query = " select * FROM users WHERE user_id = :user_id "; try { $stmt = $this->_db->prepare($query); $stmt->bindValue(':user_id',$user_id); $stmt->execute(); $result = $stmt->fetchAll(); return $result; } catch(PDOException $ex) { $h = $ex->getMessage (); die($h); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllArr()\n\t{\n\t\t$sql = \"SELECT g.id,g.nombre,g.total,u.nombre,u.apellido_pat,u.apellido_mat,g.created_date,gt.nombre gastostipo,gt.tipo\n\t\tFROM gastos g \n\t\tleft join gastos_tipo gt on gt.id=g.id_gastostipo \n\t\tleft join user u on u.id=g.id_user \n\t\t\twhere g.status='active';\";\n\t...
[ "0.6751863", "0.67493594", "0.6698359", "0.65858924", "0.65840924", "0.6517589", "0.6475148", "0.64405", "0.6380433", "0.63300055", "0.63084346", "0.62500083", "0.61897945", "0.6141704", "0.6130353", "0.60877013", "0.60667086", "0.60525656", "0.6030644", "0.60290956", "0.6008...
0.0
-1
protected $dateFormat = 'd.m.Y H:i:s';
public function getRouteKeyName() { return 'slug'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function dt(){\n return date('Y-m-d\\TH:i:s');\n }", "protected function getDateFormat()\n {\n return 'Y-m-d H:i:s';\n }", "public function getDateFormat()\n {\n return 'Y-m-d H:i:s.uO';\n }", "public function getDateFormat()\n {\n return 'Y-m-d H:i:s.uO'...
[ "0.7225938", "0.71899956", "0.6963192", "0.6963192", "0.6891687", "0.6882745", "0.68021625", "0.6676712", "0.6587444", "0.6575801", "0.6566642", "0.654676", "0.6517565", "0.64107466", "0.63900197", "0.63900197", "0.63477826", "0.6341349", "0.633869", "0.6311395", "0.62995464"...
0.0
-1
TODO: this method should be not used in CourseModel, but on the participantModel so that only participants sould be able to leave feedback
public function addFeedback($feedback) { $this->feedbacks()->create($feedback); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function feedback()\n\t{\n\t\tif ($this->store['feedback_percent'] == 0) {\n\t\t\treturn;\n\t\t}\n\t\t$feedback = $this->store['feedback'] * $this->config->data()['feedback'];\n\t\t$feedbackPercent = ($this->store['feedback_percent'] / $this->config->data()['feedbackPercent']);\n\t\t$score = round($feedb...
[ "0.57627034", "0.573992", "0.57355237", "0.57326806", "0.56529933", "0.5640337", "0.5587138", "0.5552654", "0.55295086", "0.55193806", "0.5495338", "0.5473264", "0.54579616", "0.5446119", "0.5399986", "0.53842235", "0.53765774", "0.5356121", "0.5348703", "0.534361", "0.533683...
0.0
-1
Get the game repository.
public function getGameRepository() { if (!$this->gameRepository) { $this->setGameRepository($this->getEntityManager()->getRepository('Game\Entity\Game')); } return $this->gameRepository; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRepo()\n {\n return $this->repo;\n }", "public static function getRepository()\n {\n if (is_null(static::$repository)) {\n static::$repository = static::buildRepository();\n }\n\n return static::$repository;\n }", "protected function getRepo...
[ "0.6835937", "0.68132406", "0.68061304", "0.6754571", "0.6751498", "0.67270786", "0.669591", "0.6689973", "0.6679487", "0.6665942", "0.6665942", "0.6665942", "0.6665942", "0.6665942", "0.6665942", "0.6649803", "0.65772676", "0.65682507", "0.65501386", "0.6501997", "0.6501997"...
0.800295
0
Set the game repository.
public function setGameRepository($gameRepository) { $this->gameRepository = $gameRepository; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setRepositories() {\n }", "public function setRepository($repository)\n {\n $this->repository = $repository;\n }", "public function setStore(Repository $store): void\n {\n $this->store = $store;\n }", "protected function initRepository()\n {\n $this->rep...
[ "0.58705366", "0.58612347", "0.58441687", "0.582995", "0.5752099", "0.5752099", "0.5713818", "0.5655421", "0.5519581", "0.54645926", "0.5461204", "0.5455026", "0.54211634", "0.54075104", "0.53905654", "0.5358484", "0.53451365", "0.53406084", "0.53219634", "0.5297242", "0.5272...
0.7280576
0
Get the feed repository.
public function getFeedRepository() { if (!$this->feedRepository) { $this->setFeedRepository($this->getEntityManager()->getRepository('Feed\Entity\Feed')); } return $this->feedRepository; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFeedRepository()\n {\n if (null === $this->feedRepository)\n $this->feedRepository = $this->getEntityManager()->getRepository('\\Feed\\Entity\\Feed');\n return $this->feedRepository;\n }", "public function getFeed()\n {\n return ($this->useCache() ? $th...
[ "0.7908239", "0.6989024", "0.6947741", "0.6895661", "0.6815322", "0.6808293", "0.6808293", "0.6808293", "0.6808293", "0.6808293", "0.6808293", "0.6781473", "0.6761941", "0.6657423", "0.66564983", "0.6643288", "0.6643288", "0.6575057", "0.6562751", "0.65257615", "0.64812016", ...
0.792677
0
Set the feed repository.
public function setFeedRepository($feedRepository) { $this->feedRepository = $feedRepository; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setRepository($repository)\n {\n $this->repository = $repository;\n }", "public function setRepositories() {\n }", "public function setBlogFeed()\n\t{\n\t\t$this->ensureAuthed();\n\t\t$input = Input::getInstance();\n\t\t$output = Output::getInstance();\n\t\t$feeds = Feeds::get...
[ "0.63340527", "0.6265423", "0.60142463", "0.59895504", "0.5945083", "0.5930427", "0.59149903", "0.5886122", "0.5785131", "0.5690031", "0.5673123", "0.5633818", "0.55160135", "0.54651564", "0.54288673", "0.5400471", "0.5378434", "0.5341513", "0.5323708", "0.5323708", "0.532044...
0.7807347
0
Get the account repository.
public function getAccountRepository() { if (!$this->accountRepository) { $this->setAccountRepository($this->getEntityManager()->getRepository('Account\Entity\Account')); } return $this->accountRepository; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRepo()\n {\n return $this->repo;\n }", "public function getRepository()\n {\n return $this->repository;\n }", "public function getRepository()\n {\n return $this->repository;\n }", "public function getRepository()\n {\n return $this->reposit...
[ "0.7269168", "0.6900497", "0.6900497", "0.6900497", "0.6900497", "0.6900497", "0.6900497", "0.68958604", "0.68842185", "0.685694", "0.6821314", "0.6811614", "0.6725852", "0.6720549", "0.6685367", "0.6685367", "0.66707015", "0.6640209", "0.65711904", "0.65668863", "0.65665036"...
0.7860508
0
Set the account repository.
public function setAccountRepository($accountRepository) { $this->accountRepository = $accountRepository; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setRepository($repository)\n {\n $this->repository = $repository;\n }", "public function setRepo($user, $repo)\n {\n $this->apibase = \"https://api.github.com/repos/$user/$repo/\";\n }", "public function setCredentials()\n\t{\n\t\t$settings_repo = new \\Kickapoo\\Repos...
[ "0.619429", "0.6138165", "0.606795", "0.60392356", "0.5993383", "0.5989423", "0.59035885", "0.5862703", "0.5761476", "0.57221514", "0.5714378", "0.55787075", "0.55787075", "0.5557932", "0.5550746", "0.546888", "0.5467246", "0.5418929", "0.5417918", "0.54096025", "0.5373821", ...
0.7335295
0
Sets the doctrine entity manager.
public function setEntityManager(EntityManager $entityManager) { $this->entityManager = $entityManager; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setEntityManager(EntityManagerInterface $manager);", "public function setEntityManager(EntityManager $em);", "public function setEntityManager(EntitiyManager $em)\r\n {\r\n $this->em = $em;\r\n }", "public function setEntityManager(\\Doctrine\\ORM\\EntityManager $em);", "public...
[ "0.79390085", "0.77814156", "0.76906073", "0.74904907", "0.7333987", "0.71690154", "0.7067913", "0.7055164", "0.70495087", "0.7008571", "0.6985979", "0.69150895", "0.6867385", "0.68420696", "0.6832247", "0.6832247", "0.68319106", "0.68289495", "0.68189573", "0.68025345", "0.6...
0.71739787
6
Returns the doctrine entity manager.
public function getEntityManager() { if (null === $this->entityManager) $this->setEntityManager($this->getServiceManager()->get('Doctrine\ORM\EntityManager')); return $this->entityManager; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEntityManager()\n {\n return $this\n ->container\n ->get('doctrine')\n ->getManager();\n }", "protected function getEntityManager()\n {\n $em = $this->getServiceLocator()->get('doctrine.entitymanager.orm_default');\n return $em;\n ...
[ "0.8375223", "0.82744783", "0.81771266", "0.81682277", "0.8151002", "0.8141812", "0.8122471", "0.81212014", "0.8119881", "0.81075287", "0.8106909", "0.8062631", "0.80607265", "0.80526376", "0.80452305", "0.8007543", "0.80057985", "0.7988065", "0.7975525", "0.7974968", "0.7974...
0.7999456
17
Sets the service manager.
public function setServiceManager(ServiceManager $serviceManager) { $this->serviceManager = $serviceManager; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setManager( $manager )\n {\n $this->manager = $manager;\n }", "public function setServiceLocator(ServiceManager $sm){\n $this->sm = $sm;\n }", "public function setServiceManager(ServiceManager $serviceManager)\n\t{\n\t\t$this->serviceManager = $serviceManager;\n\t\treturn ...
[ "0.77887547", "0.7388938", "0.69544905", "0.68328756", "0.6735423", "0.6700734", "0.6700734", "0.6700734", "0.6700734", "0.66925484", "0.6666107", "0.66602206", "0.6623752", "0.6612113", "0.6612113", "0.65704906", "0.6474077", "0.64702904", "0.6435125", "0.6416746", "0.639746...
0.7592682
2
Returns the service manager.
public function getServiceManager() { return $this->serviceManager; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getServiceManager ()\n {\n return $this->serviceManager;\n }", "protected function getServiceManager()\n {\n return $this->serviceManager;\n }", "public function getServiceManager()\n\t{\n\t\treturn $this->serviceManager;\n\t}", "public function getServiceManager()\r...
[ "0.86309284", "0.8575589", "0.8522433", "0.85201055", "0.84292746", "0.8163397", "0.8163397", "0.8163397", "0.81600386", "0.8075076", "0.7862409", "0.7668602", "0.742113", "0.71621084", "0.71548486", "0.7099257", "0.70206213", "0.6998271", "0.6991247", "0.69764763", "0.697486...
0.8552898
8
Returns a zend translator instance.
public function getTranslator() { if (!$this->translator) { $this->setTranslator($this->getServiceManager()->get('translator')); } return $this->translator; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getTranslator()\n {\n if (!$this->app->translator instanceof Translator) {\n $this->app->translator = new Translator($this->locale, new MessageSelector());\n $this->app->translator->addLoader('array', new ArrayLoader());\n $this->app->translator->addLoade...
[ "0.8222236", "0.78743804", "0.7747382", "0.7717337", "0.7587401", "0.7545071", "0.7473772", "0.7380953", "0.7380953", "0.7375586", "0.72340876", "0.71799064", "0.7007486", "0.7002394", "0.6998696", "0.69724774", "0.69185674", "0.69026124", "0.68143135", "0.67780066", "0.67693...
0.75759494
5
Sets the zend translator instance.
public function setTranslator($translator) { $this->translator = $translator; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setTranslator($translator = null)\n {\n if (null === $translator) {\n $this->_translator = null;\n } elseif ($translator instanceof Zend_Translate_Adapter) {\n $this->_translator = $translator;\n } elseif ($translator instanceof Zend_Translate) {\n ...
[ "0.710912", "0.70416385", "0.69322914", "0.68018186", "0.65943766", "0.65633565", "0.6551201", "0.6423835", "0.64007485", "0.6377069", "0.63324505", "0.61093616", "0.60839605", "0.60759836", "0.6056153", "0.6055779", "0.60155386", "0.6005526", "0.59665436", "0.5965346", "0.59...
0.71666676
0
Gauti vartotojo kompanijos 'id'
private function getUserCompanyId(){ $id = NULL; if(isset($this->user_id) && !empty($this->user_id)){ $query = $this->companies->get_company_id($this->user_id); if(!is_null($query)){ $id = $query->id; } } return $id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_id(){\n return $this -> id;\n }", "function get_id(){\n return $this -> id;\n }", "public function getId() ;", "public function getId(){return $this->id;}", "public function getId() {return $this->id;}", "public function get_id(){\n return $this->id;\n }", "fu...
[ "0.7576529", "0.7576529", "0.74611115", "0.7434083", "0.7429546", "0.7415807", "0.73993826", "0.73847574", "0.7353782", "0.73519295", "0.73519295", "0.73519295", "0.7347916", "0.7338605", "0.7336325", "0.7320712", "0.73145306", "0.73145306", "0.73145306", "0.7305468", "0.7305...
0.0
-1
Initializes the controller engine
public function initialize(): void { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function initializeController() {}", "public function initialize() \n {\n $this->setEngine(RequestEngine::class);\n $this->setStorage(SessionStorage::class);\n }", "public function initBaseController();", "public function init()\n {\n /* Initialize action controller he...
[ "0.7935069", "0.7296608", "0.72120917", "0.7207974", "0.7207974", "0.71564776", "0.7045759", "0.7012753", "0.69990593", "0.69888705", "0.69783026", "0.6875951", "0.6863532", "0.6828267", "0.68088144", "0.67831624", "0.6737566", "0.6731034", "0.6730479", "0.67075586", "0.67069...
0.0
-1
Sets variables to templates
public function set(mixed $varName, mixed $value): void { if (empty($varName)) { throw new Exception('varName cannot be empty'); } if ($varName === '_serialize') { $type = 'json'; $serializer = SerializerBuilder::create()->build(); $content = $serializer->serialize($value, $type); echo $content; exit; } if (!is_array($varName)) { $this->tplData[$varName] = $value; } else { $this->tplData = array_merge($this->tplData, $varName); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setTemplateVariables() {}", "protected function setVarToTemplates()\n {\n $this->templates->set_tpl($this->varName, $this->checkNewCommondaty());\n }", "private function setVarToTemplate()\n\t{\n\t\t$this->view->set('grid', $this->gridState);\n\n\t\t// Set variable with shot mes...
[ "0.87243295", "0.82823324", "0.77297825", "0.729074", "0.716591", "0.70656544", "0.70040137", "0.69859904", "0.69805807", "0.6934391", "0.6924381", "0.6893827", "0.6870567", "0.6844641", "0.68417567", "0.6771281", "0.6759437", "0.66741645", "0.6655936", "0.663306", "0.6555915...
0.0
-1
Returns the header object, or a specific header value if a name is given
public function getHeader($name = null) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function header($name) {\n return isset($this->headers[$name])? $this->headers[ucfirst($name)] : null;\n }", "public function header($name = null) {\n\t\t\tif($name === null) {\n\t\t\t\treturn $this->headers;\n\t\t\t} elseif(array_key_exists($name, $this->headers)) {\n\t\t\t\treturn $this->headers[$na...
[ "0.78580517", "0.75637925", "0.7340813", "0.72847295", "0.72585166", "0.7196016", "0.7145708", "0.7135011", "0.7076846", "0.70631814", "0.7059615", "0.7053439", "0.6985579", "0.69728315", "0.69673437", "0.69569266", "0.6934574", "0.69089365", "0.68703866", "0.6857604", "0.679...
0.7078755
8
Returns the message's parent message, if any
public function getParent() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getParentMessage()\n {\n return $this->parentMessage;\n }", "#[Pure]\n public function getParentMessage() {}", "public function getParent()\n\t{\n\t\treturn $this->_mail;\n\t}", "public function getParentMessageId(): int {\n return $this->parentMessageId;\n }", "pu...
[ "0.8865245", "0.7683308", "0.74935246", "0.7463129", "0.720486", "0.71388406", "0.7103841", "0.70988613", "0.7079437", "0.7022994", "0.6911808", "0.69012386", "0.69012386", "0.6871886", "0.68683267", "0.6851913", "0.68487597", "0.682126", "0.682126", "0.6807998", "0.68062645"...
0.6570961
73
Whether the message has a parent message
public function hasParent() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasParentMessage(): bool {\n return isset($this->parentMessageId);\n }", "public function hasParent();", "public function hasParent();", "public function hasParent();", "public function hasParent() {\n return isset($this->_parent);\n }", "public function hasParent()\n\t{\n\t...
[ "0.88392615", "0.79902637", "0.79902637", "0.79902637", "0.7892345", "0.7830582", "0.7779132", "0.77744484", "0.7731974", "0.7633968", "0.7558131", "0.74022484", "0.72785896", "0.71283084", "0.70180804", "0.6954248", "0.69147414", "0.6893949", "0.67765933", "0.67382836", "0.6...
0.7952522
4
Sets the message's parent message
public function setParent(Message $parentMessage) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setParentMessage(Message $parentMessage)\n {\n $this->parentMessage = $parentMessage;\n }", "public function setParentMessageID($id) {\n $this->setParam('parent-message-id', $id);\n return $this;\n }", "public function getParentMessage()\n {\n return $this->parentM...
[ "0.8436252", "0.7404321", "0.73649937", "0.722682", "0.69097733", "0.69054955", "0.68956333", "0.68187684", "0.68187684", "0.6791542", "0.6684931", "0.6594282", "0.65560156", "0.65093875", "0.65007055", "0.6465919", "0.6315305", "0.63080525", "0.6305308", "0.63053024", "0.628...
0.92184514
0
Readonly access to properties
public function __get($prop) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _getReadonlyProperties()\n {\n return array();\n }", "abstract protected function getDirectGetters();", "abstract protected function properties();", "public function isReadOnly() {}", "public function isReadOnly() {}", "public function isReadOnly() {}", "public function a...
[ "0.7734251", "0.68864274", "0.6874049", "0.6827245", "0.6827245", "0.6826442", "0.6696308", "0.6617695", "0.66175604", "0.6611475", "0.65884495", "0.6577095", "0.65571994", "0.65571994", "0.65571994", "0.64994", "0.64210063", "0.6420855", "0.6417225", "0.63940305", "0.6331737...
0.6131162
34
Determine if the user is authorized to make this request.
public function authorize() { if (Auth::check()) { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authorize()\n {\n if ($this->user() !== null) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }"...
[ "0.8401071", "0.8377486", "0.8377486", "0.8344406", "0.8253731", "0.824795", "0.8213121", "0.8146598", "0.81115526", "0.8083369", "0.7991986", "0.79907674", "0.79836637", "0.79604936", "0.79516214", "0.79494005", "0.79265946", "0.7915068", "0.79001635", "0.7894822", "0.789145...
0.7563037
69
Get the validation rules that apply to the request.
public function rules() { return [ 'url' => 'required|url' ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rules()\n {\n $commons = [\n\n ];\n return get_request_rules($this, $commons);\n }", "public function getRules()\n {\n return $this->validator->getRules();\n }", "public function getValidationRules()\n {\n $rules = [];\n\n // Get the sche...
[ "0.8342703", "0.80143493", "0.7937251", "0.79264987", "0.79233825", "0.79048395", "0.78603816", "0.7790699", "0.77842164", "0.77628785", "0.7737272", "0.7733618", "0.7710535", "0.7691693", "0.76849866", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.76830...
0.0
-1
Action "overview" URL: /index.php?controllers=Location&action=overview
public function overview() { // load model require_once APP_PATH . '/models/LocationsModel.php'; // get all locations $locationsModel = new LocationsModel(); $locations = $locationsModel->getAll(); // show views loadView('theme/header'); loadView('locations/overview', [ 'locations' => $locations, ]); loadView('theme/footer'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function overviewAction(){\n\t\t\t\t\t\t$this->redirectToIndex();\n\t\t\t\t\t if($this->_getParam ( 'actions' )==\"overview\"){\n\t\t\t\t\t $idOverview= $this->_getParam ( 'id' );\n\t\t\t\t\t $idUser = $this->_getParam ( 'userid' );\n\t\t\t\t\t\t\t$GetSelectViewCompanys = $this->GetModelOrg...
[ "0.7275991", "0.6984445", "0.6890046", "0.67462003", "0.66326696", "0.65779954", "0.6489939", "0.64196724", "0.6364081", "0.6324517", "0.6273836", "0.6263286", "0.62370545", "0.62310046", "0.6214828", "0.6214201", "0.6209151", "0.61951053", "0.61903936", "0.6189673", "0.61867...
0.70951855
1
Downloads files Checks to see if chosen file has a path that exist. If so the file will be downloaded to the users local machine.
public function do_download($path, $name) { // Download functionality $file_content = file_get_contents($path.$name); if(file_exists($path.$name) == FALSE) { return false; exit; } force_download($name, $file_content); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function downloadFile();", "public function action_download($file = NULL) {\n $path_file = DOCROOT.\"sites\" . DIRECTORY_SEPARATOR . \"$file.zip\";\n \n //Verifica se o arquivo existe\n if (\\File::exists($path_file)) {\n //Download do arquivo \n \\...
[ "0.665684", "0.6433963", "0.63990915", "0.63962734", "0.6376402", "0.6233569", "0.61785585", "0.61696464", "0.6116684", "0.61070937", "0.6079238", "0.60755694", "0.6070816", "0.605028", "0.60437894", "0.60393196", "0.5986189", "0.59711504", "0.59477645", "0.593495", "0.590970...
0.5430574
75
Invokes TCPDF. Every function call you make is redirected to TCPDF.
public function __call($function, $arguments) { $this->active = true; return call_user_func_array([ $this->pdf, $function ], $arguments); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n\t{\n\n\t\t$html = '\n\t\t<style>\n table {\n width: 300px;\n }\n\t\t\n table, th, td {\n\t\t\tborder: solid 1px #DDD;\n border-collapse: collapse;\n padding: 10px;\n text-align: center;\n }\n\n </style>\n\t\t<h1>We...
[ "0.6469074", "0.6006413", "0.58937013", "0.58570313", "0.58528423", "0.5823655", "0.5727841", "0.5723182", "0.5684825", "0.5651148", "0.5648099", "0.5645188", "0.5630035", "0.5617013", "0.5605338", "0.56052643", "0.560231", "0.55031383", "0.5461334", "0.54530287", "0.54509985...
0.49757576
75
(nonPHPdoc) Show the config index page
public function index() { // nav bar $navBar = $this->navBar(); // activated menus list $ModulesManagerModel = new ModulesManager(); $status = $ModulesManagerModel->getDataMenusUserType("users/institutions"); $menus[0] = array("name" => "users/institutions", "status" => $status); $status = $ModulesManagerModel->getDataMenusUserType("projects"); $menus[1] = array("name" => "projects", "status" => $status); // user setting $modelCoreConfig = new CoreConfig(); $activeUserSetting = $modelCoreConfig->getParam('user_desactivate'); // admin email $modelCoreConfig = new CoreConfig(); $admin_email = $modelCoreConfig->getParam("admin_email"); // install section $installquery = $this->request->getParameterNoException ( "installquery"); if ($installquery == "yes"){ try{ $installModel = new InitDatabase(); $installModel->createDatabase(); } catch (Exception $e) { $installError = $e->getMessage(); $installSuccess = "<b>Success:</b> the database have been successfully installed"; $this->generateView ( array ('navBar' => $navBar, 'installError' => $installError, 'menus' => $menus, 'activeUserSetting' => $activeUserSetting, 'admin_email' => $admin_email ) ); return; } $installSuccess = "<b>Success:</b> the database have been successfully installed"; $this->generateView ( array ('navBar' => $navBar, 'installSuccess' => $installSuccess, 'menus' => $menus, 'activeUserSetting' => $activeUserSetting, 'admin_email' => $admin_email ) ); return; } // set menus section $setmenusquery = $this->request->getParameterNoException ( "setmenusquery"); if ($setmenusquery == "yes"){ $menusStatus = $this->request->getParameterNoException("menus"); $ModulesManagerModel = new ModulesManager(); $ModulesManagerModel->setDataMenu("users/institutions", "users", $menusStatus[0], "glyphicon-user"); $ModulesManagerModel->setDataMenu("projects", "projects", $menusStatus[1], "glyphicon-tasks"); $status = $ModulesManagerModel->getDataMenusUserType("users/institutions"); $menus[0] = array("name" => "users/institutions", "status" => $status); $status = $ModulesManagerModel->getDataMenusUserType("projects"); $menus[1] = array("name" => "projects", "status" => $status); $this->generateView ( array ('navBar' => $navBar, 'menus' => $menus, 'activeUserSetting' => $activeUserSetting, 'admin_email' => $admin_email ) ); return; } // active user $setactivuserquery = $this->request->getParameterNoException ( "setactivuserquery"); if ($setactivuserquery == "yes"){ $activeUserSetting = $this->request->getParameterNoException("disableuser"); $modelCoreConfig->setParam("user_desactivate", $activeUserSetting); $this->generateView ( array ('navBar' => $navBar, 'menus' => $menus, 'activeUserSetting' => $activeUserSetting, 'admin_email' => $admin_email ) ); return; } // email admin $setadminemailquery = $this->request->getParameterNoException("setadminemailquery"); if($setadminemailquery == "yes"){ $admin_email = $this->request->getParameterNoException("email"); $modelCoreConfig->setParam("admin_email", $admin_email); } // backup $setactivebackupquery = $this->request->getParameterNoException("setactivebackupquery"); if($setactivebackupquery == "yes"){ $modelBackup = new BackupDatabase(); $modelBackup->run(); return; } // default $this->generateView ( array ('navBar' => $navBar, 'menus' => $menus, 'activeUserSetting' => $activeUserSetting, 'admin_email' => $admin_email ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n\t{\n\t\t// Get the current configuration and\n\t\t// show a form for editing it\n\t\t$this->view->config = $this->adminService->getSystemConfig();\n\t\t$this->renderView('admin/config.php');\n\t}", "public function index()\n\t{\n\n\t\treturn view('config.index');\n\t}", "public ...
[ "0.7865383", "0.78538764", "0.74753034", "0.7466556", "0.7359822", "0.7319639", "0.72988373", "0.7182849", "0.7113533", "0.7043629", "0.702908", "0.70059615", "0.6908536", "0.6822185", "0.680262", "0.6782789", "0.6736578", "0.67281866", "0.6727719", "0.6721389", "0.67059886",...
0.0
-1
_shouldProcess Default to PHP files only
protected function _shouldProcess($path) { return substr($path, -4) === '.php'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function shouldProcess($path) {\n\n //Handle something special\n return true;\n\n }", "public function runOnFiles(): bool;", "public function shouldRunFile(string $file): bool;", "public function isFilebased() {\n\t\treturn FALSE;\n\t}", "protected function _allowProcess()\n\t{\n\t...
[ "0.7020225", "0.68208265", "0.6239241", "0.6182589", "0.6101586", "0.60849506", "0.60775363", "0.5967233", "0.58954483", "0.58923894", "0.5875959", "0.58618", "0.5855111", "0.58184403", "0.57757986", "0.57221097", "0.5660384", "0.5644789", "0.56268215", "0.561094", "0.560019"...
0.7122054
0
============= Add Gallery ===============
public function AddPhoto(){ $categoris = Category::all(); return view('backend.gallery.add_gallery', compact('categoris')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add_gallery()\n {\n \treturn view('backend/add_gallery');\n }", "public function addGallery()\n {\n return view('Panel.action.inputGallery');\n }", "function buildGallery ()\t{\n\t\t\t// Get the needed Information\n\t\t\t\n\t\t}", "public function galleryCreate()\n {\...
[ "0.7727331", "0.75368446", "0.742067", "0.7395174", "0.7297006", "0.7261291", "0.72160816", "0.7099261", "0.7076806", "0.7025372", "0.6969215", "0.6919174", "0.68519956", "0.6843812", "0.6818233", "0.6814087", "0.6787411", "0.67826813", "0.67782134", "0.67574114", "0.67442", ...
0.67917323
16
============= VIEW Gallery ===============
public function ViewPhoto(){ $photos = Gallery::with('category')->get(); // $categoris = Category::orderBy('category_name', 'asc')->get(); return view('backend.gallery.view_gallery', [ 'photos' => $photos, // 'categoris' => $categoris, ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n return view('gallery');\n }", "public function index() {\n $images = Gallery::all();\n // $images = Gallery::all();\n require_once('views/gallery/index.php');\n }", "public function index()\n {\n $gallery = gallery::...
[ "0.77679306", "0.7653165", "0.75941926", "0.7591923", "0.75693595", "0.75062", "0.7503934", "0.7488271", "0.74758637", "0.7456279", "0.74463564", "0.7444324", "0.742237", "0.74154174", "0.74129295", "0.73845387", "0.73726237", "0.733797", "0.73363936", "0.73051333", "0.729034...
0.71721995
29
============= UPDATE GALERY ===============
public function EditPhoto($id){ $photos = Gallery::findOrfail($id); $categoris = Category::orderBy('category_name', 'asc')->get(); return view('backend.gallery.edit_gallery', compact('photos', 'categoris')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function update() {}", "protected function _update()\n {\n \n }", "protected function _update()\n {\n \n }", "public function update() {\r\n\r\n\t}", "protected function _update()\n\t{\n\t}", "function updateGear() {\n\t\t$sql = \"UPDATE umgroup \n\t\t\t\tSET\tGpIcon=?...
[ "0.73211396", "0.7169708", "0.7169708", "0.7160104", "0.7135502", "0.70506966", "0.7003835", "0.6934703", "0.6922453", "0.6922275", "0.69215816", "0.6894696", "0.6889049", "0.6874787", "0.6874787", "0.6831439", "0.6831439", "0.6831439", "0.6831439", "0.6811283", "0.6791983", ...
0.0
-1
Display a listing of the resource.
public function index() { return view('people/index')->with('people', $this->peopleRepo->allPaginated()); }
{ "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('people/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) { $formFields = $this->validate($request, [ 'first-name' => 'required', 'last-name' => 'required', 'date-of-birth' => 'required|date', 'phone-primary' => 'required', 'phone-secondary' => 'nullable', 'address' => 'required', 'notes' => 'string|nullable' ]); $this->peopleRepo->addFromInput($formFields); return redirect('/people')->with('success', 'Person was added'); }
{ "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) { return view('people/show')->with([ 'person' => $this->peopleRepo->get($id), 'person_adoptions' => $this->adoptionsRepo->getByPerson($id), 'person_fosters' => $this->fostersRepo->getByPerson($id), 'person_reclaims' => $this->reclaimsRepo->getByPerson($id) ]); }
{ "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) { return view('people/edit')->with(['person' => $this->peopleRepo->get($id)]); }
{ "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) { $formFields = $this->validate($request, [ 'first-name' => 'required', 'last-name' => 'required', 'date-of-birth' => 'required', 'phone-primary' => 'required', 'phone-secondary' => 'nullable', 'address' => 'required', 'notes' => 'string|nullable' ]); $this->peopleRepo->updateFromInput($id, $formFields); return redirect('/people')->with('success', 'Person was edited'); }
{ "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) { $this->peopleRepo->delete($id); return redirect('/people')->with('success', 'Person was deleted successfully'); }
{ "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
Add the Divi Page Builder to the new post type
function my_et_builder_post_types( $post_types ) { $post_types[] = 'listing'; return $post_types; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wpc_client_create_post_type() {\r\n\r\n $portal_page_base = wpc_client_get_slug( 'portal_page_id', false, false );\r\n if ( '' == $portal_page_base ) {\r\n $portal_page_base = 'portal/portal-page';\r\n }\r\n\r\n //Clientpage (Portal page) post type\r\n $labels...
[ "0.6818849", "0.67352206", "0.6721395", "0.6701005", "0.6645031", "0.66313374", "0.6560831", "0.65504366", "0.64977205", "0.6496764", "0.6485783", "0.6481289", "0.6455636", "0.6436359", "0.64264065", "0.6401195", "0.6400488", "0.63931394", "0.63631815", "0.63587916", "0.63504...
0.0
-1
This is required for pretty links to custom post types to work
function fs_listing_cpt_install() { fs_define_listing_category_taxonomy(); fs_define_listing_tag_taxonomy(); fs_register_listings(); flush_rewrite_rules(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function emc_the_post_type_link( $type ) {\r\n\r\n\t$post_type = get_post_type_object( $type );\r\n\t$url = site_url( '/' ) . $post_type->rewrite[ 'slug' ] . '/';\r\n\r\n\t$html = sprintf( __( 'Part of the <a href=\"%1$s\" title=\"%2$s\">%3$s</a>', 'emc' ),\r\n\t\tesc_url( $url ),\r\n\t\tsprintf( __( 'View all %s'...
[ "0.7394513", "0.70757276", "0.6789054", "0.6723404", "0.6682565", "0.659906", "0.6550452", "0.6522641", "0.64478135", "0.644109", "0.63926995", "0.6384263", "0.6372336", "0.6351139", "0.6334003", "0.6290388", "0.62879485", "0.624904", "0.6215259", "0.62101805", "0.6202629", ...
0.0
-1
Display a listing of the resource.
public function __construct() { $this->middleware('auth', ['except' => ['index', 'show']]); }
{ "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() { $list = new Post(); return view('posts.formPartial.write', compact('list')); }
{ "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(PostRequest $request) { \Log::debug("on posts store"); $value = array("writer" => $request->writer, "name" => $request->name, "title" => $request->title, "content" => $request->contents); $list = Post::create($value); \Log::debug("List ID : " . $list->id); if (!$list) { return back()->with('flash_message', '글이 저장되지 않았습니다.')->withInput(); } if ($request->has('upFiles')) { foreach ($request->upFiles as $fid) { $attach = Attachment::find($fid); $attach->post()->associate($list); $attach->save(); } } event(new \App\Events\PostsEvent($list)); event(new \App\Events\ModelChanged(['posts'])); return redirect()->route('posts.show', $list)->with('flash_message', "작성이 완료되었습니다."); }
{ "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(Post $post) { $comments = $post->comments()->with('replies')->withTrashed()->whereNull('parent_id')->oldest()->get(); if (auth()->user()) { if (!$post->viewers()->whereViewer(auth()->user()->id)->exists()) { $post->viewers()->create([ 'viewer' => auth()->user()->id ]); } } return view('posts.detail', compact('post', 'comments')); }
{ "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(Post $post) { $this->authorize('update', $post); $list = Post::find($post->id); return view('posts.formPartial.edit', compact('list')); }
{ "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(PostRequest $request, Post $post) { $this->authorize('update', $post); $post->update([ 'title' => $request->get('title'), 'content' => $request->get('contents') ]); return redirect(route('posts.show', $post->id))->with('flash_message', '수정이 완료 되었습니다.'); }
{ "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(Post $post) { $this->authorize('delete', $post); foreach ($post->comments()->get() as $comment) { $comment->delete(); } $post->delete(); return redirect(route('posts.index'))->with('flash_message', $post->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
Get Binded cards list
public function getCardBindings(): array { return $this->data['CardBindingFileds'] ?? []; //ToDo: Check can be typo }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCards();", "public static function getShopCardList()\n {\n\t\t$key = 'ShopCardList';\n\t\t$cache = Hapyfish_Cache_Memcached::getInstance();\n\t\t$list = $cache->get($key);\n\t\tif ($list === false) {\n\t\t\t//load from database\n\t\t\t$db = Hapyfish_Island_Dal_Shop::getDefaultInstance();\n\...
[ "0.7362985", "0.7083899", "0.64994264", "0.64994264", "0.64994264", "0.645358", "0.63803357", "0.62975764", "0.62849563", "0.62364966", "0.62288684", "0.62225324", "0.6171468", "0.6171468", "0.6171247", "0.61542654", "0.6132488", "0.61205125", "0.6118027", "0.6085867", "0.607...
0.59519655
29
Allow loggedin user to access the model
public function canView($member = null) { return (Security::getCurrentUser() !== null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function mustbeuser()\n {\n if (!$this->hasuser())\n {\n $this->web()->noaccess();\n }\n }", "public function restrict() {\n\t\tif (!$this->is_logged_in()) {\n\t\t\tredirect('login', 'refresh');\n\t\t}\n\t}", "public function beforeFilter() {...
[ "0.6628147", "0.6480553", "0.643698", "0.63535714", "0.6350204", "0.62961125", "0.6284106", "0.6283259", "0.6279619", "0.62774026", "0.62646", "0.6262731", "0.62414867", "0.6228576", "0.62220657", "0.62220657", "0.6215494", "0.6211847", "0.6210592", "0.62013686", "0.61900896"...
0.0
-1
Generate default security groups for the SDLT application
public function requireDefaultRecords() { parent::requireDefaultRecords(); $this->createDefaultSDLTMemberGroups(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createSecurityGroups()\n {\n // DB connection\n $dbCon = $this->_dbCon;\n\n if ($this->_settings->get('securityversion') < 0.27) {\n /* Truncate the current defined permissions */\n $dbCon->rawExec('DELETE FROM securitygroups');\n\n /* Creat...
[ "0.6801822", "0.67792684", "0.6002736", "0.58066326", "0.58014464", "0.57699037", "0.5735541", "0.5734269", "0.56851286", "0.56514454", "0.56081796", "0.55394244", "0.5489477", "0.54125464", "0.5394329", "0.53917116", "0.5390111", "0.5370097", "0.5364716", "0.5358532", "0.535...
0.0
-1
Generate default security groups for the SDLT application
public function createDefaultSDLTMemberGroups() { $cisoGroup = Group::get()->find('Code', UserGroupConstant::GROUP_CODE_CISO); if (!($cisoGroup && $cisoGroup->ID)) { $cisoGroup = Group::create(); $cisoGroup->Title = 'NZTA-SDLT-CISO'; $cisoGroup->Code = UserGroupConstant::GROUP_CODE_CISO; $cisoGroup->write(); } $saGroup = Group::get()->find('Code', UserGroupConstant::GROUP_CODE_SA); if (!($saGroup && $saGroup->ID)) { $saGroup = Group::create(); $saGroup->Title = 'NZTA-SDLT-SecurityArchitect'; $saGroup->Code = UserGroupConstant::GROUP_CODE_SA; $saGroup->write(); } $usersGroup = Group::get()->find('Code', UserGroupConstant::GROUP_CODE_USER); if (!($usersGroup && $usersGroup->ID)) { $usersGroup = Group::create(); $usersGroup->Title = 'NZTA-SDLT-Users'; $usersGroup->Code = UserGroupConstant::GROUP_CODE_USER; $usersGroup->write(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createSecurityGroups()\n {\n // DB connection\n $dbCon = $this->_dbCon;\n\n if ($this->_settings->get('securityversion') < 0.27) {\n /* Truncate the current defined permissions */\n $dbCon->rawExec('DELETE FROM securitygroups');\n\n /* Creat...
[ "0.6801822", "0.6002736", "0.58066326", "0.58014464", "0.57699037", "0.5735541", "0.5734269", "0.56851286", "0.56514454", "0.56081796", "0.55394244", "0.5489477", "0.54125464", "0.5394329", "0.53917116", "0.5390111", "0.5370097", "0.5364716", "0.5358532", "0.5352613", "0.5340...
0.67792684
1
Display a listing of the resource.
public function index() { $users = $this->user->all(); //show the index page return View::make('settings.users') ->with('users',$users); }
{ "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() { // }
{ "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() { // save the new user // TODO : limit the admin to 3 accounts only $this->user->create(array( 'user_username' => Input::get('user_username'), 'user_password_md5' => md5(Input::get('user_password')), 'password' => Hash::make(Input::get('user_password')), 'user_role' => Input::get('user_role') )); $users = $this->user->all(); return Redirect::to('settings/system-users') ->with('users',$users) ->with('flash_msg','User has been successfully created !'); }
{ "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) { // }
{ "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) { // }
{ "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) { // }
{ "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
\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\ Obtiene Parametros \\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
function getPromotions($parameters= array()){ $result=getPromotionsDataBase($parameters); $jTableResult = array(); $jTableResult['Result'] = "OK"; $jTableResult['Records'] = $result["result"]; $jTableResult['TotalRecordCount']=$result["count"]; return $jTableResult; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getParameters() {\n $matches = array();\n $regexp = '/:[a-zA-Z_][a-zA-Z0-9_]*/';\n $count = preg_match_all($regexp, $this->path, $matches);\n \n return $matches[0];\n }", "private function findResponseParams()\n {\t\t\n \t$this->client->isLazy(); \t\t\n...
[ "0.54564804", "0.51984555", "0.48514035", "0.48417163", "0.48136955", "0.4784663", "0.4778586", "0.47554648", "0.47549596", "0.4745376", "0.4745376", "0.47305354", "0.4720966", "0.4719034", "0.47186357", "0.47063008", "0.46988156", "0.46985838", "0.46907875", "0.46905974", "0...
0.0
-1
\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\ Obtiene Tipos Parametros \\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
function getParametersType($parameters=array()){ $result=getParametersTypeDataBase($parameters); $jTableResult = array(); $jTableResult['Result'] = "OK"; $jTableResult['Options'] = $result; return $jTableResult; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTiposDoc(){\n $params->Auth->Token = $this->TA->credentials->token;\n $params->Auth->Sign = $this->TA->credentials->sign;\n $params->Auth->Cuit = self::CUIT;\n $results = $this->client->FEParamGetTiposDoc($params);\n \n $e = $this->_checkErrors($results, 'FEParamGetTiposDoc');...
[ "0.6259014", "0.5750031", "0.5692372", "0.5522058", "0.5359368", "0.5356966", "0.5323675", "0.5323675", "0.5295212", "0.5281507", "0.5148764", "0.5081619", "0.500351", "0.49959207", "0.4986913", "0.49754962", "0.4959834", "0.49584806", "0.48886493", "0.48869732", "0.4844979",...
0.0
-1
\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\ Actualiza Parametros \\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
function updatePromotions($parameters=array()){ $result=updatePromotionsDataBase($parameters); $jTableResult=array(); if($result.error==0){ $jTableResult['Result'] = "OK"; }else{ $jTableResult['Result'] = "ERROR"; } $jTableResult['Records'] = $result; return $jTableResult; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ConsultarCambioEstados($param) {\n extract($param);\n $resultado = array();\n $registro = array();\n $sql = \"CALL SPCONSULTARCARGAMASIVACE($tipodocumento,$busqueda);\";\n $rs=null;\n $conexion->getPDO()->query(\"SET NAMES 'utf8'\");\n $host= $_SERV...
[ "0.47947463", "0.4753981", "0.4605471", "0.46026295", "0.45863783", "0.45682555", "0.4542969", "0.4517015", "0.44732672", "0.4469826", "0.4460195", "0.4458731", "0.44426534", "0.44220325", "0.44104078", "0.44031277", "0.43823633", "0.4372284", "0.43666455", "0.4361938", "0.43...
0.0
-1
\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\ Elimina Parametros \\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
function deletePromotions($parameters=array()){ $result=deletePromotionsDataBase($parameters); return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function EliminarEspaciosInncesarios($str, $bControlTabReturn=false)\n{\n if( $bControlTabReturn ){\n $str = preg_replace('/[\\n\\r\\t]+/', '', $str);\n }\n return preg_replace('/\\s{2,}/', ' ', $str);\n}", "function user_removeChr($content,$conf) {\r\n\t//$content = str_replace('\\r', '2', $cont...
[ "0.57491404", "0.5734184", "0.53364587", "0.53348273", "0.5323937", "0.5246879", "0.5245671", "0.5236584", "0.52140784", "0.51520944", "0.51503056", "0.5140798", "0.5134842", "0.5116761", "0.5116736", "0.51164323", "0.5102057", "0.50903434", "0.506353", "0.5060486", "0.505546...
0.0
-1
/ | | judge0 Authentication |
function authenticate() { $endpoint = $this->endpoints['authenticate']; return $this->sendRequest($endpoint['method'], $endpoint['uri']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function authenticate() {}", "public function doAuthentication();", "public function authenticate();", "public function authenticate();", "public function authenticate();", "public function authenticate()\n\t{\n\t\t$this->errorCode==self::ERROR_NONE;\n\t}", "public function authenticate() {}", "funct...
[ "0.7292463", "0.67132807", "0.67053336", "0.67053336", "0.67053336", "0.6427761", "0.64187175", "0.63394165", "0.6327577", "0.6285235", "0.6285235", "0.6194652", "0.61789554", "0.6141882", "0.61270034", "0.6122649", "0.6121826", "0.6107239", "0.60815793", "0.6080404", "0.6074...
0.0
-1
/ | | judge0 Submissions | | Managing everuthing related so submissions
function postSubmission(Submission $submission, array $options = []) { $endpoint = $this->endpoints['postSubmission']; return $this->sendRequest($endpoint['method'], $endpoint['uri'] . $submission->getParamsUrl(), [ 'json' => array_merge( $submission->getAllAttributes(), $options ) ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function submissions();", "function submissions() {\n \n global $CFG, $USER;\n\n // need to get course id in order to retrieve students\n $assignment = get_record('assignment', 'id', $this->mainobject->id);\n $courseid = $assignment->course;\n\n //permission to gr...
[ "0.7788703", "0.6430213", "0.6180831", "0.6150258", "0.597482", "0.5957616", "0.58705056", "0.5868303", "0.5837487", "0.58191437", "0.57961166", "0.5792951", "0.57012933", "0.5700733", "0.56744105", "0.567088", "0.56448126", "0.5642558", "0.5623008", "0.5580655", "0.5556009",...
0.0
-1
/ | | languages endpoints | Getting allowed languages from Judge0 API
public function getLanguages() { $endpoint = $this->endpoints['getLanguages']; return $this->sendRequest($endpoint['method'], $endpoint['uri']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllowedLanguages() {}", "public function getAvailableLanguages() {}", "public function get_desired_languages();", "public function getLanguages() {}", "public function languages_get() {\n $languages = $this->api_model->languages_get();\n $this->set_response($languages, REST_Control...
[ "0.7865413", "0.77047163", "0.7681404", "0.7545802", "0.7528167", "0.74772185", "0.7452576", "0.7423218", "0.7371134", "0.7261948", "0.72579956", "0.72424877", "0.7224764", "0.72211134", "0.7146286", "0.70730156", "0.70668995", "0.7060911", "0.70511615", "0.705105", "0.701061...
0.7475552
6
Getting a language from judge API
public function getLanguage(int $id) { $endpoint = $this->endpoints['getLanguage']; $uri = str_replace("{id}", $id, $endpoint['uri']); return $this->sendRequest($endpoint['method'], $uri); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLang();", "public function language();", "public function language();", "public function getLanguage() {}", "public function getLanguage();", "public function getLanguage();", "public function getLanguage();", "public function getLanguage();", "public function getLanguage();", ...
[ "0.73247457", "0.72225356", "0.72225356", "0.72130877", "0.70818543", "0.70818543", "0.70818543", "0.70818543", "0.70818543", "0.70818543", "0.7076914", "0.70219016", "0.6974599", "0.6838887", "0.6757546", "0.672816", "0.6698405", "0.6688584", "0.66880006", "0.668364", "0.666...
0.0
-1
/ | | judge0 Statuses |
public function getStatuses() { $endpoint = $this->endpoints['getStatuses']; return $this->sendRequest($endpoint['method'], $endpoint['uri']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function do_judge() {\n\t\t$status = $this->prepare_and_compile();\n\t\tif ($status != 0) return $status;\n\t\t$status = $this->prepare_testset();\n\t\tif ($status != 0) return $status;\n\t\t$status = $this->run_testcases();\n\t\treturn $status;\n\t}", "public function luxScore();", "public function vo...
[ "0.65499234", "0.59275717", "0.58895844", "0.56596357", "0.5617559", "0.55408704", "0.5472262", "0.546212", "0.54510856", "0.54289114", "0.5426981", "0.5280597", "0.52534944", "0.52473456", "0.5223666", "0.5218642", "0.52039266", "0.5199799", "0.5192727", "0.51910704", "0.516...
0.0
-1
/ | | internal functions | Formating the response returned by the Guzzle Client
protected function formatResponse(Response $res) { return [ 'code' => $res->getStatusCode(), 'content' => (array)json_decode($res->getBody()->getContents()), ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRawResponse();", "public function getRawResponse() {\n\t}", "public function getInnerResponse();", "public function __toString()\n {\n return $this->response->get('json');\n }", "public function getResponse()\n {\n return $this->getRawHeaders() . \"\\r\\n\\r\\n\" ....
[ "0.71502167", "0.70475864", "0.69049203", "0.68797755", "0.6860646", "0.6799085", "0.67559355", "0.66662", "0.66662", "0.6658611", "0.66580266", "0.6630405", "0.66103745", "0.6581304", "0.65792024", "0.65291446", "0.65148836", "0.6500415", "0.6477557", "0.6477109", "0.6446981...
0.0
-1
In Case judge0 counld not process the request, it will return a response with an Http error code, and it is cached bu Guzzle client and it throw is as an exception, here for format the exception to return an appropriate response
protected function formatClientException(ClientException $e){ return [ 'code' => $e->getCode(), 'message' => $e->getMessage() ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function throwRequestNotFoundException()\n {\n return Response::json([\n 'message' => 'Your request could not be found try again'\n ], 300);\n }", "public function throw()\n {\n $response = new JsonResponse($this->getResponse(), $this->code);\n\n die(...
[ "0.69032013", "0.6574205", "0.65415984", "0.6425324", "0.63902265", "0.6348385", "0.6348174", "0.6328754", "0.63222086", "0.63162184", "0.63094443", "0.62884986", "0.62838274", "0.62493217", "0.6248295", "0.62225026", "0.62214476", "0.62156856", "0.62130547", "0.62070113", "0...
0.0
-1
Easily send a request to a uri with the guzzle client and get a formated response
public function sendRequest(string $method, string $uri, array $options = []) { try { return $this->formatResponse( $this->client->request($method, $uri, $options) ); } catch (ClientException $e) { if(config('judge0.exception_on_failed_requests')){ throw $e; } return $this->formatClientException($e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function send()\n {\n $request = $this->createRequest();\n $contentId = $request->getHeaderLine('Content-Id') ?? '-';\n $request = $request->withAddedHeader('Referrer', $contentId);\n\n $requestLogHeader = \"--------------------------------\\r\\nRequest\\r\\n------------------...
[ "0.693842", "0.6696407", "0.6601719", "0.64868844", "0.641141", "0.6338581", "0.6322434", "0.63195235", "0.62916195", "0.6058737", "0.6028676", "0.60284853", "0.5980459", "0.5946621", "0.59393257", "0.59339714", "0.5933161", "0.5926445", "0.59047866", "0.5877673", "0.5859521"...
0.5715048
30
Method that sends an email.
private function send( string $to, string $title, string $message ) : void { // psw 08_E(C%#t@yv $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=UTF-8' . "\r\n"; wp_mail( $to, $title, $message, $headers ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function _sendMail ( );", "public function send_email() {\n $toemail = $this->params['toemail'];\n $subject = $this->params['subject'];\n $content = $this->params['content'];\n }", "public function send_email() {\n\t\t$args = [\n\t\t\t'to' => apply_filters(\n\t\t\t\ts...
[ "0.79483104", "0.78881896", "0.76826614", "0.75568473", "0.75556904", "0.75466543", "0.7526103", "0.75245285", "0.75015044", "0.7470268", "0.74490017", "0.74381995", "0.7422619", "0.7408795", "0.7380101", "0.73602176", "0.73483187", "0.73221236", "0.72971183", "0.72761106", "...
0.0
-1
Method that sends an message when the status is aprovado.
public function send_aprovado( string $email, string $nome ) : void { $message = Hcco_Email_Templates::get_aprovado_template( $nome ); $this->send( $email, 'Pagamento Aprovado', $message ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function alterarStatus() {\n\n\t\t$codigoParaAlterar = $_GET['codigo'];\n\t\t$statusAutal = $_GET['status'];\n\n\t\tif (true){\n\n\t\t\techo '<div class=\"alert alert-success\"><strong> Status do codigo \"'.$codigoParaAlterar.'\" alterado com sucesso!</strong> </div>';\n\n\t\t}else{\n\n\t\t\techo \"<div class='ale...
[ "0.6359693", "0.6245624", "0.61479115", "0.6007939", "0.59969777", "0.597867", "0.5958866", "0.5952921", "0.5947277", "0.5868596", "0.584251", "0.5834546", "0.58229566", "0.5820782", "0.5795125", "0.57712644", "0.57655036", "0.57590246", "0.57555664", "0.5748588", "0.5746081"...
0.0
-1
Method that sends an message when the status is rejeitado.
public function send_rejeitado( string $email, string $nome ) : void { $message = Hcco_Email_Templates::get_rejeitado_template( $nome ); $this->send( $email, 'Pagamento Rejeitado', $message ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update_status();", "private function status()\n {\n $this->botman->hears('status', function(BotMan $bot) {\n\n $status = 'subscribed';\n $user = Subscriber::where('telegram_user_id', $bot->getUser()->getId())->first();\n\n if(is_null($user))\n ...
[ "0.65792507", "0.65601206", "0.6483169", "0.6410923", "0.628391", "0.6252271", "0.6213323", "0.60858613", "0.6078479", "0.6060141", "0.60404766", "0.60294783", "0.6024362", "0.5975383", "0.5935697", "0.59024614", "0.58812356", "0.58808595", "0.5874375", "0.5854767", "0.583980...
0.0
-1
Method that sends an message when the status is pendente.
public function send_pendente( string $email, string $nome ) : void { $message = Hcco_Email_Templates::get_pendente_template( $nome ); $this->send( $email, 'Pagamento Pendente', $message ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function status_pending($status, $message)\n\t{\n\t\tstatic::status_message($status, $message.'... ', FALSE);\n\t}", "function updatestatus() {\n global $_lib;\n\n $dataH = array();\n $dataH['ID'] = $this->transaction->ID;\n $dataH['RemittanceS...
[ "0.63835925", "0.62663615", "0.6133409", "0.61202645", "0.6039207", "0.60286176", "0.5967532", "0.595725", "0.59533596", "0.5950015", "0.5936072", "0.5925212", "0.5921727", "0.5914312", "0.5895847", "0.58867276", "0.5873699", "0.587238", "0.58425015", "0.58409023", "0.5834136...
0.0
-1
Method that sends an message when the status is em mediacao.
public function send_em_mediacao( string $email, string $nome ) : void { $message = Hcco_Email_Templates::get_em_mediacao_template( $nome ); $this->send( $email, 'Pagamento em Mediacao', $message ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function status()\n {\n $GLOBALS['notification']->notify(array('listeners' => array('status', 'audio')));\n }", "private function status()\n {\n $this->botman->hears('status', function(BotMan $bot) {\n\n $status = 'subscribed';\n $user = Subscriber::wher...
[ "0.66000843", "0.6552645", "0.62096673", "0.6102166", "0.58711237", "0.57910246", "0.5746129", "0.57253605", "0.5650056", "0.5641966", "0.5620213", "0.5605038", "0.5597063", "0.5584496", "0.55716854", "0.5550071", "0.5494772", "0.5484665", "0.54779446", "0.5467025", "0.546702...
0.4952112
100
Method that sends an message when the status is em processo.
public function send_em_processo( string $email, string $nome ) : void { $message = Hcco_Email_Templates::get_em_processo_template( $nome ); $this->send( $email, 'Pagamento em Processo', $message ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function status()\n {\n $GLOBALS['notification']->notify(array('listeners' => array('status', 'audio')));\n }", "function statusMessagesOn()\n\t{\n\t\t$this->bStatusMessages = true;\n\t}", "private function status()\n {\n $this->botman->hears('status', function(BotMan $bot)...
[ "0.6417926", "0.641193", "0.62991595", "0.6206434", "0.61848235", "0.5907056", "0.5823835", "0.5803753", "0.57671475", "0.57618827", "0.5746467", "0.5734432", "0.56961584", "0.56498134", "0.5646934", "0.56406295", "0.5633729", "0.56274354", "0.56186116", "0.5598244", "0.55740...
0.0
-1
Method that sends an message when the status is autorizado.
public function send_autorizado( string $email, string $nome ) : void { $message = Hcco_Email_Templates::get_autorizado_template( $nome ); $this->send( $email, 'Pagamento Autorizado', $message ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function status()\n {\n $this->botman->hears('status', function(BotMan $bot) {\n\n $status = 'subscribed';\n $user = Subscriber::where('telegram_user_id', $bot->getUser()->getId())->first();\n\n if(is_null($user))\n {\n $status = 'unsubsc...
[ "0.67698634", "0.6688712", "0.64863163", "0.626937", "0.6213743", "0.61607385", "0.5980592", "0.597006", "0.5965153", "0.596337", "0.5952849", "0.5940947", "0.59259796", "0.59183276", "0.5911522", "0.5897679", "0.58822834", "0.5856366", "0.5847964", "0.5845294", "0.5840956", ...
0.54217356
84
Method that sends an message when the status is devolvido.
public function send_devolvido( string $email, string $nome ) : void { $message = Hcco_Email_Templates::get_devolvido_template( $nome ); $this->send( $email, 'Pagamento Devolvido', $message ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function statusdown($id)\n {\n //if down auto send notification\n $this->downmailer($id);\n }", "public function desactivar()\n {\n $this->estatus = 0;\n $this->save();\n }", "function desactivar(){\n\t\t// $rs = $this->ejecuta($sql);\n\t\t// if($this->como_va()){...
[ "0.6312866", "0.58447963", "0.584236", "0.57235163", "0.56578094", "0.55911887", "0.55536264", "0.54951507", "0.5476556", "0.54613584", "0.5450469", "0.5442596", "0.54290324", "0.5419354", "0.5385763", "0.5353738", "0.53285927", "0.5310103", "0.5307145", "0.52952236", "0.5286...
0.0
-1
Method that sends an message when the status is estornado.
public function send_estornado( string $email, string $nome ) : void { $message = Hcco_Email_Templates::get_estornado_template( $nome ); $this->send( $email, 'Pagamento Estornado', $message ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function heartbeat() {\n\t\techo '{\"status\":\"alive\"}'; \n\t}", "private function status()\n {\n $this->botman->hears('status', function(BotMan $bot) {\n\n $status = 'subscribed';\n $user = Subscriber::where('telegram_user_id', $bot->getUser()->getId())->first();\n\...
[ "0.61749893", "0.60000366", "0.59845376", "0.59393257", "0.5896931", "0.58148694", "0.5807573", "0.5794027", "0.57881176", "0.5718093", "0.56956494", "0.5665034", "0.56566745", "0.56370956", "0.56046927", "0.55774146", "0.5571293", "0.5560919", "0.55573624", "0.55559826", "0....
0.0
-1
Method that sends an message when the status is cancelado.
public function send_cancelado( string $email, string $nome ) : void { $message = Hcco_Email_Templates::get_cancelado_template( $nome ); $this->send( $email, 'Pagamento Cancelado', $message ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cancel();", "public function cancel()\n {\n }", "public function cancel()\n {\n }", "public function cancel(): void;", "public function cancelled()\n {\n \n $this->alert('info', 'Understood');\n }", "public function cancelled()\n {\n \n $this->aler...
[ "0.7551493", "0.7419438", "0.7419438", "0.7399781", "0.7340397", "0.7340397", "0.72196215", "0.7113506", "0.7028821", "0.70212567", "0.7009013", "0.6935421", "0.6729299", "0.6715122", "0.6698418", "0.66714597", "0.6659097", "0.66542435", "0.66539997", "0.6639256", "0.6625937"...
0.0
-1
Get the default namespace for the class.
protected function getDefaultNamespace($rootNamespace) { return $rootNamespace.'\Http\Controllers'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDefaultNamespace()\n\t{\n\t\treturn $this->default_namespace;\n\t}", "public function getDefaultNamespace();", "abstract public function getDefaultNameSpace();", "public function getNamespace()\n {\n return $this->getAttribute('metadata.namespace', 'default');\n }", "public ...
[ "0.8448936", "0.821764", "0.7800281", "0.74542356", "0.74156207", "0.7397914", "0.7362119", "0.7336174", "0.72904134", "0.7272925", "0.723129", "0.72085345", "0.7196747", "0.7127158", "0.7018227", "0.7012884", "0.69916", "0.6979542", "0.69777244", "0.6956813", "0.6936764", ...
0.0
-1
Get the desired class name from the input.
protected function getNameInput() { return trim($this->argument('name') . 'Controller'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getClassName($class)\n {\n return static::splitClassName($class)[1];\n }", "function get_class() {\n\t\t$args = func_get_args();\n\t\treturn strtolower(call_user_func_array(\"get_class\", $args));\n\t}", "private function retrieveClassName($name)\r\n {\r\n switch($name){\r...
[ "0.74678004", "0.7452415", "0.74322927", "0.7420758", "0.7420758", "0.73908925", "0.7377349", "0.7364161", "0.73561716", "0.73561716", "0.73561716", "0.73561716", "0.72705007", "0.72527105", "0.72289", "0.715619", "0.7099055", "0.708734", "0.7085015", "0.7045825", "0.70310307...
0.0
-1
Display reports for transactions.
public function transactions(Request $request) { $centers = ServiceCategory::orderBy('name')->get(); $search = $request->filled('search') ? $request->search : null; $center = $request->filled('center') ? $request->center: null; $date = $request->filled('date') ? Carbon::parse($request->date)->copy()->toDateString() : null; $status = $request->filled('status') ? $request->status : null; $bookings = Booking::when($search, function($query) use($search) { $query->where('booking_reference_no', 'LIKE', "%$search%") ->orWhereHas('patient', function($q) use($search) { $q->where(\DB::raw('concat(first_name, " ", last_name)'), 'like', "%$search%"); }); }) ->when($center, function($query) use($center) { $query->whereHas('bookingCenters', function($q) use($center) { $q->where('service_category_id', '=', $center); }); }) ->when($date, function($query) use($date) { $query->whereHas('bookingCenters', function($q) use($date) { $q->whereDate('available_date', '=', $date); }); }) ->when($status, function($query) use($status){ $query->where('status', $status); }) ->with('bookingCenters') ->with('bookingServices') ->latest()->paginate(15); if($request->filled('excelDownload')) { $name = "all-center-transactions-".now().".xlsx"; return Excel::download(new AllCenterTransactionReport($bookings), $name); } return view('support.reports.transactions', compact('bookings','centers')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n //\n return view('mes.reports.transactions');\n }", "public function viewDailyTraReport()\n {\n return view('Activities.Reports.dailyTransactionRpt');\n }", "public function show(transactions $transactions)\n {\n //\n }", "public fun...
[ "0.7361369", "0.7075482", "0.6996014", "0.68914527", "0.6848211", "0.6798423", "0.6797782", "0.6760534", "0.67073846", "0.67030454", "0.66285473", "0.6608147", "0.6606932", "0.660594", "0.6600969", "0.65716904", "0.65716904", "0.65716904", "0.6571647", "0.6559835", "0.6531046...
0.0
-1
Constructor. Init datepicker with default values from config file.
public function __construct($css_file = false) { parent::__construct('datepicker', $css_file); Console::logSpeed('SHIN_Datepicker begin work, Time taken to get to line: '.__FILE__.'::'.__LINE__); Console::logMemory($this, 'SHIN_Datepicker. Size of class: '); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function init() {\n $element = new ZendX_JQuery_Form_Element_DatePicker(\n 'dp1', array('jQueryParams' => array('defaultDate' => '2007/10/10'))\n );\n\n $form->setDecorators(array(\n 'FormElements',\n array('AccordionContainer', array(\n ...
[ "0.6492185", "0.64797395", "0.6463009", "0.616294", "0.600009", "0.596826", "0.5953973", "0.5929928", "0.58514977", "0.5813846", "0.5809834", "0.578204", "0.57574815", "0.57406914", "0.569216", "0.5677027", "0.56746286", "0.5667701", "0.5649099", "0.561339", "0.5546698", "0...
0.5813496
10
Return body of JS with all filled parameters.
protected function _body() { $_ret = "$(function() { $(\"#{$this->htmlID}\").datepicker({"; $_temporary = array(); if(isset($this->sh_Options['dateFormat'])) { $this->sh_Options['dateFormat'] = "'" . framework2datepicker($this->sh_Options['dateFormat']) . "'"; } foreach($this->sh_Options as $p=>$k) { array_push($_temporary, "\n {$p}: {$k}"); } $_ret .= implode(', ', $_temporary); $_ret .= ' }); });'; return $_ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function renderParamJs() {\n $script = '<script type=\"text/javascript\"> if(typeof TAMI.pagedata ==\"undefined\"){TAMI.pagedata={}; } ';\n\n foreach ($this->paramjs as $key => $val) {\n $script = $script . ' TAMI.pagedata.' . $key . '=' . json_encode($val) . '; ';\n }\n\n ...
[ "0.70985174", "0.70921266", "0.70038605", "0.69458437", "0.6819366", "0.674421", "0.674357", "0.6609671", "0.65162194", "0.6166506", "0.6143362", "0.6137977", "0.61189693", "0.6084447", "0.60623497", "0.6032712", "0.6012942", "0.5990619", "0.5989453", "0.5988697", "0.5984244"...
0.64448065
9
Set jQuery param: showAnim
public function setAnimation($param){ $this->_config_mapper(array('showAnim' => $param)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAnimated($value) {\r\n $this->animated = $value;\r\n }", "function jquery_loadinganimation_init() {\n $module_path = drupal_get_path('module', 'exam');\n $js_settings = _jquery_loadinganimation_get_settings();\n drupal_add_js(array('jquery_loadinganimation' => $js_settings), 'sett...
[ "0.5865406", "0.5532385", "0.5524836", "0.5094545", "0.49960297", "0.49097446", "0.49047753", "0.48552394", "0.48325107", "0.47908565", "0.4753761", "0.47518334", "0.46917227", "0.46686888", "0.46620557", "0.46072653", "0.46038592", "0.46038592", "0.46038592", "0.45947656", "...
0.74300146
0
Set jQuery params: showOn, buttonImageOnly, buttonImage
public function setIconTrigger($showOn, $btnImageOnly, $btnImage = '') { if(in_array(strtolower($showOn), array('focus', 'button', 'both'))) { $this->_config_mapper(Array('showOn' => "'" . $showOn . "'")); } if($btnImageOnly) { $this->_config_mapper(Array('buttonImageOnly' => 'true')); } else { $this->_config_mapper(Array('buttonImageOnly' => 'false')); } if(!empty($btnImage)){ $this->_config_mapper(Array('buttonImage' => $btnImage)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function init()\n\t{\n\t\tparent::init();\n\n\t\tif(isset($this->buttons['view']) && isset($this->viewButtonVisible))\n\t\t\t$this->buttons['view']['visible']=$this->viewButtonVisible;\n\t\tif(isset($this->buttons['update']) && isset($this->updateButtonVisible))\n\t\t\t$this->buttons['update']['visible']=$t...
[ "0.5634563", "0.5525744", "0.5367824", "0.53665644", "0.5284996", "0.52413917", "0.521483", "0.517427", "0.5147277", "0.51294315", "0.51248723", "0.5093885", "0.5081075", "0.5040973", "0.5036373", "0.5015135", "0.5011129", "0.49773154", "0.49744514", "0.49605867", "0.49593577...
0.6283972
0
Set jQuery param: dateFormat
public function setDateFormat($dateFormat){ $this->_config_mapper(Array('dateFormat' => "'" . $dateFormat . "'")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function dateFormat();", "public function setDateFormat($date){\n\t\t$this->_dateFormat = $date;\n\t}", "public function getDateFormat(){\n\t\t$this->_dateFormat = $date;\n\t}", "abstract public function jdateFormat($format = null, array &$attributes = array());", "function wp_ajax_date_format()\n ...
[ "0.6932633", "0.66325164", "0.65835387", "0.6403687", "0.6282072", "0.6260209", "0.6170489", "0.6168395", "0.61544216", "0.6152389", "0.6057596", "0.6006657", "0.59643567", "0.59643567", "0.58614933", "0.57841605", "0.57278097", "0.571048", "0.56762093", "0.5671123", "0.55593...
0.65300757
3
Set jQuery params: minDate, maxDate
public function setMinMaxDate($minDate = 'null', $maxDate = 'null') { if($minDate != 'null'){ $this->_config_mapper(Array('minDate' => "'" . $minDate . "'")); } if($maxDate != 'null'){ $this->_config_mapper(Array('maxDate' => "'" . $maxDate . "'")); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setMinMaxDate($minDate, $maxDate) {\r\n $this->setMinMax($minDate->toDouble(), $maxDate->toDouble());\r\n }", "private function setFilter(): void\n {\n // start date is set\n if ($this->getRequest()->query->has('start_date') && $this->getRequest()->query->get('start_dat...
[ "0.67372954", "0.59364897", "0.5883318", "0.57690585", "0.57052", "0.5564721", "0.5560985", "0.5523682", "0.55008084", "0.54079777", "0.532863", "0.5322418", "0.52361155", "0.5219683", "0.5208982", "0.51432866", "0.5142769", "0.51232296", "0.5114214", "0.51087546", "0.5084568...
0.71662825
0