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
Checks if the tips is not approved
public function getIsNotApproved() { return $this->state !== self::STATE_APPROVED; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasTips(){\n return $this->_has(19);\n }", "public function my_is_not_approved()\n {\n $user = User::all();\n $category = Category::all();\n $posts = Post::where('user_id',Auth::user()->id)->where('post_status', 0)->orWhere('post_status', 1)->orWhere('post_status',...
[ "0.63948023", "0.600258", "0.60017776", "0.59890926", "0.5855901", "0.5773095", "0.5771681", "0.5765917", "0.5735689", "0.572867", "0.5676405", "0.5641486", "0.56408525", "0.5622237", "0.56174344", "0.56074584", "0.56007814", "0.55976695", "0.55892813", "0.54917336", "0.54831...
0.59428376
4
Sets the date time of the tip
public function setDatetime(\DateTime $datetime) { $this->datetime = $datetime; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDate()\n\t{\n\t\tif($this->isNewRecord)\n\t\t\t$this->create_time=$this->update_time=time();\n\t\telse\n\t\t\t$this->update_time=time();\n\t}", "public function setDate()\n\t{\n\t\tif($this->isNewRecord)\n\t\t\t$this->create_time=$this->update_time=time();\n\t\telse\n\t\t\t$this->update_time=t...
[ "0.70609605", "0.70609605", "0.7016506", "0.694711", "0.67483777", "0.66318166", "0.62429905", "0.6217156", "0.62112564", "0.60512024", "0.60226196", "0.5939672", "0.59212726", "0.5905325", "0.58766663", "0.5873458", "0.58726114", "0.58513504", "0.58444417", "0.5835992", "0.5...
0.0
-1
Sets the currently associated product.
public function setProduct(Product $product) { $this->product = $product; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setProduct( $product )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n if ( get_class( $product ) == \"ezproduct\" )\n {\n $this->ProductID = $product->id();\n }\n }", "public function setProduct(Product $product);", "public fun...
[ "0.76084846", "0.738577", "0.6941138", "0.6913554", "0.65874326", "0.6572435", "0.64851147", "0.6324662", "0.62889665", "0.6217858", "0.61843127", "0.61381173", "0.61021", "0.6041676", "0.60079926", "0.59984267", "0.5983448", "0.59822834", "0.59811795", "0.59408075", "0.59408...
0.61693954
11
Returns the associated product.
public function getProduct() { return $this->product; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProduct()\n {\n return $this->hasOne(Product::className(), ['id' => 'product_id']);\n }", "public function getProduct()\n {\n return $this->hasOne(Product::className(), ['id' => 'product_id']);\n }", "public function getProduct()\n {\n return $this->hasOne...
[ "0.8086518", "0.8086518", "0.8086518", "0.8086518", "0.78158677", "0.77979565", "0.77979565", "0.77620494", "0.7747835", "0.76479703", "0.7640958", "0.76359206", "0.76004434", "0.7535084", "0.74979556", "0.7445715", "0.74376017", "0.7417451", "0.73797244", "0.7327174", "0.732...
0.78874624
9
Sets the user who created the tip.
public function setCreator(\TYPO3\CMS\Extbase\Domain\Model\FrontendUser $creator) { $this->creator = $creator; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function SetCreatedBy(User $value = null)\n\t\t{\n\t\t\t$this->createdby = $value;\n\t\t}", "function setUser( $user )\r\n {\r\n if ( is_a( $user, \"eZUser\" ) )\r\n {\r\n $userID = $user->id();\r\n\r\n $this->UserID = $userID;\r\n }\r\n }", "public func...
[ "0.69612056", "0.68031853", "0.6765849", "0.66388625", "0.6548", "0.65418446", "0.6515282", "0.6505725", "0.6501169", "0.6501169", "0.6492789", "0.6489394", "0.64437354", "0.6419718", "0.64071506", "0.64036864", "0.63504034", "0.6347162", "0.6329088", "0.6317693", "0.6316842"...
0.0
-1
Returns the user which created this record.
public function getCreator() { return $this->creator; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCreatedBy()\n {\n return $this->created_by;\n }", "public function getCreatedBy()\n {\n return $this->createdBy;\n }", "public function getCreatedBy()\n {\n return $this->createdBy;\n }", "public function getCreatedBy()\n {\n return $this->c...
[ "0.7869816", "0.7811521", "0.7811521", "0.7811521", "0.7811521", "0.7811521", "0.7811521", "0.77951515", "0.76913464", "0.7659948", "0.7656575", "0.7656575", "0.7656575", "0.7656575", "0.76529384", "0.7621187", "0.7618114", "0.7604204", "0.7604204", "0.7604204", "0.7604204", ...
0.0
-1
Gets the creators name
public function getCreatorName() { return $this->creator->getName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTaskCreatorName()\n\t{\n\t\treturn $this->first_name.' '.$this->last_name;\n\t}", "public function getCreator()\n\t{\n\t\treturn UserUtil::getUser($this->creator)->getFullName();\n\t}", "public function getCreator()\n {\n return $this->creator;\n }", "public function getCreato...
[ "0.7166159", "0.70078814", "0.6882633", "0.6882633", "0.6882633", "0.6882633", "0.6882633", "0.6882633", "0.6882633", "0.6882633", "0.6804019", "0.6770167", "0.67448646", "0.67448646", "0.6728925", "0.6703168", "0.6683953", "0.6648747", "0.663175", "0.659715", "0.659715", "...
0.79937667
0
Returns this record as a formatted string
public function __toString() { return $this->name . ';' . $this->description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __toString()\n {\n return $this->format();\n }", "public function __toString()\n {\n return $this->format();\n }", "public function __toString()\n {\n return $this->format();\n }", "public function __toString()\r\n {\r\n return $this->getFormat...
[ "0.7963569", "0.7963569", "0.7963569", "0.7851944", "0.77770776", "0.7748307", "0.7676792", "0.76694363", "0.754327", "0.7313691", "0.7297516", "0.7278703", "0.72500944", "0.72270286", "0.71682274", "0.7162761", "0.7151763", "0.7123431", "0.7119403", "0.7093571", "0.7072811",...
0.0
-1
Callback for the runcronhooks command
function drush_lightcron_run_cron_hooks() { $modules = lightcron_parse_arguments(func_get_args(), FALSE); foreach ($modules as $module) { if (module_exists($module)) { $callback = $module . '_cron'; if (function_exists($callback)) { $callback(); drush_log(dt('!module (!date): cron ho...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function execute_uninstall_hooks() {\r\n\t\t\r\n }", "public function add_hooks()\n {\n }", "public function add_hooks()\n {\n }", "public function hook();", "abstract public function register_hook_callbacks();", "public function remove_hooks()\n {\n }"...
[ "0.64715654", "0.61678886", "0.61678886", "0.61254245", "0.5965425", "0.5913139", "0.5913139", "0.59021336", "0.5845124", "0.5745571", "0.57436836", "0.5666987", "0.5598307", "0.5597547", "0.5593154", "0.55419004", "0.5519921", "0.5494482", "0.5471523", "0.54706436", "0.54418...
0.62362635
1
Sanitize user provided arguments Return an array of arguments off a space and/or comma separated values.
function lightcron_parse_arguments($args, $dashes_to_underscores = TRUE) { // @see drush/includes/drush.inc for _convert_csv_to_array($args) $arguments = _convert_csv_to_array($args); foreach ($arguments as $key => $argument) { $argument = ($dashes_to_underscores) ? strtr($argument, '-', '_') : $argument; }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function clean_args($args)\n{\n\tif (!is_array($args))\n\t\t$args = array($args);\n\t\n\tforeach ($args as $arg)\n\t\t$filtered .= clean($arg);\n\t\n\treturn $filtered;\n}", "function clean_array_arguments($argument) {\n\treturn preg_replace('/\\s*=\\s*[\\'|\"](.*)[\\'|\"]\\s*/', '', $argument);\n}", "private ...
[ "0.731425", "0.6844637", "0.65650374", "0.6389837", "0.62739646", "0.6270349", "0.62693286", "0.6214124", "0.61543244", "0.60396636", "0.6036919", "0.5995927", "0.59755003", "0.5974423", "0.59299034", "0.59291553", "0.59247315", "0.57689947", "0.5752704", "0.574574", "0.57371...
0.5966752
14
Main method, extract data from self::$url
static public function extract() { try { $result = []; $document = @new Document(self::$url, true); $lines = $document ->find('tbody')[0] ->find('tr'); foreach ($lines as $line) { $columns = $line->find('td'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function obtenerURLData(){\n\t\t$urldata = (isset($_GET['page'])) ? $_GET['page'] : '' ;\n\t\tself::$urlPath = $urldata;\n\t\tif($urldata == ''){\n\t\t\tself::$urlBits[] = 'home';\n\t\t\tself::$urlPath = 'home';\n\t\t}else{\n\t\t\t$data = explode('/', $urldata);\n\t\t\twhile (!empty($data) && strlen(reset($...
[ "0.7003904", "0.69996333", "0.6832051", "0.6765076", "0.6571115", "0.6485284", "0.64607054", "0.62756735", "0.6237788", "0.6162322", "0.6142646", "0.612885", "0.61214715", "0.60969996", "0.6054293", "0.60429496", "0.6039135", "0.6039135", "0.60362756", "0.603391", "0.6027697"...
0.0
-1
/ PreRemove Event Listener
public function preRemove(LifecycleEventArgs $args) { $entity = $args->getEntity(); $em = $args->getEntityManager(); if ($entity instanceof User) { $eventRepository = $em->getRepository(Event::class); $events = $eventRepository->findByUser($entity->getId()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function onRemove();", "public function preRemoveCallback()\n {\n $this->performPreRemoveCallback();\n }", "public function preRemoveCallback()\n {\n $this->performPreRemoveCallback();\n }", "protected function beforeRemoving()\n {\n }", "public function afterRemove()...
[ "0.7669814", "0.7584526", "0.7584526", "0.6825954", "0.6786659", "0.670652", "0.66982734", "0.6584274", "0.6576111", "0.6576111", "0.6471108", "0.63169235", "0.6183574", "0.6183574", "0.6154882", "0.6128454", "0.6086364", "0.60740435", "0.6070118", "0.60690206", "0.60408634",...
0.576527
47
Create a new Object
function sendEmail($email, $subject, $comment, $admin_email, $cc) { $mj = new Mailjet(); $params = array( "method" => "POST", "from" => "{$admin_email}", "to" => "{$email}", "cc" => "{$cc}", "subject" => "{$subject}", "text" => "{$comment}"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newInstance(): object;", "abstract protected function createObject();", "public function create( &$object );", "function create()\n\t{\n\t\t$names = $this->_fields;\n\t\t$object = new StdClass;\n\t\tforeach ($names as $name)\n\t\t\t$object->$name = \"\";\n\t\treturn $object;\n\t}", "public ...
[ "0.7833859", "0.77775437", "0.7546599", "0.7399197", "0.7322013", "0.7316594", "0.7316594", "0.72528094", "0.72528094", "0.72528094", "0.7248915", "0.7248915", "0.7206463", "0.7192749", "0.71806496", "0.71626425", "0.71626425", "0.71626425", "0.71626425", "0.71626425", "0.716...
0.0
-1
This method will retrieve all Departments of corporate
public function getDepartmentsList($accountId) { $query = $this->createQueryBuilder('p') ->select('p,ca.name as accountName') ->leftJoin('CorporateBundle:CorpoAccount', 'ca', 'WITH', "ca.id = p.accountId"); if ($accountId) { $query->where("p.accountId = :accountId...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAllDepartments() {\r\n $data = new \\Cars\\Data\\Common($this->app);\r\n return $data->getAllDepartments();\r\n }", "public function index()\n {\n return Departments::all();\n }", "function GetDepartments()\n\t{\n\t\t$result = $this->sendRequest(\"GetDepartments\", arr...
[ "0.7009796", "0.6563515", "0.651281", "0.63708097", "0.62968075", "0.62751615", "0.6258663", "0.62275267", "0.6200337", "0.61787766", "0.6087594", "0.60709435", "0.6064437", "0.60592103", "0.60588205", "0.6050299", "0.60315305", "0.6023613", "0.59789276", "0.59547156", "0.594...
0.0
-1
This method will retrieve all Departments of corporate
public function getCorpoAdminLikeDepartments($term, $limit, $accountId) { $query = $this->createQueryBuilder('p') ->select('p.name,p.id'); if ($term && $term != '') { $query->where('p.name LIKE :term') ->setParameter(':term', '%'.$term.'%'); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAllDepartments() {\r\n $data = new \\Cars\\Data\\Common($this->app);\r\n return $data->getAllDepartments();\r\n }", "public function index()\n {\n return Departments::all();\n }", "function GetDepartments()\n\t{\n\t\t$result = $this->sendRequest(\"GetDepartments\", arr...
[ "0.7009796", "0.6563515", "0.651281", "0.63708097", "0.62968075", "0.62751615", "0.6258663", "0.62275267", "0.6200337", "0.61787766", "0.6087594", "0.60709435", "0.6064437", "0.60592103", "0.60588205", "0.6050299", "0.60315305", "0.6023613", "0.59789276", "0.59547156", "0.594...
0.0
-1
This method will retrieve a Department of corporate
public function getDepartmentById($id) { $query = $this->createQueryBuilder('p') ->select('p,ca.name as accountName') ->leftJoin('CorporateBundle:CorpoAccount', 'ca', 'WITH', "ca.id = p.accountId") ->where("p.id = :ID") ->setParameter(':ID', $id); $qu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDepartment()\n\t{\n\t\t$ci =& get_instance();\n\t\t$ci->load->library('department');\n\n\t\t$department = new Department($this->department_id);\t\t\t\t\n\n\t\treturn $department;\n\t}", "function get_department(){\n $this->_db2->where(\"DeleteFlag\",\"A\");\n return $this->_db2->...
[ "0.718407", "0.7162293", "0.68948823", "0.6780472", "0.67788154", "0.6767236", "0.6762305", "0.67605317", "0.6759552", "0.6746991", "0.6655479", "0.6628052", "0.65773016", "0.6529997", "0.64915407", "0.635032", "0.6333378", "0.6327125", "0.6317552", "0.6281144", "0.6275694", ...
0.57915866
68
This method will add a Department for corporate Department
public function addDepartments($parameters) { $this->em = $this->getEntityManager(); $profile = new CorpoDepartments(); $profile->setName($parameters['name']); $profile->setAccountId($parameters['accountId']); $this->em->persist($profile); $this->em->flush(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addDepartment($depName) {\n\n /*\n $dept = new Sysinventory_Department();\n $dept->description = $depName;\n $dept->last_update = mktime();\n $result = $dept->save();\n */\n\n //test($depName,1);\n if (!isset($depName)) return;\n $db = &new PH...
[ "0.75487596", "0.7030192", "0.6842483", "0.6611218", "0.64723", "0.6457899", "0.64057255", "0.63938135", "0.6365737", "0.633922", "0.6333738", "0.63314545", "0.62857807", "0.6274391", "0.6272215", "0.61879396", "0.6175046", "0.6173656", "0.61438555", "0.61361974", "0.6110865"...
0.582156
34
This method will update a Department
public function updateDepartments($parameters) { $this->em = $this->getEntityManager(); $qb = $this->em->createQueryBuilder('p') ->update('CorporateBundle:CorpoDepartments', 'p') ->set("p.name", ":name") ->set("p.accountId", ":accountId") ->where...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update(DepartmentRequest $request, $id)\n {\n $department = Department::findOrFail($id);\n $department->update($request->all());\n }", "public function editDepartmentUpdate()\n {\n if($this::check_session()){\n $this->form_validation->set_rules('updtdepartme...
[ "0.76518184", "0.7563651", "0.7559056", "0.7527306", "0.7493372", "0.74815035", "0.73933464", "0.7333515", "0.7333493", "0.7330726", "0.73276854", "0.7318367", "0.73138744", "0.7267087", "0.72540075", "0.72415054", "0.7212387", "0.72118163", "0.7207419", "0.7205662", "0.72023...
0.0
-1
This method will delete a Department
public function deleteDepartments($id) { $this->em = $this->getEntityManager(); $qb = $this->em->createQueryBuilder('p') ->delete('CorporateBundle:CorpoDepartments', 'p') ->where("p.id = :ID") ->setParameter(':ID', $id); $query = $qb->getQuery(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteById($departmentId);", "public static function delete($id) {\n DB::query('DELETE FROM Department WHERE id = :id', array('id' => $id));\n }", "public function destroy(Department $department,$id=0)\n {\n if($id==1)\n {\n $this->sdc->log(\"Department\",\...
[ "0.8342845", "0.7692757", "0.76736987", "0.7666237", "0.76521724", "0.7630206", "0.75414956", "0.7418667", "0.7365222", "0.7276678", "0.7181386", "0.71712965", "0.7093571", "0.70814335", "0.70680934", "0.70659155", "0.7061961", "0.705312", "0.69950086", "0.69902", "0.69828355...
0.0
-1
Display a listing of the resource.
public function index() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Display the specified resource.
public function show($email) { $current_account_type = session()->get('account_type_id'); if($current_account_type == '002') return back()->with('alert', 'Sorry, only admins and teaching assistants can veiw this info!'); // If user is a ta, check if ta is showing his own prefs ...
{ "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
Match if 2 arrays have the same keys and/or values regardless of order
public function arraysAreSimilar($a, $b) { // if the indexes don't match, return immediately if (count(array_diff($a, $b)) > 0) { return false; } // we have identical indexes, and no unequal values return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cp_arrayIsSame($array1, $array2,$keys){\r\n\r\n foreach($keys as $key){\r\n if($array1[$key] != $array2[$key]){\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n}", "function arrays_are_similar($a, $b) {\n\tif (count(array_diff_assoc($a, $b))) {\n\t\treturn false;\...
[ "0.78573424", "0.7347651", "0.6818272", "0.6810054", "0.67584395", "0.6720646", "0.6654318", "0.66026187", "0.65924275", "0.6530842", "0.6500268", "0.6349106", "0.6338769", "0.6286877", "0.62820876", "0.61874694", "0.6178441", "0.61343205", "0.6084194", "0.60712606", "0.60479...
0.6947548
2
Helper to get config value
public function getConfigValue($field, $storeId = null) { return $this->scopeConfig->getValue($field, ScopeInterface::SCOPE_STORE, $storeId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getConfigValue($key) {\r\n\t\t$db = & JFactory::getDBO() ;\r\n\t\t$sql = 'SELECT config_value FROM #__osmembership_configs WHERE config_key=\"'.$key.'\"';\r\n\t\t$db->setQuery($sql) ;\t\t\r\n\t\treturn $db->loadResult();\r\n\t}", "private function getConfigValue($value){\n return $this->scopeConf...
[ "0.7553278", "0.7431989", "0.74247754", "0.73062676", "0.7257997", "0.7177456", "0.7113648", "0.6987677", "0.69816", "0.69451654", "0.69317466", "0.69019854", "0.68590444", "0.6828171", "0.6808459", "0.67643625", "0.67643625", "0.67579144", "0.67278004", "0.6704792", "0.67030...
0.0
-1
Helper to get general config value
public function getGeneralConfig($code, $storeId = null) { return $this->getConfigValue(self::XML_PATH_NEWSLETTER_AJAX . 'general/' . $code, $storeId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_setting() {\n return get_config(NULL, $this->name);\n }", "function getConfigValue($key) {\r\n\t\t$db = & JFactory::getDBO() ;\r\n\t\t$sql = 'SELECT config_value FROM #__osmembership_configs WHERE config_key=\"'.$key.'\"';\r\n\t\t$db->setQuery($sql) ;\t\t\r\n\t\treturn $db->loadResult();\r...
[ "0.72003764", "0.7107388", "0.71034867", "0.6974526", "0.6932584", "0.69272727", "0.68756825", "0.6827483", "0.6818475", "0.6803207", "0.6803207", "0.6803207", "0.6803207", "0.6803207", "0.6803207", "0.6803207", "0.6803207", "0.6763692", "0.6747255", "0.67431974", "0.67431974...
0.0
-1
Run the database seeds.
public function run() { DB::table('portada')->truncate(); $usuarios = array( array( 'texto_superior_derecho' => 'Gremial Médica Hospitalaria Frace breve de Bienvenida Hasta ochenta y nueve (89) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n fact...
[ "0.8013876", "0.79804534", "0.7976992", "0.79542726", "0.79511505", "0.7949612", "0.794459", "0.7942486", "0.7938189", "0.79368967", "0.79337025", "0.78924936", "0.78811055", "0.78790957", "0.78787595", "0.787547", "0.7871811", "0.78701615", "0.7851422", "0.7850352", "0.78414...
0.0
-1
Returns app settings by environment
public static function getSettings(string $environment = self::ENV_DEVELOPMENT): array { return [ 'settings' => array_replace_recursive(self::$settings['development'], self::$settings[$environment]), ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function environment()\n {\n return \\Config::get('app')['env'];\n }", "public static function get()\n\t{\n\t\t// then return content of APPLICATION_ENV\n\t\t// else return \"development\"\n\t\treturn (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : \"development\");\n\t}", "functio...
[ "0.711632", "0.6672231", "0.66611826", "0.6617214", "0.6607591", "0.65916234", "0.65916234", "0.65916234", "0.65916234", "0.65916234", "0.65916234", "0.6549785", "0.6534558", "0.6505526", "0.65042967", "0.6485447", "0.6481649", "0.645241", "0.6448784", "0.63863117", "0.637946...
0.6127785
37
TODO: Implement failure() method.
public function failure(){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function failed();", "public function fails();", "public function fails();", "public abstract function onFail();", "public function runFailed();", "protected function Run_Failure() {\n\t\tif (!empty($this->failure)) \n\t\t{\n\t\t\tcall_user_func_array($this->failure['function'], $this->failure['pa...
[ "0.82567525", "0.79908586", "0.79908586", "0.7699416", "0.75073", "0.7506118", "0.7493932", "0.7479181", "0.74206114", "0.73987865", "0.72376084", "0.7158024", "0.7151769", "0.71056545", "0.7096287", "0.7014697", "0.6876539", "0.6820799", "0.6810175", "0.673082", "0.67245436"...
0.8122399
1
Create new Asset instance.
public function __construct($path, $filenameMethod = false) { $this->path = rtrim($path, '/'); $this->filenameMethod = $filenameMethod; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCreate()\n {\n $model = new Asset();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->Id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ...
[ "0.6916663", "0.6644593", "0.6609761", "0.63866293", "0.6376958", "0.6298653", "0.62254936", "0.61809313", "0.61711395", "0.6167919", "0.6084457", "0.6031257", "0.60116965", "0.59484726", "0.5871187", "0.586444", "0.5835751", "0.57912195", "0.57832634", "0.5738563", "0.570127...
0.0
-1
Create "cache busted" asset URL.
public function cachedAssetUrl($url) { $filePath = $this->path . '/' . ltrim($url, '/'); if (!file_exists($filePath)) { throw new LogicException( 'Unable to locate the asset "' . $url . '" in the "' . $this->path . '" directory.' ); } $lastU...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function asset_url($uri = '', $protocol = NULL ,$ctype = '')\n{\n $ci =& get_instance();\n $cache_busting_token = (! Config::DEBUG_MODE )? '?' . $ci->config->item('cache_busting_token') : '';\n if($ctype != ''){\n if($ctype == 'css'){\n $cache_busting_token .= ! Config::DEBUG_MODE ? $ci->conf...
[ "0.723229", "0.69472337", "0.688669", "0.67228067", "0.65536284", "0.65031654", "0.64400804", "0.64110476", "0.63652664", "0.6221502", "0.6177845", "0.6160608", "0.6137343", "0.6038086", "0.6029056", "0.60015136", "0.5997293", "0.5989653", "0.596561", "0.59623235", "0.5955022...
0.5715831
38
Check either mcrypt extension available. Raise error if it is not.
private final function CheckMcrypt() { if (!function_exists("mcrypt_module_open")) Core::ThrowException("Cannot call mcrypt_module_open(). Mcrypt extension not installed?", E_ERROR); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function isMcryptAvailable()\n {\n return extension_loaded('mcrypt');\n }", "public function hasMcryptSupport()\n {\n return function_exists('mcrypt_encrypt');\n }", "private final function CheckMhash()\r\n\t\t{\r\n\t\t\tif (!function_exists(\"mhash\"))\r\n\t\t\t\tCore::...
[ "0.822372", "0.74715406", "0.69243866", "0.67649513", "0.6209602", "0.58711183", "0.58627963", "0.5846359", "0.5828315", "0.5824794", "0.5788872", "0.5763837", "0.5711021", "0.5707655", "0.56404537", "0.56126285", "0.5560324", "0.5558001", "0.55440444", "0.5479847", "0.546718...
0.8711622
0
Check either mhash extension available. Raise error if it is not.
private final function CheckMhash() { if (!function_exists("mhash")) Core::ThrowException("Cannot call mhash(). Mhash extension not installed?", E_ERROR); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private final function CheckMcrypt()\r\n\t\t{\r\n\t\t\tif (!function_exists(\"mcrypt_module_open\"))\r\n\t\t\t\tCore::ThrowException(\"Cannot call mcrypt_module_open(). Mcrypt extension not installed?\", E_ERROR);\r\n\t\t}", "public static function check_required_ext() {\r\n $shmop = extension_loaded('shmop...
[ "0.7037407", "0.67537683", "0.6377983", "0.632037", "0.6145247", "0.6110083", "0.59524125", "0.591202", "0.5854063", "0.5798832", "0.57865995", "0.57492507", "0.5705619", "0.5688724", "0.5661279", "0.56564444", "0.56506306", "0.55960387", "0.558342", "0.55797994", "0.5559096"...
0.8488658
0
Encrypt string using $this>CryptoAlgo
public final function Encrypt($input, $key=NULL) { if (!$key) $key = $this->Key; $key = substr($key, 0, 24); $this->CheckMcrypt(); try { $tdes = mcrypt_module_open($this->CryptoAlgo, '', 'ecb', ''); $iv = mcrypt_create_iv(mcrypt_enc_get_iv_size($tdes), MCRYPT_RAND); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function encrypt();", "function encrypt($string, $key=KEY) {\n return base64_encode(encrypt_string($string, $key));\n }", "function encrypt($string) {\n\t\t\t$iv = $this->_generate_iv();\n\t\t\t\n\t\t\t// Clear output\n\t\t\t$out = '';\n\t\t\t\n\t\t\t// First block of output is ($this->hash_hey XOR ...
[ "0.77666605", "0.76723963", "0.74969244", "0.7493838", "0.7493661", "0.74429214", "0.74035674", "0.73754996", "0.73554194", "0.72790396", "0.72592235", "0.7248895", "0.72438896", "0.71886593", "0.7163703", "0.71291137", "0.706429", "0.7046658", "0.69943786", "0.6922685", "0.6...
0.67467535
38
Decrypt string, previously encrypted using 3DES
public final function Decrypt($input, $key=null) { if (!$key) $key = $this->Key; $this->CheckMcrypt(); $inputd = base64_decode($input); try { $td = mcrypt_module_open($this->CryptoAlgo, '', 'ecb', ''); $key = substr($key, 0, mcrypt_enc_get_key_size($td)); $iv = mcryp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function decrypt($string)\n {\n /*\n * ------------------------------------------------\n * ALGORITHMS\n * ------------------------------------------------\n * MCRYPT_3DES MCRYPT_PANAMA\n * MCRYPT_ARCFOUR MCRYPT_RAND\n ...
[ "0.7463663", "0.7440529", "0.73968285", "0.7375621", "0.72862256", "0.7191333", "0.7137326", "0.7049362", "0.70215094", "0.69725865", "0.6959037", "0.694998", "0.69478977", "0.6922109", "0.69090194", "0.68871474", "0.6856022", "0.68453056", "0.6840637", "0.68190765", "0.68190...
0.0
-1
Generate one way hash from the string
public function Hash($input, $algo = NULL) { // Switch to default algo if (!$algo) $algo = defined("CF_HASH_ALGO") ? CF_HASH_ALGO : HASH_ALGO; switch ($algo) { case "MD5": return md5($input); break; case "3DES": return crypt($input, substr($this->Key, 0, 9)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_hash($string) {\r\n return hash('sha1', $string);\r\n}", "public function hash(): string;", "private function hash($string)\n {\n if (!function_exists('hash')) {\n return sha1($string);\n }\n return hash('sha256', $string);\n }", "public function hash($st...
[ "0.7942512", "0.7843905", "0.7695186", "0.7663227", "0.76602066", "0.76602066", "0.76233655", "0.75554466", "0.7540518", "0.7527822", "0.75255543", "0.75238955", "0.75195456", "0.75038856", "0.74970835", "0.74696034", "0.7465523", "0.7462078", "0.735199", "0.7335316", "0.7313...
0.0
-1
ordenes con un dia
function get_recent_orders(){ $orders = $this->Order->get_recent_orders(); if($this->params['requested']){ return $orders; }else{ $this->set('orders', $orders); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function todas($suscriptor, $orden) {\n $db = new MySQL(Sesion::getConexion());\n $sql = \"SELECT * FROM `facturacion_lecturas` WHERE `suscriptor` ='\" . $suscriptor . \"' ORDER BY `fecha` \" . strtoupper($orden) . \";\";\n $consulta = $db->sql_query($sql);\n $filas = array();\n while ($fila = $db-...
[ "0.6404441", "0.6331214", "0.6281734", "0.6251114", "0.6212843", "0.6207302", "0.6207117", "0.6185995", "0.6183528", "0.6169288", "0.61543036", "0.61538196", "0.6144227", "0.61439854", "0.61324185", "0.6130469", "0.61157364", "0.60787696", "0.60755813", "0.60738", "0.6049342"...
0.0
-1
muestra todo los pedidos para el admin
function admin_get_all_orders(){ //$orders = $this->Order->find('all'); $this->paginate = array('limit' => 10, 'order' => 'Order.od_date DESC'); $this->set('orders', $this->paginate()); if(!empty($this->data)){ $this->Order->id = $this->data['Order']['id']; $this-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function gestionPedidos(){\n Utils::isAdmin();\n $gestion = true;\n\n $oPedido = new Pedido();\n $pedidos = $oPedido->getAll();\n\n require_once 'views/pedido/mis_pedidos.php';\n }", "function modalidades_juegos_admin_listar ( ) {\t\n\t$result_set_Modalidad_Juego = db...
[ "0.7312715", "0.6461743", "0.6372398", "0.63124937", "0.62995946", "0.61365074", "0.6123557", "0.60845596", "0.60813046", "0.60681033", "0.5973322", "0.59722006", "0.5967181", "0.5941295", "0.592189", "0.5889906", "0.58878666", "0.588684", "0.5880137", "0.5872396", "0.5854565...
0.0
-1
Send HTTP POST Request
function PPHttpPost($methodName_, $nvpStr_) { // Set up your API credentials, PayPal end point, and API version. $API_UserName = urlencode('eshop_1309605309_biz_api1.gmail.com'); $API_Password = urlencode('1309605353'); $API_Signature = urlencode('AiPC9BjkCyDFQXbSkoZcgqH3hpacA4TlLrMdwUVOcGq8BK4tNk9Rdji5'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function httpPOST($url, array $data, $headers = '') {\n $this->ensureOpened(__FUNCTION__);\n $query = http_build_query($data, '', '&');\n ($headers = trim($headers) === '') or $headers .= \"\\r\\n\";\n\n $headers = \"POST $url HTTP/1.0\\r\\n\".\n $headers.\n \"Content-Type: ...
[ "0.72719514", "0.6811554", "0.6786132", "0.67007333", "0.67007333", "0.67007333", "0.6650071", "0.6641624", "0.66006565", "0.65893596", "0.65576154", "0.6496506", "0.6457254", "0.6428607", "0.6427611", "0.6395452", "0.63898265", "0.6387625", "0.6377841", "0.63438916", "0.6331...
0.0
-1
Vsetky inicializacne veci alebo veci spustane v kazdom pohlade / controlleri
public function __construct($Request) { parent::__construct($Request); $this->userLogin = MFW_Session::get('auth', 'login'); $this->userId = MFW_Session::get('auth', 'uid'); if ($this->userId == NULL) { // ak nie je aktualne prihlaseny v systeme (nie je v session), skus...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function init()\n {\n //Obiekt odpowiedzialny za pobieranie danych z get i post\n $this->request = new \\application\\config\\core\\Request();\n //Pobieranie nazwy kontrolera który został wywołany przez dispatcher\n $this->controllerName = get_called_class();\n //Z nazw...
[ "0.71464646", "0.7136841", "0.70934016", "0.70462555", "0.7031951", "0.70223707", "0.701641", "0.6928267", "0.6910896", "0.687278", "0.685213", "0.6849543", "0.68044615", "0.68019354", "0.6794113", "0.67782575", "0.6751173", "0.67415476", "0.67296976", "0.6726295", "0.6699921...
0.0
-1
Default data passed to context
function twig_timber_context( $context ) { //Useful Variables global $template; $context['theme_template'] = str_replace( '.php', '', basename( $template ) ); $context['theme_url'] = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; //Bam! Magic! return $context; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function defaultData();", "private function twigDefaultContext()\n {\n // show language bar by default\n if (!isset($this->data['hideLanguageBar'])) {\n $this->data['hideLanguageBar'] = false;\n }\n // get languagebar\n $this->data['languageBar'] = null;\n ...
[ "0.7213937", "0.68324363", "0.65820706", "0.6483382", "0.6421814", "0.6319465", "0.6289705", "0.62410754", "0.61998266", "0.6020523", "0.59704685", "0.5957626", "0.5956373", "0.58955055", "0.58955055", "0.58955055", "0.58763343", "0.5875669", "0.58727396", "0.58569026", "0.58...
0.0
-1
Provision for the specified CO Person. The ZoneProvisioner is simple: either add or delete (or: todeleteornottodelete) If not deleting, we do a saveAssociated, which will insertorupdate (add/modify)
public function provision($coProvisioningTargetData, $op, $provisioningData) { // First figure out what to do $delete = false; $person = false; $service = false; $actionid=uniqid(); $model="CoPerson"; if(isset($provisioningData["CoPerson"])) { $service = false; $person = true; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function provision($request);", "public function savePerson($person)\n {\n // Deal with new ayso record\n // One type at a time for now since getRPs will not work for new records\n // Need to deal with the case of adding a new person with an existing ayso record\n $personReg...
[ "0.5092642", "0.50719213", "0.4851578", "0.47544652", "0.46343556", "0.4537914", "0.4531917", "0.4522646", "0.45019546", "0.44570738", "0.44196057", "0.44115287", "0.43901756", "0.43724993", "0.43669438", "0.43552187", "0.43490082", "0.43408313", "0.42856318", "0.4269936", "0...
0.5952425
0
Determine the provisioning status of this target for a CO Person ID.
public function status($coProvisioningTargetId, $Model, $id) { if($Model->name == 'CoPerson') { $this->ZonePerson = ClassRegistry::init('ZoneProvisioner.ZonePerson'); return $this->ZonePerson->status($id); } else if($Model->name == "CoService") { $this->ZoneService = ClassRegistry::init(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStatus()\n {\n if (array_key_exists(\"status\", $this->_propDict)) {\n if (is_a($this->_propDict[\"status\"], \"\\Beta\\Microsoft\\Graph\\Model\\ProvisioningResult\") || is_null($this->_propDict[\"status\"])) {\n return $this->_propDict[\"status\"];\n ...
[ "0.6223467", "0.601814", "0.57858014", "0.54745", "0.54232496", "0.5307109", "0.5068306", "0.50253934", "0.48730424", "0.4773304", "0.46820474", "0.46228877", "0.46195683", "0.46147615", "0.46147615", "0.46017233", "0.4593774", "0.458619", "0.45724297", "0.45724073", "0.45702...
0.578735
2
Display a listing of the resource.
public function index() { // return Film::all(); }
{ "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('film_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) { // $film = $request->all(); $imageData = $film['photo']; $fileName = Carbon::now()->timestamp . '_' . uniqid() . '.' . explode('/', explode(':', substr($imageData, 0, strpos($imageData, ';')))[1])[1]; $img = Image::m...
{ "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 getFilmBySlug($slug) { return Film::where('slug', '=' ,$slug)->firstOrFail(); }
{ "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(Request $request, $id) { $film = Film::findOrFail($id); $film->update($request->all()); return $film; }
{ "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) { // $film = Film::findOrFail($id); $film->delete(); return 204; }
{ "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
public $productAttributes = ['pname', 'price', 'credit', 'description', 'stime', 'etime', 'status', 'instore', 'richtext', 'cover']; public $districtAttributes = ['name', 'description']; public $posterAttributes = ['name', 'phone', 'description'];
public function actions() { return array( // captcha action renders the CAPTCHA image displayed on the contact page 'captcha'=>array( 'class'=>'CCaptchaAction', 'backColor'=>0xFFFFFF, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function attributes();", "public function getProductAttributes()\n\t{\n\t\treturn $this->arrAttributes;\n\t}", "function get_products_with_attributes() {\n global $db;\n if(isset($_SESSION['languages_id'])){ $language_id = (int)$_SESSION['languages_id'];} else { $language_id=1;}\n $query ...
[ "0.637592", "0.62424713", "0.62261105", "0.62044054", "0.61969244", "0.6193476", "0.61831176", "0.61637896", "0.61621535", "0.61621535", "0.61621535", "0.61621535", "0.61621535", "0.61621535", "0.61621535", "0.61621535", "0.61621535", "0.61586344", "0.6133919", "0.61102927", ...
0.0
-1
Open CSV file for reading
public function open($file, $delimiter = null, $enclosure = null, $escape = null) { if ($delimiter !== null) { $this->delimiter = $delimiter; } else { $this->delimiter = config('csv.delimiter'); } if ($enclosure !== null) { $this->enclosure = $enc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function open_csv() {\n $this->fh = fopen(CSV_FILE, \"r\");\n if ($this->fh === false) {\n $this->log_it(\"Could not open CSV file.\");\n return false;\n }\n\n return true;\n }", "public function readCsv()\n {\n ini_set(\"auto_detect_line_end...
[ "0.7721442", "0.6878188", "0.6867582", "0.682433", "0.65757984", "0.6565348", "0.6507875", "0.645326", "0.64034283", "0.63980955", "0.63939905", "0.6390784", "0.63394934", "0.6298595", "0.6188236", "0.6169058", "0.61457753", "0.61112404", "0.610085", "0.60865843", "0.60832286...
0.5545192
68
Get CSV header. Usually it's a first line in file.
public function getHeader() { $this->withHeader = true; if (ftell($this->handle) == 0) { $this->header = $this->read(); } return $this->header; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function csvHeader()\n {\n return end($this->_csvHeader);\n }", "function getQBaseHeaderLine(){\r\n\t\tglobal $LANG;\r\n\t\t$delimeter = $this->extConf['CSV_qualifier'];\r\n\t\t$parter = $delimeter.$this->extConf['CSV_parter'].$delimeter;\r\n\r\n\t\t$csvheader = $delimeter.$this->q_data['u...
[ "0.767566", "0.6901435", "0.6859122", "0.68434995", "0.68240535", "0.6823405", "0.67184794", "0.6676887", "0.66745484", "0.66723377", "0.6669941", "0.6580675", "0.65394974", "0.65358925", "0.6532634", "0.6532634", "0.6528428", "0.64533013", "0.64533013", "0.64533013", "0.6453...
0.7245194
1
Read current line from CSV file
public function readLine() { $out = $this->read(); if ($this->withHeader && is_array($out)) { $out = array_combine($this->header, $out); } return $out; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function readLine(){\n $data = fgetcsv($this->handle,0,\";\");\n return $data; \n \n }", "public function getLine(){\n $obj = new SplFileObject($this->_csv_file);\n $obj->seek($this->_counter);\n if($this->_counter < $this->_number_of_lines){\n $this->_coun...
[ "0.76192117", "0.74989116", "0.68352777", "0.6786517", "0.67586595", "0.67273116", "0.6681796", "0.6668346", "0.6383161", "0.63566315", "0.6352218", "0.613201", "0.61230797", "0.6110963", "0.6109697", "0.603642", "0.60311264", "0.60184616", "0.60005164", "0.5987377", "0.59590...
0.0
-1
Read all lines from CSV file
public function readAll() { $out = []; while (($row = $this->readLine()) !== false) { $out[] = $row; } return $out; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readCsv()\n {\n ini_set(\"auto_detect_line_endings\", true);\n $fp = fopen($this->inputFile , 'r');\n while($row = fgetcsv($fp)){\n $this->data[] = $row;\n }\n }", "private function read_csv()\n {\n return array_map('str_getcsv', file($this->...
[ "0.7932783", "0.69769126", "0.69473433", "0.69394094", "0.68803746", "0.6859139", "0.68378204", "0.6767097", "0.6764746", "0.6763124", "0.67502487", "0.6723688", "0.6699002", "0.6594536", "0.65839726", "0.6533367", "0.65322316", "0.6511141", "0.6507501", "0.6506953", "0.65003...
0.57028294
71
Wrapper for fgetcsv function
private function read() { $out = fgetcsv($this->handle, null, $this->delimiter, $this->enclosure); if (!is_array($out)) { return $out; } if (config('csv.encoding.reader.enabled') === true) { foreach ($out as $k => $v) { $out[$k] = iconv( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function read_csv($filename, $delimiter = \",\") {\n $file_data = array();\n $handle = @fopen($filename, \"r\") or false;\n if ($handle !== FALSE) {\n while (($data = fgetcsv($handle, 1000, $delimiter)) !== FALSE) {\n $file_data[] = $data;\n }\n fclose($handle);\n }\n ...
[ "0.71383435", "0.7013521", "0.6879087", "0.6875448", "0.6789063", "0.67260146", "0.6724758", "0.6716725", "0.6710119", "0.66735125", "0.6646716", "0.6619246", "0.6572185", "0.6568439", "0.65654624", "0.6563404", "0.65570086", "0.65429634", "0.64934427", "0.64907897", "0.64904...
0.6645981
11
get from temporary data
public function inputmember($key){ $this->db->where('key',$key); $temp_user = $this->db->get('tbl_users_temp'); if($temp_user){ $row_res = $temp_user->row(); $data = array( 'email' => $row_res->email, 'password' => $row_res->password, 'firstname' => $row_res->firstname, 'lastname' =>...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract function getdata();", "public function get_data()\n\t\t{\t\t// Should there be a common method for this?\n\t\t}", "public function get_data();", "public static function getData() {}", "public function getTemporaryData($id) {\n\t\treturn SQLQuery::create()->bypassSecurity()->select(\"TemporaryData\...
[ "0.6819704", "0.6660156", "0.65120894", "0.6497754", "0.6339918", "0.6322087", "0.63000745", "0.6225363", "0.62206185", "0.6216448", "0.61918634", "0.6138788", "0.61371666", "0.6114553", "0.610127", "0.610127", "0.610127", "0.610127", "0.610127", "0.610127", "0.610127", "0....
0.0
-1
get Data from tbl_users
public function getAllData($email){ $this->db->where('email',$email); $userData = $this->db->get('tbl_users'); $row_res = $userData->row(); $allData = array( 'email' => $row_res->email, 'password' => $row_res->password, 'firstname' => $row_res->firstname, 'lastname' => $row_res->lastname, 'ema...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function get_user_data()\n {\n $sql_query = \"select * from users\";\n $users = DB::select($sql_query);\n return $users;\n }", "function ambil_data(){\n\t\treturn $this->db->get('user');\n\t}", "public function fetchUsers(){\n\t\t\t$this->load->database();\n $this-...
[ "0.796285", "0.77095664", "0.77065444", "0.7687327", "0.7626741", "0.7620231", "0.7615318", "0.760965", "0.7596587", "0.7534538", "0.7495436", "0.7482686", "0.7449059", "0.7428813", "0.74136543", "0.7413594", "0.7398744", "0.73926586", "0.73835874", "0.73711056", "0.73628813"...
0.0
-1
Get Role Master Data for Edit screen
public function getRoleMasterSingleData() { $RoleID= $this->input->post('RoleID'); $RoleData = $this->system_structure_m->getRoleMasterSingleData($RoleID); echo json_encode($RoleData); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function get_roles_data()\n {\n }", "public function loadroledataentryAction(){\n $roles=Doctrine_Query::create()\n\t ->select(\"r.ID, r.role\")\n\t ->from(\"Roles r\")\n\t ->where(\"r.ID=?\",Constants::DATAENTRY_INTERNO)\n \t ->execute(null,Doctrine::HYDRATE_ARRAY);\n $this->em...
[ "0.6782887", "0.64573497", "0.6299855", "0.62843555", "0.6274708", "0.62412316", "0.6240907", "0.6237162", "0.623561", "0.6215304", "0.6199266", "0.6166367", "0.6161494", "0.6154373", "0.6153258", "0.6143266", "0.61103666", "0.61103666", "0.61014414", "0.6083909", "0.60794157...
0.6392611
2
Delete Role Master Data
public function deleteRoleMasterData() { $RoleID = $this->input->post('RoleID'); $RoleData = $this->system_structure_m->deleteRoleMasterData($RoleID); echo $RoleData; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function roleDelete(Role $role);", "function delete_role($roleid) {\n $success = true;\n\n// mdl 10149, check if this is the last active admin role\n// if we make the admin role not deletable then this part can go\n \n $systemcontext = get_context_instance(CONTEXT_SYSTEM);\n \n if ($role = get_rec...
[ "0.7020674", "0.68856496", "0.6879654", "0.6687952", "0.6565636", "0.6551272", "0.65369695", "0.6468845", "0.6405283", "0.6384726", "0.6365593", "0.635362", "0.63266987", "0.62496334", "0.62468845", "0.6219779", "0.61988425", "0.6189037", "0.61869925", "0.6175382", "0.6174534...
0.79997045
0
Roles Access Get Role Access Data for Edit screen
public function getRoleAccessSingleData() { $RoleAccessID= $this->input->post('RoleAccessID'); $RoleAccessData = $this->system_structure_m->getRoleAccessSingleData($RoleAccessID); echo json_encode($RoleAccessData); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function get_roles_data()\n {\n }", "function get_editable_roles()\n {\n }", "public function edit($id)\n{\n $user = User::find($id);\n $roles = Role::pluck('name','name')->all();\n $userRole = $user->roles->pluck('name','name')->all();\n return [$user,$roles,$userRole...
[ "0.7169026", "0.713081", "0.69981486", "0.6950524", "0.6902434", "0.6831197", "0.6819039", "0.6793184", "0.6761149", "0.6760793", "0.6751537", "0.671556", "0.6715443", "0.67139435", "0.6712048", "0.66900235", "0.6678545", "0.6671029", "0.6662427", "0.6661511", "0.6658212", ...
0.0
-1
Delete Role Access Data
public function deleteRoleAccess() { $RoleAccessID = $this->input->post('RoleAccessID'); $RoleAccessData = $this->system_structure_m->deleteRoleAccess($RoleAccessID); echo $RoleAccessData; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function roleDelete(Role $role);", "public function actionDeleteRole ()\n\t\t{\n\n\t\t\t$auth = Yii::$app->getAuthManager();\n\t\t\t$role = $auth->getRole(Yii::$app->request->get('id'));\n\t\t\t$auth->remove($role);\n\t\t\t$url = Yii::$app->request->referrer . '#roles';\n\t\t\tYii::$app->response->redirect($url)...
[ "0.73920023", "0.7296694", "0.71099824", "0.7003252", "0.69234455", "0.6917699", "0.6913297", "0.6911456", "0.6872483", "0.67910755", "0.676202", "0.6743962", "0.67257106", "0.6716634", "0.6690992", "0.6663016", "0.6651142", "0.6613578", "0.6564592", "0.65533566", "0.6542743"...
0.7866396
0
Processes And Functions Get Functions Details
public function getFunctionsDetails() { $functions = $this->system_structure_m->getFunctionsDetails(); //echo json_encode($functions); $output=''; foreach ($functions as $func) { $output=$output.'<option value="'.$func->FunctionID.'">'.$func->FunctionDescription.'</option>'; } echo $output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function funcs()\n { \n //start a new array, which which will store the function descriptions\n $output = array();\n\n //add each function to the array\n foreach ($this->user_functions as $fnn=>$dat)\n $output[] = $fnn . '(' . implode(',', $dat[MATHSCRIPT_ARGUMENT...
[ "0.6805217", "0.6554468", "0.6483468", "0.64659536", "0.6375108", "0.629506", "0.6241058", "0.60791516", "0.6041176", "0.6026113", "0.59816885", "0.5970946", "0.5970946", "0.5970946", "0.5970946", "0.5939017", "0.593513", "0.591239", "0.5906057", "0.58735883", "0.58542895", ...
0.59870875
10
Save Processes And Functions Data
public function ProcessesandFunctions() { $data = array(); $where = array(); $where['FunctionID']=$this->input->post('def_functionid'); $data['FunctionID']=$this->input->post('functionid'); $data['FunctionDescription']=$this->input->post('functiondesc'); $data['FunctionAccess']=$this->input->post...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProcessData()\n {\n }", "public function saveData()\r\n {\r\n \r\n }", "function process() ;", "function processData() ;", "public function saveDataToFile()\n {\n\n }", "function saveData() {\n\n\t\t$this->getMapper()->saveData();\t\n\t\t\n\t\t\n\t}...
[ "0.61932904", "0.5850203", "0.58459353", "0.5788308", "0.5751134", "0.57220244", "0.57181406", "0.5707249", "0.5694446", "0.5691735", "0.56455594", "0.56009454", "0.55898374", "0.5558796", "0.55469674", "0.55451375", "0.55240214", "0.55215013", "0.55142766", "0.54979175", "0....
0.5389191
25
Database Tables Get Tables Details
public function getDBTablesDetails() { //$functions = $this->system_structure_m->getDBTablesDetails(); //echo json_encode($functions); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function admin_get_tables() {}", "public function admin_get_tables() {}", "protected function getDatabaseTables() {}", "public function getTables()\n {\n\treturn $this->query('select [name] from [tables]');\n }", "public function listTables() {\r\n\t\tswitch ($this->getDbtype()) {\r\n\t\t\tcas...
[ "0.7962169", "0.7962151", "0.79263127", "0.7826811", "0.7801278", "0.77120316", "0.77120316", "0.77120316", "0.76401377", "0.7566968", "0.7548094", "0.75394267", "0.75378865", "0.7523786", "0.7519573", "0.7512086", "0.74899524", "0.7468035", "0.74547327", "0.7440461", "0.7428...
0.7806806
4
Save Database Tables Data
public function DatabaseTables() { $data = array(); $where = array(); $where['TableID']=$this->input->post('def_tableid'); $data['TableID']=$this->input->post('tableid'); $data['TableDescription']=$this->input->post('tabledesc'); $data['TableAccess']=$this->input->post('tableaccess'); $data['T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function saveToDb()\n\t{\n\t\t$db = \\App\\Db::getInstance('admin');\n\t\t$tablesData = array_intersect_key($this->getData(), $this->changes);\n\t\tforeach ($tablesData as $key => $value) {\n\t\t\t$db->createCommand()->update($this->baseTable, ['value' => $value], ['type' => $this->type, 'name' => $key])->e...
[ "0.80988675", "0.7314736", "0.7220534", "0.7172939", "0.7113512", "0.7107351", "0.7012555", "0.6953931", "0.6910383", "0.6898905", "0.6824751", "0.6799234", "0.6792784", "0.6781977", "0.6781633", "0.6734814", "0.6734814", "0.6734814", "0.6734814", "0.6734814", "0.6734814", ...
0.0
-1
Delete Database Tables Data
public function deleteDBTables() { $TableID = $this->input->post('TableID'); $TableData = $this->system_structure_m->deleteDBTables($TableID); echo $TableData; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteDatabaseStructure( );", "public function deleteTables () {\n $this->usersDB->deleteTables();\n $this->categoriesDB->deleteTables();\n $this->itemsDB->deleteTables();\n }", "function delete() {\n\t\t$sqlStatements = array();\n\t\t$sqlStatements[] = \"DROP TABLE IF EXISTS tags\";\...
[ "0.79195917", "0.7728244", "0.7674416", "0.7634015", "0.7558836", "0.7466871", "0.74143505", "0.7349599", "0.7342078", "0.7321376", "0.7287967", "0.7283397", "0.72764283", "0.7275983", "0.7253544", "0.7242845", "0.7188813", "0.71379477", "0.71257627", "0.71207345", "0.7075252...
0.74707663
5
Screens Get Screens Details
public function getScreensDetails() { $screens = $this->system_structure_m->getScreensDetails(); //echo json_encode($screens); $output=''; foreach ($screens as $scrn) { $output=$output.'<option value="'.$scrn->ScreenID.'">'.$scrn->ScreenDescription.'</option>'; } echo $output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function get_allowed_screens() {\n\t\t$screens = [\n\t\t\t'avada-fusion-patcher',\n\t\t\t'avada-registration',\n\t\t\t'avada-plugins',\n\t\t\t'avada-demos',\n\t\t];\n\n\t\treturn $screens;\n\t}", "function &getScreens()\n{\n if(count($this->_screens) > 0){\n return $this->_screens;\n } else ...
[ "0.6537875", "0.6385602", "0.608241", "0.6005124", "0.59540874", "0.5943824", "0.59298617", "0.5898245", "0.58824545", "0.5860758", "0.5820196", "0.57913446", "0.57882553", "0.5726827", "0.5714163", "0.56430453", "0.562844", "0.56045103", "0.5590049", "0.55152386", "0.5514998...
0.6434759
1
React to locale readiness
public function l10n_ready() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_locale_switched()\n {\n }", "protected function checkSystemLocale() {}", "public function locale();", "public function getLocale() {}", "function locale_emulation()\r\n\t{\r\n\t\tglobal $EMULATEGETTEXT;\r\n\t\treturn $EMULATEGETTEXT;\r\n\t}", "protected function initializeL10nLocales() ...
[ "0.6458566", "0.63965636", "0.607257", "0.60666406", "0.60588163", "0.5890866", "0.5866438", "0.57560855", "0.57560855", "0.57422584", "0.5723545", "0.56953174", "0.56825525", "0.5645122", "0.56193477", "0.5550373", "0.5489302", "0.5489302", "0.5489302", "0.5460768", "0.54372...
0.6047243
5
If set, render this module's review view and shove the result into the appropriate slot.
public function renderReviewSection() { if (empty($this->review_view_name)) return; slot::append( 'BYOB.repack.edit.review.sections', View::factory($this->review_view_name, Event::$data) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function reviewformAction()\r\n {\r\n if (!$this->config->isPhaseOpen(Config::REVIEWING_PHASE)) {\r\n $this->view->content = $this->texts->reviewer->review_phase_is_closed;\r\n echo $this->view->render(\"layout\");\r\n return;\r\n }\r\n\r\n\r\n $reviewTbl = new Review();\r\n $this->view...
[ "0.65921366", "0.6561468", "0.64910406", "0.6378712", "0.6209332", "0.6113921", "0.6113921", "0.6113921", "0.6113921", "0.60603356", "0.60590494", "0.60014874", "0.59857154", "0.5975177", "0.5969667", "0.5912137", "0.5899351", "0.5866203", "0.5859563", "0.5829139", "0.5805936...
0.66816807
0
Event handler to register this editor.
public static function register($cls=null) { if (null===$cls && function_exists('get_called_class')) { $cls = get_called_class(); } $self = self::getInstance($cls); Mozilla_BYOB_EditorRegistry::register($self); if (!empty($self->review_view_name)) { /...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register() {\n\t\tadd_filter( 'mce_external_plugins', array( $this, 'enqueue_plugin_scripts' ) );\n\t\tadd_filter( 'mce_buttons', array( $this, 'register_buttons_to_editor' ) );\n\t\tadd_action( 'admin_head', array( $this, 'my_add_styles_admin' ) );\n\t\tadd_action( 'add_meta_boxes', array( $this, ...
[ "0.6936478", "0.67853326", "0.6771", "0.6604354", "0.6478165", "0.6296992", "0.62307954", "0.6217154", "0.6162194", "0.61359113", "0.609412", "0.6071198", "0.6049939", "0.6022369", "0.6007299", "0.6007299", "0.60063386", "0.59702545", "0.59679234", "0.5952384", "0.5922377", ...
0.0
-1
Add New User Type
public function add_usertype() { $arr['active'] = 'user'; $arr['page'] = 'role'; $arr['id'] = 0; if($this->input->post('addrole')){ $this->form_validation->set_rules('userrole', 'User Role', 'required'); $this->form_validation->set_rules('userrolealias', 'User Role Alias', 'required'); if($th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add($userid, $type)\r\n {\r\n $getInfo = $this->get($userid);\r\n\r\n $getInfo[$type] = $type;\r\n\r\n $this->update($userid, $getInfo);\r\n }", "public function addType($type);", "public function add() {\n\t\t$user = $this->User->read(null, $this->Auth->user('id'));\...
[ "0.7174577", "0.7076226", "0.70755166", "0.6901822", "0.68382436", "0.6804405", "0.67687404", "0.670932", "0.6685542", "0.66660106", "0.6600197", "0.6600197", "0.6598333", "0.6590298", "0.6583874", "0.65377635", "0.6505242", "0.6478808", "0.64220554", "0.64064217", "0.6391997...
0.0
-1
End Add New User Type Edit User Type
public function edit_usertype($id) { $arr['page'] = 'role'; $arr['id'] = $id; $query = $this->setting->getusertypebyid($id); $arr['userrole'] = $query['role_name']; $arr['userrolealias'] = $query['role_alias']; $arr['roletype'] = $query['role_type']; $this->load->view('vwAddUserType',$arr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(UserType $userType)\n {\n //\n }", "public function edit(type_of_user $type_of_user)\n {\n //\n }", "private function _addOrEdit($user,$type= 'add') {\n \n $user_id = $user['id'];\n\n //Get the creator's id\n if(isset($this->request-...
[ "0.7211716", "0.71588373", "0.68605113", "0.66061825", "0.659133", "0.6400657", "0.6358041", "0.6358041", "0.6358041", "0.6326593", "0.6301814", "0.6285107", "0.62576336", "0.6222479", "0.61850893", "0.6142469", "0.60334116", "0.60328645", "0.6023791", "0.60119104", "0.601070...
0.6047827
16
End Edit User Type Delete User Type
public function delete_usertype($id) { // Code goes here $query = $this->setting->deleteusertype($id); $this->session->set_flashdata('rolemsg', '<div class="alert alert-success alert-dismissible text-center"><button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function delete_user_type($user_type_id)\n\t\t{\n\t\t\t$eventlogbol = new eventlogbol();\n\t\t\t$old_values='';\n\t\t\t$new_values_arr = array();\n\t\t\t$new_values_arr['user_type_id'] = $user_type_id;\n\t\t\t$event_result = $eventlogbol->save_eventlog('Delete','tbl_user_type',$new_values_arr,$old_values);\n\t\t\t...
[ "0.713218", "0.680188", "0.67061424", "0.66938746", "0.66878885", "0.6485251", "0.64840984", "0.64666694", "0.64426273", "0.63870716", "0.6329906", "0.63139945", "0.6293805", "0.6149309", "0.61340964", "0.6128018", "0.61150014", "0.6114083", "0.6069596", "0.60386413", "0.6015...
0.62984574
12
End Delete User Type Tax
public function taxupdate() { $arr['page'] = 'taxdetail'; $arr['active'] = 'other'; $arr['productTax'] = $this->setting->getTax('product'); $arr['shippingTax'] = $this->setting->getTax('shipping'); $this->load->view('vwSettingTax',$arr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function delete_user_type($user_type_id)\n\t\t{\n\t\t\t$eventlogbol = new eventlogbol();\n\t\t\t$old_values='';\n\t\t\t$new_values_arr = array();\n\t\t\t$new_values_arr['user_type_id'] = $user_type_id;\n\t\t\t$event_result = $eventlogbol->save_eventlog('Delete','tbl_user_type',$new_values_arr,$old_values);\n\t\t\t...
[ "0.6440365", "0.64315486", "0.63294786", "0.6257072", "0.6231977", "0.6224146", "0.6179267", "0.613103", "0.6124305", "0.6074662", "0.60316145", "0.60131395", "0.60083586", "0.5983953", "0.59747446", "0.59359044", "0.59259576", "0.5922161", "0.59209377", "0.5920841", "0.59163...
0.0
-1
Empty method to prevent execution of index()
public function initialise() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n\t{\n\t\t// do nothing\n }", "public function indexAction() {\n\t\t$this->_notImplemented();\n\t}", "public function actionIndex()\n\n {\n\n echo 'Index action has not used.';\n\n }", "public function index()\n {\n // Nothing to do\n }", "public f...
[ "0.81204283", "0.77246207", "0.7529667", "0.74776083", "0.74450713", "0.74320763", "0.73174727", "0.7245152", "0.7137", "0.71200085", "0.71198916", "0.7119392", "0.7106598", "0.70915943", "0.70915943", "0.70915943", "0.70875347", "0.7076652", "0.7076652", "0.7076652", "0.7070...
0.0
-1
Generate product price diagram coords by SooR 18022013 v.2.0
private function getDiagram() { $diagram_data = array(); if ($this->product_prices && count($this->product_prices['products']) > 1) { $height = 40; $items = 6; $width = 190; $price_range = $this->max_price - $this->min_price; if ($price_range < $items) { return; } $price_interval...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function generateGraphic() {}", "public function generatePictureLine()\n {\n $values = $this->data;\n\n // Get the total number of columns we are going to plot\n $columns = count($values);\n\n // Get the height and width of the diagram itself\n $width = ...
[ "0.5706712", "0.5511237", "0.5510589", "0.5443353", "0.54194796", "0.53943783", "0.5340442", "0.53276503", "0.5318903", "0.52887887", "0.5229765", "0.5181606", "0.5166354", "0.51449585", "0.51226646", "0.51155376", "0.5095597", "0.5092357", "0.50828147", "0.5054158", "0.50529...
0.6910343
0
To know which fighters can be beaten
public function getBeatableFighters() { return $this->beatableFighters; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasFighting(){\r\n return $this->_has(22);\r\n }", "function scrapbots_fight ($duellers){\n\tdebug(\"Now duelling two ScrapBots\");\n\tdebug($army);\n\n\treturn $fighter;\n}", "public function hasFight(){\r\n return $this->_has(7);\r\n }", "function scrapbots_choose_fighter ($...
[ "0.6877447", "0.67428297", "0.6733686", "0.6501916", "0.65003145", "0.6324866", "0.62455493", "0.60707074", "0.60130423", "0.59307796", "0.5893888", "0.584395", "0.5833165", "0.58239335", "0.5792797", "0.5777609", "0.57772684", "0.5761216", "0.5736095", "0.57348514", "0.57149...
0.6700141
3
Display a listing of the resource.
public function index(Request $request) { if (!$request->ajax()) return redirect('/'); $buscar = $request->buscar; $criterio = $request->criterio; if($buscar==''){ $provincias = Provincia::orderBy('id', 'desc')->paginate(6); }else{ $provincias = Prov...
{ "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
Store a newly created resource in storage.
public function store(Request $request) { if (!$request->ajax()) return redirect('/'); $provincia = new Provincia(); $provincia->iddepartamento = $request->iddepartamento; $provincia->descripcion = strtoupper($request->descripcion); $provincia->condicion = '1'; $provi...
{ "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
Update the specified resource in storage.
public function update(Request $request) { if (!$request->ajax()) return redirect('/'); $provincia = Provincia::findOrFail($request->id); $provincia->iddepartamento = $request->iddepartamento; $provincia->descripcion = strtoupper($request->descripcion); $provincia->condicion ...
{ "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
Builds an XML Map used to parse listeners from an XML source
protected function xmlListenersMapFactory() { $map = new Map(); $map->add( Path::factory('/fwk/listener', 'listeners') ->loop(true) ->attribute('class') ->attribute('service') ->addChildren( Path::factory('param', 'params') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function build_xml_map() {\n $this->_create_map();\n header(\"content-type: text/xml\");\n echo $this->result;\n }", "protected function xmlServicesMapFactory()\n {\n $map = new Map();\n $map->add(\n Path::factory('/fwk/services', 'services', array())\n ...
[ "0.6444875", "0.6097816", "0.57355887", "0.5629596", "0.53465986", "0.5275113", "0.521377", "0.5208028", "0.51833755", "0.51134807", "0.5046077", "0.5019277", "0.5014572", "0.49979517", "0.49915347", "0.49905762", "0.49672246", "0.49671835", "0.49537045", "0.49379966", "0.486...
0.75873345
0
Builds an XML Map used to parse plugins from an XML source
protected function xmlPluginsMapFactory() { $map = new Map(); $map->add( Path::factory('/fwk/plugin', 'plugins') ->loop(true) ->attribute('class') ->attribute('service') ->addChildren( Path::factory('para...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function build_xml_map() {\n $this->_create_map();\n header(\"content-type: text/xml\");\n echo $this->result;\n }", "protected function xmlServicesMapFactory()\n {\n $map = new Map();\n $map->add(\n Path::factory('/fwk/services', 'services', array())\n ...
[ "0.6548875", "0.6045412", "0.5887497", "0.58413464", "0.5827318", "0.5365801", "0.52512115", "0.52498484", "0.5141279", "0.5129361", "0.510453", "0.5054593", "0.5033763", "0.50192624", "0.4980078", "0.49616188", "0.49413353", "0.49323654", "0.49303576", "0.49236235", "0.49057...
0.7538879
0
Builds an XML Map used to parse Actions from an XML source
protected function xmlActionMapFactory() { $map = new Map(); $map->add( Path::factory('/fwk/actions/action', 'actions') ->loop(true, '@name') ->attribute('class') ->attribute('method') ->attribute('shortcut') ); ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function build_xml_map() {\n $this->_create_map();\n header(\"content-type: text/xml\");\n echo $this->result;\n }", "private function _getXSIMap($actionParam){\n\t\t$arrayMap = array();\n\t\tforeach($actionParam->childNodes as $item){\n\t\t\tif($item->nodeType==1){\n\t\t\t\tif($it...
[ "0.70240086", "0.60125303", "0.555362", "0.5550691", "0.54016286", "0.5391256", "0.5335074", "0.53046703", "0.52497953", "0.5238481", "0.5210544", "0.516157", "0.507359", "0.50047517", "0.49701786", "0.49166536", "0.4909372", "0.48981518", "0.48906216", "0.48865682", "0.48664...
0.76401955
0
Builds an XML Map used to parse .ini includes
protected function xmlIniMapFactory() { $map = new Map(); $map->add( Path::factory('/fwk/ini', 'ini', array()) ->loop(true) ->attribute('category') ->value('value') ); return $map; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function build_xml_map() {\n $this->_create_map();\n header(\"content-type: text/xml\");\n echo $this->result;\n }", "protected function xmlPluginsMapFactory()\n {\n $map = new Map();\n $map->add(\n Path::factory('/fwk/plugin', 'plugins')\n ...
[ "0.6298302", "0.5663068", "0.5564768", "0.53880966", "0.5346692", "0.53239864", "0.5299677", "0.5215316", "0.50380766", "0.500899", "0.50022036", "0.5001408", "0.49921328", "0.49877095", "0.4985223", "0.49799305", "0.49754384", "0.49635845", "0.49174458", "0.4886537", "0.4867...
0.7168414
0
Builds an XML Map used to parse services includes (xml)
protected function xmlServicesMapFactory() { $map = new Map(); $map->add( Path::factory('/fwk/services', 'services', array()) ->loop(true, '@xml') ->attribute('xmlMap') ); return $map; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function build_xml_map() {\n $this->_create_map();\n header(\"content-type: text/xml\");\n echo $this->result;\n }", "function generate_mapservice_conf_file(){\n\t\t$dom;\n\t\tif(!$dom = domxml_open_file($this->default_mapservconf_file)){\n\t\t\techo \"Could not open xml file: \" ...
[ "0.7044736", "0.6119876", "0.5788437", "0.56900597", "0.56242883", "0.5547064", "0.55125326", "0.55121243", "0.5498514", "0.5485582", "0.5394869", "0.52672815", "0.5255118", "0.519329", "0.51895106", "0.50757754", "0.50058645", "0.49868304", "0.4973628", "0.4959603", "0.49507...
0.6814833
1
$Id$ Implementation of hook_views_query_alter(). Modify query to sum ancestor's search scores for ead search, to improve search accuracy
function ead_import_views_query_alter(&$view, &$query){ if ($view->name === "collection_search"){ // create inner join on the child-ancestor table // to get all ancestors for a node $join = new views_join(); $join->table = 'ead_import_child_ancestor'; $join->field = 'child_nid'; $join->left_table = 'node'; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function query() {\n // Since attachment views don't validate the exposed input, parse the search\n // expression if required.\n if (!$this->parsed) {\n $this->query_parse_search_expression($this->value);\n }\n $required = FALSE;\n if (!isset($this->search_query)) {\n $required = TRUE;\...
[ "0.63922375", "0.5687345", "0.5610112", "0.5465404", "0.5323646", "0.52082294", "0.51995945", "0.51544017", "0.5142923", "0.51165235", "0.5106122", "0.50598943", "0.50287026", "0.501357", "0.49986017", "0.49760142", "0.49670443", "0.49514598", "0.49207982", "0.48586658", "0.4...
0.66665363
0
Reads string from specified file path and parses it as TOML.
public static function parseFile($path) { if(!is_file($path)) { throw new Exception('Invalid file path'); } $toml = file_get_contents($path); // Remove BOM if present $toml = preg_replace('/^' . pack('H*','EFBBBF') . '/', '', $toml); return self...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tidy_parse_file($filename, $config = null, $encoding = null, $use_include_path = false) {}", "function loadTemplateFile($filePath)\n{\n return loadTemplateString(file_get_contents($filePath));\n}", "public static function loadFile($path)\n {\n assert(is_string($path), 'Wrong type for argu...
[ "0.57235503", "0.5707733", "0.56545484", "0.55041873", "0.54930955", "0.5492181", "0.5481962", "0.5474074", "0.5365802", "0.5365802", "0.5347656", "0.53309923", "0.5264904", "0.52642643", "0.52217174", "0.5221573", "0.5201459", "0.5138567", "0.5127056", "0.5122626", "0.510476...
0.61673886
0
Parses a TOML string to retrieve a hashed array of data.
public static function parse($toml) { $result = new stdClass(); $pointer = & $result; // Pre-compile $toml = self::normalize($toml); // Split lines $aToml = explode("\n", $toml); for($ln = 0; $ln < count($aToml); $ln++) { $line = trim($aT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function parse(string $string): array;", "public function parse($string)\n {\n return [];\n }", "public function parse($string);", "private function parseHAMLString($string, $data = array()) {\n\t\t$HAML = new HamlPHP(new FileStorage(dirname(__FILE__) . '/tmp/'));\n\t\t\n\t\t$content = $H...
[ "0.6193152", "0.58066905", "0.5773154", "0.5699143", "0.5625721", "0.5593281", "0.55290675", "0.54580534", "0.54580534", "0.5442852", "0.5442852", "0.5442852", "0.5442852", "0.54117453", "0.5340368", "0.5327414", "0.53221023", "0.53221023", "0.53221023", "0.5295252", "0.52804...
0.0
-1
Performs text modifications in order to normalize the TOML file for the parser. Kind of precompiler.
private static function normalize($toml) { // Cleanup EOL chars. $toml = str_replace(array("\r\n", "\n\r"), "\n", $toml); // Cleanup TABs $toml = str_replace("\t", " ", $toml); // Run, char by char. $normalized = ''; $openString = false; $ope...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function reparse()\n\t{\n\t\t$for_edit = $this->generate_text_for_edit();\n\t\t$this->post_text = $for_edit['text'];\n\n\t\t// Emulate what happens when sent from the user\n\t\t$this->post_text = html_entity_decode($this->post_text);\n\t\tset_var($this->post_text, $this->post_text, 'string', true);\n\n\t\t$...
[ "0.63611025", "0.59148884", "0.55321354", "0.54098475", "0.5329849", "0.53037584", "0.52936816", "0.5195309", "0.51933354", "0.5166601", "0.5163352", "0.51458573", "0.51394856", "0.50745714", "0.5069186", "0.50641274", "0.5062607", "0.50573236", "0.49869856", "0.49699768", "0...
0.0
-1
Parses TOML table names and returns the hierarchy array of table names.
private static function parseTableName($name) { // Init buffer $buffer = ''; $strOpen = false; $names = array(); $strLen = strlen($name); for($i = 0; $i < $strLen; $i++) { if($name[$i] == '"') { // Toggle strings ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function _get_table_names() {\n // Must be overridden.\n return array();\n }", "final public function fetchTableNames() {\n if ($this->tableNames !== null) {\n return array_values($this->tableNames);\n }\n\n $names = $this->fetchTableNamesDb();\n\n $this->tabl...
[ "0.6384318", "0.632922", "0.6261423", "0.623077", "0.60588753", "0.6050146", "0.60328686", "0.6030407", "0.6005494", "0.5901493", "0.5889998", "0.58496225", "0.5742916", "0.5731007", "0.57150316", "0.564707", "0.56369394", "0.56369394", "0.56369394", "0.56118894", "0.5576609"...
0.62113935
4
Parses TOML value and returns it to be assigned on the hashed array
private static function parseValue($val) { $parsedVal = null; // Cleanup $val = trim($val); if($val === '') { throw new Exception('Empty value not allowed'); } // Boolean if($val == 'true' || $val == 'false') { $parse...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function parseValue();", "abstract public function parse($value);", "function parseValue($value);", "protected function parse()\n {\n if($this->isRelationalKey()){\n $this->parsedValue = $this->makeRelationInstruction();\n } \n else {\n $this->parsedValue...
[ "0.6315014", "0.6214343", "0.6062418", "0.5992678", "0.5891263", "0.5742344", "0.56842184", "0.56842184", "0.56842184", "0.56842184", "0.565302", "0.5639727", "0.5555554", "0.55431974", "0.55431974", "0.55431974", "0.55232054", "0.54807866", "0.5375631", "0.5357513", "0.53440...
0.5174732
33
Recursion function to parse all array values through self::parseValue()
private static function parseArray($val) { $result = array(); $openBrackets = 0; $openString = false; $openCurlyBraces = 0; $openLString = false; $buffer = ''; $strLen = strlen($val); for($i = 0; $i < $strLen; $i++) { if($val[$i] =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function parseValues($_values)\n\t{\n\t\t$use_ingroup = $this->field->parameters->get('use_ingroup', 0);\n\t\t$multiple = $use_ingroup || (int) $this->field->parameters->get('allow_multiple', 0);\n\n\t\t// Make sure we have an array of values\n\t\tif (!$_values)\n\t\t{\n\t\t\t$vals = array(array());\n...
[ "0.6160349", "0.6029965", "0.59977025", "0.5938872", "0.59384584", "0.5835887", "0.5822228", "0.5759705", "0.57368875", "0.57368875", "0.5660413", "0.5632466", "0.559076", "0.55403626", "0.5529888", "0.5440726", "0.54395217", "0.5429909", "0.54120326", "0.54034454", "0.540124...
0.6301702
0
Parse inline tables into common table array
private static function parseInlineTable($val) { // Check valid inline table if($val[0] == '{' && substr($val, -1) == '}') { $val = substr($val, 1, -1); } else { throw new Exception('Invalid inline table definition: ' . $val); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _parseTagTable() {}", "abstract public function getTablesArray();", "function flip_tables() {\r\n\t\t$tables_flipped_counter = 0;\r\n\t\t$new_tables_array = array();\r\n\t\t$tables = OM::getAllOStrings($this->code, '<table', '</table>');\r\n\t\t//print('$tables: ');var_dump($tables);exit(0);...
[ "0.6481625", "0.6072879", "0.5817888", "0.5658257", "0.5631577", "0.5537207", "0.55142075", "0.54702276", "0.5461429", "0.5435652", "0.54218566", "0.5421293", "0.54068005", "0.53892195", "0.53548586", "0.53548586", "0.53548586", "0.5304485", "0.5294064", "0.5290103", "0.52672...
0.5895982
2
Function that takes a key expression and the current pointer to position in the right hierarchy. Then it sets the corresponding value on that position.
private static function parseKeyValue($key, $val, & $pointer) { // Flags $openQuote = false; $openDoubleQuote = false; // Buffer $buff = ''; // Parse for($i = 0; $i < strlen($key); $i++) { // Handle quoting if($key[$i] == '"') { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set ($key, $value) {\n\t\t$this->root = $this->setLoop($key, $value, $this->root);\n\t}", "public function set($key, $value)\n {\n // lock\n if (!flock($this->handle, LOCK_EX)) return FALSE;\n if (fseek($this->handle, 0, SEEK_END) === -1) {\n flock($this->handle...
[ "0.59534645", "0.5910818", "0.58937365", "0.5745962", "0.5711098", "0.56755334", "0.56295234", "0.5579479", "0.55527425", "0.5552355", "0.55518085", "0.5463582", "0.54386973", "0.54386973", "0.5418863", "0.53951", "0.53818417", "0.53740895", "0.5357869", "0.53376144", "0.5286...
0.0
-1
Function that checks the data type of the first and last elements of an array, and returns false if they don't match
private static function checkDataType($array) { if(count($array) <= 1) { return true; } $last = count($array) - 1; $type = self::getCustomDataType($array[$last]); if ($type != self::getCustomDataType($array[0])) { return false; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function strictTypeCheckForArrayElements(array $arr)\n {\n $firstType = null;\n\n foreach ($arr as $item) {\n if ($firstType == null) {\n $firstType = $this->detectType($item);\n } else {\n if ($firstType != $this->detectType($item)) {\n ...
[ "0.6298559", "0.615921", "0.5957354", "0.59457254", "0.58980423", "0.5851669", "0.5833901", "0.58093876", "0.58070546", "0.57576126", "0.5728989", "0.5707374", "0.57060564", "0.5696079", "0.5689695", "0.5674041", "0.5648677", "0.5629497", "0.558549", "0.55695766", "0.5546822"...
0.78253275
0
Returns the data type of a variable
private static function getCustomDataType($val) { if (!is_array($val)) { $type = "date"; } else { $type = gettype($val); } return $type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDatatype() {}", "function get_type(mixed $var, bool $scalars = false): string\n{\n if ($scalars && is_scalar($var)) {\n return 'scalar';\n }\n return get_debug_type($var);\n}", "public function getDataType(): string\n {\n return $this->col->getAttribute('data-type');\n }...
[ "0.6849343", "0.67715", "0.67409503", "0.6708612", "0.6702939", "0.6687832", "0.661638", "0.65758705", "0.657483", "0.65472317", "0.65392345", "0.65278363", "0.6488414", "0.6484783", "0.6484783", "0.6484783", "0.6484783", "0.6484109", "0.64542216", "0.6450605", "0.64354527", ...
0.0
-1
Return whether the given value is a valid ISODate
public static function isISODate($val) { if(!is_string($val)) { return false; } // Use DateTime support to check for valid dates. try { $date = new DateTime($val); } catch(Exception $e) { return false; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run($value)\n {\n if ($value instanceof Date) {\n return true;\n }\n if (!is_string($value)) {\n return false;\n }\n if (preg_match(Date::ISO8601_REGEX, $value)) {\n return true;\n }\n\n return false;\n }", "p...
[ "0.74049497", "0.7397895", "0.7364437", "0.717261", "0.714827", "0.7120575", "0.7045961", "0.7041389", "0.68813264", "0.6844565", "0.68218493", "0.68178296", "0.6795506", "0.6793685", "0.678895", "0.6775554", "0.674608", "0.6706285", "0.6695407", "0.6695407", "0.6678262", "...
0.8178765
0
this up() migration is autogenerated, please modify it to your needs
public function up(Schema $schema): void { $this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.'); $this->addSql('CREATE TABLE mw_afsluiting_resultaat (afsluiting_id INT NOT NULL, resultaat_id INT NOT NULL, INDEX IDX_EB...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function up();", "abstract public function up();", "abstract public function up();", "abstract public function up();", "public function up()\n {\n $this->execute(\"\n ALTER TABLE `tcmn_communication` \n CHANGE `tcmn_pprs_id` `tcmn_pprs_id` SMALLINT(5) UNSIGNE...
[ "0.80072445", "0.7915632", "0.7915632", "0.7915632", "0.75720376", "0.7561417", "0.75285745", "0.7499062", "0.7494408", "0.7454009", "0.7446965", "0.74338573", "0.74321055", "0.7427382", "0.74184984", "0.7378431", "0.73753154", "0.73706865", "0.73640925", "0.7351718", "0.7329...
0.0
-1
this down() migration is autogenerated, please modify it to your needs
public function down(Schema $schema): void { $this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.'); $this->addSql('ALTER TABLE mw_afsluiting_resultaat DROP FOREIGN KEY FK_EBA6C1A2B0A9B358'); $this->addSql('DRO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function down()\n {\n //add your migration here \n }", "public function down()\n {\n //add your migration here\n }", "public function down()\n\t{\n $this->dropColumn('producto','fecha');\n\n //add column fecha in producto\n $this->addColumn('calculo'...
[ "0.7950277", "0.78636813", "0.76065636", "0.7493955", "0.7320625", "0.7245268", "0.7187498", "0.71543235", "0.715298", "0.7141911", "0.7135835", "0.71214414", "0.71154845", "0.71057886", "0.7098064", "0.70800334", "0.7078775", "0.70729095", "0.7068331", "0.7066272", "0.705336...
0.0
-1
Display a listing of the resource.
public function index() { $budgets = Budget::all(); foreach($budgets as $budget) { $budget->tag_name = $budget->tag()->name; } return $this->jsonResponse($budgets); }
{ "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() { // handled by backbone routes }
{ "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