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
Returns the name of the argument.
public function getName() { return $this->_name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getName()\n {\n return $this->arguments['name'];\n }", "public function getArg(){\n return (string)$this->arg;\n }", "public function getArgument(string $name);", "public function getNamedStringArgument($name);", "public function getParameterName(): string\n {\n...
[ "0.8020499", "0.7528213", "0.7449299", "0.73812276", "0.7208482", "0.70220524", "0.70007765", "0.6911079", "0.6855003", "0.68295294", "0.6786731", "0.67709744", "0.6730184", "0.6708383", "0.6702774", "0.66907597", "0.66811085", "0.6675296", "0.66687405", "0.6653385", "0.66361...
0.0
-1
Returns whether or not the argument is optional.
public function isOptional() { return $this->_optional; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isOptional(): bool\n {\n return $this->is_optional;\n }", "public function isOptional(): bool\n\t{\n\t\treturn $this->is_optional;\n\t}", "public function isOptionalWithNoDefault(): bool\n {\n if (((string)$this->parameter['choice']) !== 'opt' && !$this->isVariadic()) {\n...
[ "0.7756063", "0.77464664", "0.770472", "0.7703611", "0.7614535", "0.7589106", "0.75804365", "0.7558385", "0.7558385", "0.7558385", "0.7545247", "0.7489644", "0.70863193", "0.6385253", "0.63750404", "0.6317782", "0.62666124", "0.6219994", "0.6182363", "0.61731285", "0.6128209"...
0.7556658
10
Returns the description of the argument.
public function getDescription() { return $this->_description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getArgumentDescription(string $name)\n {\n return $this->arguments_infos[$name]['description'] ?? null;\n }", "public function getDesciption();", "public function getArgument()\n {\n return 'help';\n }", "public function description();", "public function description();", ...
[ "0.7468813", "0.736365", "0.7134319", "0.71240115", "0.71240115", "0.7051037", "0.70207334", "0.70033085", "0.70033085", "0.70033085", "0.70024264", "0.70024264", "0.70024264", "0.70024264", "0.70024264", "0.70024264", "0.70024264", "0.70024264", "0.70024264", "0.6997783", "0...
0.0
-1
Run a where clause on the model
public function where($column, $operator, $value) { $this->model = $this->model->where($column, $operator, $value); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function user_where_clause() {}", "protected function getWhereClause() {}", "public function get_where()\n {\n }", "public function get_where()\n {\n }", "public function where()\n {\n return $this->query; \n }", "protected function getGeneralWhereCla...
[ "0.78998375", "0.7438508", "0.6932724", "0.6932724", "0.67543554", "0.67328036", "0.671743", "0.66543144", "0.66063064", "0.641732", "0.63887554", "0.63860345", "0.63859564", "0.6313233", "0.6309325", "0.62716174", "0.626954", "0.6208567", "0.62018794", "0.6199045", "0.617529...
0.0
-1
Tun a where in clause on the model.
public function whereIn($column, $values, $boolean = 'and', $not = false) { $this->model = $this->model->whereIn($column, $values, $boolean, $not); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _in($model, $as_array = FALSE)\n\t{\n\t\t$result = Jelly::select($this->through['model'])\n\t\t\t\t->select($this->through['columns'][1])\n\t\t\t\t->where($this->through['columns'][0], '=', $model->id());\n\n\t\tif ($as_array)\n\t\t{\n\t\t\t$result = $result\n\t\t\t\t\t\t->execute(Jelly::meta($m...
[ "0.6058926", "0.6039015", "0.6035005", "0.5945052", "0.5847943", "0.5727735", "0.55799526", "0.55356055", "0.55279446", "0.5491309", "0.5425805", "0.5377522", "0.5371578", "0.53484726", "0.53454673", "0.5319568", "0.5310164", "0.5300646", "0.5297218", "0.5258514", "0.524041",...
0.0
-1
Set the columns to be selected
public function select(array $columns) { $this->select = $columns; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setColumns($columns = \"*\")\n {\n //$sql = '';\n if ($columns == \"*\") {\n $this->select_list = '*';\n } elseif (!empty($columns)) {\n foreach ($columns as $item) {\n\n $this->select_list .= $item . ',';\n }\n $thi...
[ "0.692604", "0.69106275", "0.67120034", "0.6686156", "0.66677535", "0.6662436", "0.6540613", "0.65026516", "0.6501031", "0.64503896", "0.6447919", "0.64392364", "0.6344181", "0.6327592", "0.62401944", "0.62360525", "0.6193538", "0.6185772", "0.61580664", "0.60937864", "0.6078...
0.608876
20
Set the amount of results to select
public function limit($limit) { $this->model = $this->model->take($limit); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function setNumResults()\n\t{\n\t\t$this->numResults = (int) count($this->data);\n\t}", "private function selectLimit(){\n $result=parent::selectSomething('*', 'config');\n $row=mysqli_fetch_object($result);\n $this->limit=$row->answersperpage;\n }", "private function selectLimi...
[ "0.79341054", "0.68598145", "0.67933553", "0.6578989", "0.6537371", "0.64542806", "0.6382886", "0.6311044", "0.6255694", "0.62362725", "0.6211625", "0.61835396", "0.6174281", "0.6141372", "0.60769516", "0.607461", "0.6037919", "0.59681123", "0.59535325", "0.5946956", "0.59312...
0.0
-1
Set a left join
public function leftJoin($table, $foreign_key, $operator, $local_key) { $this->model = $this->model ->leftJoin($table, $foreign_key, $operator, $local_key); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function leftJoin($table, $conditions = []);", "public function leftOuterJoin($table);", "function dt_core_join_left_filter( $parts ) {\n\tif( isset($parts['join']) && !empty($parts['join']) ) {\n\t\t$parts['join'] = str_replace( 'INNER', 'LEFT', $parts['join']);\n\t}\n\treturn $parts;\n}", "public fu...
[ "0.70154434", "0.6952868", "0.6859293", "0.6854731", "0.6840933", "0.68338025", "0.6833006", "0.67502046", "0.66297203", "0.66046184", "0.66039467", "0.65313536", "0.6500174", "0.6333821", "0.63211393", "0.6266698", "0.62579817", "0.6235731", "0.62274885", "0.61600834", "0.61...
0.6111255
21
Run a raw select query on the model
public function rawSelect($query) { $this->model = $this->model->select($query); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function runSelect()\n {\n return $this->connection->select(\n $this->toSql(),\n $this->getBindings(),\n $this->option->setUseWrite($this->useWritePdo)\n );\n }", "protected function runSelectWithMeta()\n {\n return $this->connection->selec...
[ "0.71282804", "0.70387477", "0.6725414", "0.6688131", "0.65096164", "0.650322", "0.64679974", "0.64679974", "0.64679974", "0.6387126", "0.638069", "0.63796055", "0.6363913", "0.6288674", "0.62583447", "0.62393963", "0.61828166", "0.6159401", "0.61488044", "0.61337507", "0.609...
0.6777547
2
Refresh the order by statement
public function refreshOrderBy() { $query = $this->model->getQuery(); unset($query->orders); $this->model->setQuery($query); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function prepareOrderByStatement() {}", "protected function setOrder() {\r\n if( $this->sqlOrderBy ) {\r\n $this->sql .= ' ORDER BY ' . $this->sqlOrderBy;\r\n }\r\n }", "public function refreshOrderBy()\n {\n $query = $this->model->getQuery();\n unset($que...
[ "0.7611777", "0.716666", "0.70202523", "0.67338914", "0.6507315", "0.64334935", "0.64334935", "0.64334935", "0.64334935", "0.64334935", "0.64334935", "0.64334935", "0.64334935", "0.64334935", "0.64334935", "0.64334935", "0.64334935", "0.64334935", "0.64334935", "0.64334935", ...
0.7063796
2
Get the results from the query
public function results() { return $this->model->get($this->select); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getResults()\n {\n return $this->execute();\n }", "public function getResults();", "public abstract function getResults();", "protected function get_results_from_query() {\n\t\t//para vaciar posibles resultados previos\n\t\t$this->rows = array();\n\t\t\n\t\t$this->crear_conexion(...
[ "0.79531646", "0.78548115", "0.783856", "0.76645744", "0.76189286", "0.76037776", "0.75528306", "0.75267804", "0.7401936", "0.73551536", "0.73167187", "0.7299508", "0.7272348", "0.7270418", "0.7269784", "0.7256081", "0.7248797", "0.7248001", "0.7237911", "0.7178481", "0.71780...
0.7622817
4
Return the total results
public function count() { $countModel = clone $this->model; $countQuery = $countModel->getQuery(); $countQuery->orders = null; $countModel->setQuery($countQuery); return $countModel->count(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTotalResults();", "public function getTotalResults() {\n return $this->totalResults;\n }", "public function getTotal();", "public function getTotal();", "public function getTotalNumberOfResults();", "public function getTotalResults()\n {\n return isset($this['info']['resu...
[ "0.9064608", "0.8295727", "0.823302", "0.823302", "0.8207319", "0.8164317", "0.8121554", "0.81058544", "0.81058544", "0.8035189", "0.7960989", "0.7927728", "0.7927728", "0.78351873", "0.7790682", "0.7782512", "0.7770518", "0.7763495", "0.7763495", "0.7763495", "0.77330315", ...
0.0
-1
Get card Id or create new
public function getCardIdWithData(int $user_id, array $card_data) { return $this->firstOrCreate(['user_id' => $user_id], $card_data)->id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdCard()\n {\n return $this->id_card;\n }", "public function insertCard($data){\n unset($data['is_default']);\n\n /**\n Api/CardCredit/insertCardCredit: insert card data\n Kiosk/Api/verifyCreditCard: insert card data, without member_i...
[ "0.6814749", "0.6467103", "0.62946606", "0.62833256", "0.6221153", "0.61916286", "0.6183408", "0.608761", "0.60657483", "0.6030497", "0.60106295", "0.5961464", "0.5938207", "0.5930469", "0.5923506", "0.5923506", "0.590853", "0.5901838", "0.5897588", "0.5874905", "0.5863559", ...
0.60592806
9
Get first card id from customer cards If Customer has cards will return first one or zero
public function getFirstCardId(int $user_id): int { return $this->where('user_id', $user_id)->first()->id ?? 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCustomerCardId(): ?string\n {\n if (count($this->customerCardId) == 0) {\n return null;\n }\n return $this->customerCardId['value'];\n }", "public function getIdCard()\n {\n return $this->id_card;\n }", "function getStripeCustomerId(){\n\n ...
[ "0.7004446", "0.6583274", "0.6259025", "0.6205459", "0.6143456", "0.61394405", "0.6013545", "0.5980387", "0.5968282", "0.5800017", "0.5797028", "0.5795271", "0.5794025", "0.57341415", "0.5709224", "0.5704326", "0.5697719", "0.56567776", "0.5654156", "0.5653232", "0.5653232", ...
0.6914502
1
Receive and wait for messages from queue
function startQueue(){ // Maintain the array checkLogQ as a FIFO buffer with length 4. // When a new entry is added, remove oldest entry and shuffle. function addCheckLog($message){ global $checkLogQ; $length = 4; // If checkLogQ size is smaller than 4 add th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listen()\n {\n $this->open();\n $callback = function(AMQPMessage $message) {\n $job = $this->unserialize($message->body);\n if ($this->getQueue()->run($job)) {\n $message->delivery_info['channel']->basic_ack($message->delivery_info['delivery_tag...
[ "0.71199083", "0.6990867", "0.66668683", "0.66524714", "0.63747585", "0.6364515", "0.6179977", "0.6123481", "0.6116413", "0.6058558", "0.60179716", "0.60179716", "0.6015656", "0.5980645", "0.5967203", "0.5951462", "0.5944981", "0.59365755", "0.591689", "0.59080625", "0.589785...
0.6414643
4
Maintain the array checkLogQ as a FIFO buffer with length 4. When a new entry is added, remove oldest entry and shuffle.
function addCheckLog($message){ global $checkLogQ; $length = 4; // If checkLogQ size is smaller than 4 add the message if(count($checkLogQ)<$length){ $checkLogQ[] = $message; } // If checkLogQ size is bigger than 4 - Remove the olde...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function printCheckLogQ(){\n global $checkLogQ;\n foreach($checkLogQ as $message){\n print($message);\n }\n $checkLogQ = array(); // reset a variable to an empty array\n }", "function startQueue(){\n\n // Maintain the array checkLogQ as a F...
[ "0.6110949", "0.5961492", "0.50874597", "0.49682108", "0.49598435", "0.49430254", "0.49205628", "0.47151068", "0.4712714", "0.47123906", "0.47057217", "0.46693307", "0.4647618", "0.4619267", "0.46137637", "0.46044245", "0.45768133", "0.45693743", "0.45657006", "0.45527217", "...
0.6718232
0
Prints all checkLogQ messages to the console
function printCheckLogQ(){ global $checkLogQ; foreach($checkLogQ as $message){ print($message); } $checkLogQ = array(); // reset a variable to an empty array }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function printErrorLog() {}", "public static function print_log() {\n $line_break = PHP_SAPI != \"cli\" ? \"<hr/>\" : PHP_EOL; //If not cmd. EOL is a cross platform new line\n //generate a string and output\n foreach (self::$log_message as &$log) {\n $log = \"* \".$log;\n ...
[ "0.6091366", "0.60109645", "0.59499514", "0.5746436", "0.5738425", "0.55802876", "0.5545277", "0.55278695", "0.55278695", "0.5514166", "0.54529333", "0.539734", "0.537468", "0.5358286", "0.53445065", "0.53417164", "0.53377724", "0.5329484", "0.5307096", "0.5286817", "0.526260...
0.76650935
0
we want to mark migrated classes ,In order not to be migrate again this helper function write in migrated.json file.
public function setMigrationAsMigrated($migrationClassName): void { if ( ! file_exists($this->_dir)) { $this->createFile(); } $migrated = $this->getFileContent(); $migrated[$migrationClassName] = true; $migrated = json_en...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function migrateUp($class)\n {\n if ($class === self::BASE_MIGRATION) {\n return true;\n }\n\n $this->stdout(\"*** applying $class\\n\", Console::FG_YELLOW);\n $start = microtime(true);\n $migration = parent::createMigration($class);\n if ($migration->...
[ "0.55805653", "0.55301595", "0.5500356", "0.54755425", "0.54607505", "0.5327683", "0.53254604", "0.5309002", "0.5305589", "0.528958", "0.5268564", "0.52581084", "0.5254144", "0.5202", "0.51881343", "0.51690793", "0.5153159", "0.51367027", "0.51362866", "0.5134876", "0.51163",...
0.6055214
0
check if class migrated or not
public function isMigrated($migrationClassName): bool { if ( ! file_exists($this->_dir)) { return false; } $migrated = $this->getFileContent(); return isset($migrated[$migrationClassName]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isMigratingUp();", "public function migrateUp($class)\n {\n if ($class === self::BASE_MIGRATION) {\n return true;\n }\n\n $this->stdout(\"*** applying $class\\n\", Console::FG_YELLOW);\n $start = microtime(true);\n $migration = parent::createMigrat...
[ "0.7242361", "0.6956828", "0.63505924", "0.62451595", "0.6155832", "0.61186486", "0.6065068", "0.5946564", "0.5824946", "0.58059615", "0.5773013", "0.5746837", "0.5671892", "0.5671892", "0.5655574", "0.56539196", "0.5651173", "0.56383413", "0.56216514", "0.56096774", "0.55852...
0.59977496
7
Static function that can initialize the class and return an instance of itself.
public static function instance() { if ( is_null( self::$instance ) ) { self::$instance = new self(); } return self::$instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function init()\n {\n return new self();\n }", "public static function initialization()\n {\n return new static();\n }", "public static function init()\n {\n return new static;\n }", "public static function initialize()\n {\n if (self::$instance == nul...
[ "0.8074297", "0.79237956", "0.77660024", "0.7716984", "0.7648251", "0.7639098", "0.75294805", "0.7483072", "0.7480698", "0.7468149", "0.7454364", "0.7246246", "0.7241745", "0.7237624", "0.7212285", "0.72115123", "0.7200524", "0.71830213", "0.71800464", "0.71800464", "0.717913...
0.0
-1
Hook into WordPress and other plugins as needed.
private function hooks() { add_filter( 'wpcd_settings_tabs', array( &$this, 'settings_tabs' ) ); // add a new tab to the settings page. add_filter( 'wpcd_settings_metaboxes', array( &$this, 'settings_metaboxes' ) ); // add new metaboxes to our new tab on the settings pages. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function hooks() {\n\t\t\t// check for EDD when plugin is activated\n\t\t\tadd_action( 'admin_init', array( $this, 'activation' ), 1 );\n\t\t\t\n\t\t\t// plugin meta\n\t\t\tadd_filter( 'plugin_row_meta', array( $this, 'plugin_meta' ), null, 2 );\n\n\t\t\t// settings link on plugin page\n\t\t\tadd_filter( '...
[ "0.7649757", "0.76279014", "0.7539664", "0.7471914", "0.7323744", "0.72685397", "0.7261366", "0.7242826", "0.7211023", "0.71347237", "0.71150756", "0.71105105", "0.7108266", "0.71046007", "0.70763564", "0.7058203", "0.7049491", "0.70033854", "0.6993044", "0.69537956", "0.6946...
0.6744704
47
Add a new tab to the settings page Filter hook: wpcd_settings_tabs
public function settings_tabs( $tabs ) { $new_tab = array( 'app-vpn' => __( 'APP: VPN - Settings', 'wpcd' ) ); $tabs = $tabs + $new_tab; return $tabs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add_settings_tabs() {\n\t\t$install_tabs = [ 'git_updater_addons' => esc_html__( 'API Add-Ons', 'git-updater' ) ];\n\t\tadd_filter(\n\t\t\t'gu_add_settings_tabs',\n\t\t\tfunction ( $tabs ) use ( $install_tabs ) {\n\t\t\t\treturn array_merge( $tabs, $install_tabs );\n\t\t\t}\n\t\t);\n\t\tadd_filter(...
[ "0.7991635", "0.74204534", "0.73688424", "0.73630756", "0.7267792", "0.7226878", "0.70674956", "0.70353335", "0.70174813", "0.698998", "0.681375", "0.6784946", "0.6768893", "0.6741165", "0.67408603", "0.67306745", "0.6683071", "0.667896", "0.6609416", "0.6606206", "0.6578303"...
0.6981702
10
Add a new metaboxes to the settings page See the Metabox.IO website for documentation on the structure of the metabox settings array. Filter hook: wpcd_settings_metaboxes
public function settings_metaboxes( $metaboxes ) { $metaboxes[] = array( 'id' => 'vpn', 'title' => __( 'All VPN Settings', 'wpcd' ), 'settings_pages' => 'wpcd_settings', 'tab' => 'app-vpn', // this is the top level tab on the setttings screen, not to be confused with the ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function add_metaboxes(){}", "function wck_settings_page_add_meta_boxes() {\r\n global $post;\r\n\t\tdo_action( 'add_meta_boxes', $this->hookname, $post );\r\n\t}", "public function add_meta_boxes() {\r\n\t\tadd_meta_box( 'zakra-page-setting', esc_html__( 'Page Settings', 'zakra' ), 'Zakra...
[ "0.8125675", "0.77773815", "0.7773782", "0.7752894", "0.76953095", "0.7571508", "0.75650275", "0.75632906", "0.75483036", "0.75255734", "0.7501606", "0.7474144", "0.7473745", "0.7461713", "0.73919576", "0.73699224", "0.7361965", "0.73501", "0.7342387", "0.7335543", "0.7308547...
0.73435515
18
Return a list of tabs that will go inside the metabox.
public function metabox_tabs() { $tabs = array( 'vpn-general' => array( 'label' => 'General', 'icon' => 'dashicons-text', ), 'vpn-scripts' => array( 'label' => 'Scripts', 'icon' => 'dashicons-format-aside', ), 'vpn-promotions' => array( 'label' => 'Promotions', 'icon' =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function get_tabs() {\n return array(\n 'general' => array(\n 'title' => __( 'General', 'jpid' ),\n 'group' => 'jpid_general_settings'\n ),\n 'delivery' => array(\n 'title' => __( 'Delivery', 'jpid' ),\n 'group' => 'jpid_delivery_settings'\n ),\n 'p...
[ "0.7050983", "0.7008031", "0.690626", "0.6795968", "0.674689", "0.67398816", "0.6668108", "0.6623027", "0.65878767", "0.65535724", "0.65348864", "0.6534217", "0.6385173", "0.63541055", "0.632926", "0.62576264", "0.6234833", "0.6197593", "0.61965984", "0.61478937", "0.61330837...
0.80395633
0
Return an array that combines all fields that will go on all tabs.
public function all_fields() { $general_fields = $this->general_fields(); $promo_fields = $this->promotional_fields(); $script_fields = $this->scripts_fields(); $all_fields = array_merge( $general_fields, $promo_fields, $script_fields ); return $all_fields; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _getFields()\n {\n return array(\n 'xf_tab_name' => array(\n 'tab_name_id' => array(\n 'type' => self::TYPE_UINT,\n 'autoIncrement' => true\n ), /* END 'tab_name_id' */\n 'display_order' => ar...
[ "0.69516116", "0.6815694", "0.6688871", "0.6645328", "0.6579256", "0.6473842", "0.6402275", "0.63490415", "0.62971205", "0.6265576", "0.6220663", "0.6211978", "0.6190917", "0.61830825", "0.6142174", "0.6137402", "0.6132245", "0.6132245", "0.6132245", "0.6132245", "0.6132245",...
0.6840257
1
Return array portion of field settings for use in the script fields tab.
public function scripts_fields() { $fields = array( array( 'id' => 'vpn_script_version', 'type' => 'text', 'name' => __( 'Version of scripts', 'wpcd' ), 'desc' => __( 'Version of scripts to run. Default is V1. Updates to plugins that contain new scripts will NOT usually change this value so if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mace_admin_get_settings_fields() {\n\t$fields = array();\n\t$settings_pages = mace_get_settings_pages();\n\n\tforeach( $settings_pages as $page_id => $page_config ) {\n\t\t$fields[ $page_id ] = $page_config['fields'];\n\t}\n\n\treturn (array) apply_filters( 'mace_admin_get_settings_fields', $fields );\n}"...
[ "0.77598584", "0.7529695", "0.72780126", "0.7182987", "0.7170281", "0.71687263", "0.7119809", "0.6981577", "0.6966827", "0.6937861", "0.68980175", "0.68972653", "0.68909657", "0.6869143", "0.68313134", "0.6825593", "0.68201965", "0.67860216", "0.67735314", "0.6694806", "0.668...
0.6438893
50
Return array portion of field settings for use in the promotional fields tab.
public function promotional_fields() { $fields = array( array( 'id' => 'vpn_promo_item01_url', 'type' => 'text', 'name' => __( 'URL To First Product Being Promoted', 'wpcd' ), 'std' => 'https://spinupvpn.com/help', 'tooltip' => __( 'You can add a link to the top of all subscript...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mace_admin_get_settings_fields() {\n\t$fields = array();\n\t$settings_pages = mace_get_settings_pages();\n\n\tforeach( $settings_pages as $page_id => $page_config ) {\n\t\t$fields[ $page_id ] = $page_config['fields'];\n\t}\n\n\treturn (array) apply_filters( 'mace_admin_get_settings_fields', $fields );\n}"...
[ "0.76832485", "0.7503711", "0.72409046", "0.7214906", "0.7173017", "0.7046966", "0.6913948", "0.6805758", "0.6710659", "0.6708123", "0.6699678", "0.6691206", "0.6680509", "0.6670287", "0.6653076", "0.6639047", "0.6629856", "0.66230613", "0.6621794", "0.6596281", "0.65601325",...
0.0
-1
Return array portion of field settings for use in the general fields tab.
public function general_fields() { $fields = array( array( 'id' => 'vpn_general_help_url', 'type' => 'text', 'name' => __( 'URL To Help Pages', 'wpcd' ), 'default' => 'https://spinupvpn.com/help', 'tooltip' => __( 'Certain error messages will be more helpful to your users if it incl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mace_admin_get_settings_fields() {\n\t$fields = array();\n\t$settings_pages = mace_get_settings_pages();\n\n\tforeach( $settings_pages as $page_id => $page_config ) {\n\t\t$fields[ $page_id ] = $page_config['fields'];\n\t}\n\n\treturn (array) apply_filters( 'mace_admin_get_settings_fields', $fields );\n}"...
[ "0.7805314", "0.77778196", "0.7426598", "0.73898333", "0.7273434", "0.7260431", "0.7170247", "0.7062616", "0.7038545", "0.69498265", "0.6913637", "0.6888897", "0.6861408", "0.68607813", "0.68584275", "0.6858261", "0.6854229", "0.6848117", "0.6836817", "0.682377", "0.68192244"...
0.0
-1
Display a listing of the resource.
public function index() { $products=Products::orderBy('id','asc')->paginate(5); return view('products.index',compact('products')); }
{ "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('products.create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { $request->validate([ 'quality' => 'required', 'product' => 'required', 'description' => 'required', 'code' => 'required', 'bill' => 'required', 'date' => 'required', 'number' => 'req...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.63424...
0.0
-1
Display the specified resource.
public function show($id) { $products = Products::all(); $pdf = PDF::loadview('products.mostrar', compact('products')); return $pdf->stream(); }
{ "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) { $products=product::find($id); return view('products.edit',compact('product')); }
{ "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) { $request->validate([ 'quality' => 'required', 'product' => 'required', 'description' => 'required', 'code' => 'required', 'bill' => 'required', 'date' => 'required', 'number' =...
{ "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) { Products::find($id)->delete(); return redirect()->route('products.index')->with('success','El producto fue Eliminado correctamente'); }
{ "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
/ | | Login Controller | | | This controller handles authenticating users for the application and | redirecting them to your home screen. The controller uses a trait | to conveniently provide its functionality to your applications. | use AuthenticatesUsers; Where to redirect users after login.
public function login1(\Illuminate\Http\Request $request) { //dd(); $mail = $request->get("Email"); $pass = $request->get("Password"); //dd(bcrypt($pass)); $use= User::Validator($mail,$pass); dd($use); //dd(Auth::attempt(['email' => $request->get("Email"), 'pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionLogin()\r\n\t{\r\n\t $this->redirect(array('//user/auth'));\r\n\t}", "public function loginAction()\n {\n // get the view vars\n $errors = $this->view->errors;\n $site = $this->view->site;\n $loginUser = $this->view->loginUser;\n\n if ( $loginUser ) ...
[ "0.71996725", "0.7197968", "0.71171093", "0.709945", "0.7094928", "0.70014274", "0.6984527", "0.6959346", "0.69347906", "0.68900394", "0.68663454", "0.6863219", "0.68391293", "0.6812528", "0.6811022", "0.6802307", "0.677561", "0.6771732", "0.67522204", "0.67434293", "0.672906...
0.0
-1
1ta id ni olib info qaytaradigan and bir nechta id ni olib bir nechta qaytaradigan and hammasini olib qaytaradigan and bittasini olib o'zgartiradigan bittasini o'chiradigan bitta tabledan id va amaillarni olib bersin
public function reninfo($id){ $rent = TestMirshod::findOne($id); $rent->email = 'najim.jk@gmail.com'; $rent->save(); return $rent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showTroopAli_ctc($ali_id, $dtk_id, $art){\n\tglobal $db, $lang;\n\t$parse = $lang;\n\t\n\tfor($i=1; $i<=3; $i++){\n\t\t$parse['a_h_'.$i] = 0;\n\t\t$parse['a_h_c_'.$i] = \"c\";\t\t\n\t}\n\t\n\tfor($i=1; $i<=33; $i++){\n\t\t$parse['a_'.$i] = 0;\n\t\t$parse['a_c_'.$i] = \"c\";\n\t}\n\t\n\t//Lay thong tin her...
[ "0.589124", "0.58377916", "0.5731272", "0.5574303", "0.5557397", "0.55451626", "0.5505146", "0.54966116", "0.54869497", "0.5483447", "0.5476329", "0.54721045", "0.5453097", "0.544599", "0.54453564", "0.5441371", "0.5421093", "0.54204696", "0.54177666", "0.5416624", "0.5406922...
0.0
-1
SENDS EMAIL TO USER IF HE/SHE FORGOT THE PASSWORD
function forgotPassword($emailTO) { global $user, $pass; return $params = array( 'api_user' => $user, 'api_key' => $pass, 'to' => $emailTO, 'subject' => 'E-Mart: Reset password', 'html' => "<html> <head></head> ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function send_password(){\n\t\t$tmpUsername = $_POST[\"txtUsername\"];\n\t\t$tmpEmail = $_POST[\"txtEmail\"];\n\t\t$inRepository = new InterfacePersonRepo;\n\t\t$tmpUser = $inRepository->getRepositoryByUsername($tmpUsername);\n\t\tif(count($tmpUser)>1){\n\t\t\texit();\n\t\t}\n\t\tif($tmpUser[0]->Email == $t...
[ "0.7064867", "0.68901443", "0.68900204", "0.6798403", "0.67539704", "0.671237", "0.6667207", "0.6637603", "0.66043234", "0.65967536", "0.65924543", "0.65488064", "0.653576", "0.65226346", "0.6519967", "0.6493802", "0.64684427", "0.6465093", "0.6414649", "0.64103806", "0.63888...
0.0
-1
This function sets active/inactive status.
public function setstatus() { $this->checkAjaxToken(); $this->throwForbiddenUnless(SecurityUtil::checkPermission('AddressBook::', '::', ACCESS_ADMIN)); $id = $this->request->request->get('id', 0); $status = $this->request->request->get('status', 0); $alert = ''; i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setActive()\n {\n $this->update(['status' => static::STATUS_ACTIVE]);\n }", "public function setActive() {}", "public function setActive()\n\t\t{\n\t\t\t$this->_state = 1;\n\t\t}", "public function setActive()\n {\n $this->status = AutoEvent::STATUS_ACTIVE;\n $th...
[ "0.8504434", "0.77887154", "0.776901", "0.7663481", "0.7478033", "0.7473687", "0.74099123", "0.7378122", "0.7343705", "0.73193187", "0.71805936", "0.71731776", "0.70215243", "0.7012973", "0.7012446", "0.6967561", "0.6886365", "0.6864649", "0.6864649", "0.6860119", "0.68469614...
0.0
-1
Lists all indicateur entities.
public function indexAction($page) { if ($page < 1) { throw new NotFoundHttpException('Page "' . $page . '" inexistante.'); } //je fixe je nombre d'annoce par page $nbrAttPage = 5; $em = $this->getDoctrine()->getManager(); $indicateurs = $em->getRepository(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllEntities();", "public function get_entities();", "public function indexAction()\n {\n $em = $this->getDoctrine()->getEntityManager();\n\n $entities = $em->getRepository('JetBredaBundle:Alquiler')->findAll();\n\n return array('entities' => $entities);\n }", "pu...
[ "0.69215405", "0.6894297", "0.6886616", "0.6880062", "0.6641934", "0.6607736", "0.6545123", "0.65086275", "0.65086275", "0.6479785", "0.64446825", "0.6425218", "0.64223796", "0.6415404", "0.6399366", "0.639872", "0.6362839", "0.6279683", "0.6265107", "0.6259034", "0.62479246"...
0.0
-1
Creates a new indicateur entity.
public function newAction(Request $request) { $indicateur = new Indicateur(); if (isset($_POST['submit'])) { if (empty($_POST['categorie']) || empty($_POST['dateIndi']) || empty($_POST['libelle']) || empty($_POST['mode']) || empty($_POST['periodicite']) || empty($_POST['...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createEntity();", "function create($entity);", "public function create($entity);", "public function create(Entity $entity);", "public function createEntity($data = array());", "public function create()\n {\n $invoice = new InvoiceEntity();\n $invoice->setNumber('019101910...
[ "0.7706332", "0.7307066", "0.7303772", "0.72562766", "0.6789537", "0.67281795", "0.6647641", "0.65965235", "0.6496697", "0.6473405", "0.6471433", "0.6438639", "0.63780105", "0.6301128", "0.62657315", "0.62376076", "0.62245375", "0.6218358", "0.6189005", "0.6189005", "0.618900...
0.0
-1
Finds and displays a indicateur entity.
public function showAction(Indicateur $indicateur) { $deleteForm = $this->createDeleteForm($indicateur); return $this->render('form_dci/indicateur/show.html.twig', array( 'indicateur' => $indicateur, 'delete_form' => $deleteForm->createView(), )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Ong $entity)\n {\n return $entity;\n }", "function display_image($entity)\n{\n\tglobal $config;\n\t\n\techo '\n\t\t\t<div class=\"heading-block clearfix\">\n\t\t\t\t<div class=\"heading-thumbnail\">';\n\t\t\t\t\n\t\n\tif (isset($entity->thumbnailUrl))\n\t{\n\t\techo '<img src=\"...
[ "0.589338", "0.5826252", "0.5769153", "0.57076967", "0.5543662", "0.5534439", "0.552488", "0.54533803", "0.5352193", "0.5352193", "0.5312188", "0.5304867", "0.5292043", "0.52776587", "0.5272679", "0.527191", "0.52689534", "0.52687246", "0.52607197", "0.522751", "0.520634", ...
0.5742392
3
Displays a form to edit an existing indicateur entity.
public function editAction(Request $request, Indicateur $indicateur) { $deleteForm = $this->createDeleteForm($indicateur); if (isset($_POST['submit'])) { if (empty($_POST['categorie']) || empty($_POST['dateIndi']) || empty($_POST['libelle']) || empty($_POST['mode']) || empty($_POST['periodic...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function editAction()\r\n {\r\n \r\n $id= $this->container->get('security.context')->getToken()->getUser()->getId();\r\n $em = $this->getDoctrine()->getManager();\r\n $entity = $em->getRepository('UtilisateurBundle:Utilisateur')->find($id);\r\n \r\n if (!$entity)...
[ "0.73677313", "0.70639956", "0.7004505", "0.696161", "0.69508564", "0.6937135", "0.6910018", "0.6895781", "0.68956107", "0.68910456", "0.68842286", "0.6878072", "0.68663514", "0.6857535", "0.6842742", "0.6801082", "0.6770395", "0.6753216", "0.67456406", "0.67416", "0.67416", ...
0.0
-1
Deletes a indicateur entity.
public function deleteAction(Request $request, Indicateur $indicateur) { $form = $this->createDeleteForm($indicateur); $form->handleRequest($request); if ($form->isSubmitted() && $form->isValid()) { $em = $this->getDoctrine()->getManager(); $em->remove($indicateur); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($entity){ \n //TODO: Implement remove record.\n }", "public function delete($entity);", "protected function entityDelete(){\n // TODO: deal with errors\n // delete from api\n $deleted = $this->resourceService()->delete($this->getId());\n }", "public fu...
[ "0.78184307", "0.77394885", "0.7645768", "0.7617934", "0.7478385", "0.73692524", "0.7254621", "0.7187086", "0.7103939", "0.70427334", "0.7027476", "0.69423", "0.6912483", "0.6852977", "0.6845931", "0.683651", "0.68364656", "0.6768824", "0.6763635", "0.6673426", "0.66479886", ...
0.6594235
25
Creates a form to delete a indicateur entity.
private function createDeleteForm(Indicateur $indicateur) { return $this->createFormBuilder() ->setAction($this->generateUrl('indicateur_delete', array('id' => $indicateur->getId()))) ->setMethod('DELETE') ->getForm() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteForm()\n\t{\n\t\t$form = new \\IPS\\Helpers\\Form( 'form', 'delete' );\n\t\t$form->addMessage( 'node_delete_blurb_no_content' );\n\t\t\n\t\treturn $form;\n\t}", "private function createDeleteForm(NatureOp $priorite)\n {\n return $this->createFormBuilder()\n ->setAction(...
[ "0.74257165", "0.7380462", "0.7135961", "0.71214646", "0.70854574", "0.70659864", "0.7058775", "0.70453566", "0.703772", "0.6994962", "0.6994265", "0.6990275", "0.6985689", "0.6983248", "0.6962638", "0.6957569", "0.6957144", "0.69505435", "0.6947112", "0.6944443", "0.6932215"...
0.7885548
0
return an array of name value pairs to send data to the template
function executeIndex($request) { $data = array(); return $data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getTemplateArgs(): array\n {\n $starting_view = preg_replace('/([^\\w \\-\\@\\.\\,])+/', '', $_POST['starting_view']);\n $envelope_id= isset($_SESSION['envelope_id']) ? $_SESSION['envelope_id'] : false;\n $args = [\n 'envelope_id' => $envelope_id,\n 'a...
[ "0.6805697", "0.6778351", "0.6685417", "0.65888894", "0.6510755", "0.65058494", "0.633681", "0.62941414", "0.62165266", "0.6197054", "0.6156849", "0.6138158", "0.6064821", "0.60414726", "0.5948722", "0.5948597", "0.5935403", "0.58925813", "0.58924073", "0.58892614", "0.588591...
0.0
-1
The basic Home index
public function action_index() { \Package::load('email'); $mode = isset($_REQUEST['mode']) ? $_REQUEST['mode'] : null; // getting current date date_default_timezone_set('Asia/Ho_Chi_Minh'); $cDate = date('Y-m-d'); if ($mode === 'now'){ $dataSet = Model_Publishdate::find( a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index() {\n\n\t\t$data['content'] = 'Homepage';\n\t\t$this->flexi->title('Homepage')\n\t\t\t\t\t->make('home', $data);\n\n\t}", "public function index() \n\t{\n\t\t$this->_render_hod_view('home');\n\t}", "public function index()\n\t{\n\t\t$data['logo'] = \"/img/ilih.png\";\n\t\t$data['users'] =...
[ "0.865731", "0.8502034", "0.83912987", "0.83522874", "0.8330942", "0.8242061", "0.81983316", "0.81588596", "0.8152173", "0.80391777", "0.80172473", "0.8009981", "0.7984944", "0.79801774", "0.79328567", "0.79328567", "0.79328567", "0.7921567", "0.79157084", "0.79016685", "0.78...
0.0
-1
The 404 action for the application.
public function action_404() { return Response::forge(Presenter::forge('welcome/404'), 404); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionNotfound()\n {\n $this->actionSlug = 'notfound';\n $this->actionParams = [];\n $this->breadcrumbs=[];\n $this->beforeAction();\n $this->breadcrumbs[] = ['title' => 404];\n header(\"HTTP/1.x 404 Not Found\");\n header(\"Status: 404 Not Found\...
[ "0.83854896", "0.8346812", "0.8331481", "0.8298381", "0.8273531", "0.81195784", "0.80202264", "0.79965556", "0.7932431", "0.79038256", "0.7851581", "0.77753454", "0.77365446", "0.772436", "0.76887536", "0.76787484", "0.766104", "0.7632863", "0.76249707", "0.76194775", "0.7613...
0.8368956
1
Return custom javascript needed to ensure persistency of virtual rule while playing with the preview grid
protected function _getPreviewPersistenceJavascript() { $javascript = ""; if ($rule = $this->getRequest()->getParam('rule', false)) { $jsonRule = Mage::helper("core")->jsonEncode($rule); $javascript = <<<JAVASCRIPT if ({$this->getJsObjectName()}.reloadParams ==...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function generateJavascript() {}", "protected function generateJavascript() {}", "function getJavascriptFire() {\n\t\treturn \"new SUGAR.forms.SetPanelVisibilityAction('{$this->targetPanel}','{$this->expression}')\";\n\t}", "protected function generateJavascript()\n\t{\n\t}", "protected function ...
[ "0.6497548", "0.64963424", "0.63479286", "0.6284777", "0.60817856", "0.6036589", "0.5894851", "0.5854491", "0.57311904", "0.5695847", "0.56899685", "0.5689848", "0.56778765", "0.5631239", "0.56055886", "0.5568557", "0.5560437", "0.55327666", "0.5532317", "0.5499723", "0.54895...
0.7521728
0
Prepare the product collection Collection is the matched products for the current query
protected function _prepareCollection() { $baseQuery = $this->_getBaseSearchQuery(); $productIds = $this->_getProductIdsFromSearchQuery($baseQuery); if (empty($productIds)) { $productIds = array(0); } $attributes = Mage::getModel('catalog/config')->getProductCo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _prepareCollection() {\n $collection = Mage::getModel('vidtest/video')\n ->getCollection()\n ->addProductFilter($this->getProduct()->getId())\n ;\n\n if ($storeId = $this->getProduct()->getStoreId()) {\n $collection->addStoreFilter($s...
[ "0.72974336", "0.724351", "0.7235491", "0.7202871", "0.7117323", "0.7069229", "0.7041912", "0.6981756", "0.6904291", "0.6857724", "0.68023556", "0.67710334", "0.6748615", "0.6631792", "0.65536547", "0.6537255", "0.6535089", "0.6517021", "0.6493775", "0.6492051", "0.6488541", ...
0.772621
0
Get the current edit category.
public function getCategory() { if (!$this->_category) { $this->_category = Mage::registry('current_category'); } return $this->_category; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCurrentCategory()\n {\n return $this->category;\n }", "public function getCategory(){\r\n return Mage::registry('current_category');\r\n }", "public function getCurrentCategory()\n {\n return $this->registry->registry('current_category');\n }", "public f...
[ "0.7579706", "0.7511426", "0.74542326", "0.7265585", "0.7244287", "0.7195611", "0.71854323", "0.71854323", "0.71854323", "0.71854323", "0.71854323", "0.71854323", "0.71854323", "0.71854323", "0.71854323", "0.71854323", "0.71854323", "0.71854323", "0.71854323", "0.71854323", "...
0.74070376
3
Get the ES query to be opimized.
private function _getBaseSearchQuery() { $store = Mage::app()->getStore($this->getStoreId()); $collection = Mage::helper('catalogsearch') ->getEngine() ->getResultCollection(); $allowedVisibilities = Mage::getSingleton('catalog/product_visibility')->getVisibleInCatal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getElasticaQuery()\n {\n return $this->elasticaQuery;\n }", "public function get_query(){\n return $this->build_query()->query;\n }", "function getSearchEngineQuery() {\n\t\treturn $this->_searchEngineQuery;\n\t}", "public function getQUERY()\n {\n return $thi...
[ "0.7084148", "0.70608336", "0.69906676", "0.691446", "0.6840752", "0.68056715", "0.67041004", "0.66382897", "0.6623907", "0.6623907", "0.6623907", "0.6623907", "0.6623907", "0.6623907", "0.6623907", "0.6623907", "0.6623907", "0.6623907", "0.6616374", "0.661545", "0.66092813",...
0.61413974
75
Retrieve the ES raw query string for a given rule
protected function _getQueryStringFromRule(Smile_VirtualCategories_Model_Rule $rule) { // Do not call directly getSearchQuery() on rule because it would load from cache instead of recalculate $rule->addUsedCategoryIds($this->getCategory()->getId()); $rule->getConditions()->setRule($rule); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getQueryAsString();", "public function getQuery(): string\n {\n return (string) $this->query;\n }", "protected function getQuery(): string\n {\n return http_build_query($this->query);\n }", "public function getQuery(): string\r\n {\r\n return $this->query;\...
[ "0.6525287", "0.605407", "0.5891286", "0.5842957", "0.58400124", "0.58265656", "0.58265656", "0.58265656", "0.5801091", "0.5770238", "0.57324594", "0.5731913", "0.5715294", "0.5678404", "0.56288165", "0.55913246", "0.5572216", "0.555764", "0.5529608", "0.550066", "0.5500531",...
0.6264304
1
Load product ids for the query
private function _getProductIdsFromSearchQuery($query) { if (is_null($this->_productIds)) { $ids = array(); $client = Mage::helper('catalogsearch')->getEngine()->getClient(); $response = $client->search($query); foreach ($response['hits']['hits'] as $hit)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function set_product_ids() {\n\n\t\t// get the products selected for the report\n\t\t$this->product_ids = isset( $_GET['product_ids'] ) ? array_filter( array_map( 'absint', (array) $_GET['product_ids'] ) ) : array();\n\t}", "public static function fetch_all_product_ids() {\r\n\t\t\tglobal $wpdb;\r\n\r\...
[ "0.75926644", "0.6946737", "0.6784998", "0.6706732", "0.66771084", "0.650772", "0.6366523", "0.6363891", "0.62138385", "0.62004817", "0.6185207", "0.6165851", "0.6115681", "0.6069764", "0.60652304", "0.6040059", "0.60287154", "0.602094", "0.5949948", "0.5938743", "0.58996004"...
0.61335236
12
Get the virtual "root category" to apply for a virtual category, if any.
protected function _getVirtualRootCategory($category) { return Mage::helper('smile_virtualcategories')->getVirtualRootCategory($category); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_virtual_root()\n\t{\n\t\tglobal $DBPrefix, $db;\n\t\t// Virtual root element as parent.\n\t\t$query = \"SELECT right_id FROM \" . $DBPrefix . \"categories ORDER BY right_id DESC LIMIT 1\";\n\t\t$db->direct_query($query);\n\t\t$row = $db->result();\n\t\t$root = array('left_id' => 1, 'right_id' => $row[...
[ "0.71716315", "0.64109856", "0.62641716", "0.59453493", "0.59206754", "0.5819011", "0.57703555", "0.56866693", "0.5681122", "0.56720895", "0.5649985", "0.5642178", "0.5627867", "0.56274354", "0.562678", "0.5600032", "0.5512124", "0.5505646", "0.550227", "0.55016357", "0.54883...
0.71236855
1
Force the virtual rule to be loaded for a category.
protected function _getVirtualRule($category) { return Mage::helper('smile_virtualcategories')->getVirtualRule($category); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setCategory() {\n /**\n *\n * @todo make a separate config file for the default category ?!\n */\n $defaultCategory = 1;\n $category = Category::find()->all();\n $newCat = $this->strProcessing($this->category);\n $k = NULL;\n if (!em...
[ "0.5523471", "0.5401776", "0.53892785", "0.53529227", "0.53529227", "0.5154101", "0.5099096", "0.5002122", "0.49223325", "0.48467308", "0.48424366", "0.4808525", "0.4808525", "0.4796426", "0.47626355", "0.47138828", "0.47089693", "0.46798897", "0.46798897", "0.46490788", "0.4...
0.5441936
3
Lists all country entities.
public function indexAction() { $em = $this->getDoctrine()->getManager(); $countries = $em->getRepository('B2bBundle:Country')->findAll(); return $this->render('country/index.html.twig', array( 'countries' => $countries, )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n $countriesRepository = $em->getRepository('ShopBundle:Countries');\n\n $countryList = $countriesRepository->findBy(\n array(),\n array('country' => 'ASC')\n );\n\n retu...
[ "0.76825684", "0.75678253", "0.7440097", "0.7308114", "0.7265477", "0.70552075", "0.70186573", "0.69796455", "0.69322634", "0.691023", "0.6881232", "0.6877778", "0.6845058", "0.6814838", "0.6813988", "0.67915344", "0.677086", "0.67516154", "0.67354244", "0.671922", "0.6712204...
0.7450007
2
Creates a new country entity.
public function newAction(Request $request) { $country = new Country(); $form = $this->createForm('B2bBundle\Form\CountryType', $country); $form->handleRequest($request); if ($form->isSubmitted() && $form->isValid()) { $em = $this->getDoctrine()->getManager(); $e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create($name, $country);", "public function createAction(Request $request)\n {\n $entity = new Country();\n $form = $this->createCreateForm($entity);\n $form->handleRequest($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getManager();...
[ "0.76388085", "0.7267771", "0.72250867", "0.7150951", "0.6758067", "0.66717476", "0.66432697", "0.6642243", "0.66173375", "0.6568842", "0.64945376", "0.64041233", "0.6388463", "0.63336277", "0.6328388", "0.6306837", "0.62879544", "0.62764883", "0.6272283", "0.6260812", "0.625...
0.65021324
10
Finds and displays a country entity.
public function showAction(Country $country) { $deleteForm = $this->createDeleteForm($country); return $this->render('country/show.html.twig', array( 'country' => $country, 'delete_form' => $deleteForm->createView(), )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Country $country)\n {\n //\n }", "public function show(Country $country)\n {\n //\n }", "public function locationshowAction()\n {\n $em = $this->getDoctrine()->getManager();\n $countries = $em->getRepository('adminBundle:countries')->findAll();\n ...
[ "0.7471192", "0.7471192", "0.7003136", "0.67974126", "0.67974126", "0.6788679", "0.67744666", "0.67744666", "0.67091", "0.653223", "0.6467174", "0.6461364", "0.6370003", "0.6324962", "0.63099176", "0.6299033", "0.621986", "0.6217114", "0.61598784", "0.61532485", "0.6152757", ...
0.68108064
3
Displays a form to edit an existing country entity.
public function editAction(Request $request, Country $country) { $deleteForm = $this->createDeleteForm($country); $editForm = $this->createForm('B2bBundle\Form\CountryType', $country); $editForm->handleRequest($request); if ($editForm->isSubmitted() && $editForm->isValid()) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Country $country)\n {\n \n }", "public function edit(Country $country)\n {\n $langs=Lang::lists('language','id');\n return view('backend.countries.edit')->with('country',$country)->with('langs',$langs);\n }", "public function edit(Country $country)\n {\n...
[ "0.80439985", "0.7284132", "0.7261045", "0.71348256", "0.7056613", "0.7039055", "0.702156", "0.70039463", "0.6965901", "0.69474655", "0.6923719", "0.68681324", "0.68593884", "0.68550175", "0.68486136", "0.6833688", "0.6806311", "0.6760938", "0.6758943", "0.673473", "0.6678252...
0.74504596
1
Deletes a country entity.
public function deleteAction(Request $request, Country $country) { $form = $this->createDeleteForm($country); $form->handleRequest($request); if ($form->isSubmitted() && $form->isValid()) { $em = $this->getDoctrine()->getManager(); try { $em->remove($coun...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleted(Country $country)\n {\n\n }", "public function destroy(Country $country)\n {\n //\n }", "public function delete(model $country) {\n\n // Delete record\n return parent::_delete($country);\n }", "public function forceDeleted(Country $count...
[ "0.77608955", "0.75083005", "0.73672235", "0.7008719", "0.69454926", "0.6882619", "0.6823106", "0.676254", "0.6692958", "0.66703093", "0.6583386", "0.633823", "0.63282317", "0.63191706", "0.63134205", "0.6209367", "0.6169588", "0.6141337", "0.6126107", "0.609844", "0.6029929"...
0.7818393
0
Creates a form to delete a country entity.
private function createDeleteForm(Country $country) { return $this->createFormBuilder() ->setAction($this->generateUrl('backoffice_country_delete', array('id' => $country->getId()))) ->setMethod('DELETE') ->getForm() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createDeleteForm($iso_code)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('orkestro_backend_country_delete', array('iso_code' => $iso_code)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ...
[ "0.7399725", "0.71989477", "0.65310997", "0.65064156", "0.6375539", "0.61514044", "0.6146466", "0.61418074", "0.6138512", "0.61199176", "0.6112619", "0.61109596", "0.6090369", "0.60847354", "0.6069296", "0.6047175", "0.6046414", "0.6015595", "0.60115665", "0.5987653", "0.5984...
0.78188384
0
Pull tournament from db and display from short code
public function tournamentSignUpFormShortCode($attributes) { global $wpdb; $attr = shortcode_atts(array( 'tournament' => '', ), $attributes); // if no tournament was submitted then return error if(!$attr['tournament']) { return $this->alert(['alert' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showGames( $curDivision=\"\" ) {\n\n/* ... define values for template variables to display on page */\n if ($curDivision == \"\") {\n $data['title'] = \"Playoffs - \".$this->config->item( 'siteName' );\n }\n else {\n $data['title'] = \"Division \".$curDivision.\" Playoffs -...
[ "0.63523734", "0.63510185", "0.61470085", "0.61414546", "0.6049989", "0.6024968", "0.60183156", "0.5942192", "0.5883106", "0.5875423", "0.58676404", "0.5851405", "0.5819774", "0.5805797", "0.5788007", "0.57555395", "0.5752967", "0.57480735", "0.5746404", "0.5717107", "0.57136...
0.0
-1
Add context to timber twig output
public function addToContext($context) { $context['menu'] = new Menu(); $context['site'] = $this; return $context; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function twig_timber_context( $context ) {\n\t\t//Useful Variables\n\t\tglobal $template;\n\t\t$context['theme_template'] = str_replace( '.php', '', basename( $template ) );\n\t\t$context['theme_url'] = \"http://\" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];\n\n\t\t//Bam! Magic!\n\t\treturn ...
[ "0.71516156", "0.6657071", "0.6446465", "0.61592346", "0.5986428", "0.5968939", "0.5948509", "0.59355277", "0.59317636", "0.5925936", "0.5914216", "0.58980596", "0.58730865", "0.58574724", "0.57571906", "0.57571906", "0.57571906", "0.5729267", "0.5728651", "0.57201827", "0.56...
0.0
-1
Twig filters and functions
public function addToTwig($twig) { /* this is where you can add your own functions to twig */ $twig->addExtension(new Twig_Extension_StringLoader()); /** * Deprecated: Twig_Filter_Function, use Twig_SimpleFilter * http://twig.sensiolabs.org/doc/deprecated.html#filters ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function twig_raw_filter($string)\n{\n return $string;\n}", "protected function getTwigFilters()\n\t{\n\t\t$filters = [];\n\n\t\t// rex_i18n::translate\n\t\t$filters[] = new Twig_SimpleFilter('translate', function ($string) {\n \t\treturn rex_i18n::translate($string);\n\t\t});\n\n\t\t// rex_i18n::msg\n\t\t...
[ "0.7266409", "0.7158364", "0.7114199", "0.7074342", "0.7071912", "0.68723786", "0.68254596", "0.6820187", "0.6811788", "0.6756551", "0.6747228", "0.6747228", "0.6747228", "0.67433894", "0.674186", "0.6719879", "0.66673166", "0.660422", "0.6603044", "0.6595181", "0.65920454", ...
0.61681473
32
Slugify filter for twig templates
public function slugify($string) { $slugify = new Slugify(); return $slugify->slugify($string); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function twig_safe_filter($string)\n{\n return $string;\n}", "function twig_raw_filter($string)\n{\n return $string;\n}", "public function slugPattern();", "public function slug(): string;", "public function slug();", "public function slug();", "public function sluggable()\n {\n return 't...
[ "0.7095691", "0.681836", "0.6521152", "0.645451", "0.63917077", "0.63917077", "0.61965716", "0.61899906", "0.6089282", "0.6077197", "0.606477", "0.6022422", "0.6022422", "0.6022422", "0.6022422", "0.60057706", "0.60047704", "0.59801406", "0.5942131", "0.5916942", "0.589463", ...
0.0
-1
Title filter for twig templates
public function titleFilter($value) { return Strings::formatForTitle($value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function twig_title_string_filter(Twig_Environment $env, $string)\n {\n return ucwords(strtolower($string));\n }", "function _block_template_render_title_tag()\n {\n }", "function _wp_render_title_tag()\n {\n }", "function conure_filter_wp_title( $title ){\n\treturn $title . esc_attr...
[ "0.6988802", "0.6949313", "0.69462824", "0.67185676", "0.67180306", "0.67174226", "0.6642708", "0.6589577", "0.6546351", "0.6519805", "0.651563", "0.651563", "0.651563", "0.651563", "0.651563", "0.651563", "0.651563", "0.651563", "0.651563", "0.651563", "0.651563", "0.65156...
0.60745007
78
asset visioning filter for twig templates
public function autoVersionFilter($value) { $autoVersion = new AutoVersion(env('DOCUMENT_ROOT')); return $autoVersion->file($value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function twig_raw_filter($string)\n{\n return $string;\n}", "function twig_safe_filter($string)\n{\n return $string;\n}", "private function setup_filters() {\n add_filter( 'timber/twig', function( $twig ) {\n\n // ped_icon()\n $twig->addFunction( new \\Twig_SimpleFunction( PEDE...
[ "0.624124", "0.61871594", "0.6012887", "0.5906205", "0.58823305", "0.58775187", "0.58203185", "0.57720083", "0.5765488", "0.57581127", "0.56353873", "0.556471", "0.556471", "0.556471", "0.5471461", "0.5469218", "0.545421", "0.543704", "0.5433962", "0.5419945", "0.5384254", ...
0.0
-1
Get Gigazone info block
public function getGigazoneInfo($attributes) { $attr = shortcode_atts(array( 'wrap_tag' => 'div', 'wrap_class' => 'gigazone-info', ), $attributes); wp_enqueue_style('gigazone-info', get_bloginfo('stylesheet_directory') . '/css/gigazone.css'); return $this->ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBlockInfo();", "function groom_block_info()\n{\n $blocks['groom_calendar_standard'] = array(\n 'info' => t('Calendrier Groom - Standard'),\n );\n $blocks['groom_calendar_solo'] = array(\n 'info' => t('Calendrier Groom - Solo'),\n );\n $blocks['groom_calendar_vip'] ...
[ "0.7077036", "0.64321584", "0.63295966", "0.62422055", "0.62365973", "0.6216665", "0.6216665", "0.61927336", "0.61782676", "0.6176385", "0.6061429", "0.60334307", "0.60310966", "0.60021585", "0.60021585", "0.5957673", "0.594172", "0.59319556", "0.5895099", "0.5895099", "0.589...
0.6316966
3
Form Fields short code For generating a form from short code values Example: [contactus new_line="," delimiter="|" questions="Your Name,Your Email|email" headings="A title prior to Your Name Field|yourname" inputs="yourname|name"]This is the form description[/contactus] In this example: The tag is "contactus", which wi...
public function formFieldsShortCode($attributes, $content, $tag) { /** @var string $questions */ /** @var string $special_questions */ /** @var string $new_line */ /** @var string $delimiter */ /** @var string $inputs */ /** @var string $headings */ $defaults ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function formShort()\n {\n $form = new Form(new Category);\n\n $form->tab('Настройки', function($form){\n $form->display('id');\n $form->alias('alias','Алиас');\n $form->text('name','Название');\n });\n $form->tab('SEO', function($form){\n ...
[ "0.64892805", "0.6223353", "0.6174602", "0.6160791", "0.6129121", "0.59559196", "0.5926511", "0.5884824", "0.5873213", "0.5849319", "0.58040047", "0.574726", "0.5735506", "0.57145536", "0.5705095", "0.5690671", "0.56738734", "0.56662333", "0.56560475", "0.5653904", "0.5645139...
0.7102121
0
Parse scv values and add them to view context
private function parseCsv(&$context, $list, $key, $delimiter = "|", $newLine = ",") { try { if (!is_array($list) && strlen($list) > 0) { $list = str_replace($newLine, "\r\n", $list); $csv = Reader::createFromString($list); $csv->setDelimiter($deli...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getViewVars();", "public function getViewVars();", "public function onTwigSiteVariables()\n {\n }", "function setContext( )\n\t{\n\t\t$args = new safe_args();\n\t\t$args->set('name', \tREQUIRED, 'string');\n\t\t$args->set('value', REQUIRED, 'any');\t\t\n\t\t$args = $args->get(func_get_a...
[ "0.50243545", "0.50243545", "0.50173795", "0.48855525", "0.47947076", "0.4750203", "0.47338724", "0.47316697", "0.4728217", "0.47142047", "0.46994922", "0.46594214", "0.4632845", "0.4627187", "0.46226275", "0.46197537", "0.4597984", "0.4597542", "0.4591438", "0.45863324", "0....
0.0
-1
Get image shortcode Get image by id, usage [getimage 12345] This will output the image with height and width attributes and class of getimage
public function getMediaImageShortCode($attributes, $content, $tag) { if ($attributes) { $image = wp_get_attachment_image_src($attributes[0], ''); return '<!-- '. $content .' --><img src="' . $image[0] . '" width="' . $image[1] . '" height="' . $image[2] . '" class="' . $tag . '" />'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getImage( $post_id ) {}", "public function getImage($id)\n\t{\n\t\t$object = Image::read($id);\n\t\t\n\t\tif (!$object) {\n\t\t\treturn $this->error(404);\n\t\t}\n\t\t\n\t\t$response = Api::transform($object);\n\n\t\treturn $this->response($response, 'image');\n\t}", "public function showImageF...
[ "0.7104804", "0.6935665", "0.6839103", "0.67598784", "0.6744578", "0.6686752", "0.6667791", "0.6666223", "0.66611093", "0.66611093", "0.66611093", "0.66611093", "0.66453236", "0.6640188", "0.661659", "0.6579652", "0.6553719", "0.65091443", "0.6463857", "0.6458857", "0.6424969...
0.0
-1
Get environment var by short key usage: [env APP_ENV] will get the APP_ENV environment variable and return it
public function getEnvShortCode($attributes) { if ($attributes) { return env($attributes[0], $attributes[0]); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function env($key = null)\n{\n if (!isset($GLOBALS['configs']))\n $GLOBALS['configs'] = json_decode(file_get_contents($GLOBALS['config_path'] . DIRECTORY_SEPARATOR . 'env.json'));\n\n if (!is_null($key) && isset($GLOBALS['configs']->$key))\n return $GLOBALS['configs']->$key;\n elseif (is_nul...
[ "0.72921985", "0.7256407", "0.7096181", "0.7038018", "0.69798934", "0.6937763", "0.69366926", "0.69218016", "0.6919505", "0.6861253", "0.68130076", "0.68105924", "0.6783765", "0.67084414", "0.6689476", "0.66790086", "0.66522956", "0.66488606", "0.6618874", "0.65932304", "0.65...
0.615748
58
Execute the console command.
public function handle() { //dd(QueueWorker::listActiveQueueWorkers()); $urlPattern = 'http://www1.vinci.com.br/assets/website/images/wine_seals/decanter%s'; exec('ls -la public/assets/website/images/wine_seals/decanter | grep .png', $output); $lines = collect($output); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function handle()\n {\n\t\t$this->info('league fetching ..');\n $object = new XmlFeed();\n\t\t$object->fetchLeague($this->argument('sports_id'));\n\t\t$this->info('league saved');\n }", "public function handle()\n {\n //get us the Converter class instance and call the convert() meth...
[ "0.6469962", "0.6463639", "0.64271367", "0.635053", "0.63190264", "0.62747604", "0.6261977", "0.6261908", "0.6235821", "0.62248456", "0.62217945", "0.6214421", "0.6193356", "0.61916095", "0.6183878", "0.6177804", "0.61763877", "0.6172579", "0.61497146", "0.6148907", "0.614841...
0.0
-1
Astronomy Picture of the Day
public function astronomy(): RequestResponse { return static::send('astronomy'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function pictures_erotica_anime()\n\t{\n\t\tif (preg_match('/(.*)\\s+-\\s+\\d+\\s+of\\s+\\d+\\s+-\\s+yEnc\\s+\".*\"/i', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t...
[ "0.59292287", "0.5619393", "0.55596745", "0.5508537", "0.5503939", "0.5495754", "0.54593724", "0.54593724", "0.5451625", "0.53893644", "0.53775597", "0.53613424", "0.5355737", "0.53093463", "0.5298351", "0.527316", "0.52683204", "0.5257538", "0.52479964", "0.52401066", "0.523...
0.0
-1
__construct an example of how to access settings variable and its values.
public function pluginReadSettingsPage() { $this->getOptions(); global $rundizable_wp_features_optname; $output['rundizable_wp_features_optname'] = $rundizable_wp_features_optname; $Loader = new \RundizableWpFeatures\App\Libraries\Loader(); $Loader->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct($settings='') \n\t{\t\n\t\t$this->settings = $this->_settings(); \n\t}", "public function __construct()\n {\n $this->settings = new Settings();\n }", "public function __construct()\n {\n $this->settings = new Settings();\n }", "public function __construct...
[ "0.7668059", "0.76312965", "0.76312965", "0.76312965", "0.7488203", "0.74873394", "0.7392064", "0.7227838", "0.7144004", "0.70597947", "0.70490205", "0.7039332", "0.7037621", "0.7014021", "0.70105183", "0.6957057", "0.6932968", "0.6888244", "0.68772376", "0.68737733", "0.6839...
0.0
-1
pluginReadSettingsPage setup settings menu to go to settings page.
public function pluginSettingsMenu() { $hook_suffix = add_options_page(__('Rundizable WP Features', 'rundizable-wp-features'), __('Rundizable WP Features', 'rundizable-wp-features'), 'manage_options', 'rundizable-wp-features-settings', [$this, 'pluginSettingsPage']); add_action('load-' ....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function pluginReadSettingsPage()\n {\n $this->getOptions();\n global $rundizable_wp_features_optname;\n\n $output['rundizable_wp_features_optname'] = $rundizable_wp_features_optname;\n\n $Loader = new \\RundizableWpFeatures\\App\\Libraries\\Loader();\n ...
[ "0.7682864", "0.7621314", "0.7515705", "0.7485657", "0.7411578", "0.73668146", "0.73350513", "0.72660524", "0.72298187", "0.7172007", "0.71311784", "0.7124491", "0.71132743", "0.7112662", "0.7100454", "0.7099325", "0.70944405", "0.70851076", "0.7076803", "0.70503736", "0.7037...
0.7602575
2
pluginSettingsMenu display plugin settings page.
public function pluginSettingsPage() { // check permission. if (!current_user_can('manage_options')) { wp_die(__('You do not have permission to access this page.')); } // load config values to get settings config file. $loader = new \R...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function adminPluginOptionsPage()\n {\n echo $this->_loadView('admin-settings-page');\n }", "public function display_plugin_admin_page() {\n\t\t\tinclude_once( 'views/settings-page.php' );\n\t\t}", "function settings_page() { include($this->plugin_basename . '/core/admin/set...
[ "0.83143544", "0.81853884", "0.8106283", "0.80023885", "0.7971842", "0.7772082", "0.77567124", "0.76956517", "0.7680267", "0.76270235", "0.7621555", "0.759079", "0.7563021", "0.7514661", "0.748535", "0.7471654", "0.7452345", "0.737396", "0.7361573", "0.7333383", "0.7333381", ...
0.7446709
17
registerHooks enqueue scripts and styles here.
public function registerScripts() { // font awesome. choose css fonts instead of svg, see more at https://fontawesome.com/how-to-use/on-the-web/other-topics/performance // to name font awesome handle as `plugin-name-prefix-font-awesome5` is to prevent conflict with other plugins that may...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function enqueue_scripts() {\n\t\t$this->styles();\n\t\t$this->scripts();\n\t}", "static function enqueue_scripts(){\n\t\tself::include_css();\n\t\tself::include_js();\n\t}", "public function register_scripts()\n {\n wp_register_style(\n 'fau-oembed-style',\n plugins_url(...
[ "0.7879211", "0.77769756", "0.77137274", "0.76955533", "0.7675727", "0.76540893", "0.76540893", "0.7641589", "0.7632634", "0.7595963", "0.7588584", "0.7582734", "0.75730586", "0.75711054", "0.75661224", "0.75432247", "0.75389075", "0.7535946", "0.7526404", "0.7516767", "0.751...
0.75476325
15
Gets query for [[Semester1Students]].
public function getSemester1Students() { return $this->hasMany(Semester1Students::className(), ['semester' => 'semester_id']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_students_list(){\n return $this->n->get_list_from_db();\n }", "private function getStudent(){\n\t\t$spathSQLSelect = $this->GLOBALS_INI[\"PATHS\"][\"PATH_HOME\"] . $this->GLOBALS_INI[\"PATHS\"][\"PATH_MODEL\"] . \"select_stagiaire.sql\";\n\n\t\t$this->result[\"liste_stagiaire\"] = $...
[ "0.62867033", "0.6280684", "0.6278451", "0.61720765", "0.61219054", "0.6096722", "0.6049759", "0.6027512", "0.59634036", "0.59612", "0.59146976", "0.5894346", "0.5893825", "0.58521855", "0.58391875", "0.5798891", "0.5762266", "0.57482725", "0.574648", "0.56992376", "0.5686049...
0.7380451
0
Gets query for [[Semester2Students]].
public function getSemester2Students() { return $this->hasMany(Semester2Students::className(), ['semester' => 'semester_id']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_students_list(){\n return $this->n->get_list_from_db();\n }", "public function getSemester1Students()\n {\n return $this->hasMany(Semester1Students::className(), ['semester' => 'semester_id']);\n }", "public function getStudentsQueryForGroup($group_id) {\n\t\treturn S...
[ "0.6541426", "0.6454452", "0.6315013", "0.626638", "0.6251841", "0.6160394", "0.615403", "0.6152344", "0.60128516", "0.59953856", "0.5966813", "0.5947472", "0.59391993", "0.58563966", "0.5846611", "0.58049464", "0.5768089", "0.57642883", "0.5752834", "0.57449186", "0.5744714"...
0.7215253
0
module should throw Exception in case of merge is not possible
protected function merge(User $target, User $source) { $event = new Am_Event(Am_Event::USER_BEFORE_MERGE, array( 'target' => $target, 'source' => $source )); $this->getDi()->hook->call(Am_Event::USER_BEFORE_MERGE, $event); $this->getDi()->db->query('UPDATE ?_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function merge() {}", "public function testMerge() {\n $config1 = new Config(array(\n 'foo' => 123,\n 'bar' => 456,\n 'baz' => array(\n 1,2,3\n )\n ));\n \n $config2 = new Config(array(\n 'foo' => false,\n ...
[ "0.65696573", "0.6101994", "0.6071193", "0.5654358", "0.56248826", "0.558469", "0.5342923", "0.5323836", "0.5303574", "0.5288292", "0.5269426", "0.5192787", "0.5181214", "0.5146717", "0.51464766", "0.5107453", "0.50885653", "0.5087648", "0.505632", "0.50507", "0.50394744", ...
0.0
-1
Renders the container for the pagination. The %pages% placeholder will be replaced by the rendering of pages.
public function container(): string;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function render()\n {\n if (!$this->hasPages()) {\n return '';\n }\n\n $data = [\n 'current' => $this->paginator->currentPage(),\n 'previous' => $this->getPrevious(),\n 'links' => $this->getLinks(),\n 'next' => $this->get...
[ "0.6706351", "0.6679102", "0.63688225", "0.632073", "0.6236926", "0.6229082", "0.6060398", "0.6033004", "0.5996919", "0.598814", "0.59765697", "0.596321", "0.5944703", "0.5944703", "0.5928813", "0.59102273", "0.588137", "0.5876781", "0.58454365", "0.5843226", "0.5833557", "...
0.0
-1
Renders a given page.
public function page(int $page): string;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract function render_page();", "public function render_page() {\n\t\t$this->render_template();\n\t}", "function &renderPage( $page=0 )\r\n {\r\n $generator =& $this->generator();\r\n// print( \"Using renderer: \" . $this->RendererClass . \"<br>\");\r\n \r\n return $gene...
[ "0.84006464", "0.792713", "0.7652883", "0.7572479", "0.7572479", "0.7419128", "0.73836356", "0.72348803", "0.72272897", "0.72177523", "0.7041074", "0.69246083", "0.6875075", "0.68660414", "0.67697215", "0.6751687", "0.6666794", "0.6662496", "0.6632922", "0.6549923", "0.644248...
0.0
-1
Renders a given page with a specified text.
public function pageWithText(int $page, string $text, ?string $rel = null): string;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function pageWithText($page, $text)\n {\n return '';\n }", "abstract function render_page();", "abstract protected function render_page_content(): void;", "function page_text($x, $y, $text, $font, $size, $color = array(0,0,0), $adjust = 0, $angle = 0) {\n $this->_pdf->close_object();\n...
[ "0.7520243", "0.7129664", "0.6757251", "0.6721803", "0.6656788", "0.6588872", "0.65599686", "0.6388354", "0.6180271", "0.6180271", "0.6137905", "0.61244273", "0.61080456", "0.6049462", "0.6026787", "0.5999219", "0.5977856", "0.5957646", "0.5874645", "0.5857281", "0.5826485", ...
0.7041282
2
Renders the disabled state of the previous page.
public function previousDisabled(): string;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function previousEnabled(int $page): string;", "protected function renderBackButton() {}", "public function previousPage()\n\t{\n\t\treturn $this->getIsPreviousPageAvailable() ? parent::previousPage() : false;\n\t}", "abstract protected function setPreviousPage();", "public function PrevPage()\n {...
[ "0.68244255", "0.64455944", "0.63269436", "0.62881595", "0.62689936", "0.6242096", "0.62346256", "0.60750604", "0.6068533", "0.60115576", "0.6002718", "0.5973086", "0.5953988", "0.5897109", "0.58629537", "0.5842836", "0.58339876", "0.58276683", "0.58224434", "0.57360744", "0....
0.67590404
1
Renders the enabled state of the previous page.
public function previousEnabled(int $page): string;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function previousDisabled(): string;", "public function previousPage()\n\t{\n\t\treturn $this->getIsPreviousPageAvailable() ? parent::previousPage() : false;\n\t}", "protected function renderBackButton() {}", "abstract protected function setPreviousPage();", "public function has_previous_page()\n ...
[ "0.6558906", "0.6551128", "0.64167285", "0.64136356", "0.6360696", "0.6314765", "0.625042", "0.62221706", "0.62114924", "0.6027289", "0.6026325", "0.60040456", "0.5959689", "0.5958086", "0.593562", "0.5927574", "0.58857656", "0.5863499", "0.58373964", "0.5833628", "0.583297",...
0.72105694
0
Renders the disabled state of the next page.
public function nextDisabled(): string;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function nextEnabled(int $page): string;", "protected function renderDisabled()\n {\n return '';\n }", "function disabled($disabled, $current = \\true, $display = \\true)\n {\n }", "public function override_next_page() {\n return false;\n }", "private function next() {\n...
[ "0.61242867", "0.6116207", "0.6025298", "0.5923537", "0.5874592", "0.58318937", "0.5762266", "0.57410985", "0.569656", "0.56649756", "0.56623626", "0.56557107", "0.56520367", "0.56520367", "0.5645975", "0.56258917", "0.5554265", "0.552206", "0.5459254", "0.53737366", "0.53595...
0.63642573
0
Renders the enabled state of the next page.
public function nextEnabled(int $page): string;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function shouldRenderNextButton() {}", "private function next() {\n if ($this->currentPage < $this->totalPage) {\n print '<li><a href=\"' . $this->url . '&page=' . ($this->currentPage + 1) . '\">&gt;</a></li>';\n }\n }", "public function nextPage()\n\t{\n\t\treturn $this->getIsNextPageAvaila...
[ "0.6432452", "0.63233167", "0.616049", "0.5757782", "0.5720771", "0.56275195", "0.56198066", "0.5576079", "0.5574223", "0.55279475", "0.5456375", "0.5435921", "0.54349506", "0.5426101", "0.5402528", "0.5389232", "0.53891844", "0.5380763", "0.53385174", "0.533479", "0.5329211"...
0.67516303
0
Renders the first page.
public function first(): string;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function firstPage()\n\t\t{\n\t\t\t$this->currentPage = 1;\n\t\t}", "abstract protected function renderFirstView();", "private function print_first_page_link() {\n\n\t\t$this->print_anchor(\n\t\t\t$this->get_paged_url( 1 ),\n\t\t\t__( 'Go to the first page', 'multilingual-press' ),\n\t\t\t'first-page' . $this-...
[ "0.7268778", "0.7226312", "0.69739914", "0.69664896", "0.69664896", "0.6820278", "0.6717284", "0.6671584", "0.6606608", "0.6518828", "0.650311", "0.64882547", "0.6438076", "0.6400799", "0.6392741", "0.63681453", "0.6338076", "0.6333475", "0.6276505", "0.6247146", "0.6246716",...
0.0
-1
Renders the last page.
public function last(int $page): string;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function last()\n {\n $last_posts = $this->posts_manager->listLasts(10);\n $this->render('last-posts', ['head'=>['title'=>'Les derniers articles', 'meta_description'=>''], 'page'=>'derniers-articles', 'last_posts'=>$last_posts]);\n }", "function LastPage ( )\n{\n if ( $this->_need_ref...
[ "0.75584716", "0.75425124", "0.7542217", "0.7482701", "0.7415272", "0.70612085", "0.70417297", "0.70242786", "0.69810057", "0.6734272", "0.6734272", "0.6734272", "0.66631603", "0.6594954", "0.65419143", "0.6526879", "0.6512925", "0.6415272", "0.6405151", "0.63311845", "0.6330...
0.6499844
17
Renders the current page.
public function current(int $page): string;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function render() {\n\t\t$this->render_page_content();\n\t}", "public function renderPage()\r\n {\r\n $this->setMasterContent();\r\n // Echo the page immediately.\r\n $this->_htmlpage->renderPage();\r\n }", "public function renderPage()\r\n {\r\n $this->setMasterCont...
[ "0.7722776", "0.75737643", "0.75737643", "0.74861497", "0.7220969", "0.7091906", "0.68397176", "0.6829645", "0.6771551", "0.67283165", "0.66548705", "0.6622094", "0.6620352", "0.6619616", "0.6588726", "0.65656817", "0.6541783", "0.652677", "0.6526582", "0.65129566", "0.650632...
0.0
-1
Renders the separator between pages.
public function separator(): string;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function horizon_separator() {\n\t\tget_template_part('inc/partials/homepage', 'separator');\n\t}", "function separator() {\n echo \"<br>\\n<hr>\";\n }", "private function ToolButtonSeparator()\r\n\t\t{\r\n\t\t\techo \"<td align = 'center' width = '5px'>\";\r\n\t\t\techo $this->img(\"$this->t...
[ "0.7091353", "0.68090755", "0.64235157", "0.63818955", "0.62820655", "0.62691295", "0.6115944", "0.6110446", "0.6082481", "0.6027026", "0.6025172", "0.59120035", "0.59115976", "0.5887957", "0.58818936", "0.58655804", "0.578316", "0.5752331", "0.5742026", "0.5701355", "0.56799...
0.5481712
29
__construct Create a new Powerstack\Plugins\Memcached object Configuration: app/config.yml: plugins: memcached: servers: [Memcached servers (host:port[,host:port])]
function __construct() { $conf = config('plugins'); if (!isset($conf->memcached)) { $this->conf = (object) array( 'servers' => '127.0.0.1:11211', ); } else { $this->conf = $conf->memcached; } $this->memcached = new \Memcached(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct() {\n include Config::create()->load('cache');\n $this->config = $cache;\n $this->mc = new Memcached();\n foreach ($this->config['server'] as $s) {\n $this->mc->addServer($s['host'], $s['port']);\n }\n }", "public function __construct()...
[ "0.76066124", "0.7481707", "0.73881114", "0.72546834", "0.71594465", "0.6974043", "0.68793637", "0.6800693", "0.6755339", "0.6690749", "0.66044253", "0.6602064", "0.65051615", "0.64911413", "0.64596003", "0.6456763", "0.64005554", "0.63803977", "0.6373554", "0.6355627", "0.63...
0.8377457
0
Add Server Add a server to the server pool
function addServer($host, $port, $weight=0) { return $this->memcached->addServer($host, $port, $weight); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addServer($host, $port, $weight = 0) {}", "public function add(PriorityServer $server)\n\t{\n\t\t$this->server_list->append($server);\n\t}", "protected function addServer(Server $server)\n\t{\n\t\t// Check if there is a URI clash\n\t\t/* @var $existingServer Server */\n\t\tforeach ($this->serve...
[ "0.6931117", "0.660592", "0.6529971", "0.63796407", "0.6257594", "0.62086254", "0.6118399", "0.61155283", "0.6085547", "0.59958476", "0.59695846", "0.5834615", "0.58077455", "0.5747896", "0.57404834", "0.5707721", "0.56446135", "0.5642727", "0.5565131", "0.5558785", "0.550457...
0.6247983
5
Add Servers Add multiple servers to the pool
function addServers($servers) { return $this->memcached->addServers(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addServers(Array $servers) {\n\t\t\n\t\t/* go through each server */\n\t\tforeach ($servers as $server) {\n\t\t\t\n\t\t\t/* skip if address is missing */\n\t\t\tif (!isset($server[0])) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t/* add this server */\n\t\t\t$this->addServer($server[0], isset($server[1]) ...
[ "0.70336735", "0.6791217", "0.64767593", "0.6223394", "0.60119027", "0.5996613", "0.5981831", "0.5955893", "0.59548634", "0.59018725", "0.58974683", "0.57888085", "0.57670546", "0.5724056", "0.57238764", "0.5692051", "0.56763506", "0.5642057", "0.5618694", "0.5602624", "0.557...
0.6861925
1
Add Add an item to memcached
function add($key, $value, $expire=0) { return $this->memcached->add($key, $value, $expire); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add($item);", "public function add($item);", "function object_cache_add($key, $data, $flag = '', $expire = 0) {\n\tglobal $ts_object_cache;\n\n\treturn $ts_object_cache->add($key, $data, $flag, $expire);\n}", "function append($key, $value) {\n return $this->memcached->append($key, $val...
[ "0.69213194", "0.69213194", "0.6738512", "0.6688961", "0.65744686", "0.6517843", "0.6498053", "0.6496521", "0.64747566", "0.6471837", "0.64649683", "0.64649683", "0.64479023", "0.6439539", "0.6396897", "0.63806367", "0.63104117", "0.63025844", "0.6294284", "0.6280999", "0.628...
0.6541563
5
Append Append a string to a item already stored
function append($key, $value) { return $this->memcached->append($key, $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function append($value)\n {\n $this->items[] = $value;\n }", "function addString($string_to_add){\n\t\tsettype($string_to_add,\"string\");\n\t\tif(strlen($string_to_add)>0){\n\t\t\t$this->_Items[] = new StringBufferItem($string_to_add);\n\t\t}\n\t}", "function add($str) {\n\t $this->xml .=...
[ "0.6764614", "0.66936725", "0.66516346", "0.6606554", "0.6585149", "0.65423286", "0.63849145", "0.63450456", "0.63356197", "0.63048935", "0.62430334", "0.61784333", "0.615957", "0.6152386", "0.6120636", "0.61172867", "0.61170846", "0.61045814", "0.608941", "0.6072969", "0.607...
0.5798477
41
Delete Delete an item from memcached
function delete($key, $time=0) { return $this->memcached->delete($key, $time); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteAnItem()\n {\n $keys = [\n 'cache-bin:user_1', 'cache-bin:article_1212'\n ];\n $key = 'article_*';\n $server = $this->getMemcachedMock(['getAllKeys', 'delete']);\n $server->expects($this->once())\n ->method('getAllKeys')\n ...
[ "0.76797426", "0.73623836", "0.7322962", "0.71541", "0.70508146", "0.7002791", "0.69945914", "0.69323003", "0.689129", "0.68489057", "0.6827566", "0.6827566", "0.6827566", "0.6804698", "0.6763596", "0.67594", "0.67594", "0.67594", "0.67594", "0.67594", "0.67594", "0.67594",...
0.6896816
8
Delete Multi Delete multiple items from memcached
function deleteMulti($keys, $time=0) { return $this->memcached->deleteMulti($keys, $time); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wp_cache_delete_multiple(array $keys, $group = '')\n {\n }", "function multi_delete () {\n\t\t$ids_to_delete = array();\n\t\t// Prepare ids to delete\n\t\tforeach ((array)$_POST[\"items\"] as $_cur_id) {\n\t\t\tif (empty($_cur_id)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$ids_to_delete[$_cur_id] = $_...
[ "0.74532646", "0.7011111", "0.6802612", "0.67139", "0.67039067", "0.66248745", "0.6564758", "0.6493527", "0.64826375", "0.647363", "0.6472628", "0.6430388", "0.6361711", "0.6347832", "0.63463926", "0.6343705", "0.63312817", "0.63260835", "0.6324101", "0.63216925", "0.63177854...
0.72221875
1