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
Escapes characters that work as wildcard characters in a LIKE pattern.
public function escapeLike($string);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function escapeLikePattern($text){\r\n\t\t\t$text = str_replace('\\\\', '', $text);//apparently a backslash is ignored when using the LIKE operator\r\n\t\t\t$text = self::escape($text);\r\n\t\t\tif($text !==false){\r\n\t\t\t\t$text = str_replace('%', '\\%', $text);\r\n\t\t\t\t$text = str_replace('_',...
[ "0.7615724", "0.6679104", "0.64715123", "0.6388895", "0.63864124", "0.6353176", "0.6335272", "0.631977", "0.6205899", "0.6171898", "0.6113325", "0.60980946", "0.6023556", "0.5989543", "0.5975944", "0.5967675", "0.5912313", "0.58984905", "0.57821065", "0.577939", "0.576991", ...
0.72575366
1
Escapes a field name string. Force all field names to be strictly alphanumericplusunderscore. For some database drivers, it may also wrap the field name in databasespecific escape characters.
public function escapeField($string);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function escapeField(string $field)\n {\n $field = trim($field);\n\n // do not backtick if a MySQL Function is called\n if (stripos($field, '(') !== false && stripos($field, ')') !== false) {\n return $field;\n }\n\n // do not backtick if a comma ', ' exis...
[ "0.66678315", "0.63153297", "0.63135165", "0.62421423", "0.62020165", "0.598713", "0.59577703", "0.5862742", "0.5858427", "0.58363247", "0.57445717", "0.5736223", "0.56559825", "0.56531894", "0.5618645", "0.56140554", "0.5601697", "0.5594234", "0.5554159", "0.5548157", "0.554...
0.7223695
0
Compiles and returns an associative array of the arguments for this prepared statement.
public function getArguments(PlaceholderInterface $queryPlaceholder = NULL);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function compile()\r\n\t{\r\n\t\t// We assume that if the column is compiled, its loaded.\r\n\t\t$this->_loaded = TRUE;\r\n\t\t\r\n\t\t// Bring everything together and return the array\r\n\t\treturn array(\r\n\t\t\t'name' => $this->name,\r\n\t\t\t'datatype' => array($this->datatype => $this->_compile_parame...
[ "0.68336827", "0.67588377", "0.6099495", "0.59512085", "0.5750824", "0.56238097", "0.56099963", "0.5569485", "0.5554021", "0.5526451", "0.5464415", "0.544518", "0.5402852", "0.5386359", "0.5385195", "0.5363937", "0.5353804", "0.5352009", "0.53272957", "0.53004515", "0.5267564...
0.0
-1
/ Query building operations Sets this query to be DISTINCT.
public function distinct($distinct = TRUE);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function distinct(){\r\n\r\n if(starts_with($this->queryString, 'SELECT')){\r\n\r\n $this->queryString = str_replace(' <;distinct>', ' DISTINCT', $this->queryString);\r\n \r\n } \r\n return $this;\r\n }", "public function distinct()\r\n {\r\n $th...
[ "0.73801637", "0.68905646", "0.66596866", "0.65796715", "0.63142896", "0.625318", "0.6240564", "0.62214226", "0.6062473", "0.60508835", "0.59552556", "0.5913799", "0.5882746", "0.58796746", "0.5861371", "0.57754207", "0.5745056", "0.5741512", "0.5731788", "0.5678753", "0.5677...
0.5750942
16
Adds a field to the list to be SELECTed.
public function addField($table_alias, $field, $alias = NULL);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addField();", "public function addField($field) {\n\t\t$this->fields[] = $field;\n\t}", "public function add_field(form_item $field) {\n $this->_fields[] = $field;\n }", "public function addField(Field $field);", "public function addField(Field $field);", "function addToField(\\...
[ "0.70189977", "0.68114954", "0.6788346", "0.6780603", "0.6780603", "0.67425394", "0.6603159", "0.65664744", "0.6362792", "0.63491416", "0.63491416", "0.6274043", "0.6199806", "0.614157", "0.61019003", "0.6096005", "0.6093581", "0.60926235", "0.60800743", "0.60668844", "0.6025...
0.5972985
22
Add multiple fields from the same table to be SELECTed. This method does not return the aliases set for the passed fields. In the majority of cases that is not a problem, as the alias will be the field name. However, if you do need to know the alias you can call getFields() and examine the result to determine what alias was created. Alternatively, simply use addField() for the few fields you care about and this method for the rest.
public function fields($table_alias, array $fields = []);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fields($alias, $fields = array('*'))\t{\n\n\t\tif (!is_string($alias) || empty($alias)) {\n\t\t\tthrow new InvalidArgumentException('Invalid table alias.');\n\t\t}\n\t\tif (!is_array($fields) || empty($fields)) {\n\t\t\tthrow new InvalidArgumentException('Invalid fields list.');\n\t\t}\n\n\t\tforea...
[ "0.64746785", "0.63453346", "0.6126913", "0.6121657", "0.5990967", "0.5975487", "0.5907302", "0.59042746", "0.5858502", "0.5830783", "0.5812014", "0.5801033", "0.57887346", "0.5742645", "0.5711914", "0.5651747", "0.5630977", "0.5619376", "0.55957603", "0.5575508", "0.55608964...
0.6792545
0
Adds an expression to the list of "fields" to be SELECTed. An expression can be any arbitrary string that is valid SQL. That includes various functions, which may in some cases be databasedependent. This method makes no effort to correct for databasespecific functions.
public function addExpression($expression, $alias = NULL, $arguments = []);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testBuildSelectWithAddFieldExpression()\n {\n $query = $this->getQuery()\n ->addField(Expression::apishka('NOW()'), 'current_time')\n ;\n\n $this->assertSame(\n '*, NOW() AS current_time',\n $query->buildSelectFields()\n );\n }", ...
[ "0.6236182", "0.57708466", "0.57471234", "0.57445025", "0.56484216", "0.56343627", "0.56066155", "0.56058186", "0.55608624", "0.55605835", "0.55376655", "0.5525016", "0.5460511", "0.54307705", "0.5401793", "0.5372282", "0.53721946", "0.53477025", "0.532767", "0.531808", "0.53...
0.48957393
69
Default Join against another table in the database. This method is a convenience method for innerJoin().
public function join($table, $alias = NULL, $condition = NULL, $arguments = []);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function innerJoin($table);", "public function join($table, $on, $field = null, $comparitor = null);", "public function join($table, $key, ?string $operator = null, $foreign = null, string $type = self::INNER_JOIN);", "public function join($table, $one, $operator = null, $two = null, $type = 'inner', ...
[ "0.7320104", "0.689887", "0.68611526", "0.66816366", "0.6673843", "0.66419625", "0.66364264", "0.6623377", "0.6588677", "0.6577466", "0.65542626", "0.6542131", "0.6534982", "0.6523109", "0.65183616", "0.6515419", "0.649044", "0.6484886", "0.6457852", "0.63942474", "0.6372787"...
0.69065106
1
Inner Join against another table in the database.
public function innerJoin($table, $alias = NULL, $condition = NULL, $arguments = []);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function innerJoin($table);", "public function innerJoin($table, $conditions = []);", "final public static function innerJoin(string $table, string $primaryKey, string $foreignKey)\n {\n //inicia o select\n self::$query .= \" INNER JOIN \" . $table . \" ON $table.$primaryKey = \" . self...
[ "0.7855616", "0.69143456", "0.6906889", "0.6693231", "0.6540781", "0.6399488", "0.6365789", "0.62832123", "0.61936826", "0.6154552", "0.61103463", "0.61045766", "0.6093693", "0.6091997", "0.607035", "0.6068486", "0.60190237", "0.59645736", "0.5866002", "0.5849044", "0.5828236...
0.696181
1
Left Outer Join against another table in the database.
public function leftJoin($table, $alias = NULL, $condition = NULL, $arguments = []);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function leftOuterJoin($table);", "public function fullOuterJoin($table);", "public function leftJoin($table, $conditions = []);", "public function leftJoin($table, $key, ?string $operator = null, $foreign = null);", "public static function leftJoin($source, $on, $alias = null, array $bindings = [])...
[ "0.7984447", "0.70945233", "0.6838962", "0.6714497", "0.6494691", "0.641035", "0.6347749", "0.624795", "0.62446976", "0.61500067", "0.6140522", "0.61082", "0.60867786", "0.60806125", "0.5950938", "0.5945585", "0.59404397", "0.5932984", "0.5900534", "0.5809094", "0.57769877", ...
0.65748876
4
Join against another table in the database. This method does the "hard" work of queuing up a table to be joined against. In some cases, that may include dipping into the Schema API to find the necessary fields on which to join.
public function addJoin($type, $table, $alias = NULL, $condition = NULL, $arguments = []);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function joinQuery()\n {\n }", "public function join($table, $on, $field = null, $comparitor = null);", "public function joinOn($tableJoin, $columnJoin, $tableOn, $columnOn);", "public function join($table, $alias = NULL, $condition = NULL, $arguments = []);", "public function join($table, $k...
[ "0.6536646", "0.65148723", "0.64792514", "0.6207479", "0.6196289", "0.61650527", "0.6162351", "0.60221905", "0.60143656", "0.6003059", "0.59235084", "0.59121704", "0.5903059", "0.5890913", "0.5884956", "0.57957774", "0.5773256", "0.57500005", "0.5719613", "0.5694283", "0.5692...
0.57939756
16
Orders the result set by a given field. If called multiple times, the query will order by each specified field in the order this method is called. If the query uses DISTINCT or GROUP BY conditions, fields or expressions that are used for the order must be selected to be compatible with some databases like PostgreSQL. The PostgreSQL driver can handle simple cases automatically but it is suggested to explicitly specify them. Additionally, when ordering on an alias, the alias must be added before orderBy() is called.
public function orderBy($field, $direction = 'ASC');
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function orderBy($field) {\n\t$this->parseQuery->orderBy($field);\n }", "public function orderBy(string $field, string $direction): self;", "public function order($field, $order = 'desc');", "public function orderByAscending($field) {\n\t$this->parseQuery->orderByAscending($field);\n }", "publ...
[ "0.73414195", "0.7023737", "0.68529433", "0.65752697", "0.6446628", "0.641468", "0.6392131", "0.6306023", "0.6282514", "0.62677413", "0.61999613", "0.6189228", "0.6186102", "0.60662365", "0.60408", "0.6035906", "0.60312444", "0.6020376", "0.6008956", "0.59658694", "0.5945983"...
0.7079249
1
Orders the result set by a random value. This may be stacked with other orderBy() calls. If so, the query will order by each specified field, including this one, in the order called. Although this method may be called multiple times on the same query, doing so is not particularly useful. Note: The method used by most drivers may not scale to very large result sets. If you need to work with extremely large data sets, you may create your own database driver by subclassing off of an existing driver and implementing your own randomization mechanism. See for an example of such an alternate sorting mechanism.
public function orderRandom();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function orderRand(Varien_Db_Select $select, $field = null)\n {\n $this->_getReadAdapter()->orderRand($select, $field);\n return $this;\n }", "public function orderRand($seed = null)\n {\n $this->orderBy(NULL, $this->driver->sqlRandom($seed));\n return $this;\n }", ...
[ "0.6473308", "0.58857995", "0.55334693", "0.54911256", "0.5489703", "0.53941774", "0.5365472", "0.53504586", "0.5336028", "0.53231394", "0.5315397", "0.528806", "0.5263116", "0.52027005", "0.51631474", "0.5136113", "0.51301306", "0.5130011", "0.5097016", "0.5090266", "0.50706...
0.62790257
1
Restricts a query to a given range in the result set. If this method is called with no parameters, will remove any range directives that have been set.
public function range($start = NULL, $length = NULL);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function select_range($query, $begin = null, $end = null) {\n return UPS_SUCCESS;\n }", "public function scopeWithinRange($query, $start, $end)\n {\n return $query->whereDate('metadata_order.value', '>=', $start)\n ->whereDate('metadata_order.value', '<=', $end);\n }", "funct...
[ "0.6324292", "0.6151093", "0.5929911", "0.5901071", "0.585246", "0.58078283", "0.5777406", "0.5677549", "0.5598598", "0.55479527", "0.55420095", "0.553456", "0.55118716", "0.5505498", "0.55035865", "0.547832", "0.5477245", "0.54693055", "0.5454321", "0.53520024", "0.5329871",...
0.54157287
19
Add another Select query to UNION to this one. Union queries consist of two or more queries whose results are effectively concatenated together. Queries will be UNIONed in the order they are specified, with this object's query coming first. Duplicate columns will be discarded. All forms of UNION are supported, using the second '$type' argument. Note: All queries UNIONed together must have the same field structure, in the same order. It is up to the caller to ensure that they match properly. If they do not, an SQL syntax error will result.
public function union(SelectInterface $query, $type = '');
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addQueryToUnion() {\n if (empty($this->query)) {\n throw new \\Exception('Cannot add an empty query to union', 500);\n }\n\n $this->union[] = $this->query;\n // Reset all vars\n $this->query = '';\n $this->where = '';\n $this->sort = '';\n\n return $this;\n }", "publ...
[ "0.69111943", "0.6452777", "0.6250641", "0.60823727", "0.5732522", "0.56662065", "0.5457898", "0.5451955", "0.5384053", "0.53327525", "0.52996564", "0.52422047", "0.52264607", "0.51364875", "0.50841165", "0.50020045", "0.5000878", "0.49943078", "0.4994071", "0.49846807", "0.4...
0.7199377
0
Groups the result set by the specified field.
public function groupBy($field);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function groupby($field)\n\t\t{\n\t\t\t$this->groupby[] = $field;\n\t\t\treturn $this;\n\t\t}", "public function groupBy($field)\n {\n $this->groupBy = $field;\n return $this;\n }", "public function groupBy($field): QueryBuilderInterface\n\t{\n\t\tif ( ! is_scalar($field))\n\t\t{\n\t\t\t$newGrou...
[ "0.7004244", "0.65770024", "0.6551445", "0.65145576", "0.6369502", "0.63546884", "0.63137305", "0.6152158", "0.608925", "0.59699535", "0.5914712", "0.59047854", "0.58912283", "0.5886462", "0.58660424", "0.5859383", "0.58371377", "0.5814556", "0.5753937", "0.57474047", "0.5683...
0.7834335
1
Get the equivalent COUNT query of this query as a new query object.
public function countQuery();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCountQuery()\n {\n $query = clone $this;\n\n //reset any orders or limits previously set since don't want those for\n //a query that just counts the results.\n $query->order('', true)\n ->limit(0);\n\n //Set main column to get to \"COUNT(*)\", and...
[ "0.81277746", "0.782603", "0.77943915", "0.73987824", "0.7204776", "0.716211", "0.70869136", "0.6953441", "0.68850833", "0.67725813", "0.6721695", "0.6702764", "0.6679869", "0.66370064", "0.654595", "0.654595", "0.653327", "0.6518281", "0.6512614", "0.65089345", "0.6462946", ...
0.64651644
20
Indicates if preExecute() has already been called on that object.
public function isPrepared();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function preExecuteCheck()\n {\n return true;\n }", "public function preExecute() {\n }", "public function preExecute(){\n\n\t\n\t}", "function getPreceptor(): bool\n {\n if (!isset($this->bpreceptor) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n ...
[ "0.71530056", "0.65071213", "0.6442079", "0.5986785", "0.59794706", "0.59794706", "0.59601027", "0.5942302", "0.5933861", "0.5926664", "0.5926564", "0.5921444", "0.59166294", "0.59084684", "0.5850421", "0.58484995", "0.5839741", "0.5820644", "0.58106935", "0.57490134", "0.574...
0.0
-1
Generic preparation and validation for a SELECT query.
public function preExecute(SelectInterface $query = NULL);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function prepareSelect();", "protected function prepareSelectStatement() {}", "protected abstract function getSelectStatement();", "protected abstract function getSelectStatement();", "private function __select() {\n $from_str = $this->getFromStr();\n $field = $this->field_str...
[ "0.7798989", "0.7205433", "0.633592", "0.633592", "0.6301271", "0.6220187", "0.6168892", "0.61399484", "0.6126623", "0.60883707", "0.60615754", "0.602415", "0.60173863", "0.60116214", "0.59990126", "0.59961575", "0.59567076", "0.59567076", "0.59567076", "0.5943183", "0.592955...
0.5623271
54
Runs the query against the database.
public function execute();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run(){\n $sql = $this->sql();\n return $this->query($sql,$this->args);\n }", "public function query();", "public function query();", "public function query();", "public function query()\n {\n }", "public function query()\n {\n }", "abstract p...
[ "0.7303905", "0.72429526", "0.72429526", "0.72429526", "0.7205063", "0.7205063", "0.72020024", "0.718458", "0.71191496", "0.707435", "0.7050414", "0.70229256", "0.69604087", "0.6915769", "0.68847656", "0.6871295", "0.6816728", "0.68108255", "0.6746749", "0.6744973", "0.673240...
0.0
-1
Helper function to build most common HAVING conditional clauses. This method can take a variable number of parameters. If called with two parameters, they are taken as $field and $value with $operator having a value of IN if $value is an array and = otherwise.
public function havingCondition($field, $value = NULL, $operator = NULL);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function having(\n Closure | string $column,\n string $operator,\n Closure | float | int | string | null ...$values\n ) : static {\n return $this->addHaving('AND', $column, $operator, $values);\n }", "public function having($clause, array $params);", "public function bu...
[ "0.64402515", "0.61656153", "0.58997965", "0.5772756", "0.5764759", "0.5713066", "0.569427", "0.5676686", "0.5672715", "0.5637114", "0.56330264", "0.5619707", "0.5615368", "0.561336", "0.5597413", "0.55853784", "0.55828106", "0.5576727", "0.55762625", "0.55587834", "0.5532104...
0.6670852
0
Gets a list of all conditions in the HAVING clause. This method returns by reference. That allows alter hooks to access the data structure directly and manipulate it before it gets compiled.
public function &havingConditions();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHaving() {\n return $this->_having ?: new Predicate(Predicate::ALSO);\n }", "public function &getConditions() {\n return $this->conditions;\n }", "public function getHaving()\n\t\t{\n\t\t\treturn $this->havings;\n\t\t}", "public function having($conditions) {\n $this->...
[ "0.66103774", "0.659002", "0.65707505", "0.6563108", "0.64636767", "0.6456111", "0.6393219", "0.63529795", "0.63529795", "0.63529795", "0.63529795", "0.6327125", "0.6206203", "0.6202713", "0.6202713", "0.6190177", "0.6163314", "0.615114", "0.61052394", "0.60361916", "0.600537...
0.6714822
0
Gets a list of all values to insert into the HAVING clause.
public function havingArguments();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHaving()\n\t\t{\n\t\t\treturn $this->havings;\n\t\t}", "public function getHaving()\n {\n return $this->having;\n }", "public function getHaving() {\n return $this->_having ?: new Predicate(Predicate::ALSO);\n }", "public function getHavingParameterised(&$parameters)...
[ "0.59974545", "0.5828762", "0.58052045", "0.5748108", "0.5447974", "0.54459494", "0.5443569", "0.5405427", "0.5380105", "0.5377666", "0.536575", "0.53161865", "0.52994925", "0.5283852", "0.5227224", "0.5191971", "0.51524", "0.51405084", "0.5128575", "0.5127995", "0.51006305",...
0.0
-1
Adds an arbitrary HAVING clause to the query.
public function having($snippet, $args = []);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function having($clause, array $params);", "public function having($sql);", "public function having($having) \n {\n $this->sql .= \" HAVING \". $this->clean($having);\n return $this;\n }", "public function having(string $having);", "function having($s)\n{\n\t$this->tryModify();\n...
[ "0.74526924", "0.69209415", "0.68110424", "0.6674092", "0.6645885", "0.6578243", "0.65213406", "0.6498943", "0.6432526", "0.6360529", "0.6360331", "0.63500684", "0.6321787", "0.62960535", "0.6205678", "0.6200963", "0.61823285", "0.6181196", "0.6151645", "0.61313885", "0.60909...
0.0
-1
Compiles the HAVING clause for later retrieval.
public function havingCompile(Connection $connection);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function having($clause, array $params);", "public function having($sql);", "private function buildHaving(): void {\r\n\r\n if(count($this -> having) > 0) {\r\n\r\n $this -> query[] = 'HAVING';\r\n $this -> query[] = sprintf('(%s)', implode(' AND ', $this -> having));\r\n ...
[ "0.718122", "0.69709885", "0.6761752", "0.67044646", "0.65698767", "0.6525475", "0.6475478", "0.6412246", "0.6386801", "0.63347304", "0.63067126", "0.6270026", "0.6263461", "0.62425876", "0.6233493", "0.6220378", "0.6215624", "0.6193895", "0.6189807", "0.6150571", "0.6071724"...
0.0
-1
Sets a condition in the HAVING clause that the specified field be NULL.
public function havingIsNull($field);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function havingIsNotNull($field);", "public function havingIsNull(Closure | string $column) : static\n {\n return $this->having($column, 'IS NULL');\n }", "public function orHavingIsNull(Closure | string $column) : static\n {\n return $this->orHaving($column, 'IS NULL');\n }", ...
[ "0.625018", "0.59701", "0.5928521", "0.5795825", "0.57617235", "0.57091147", "0.56600934", "0.5634498", "0.56288326", "0.56081384", "0.5589795", "0.5502315", "0.5385832", "0.5377742", "0.53713465", "0.53582776", "0.53570306", "0.53266454", "0.5301143", "0.52739", "0.5167355",...
0.7071005
0
Sets a condition in the HAVING clause that the specified field be NOT NULL.
public function havingIsNotNull($field);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function havingIsNull($field);", "public function isNullCond(string $field, string $connector = \"AND\", bool $not = false);", "public function orHavingIsNull(Closure | string $column) : static\n {\n return $this->orHaving($column, 'IS NULL');\n }", "public function havingIsNotNull(Closur...
[ "0.7127565", "0.61121035", "0.59569556", "0.5917542", "0.5905032", "0.58895427", "0.5878509", "0.5789669", "0.5731488", "0.57148075", "0.56641495", "0.5654133", "0.5649552", "0.56284004", "0.5625691", "0.56141627", "0.56012565", "0.558496", "0.5424437", "0.5379684", "0.534903...
0.6621382
1
Sets a HAVING condition that the specified subquery returns values.
public function havingExists(SelectInterface $select);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function havingCondition($field, $value = NULL, $operator = NULL);", "public function having($clause, array $params);", "public function having($sql);", "public function having($condition)\n\t\t{\n\t\t\tif($condition instanceof Condition || $condition instanceof ConditionGroup)\n\t\t\t{\n\t\t\t\t$this...
[ "0.6416501", "0.63521844", "0.6221326", "0.6207407", "0.61442596", "0.6095151", "0.6090732", "0.6006318", "0.60000604", "0.59506404", "0.59381783", "0.5906694", "0.58963", "0.58935183", "0.5883997", "0.58453065", "0.5802054", "0.5721202", "0.5695124", "0.5676814", "0.5672755"...
0.48664165
80
Sets a HAVING condition that the specified subquery returns no values.
public function havingNotExists(SelectInterface $select);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function not_having($having) \n {\n $this->sql .= \" NOT HAVING \". $this->clean($having);\n return $this;\n }", "public function havingIsNull($field);", "public function havingIsNull(Closure | string $column) : static\n {\n return $this->having($column, 'IS NULL');\n }"...
[ "0.58419544", "0.5786849", "0.5591235", "0.55233496", "0.54878414", "0.54170305", "0.53993046", "0.53726983", "0.5348912", "0.5333755", "0.53182644", "0.5306606", "0.52805555", "0.5265027", "0.5236656", "0.52224976", "0.52134854", "0.51872313", "0.5187059", "0.51836365", "0.5...
0.5099025
22
Clone magic method. Select queries have dependent objects that must be deepcloned. The connection object itself, however, should not be cloned as that would duplicate the connection itself.
public function __clone();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __clone()\n {\n $this->query = clone $this->query;\n }", "public function __clone()\n {\n $this->select = clone $this->select;\n }", "public final function __clone()\n\t{\n\t\tthrow new Db_Exception('Cloning of Db_Connection instances are not allowed.');\n\t}", "publ...
[ "0.76012415", "0.7484601", "0.7247227", "0.6715469", "0.6581133", "0.65803087", "0.65803087", "0.65803087", "0.65803087", "0.65803087", "0.65803087", "0.65803087", "0.65681064", "0.65539795", "0.65539795", "0.65539795", "0.65539795", "0.65539795", "0.65539795", "0.65539795", ...
0.6541865
51
Add FOR UPDATE to the query. FOR UPDATE prevents the rows retrieved by the SELECT statement from being modified or deleted by other transactions until the current transaction ends. Other transactions that attempt UPDATE, DELETE, or SELECT FOR UPDATE of these rows will be blocked until the current transaction ends.
public function forUpdate($set = TRUE);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function forUpdate($sql){\n\t\treturn $sql.' FOR UPDATE';\n\t}", "public function for_update(){\n\t\t$this->for_update = true;\n\t\treturn $this;\n\t}", "public function updateQuery(\n UpdatingQueryInterface $query,\n PromiseInterface $promise,\n ): BatchManipulationManagerInterface;", ...
[ "0.59328705", "0.50731367", "0.5070927", "0.500483", "0.48061028", "0.47558188", "0.46768984", "0.46397233", "0.45856348", "0.45667326", "0.45250273", "0.44931588", "0.44269338", "0.44171128", "0.43896964", "0.43709442", "0.43676037", "0.4329716", "0.43293783", "0.43197733", ...
0.0
-1
Returns a string representation of how the query will be executed in SQL.
public function __toString();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toString()\n {\n return \"is equivalent to the SQL query \". \\PHPUnit_Util_Type::toString($this->sql);\n }", "public function getSQL(): string\n {\n return $this->getQuery()->getSQL();\n }", "public function __toString()\n {\n return $this->getSQL();\n }"...
[ "0.80735326", "0.78274226", "0.7610163", "0.75983727", "0.75858086", "0.7581244", "0.75539005", "0.75240713", "0.74741846", "0.7461257", "0.74501574", "0.74501574", "0.74484605", "0.743464", "0.74336004", "0.74246967", "0.73934346", "0.7386084", "0.73572135", "0.7345165", "0....
0.0
-1
Fetch the correctly formatted internal encryption algorithm method name.
abstract protected function fetchAlgorithmMethodName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAlgorithm() : string\n {\n return self::ALGORITHM;\n }", "public function getAlgorithm(): string\n {\n return $this->getHeaderClaim('alg');\n }", "function mcrypt_enc_get_algorithms_name($td)\n{\n}", "abstract public function getAlgorithmType(): string;", "final...
[ "0.7152099", "0.70413315", "0.64654076", "0.62949866", "0.6262322", "0.6220159", "0.61349803", "0.6116348", "0.6116348", "0.60968924", "0.60564005", "0.60387033", "0.6007145", "0.5967294", "0.5890867", "0.5862219", "0.5857976", "0.58487624", "0.58473474", "0.58312756", "0.582...
0.7499706
0
Internal method for the validation of plain data used at encryption operations.
abstract protected function validatePlainDataForEncryption($plainData);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function validatePlainData($plainData)\n {\n if (!is_string($plainData)) {\n throw new \\InvalidArgumentException(\"The data for encryption must be a string or a binary string.\");\n } elseif ($this->useChunks === false) {\n $chunkSize = (int)ceil(static::KEY_SIZE /...
[ "0.7045691", "0.6626759", "0.6406262", "0.6373728", "0.6133701", "0.60577077", "0.6043969", "0.6041955", "0.6041955", "0.5992711", "0.5856533", "0.58358836", "0.5796604", "0.5782164", "0.5779227", "0.57707155", "0.5724287", "0.5719811", "0.565119", "0.56397414", "0.5616948", ...
0.8719335
0
Internal method for the validation of cipher data used at decryption operations.
abstract protected function validateCipherDataForDecryption($cipherData);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function validatePlainDataForEncryption($plainData);", "public function testValidationCaseForNonStringInputDataPassedForDecryption()\n {\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectExcept...
[ "0.7728111", "0.662747", "0.65892667", "0.6566636", "0.632465", "0.6242262", "0.6176424", "0.6146964", "0.6042639", "0.5946525", "0.5943229", "0.59191275", "0.5764247", "0.5764247", "0.57420397", "0.5724901", "0.5697322", "0.56938076", "0.5684154", "0.56604636", "0.565735", ...
0.8284532
0
Symmetrical encryption algorithm constructor.
abstract public function __construct();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAsymmetricCipher();", "public function encrypt();", "protected function _encrypt()\n {\n switch ($this->_cypherUsed) {\n case self::CYPHER_BASIC:\n //break ommited on purpose\n default:\n $string = $this->_plainText;\n ...
[ "0.71682346", "0.6173329", "0.59116864", "0.5890748", "0.58246225", "0.58175206", "0.58069104", "0.5794332", "0.5690198", "0.56805515", "0.5675322", "0.566449", "0.5654899", "0.5603828", "0.55938065", "0.5582291", "0.5577891", "0.5554099", "0.55031365", "0.5500157", "0.549581...
0.0
-1
Constructor method for Employee_DataType
public function __construct($employee_ID = null, $user_ID = null, \WorkdayWsdl\\StructType\External_Integration_ID_DataType $integration_ID_Data = null, array $personal_Info_Data = array(), array $worker_Status_Data = array(), array $worker_Position_Data = array(), array $compensation_Data = array(), array $compensation_Detail_Data = array(), \WorkdayWsdl\\StructType\Worker_Document_Data_WWSType $worker_Document_Data = null) { $this ->setEmployee_ID($employee_ID) ->setUser_ID($user_ID) ->setIntegration_ID_Data($integration_ID_Data) ->setPersonal_Info_Data($personal_Info_Data) ->setWorker_Status_Data($worker_Status_Data) ->setWorker_Position_Data($worker_Position_Data) ->setCompensation_Data($compensation_Data) ->setCompensation_Detail_Data($compensation_Detail_Data) ->setWorker_Document_Data($worker_Document_Data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct($employee)\n {\n $this->employee = $employee;\n }", "public function __construct(Employee $employee)\n {\n $this->employee = $employee ;\n }", "function __construct($employee_name = null) {\r\n\t\t$this->set_name($employee_name);\r\n\t}", "public function ...
[ "0.6820082", "0.6673485", "0.6612824", "0.66121924", "0.6486929", "0.63808185", "0.61447394", "0.59936297", "0.59770215", "0.5955739", "0.5918524", "0.5911284", "0.5820489", "0.58125293", "0.57541937", "0.57526106", "0.57379633", "0.5709364", "0.5699383", "0.5681924", "0.5637...
0.5597713
26
This method is responsible for validating the values passed to the setPersonal_Info_Data method This method is willingly generated in order to preserve the oneline inline validation within the setPersonal_Info_Data method
public static function validatePersonal_Info_DataForArrayConstraintsFromSetPersonal_Info_Data(array $values = array()) { $message = ''; $invalidValues = []; foreach ($values as $employee_DataTypePersonal_Info_DataItem) { // validation for constraint: itemType if (!$employee_DataTypePersonal_Info_DataItem instanceof \WorkdayWsdl\\StructType\Personal_Info_DataType) { $invalidValues[] = is_object($employee_DataTypePersonal_Info_DataItem) ? get_class($employee_DataTypePersonal_Info_DataItem) : sprintf('%s(%s)', gettype($employee_DataTypePersonal_Info_DataItem), var_export($employee_DataTypePersonal_Info_DataItem, true)); } } if (!empty($invalidValues)) { $message = sprintf('The Personal_Info_Data property can only contain items of type \WorkdayWsdl\\StructType\Personal_Info_DataType, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues))); } unset($invalidValues); return $message; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function validateData();", "public function sanitiseData(): void\n {\n $this->firstLine = self::sanitiseString($this->firstLine);\n self::validateExistsAndLength($this->firstLine, 1000);\n $this->secondLine = self::sanitiseString($this->secondLine);\n self::validate...
[ "0.6391842", "0.63317466", "0.62318915", "0.6230617", "0.62305", "0.6225306", "0.62060606", "0.61750716", "0.61457795", "0.6134435", "0.61237514", "0.60112745", "0.6010478", "0.5972876", "0.5967445", "0.59263355", "0.59263355", "0.59182805", "0.59120226", "0.5875252", "0.5873...
0.6616691
0
Add item to Personal_Info_Data value
public function addToPersonal_Info_Data(\WorkdayWsdl\\StructType\Personal_Info_DataType $item) { // validation for constraint: itemType if (!$item instanceof \WorkdayWsdl\\StructType\Personal_Info_DataType) { throw new \InvalidArgumentException(sprintf('The Personal_Info_Data property can only contain items of type \WorkdayWsdl\\StructType\Personal_Info_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__); } $this->Personal_Info_Data[] = $item; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function addItemDetails(&$item) \r\n\t{\r\n\t\t//$item->totals = KTBTrackerHelper::getUserTotals($item);\r\n\t\t$this->getUserInfo($item);\r\n\t}", "public function add_info($info)\r\n { \r\n }", "public function addToPerson_Identification_Data(\\WorkdayWsdl\\\\StructType\\Person_Identif...
[ "0.6281816", "0.624835", "0.5833373", "0.5772086", "0.57477057", "0.57307374", "0.57307374", "0.5715001", "0.5685597", "0.56725395", "0.5660738", "0.5629426", "0.5616938", "0.5613185", "0.5565619", "0.55552506", "0.5544828", "0.5526423", "0.5525993", "0.5518383", "0.5500519",...
0.68782574
0
This method is responsible for validating the values passed to the setWorker_Status_Data method This method is willingly generated in order to preserve the oneline inline validation within the setWorker_Status_Data method
public static function validateWorker_Status_DataForArrayConstraintsFromSetWorker_Status_Data(array $values = array()) { $message = ''; $invalidValues = []; foreach ($values as $employee_DataTypeWorker_Status_DataItem) { // validation for constraint: itemType if (!$employee_DataTypeWorker_Status_DataItem instanceof \WorkdayWsdl\\StructType\Worker_Status_DataType) { $invalidValues[] = is_object($employee_DataTypeWorker_Status_DataItem) ? get_class($employee_DataTypeWorker_Status_DataItem) : sprintf('%s(%s)', gettype($employee_DataTypeWorker_Status_DataItem), var_export($employee_DataTypeWorker_Status_DataItem, true)); } } if (!empty($invalidValues)) { $message = sprintf('The Worker_Status_Data property can only contain items of type \WorkdayWsdl\\StructType\Worker_Status_DataType, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues))); } unset($invalidValues); return $message; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getStatus(){\n\t\t$this->valid=$this->checkDatesValidity();\n\t\tif($this->usage==\"once\" && $this->usageCount) $this->valid = false;\n\t\tif($this->usage==\"count\" && $this->usageCount>=$this->maxUsage) $this->valid = false;\n\t\tif($this->type==\"fixed\" && $this->value<=0) $this->valid = fals...
[ "0.63312685", "0.59636194", "0.59624165", "0.5851447", "0.580899", "0.5765033", "0.5756305", "0.5708719", "0.56713504", "0.56713504", "0.5663364", "0.56542486", "0.5636632", "0.5626314", "0.56138957", "0.5583534", "0.5575395", "0.5544729", "0.5523626", "0.5497691", "0.5485734...
0.64021975
0
Add item to Worker_Status_Data value
public function addToWorker_Status_Data(\WorkdayWsdl\\StructType\Worker_Status_DataType $item) { // validation for constraint: itemType if (!$item instanceof \WorkdayWsdl\\StructType\Worker_Status_DataType) { throw new \InvalidArgumentException(sprintf('The Worker_Status_Data property can only contain items of type \WorkdayWsdl\\StructType\Worker_Status_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__); } $this->Worker_Status_Data[] = $item; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addStatus($status);", "function add_status($vStatus, $index = 0) {\n\t\tif ($this->get_multiple_values()) {\n\t\t\tif (!isset($this->statuses[$index])) {\n\t\t\t\t$this->statuses[$index] = Array();\n\t\t\t}\t\n\t\t\tif (!in_array($vStatus, $this->statuses[$index])) {\n\t\t\t\tarray_push($this->st...
[ "0.5700343", "0.55176336", "0.5473545", "0.5324831", "0.5256279", "0.5216933", "0.52050316", "0.51999325", "0.5192786", "0.5173823", "0.50788814", "0.5069913", "0.505924", "0.505686", "0.50449306", "0.50345826", "0.50078946", "0.49951497", "0.49807838", "0.49698597", "0.49678...
0.68905354
0
This method is responsible for validating the values passed to the setWorker_Position_Data method This method is willingly generated in order to preserve the oneline inline validation within the setWorker_Position_Data method
public static function validateWorker_Position_DataForArrayConstraintsFromSetWorker_Position_Data(array $values = array()) { $message = ''; $invalidValues = []; foreach ($values as $employee_DataTypeWorker_Position_DataItem) { // validation for constraint: itemType if (!$employee_DataTypeWorker_Position_DataItem instanceof \WorkdayWsdl\\StructType\Worker_Position_DataType) { $invalidValues[] = is_object($employee_DataTypeWorker_Position_DataItem) ? get_class($employee_DataTypeWorker_Position_DataItem) : sprintf('%s(%s)', gettype($employee_DataTypeWorker_Position_DataItem), var_export($employee_DataTypeWorker_Position_DataItem, true)); } } if (!empty($invalidValues)) { $message = sprintf('The Worker_Position_Data property can only contain items of type \WorkdayWsdl\\StructType\Worker_Position_DataType, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues))); } unset($invalidValues); return $message; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function validateData();", "private function writeDataValidity(): void\n {\n // Datavalidation collection\n $dataValidationCollection = $this->phpSheet->getDataValidationCollection();\n\n // Write data validations?\n if (!empty($dataValidationCollection)) {\n ...
[ "0.6250665", "0.6239848", "0.5929916", "0.59119207", "0.58686876", "0.5863896", "0.58303034", "0.5780146", "0.5732594", "0.56591696", "0.56591696", "0.56431615", "0.56187326", "0.5604051", "0.55439454", "0.5518377", "0.5507813", "0.54950297", "0.5478772", "0.54693526", "0.546...
0.6669201
0
Add item to Worker_Position_Data value
public function addToWorker_Position_Data(\WorkdayWsdl\\StructType\Worker_Position_DataType $item) { // validation for constraint: itemType if (!$item instanceof \WorkdayWsdl\\StructType\Worker_Position_DataType) { throw new \InvalidArgumentException(sprintf('The Worker_Position_Data property can only contain items of type \WorkdayWsdl\\StructType\Worker_Position_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__); } $this->Worker_Position_Data[] = $item; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addItemForUpdate($item) {\n $this->_update[$item->getId()] = $item;\n }", "public function addToWorker_Status_Data(\\WorkdayWsdl\\\\StructType\\Worker_Status_DataType $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\WorkdayWsdl\\\\StructType\\Worker_Stat...
[ "0.5231292", "0.5206924", "0.5104459", "0.50767857", "0.5028276", "0.5020101", "0.49048936", "0.4889565", "0.48665488", "0.48301995", "0.48181653", "0.48165485", "0.481629", "0.47600394", "0.47438157", "0.47194618", "0.47158635", "0.47026443", "0.47001815", "0.46973503", "0.4...
0.6830623
0
This method is responsible for validating the values passed to the setCompensation_Data method This method is willingly generated in order to preserve the oneline inline validation within the setCompensation_Data method
public static function validateCompensation_DataForArrayConstraintsFromSetCompensation_Data(array $values = array()) { $message = ''; $invalidValues = []; foreach ($values as $employee_DataTypeCompensation_DataItem) { // validation for constraint: itemType if (!$employee_DataTypeCompensation_DataItem instanceof \WorkdayWsdl\\StructType\Compensation_DataType) { $invalidValues[] = is_object($employee_DataTypeCompensation_DataItem) ? get_class($employee_DataTypeCompensation_DataItem) : sprintf('%s(%s)', gettype($employee_DataTypeCompensation_DataItem), var_export($employee_DataTypeCompensation_DataItem, true)); } } if (!empty($invalidValues)) { $message = sprintf('The Compensation_Data property can only contain items of type \WorkdayWsdl\\StructType\Compensation_DataType, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues))); } unset($invalidValues); return $message; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function validateCompensation_Detail_DataForArrayConstraintsFromSetCompensation_Detail_Data(array $values = array())\n {\n $message = '';\n $invalidValues = [];\n foreach ($values as $employee_DataTypeCompensation_Detail_DataItem) {\n // validation for constraint: i...
[ "0.6410474", "0.62148154", "0.61932635", "0.6142784", "0.5984186", "0.5918877", "0.5875359", "0.58193713", "0.581505", "0.5740609", "0.5725442", "0.57217234", "0.5712102", "0.56930876", "0.56847066", "0.5679649", "0.5667135", "0.565881", "0.5657518", "0.5656773", "0.56491315"...
0.6550004
0
Add item to Compensation_Data value
public function addToCompensation_Data(\WorkdayWsdl\\StructType\Compensation_DataType $item) { // validation for constraint: itemType if (!$item instanceof \WorkdayWsdl\\StructType\Compensation_DataType) { throw new \InvalidArgumentException(sprintf('The Compensation_Data property can only contain items of type \WorkdayWsdl\\StructType\Compensation_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__); } $this->Compensation_Data[] = $item; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addToCompensation_Detail_Data(\\WorkdayWsdl\\\\StructType\\Compensation_Detail_DataType $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\WorkdayWsdl\\\\StructType\\Compensation_Detail_DataType) {\n throw new \\InvalidArgumentException(sprintf...
[ "0.6699705", "0.55794066", "0.5439293", "0.5117364", "0.50710636", "0.50562865", "0.5034741", "0.49769795", "0.4965951", "0.49514467", "0.49439436", "0.49334455", "0.4895031", "0.48946083", "0.4886936", "0.48747206", "0.48504317", "0.4843837", "0.4838966", "0.48289162", "0.48...
0.7193161
0
This method is responsible for validating the values passed to the setCompensation_Detail_Data method This method is willingly generated in order to preserve the oneline inline validation within the setCompensation_Detail_Data method
public static function validateCompensation_Detail_DataForArrayConstraintsFromSetCompensation_Detail_Data(array $values = array()) { $message = ''; $invalidValues = []; foreach ($values as $employee_DataTypeCompensation_Detail_DataItem) { // validation for constraint: itemType if (!$employee_DataTypeCompensation_Detail_DataItem instanceof \WorkdayWsdl\\StructType\Compensation_Detail_DataType) { $invalidValues[] = is_object($employee_DataTypeCompensation_Detail_DataItem) ? get_class($employee_DataTypeCompensation_Detail_DataItem) : sprintf('%s(%s)', gettype($employee_DataTypeCompensation_Detail_DataItem), var_export($employee_DataTypeCompensation_Detail_DataItem, true)); } } if (!empty($invalidValues)) { $message = sprintf('The Compensation_Detail_Data property can only contain items of type \WorkdayWsdl\\StructType\Compensation_Detail_DataType, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues))); } unset($invalidValues); return $message; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function writeDataValidity(): void\n {\n // Datavalidation collection\n $dataValidationCollection = $this->phpSheet->getDataValidationCollection();\n\n // Write data validations?\n if (!empty($dataValidationCollection)) {\n // DATAVALIDATIONS record\n $r...
[ "0.587873", "0.5781418", "0.5681975", "0.5645212", "0.5590447", "0.5590342", "0.54932827", "0.5486492", "0.54830337", "0.5476842", "0.5471194", "0.54674745", "0.54629385", "0.5422629", "0.5418839", "0.54139113", "0.54067004", "0.5404779", "0.5389906", "0.53889024", "0.533098"...
0.68135285
0
Add item to Compensation_Detail_Data value
public function addToCompensation_Detail_Data(\WorkdayWsdl\\StructType\Compensation_Detail_DataType $item) { // validation for constraint: itemType if (!$item instanceof \WorkdayWsdl\\StructType\Compensation_Detail_DataType) { throw new \InvalidArgumentException(sprintf('The Compensation_Detail_Data property can only contain items of type \WorkdayWsdl\\StructType\Compensation_Detail_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__); } $this->Compensation_Detail_Data[] = $item; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addToCompensation_Data(\\WorkdayWsdl\\\\StructType\\Compensation_DataType $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\WorkdayWsdl\\\\StructType\\Compensation_DataType) {\n throw new \\InvalidArgumentException(sprintf('The Compensation_Da...
[ "0.6132607", "0.5467399", "0.5360926", "0.52197987", "0.5216997", "0.52087444", "0.51678056", "0.51663333", "0.5139879", "0.51351756", "0.51181453", "0.51178575", "0.51080304", "0.5090842", "0.5080605", "0.5041717", "0.5007385", "0.49704885", "0.49491113", "0.49209148", "0.49...
0.7190778
0
Method called when an object has been exported with var_export() functions It allows to return an object instantiated with the values
public static function __set_state(array $array) { return parent::__set_state($array); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ExportObject() {\n // Init object\n $plugin = new stdClass();\n // Set values\n $plugin->Name = $this->Name;\n $plugin->Version = $this->Version;\n $plugin->Author = $this->Author;\n $plugin->About = $this->About;\n $plugin->Root = $this->Roo...
[ "0.6951056", "0.69235533", "0.6576406", "0.6377145", "0.61438453", "0.6123597", "0.60555947", "0.60385406", "0.5922576", "0.5922576", "0.5922576", "0.5922576", "0.5922576", "0.5859328", "0.58386916", "0.58126146", "0.5800945", "0.5715804", "0.571534", "0.5712997", "0.5688761"...
0.0
-1
Method returning the class name
public function __toString() { return __CLASS__; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getClassName();", "public function getClassName();", "public function getClassName() ;", "public function getClassName() {}", "public function getClassName() {}", "public function getClassName() {}", "public function getClassName() {}", "public function getClassName()\n {\n ...
[ "0.87522393", "0.87522393", "0.8751158", "0.87397957", "0.87397957", "0.87397957", "0.87397957", "0.8731564", "0.8696754", "0.8673495", "0.8638432", "0.8615335", "0.8603119", "0.8566906", "0.8562364", "0.8555002", "0.85503733", "0.85503733", "0.85425884", "0.8533183", "0.8529...
0.0
-1
Resize hinh imagejpeg ( resize ( $dir_upload . $small_image, 280,240,$dir_upload."add_img.png","b"), $dir_upload. $small_image );
function resize($image,$x,$y=NULL,$wm=NULL,$wml='br'){ if(!file_exists($image)){ return false; } $images = array(); if($wm !== '' && $wm !== NULL && file_exists($wm)){ $images['wmimg'] = $wm; } $images['img'] = $image; foreach($images as $key=>$value){ $type = substr($value,strrpos($value,'.')); if(stristr($type,'i')){ $$key = imagecreatefromgif($value); } if(stristr($type,'j')){ $$key = imagecreatefromjpeg($value); } if(stristr($type,'n')){ $$key = imagecreatefrompng($value); } } $size = array(); if($y === '' || $y === NULL){ $size['x'] = imageSX($img); $size['y'] = imageSY($img); if($size['x'] >= $size['y']){ $size['dest_x'] = $x; $size['dest_y'] = ceil($size['y'] * ($x / $size['x'])); }else{ $size['dest_y'] = $x; $size['dest_x'] = ceil($size['x'] * ($x / $size['y'])); } $dest = imageCreatetruecolor($size['dest_x'],$size['dest_y']); }else{ $dest = imagecreatetrueColor($x,$y); $size['x'] = imageSX($img); $size['y'] = imageSY($img); $size['dest_x'] = $x; $size['dest_y'] = $y; } imagecopyresized($dest, $img, 0, 0, 0, 0, $size['dest_x'], $size['dest_y'], $size['x'], $size['y']); if(isset($wmimg)){ $size['wmx'] = imageSX($wmimg); $size['wmy'] = imageSY($wmimg); $size['wmh'] = strtolower($wml{0}) === 'b' ? ($size['dest_y'] - $size['wmy'] - 0) : 0; $size['wmw'] = strtolower($wml{1}) === 'r' ? ($size['dest_x'] - $size['wmx'] - 0) : 0; imagecopy($dest, $wmimg, $size['wmw'], $size['wmh'], 0, 0, $size['wmx'], $size['wmy']); imagedestroy($wmimg); } imagedestroy($img); return $dest; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function resize( $jpg ) {\n\t$im = @imagecreatefromjpeg( $jpg );\n\t$filename = $jpg;\n\t$percent = 0.5;\n\tlist( $width, $height ) = getimagesize( $filename );\n\tif ( $uploader_name == \"c_master_imgs\" ):\n\t\t$new_width = $width;\n\t$new_height = $height;\n\telse :\n\t\tif ( $width > 699 ): $new_width = 699;\n...
[ "0.7755187", "0.76064634", "0.7574261", "0.75533295", "0.7529035", "0.75171125", "0.7381917", "0.73799914", "0.73686063", "0.7246326", "0.72441864", "0.72436154", "0.72162515", "0.7143735", "0.71314764", "0.7126696", "0.71230406", "0.7117989", "0.71134704", "0.7109626", "0.71...
0.6619057
87
Written Pham Vu Hoang Luyen
function Update_table($dk, $table, &$db) { $sql_query = "update `".$table."` set ". $dk; $sql_query = $db->sql_query($sql_query) or die(mysql_error()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function helper()\n\t{\n\t\n\t}", "private function __() {\n }", "final function velcom(){\n }", "private function _i() {\n }", "public function boleta()\n\t{\n\t\t//\n\t}", "public function AggiornaPrezzi(){\n\t}", "public function nadar()\n {\n }", "public function ...
[ "0.6095811", "0.5965028", "0.59606653", "0.59233487", "0.59061694", "0.58884263", "0.58513623", "0.5765334", "0.57079315", "0.5624313", "0.5620513", "0.55972624", "0.5552196", "0.55036014", "0.5478748", "0.5466472", "0.54326504", "0.54324114", "0.5399189", "0.5388125", "0.534...
0.0
-1
Written Pham Vu Hoang Luyen
function convertHTML($strInput) //Convert to html special code { //$strInput = htmlspecialchars($strInput, ENT_QUOTES); $strInput = str_replace('"', '&quot;', $strInput); $strInput = str_replace("'", "&#039;", $strInput); return $strInput; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function helper()\n\t{\n\t\n\t}", "private function __() {\n }", "final function velcom(){\n }", "private function _i() {\n }", "public function boleta()\n\t{\n\t\t//\n\t}", "public function AggiornaPrezzi(){\n\t}", "public function nadar()\n {\n }", "public function ...
[ "0.6095811", "0.5965028", "0.59606653", "0.59233487", "0.59061694", "0.58884263", "0.58513623", "0.5765334", "0.57079315", "0.5624313", "0.5620513", "0.55972624", "0.5552196", "0.55036014", "0.5478748", "0.5466472", "0.54326504", "0.54324114", "0.5399189", "0.5388125", "0.534...
0.0
-1
Written Pham Vu Hoang Luyen
function unconvertHTML($strInput)//Convert html special code to standart form { //$strInput = html_entity_decode($strInput); $strInput = str_replace('&quot;', '"', $strInput); $strInput = str_replace("&#039;", "'", $strInput); return $strInput; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function helper()\n\t{\n\t\n\t}", "private function __() {\n }", "final function velcom(){\n }", "private function _i() {\n }", "public function boleta()\n\t{\n\t\t//\n\t}", "public function AggiornaPrezzi(){\n\t}", "public function nadar()\n {\n }", "public function ...
[ "0.6095811", "0.5965028", "0.59606653", "0.59233487", "0.59061694", "0.58884263", "0.58513623", "0.5765334", "0.57079315", "0.5624313", "0.5620513", "0.55972624", "0.5552196", "0.55036014", "0.5478748", "0.5466472", "0.54326504", "0.54324114", "0.5399189", "0.5388125", "0.534...
0.0
-1
Written Pham Vu Hoang Luyen
function insertData($strInput)//Use In inserting or updating data into database { $strInput = addslashes(unconvertHTML($strInput)); return $strInput; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function helper()\n\t{\n\t\n\t}", "private function __() {\n }", "final function velcom(){\n }", "private function _i() {\n }", "public function boleta()\n\t{\n\t\t//\n\t}", "public function AggiornaPrezzi(){\n\t}", "public function nadar()\n {\n }", "public function ...
[ "0.6095811", "0.5965028", "0.59606653", "0.59233487", "0.59061694", "0.58884263", "0.58513623", "0.5765334", "0.57079315", "0.5624313", "0.5620513", "0.55972624", "0.5552196", "0.55036014", "0.5478748", "0.5466472", "0.54326504", "0.54324114", "0.5399189", "0.5388125", "0.534...
0.0
-1
Written Pham Vu Hoang Luyen
function displayData_DB($strInput) { $strInput = stripslashes($strInput); return $strInput; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function helper()\n\t{\n\t\n\t}", "private function __() {\n }", "final function velcom(){\n }", "private function _i() {\n }", "public function boleta()\n\t{\n\t\t//\n\t}", "public function AggiornaPrezzi(){\n\t}", "public function nadar()\n {\n }", "public function ...
[ "0.6095811", "0.5965028", "0.59606653", "0.59233487", "0.59061694", "0.58884263", "0.58513623", "0.5765334", "0.57079315", "0.5624313", "0.5620513", "0.55972624", "0.5552196", "0.55036014", "0.5478748", "0.5466472", "0.54326504", "0.54324114", "0.5399189", "0.5388125", "0.534...
0.0
-1
Written Pham Vu Hoang Luyen
function displayData_Textbox($strInput) { $strInput = convertHTML(stripslashes($strInput)); return $strInput; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function helper()\n\t{\n\t\n\t}", "private function __() {\n }", "final function velcom(){\n }", "private function _i() {\n }", "public function boleta()\n\t{\n\t\t//\n\t}", "public function AggiornaPrezzi(){\n\t}", "public function nadar()\n {\n }", "public function ...
[ "0.6095811", "0.5965028", "0.59606653", "0.59233487", "0.59061694", "0.58884263", "0.58513623", "0.5765334", "0.57079315", "0.5624313", "0.5620513", "0.55972624", "0.5552196", "0.55036014", "0.5478748", "0.5466472", "0.54326504", "0.54324114", "0.5399189", "0.5388125", "0.534...
0.0
-1
Written Pham Vu Hoang Luyen
function convertcharstoupper($str) { return mb_convert_case($str, MB_CASE_UPPER, "UTF-8"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function helper()\n\t{\n\t\n\t}", "private function __() {\n }", "final function velcom(){\n }", "private function _i() {\n }", "public function boleta()\n\t{\n\t\t//\n\t}", "public function AggiornaPrezzi(){\n\t}", "public function nadar()\n {\n }", "public function ...
[ "0.6095811", "0.5965028", "0.59606653", "0.59233487", "0.59061694", "0.58884263", "0.58513623", "0.5765334", "0.57079315", "0.5624313", "0.5620513", "0.55972624", "0.5552196", "0.55036014", "0.5478748", "0.5466472", "0.54326504", "0.54324114", "0.5399189", "0.5388125", "0.534...
0.0
-1
Written Pham Vu Hoang Luyen
function displayData_DB_Content($strInput) { $strInput = stripslashes($strInput); // $strInput = str_replace(chr(10), '<br>', $strInput); return $strInput; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function helper()\n\t{\n\t\n\t}", "private function __() {\n }", "final function velcom(){\n }", "private function _i() {\n }", "public function boleta()\n\t{\n\t\t//\n\t}", "public function AggiornaPrezzi(){\n\t}", "public function nadar()\n {\n }", "public function ...
[ "0.6095811", "0.5965028", "0.59606653", "0.59233487", "0.59061694", "0.58884263", "0.58513623", "0.5765334", "0.57079315", "0.5624313", "0.5620513", "0.55972624", "0.5552196", "0.55036014", "0.5478748", "0.5466472", "0.54326504", "0.54324114", "0.5399189", "0.5388125", "0.534...
0.0
-1
Written Pham Vu Hoang Luyen
function check_exits_field($code,$field, $table, &$db, $id = 0) { if($id<>0) $cond = " AND id <> '".$id."'"; else $cond = ""; $sql_check = "SELECT count(*) FROM ".$table." WHERE `".$field."` = '".$code."'".$cond; $sql_check = $db->sql_query($sql_check) or die(mysql_error()); $exits = $db->sql_fetchfield(0); if($exits)return true; else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function helper()\n\t{\n\t\n\t}", "private function __() {\n }", "final function velcom(){\n }", "private function _i() {\n }", "public function boleta()\n\t{\n\t\t//\n\t}", "public function AggiornaPrezzi(){\n\t}", "public function nadar()\n {\n }", "public function ...
[ "0.6095811", "0.5965028", "0.59606653", "0.59233487", "0.59061694", "0.58884263", "0.58513623", "0.5765334", "0.57079315", "0.5624313", "0.5620513", "0.55972624", "0.5552196", "0.55036014", "0.5478748", "0.5466472", "0.54326504", "0.54324114", "0.5399189", "0.5388125", "0.534...
0.0
-1
Written Pham Vu Hoang Luyen
function check_exits_idField($code,$field, $table, &$db) { $sql_check = "SELECT * FROM ".$table." WHERE `".$field."` = '".$code."'"; $sql_check = $db->sql_query($sql_check) or die(mysql_error()); $exits = $db->sql_fetchfield(0); if($exits)return true; else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function helper()\n\t{\n\t\n\t}", "private function __() {\n }", "final function velcom(){\n }", "private function _i() {\n }", "public function boleta()\n\t{\n\t\t//\n\t}", "public function AggiornaPrezzi(){\n\t}", "public function nadar()\n {\n }", "public function ...
[ "0.6095811", "0.5965028", "0.59606653", "0.59233487", "0.59061694", "0.58884263", "0.58513623", "0.5765334", "0.57079315", "0.5624313", "0.5620513", "0.55972624", "0.5552196", "0.55036014", "0.5478748", "0.5466472", "0.54326504", "0.54324114", "0.5399189", "0.5388125", "0.534...
0.0
-1
Written Pham Vu Hoang Luyen
function Max_pre_order($max_field, $code,$field, $table, &$db,$type='') { $otherSQL=($type=='')?'':' and type='.$type; $sql_check = "SELECT max(".$max_field.") as TT FROM ".$table." WHERE `".$field."` = '".$code."'".$otherSQL; $sql_check = $db->sql_query($sql_check) or die(mysql_error()); $exits = $db->sql_fetchfield(0); return ($exits+1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function helper()\n\t{\n\t\n\t}", "private function __() {\n }", "final function velcom(){\n }", "private function _i() {\n }", "public function boleta()\n\t{\n\t\t//\n\t}", "public function AggiornaPrezzi(){\n\t}", "public function nadar()\n {\n }", "public function ...
[ "0.6095811", "0.5965028", "0.59606653", "0.59233487", "0.59061694", "0.58884263", "0.58513623", "0.5765334", "0.57079315", "0.5624313", "0.5620513", "0.55972624", "0.5552196", "0.55036014", "0.5478748", "0.5466472", "0.54326504", "0.54324114", "0.5399189", "0.5388125", "0.534...
0.0
-1
Quan ly nguoi su dung
function private_unset() { unset($_SESSION['search_adv']); unset($_SESSION['adver_type']); unset($_SESSION['catinfolist']); unset($_SESSION['url_of_list_pro']); unset($_SESSION['catprojectlist']); unset($_SESSION['search_name']); unset($_SESSION['search_code']); unset($_SESSION['search_type']); unset($_SESSION['txtInfo_Search']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function chuiNiu()\n{\n\techo '谁喜欢吹牛,爱谁谁<br>';\n}", "public function getCompatibleLanguageQuaderno() {\n $country = $this->getCountry();\n $spanishSpeaking = pais::getCountriesSpanishSpeaking();\n if (array_key_exists($country->getUID(), $spanishSpeaking)) {\n return 'ES';\n ...
[ "0.6427929", "0.63461685", "0.60312176", "0.6025998", "0.60145795", "0.59233946", "0.5895751", "0.5890389", "0.5853857", "0.5835168", "0.58096004", "0.5798686", "0.57635856", "0.5703562", "0.57004607", "0.56936824", "0.5686732", "0.5610148", "0.5608752", "0.56046915", "0.5582...
0.0
-1
lay danh sach sub cat info
function get_cat_sub($cat_id,$level=0) { global $table_catcontent, $db; $list_info_cat=($level==0)?"(-1":""; $list_info_cat = $list_info_cat.",".$cat_id; $subcat_num = Check_sub_info($table_catcontent,$db," WHERE parent_id = '".$cat_id."'"); if ($subcat_num>0) { $sql_query = "SELECT * FROM `" . $table_catcontent . "` WHERE parent_id='".$cat_id."' ORDER BY priority_order ASC"; $sql_query = mysql_query($sql_query); while($sql_query_rows = mysql_fetch_array($sql_query)) { $list_info_cat = $list_info_cat.get_cat_sub($sql_query_rows['id'],1); } } return ($level==0)?$list_info_cat.")":$list_info_cat; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showSubCategory()\n\t {\n\t\t\n\t\t $prolist=new Actions();\n\t\t $res=$prolist->fetchAll(\"category\");\n\t\t\t\t\t\t\n\t\t $parentdata=mysql_query(\"select * from category where cat_par_id='0'\");\n\t\t while($parent_sub_cat=mysql_fetch_array($parentdata))\n\t\t {\n\t\t\techo '<option value=\"'.$paren...
[ "0.68688154", "0.67576915", "0.6513344", "0.63308597", "0.6313172", "0.62455297", "0.6233813", "0.61778194", "0.61425745", "0.61386377", "0.6114976", "0.6102453", "0.60969985", "0.60510164", "0.6041921", "0.6037831", "0.6029942", "0.6004552", "0.60035175", "0.59941554", "0.59...
0.61129975
11
Add support for custom header
public function enableCustomHeader() { $custom_header_defaults = array( 'default-image' => '',//get_stylesheet_directory_uri().'/images/logo.png', 'random-default' => false, 'width' => '', 'height' => '', 'flex-height' => false, 'flex-width' => false, 'default-text-color' => '', 'header-text' => true, 'uploads' => true, 'wp-head-callback' => '', 'admin-head-callback' => '', 'admin-preview-callback' => '', ); add_theme_support( 'custom-header', $custom_header_defaults ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add_header() {\n }", "public function addHeader()\n {\n }", "function get_custom_header()\n {\n }", "protected function _custom_header()\n\t{\n\t\tif(is_array($this->_custom_headers) && count($this->_custom_headers) > 0)\n\t\t{\n\t\t\tforeach($this->_custom_headers as $_header_st...
[ "0.7998112", "0.7884961", "0.7749753", "0.7379095", "0.72656703", "0.7257042", "0.72494227", "0.720634", "0.72039765", "0.7164059", "0.7082689", "0.6953643", "0.6889335", "0.6885103", "0.68807775", "0.68757164", "0.68388426", "0.68356556", "0.68234944", "0.6816629", "0.681296...
0.76335675
3
Could check that $record exists and is an array
private static function instantiate($record) { // Simple long-form approach $obj = new self; // $obj->id = $record['id']; // $obj->username = $record['username']; // $obj->password = $record['password']; // $obj->first_name = $record['first_name']; // $obj->last_name = $record['last_name']; // More Dynamic, short form approach foreach($record as $attribute=>$value){ if($obj->has_attribute($attribute)) { $obj->$attribute = $value; } } return $obj; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasRecord();", "public function hasRecord() {}", "public function isHasRecord(): bool;", "public function recordExists($id)\n {\n return is_array($this->selectSingleFields($id, ['id'], false));\n }", "public function isHandling(array $record): bool\n {\n if (empty($th...
[ "0.68212956", "0.68119675", "0.6409761", "0.6356332", "0.62192833", "0.61862963", "0.6070725", "0.6049837", "0.60480493", "0.6042823", "0.60179496", "0.6009134", "0.5991378", "0.5970569", "0.5963178", "0.5938146", "0.5936094", "0.59297365", "0.58797693", "0.58343446", "0.5831...
0.0
-1
get_object_vars returns an associative array with all attributes
private function has_attribute($attribute) { // (incl. private ones!) as the keys and their current values as the value $object_vars = get_object_vars($this); // We don't care about the value, we just want to know if the key exists // Will return true or false return array_key_exists($attribute, $object_vars); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function vars()\n {\n \n return new ArrayWrapper(get_object_vars($this->object));\n \n }", "public static function getObjectVars($object)\n\t{\n\t\treturn get_object_vars($object);\n\t}", "public static function getObjectVars($object)\n {\n return get_object_vars($object);\n }", ...
[ "0.7828726", "0.74844545", "0.74790496", "0.7368418", "0.727938", "0.7239578", "0.72223675", "0.7176988", "0.71403193", "0.7133523", "0.70621365", "0.6988077", "0.6988077", "0.69782335", "0.6970633", "0.69131017", "0.68889874", "0.68678254", "0.68613976", "0.68394023", "0.682...
0.0
-1
A new record wont have an id yet
public function save() { return isset($this->id) ? $this->update() : $this->create(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createNew() {\n $this->db->insert($this->tableName, $this->mapToDatabase());\n $this->id = $this->db->insert_id();\n }", "public function isNewRecord(){\n return !isset($this->data['id']);\n }", "function is_new_record() {\n\t\treturn (is_null($this->id) || $this->...
[ "0.72940475", "0.7235951", "0.7231951", "0.7015289", "0.6879897", "0.6837293", "0.6723592", "0.66589516", "0.66589516", "0.66570055", "0.6586856", "0.65378004", "0.6525264", "0.65067035", "0.6481162", "0.6476884", "0.6476884", "0.6470362", "0.645536", "0.64520925", "0.638405"...
0.0
-1
Get the value of mobile
public function getMobile() : string { return $this->mobile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMobile();", "public function getMobile()\n\t{\n\t\treturn $this->get(\"mobile\");\n\t}", "public function getMobile()\n {\n return $this->mobile;\n }", "public function getMobile()\n {\n return $this->mobile;\n }", "public function getMobile()\n {\n re...
[ "0.85928404", "0.81119233", "0.77261835", "0.77261835", "0.77261835", "0.77261835", "0.77261835", "0.77261835", "0.72802675", "0.72705376", "0.7262032", "0.7151729", "0.7084077", "0.7061528", "0.70147985", "0.70034045", "0.69871914", "0.697149", "0.68789995", "0.6871258", "0....
0.7727877
2
Set the value of mobile
public function setMobile(string $mobile) { $this->mobile = $mobile; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setMobile($mobile);", "function change_mobile_number() {\n\n\t\t$this->authentication->is_user_logged_in(TRUE, 'user/login');\n\n\t\tloadTemplate('user/add_mobile_number');\n\t}", "public function setMobile($mobile)\n {\n $this->mobile = $mobile;\n }", "private function _set_mobi...
[ "0.7549051", "0.7295658", "0.72662014", "0.7093511", "0.68089235", "0.66138417", "0.6406695", "0.6406695", "0.6406695", "0.6406695", "0.6406695", "0.6406695", "0.6279419", "0.6262649", "0.6255569", "0.62200785", "0.61849993", "0.6140621", "0.60945684", "0.6081142", "0.6073372...
0.6019696
24
Get the value of otp
public function getOtp() : string { return $this->otp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function otp()\n {\n return $this->otp;\n }", "public function getCreatedOTP()\n {\n return $this->getOTPHandler()->getOtp();\n }", "public function getValidOtp()\n {\n $otp = $this->isOtpValid();\n if(!$otp){\n $otp = random_int(100000, 900000);\n ...
[ "0.80576015", "0.67913", "0.6516268", "0.6425945", "0.6328358", "0.6219699", "0.60361826", "0.60216004", "0.5990709", "0.5983676", "0.58427536", "0.5760973", "0.5749077", "0.5740738", "0.5738802", "0.5720269", "0.56975245", "0.5680637", "0.5669431", "0.5667203", "0.56660604",...
0.7664657
1
Set the value of otp
public function setOtp(string $otp) { $this->otp = $otp; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function otp()\n {\n return $this->otp;\n }", "public function __construct($otp)\n {\n $this->otp = $otp;\n }", "public function getOtp() : string\n {\n return $this->otp;\n }", "public function sendOtp(Request $request)\n {\n \n $user = $request...
[ "0.6540375", "0.6290469", "0.5989882", "0.58747333", "0.581057", "0.57719827", "0.5759951", "0.5646409", "0.56202495", "0.5472939", "0.54379016", "0.5419086", "0.5349276", "0.5308826", "0.5278054", "0.5275412", "0.5250727", "0.5235425", "0.52045757", "0.51986253", "0.51975363...
0.62483394
2
Get the value of service
public function getService() : ?ServiceOTP { return $this->service; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function service()\r\n {\r\n return $this->service;\r\n }", "public function service()\n {\n return $this->service;\n }", "public function service() {\n return $this->service;\n }", "function getService() {\n return $this->service;\n }", "public function getSele...
[ "0.7051693", "0.7037837", "0.6985058", "0.689558", "0.6767686", "0.67354685", "0.6717884", "0.668229", "0.66244125", "0.6620868", "0.6620868", "0.6620868", "0.6620868", "0.6620868", "0.6620868", "0.6620868", "0.66000277", "0.65876305", "0.65876305", "0.6580576", "0.6548939", ...
0.62444496
58
Set the value of service
public function setService(ServiceOTP $service) : self { $this->service = $service; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setService($service) {\r\n\t\t$this->service = $service;\r\n\t}", "public function setService($value)\n {\n return $this->set('Service', $value);\n }", "public function __set($name, $value) {\n $this->services[$name] = $value;\n }", "public function setService($service)\n\...
[ "0.79593724", "0.77505946", "0.7571768", "0.7424723", "0.7378902", "0.7219344", "0.70955", "0.7037397", "0.697429", "0.6919706", "0.6863462", "0.6853431", "0.681495", "0.6704885", "0.6661191", "0.66426444", "0.66004", "0.65830284", "0.65609", "0.6498444", "0.64742553", "0.6...
0.5812769
80
Get the value of createddate
public function getCreateddate() { return $this->createddate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_date_created();", "public function getDateCreated()\n {\n return $this->date_created;\n }", "public function getDateCreated()\n {\n return $this->date_created;\n }", "public function getDateCreated() {\r\n return $this->_date_created;\r\n }", "public ...
[ "0.8287308", "0.8039385", "0.8039385", "0.8028678", "0.8009091", "0.79696393", "0.7950722", "0.7914252", "0.78919524", "0.78919524", "0.7880056", "0.78777224", "0.7831243", "0.78251636", "0.7813254", "0.78037477", "0.7763138", "0.7716699", "0.7708515", "0.7707672", "0.7684529...
0.8082222
1
Set the value of createddate
public function setCreateddate(DateTime $createddate) { $this->createddate = $createddate; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDateCreated($value)\n {\n $this->validateDate('DateCreated', $value);\n $this->validateNotNull('DateCreated', $value);\n\n if ($this->data['date_created'] === $value) {\n return;\n }\n\n $this->data['date_created'] = $value;\n $this->setMod...
[ "0.8005464", "0.8004534", "0.80041236", "0.7864325", "0.7741194", "0.7729125", "0.77080315", "0.7660943", "0.7644539", "0.75426525", "0.75426525", "0.75056523", "0.7435612", "0.7370304", "0.7341754", "0.7341754", "0.7341754", "0.7341754", "0.7341754", "0.7341754", "0.7341754"...
0.0
-1
Display a listing of the resource.
public function index(Service $service) { // Try and fetch the comments. $this->manager->forService($service) ->get(); if ( $this->manager->hasError() ) { return response()->json(['message' => $this->manager->errorMessage()], $this->manager->errorCode()); } return response()->json([ 'message' => $this->manager->successMessage(), 'data' => [ 'comments' => $this->manager->comments() ] ], $this->manager->successCode()); }
{ "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, Service $service) { $this->validate($request, [ 'body' => 'required' ]); // Try and insert the comment $this->manager->byUser($request->user()) ->forService($service) ->create($request->only(['body'])); if ( $this->manager->hasError() ) { return response()->json(['message' => $this->manager->errorMessage()], $this->manager->errorCode()); } return response()->json([ 'message' => $this->manager->successMessage(), 'data' => [ 'comment' => $this->manager->comment() ] ], $this->manager->successCode()); }
{ "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, Service $service, Comment $comment) { return ['message' => 'Not implemented.']; }
{ "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(Service $service, Comment $comment) { return ['message' => 'Not implemented.']; }
{ "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
See if a Given Session code looks valid
function validCode($request_code): bool { # Test to See Session Code is 32 character hexadecimal if (preg_match("/^[0-9a-f]{64}$/i",$request_code)) return true; #error_log("Invalid session code: $request_code"); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function check($code) {\n\t\t\n\t\t//isset($_SESSION) || session_start();\t\t\n\t\t//Verify code can not be empty\n\t\tif(empty($code) || empty($_SESSION[self::$seKey])) {\n\t\t\treturn false;\n\t\t}\n\t\t//session expired\n\t\tif(time() - $_SESSION[self::$seKey]['time'] > self::$expire) {\n\t\t\tuns...
[ "0.7383039", "0.63376766", "0.6312602", "0.63003135", "0.6235491", "0.6204099", "0.60853755", "0.60826063", "0.6047968", "0.60451895", "0.6043378", "0.60299194", "0.59063065", "0.5809733", "0.57624805", "0.57618713", "0.5720451", "0.5712945", "0.57014513", "0.567079", "0.5660...
0.7858994
0
Create a New Session Record and return Cookie
function create() { $new_code = ''; while (! $new_code) { # Get Large Random value $randval = mt_rand(); # Use hash to further bury session id $new_code = hash('sha256',$randval); # Make Sure Session Code Not Already Used if ($this->code_in_use($new_code)) $new_code = ""; } app_log("Generated session code '$new_code'"); if (! is_object($this->customer)) { $this->customer = new \Register\Customer(); } # Create The New Session $query = " INSERT INTO session_sessions ( code, first_hit_date, last_hit_date, user_id, company_id, refer_url, browser, prev_session, e_id ) VALUES ( ?, sysdate(), sysdate(), ?, ?, ?, ?, ?, ? ) "; $rs = $GLOBALS['_database']->Execute( $query, array($new_code, $this->customer->id, $this->company->id, $this->refer_url, $_SERVER['HTTP_USER_AGENT'], $this->prev_session, $this->email_id ) ); if ($GLOBALS['_database']->ErrorMsg()) { $this->SQLError($GLOBALS['_database']->ErrorMsg()); return null; } $this->id = $GLOBALS['_database']->Insert_ID(); # Set Session Cookie if (setcookie($this->cookie_name, $new_code, $this->cookie_expires,$this->cookie_path,$_SERVER['HTTP_HOST'],false,true)) { app_log("New Session ".$this->id." created for ".$this->domain()->id." expires ".date("Y-m-d H:i:s",time() + 36000),'debug',__FILE__,__LINE__); app_log("Session Code ".$new_code,'debug',__FILE__,__LINE__); } else{ app_log("Could not set session cookie",'error',__FILE__,__LINE__); } return $this->get($new_code); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function Create()\n\t{\n\t\t# create unique session identifier\n\t\t$key = self::generate_sid();\n\t\t\t\t\t\n\t\tself::setcookie($key);\n\t\tself::Store($key);\n\t\tself::$sid = $key;\n\t\t\n\t\t# Yes - try to retrieve the session from the DB\n\t\t$session = database()->start_query('sessions')\n\t\t...
[ "0.74633133", "0.71751314", "0.67461246", "0.6622456", "0.6536931", "0.64341635", "0.64272565", "0.64166224", "0.63921404", "0.6370622", "0.63583803", "0.63445884", "0.6340993", "0.6327771", "0.6313866", "0.6299569", "0.62871283", "0.6276595", "0.62166584", "0.61953723", "0.6...
0.6553243
4
Name For Xcache Variable
function details(): bool { $cache_key = "session[".$this->id."]"; # Cached Customer Object, Yay! $cache = new \Cache\Item($GLOBALS['_CACHE_'],$cache_key); if ($cache->error()) app_log("Cache error in Site::Session::get(): ".$cache->error(),'error',__FILE__,__LINE__); elseif (($this->id) and ($session = $cache->get())) { if ($session->code) { $this->code = $session->code; $this->company = new \Company\Company($session->company_id); $this->customer = new \Register\Customer($session->customer_id); $this->timezone = $session->timezone; $this->browser = $session->browser; $this->first_hit_date = $session->first_hit_date; $this->last_hit_date = $session->last_hit_date; $this->super_elevation_expires = $session->super_elevation_expires; $this->oauth2_state = $session->oauth2_state; if (isset($session->isMobile)) $this->isMobile = $session->isMobile; if (empty($session->csrfToken)) { $session->csrfToken = $this->generateCSRFToken(); $cache->set($session,600); } $this->csrfToken = $session->csrfToken; $this->cached(true); return true; } } $get_session_query = " SELECT id, code, company_id, user_id customer_id, timezone, browser, first_hit_date, last_hit_date, super_elevation_expires, oauth2_state FROM session_sessions WHERE id = ? "; $rs = $GLOBALS['_database']->Execute( $get_session_query, array($this->id) ); if (! $rs) { $this->SQLError($GLOBALS['_database']->ErrorMsg()); return false; } if ($rs->RecordCount()) { $session = $rs->FetchNextObject(false); if (empty($session->customer_id)) $session->customer_id = 0; $this->code = $session->code; $this->company = new \Company\Company($session->company_id); $this->customer = new \Register\Customer($session->customer_id); $this->timezone = $session->timezone; $this->browser = $session->browser; $this->first_hit_date = $session->first_hit_date; $this->last_hit_date = $session->last_hit_date; $this->super_elevation_expires = $session->super_elevation_expires; $this->oauth2_state = $session->oauth2_state; require_once THIRD_PARTY.'/mobiledetect/mobiledetectlib/Mobile_Detect.php'; $detect = new \Mobile_Detect; if ($detect->isMobile()) $this->isMobile = true; else $this->isMobile = false; $session->csrfToken = $this->generateCSRFToken(); $this->csrfToken = $session->csrfToken; if ($session->id) $cache->set($session,600); return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cacheName()\n\t\t{\n\t\t\treturn $GLOBALS[\"ID\"] . \"_call.xml\";\n\t\t}", "public static function cached($_name) {\n\t\t$_name=self::resolve($_name);\n\t\t$_hash='var.'.self::hashCode(self::remix($_name));\n\t\treturn Cache::cached($_hash);\n\t}", "public function getCacheName();", "private...
[ "0.71318537", "0.66389817", "0.6103877", "0.6031464", "0.60104287", "0.5998216", "0.5819504", "0.5819504", "0.58134246", "0.5810323", "0.57369244", "0.57111394", "0.57053906", "0.5687298", "0.5684841", "0.5684486", "0.56701744", "0.5659563", "0.56323963", "0.56323963", "0.562...
0.0
-1
Name For Xcache Variable
function update ($parameters = []): bool { $cache_key = "session[".$this->id."]"; $cache = new \Cache\Item($GLOBALS['_CACHE_'], $cache_key); if ($cache) $cache->delete(); app_log("Unset cache key $cache_key",'debug',__FILE__,__LINE__); # Make Sure User Has Privileges to view other sessions if ($GLOBALS['_SESSION_']->id != $this->id && ! $GLOBALS['_SESSION_']->customer->can('manage sessions')) { $this->error("No privileges to change session"); return null; } $ok_params = array( "user_id" => "user_id", "timezone" => "timezone", "super_elevation_expires" => "super_elevation_expires", "oauth2_state" => "oauth2_state" ); $update_session_query = " UPDATE session_sessions SET id = id"; $bind_params = array(); foreach ($parameters as $parameter => $value) { if ($ok_params[$parameter]) { $update_session_query .= ", `$parameter` = ?"; array_push($bind_params,$value); } } $update_session_query .= " WHERE id = ? "; array_push($bind_params,$this->id); query_log($update_session_query,$bind_params,true); $rs = $GLOBALS['_database']->Execute($update_session_query,$bind_params); if (! $rs) { $this->SQLError($GLOBALS['_database']->ErrorMsg()); return null; } return $this->details(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cacheName()\n\t\t{\n\t\t\treturn $GLOBALS[\"ID\"] . \"_call.xml\";\n\t\t}", "public static function cached($_name) {\n\t\t$_name=self::resolve($_name);\n\t\t$_hash='var.'.self::hashCode(self::remix($_name));\n\t\treturn Cache::cached($_hash);\n\t}", "public function getCacheName();", "private...
[ "0.71318537", "0.66389817", "0.6103877", "0.6031464", "0.60104287", "0.5998216", "0.5819504", "0.5819504", "0.58134246", "0.5810323", "0.57369244", "0.57111394", "0.57053906", "0.5687298", "0.5684841", "0.5684486", "0.56701744", "0.5659563", "0.56323963", "0.56323963", "0.562...
0.0
-1
Initialize order totals array
protected function _initTotals() { parent::_initTotals(); $amount = $this->getSource()->getTablepriceDiscountAmount(); if ($amount) { $this->addTotalBefore(new Varien_Object(array( 'code' => 'fvets_tableprice', 'value' => $amount, 'base_value'=> $amount, 'label' => $this->helper('fvets_tableprice')->__('Table discount'), ), array('nominal', 'subtotal'))); } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createTotalsFromSums() {\n $subtotal = $this->ItemSubtotalSum;\n $this->data['Order']['subtotal'] = $subtotal;\n\n $tax = sprintf('%0.2f', $subtotal * $this->ShipmentTaxPercent * $this->Taxable);\n $this->data['Order']['tax'] = $tax;\n\n $this->data['Order']['tota...
[ "0.6554651", "0.6489388", "0.63995427", "0.63802254", "0.6350262", "0.6296655", "0.6252847", "0.61389756", "0.60633314", "0.6062092", "0.6048365", "0.6004119", "0.6001629", "0.5983357", "0.5977507", "0.58738816", "0.58666897", "0.58603585", "0.5858779", "0.58501863", "0.58067...
0.5588149
33
function GenArray($mode = NULL, $params = NULL)
function GenArray($params = []) { if ($this->templateName == "admin_desktop"){ if (!isset($params[1])){ $mode = "users"; } else { $mode = $params[1]; } if ($mode === "qq_categories"){ $result = $this->genArrayCategories(); }elseif ($mode === "users"){ $result = $this->genArrayUsers(); }elseif ($mode === "qq"){ $currentCategoryId = $params[2]; $result = $this->genArrayQQ($currentCategoryId); }elseif ($mode === "qq_without_answer"){ $result = $this->genArrayQQWitoutAnswer(); }elseif ($mode === "answers"){ $currentQuestionId = $params[2]; $result = $this->genArrayAnswers($currentQuestionId); } } return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function maker(): array;", "public function generate(): array;", "function getArray();", "abstract public function getArray();", "public function aArray() {}", "public function build(): array;", "public function build(): array;", "public function getArrayParameters(): array;", "function Inic...
[ "0.69954973", "0.67968947", "0.6660896", "0.6359964", "0.63305676", "0.6174535", "0.6174535", "0.6073001", "0.60497713", "0.5895262", "0.5868703", "0.582139", "0.57906157", "0.5784861", "0.5761005", "0.5758971", "0.57567227", "0.57567203", "0.5749407", "0.57469475", "0.574660...
0.7248972
0
Creates a form to delete a role entity.
private function createDeleteForm(Role $role) { return $this->createFormBuilder() ->setAction($this->generateUrl('role_delete', array('id' => $role->getId()))) ->setMethod('DELETE') ->getForm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createDeleteForm(Roles $role)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('back_roles_delete', array('id' => $role->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "public function deleteRolesAction(){\n...
[ "0.80152273", "0.69734687", "0.69086474", "0.6816056", "0.6799801", "0.6702436", "0.6464739", "0.64358765", "0.6387753", "0.6355804", "0.63335204", "0.63201606", "0.63201606", "0.63201606", "0.63067895", "0.6303177", "0.62701714", "0.62513304", "0.6242807", "0.62261164", "0.6...
0.79986936
1
Create a new command instance.
public function __construct() { parent::__construct(); $this->client =new Client(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function newCommand() {\n return newinstance(Command::class, [], '{\n public static $wasRun= false;\n public function __construct() { self::$wasRun= false; }\n public function run() { self::$wasRun= true; }\n public function wasRun() { return self::$wasRun; }\n }');\n }", "pu...
[ "0.8010746", "0.7333379", "0.72606754", "0.7164165", "0.716004", "0.7137585", "0.6748632", "0.67234164", "0.67178184", "0.6697025", "0.6677973", "0.66454077", "0.65622073", "0.65437883", "0.64838654", "0.64696646", "0.64292693", "0.6382209", "0.6378306", "0.63773245", "0.6315...
0.0
-1
Execute the console command.
public function handleEconomy() { $crawler = $this->client->request('GET', 'http://www.tabula.ge/ge/economy'); $newscard = $crawler->filter('.newscard'); $newscard->each(function($node){ $arr = []; $img = $node->filter('img'); if($img->count()){ $arr['img'] = $img->attr('src'); }; $title = $node->filter('.title'); if($title->count()){ $arr['title'] = $title->text(); }; $link = $node->filter('a')->link()->getURI(); $arr['link'] = $link; $date = explode(" ",$node->filter('.meta time')->text()); $year = substr($date[2],0,-1); $month = $this->months[$date[1]]; $day = $date[0]; $hour = $date[3]; $dateString=date_create("$year-$month-$day $hour"); $arr['date'] = date_format($dateString, "Y/m/d H:i"); $this->economy[] = $arr; }); return $this->economy; }
{ "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
Register any authentication / authorization services.
public function boot() { $this->registerPolicies(); // policy category controller Gate::define('list_category', 'App\Policies\CategoryPolicy@viewAny'); Gate::define('delete_category', 'App\Policies\CategoryPolicy@delete'); Gate::define('edit_category', 'App\Policies\CategoryPolicy@update'); Gate::define('add_category', 'App\Policies\CategoryPolicy@create'); // policy role controller Gate::define('list_role', 'App\Policies\AuthorizationRolePolicy@viewAny'); Gate::define('delete_role', 'App\Policies\AuthorizationRolePolicy@delete'); Gate::define('edit_role', 'App\Policies\AuthorizationRolePolicy@update'); Gate::define('create_role', 'App\Policies\AuthorizationRolePolicy@create'); // policy user controller Gate::define('list_user', 'App\Policies\UserPolicy@viewAny'); Gate::define('delete_user', 'App\Policies\UserPolicy@delete'); Gate::define('edit_user', 'App\Policies\UserPolicy@update'); Gate::define('create_user', 'App\Policies\UserPolicy@create'); // policy book controller Gate::define('list_book', 'App\Policies\BookPolicy@viewAny'); Gate::define('delete_book', 'App\Policies\BookPolicy@delete'); Gate::define('edit_book', 'App\Policies\BookPolicy@update'); Gate::define('create_book', 'App\Policies\BookPolicy@create'); // policy author controller Gate::define('list_author', 'App\Policies\AuthorPolicy@viewAny'); Gate::define('delete_author', 'App\Policies\AuthorPolicy@delete'); Gate::define('edit_author', 'App\Policies\AuthorPolicy@update'); Gate::define('create_author', 'App\Policies\AuthorPolicy@create'); // policy chapter controller Gate::define('list_chapter', 'App\Policies\ChapterPolicy@viewAny'); Gate::define('delete_chapter', 'App\Policies\ChapterPolicy@delete'); Gate::define('edit_chapter', 'App\Policies\ChapterPolicy@update'); Gate::define('create_chapter', 'App\Policies\ChapterPolicy@create'); // policy tag controller Gate::define('list_tag', 'App\Policies\TagPolicy@viewAny'); Gate::define('delete_tag', 'App\Policies\TagPolicy@delete'); Gate::define('edit_tag', 'App\Policies\TagPolicy@update'); Gate::define('create_tag', 'App\Policies\TagPolicy@create'); // policy rule controller Gate::define('list_rule', 'App\Policies\AuthorizationRulePolicy@viewAny'); Gate::define('delete_rule', 'App\Policies\AuthorizationRulePolicy@delete'); Gate::define('edit_rule', 'App\Policies\AuthorizationRulePolicy@update'); Gate::define('create_rule', 'App\Policies\AuthorizationRulePolicy@create'); // policy translator controller Gate::define('list_translator', 'App\Policies\TranslatorPolicy@viewAny'); Gate::define('delete_translator', 'App\Policies\TranslatorPolicy@delete'); Gate::define('edit_translator', 'App\Policies\TranslatorPolicy@update'); Gate::define('create_translator', 'App\Policies\TranslatorPolicy@create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerServices()\n {\n $this->app->bind(SocialProvidersManager::class, SocialiteProvidersManager::class);\n\n $this->app->singleton(TwoFactor::class, function () {\n return new AuthyTwoFactor(new Client());\n });\n }", "private function registerServices(...
[ "0.7238336", "0.71634316", "0.70841175", "0.6916285", "0.6882426", "0.68549484", "0.6853438", "0.6812384", "0.6786827", "0.6771727", "0.6648215", "0.66145295", "0.6606313", "0.6571872", "0.65712136", "0.65602577", "0.65544224", "0.65215147", "0.65081686", "0.64967656", "0.647...
0.0
-1
checked of de gebruikersnaam bestaat uit een selectie van tekens
function invalidUid($uid) { $result; if (!preg_match("/^[a-zA-Z0-9]*$/", $uid)) { $result = true; } else { $result = false; } return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _generateSelection()\n {\n $i = 0;\n foreach ($_POST as $key=>$value) {\n echo \"<input type='hidden' name=$key value=$value required>\";\n echo \"<div class='form-group'>\";\n if (isset($value) && $this->\n _childexists($value, $this->_getR...
[ "0.6385076", "0.627511", "0.6228151", "0.62104064", "0.614142", "0.6098754", "0.6084618", "0.6071072", "0.6070329", "0.6044004", "0.6022828", "0.60216266", "0.60197765", "0.6010798", "0.59949523", "0.59841025", "0.59823984", "0.5953189", "0.59356254", "0.59268", "0.5910984", ...
0.0
-1
checked of de email echt is
function invalidEmail($email) { $result; if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { $result = true; } else { $result = false; } return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function verifica_email ($email)\r\n{\r\n\t$retorno = true;\r\n\r\n\t/* Aqui estaria el codigo para verificar \r\n\tla direccion de correo */\r\n\r\n\treturn $retorno;\r\n}", "public function checkEmail() {\n $result = $this->model->checkEmail($_POST);\n if($result) {\n echo \"true\"; ...
[ "0.7424626", "0.7226652", "0.7107888", "0.70908064", "0.69966036", "0.69957024", "0.6990746", "0.6970759", "0.6969416", "0.688915", "0.688703", "0.68831265", "0.6853644", "0.6821015", "0.6813015", "0.6786768", "0.67865324", "0.67807055", "0.67675674", "0.67668885", "0.6754901...
0.0
-1
checked of het wachtwoord de tweede keer het zelfde is als de eerste keer
function pwdMatch($pwd, $pwdRepeat) { $result; if ($pwd !== ($pwdRepeat)) { $result = true; } else { $result = false; } return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function scheckAusdruck()\r\n {\r\n foreach ($this->belegschaft as $schluessel=>$wert)\r\n $this->belegschaft[$schluessel]->scheckAusdruck();\r\n }", "public function afmelden()\n {\n return true;\n }", "function valid(){ \r\n\t return $this->valid; \r\n\t }", "private functio...
[ "0.6268083", "0.5998073", "0.5849192", "0.57507366", "0.57208544", "0.56841224", "0.56165564", "0.5611577", "0.5608521", "0.5584466", "0.55815244", "0.55780184", "0.55712974", "0.5564555", "0.55350125", "0.55350125", "0.55350125", "0.55350125", "0.55350125", "0.55342805", "0....
0.0
-1
check of de gebruikersnaam / email al in de database is
function uidExists($conn, $uid, $email) { $sql= "SELECT * FROM users WHERE user_uid = ? OR user_email = ?;"; $stmt = mysqli_stmt_init($conn); if (!mysqli_stmt_prepare($stmt, $sql)) { header("location: ../signup.php?error=stmtfailed"); exit(); } mysqli_stmt_bind_param($stmt, "ss", $uid, $email); mysqli_stmt_execute($stmt); $resultData = mysqli_stmt_get_result($stmt); if ($row = mysqli_fetch_assoc($resultData)) { return $row; } else { $result = false; return $result; } mysqli_stmt_close($stmt); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkUsername_Email(){\n\t\t\t$value = $_POST[\"value\"];\n\t\t\t$field = $_POST[\"field\"];\n\t\t\t//echo \"$value\".' '.$field;\n\t\t\t$query = $this->db->query(\"SELECT $field FROM users WHERE $field='$value' LIMIT 1\");\n\t\t\t$valid = $query->num_rows();\n\t\t\tif($valid == 0){\n\t\t\t\tif($field == ...
[ "0.72788227", "0.71798843", "0.7111299", "0.7093929", "0.70771784", "0.701301", "0.6975808", "0.69658124", "0.6926459", "0.6905618", "0.6900948", "0.6898198", "0.6865432", "0.68601996", "0.6852319", "0.6848695", "0.6834717", "0.68335", "0.682285", "0.68000185", "0.6791388", ...
0.0
-1
this up() migration is autogenerated, please modify it to your needs
public function up(Schema $schema) : void { $this->addSql('CREATE TABLE job (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE level (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, description VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE logbook (id INT AUTO_INCREMENT NOT NULL, task VARCHAR(255) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE project (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, resume LONGTEXT NOT NULL, max_participant INT NOT NULL, is_moderated TINYINT(1) NOT NULL, picture VARCHAR(255) DEFAULT NULL, owner_participes TINYINT(1) NOT NULL, link VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE project_description (id INT AUTO_INCREMENT NOT NULL, purpose LONGTEXT NOT NULL, target LONGTEXT NOT NULL, learning_skill LONGTEXT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE realization (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, screen VARCHAR(255) NOT NULL, screen2 VARCHAR(255) DEFAULT NULL, repo_link VARCHAR(255) DEFAULT NULL, website_link VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE rhythm (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, description VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE role (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE techno (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, logo VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE user (id INT AUTO_INCREMENT NOT NULL, username VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, avatar VARCHAR(255) DEFAULT NULL, password VARCHAR(255) NOT NULL, school VARCHAR(255) DEFAULT NULL, status TINYINT(1) NOT NULL, is_active TINYINT(1) NOT NULL, is_banned TINYINT(1) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE user_description (id INT AUTO_INCREMENT NOT NULL, journey VARCHAR(255) NOT NULL, purpose LONGTEXT NOT NULL, about_me LONGTEXT DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); }
{ "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.80062366", "0.79145443", "0.79145443", "0.79145443", "0.7572342", "0.756089", "0.75283176", "0.7498379", "0.7493237", "0.7453656", "0.74463314", "0.7433381", "0.74307704", "0.7427088", "0.741794", "0.73779047", "0.7374933", "0.7370453", "0.73637444", "0.73505706", "0.73290...
0.0
-1
this down() migration is autogenerated, please modify it to your needs
public function down(Schema $schema) : void { $this->addSql('DROP TABLE job'); $this->addSql('DROP TABLE level'); $this->addSql('DROP TABLE logbook'); $this->addSql('DROP TABLE project'); $this->addSql('DROP TABLE project_description'); $this->addSql('DROP TABLE realization'); $this->addSql('DROP TABLE rhythm'); $this->addSql('DROP TABLE role'); $this->addSql('DROP TABLE techno'); $this->addSql('DROP TABLE user'); $this->addSql('DROP TABLE user_description'); }
{ "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
Pega Cadastros Json e a quantidade Cadastros
function dadosCadastros(){//função geral que será chamada na index pegaCadastrosJson();//pega os valores dos cadastros do arquivo JSON e salva em um array contaNumeroCadastros();//conta Quantos cadastros existem }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function JsonDioceses() {\n $o_data = new Db();\n $qr_result = $o_data->query(\"select grandsparents.idno, CASE objects.status WHEN 0 THEN \\\"en attente\\\" WHEN 1 THEN \\\"en cours\\\" WHEN 2 THEN \\\"à valider\\\" WHEN 3 THEN \\\"validé\\\" ELSE \\\"valeur incohérente\\\" END as sta...
[ "0.6675821", "0.66495305", "0.613673", "0.61215544", "0.6106267", "0.6022452", "0.60204196", "0.59142363", "0.591039", "0.58281165", "0.5822874", "0.58040595", "0.5770068", "0.5758333", "0.5743197", "0.56932783", "0.56923753", "0.56894803", "0.5661595", "0.5658608", "0.565688...
0.659856
2
pega os valores dos cadastros do arquivo JSON e salva em um array
function pegaCadastrosJson(){ $arquivo = file_get_contents('json/cadastros.json');//arquivo Json que será pego $GLOBALS['cadastros'] = json_decode($arquivo);//salva no array global cadastros os cadastros $cadastrosLocal = $GLOBALS['cadastros']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getJsonArray(){\n return json_decode(file_get_contents($this->jsonFileLink), true); //return [Array]\n }", "public function buscarUsuarios(){\n $usuarios = file_get_contents('usuarios.json');\n $arrUsuariosJSON = explode(PHP_EOL,$usuarios);\n $arrUsuarioPHP = [];\n array_pop($arrU...
[ "0.6715439", "0.65858215", "0.6408558", "0.64028347", "0.63376933", "0.62414634", "0.61097026", "0.60281396", "0.60128105", "0.6012685", "0.59316826", "0.5928342", "0.59181595", "0.5902828", "0.5899004", "0.5886417", "0.587656", "0.58518636", "0.58345914", "0.5833715", "0.582...
0.6407289
3
conta Quantos cadastros existem
function contaNumeroCadastros(){ if ($GLOBALS['cadastros'] == null) {//se não tiver nenhum cadastro $GLOBALS['quantidadeCadastros'] = 0;//numero de pessoas cadastradas = 0 }else{ $GLOBALS['quantidadeCadastros'] = count($GLOBALS['cadastros']);//salva na variavel global quantidadeCadastros o número de cadastros } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function exists() {\r\n\t\t$sql_inicio \t= \" select * from \".$this->table.\" where \";\r\n\t\t$sql_fim \t\t= \" \".($this->get($this->pk) ? \" and \".$this->pk.\" <> \".$this->get($this->pk) : \"\").\" limit 1 \";\r\n\t\t\r\n\t\t$sql \t= \"con_id = \".$this->get(\"con_id\").\" and exa_id = \".$this->get(\"exa_id...
[ "0.6929068", "0.6867789", "0.6844026", "0.67060053", "0.66223437", "0.6521675", "0.6474034", "0.6471477", "0.6461207", "0.6458138", "0.64101833", "0.6388594", "0.6263312", "0.6216533", "0.61955225", "0.618811", "0.6165938", "0.6149854", "0.6143259", "0.6133398", "0.61196977",...
0.0
-1
Cria o objeto button Alterar que recebe o indice do cadastro que vai alterar
function botaoAlterar($indiceCadastro){ echo " <form method='post'> <button type='submit' class='btn btn-outline-warning btn-sm' name='botaoAlterar' value='$indiceCadastro'><i class='material-icons'>create</i></button> </form>";//o botão vai receber o valor do indice correspondente a sua linha na tabela de cadastros }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function makeInputButton() {}", "public function editar()\n {\n }", "function bt_alterar_naoClick($sender, $params)\r\n {\r\n\r\n $this->hd_alterar_produto_numero->Value = '';\r\n $this->hd_alterar_produto_codigo->Value = '';\r\n $this->hd_alterar_produto_referencia->Value = '';\r...
[ "0.63423556", "0.6075979", "0.6075357", "0.6016722", "0.6013879", "0.59494007", "0.5862443", "0.57042223", "0.57017875", "0.56977326", "0.56298447", "0.55922425", "0.55315554", "0.5508346", "0.54967076", "0.5489526", "0.54884547", "0.5483526", "0.5483503", "0.5466931", "0.546...
0.6786495
0
Cria o objeto button Excluir que recebe o indice do cadastro que vai exluir
function botaoExcluir($indiceCadastro){ echo " <form method='post'> <button type='submit' class='btn btn-outline-danger btn-sm' name='botaoExcluir' value='$indiceCadastro'><i class='material-icons'>delete</i></button> </form>";//o botão vai receber o valor do indice correspondente a sua linha na tabela de cadastros }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function constructArrayButton()\n { \n //- récupération des boutons par défaut\n $arra_bouton=parent::constructArrayButton();\n \n //- suppression des boutons superflus\n unset($arra_bouton['actionNew']);\n \n //- récupération du modèle\n $obj_model=$this->getModel();\n \n //...
[ "0.6407595", "0.63540125", "0.6066336", "0.6055818", "0.60145456", "0.5934676", "0.5910406", "0.5889683", "0.5886843", "0.5843326", "0.5794188", "0.5752889", "0.57228434", "0.56750494", "0.5661908", "0.5626699", "0.5594251", "0.5558798", "0.5547617", "0.5538189", "0.553598", ...
0.5961643
5