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
============================ Getter & Setter ================================
public function getFileList() { return $this->fileList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function value()\n {\n }", "protected function __init__() { }", "public function setData() \n {\n // Empty, to be overridden \n }", "abstract public function get();", "abstract public function get();", "abstract public function get();", "abstract public functi...
[ "0.66932505", "0.65024287", "0.64458835", "0.64026207", "0.64026207", "0.64026207", "0.64026207", "0.64026207", "0.64026207", "0.64006186", "0.6399275", "0.63874996", "0.63874996", "0.63874996", "0.6367996", "0.6367996", "0.6367996", "0.6367996", "0.6367996", "0.63677704", "0...
0.0
-1
Get the prepared query.
public function getQuery() { return $this->query; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function prepare ($sql) {\n $this->query = $this->conn->prepare($sql);\n return $this->query;\n }", "protected function getStatement()\n\t{\n\t\tif (!isset($this->statement)) {\n\t\t\t$this->statement = $this->query->execute();\n\t\t}\n\n\t\treturn $this->statement;\n\t}", "...
[ "0.6924066", "0.6894078", "0.6860894", "0.683684", "0.68015456", "0.6790052", "0.67423975", "0.666574", "0.662164", "0.6617027", "0.6606028", "0.65688884", "0.6531254", "0.65259767", "0.651858", "0.65165323", "0.6500339", "0.6493874", "0.64797777", "0.6449437", "0.6442156", ...
0.62455636
62
Set the prepared query.
public function setQuery(SearchQueryInterface $query) { $this->query = $query; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _prepareQuery() \n\t{\n\t\t\t// Establish connection to the database if not already connected\n\t\tif (! $this->_connection || empty($this->_connection)) {\n\t\t\t\n\t\t\t // retrieve the database configuration from the registry\n\t\t\t$config = Registry::getSetting('dbConfig');\n\t\t\t\n\t\t\t$t...
[ "0.7215524", "0.7029267", "0.6962272", "0.68686205", "0.68474835", "0.6839244", "0.6771084", "0.67177594", "0.6673548", "0.6638473", "0.6616246", "0.66161925", "0.6562165", "0.6553815", "0.65346503", "0.6531755", "0.6462597", "0.6450706", "0.6449676", "0.6365678", "0.63627774...
0.0
-1
Adds additional entries to the `dependencies` option.
public function addDependencies(array $dependencies) { $this->add('dependencies', $dependencies); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add_dependencies(self ...$plugins): static;", "public function configureDependencies(DependencyBuilder $dependencies)\n {\n }", "public function addDevDependencies(array $dependencies)\n {\n $this->add('devDependencies', $dependencies);\n }", "public function add($field, ar...
[ "0.6254967", "0.6019367", "0.6013622", "0.59439564", "0.5775454", "0.57066584", "0.56225526", "0.556659", "0.5558864", "0.54927766", "0.5428987", "0.5427373", "0.54099107", "0.5399456", "0.53858376", "0.5379771", "0.5350694", "0.5330845", "0.53156006", "0.5287463", "0.5239191...
0.6559166
0
Adds additional entries to the `devDependencies` option.
public function addDevDependencies(array $dependencies) { $this->add('devDependencies', $dependencies); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function addRequirePackages()\n {\n $devPackages = [\n \"orangehill/iseed:*\",\n \"barryvdh/laravel-debugbar:*\",\n \"barryvdh/laravel-ide-helper:*\",\n \"laravel/dusk:*\",\n \"mediactive-digital/laravel:*\",\n \"mediactive-digital...
[ "0.5920187", "0.58762705", "0.55962074", "0.5414203", "0.5285141", "0.525705", "0.5253719", "0.52028227", "0.5188637", "0.5140187", "0.51334393", "0.5119874", "0.51079035", "0.5081996", "0.50043845", "0.49999052", "0.49728587", "0.49551252", "0.49512973", "0.49407893", "0.492...
0.6786218
0
Adds additional entries to the specifed option field.
public function add($field, array $dependencies) { if (! file_exists($this->file)) { throw new RuntimeException("Could not add dependencies, `package.json` file do not exists."); } $packages = json_decode(file_get_contents($this->file), true); $packages[$field] = $depen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function add_option() {\n\t\tFrmAppHelper::permission_check('frm_edit_forms');\n check_ajax_referer( 'frm_ajax', 'nonce' );\n\n\t\t$id = FrmAppHelper::get_post_param( 'field_id', 0, 'absint' );\n\t\t$opt_type = FrmAppHelper::get_post_param( 'opt_type', '', 'sanitize_text_field' );\n\t\t$opt_ke...
[ "0.70371526", "0.68228126", "0.61906844", "0.6183079", "0.6150025", "0.6078163", "0.60629195", "0.6051076", "0.59929407", "0.5958412", "0.5910745", "0.5901721", "0.5893534", "0.58824867", "0.58562297", "0.5826155", "0.57709146", "0.5728315", "0.5722235", "0.56976545", "0.5657...
0.0
-1
Ajoute un commentaire dans la base
public function ajouterCommentaire($auteur, $contenu, $idBillet) { $auteur = htmlspecialchars($auteur); $contenu = htmlspecialchars($contenu); $sql = 'insert into T_COMMENTAIRE(COM_DATE, COM_AUTEUR, COM_CONTENU, BIL_ID)' . ' values(?, ?, ?, ?)'; $date = date('Y-m-d H:i:s'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newComment() {\n $datas['chapter_id'] = abs((int) $_GET['id']);\n $datas['author'] = trim(htmlspecialchars((string) $_POST['newCommentAuthor']));\n $datas['content'] = trim(htmlspecialchars((string) $_POST['newCommentContent']));\n\n if (!empty($datas['content']) && !emp...
[ "0.79880214", "0.7784113", "0.77723134", "0.76240325", "0.7566278", "0.752385", "0.746227", "0.7308154", "0.7237351", "0.7188518", "0.71516883", "0.711195", "0.71088654", "0.6967265", "0.6964983", "0.6957858", "0.695572", "0.695048", "0.6938989", "0.69223917", "0.69221413", ...
0.69132334
22
Initializes internal state of \Base\SceneQuery object.
public function __construct($dbName = 'default', $modelName = '\\Scene', $modelAlias = null) { parent::__construct($dbName, $modelName, $modelAlias); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function initQuery()\n {\n $this->_lastSql = null;\n $this->_limit = null;\n $this->_offset = null;\n $this->_order = array();\n $this->_group = array();\n $this->_table = null;\n $this->_stmt = null;\n\n $this->fromStates = array();\n $this...
[ "0.688643", "0.6439422", "0.64157087", "0.6093379", "0.6022119", "0.6022032", "0.60040224", "0.59194124", "0.590228", "0.58821404", "0.58643126", "0.58297193", "0.5816773", "0.5799564", "0.5783062", "0.57711756", "0.5756152", "0.5725221", "0.5716256", "0.5691218", "0.56696355...
0.0
-1
Returns a new ChildSceneQuery object.
public static function create($modelAlias = null, Criteria $criteria = null) { if ($criteria instanceof ChildSceneQuery) { return $criteria; } $query = new ChildSceneQuery(); if (null !== $modelAlias) { $query->setModelAlias($modelAlias); } if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newQuery()\n {\n return new self($this->connection, $this->grammar, $this->getProcessor());\n }", "public function newQuery()\n {\n return new self($this->connection, $this->processor);\n }", "public function newQuery()\n {\n return new Builder($this->connect...
[ "0.6505681", "0.640673", "0.6110617", "0.6085378", "0.6069112", "0.6066955", "0.6052147", "0.5975013", "0.59730196", "0.5951865", "0.5949716", "0.58735996", "0.58502924", "0.58502924", "0.5792401", "0.57857966", "0.5739411", "0.57386684", "0.5725852", "0.570643", "0.567539", ...
0.60312295
7
Find object by primary key. Propel uses the instance pool to skip the database if the object exists. Go fast if the query is untouched. $obj = $c>findPk(12, $con);
public function findPk($key, ConnectionInterface $con = null) { if ($key === null) { return null; } if ((null !== ($obj = SceneTableMap::getInstanceFromPool((string) $key))) && !$this->formatter) { // the object is already in the instance pool return $obj;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = RepositoryPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\...
[ "0.76265174", "0.76265174", "0.75664645", "0.754793", "0.7544529", "0.75244766", "0.75094545", "0.74987614", "0.7489247", "0.7463317", "0.74447244", "0.744311", "0.74354047", "0.7418473", "0.74130696", "0.74127275", "0.7406839", "0.73934567", "0.7375753", "0.73711663", "0.736...
0.0
-1
Find object by primary key using raw SQL to go fast. Bypass doSelect() and the object formatter by using generated code.
protected function findPkSimple($key, ConnectionInterface $con) { $sql = 'SELECT scene_id, name, description, update_time, update_user FROM scene WHERE scene_id = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); $stmt->execut...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function returnFindByPK($id);", "public abstract function find($primary_key, $model);", "public function select(){\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\t\t\t\r\n\t\t\tif (! isset ( $this->id )) { \r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$...
[ "0.674225", "0.67316544", "0.671312", "0.6686858", "0.6600325", "0.64460266", "0.63715494", "0.63658243", "0.6340358", "0.6323407", "0.6282629", "0.6282629", "0.62683886", "0.625569", "0.6250142", "0.62261707", "0.62005794", "0.61881745", "0.61780864", "0.61757374", "0.617512...
0.0
-1
Find object by primary key.
protected function findPkComplex($key, ConnectionInterface $con) { // As the query uses a PK condition, no limit(1) is necessary. $criteria = $this->isKeepQuery() ? clone $this : $this; $dataFetcher = $criteria ->filterByPrimaryKey($key) ->doSelect($con); ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function returnFindByPK($id);", "public abstract function find($primary_key, $model);", "public static function find($primary_key)\n {\n return static::select()\n ->where(static::getPrimaryKey(), $primary_key)\n ->fetchOne();\n }", "public static function fin...
[ "0.81539774", "0.7867759", "0.7742976", "0.7725865", "0.7634623", "0.7554392", "0.7401224", "0.7310899", "0.7229907", "0.7208223", "0.7153336", "0.7110828", "0.7093999", "0.707613", "0.70712215", "0.7046294", "0.7036454", "0.70232224", "0.69681656", "0.6949603", "0.69344795",...
0.0
-1
Find objects by primary key $objs = $c>findPks(array(12, 56, 832), $con);
public function findPks($keys, ConnectionInterface $con = null) { if (null === $con) { $con = Propel::getServiceContainer()->getReadConnection($this->getDbName()); } $this->basePreSelect($con); $criteria = $this->isKeepQuery() ? clone $this : $this; $dataFetcher =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findPk($pk)\r\n {\r\n $pkColumns = $this->getObject()->getTable()->getIdentifierColumnNames();\r\n if(($count = count($pkColumns)) > 1)\r\n {\r\n // composite primary key\r\n if(!is_array($pk))\r\n {\r\n throw new Exception(sprintf('Class %s has a composite primary k...
[ "0.7208273", "0.7026064", "0.7026064", "0.7026064", "0.7026064", "0.7026064", "0.7026064", "0.7026064", "0.7026064", "0.7026064", "0.70093274", "0.70093274", "0.691215", "0.691215", "0.691215", "0.691215", "0.691215", "0.691215", "0.691215", "0.691215", "0.691215", "0.69121...
0.0
-1
Filter the query by primary key
public function filterByPrimaryKey($key) { return $this->addUsingAlias(SceneTableMap::COL_SCENE_ID, $key, Criteria::EQUAL); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(RepositoryPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(RepositoryPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t...
[ "0.6998814", "0.6998814", "0.6787939", "0.67724454", "0.6746847", "0.67268467", "0.67149204", "0.66994244", "0.6679747", "0.66293436", "0.65891814", "0.65612423", "0.6559797", "0.6545799", "0.64770174", "0.6467542", "0.64436316", "0.6443316", "0.64338726", "0.64306927", "0.64...
0.0
-1
Filter the query by a list of primary keys
public function filterByPrimaryKeys($keys) { return $this->addUsingAlias(SceneTableMap::COL_SCENE_ID, $keys, Criteria::IN); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(ActividadPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(RepositoryPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n\t{\n\...
[ "0.71649146", "0.71554565", "0.71554565", "0.702131", "0.69704026", "0.69640625", "0.6959535", "0.69581085", "0.69568676", "0.6947917", "0.6936726", "0.6933796", "0.6914574", "0.6899884", "0.6896012", "0.6879734", "0.68639565", "0.6853219", "0.68508005", "0.68174595", "0.6808...
0.0
-1
Filter the query on the scene_id column Example usage: $query>filterBySceneId(1234); // WHERE scene_id = 1234 $query>filterBySceneId(array(12, 34)); // WHERE scene_id IN (12, 34) $query>filterBySceneId(array('min' => 12)); // WHERE scene_id > 12
public function filterBySceneId($sceneId = null, $comparison = null) { if (is_array($sceneId)) { $useMinMax = false; if (isset($sceneId['min'])) { $this->addUsingAlias(SceneTableMap::COL_SCENE_ID, $sceneId['min'], Criteria::GREATER_EQUAL); $useMinMax =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(SceneTableMap::COL_SCENE_ID, $key, Criteria::EQUAL);\n }", "public function filterId(int $id): self;", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(SceneTableMap::COL_SCENE_ID,...
[ "0.62507355", "0.52833366", "0.5076601", "0.5074339", "0.50417024", "0.49674606", "0.48690894", "0.48471305", "0.482481", "0.4824601", "0.48025548", "0.47710732", "0.47683024", "0.47671998", "0.47402745", "0.47310618", "0.47300684", "0.47291607", "0.47286707", "0.47137916", "...
0.62240636
1
Filter the query on the name column Example usage: $query>filterByName('fooValue'); // WHERE name = 'fooValue' $query>filterByName('%fooValue%'); // WHERE name LIKE '%fooValue%'
public function filterByName($name = null, $comparison = null) { if (null === $comparison) { if (is_array($name)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $name)) { $name = str_replace('*', '%', $name); $comparison...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByName($name)\n {\n $name = (string) $name;\n if ($name !== '') {\n $this->query->andWhere($this->query->expr()->like('b.name', $this->query->createNamedParameter('%' . addcslashes($name, '%_\\\\') . '%')));\n }\n }", "public function filterByName($filt...
[ "0.7560682", "0.70978594", "0.67135376", "0.67033", "0.6342645", "0.63185567", "0.6304595", "0.6302433", "0.6166413", "0.61547184", "0.6124989", "0.61144906", "0.6100394", "0.6098749", "0.6090962", "0.6059548", "0.600586", "0.5995159", "0.5995159", "0.5971277", "0.5961557", ...
0.5472418
70
Filter the query on the description column Example usage: $query>filterByDescription('fooValue'); // WHERE description = 'fooValue' $query>filterByDescription('%fooValue%'); // WHERE description LIKE '%fooValue%'
public function filterByDescription($description = null, $comparison = null) { if (null === $comparison) { if (is_array($description)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $description)) { $description = str_replace('*', '%', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addFilter($description, $value) {\n $this->callMethod( 'addFilter', array($description, $value) );\n }", "public function filterByDescription($description = null, $comparison = null)\n\t{\n\t\tif (null === $comparison) {\n\t\t\tif (is_array($description)) {\n\t\t\t\t$comparison = Criter...
[ "0.6368608", "0.63634586", "0.624017", "0.608958", "0.60247576", "0.5812391", "0.5779115", "0.5748133", "0.5744105", "0.5744105", "0.5744105", "0.5744105", "0.5744105", "0.5744105", "0.5736533", "0.5695035", "0.56949794", "0.5599126", "0.5551501", "0.55424416", "0.5535576", ...
0.5500863
21
Filter the query on the update_time column Example usage: $query>filterByUpdateTime('20110314'); // WHERE update_time = '20110314' $query>filterByUpdateTime('now'); // WHERE update_time = '20110314' $query>filterByUpdateTime(array('max' => 'yesterday')); // WHERE update_time > '20110313'
public function filterByUpdateTime($updateTime = null, $comparison = null) { if (is_array($updateTime)) { $useMinMax = false; if (isset($updateTime['min'])) { $this->addUsingAlias(SceneTableMap::COL_UPDATE_TIME, $updateTime['min'], Criteria::GREATER_EQUAL); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _filter(&$values) {\n\t\tif (is_array($values)) {\n\t\t\tforeach (array_keys($values) as $key) {\n\t\t\t\tif (!isset($values[$key]['TS_UPDATE']) || $values[$key]['TS_UPDATE'] < time()-1800) {\n\t\t\t\t\tunset($values[$key]);\n\t\t\t\t\t$this->save();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function se...
[ "0.56800145", "0.53627783", "0.53627783", "0.5306349", "0.5267168", "0.5168976", "0.51090264", "0.50715184", "0.50715184", "0.50715184", "0.50586724", "0.5045774", "0.50454605", "0.5031505", "0.5024032", "0.50046545", "0.49969956", "0.49418426", "0.49378103", "0.49208996", "0...
0.5944986
0
Filter the query on the update_user column Example usage: $query>filterByUpdateUser('fooValue'); // WHERE update_user = 'fooValue' $query>filterByUpdateUser('%fooValue%'); // WHERE update_user LIKE '%fooValue%'
public function filterByUpdateUser($updateUser = null, $comparison = null) { if (null === $comparison) { if (is_array($updateUser)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $updateUser)) { $updateUser = str_replace('*', '%', $upda...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getFilterForUpdate() \n\t{\n\t\t\n\t\t$inputFilter = new InputFilter();\n\t\t$factory = new InputFactory();\n\n\t\t$inputFilter->add($factory->createInput(array(\n\t\t\t'name' => 'user_login',\n\t\t\t'required' => true,\n\t\t\t'filters' => array(\n\t\t\t\tarray('name' => 'StringTrim'),\n\t\t\t),...
[ "0.5791718", "0.57721555", "0.5631774", "0.5541098", "0.5477778", "0.54755574", "0.54297024", "0.5384514", "0.528031", "0.52615607", "0.5222948", "0.5222948", "0.5222948", "0.5222948", "0.5222948", "0.5222948", "0.5222948", "0.5212269", "0.5210361", "0.5209833", "0.5164055", ...
0.5861497
0
Filter the query by a related \MapPersonaScene object
public function filterByMapPersonaScene($mapPersonaScene, $comparison = null) { if ($mapPersonaScene instanceof \MapPersonaScene) { return $this ->addUsingAlias(SceneTableMap::COL_SCENE_ID, $mapPersonaScene->getSceneId(), $comparison); } elseif ($mapPersonaScene instanceo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function useMapPersonaSceneQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n {\n return $this\n ->joinMapPersonaScene($relationAlias, $joinType)\n ->useQuery($relationAlias ? $relationAlias : 'MapPersonaScene', '\\MapPersonaSceneQuery');\n }", "public func...
[ "0.54730433", "0.5197914", "0.5097243", "0.50766087", "0.48317218", "0.48317087", "0.47960627", "0.4783737", "0.4753286", "0.46761486", "0.46754092", "0.46463284", "0.46200293", "0.4574407", "0.4574407", "0.45592752", "0.45568585", "0.4549957", "0.45219433", "0.45147", "0.444...
0.6585563
0
Adds a JOIN clause to the query using the MapPersonaScene relation
public function joinMapPersonaScene($relationAlias = null, $joinType = Criteria::INNER_JOIN) { $tableMap = $this->getTableMap(); $relationMap = $tableMap->getRelation('MapPersonaScene'); // create a ModelJoin object for this join $join = new ModelJoin(); $join->setJoinType($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function useMapPersonaSceneQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n {\n return $this\n ->joinMapPersonaScene($relationAlias, $joinType)\n ->useQuery($relationAlias ? $relationAlias : 'MapPersonaScene', '\\MapPersonaSceneQuery');\n }", "function jo...
[ "0.64306664", "0.61106324", "0.54919666", "0.5321662", "0.5220364", "0.5171112", "0.5169157", "0.5107228", "0.50678325", "0.5047034", "0.50247025", "0.49837273", "0.49828842", "0.49648666", "0.4959554", "0.49576846", "0.49555716", "0.49517184", "0.4924939", "0.49187684", "0.4...
0.6444587
0
Use the MapPersonaScene relation MapPersonaScene object
public function useMapPersonaSceneQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) { return $this ->joinMapPersonaScene($relationAlias, $joinType) ->useQuery($relationAlias ? $relationAlias : 'MapPersonaScene', '\MapPersonaSceneQuery'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByMapPersonaScene($mapPersonaScene, $comparison = null)\n {\n if ($mapPersonaScene instanceof \\MapPersonaScene) {\n return $this\n ->addUsingAlias(SceneTableMap::COL_SCENE_ID, $mapPersonaScene->getSceneId(), $comparison);\n } elseif ($mapPersonaScen...
[ "0.56253654", "0.536894", "0.5115428", "0.50961757", "0.49142268", "0.48397383", "0.47591463", "0.47172597", "0.4675194", "0.4632635", "0.4595656", "0.4592078", "0.4592078", "0.45777825", "0.45762852", "0.45491594", "0.45052046", "0.44714245", "0.4466808", "0.44501486", "0.44...
0.6763629
0
Filter the query by a related \MapSceneRewcat object
public function filterByMapSceneRewcat($mapSceneRewcat, $comparison = null) { if ($mapSceneRewcat instanceof \MapSceneRewcat) { return $this ->addUsingAlias(SceneTableMap::COL_SCENE_ID, $mapSceneRewcat->getSceneId(), $comparison); } elseif ($mapSceneRewcat instanceof Obje...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filter()\n\t{\n\t\tif (isset($_GET['cty']) AND (int) $_GET['cty'])\n\t\t{\n\t\t\t$db = new Database();\n\n\t\t\t$county_id = (int) $_GET['cty'];\n\t\t\t$sql = \"SELECT AsText(geometry) as geometry\n\t\t\t\t\tFROM \".Kohana::config('database.default.table_prefix').\"county \n\t\t\t\t\tWHERE id = ?\"...
[ "0.53861344", "0.5253743", "0.50893176", "0.5079959", "0.50666136", "0.504972", "0.49897018", "0.4985952", "0.48427886", "0.48067364", "0.4753822", "0.4690143", "0.46598023", "0.46537682", "0.46460527", "0.45941943", "0.45790404", "0.45775345", "0.4555746", "0.45546597", "0.4...
0.59226996
0
Adds a JOIN clause to the query using the MapSceneRewcat relation
public function joinMapSceneRewcat($relationAlias = null, $joinType = Criteria::INNER_JOIN) { $tableMap = $this->getTableMap(); $relationMap = $tableMap->getRelation('MapSceneRewcat'); // create a ModelJoin object for this join $join = new ModelJoin(); $join->setJoinType($jo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function joinQuery()\n {\n }", "public function useMapSceneRewcatQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n {\n return $this\n ->joinMapSceneRewcat($relationAlias, $joinType)\n ->useQuery($relationAlias ? $relationAlias : 'MapSceneRewcat', '\\Ma...
[ "0.65160954", "0.61171395", "0.5994133", "0.5908363", "0.5817801", "0.5733183", "0.5717281", "0.5608988", "0.55758846", "0.5525305", "0.5525228", "0.55057734", "0.54906815", "0.5464042", "0.54604936", "0.5443119", "0.5433904", "0.5425987", "0.5371865", "0.5321493", "0.5303664...
0.63426995
1
Use the MapSceneRewcat relation MapSceneRewcat object
public function useMapSceneRewcatQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) { return $this ->joinMapSceneRewcat($relationAlias, $joinType) ->useQuery($relationAlias ? $relationAlias : 'MapSceneRewcat', '\MapSceneRewcatQuery'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByMapSceneRewcat($mapSceneRewcat, $comparison = null)\n {\n if ($mapSceneRewcat instanceof \\MapSceneRewcat) {\n return $this\n ->addUsingAlias(SceneTableMap::COL_SCENE_ID, $mapSceneRewcat->getSceneId(), $comparison);\n } elseif ($mapSceneRewcat inst...
[ "0.57635933", "0.52916193", "0.49042577", "0.4808193", "0.45632565", "0.4550605", "0.45142904", "0.45066425", "0.45066425", "0.43429726", "0.43370283", "0.43021974", "0.42954674", "0.42588568", "0.42198515", "0.4217469", "0.41875795", "0.41775414", "0.41770405", "0.41746423", ...
0.6374434
0
Filter the query by a related \MapSceneStoreCategory object
public function filterByMapSceneStoreCategory($mapSceneStoreCategory, $comparison = null) { if ($mapSceneStoreCategory instanceof \MapSceneStoreCategory) { return $this ->addUsingAlias(SceneTableMap::COL_SCENE_ID, $mapSceneStoreCategory->getSceneId(), $comparison); } else...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function filterCategory()\n {\n if(empty($this->category) || $this->category === static::FILTER_CATEGORY_NONE) {\n return;\n }\n\n if($this->category === static::FILTER_CATEGORY_OTHER) {\n $this->query->andWhere(['LIKE', 'category', 'yii\\\\']);\n re...
[ "0.61245316", "0.5795205", "0.54388833", "0.54080635", "0.5310324", "0.53037584", "0.51992697", "0.515857", "0.5082083", "0.50504464", "0.5037116", "0.50092435", "0.49543518", "0.49331468", "0.49144766", "0.49113852", "0.49043414", "0.48971942", "0.48949262", "0.4886244", "0....
0.6510042
0
Adds a JOIN clause to the query using the MapSceneStoreCategory relation
public function joinMapSceneStoreCategory($relationAlias = null, $joinType = Criteria::INNER_JOIN) { $tableMap = $this->getTableMap(); $relationMap = $tableMap->getRelation('MapSceneStoreCategory'); // create a ModelJoin object for this join $join = new ModelJoin(); $join->s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function useMapSceneStoreCategoryQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n {\n return $this\n ->joinMapSceneStoreCategory($relationAlias, $joinType)\n ->useQuery($relationAlias ? $relationAlias : 'MapSceneStoreCategory', '\\MapSceneStoreCategoryQuery');...
[ "0.6256278", "0.5780101", "0.55464715", "0.5508541", "0.5336194", "0.5312877", "0.5299908", "0.51957047", "0.5000402", "0.49854267", "0.49719602", "0.49677968", "0.49652797", "0.49619377", "0.4960513", "0.49496529", "0.49472708", "0.49451014", "0.4917124", "0.48994577", "0.48...
0.65634227
0
Use the MapSceneStoreCategory relation MapSceneStoreCategory object
public function useMapSceneStoreCategoryQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) { return $this ->joinMapSceneStoreCategory($relationAlias, $joinType) ->useQuery($relationAlias ? $relationAlias : 'MapSceneStoreCategory', '\MapSceneStoreCategoryQuery'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setCategory($object) { \n /* you can itentify the item with $object->Item->ShopId */ \n}", "public function productCategoryMap(){\n\t\treturn $this->hasOne('App\\ProductCategoryMaps','product_id');\n\t}", "public function setCategory() {\n /**\n *\n * @todo make a separa...
[ "0.5841291", "0.56737554", "0.5660121", "0.564081", "0.55522436", "0.55522436", "0.55277133", "0.54719955", "0.5397655", "0.5324522", "0.53237915", "0.532295", "0.53157496", "0.53141874", "0.5284083", "0.52175844", "0.5213819", "0.52028006", "0.5202779", "0.5202779", "0.51830...
0.6095754
0
Exclude object from result
public function prune($scene = null) { if ($scene) { $this->addUsingAlias(SceneTableMap::COL_SCENE_ID, $scene->getSceneId(), Criteria::NOT_EQUAL); } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_all_exclude_id(){\n $data = get_object_vars($this);\n unset($data[\"id\"]);\n return $data;\n }", "protected function getExcludeFields() {}", "public function getAllExcept($id);", "public static function getExcludeFields() {}", "public function getExcludeQueryPar...
[ "0.6944959", "0.66654503", "0.6381618", "0.62979996", "0.628891", "0.62113446", "0.6191469", "0.6156899", "0.6141459", "0.61324584", "0.60281223", "0.60165423", "0.5956303", "0.59227616", "0.59098727", "0.5855696", "0.5848707", "0.58305067", "0.5769087", "0.57627815", "0.5682...
0.0
-1
Deletes all rows from the scene table.
public function doDeleteAll(ConnectionInterface $con = null) { if (null === $con) { $con = Propel::getServiceContainer()->getWriteConnection(SceneTableMap::DATABASE_NAME); } // use transaction because $criteria could contain info // for more than one table or we could em...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteAll(){\n try {\n $this->getTable()->delete();\n } catch (\\Exception $e) {\n $this->handleException($e);\n }\n return;\n }", "function deleteall() {\n\t\t$this->_query( \"DELETE FROM $0\" );\n\t}", "protected function deleteAll()\n {...
[ "0.7290502", "0.70480096", "0.6930507", "0.67548877", "0.6734376", "0.6725009", "0.6723652", "0.65539384", "0.65539384", "0.65539384", "0.65283173", "0.65130717", "0.6490685", "0.64865285", "0.6485865", "0.6455496", "0.6454708", "0.6449651", "0.6443803", "0.64252967", "0.6395...
0.0
-1
Performs a DELETE on the database based on the current ModelCriteria
public function delete(ConnectionInterface $con = null) { if (null === $con) { $con = Propel::getServiceContainer()->getWriteConnection(SceneTableMap::DATABASE_NAME); } $criteria = $this; // Set the correct dbName $criteria->setDbName(SceneTableMap::DATABASE_NAM...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteBy($criteria, $params = false)\n {\n $query = $this->model->query();\n\n /*== FILTER ==*/\n if (isset($params->filter)) {\n $filter = $params->filter;\n\n if (isset($filter->field))//Where field\n $field = $filter->field;\n }...
[ "0.71742123", "0.6940287", "0.6878338", "0.6871387", "0.6870411", "0.67544645", "0.67374706", "0.6723886", "0.67231476", "0.67134583", "0.6704745", "0.6659441", "0.66567934", "0.66559327", "0.66308695", "0.66101927", "0.6608142", "0.659862", "0.65924466", "0.65509707", "0.653...
0.0
-1
Create a new view instance. // Create a new view instance $view = new View('home.index'); // Create a new view instance of a bundle's view $view = new View('admin::home.index'); // Create a new view instance with bound data $view = new View('home.index', array('name' => 'Taylor'));
public function __construct($view, $data = array()) { Event::fire('orchestra.started: view'); $view = Theme::resolve()->parse($view); $this->view = $view; $this->data = $data; // In order to allow developers to load views outside of the normal loading // conventions, we'll allow for a raw ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function view($name_view){\n return new View($name_view);\n}", "public function createView(){\n\t\t$vue = new View(\"Create\");\n\t\t$vue->generer();\n\t}", "function __construct()\n {\n $this->view = new View(); \n }", "public function view(){\r\n\r\n\t$this->registry->template->blog_headin...
[ "0.74036056", "0.6990151", "0.6948996", "0.69027114", "0.68902916", "0.68635786", "0.68501335", "0.68501335", "0.6822354", "0.6822258", "0.67800826", "0.6771771", "0.67242604", "0.66825396", "0.66580737", "0.6635066", "0.66340137", "0.66088897", "0.6596603", "0.65809137", "0....
0.0
-1
/ | Default 404 page
public function pageNotFound() { $data['content'] = $this->load->view('backend/404/notFound', '', true); $this->load->view('dashboard_layout', $data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function notfound() {\n\t\t$this->fw->render('404');\n\t}", "public function action_404()\n\t{\n\t\t$this->template->title = '404 Not Found';\n\t\t$this->template->header_title = site_title($this->template->title);\n\t\t$this->template->content = View::forge('error/404');\n\t\t$this->response->status = 404;\n\t}...
[ "0.83574694", "0.8267631", "0.8238099", "0.8220821", "0.81490517", "0.8144881", "0.8117896", "0.81073153", "0.80780756", "0.8074733", "0.8071961", "0.8049352", "0.8008136", "0.7999048", "0.791967", "0.7918957", "0.79188925", "0.79167086", "0.7902099", "0.79005605", "0.7889271...
0.72850186
97
Optional constructor argument has been provided for backwards compatability. TODO: Consider it to not be optional in 4.x, BC
public function __construct(SessionEngineInterface $session = null) { $this->session = $session ?: new PhpEngine(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct($arg = null)\n {\n }", "private final function __construct() {}", "function __construct($arg0 = null) {\n\t}", "final private function __construct() {}", "final private function __construct() {}", "protected abstract function __construct();", "protected final function ...
[ "0.7205986", "0.7075132", "0.70221055", "0.7018512", "0.7018512", "0.6961811", "0.6878345", "0.6875533", "0.6875533", "0.6875533", "0.6873033", "0.6873033", "0.6872551", "0.68725264", "0.68725264", "0.68725264", "0.68725264", "0.68725264", "0.68725264", "0.68725264", "0.68725...
0.0
-1
Checks if session started
public function started(): bool { return $this->session->started(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function session_started(){\n\t\t\tif(isset($_SESSION) && session_id()){\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}", "public function isStarted(){\n\t\t\treturn isset( $_SESSION );\n\t\t}", "protected function sessionStarted() {\n\n return \\session_id() !== \"\" || \\se...
[ "0.8435823", "0.84339964", "0.8287164", "0.81270486", "0.81091356", "0.7996144", "0.79635715", "0.79631275", "0.79214627", "0.7860717", "0.76598203", "0.76568764", "0.76434326", "0.7626496", "0.75521904", "0.74800104", "0.74690205", "0.7395942", "0.7376816", "0.7353803", "0.7...
0.7743371
10
Sets and gets the session ID. New sessions will be started with this ID if it is a valid hexidemcial string with the same length as configured in Session.idLength
public function id(string $id = null) { if ($id === null) { return $this->session->id(); } if (! $this->session->started()) { $this->session->id($id); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateId() {\n $this->Id = session_id();\n }", "protected function set_session_id() {\n $this->sessionid = static::$sessionidmockup;\n }", "final function setSession_id($value) {\n\t\treturn $this->setSessionId($value);\n\t}", "public function get_session_id()\n ...
[ "0.72328407", "0.7065436", "0.6981813", "0.6813467", "0.6809063", "0.6770674", "0.6757281", "0.6728501", "0.67214084", "0.6709032", "0.67022544", "0.6700423", "0.6620656", "0.6613571", "0.6611518", "0.66015804", "0.6532502", "0.6526423", "0.65259004", "0.6512067", "0.6493659"...
0.6422949
30
Sets or gets the name. New sessions will be created with this id
public function name(string $name = null) { if ($name === null) { return $this->session->name(); } if (! $this->session->started()) { $this->session->name($name); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function setCurrentName($name) {\n Session::put(Privilege::SESSION_NAME_NAME, $name);\n }", "public function setName(string $name): void\n {\n session_name($name);\n }", "private function setName($name)\n {\n $session = new Zend_Session_Namespace('Unodor_Accou...
[ "0.79998034", "0.7661593", "0.7597834", "0.74118966", "0.7402539", "0.7344238", "0.7250525", "0.71150196", "0.7089861", "0.7067206", "0.6812387", "0.6810391", "0.67371744", "0.6694638", "0.66467214", "0.66435164", "0.6632918", "0.6629664", "0.6591485", "0.65524256", "0.653306...
0.7311073
6
Reads an item from the session
public function read(string $key, $default = null) { return $this->session->read($key, $default); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function read(string $name)\n {\n return $this->session()->read($name);\n }", "public static function Read($sessionid, $key);", "public function read(string $session_id)\n {\n }", "public function read() {\n\n try {\n $this->open();\n $fileHandle = fopen...
[ "0.6823653", "0.67266995", "0.66834855", "0.66744936", "0.6665238", "0.6632025", "0.65984213", "0.65935975", "0.6537237", "0.63527876", "0.6343315", "0.63387305", "0.6287014", "0.6247128", "0.62466514", "0.6216626", "0.62104845", "0.6200356", "0.61918485", "0.61811197", "0.61...
0.596817
31
Writes a value into the session, accepts dot notation
public function write(string $key, $value): void { $this->session->write($key, $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function write(string $name, $value): void\n {\n $this->session()->write($name, $value);\n }", "public function setValue($name, $value) {\n if (strpos($name, '->')) {\n $name = explode('->', $name, 2);\n $_SESSION[$name[0]][$name[1]] = serialize($value...
[ "0.6874833", "0.6698516", "0.6631728", "0.63473207", "0.63001645", "0.6299633", "0.6206894", "0.6145414", "0.61328804", "0.61146003", "0.611225", "0.6099091", "0.6096094", "0.60322535", "0.60182613", "0.6005788", "0.59970236", "0.598189", "0.5974623", "0.59569305", "0.5952167...
0.6788624
1
Checks if a key exists in the session
public function exists(string $key): bool { return $this->session->exists($key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function keyExists($key)\n {\n if (isset($_SESSION[$key])) {\n return true;\n }\n else {\n return false;\n }\n }", "public static function exists($key = \"\")\n\t{\n\t\tif(empty($key)) {\n\t\t\treturn false;\n\t...
[ "0.817908", "0.81336594", "0.8129862", "0.8044306", "0.8043965", "0.8010374", "0.8004572", "0.79649186", "0.79416645", "0.79416645", "0.7857791", "0.7834408", "0.78128517", "0.7810932", "0.7801226", "0.77910507", "0.7779032", "0.7612454", "0.7493532", "0.74776816", "0.7467966...
0.78497416
11
Deletes a key in the session
public function delete(string $key): bool { return $this->session->delete($key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function delete(string $key): void {\n\t\tself::$sessionInstance->delete ( $key );\n\t}", "public function delete($key)\n\t{\n\t\tunset($_SESSION[$key]);\n\t}", "public static function del($key) {\t\t\t\n\t\t\tif(isset($_SESSION[base64_encode(BASE_PATH.'_'.$key)]))\n\t\t\tunset($_SESSION[base64_e...
[ "0.84499407", "0.84224606", "0.827625", "0.8266195", "0.82585204", "0.8231618", "0.82116246", "0.81914514", "0.80130404", "0.79817563", "0.785809", "0.785535", "0.785535", "0.785535", "0.78541803", "0.78486556", "0.78026885", "0.7792469", "0.7773179", "0.77723366", "0.7726751...
0.73119587
32
Clears the session data
public function clear(): void { $this->session->clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function clear() {\n $_SESSION = array();\n\n // Destroy the session cookie and cookie header\n $sessionCookie = Cookie::loadCookie(session_name());\n $sessionCookie->unset();\n $sessionCookie->delete();\n\n // Clear out other possible values\n if (isset($_GET[session_name()]))\n ...
[ "0.85011107", "0.84386665", "0.84187394", "0.8414252", "0.8280842", "0.82295424", "0.8225159", "0.8167639", "0.8141959", "0.81023395", "0.807125", "0.80709845", "0.8032487", "0.79974014", "0.7947647", "0.79195285", "0.791609", "0.7858781", "0.78530055", "0.78288305", "0.78135...
0.8422579
2
Gets the session data as an array
public function toArray(): array { return $this->session->toArray(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get(): array\n {\n return session($this->sessionKey, []);\n }", "public function to_array() /*array*/\n {\n return $_SESSION[self::KEY];\n }", "private function getSessionData()\n {\n $session = Shopware()->Session();\n $sessionData = $session->getIter...
[ "0.8357069", "0.81819624", "0.8078636", "0.8069849", "0.7985134", "0.77018416", "0.76733875", "0.7570909", "0.74662596", "0.74065953", "0.73699516", "0.73189926", "0.7288434", "0.7242024", "0.72310865", "0.7223157", "0.72029644", "0.71379673", "0.7127504", "0.70879734", "0.70...
0.79399043
5
Quickpay will return a json object as the body
public function getResponseBody(){ if (is_string($this->data)){ // JSON is valid return $this->data; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function pay(): JsonResponse;", "public static function getJson()\n {\n return '{\"credit_card_id\":\"TestSample\",\"payer_id\":\"TestSample\",\"last4\":\"TestSample\",\"type\":\"TestSample\",\"expire_month\":123,\"expire_year\":123}';\n }", "function jsonSerialize() {\n return [...
[ "0.6975679", "0.6027713", "0.6019814", "0.5992985", "0.59398997", "0.58507484", "0.58489287", "0.5825267", "0.57986796", "0.5787133", "0.5776419", "0.5772957", "0.5771879", "0.57670623", "0.57630676", "0.56703794", "0.5658695", "0.5631877", "0.5630311", "0.5625119", "0.562103...
0.0
-1
Define the rotation value
public function setRotation($rotation) { $this->rotation = $rotation; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rotation($value) {\n return $this->setProperty('rotation', $value);\n }", "public function getRotation() {}", "public function getRotation() {}", "function setRotation( $r ) {\n\n // only 0,90,180,270\n if ( $r > 270 ) return;\n if ( $r % 90 != 0 ) return;\n\n $this->rotate ...
[ "0.7669374", "0.73732454", "0.7372722", "0.72917587", "0.7174715", "0.7172608", "0.6971963", "0.6614611", "0.6481834", "0.6359775", "0.629478", "0.629478", "0.629478", "0.6217216", "0.621382", "0.6192261", "0.61694515", "0.6121847", "0.6111367", "0.6055668", "0.60412", "0.5...
0.52903116
54
Make a run of rotation
public function rotate($rotation = null) { if (is_null($rotation)) { $rotation = $this->rotation; } $cipher = $this->getSubstitutions(); $this->setSubstitutions( array(Helper::rotate($cipher[0], $rotation)) ); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rotate()\n {\n // not possible in php?\n }", "public function rotateBy($rotation) {}", "abstract public function rotate($amount);", "public function rotateRight();", "abstract protected function initRotues();", "public function rotate(int $rotations);", "function setRotatio...
[ "0.70802075", "0.6964867", "0.67434204", "0.6566614", "0.64377826", "0.6317348", "0.6231812", "0.61665076", "0.6034561", "0.60315335", "0.59111595", "0.58517414", "0.58454657", "0.5844273", "0.58268905", "0.58268905", "0.58208203", "0.57345927", "0.57217675", "0.57217675", "0...
0.0
-1
Get the group and check for validity / authorization
protected function SetupPanel() { $this->objGroup = Group::Load($this->strUrlHashArgument); if (!$this->objGroup) return $this->ReturnTo('#groups'); if (!$this->objGroup->IsLoginCanView(QApplication::$Login)) return $this->ReturnTo('#groups'); $this->objDelegate = new EditGroupParticipationDelegate($this, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUsergroup() {}", "private function validateGroup(){\n\n\t global $db;\n\t \n\t #see if this is a guest, if so, do some hard-coded checks.\n\t\tif($this->user == \"guest\"){\n\t\t if(($this->user == \"guest\") and ($this->gid == 0)){\n\t\t return(true);\n\t\t }else{\n\t\t ...
[ "0.7310521", "0.71962833", "0.67919445", "0.6781873", "0.6781873", "0.6781873", "0.6781873", "0.67534393", "0.67160344", "0.6683104", "0.6668222", "0.6663768", "0.662544", "0.65584636", "0.65584636", "0.65584636", "0.6538821", "0.65213615", "0.65203476", "0.65203476", "0.6520...
0.0
-1
We're using the Delegate to consolidate code between this panel and the Vicp_Groups_EditParticipation panel
public function __call($strMethod, $arrArguments) { return call_user_func_array(array($this->objDelegate, $strMethod), $arrArguments); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function SetupPanel() {\n\t\t\t$this->objGroup = Group::Load($this->strUrlHashArgument);\n\t\t\tif (!$this->objGroup) return $this->ReturnTo('#groups');\n\t\t\tif (!$this->objGroup->IsLoginCanView(QApplication::$Login)) return $this->ReturnTo('#groups');\n\n\t\t\t$this->objDelegate = new EditGroupPartici...
[ "0.70829606", "0.66916597", "0.60626334", "0.56094754", "0.5523688", "0.53522736", "0.5344771", "0.53378624", "0.5333088", "0.52900857", "0.5268895", "0.5261655", "0.52547413", "0.52358586", "0.52038234", "0.52036244", "0.5135892", "0.5130476", "0.5129452", "0.51293963", "0.5...
0.0
-1
email is sent to admin
public function sendContactMessage(Contact $contact);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sendEmail()\r\n {\r\n\t\t$mail = new UserMails;\r\n\t\t$mail->sendAdminEmail('admin-user', $this->_user);\r\n }", "public function send() {\n $to = Yii::app()->params['adminEmail'];\n $subject = $this->subject;\n $message = $this->body;\n @mail($to, $subject, $me...
[ "0.79768485", "0.78177726", "0.7547291", "0.7397904", "0.7310921", "0.72613263", "0.7234099", "0.721391", "0.71484333", "0.71382195", "0.70730114", "0.7068351", "0.70516014", "0.70194685", "0.6992795", "0.69673073", "0.6943321", "0.6937981", "0.6920677", "0.68972725", "0.6889...
0.0
-1
Sends out the messages in email queue and update the database.
public function process() { $success = true; $items = Queue::find() ->where(['and', ['sent_time' => null], ['<', 'attempts', $this->maxAttempts]]) ->orderBy(['created_at' => SORT_ASC]) ->limit($this->mailsPerRound) ->all(); if (!emp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function emailQueue() {\n\t\t$this->EmailQueue->processQueue(); exit;\n\t}", "public function realSend() {\n\t\tBrightUtils::inBrowser();\n\t\t$sql = 'SELECT id, pageId, `groups` FROM `mailqueue` WHERE issend=0';\n\t\t$mailings = $this -> _conn -> getRows($sql);\n\t\t\n\t\t$user = new User();\n\t\tforeach...
[ "0.75918436", "0.7152977", "0.7109437", "0.7084767", "0.70763344", "0.68010944", "0.668699", "0.66032696", "0.66011274", "0.65626645", "0.64831907", "0.6476948", "0.64262736", "0.6357344", "0.63184124", "0.6288891", "0.6281742", "0.62460405", "0.62283725", "0.61965936", "0.61...
0.5690062
74
When we load the object, we fill the "network" field with the correct address/netmask values
function post_getFromDB () { // Be sure to remove addresses, otherwise reusing will provide old objects for getAddress, ... unset($this->address); unset($this->netmask); unset($this->gateway); if (isset($this->fields["address"]) && isset($this->fields["netmask"])) { if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function network(){\n return (long2ip((ip2long($this->address))\n & (ip2long($this->netmask()))));\n }", "public function testSetNet()\n\t{\n\t\t$net = new PNPetrinet('test');\n\t\t$this->object->setNet($net);\n\t\t$this->assertEquals($net, TestReflection::getValue($this->object, 'net'));\n\t}", ...
[ "0.5923377", "0.562638", "0.5612385", "0.5344884", "0.5304455", "0.5275863", "0.527355", "0.5211428", "0.5167758", "0.5141536", "0.51387995", "0.5067981", "0.5019945", "0.5019945", "0.5019258", "0.49916288", "0.49655846", "0.49605107", "0.494762", "0.4945442", "0.49398205", ...
0.6879694
0
\brief Search any networks that contains the given IP \ref ipAddressToNetwork
static function searchNetworksContainingIP($IP, $entityID = -1, $recursive = true, $fields = "", $where = "") { return self::searchNetworks('contains', ['address' => $IP, 'netmask' => [0xffffffff, 0xffffffff, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function inNetwork($networks = [], $ip = \"\") {\n $network_group = [];\n $netmask_group = [];\n\n foreach($networks as $network) {\n list($subnet, $cidr) = explode('/', $network);\n $netmask = (1 << 32) - (1 << (32 - $cidr));\n $network_group[ip2long($s...
[ "0.6037175", "0.56094664", "0.5587358", "0.5546537", "0.5509736", "0.54801583", "0.5437882", "0.5405502", "0.5386704", "0.53839344", "0.536664", "0.5359493", "0.53077847", "0.5274202", "0.51569414", "0.5145615", "0.51427865", "0.5111185", "0.5110938", "0.50981545", "0.5045506...
0.63321114
0
Search networks relative to a given network
static function searchNetworks($relation, $condition, $entityID = -1, $recursive = true, $version = 0) { global $DB; if (empty($relation)) { return false; } if (empty($condition["fields"])) { $fields = 'id'; } else { $fields = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function inNetwork($networks = [], $ip = \"\") {\n $network_group = [];\n $netmask_group = [];\n\n foreach($networks as $network) {\n list($subnet, $cidr) = explode('/', $network);\n $netmask = (1 << 32) - (1 << (32 - $cidr));\n $network_group[ip2long($s...
[ "0.5815753", "0.57038194", "0.56861496", "0.563826", "0.5522029", "0.547092", "0.5449751", "0.5367881", "0.51938516", "0.51894134", "0.51883084", "0.5188256", "0.5176082", "0.51722664", "0.514328", "0.5047469", "0.50350463", "0.49853498", "0.4885369", "0.4821408", "0.48106897...
0.5834907
0
Get SQL WHERE criteria for requesting elements that are contained inside the current network
function getCriteriaForMatchingElement($tableName, $binaryFieldPrefix, $versionField) { global $DB; $version = $this->fields["version"]; $start = null; $this->computeNetworkRange($start); $result = []; for ($i = ($version == 4 ? 3 : 0); $i < 4; ++$i) { $result[] = new \Q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getWhereClause() {}", "private function sql_whereAllItems()\n {\n $where = '1 ' .\n $this->sql_whereAnd_pidList() .\n $this->sql_whereAnd_enableFields() .\n $this->sql_whereAnd_Filter() .\n $this->sql_whereAnd_fromTS() .\n $this->sql_w...
[ "0.5869196", "0.58457327", "0.58227", "0.5776463", "0.5734356", "0.57283235", "0.5692753", "0.5684749", "0.5660201", "0.5647875", "0.5643681", "0.5608006", "0.5550788", "0.55147797", "0.5498872", "0.54972374", "0.5480785", "0.545838", "0.54242843", "0.5420333", "0.54174924", ...
0.51790226
45
Check to see if an IP is inside a given network See : \ref ipAddressToNetwork
static function checkIPFromNetwork($address, $networkAddress, $networkNetmask, $version = 0) { $IPNetmask = [0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff]; $relativity = self::checkNetworkRelativity($address, $IPNetmask, $networkAddress, $networkNetmask,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ip_in_range($network,$netmask,$ip)\n {\n $wildcard_mask = pow( 2, ( 32 - $netmask ) ) - 1;\n $mask = ~ $wildcard_mask;\n return ( ( $ip & $mask ) == ( $network & $mask ) );\n }", "function current_ip_in_network() {\r\n return ip_in_network(current_user_ip());\r\n}", ...
[ "0.72038114", "0.6880698", "0.6820507", "0.6743495", "0.6717032", "0.66977155", "0.6692251", "0.66622865", "0.659471", "0.65540147", "0.65382695", "0.6482406", "0.6455845", "0.64519805", "0.6438251", "0.64145136", "0.6395711", "0.6395322", "0.63698393", "0.63661224", "0.63656...
0.7276029
0
\brief Check network relativity Check how networks are relative (fully different, equals, first contains second, ...)
static function checkNetworkRelativity($firstAddress, $firstNetmask, $secondAddress, $secondNetmask, $version = 0) { if ($firstAddress instanceof IPAddress) { if ($version == 0) { $version = $firstAddress->getVersion(); } if ($versi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isDirected();", "function test_get_parents()\r\n\t{\r\n\t\t$rnc = 1;\r\n\t\t$depth = 2;\r\n\t\t$npl = 3; \r\n\t\t// Create a new tree\r\n\t\t$relation_tree = $this->_create_sub_node($rnc, $depth, $npl);\r\n\t\t$allnodes = $this->_tree->get_all_nodes(); \r\n\t\t// Walk trough all nodes and compare...
[ "0.56949615", "0.53314906", "0.5270601", "0.5263973", "0.5160398", "0.50616235", "0.49973422", "0.49032396", "0.48929366", "0.48797956", "0.48735332", "0.48520777", "0.48424068", "0.4836058", "0.47972962", "0.47896957", "0.4777618", "0.47748917", "0.47605568", "0.47245163", "...
0.5473636
1
Compute the first and the last address of $this \see computeNetworkRangeFromAdressAndNetmask()
function computeNetworkRange(&$start, &$end = null, $excludeBroadcastAndNetwork = '') { if (!is_bool($excludeBroadcastAndNetwork)) { if (isset($this->fields['addressable'])) { $excludeBroadcastAndNetwork = ($this->fields['addressable'] == 1); } else { $excludeBroadcastAn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function computeNetworkRangeFromAdressAndNetmask($address, $netmask, &$firstAddress,\n &$lastAddress = null,\n $excludeBroadcastAndNetwork = false) {\n if ($address instanceof IPAddress) ...
[ "0.733612", "0.62481964", "0.6161435", "0.61062586", "0.61062586", "0.5874225", "0.57952756", "0.5791787", "0.56330067", "0.5537068", "0.5509339", "0.5500827", "0.5455524", "0.5404781", "0.54018134", "0.53703904", "0.5331225", "0.5325093", "0.5313558", "0.53076655", "0.530713...
0.673621
1
\brief Compute the first and the last address of a network. That is usefull, for instance, to compute the "real" network address (the first address) or the broadcast address of the network
static function computeNetworkRangeFromAdressAndNetmask($address, $netmask, &$firstAddress, &$lastAddress = null, $excludeBroadcastAndNetwork = false) { if ($address instanceof IPAddress) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNetworkAddress()\n\t{\n\t\treturn $this->first_ip;\n\t}", "public function getAddress();", "public function getAddress();", "public function getAddress() {}", "function network(){\n return (long2ip((ip2long($this->address))\n & (ip2long($this->netmask()))));\n }", "public...
[ "0.6799679", "0.6567588", "0.6567588", "0.63166636", "0.62446344", "0.6047264", "0.5999723", "0.58761406", "0.5873083", "0.5813293", "0.5798589", "0.5786191", "0.57513034", "0.57403296", "0.57153904", "0.57093483", "0.56851584", "0.5671451", "0.5653942", "0.56422216", "0.5622...
0.6544012
3
\brief Recreate network tree Among others, the migration create plan tree network. This method allows to recreate the tree. You can also use it if you suspect the network tree to be corrupted. First, reset the tree, then, update each network by its own field, letting CommonImplicitTreeDropdown working such as it would ...
static function recreateTree() { global $DB; // Reset the tree $DB->update( 'glpi_ipnetworks', [ 'ipnetworks_id' => 0, 'level' => 1, 'completename' => new \QueryExpression($DB->quoteName('name')) ], [true] ); // Foreach...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function brokeTree()\n {\n $i = 0;\n foreach ($this->nodeIdList as $node) {\n $this->getDb()->createCommand()->update(\n self::tableName(),\n [\n $this->leftAttribute => ++$i,\n $this->rightAttribute => ++$i,\n ...
[ "0.60080266", "0.56274223", "0.5486264", "0.54171586", "0.53880537", "0.5298186", "0.5275199", "0.52409387", "0.51710075", "0.5131758", "0.51309633", "0.5115454", "0.51113147", "0.5085477", "0.50829095", "0.5061777", "0.50433534", "0.5042315", "0.5038402", "0.5030509", "0.502...
0.7536038
0
Show all available IPNetwork for a given entity
static function showIPNetworkProperties($entities_id = -1) { global $CFG_GLPI; $rand = mt_rand(); self::dropdown(['entity' => $entities_id, 'rand' => $rand]); $params = ['ipnetworks_id' => '__VALUE__']; Ajax::updateItemOnSelectEvent("dropdown_ipnetworks_id$r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNetworks() {\n\n //GET NETWORK TABLE\n $tableNetwork = Engine_Api::_()->getDbtable('networks', 'network');\n\n //MAKE QUERY\n $select = $tableNetwork->select()\n ->from($tableNetwork->info('name'), array('network_id', 'title'))\n ->order('title');\n $result =...
[ "0.613891", "0.6118857", "0.5933595", "0.5888416", "0.5865109", "0.5749755", "0.5653926", "0.56399393", "0.56361955", "0.56121606", "0.56051093", "0.5473263", "0.54387516", "0.53757596", "0.5371093", "0.53609663", "0.5321669", "0.5269923", "0.5226984", "0.52207553", "0.520574...
0.6689109
0
Override title function to display the link to reinitialisation of the network tree
function title() { parent::title(); if (Session::haveRight('internet', UPDATE) && Session::canViewAllEntities()) { echo "<div class='spaced' id='tabsbody'>"; echo "<table class='tab_cadre_fixe'>"; echo "<tr><td class='center'>"; Html::showSimpleForm(IPNetwork...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function link() {\n $this->title = \"link\";\n }", "function set_title($title) \r\n\t{\r\n\t\t//$this->title = $title;\r\n\t\t$this->data['title_for_layout'] = $title;\r\n\t\t$this;\r\n\t}", "protected function init()\n {\n $this->setTitle('core_layout.edit_layout');\n }", "public func...
[ "0.66859394", "0.6351994", "0.62658876", "0.6089723", "0.6071411", "0.6055869", "0.6055869", "0.60291296", "0.6025733", "0.6005665", "0.597989", "0.5975042", "0.597472", "0.5958967", "0.5958177", "0.59494334", "0.59471", "0.5938044", "0.5934578", "0.59263206", "0.59172094", ...
0.6857853
0
Return an instance of an HTTP client all ready to post
public function __construct() { parent::__construct(); $this->httpClient = new Client([ 'base_uri' => config('app.url'), 'headers' => [ 'Authorization' => $this->apiKey, ], ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function http(){\n\n if( empty($this->HTTPClient) ){\n\n //init stack\n $stack = HandlerStack::create();\n\n if ( $this->token ){\n\n //setup to send the token with each request\n\n $this->addHeader(Headers::AUTHORIZATION, ( \"TOKEN \"...
[ "0.73242897", "0.71909505", "0.7128601", "0.6943418", "0.68836933", "0.68070775", "0.6773584", "0.6771127", "0.67657506", "0.665704", "0.6633687", "0.66231656", "0.66060823", "0.6549462", "0.65465677", "0.6500991", "0.64764273", "0.6433753", "0.64014274", "0.6388926", "0.6384...
0.0
-1
Make a request to start a PIREP
protected function startPirep($flight): string { // convert the planned flight time to be completely in minutes $pft = Time::hoursToMinutes( $flight->planned_hrsenroute, $flight->planned_minenroute ); $flight_number = substr($flight->callsign, 3); $r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function initiateSubRequest() {}", "public function startReqSession(){\n\n\t\t\t$message = '\n\t\t\t<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"\n\t\t\txmlns:shar=\"http://www.travelport.com/schema/sharedBooking_v34_0\"\n\t\t\txmlns:com=\"http://www.travelport.com/schem...
[ "0.5612763", "0.5525759", "0.54947025", "0.5483861", "0.5424874", "0.53004473", "0.5292742", "0.52383745", "0.5200733", "0.51928914", "0.51905066", "0.5177111", "0.5133291", "0.5111772", "0.5095762", "0.50861514", "0.5085203", "0.50843054", "0.50738096", "0.50710666", "0.5070...
0.0
-1
Mark the PIREP as filed
protected function filePirep($pirep_id) { $response = $this->httpClient->post('/api/pireps/'.$pirep_id.'/file', [ 'json' => [], ]); $body = \json_decode($response->getBody()->getContents()); return $body; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setPR($r) {}", "function updatePofAlloc($pid)\n\t {\n\t\t$sql = \"UPDATE pof SET is_allocated = 1 WHERE pof_id =\".$pid;\n\t\t$this->db->query($sql);\n\t\t}", "public function markPaid()\n {\n $this->order->update(['status' => OrderStatus::PAID]);\n\n $this->notify([\n ...
[ "0.5907681", "0.5708308", "0.5506802", "0.54108936", "0.53561044", "0.5336169", "0.52930415", "0.5283455", "0.5282057", "0.5245861", "0.52099305", "0.5190593", "0.51577467", "0.5147509", "0.50662905", "0.50470865", "0.50206405", "0.5018104", "0.50112766", "0.49632365", "0.495...
0.0
-1
Parse this file and run the updates
protected function updatesFromFile(array $files) { /** * @var $flights Collection */ $flights = collect($files)->transform(function ($f) { $file = $f; if (file_exists($file)) { $this->info('Loading '.$file); $contents = file_g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function processUpdates()\n {\n $this->importStaticData();\n }", "public function runUpdateScript()\n {\n $current_schema = get_config('schema');\n if ($current_schema < 2) {\n // 20150727\n $this->schema2();\n $this->updateSchema(2);\n ...
[ "0.62944806", "0.62204254", "0.6077634", "0.5973444", "0.594975", "0.59250605", "0.5922273", "0.589788", "0.58931446", "0.5861214", "0.5823843", "0.57734215", "0.575002", "0.5730153", "0.57300895", "0.57256615", "0.5704089", "0.5667313", "0.5660619", "0.56539977", "0.56539977...
0.5700572
17
Execute the console command.
public function handle(): void { $files = $this->argument('files'); $manual_mode = $this->option('manual'); if ($this->option('write-all')) { $this->info('In "dump-all" mode, just writing it all in'); } else { /* @noinspection NestedPositiveIfStatementsInspec...
{ "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
Counts the number items that are available for the values of the given key. The keys of the result array are the values found for the given key (second parameter). The values of these keys are how often an item for this key is found, e.g. // records in table: // first record: domain='text', refid=10 // second record: d...
public function aggregate( \Aimeos\MW\Criteria\Iface $search, $key );
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTotalItemCount();", "abstract public function getCount();", "public function getCount();", "public function getCount();", "public function getCount();", "public abstract function get_counts();", "public function countItems();", "public static function record_count()\r\r\n {\...
[ "0.56900364", "0.56449765", "0.5623215", "0.5623215", "0.5623215", "0.56198406", "0.5558744", "0.54506874", "0.54190314", "0.5321909", "0.5231798", "0.52314055", "0.52237064", "0.51991695", "0.5196239", "0.5183474", "0.51796097", "0.5171364", "0.51614875", "0.51418555", "0.51...
0.6284374
0
Moves an existing list item to a new position. The position is in front of the item with the ID given in $ref or at the end of the list if $ref is null. // item ID list in database: 1, 2, 3, 4 $listManager>moveItem( 2, 4 ); // result: 1, 3, 2, 4 // item ID list in database: 1, 2, 3, 4 $listManager>moveItem( 2, null ); ...
public function moveItem( $id, $ref = null );
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function moveItemAt($currentPosition, $newPosition = 0);", "public function moveItem(Item $item, int $position): Item;", "public function move($id) {\n $item = $this->getItem($id);\n $table_name = \"items\";\n $connection = db_connect();\n if ($connection->connect_error) {\n ...
[ "0.68663216", "0.6846594", "0.6497256", "0.6324369", "0.5946858", "0.587347", "0.5845341", "0.5823462", "0.5803777", "0.57702416", "0.56238693", "0.56192786", "0.5615383", "0.55051905", "0.54752904", "0.5465182", "0.54567224", "0.54193634", "0.5408741", "0.53931135", "0.53856...
0.8479897
0
Search for all referenced items from the list based on the given critera. Only criteria from the list and list type can be used for searching and sorting, but no criteria from the referenced items. $search = $listManager>createSearch( true ); $expr = array( $search>compare( '==', 'product.lists.domain', array( 'attribu...
public function searchRefItems( \Aimeos\MW\Criteria\Iface $search, array $ref = [], &$total = null );
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getItemsCriteria() {}", "public function getItemsCriteria() {}", "public function searchItems( \\Aimeos\\MW\\Criteria\\Iface $search, array $ref = [], &$total = null )\n\t{\n\t\t$items = [];\n\n\t\ttry\n\t\t{\n\t\t\t$max = $this->getContext()->getConfig()->get( 'mshop/common/manager/maxdepth', ...
[ "0.5818856", "0.58165693", "0.57581705", "0.5684947", "0.5327979", "0.5296521", "0.5296521", "0.5296521", "0.52946943", "0.52834517", "0.52496", "0.5202791", "0.5162375", "0.5162375", "0.5162375", "0.5162375", "0.5162375", "0.5162375", "0.5162375", "0.5162375", "0.5159801", ...
0.65504795
0
fetch all pictures from db
function get_all_pics(){ $all_pics = $this->db->get('pictures'); return $all_pics->result(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function find_all_photos(){\n global $db;\n $sql = \"SELECT * FROM photos\";\n try {\n $result = $db->query($sql);\n $rows=$result->fetchall();\n return $rows;\n } catch (Exception $e) {\n throw $e;\n }\n }", "public function getImages()\n {\n ...
[ "0.79711396", "0.7686944", "0.7564832", "0.7480706", "0.7413774", "0.74034935", "0.74012125", "0.7396253", "0.73864216", "0.731774", "0.7087878", "0.7084268", "0.7070541", "0.70383614", "0.6903817", "0.68948597", "0.6857338", "0.6833286", "0.68183637", "0.6814184", "0.6809268...
0.75790906
2
save picture data to db
function store_pic_data($data){ $insert_data['pic_title'] = $data['pic_title']; $insert_data['pic_desc'] = $data['pic_desc']; $insert_data['pic_file'] = $data['pic_file']; $query = $this->db->insert('pictures', $insert_data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insertImageToDb() \n {\n }", "public function save(Photo $photo);", "public function saveToDb()\n\t{\n\t\tparent::saveToDb();\n\t\t$this->insertAttachment();\n\t}", "public function saveImage($data)\n\t{\n if (!empty($data)) {\n return $this->imagesModel->create($data)...
[ "0.7369128", "0.70571727", "0.6836592", "0.676557", "0.67205864", "0.6650237", "0.663833", "0.652806", "0.65073305", "0.6482809", "0.6481554", "0.64766437", "0.64660317", "0.64202", "0.6417862", "0.64090043", "0.6383119", "0.6353745", "0.63455117", "0.6327706", "0.6327706", ...
0.7265487
1
Action for the creation of a new room
public function createRoomAction(WampConnection $connection, WampRequest $request, $parameters) { $parameters = json_decode($parameters[0]); if (!isset($parameters->room->name)) { throw new Exception("missing_roomname"); } elseif (!isset($parameters->room->schema)) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCreate()\n {\n $model = new Rooms();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n ...
[ "0.8020905", "0.75252527", "0.7455774", "0.7438222", "0.7438222", "0.7421939", "0.73802525", "0.73505247", "0.7342222", "0.7280407", "0.7273646", "0.72405326", "0.7185449", "0.7178064", "0.7178064", "0.7178064", "0.71716064", "0.7098121", "0.7076161", "0.70568204", "0.6861555...
0.0
-1
Adds a developer to the room
public function addDeveloperAction(WampConnection $connection, WampRequest $request, $parameters) { $parameters = json_decode($parameters[0]); if (!isset($parameters->room->id)) { throw new Exception("missing_roomid"); } elseif (!isset($parameters->user->id)) { throw ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addDeveloper($developer)\n {\n $data = array(\n 'GBID' => $developer->id,\n 'Name' => $developer->name,\n 'API_Detail' => $developer->api_detail_url,\n 'GBLink' => $developer->site_detail_url,\n 'Image' => is_object($developer->image) ? $develop...
[ "0.67796886", "0.57394695", "0.55785364", "0.5520346", "0.55028814", "0.5447106", "0.5423723", "0.54056615", "0.5328524", "0.53272176", "0.53126794", "0.5307111", "0.52754813", "0.52712405", "0.52507436", "0.5250558", "0.5243386", "0.52340996", "0.52289605", "0.5187185", "0.5...
0.5415484
7
Action for getting an existing room
public function getRoomAction(WampConnection $connection, WampRequest $request, $parameters) { $parameters = json_decode($parameters[0]); // The room to get is identified by the id if (!isset($parameters->room->id)) { throw new Exception("missing_roomid"); } else { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Room $room)\n {\n //\n }", "public function show(Room $room)\n {\n //\n }", "public function show(Room $room)\n {\n //\n }", "public function show(Room $room)\n {\n //\n }", "public function show(Room $room)\n {\n //\n }"...
[ "0.67331916", "0.67331916", "0.67331916", "0.67331916", "0.67331916", "0.6654273", "0.6624311", "0.66094357", "0.6576212", "0.6576212", "0.65502346", "0.65404487", "0.64958364", "0.6445099", "0.6445099", "0.6445099", "0.6412298", "0.63066274", "0.6294054", "0.627191", "0.6267...
0.0
-1
Registers this controller as a RPC callback at the WAMP router (config/routing.yml)
public function getName() { return "room.rpc"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function route() {\r\n register_rest_route( 'api/v1', '/web-data-endpoint', array(\r\n 'methods' => 'GET',\r\n 'callback' => array( $this, 'callback' )\r\n ) );\r\n }", "public function routeStartup()\n {\n //...\n }", "public function register_route()...
[ "0.6129959", "0.5893761", "0.58282036", "0.5807447", "0.5729694", "0.56982565", "0.56971645", "0.5532261", "0.54176235", "0.54142934", "0.53925526", "0.53610027", "0.53401273", "0.53328806", "0.52882886", "0.5277659", "0.52699244", "0.52445775", "0.5221567", "0.5196743", "0.5...
0.0
-1
Initialize custom post type
public static function init() { add_action( 'init', array( __CLASS__, 'definition' ), 11 ); add_action( 'cmb2_init', array( __CLASS__, 'fields' ) ); add_filter( 'inventor_shop_allowed_listing_post_types', array( __CLASS__, 'allowed_purchasing' ) ); add_filter( 'inventor_claims_al...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function initCustomPostType(){\n //Instantiate our custom post type object\n $this->cptWPDS = new PostType($this->wpdsPostType);\n \n //Set our custom post type properties\n $this->cptWPDS->setSingularName($this->wpdsPostTypeName);\n $this->cptWPDS->setPluralName($...
[ "0.82686085", "0.81194204", "0.79444915", "0.7915738", "0.78919184", "0.78873736", "0.785236", "0.7781367", "0.7626198", "0.75895524", "0.75705266", "0.74392754", "0.7425758", "0.7413979", "0.7352165", "0.7288915", "0.72381115", "0.72112155", "0.7150548", "0.71476126", "0.714...
0.0
-1
Defines if post type can be purchased
public static function allowed_purchasing( $post_types ) { $post_types[] = 'property'; return $post_types; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function check_is_post_type_allowed($post_type)\n {\n }", "public function thm_activate_gutenberg_products($can_edit, $post_type){\n\t\tif($post_type == 'product'){\n\t\t\t$can_edit = true;\n\t\t}\n\t\t\n\t\treturn $can_edit;\n\t}", "public static function post_type(){}", "function is...
[ "0.6830446", "0.63818127", "0.6320983", "0.6300664", "0.6170563", "0.60828537", "0.6080515", "0.60473615", "0.6044437", "0.6040574", "0.60386306", "0.601293", "0.6006849", "0.59861565", "0.5983573", "0.59566236", "0.5891326", "0.58770245", "0.5856451", "0.58521926", "0.584755...
0.67634344
1
Defines if post type can be claimed
public static function allowed_claiming( $post_types ) { $post_types[] = 'property'; return $post_types; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function post_type(){}", "protected function check_is_post_type_allowed($post_type)\n {\n }", "private function requested_post_is_valid(){\n return (get_post_type((int) $_GET['post_id']) === $this->post_type && get_post_status((int) $_GET['post_id']) === 'publish');\n }", ...
[ "0.67896366", "0.6612525", "0.65004367", "0.6403442", "0.62800735", "0.62036574", "0.61847836", "0.617316", "0.6090633", "0.607658", "0.5950671", "0.5936027", "0.592412", "0.5903673", "0.588532", "0.5874264", "0.5837858", "0.58304834", "0.5817259", "0.58168757", "0.5784189", ...
0.6779187
1
Custom post type definition
public static function definition() { $labels = array( 'name' => __( 'Properties', 'inventor-properties' ), 'singular_name' => __( 'Property', 'inventor-properties' ), 'add_new' => __( 'Add New Property', 'inventor-properties' ), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function post_type(){}", "public function registerCustomPostTypes() {\n\n\n }", "function thirdtheme_custom_post_type()\n {\n $args = array(\n 'labels' => array('name' =>__(' my custom post'),\n 'singular name' =>__('my custom post')),\n ...
[ "0.7906749", "0.7649255", "0.7535579", "0.75295395", "0.74931103", "0.74321306", "0.73854166", "0.7345008", "0.73436725", "0.73335963", "0.7313111", "0.7310697", "0.73088396", "0.7290665", "0.7290033", "0.7257624", "0.72166175", "0.72165436", "0.71997523", "0.7195427", "0.718...
0.0
-1
Return array of contract type options
public static function contract_options() { return array( '' => '', 'RENT' => __( 'Rent', 'inventor-properties' ), 'SALE' => __( 'Sale', 'inventor-properties' ), ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCcTypesAsOptionArray()\n {\n $model = Mage::getModel('payment/source_cctype')\n ->setAllowedTypes(array('VI', 'MC', 'JCB', 'DINCLB'));\n return $model->toOptionArray();\n }", "public function getTypeOptions()\n {\n $calendars = Config::get('vojtasvoboda...
[ "0.7189024", "0.6917305", "0.6905179", "0.68355936", "0.6751767", "0.6741231", "0.6716977", "0.6662023", "0.6647714", "0.6623095", "0.66026396", "0.66026396", "0.66026396", "0.66026396", "0.66026396", "0.66026396", "0.66026396", "0.65639895", "0.6514214", "0.64429045", "0.643...
0.7462306
0
Returns contract type display value
public static function get_contract_type( $key ) { $contract_options = self::contract_options(); return $contract_options[ $key ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDisplayTypeName()\n {\n $type = static::TYPE;\n\n if ($this instanceof StructureItem) {\n $type = $this->structure->getStructureName();\n }\n\n if ($this->isArray) {\n return $type . '[]';\n }\n\n if ($this->isFixedValues) {\n ...
[ "0.69984186", "0.68459356", "0.679686", "0.674576", "0.67346764", "0.6714916", "0.6610324", "0.6503302", "0.6441516", "0.643896", "0.6419907", "0.63962895", "0.6364788", "0.6348404", "0.62868965", "0.6274336", "0.6261461", "0.62547326", "0.62367463", "0.6227893", "0.6211395",...
0.0
-1
Metabox for public facilities
public static function metabox_floor_plans( $post_type ) { $metabox_id = INVENTOR_LISTING_PREFIX . INVENTOR_PROPERTY_PREFIX . 'floor_plans_box'; $field_id = INVENTOR_LISTING_PREFIX . INVENTOR_PROPERTY_PREFIX . 'floor_plans'; $cmb = new_cmb2_box( array( 'id' => $metabox_id...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract function abilityGet();", "public function access();", "function factures_autoriser(){}", "abstract protected function canAccess();", "public function permissions();", "public function permissions();", "public function permissions();", "public function permissions();", "public function perm...
[ "0.61924416", "0.6068419", "0.5823664", "0.57875204", "0.5682973", "0.5682973", "0.5682973", "0.5682973", "0.5682973", "0.56641155", "0.56594133", "0.5654551", "0.5624027", "0.5586615", "0.558501", "0.5569376", "0.55499095", "0.5533781", "0.5532558", "0.55268484", "0.5513156"...
0.0
-1
Metabox for public facilities
public static function metabox_public_facilities( $post_type ) { $metabox_id = INVENTOR_LISTING_PREFIX . $post_type . '_public_facilities_box'; $field_id = INVENTOR_LISTING_PREFIX . INVENTOR_PROPERTY_PREFIX . 'public_facilities'; if ( ! is_admin() ) { add_filter( 'cmb2_override_' . ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract function abilityGet();", "public function access();", "function factures_autoriser(){}", "abstract protected function canAccess();", "public function permissions();", "public function permissions();", "public function permissions();", "public function permissions();", "public function perm...
[ "0.61924416", "0.6068419", "0.5823664", "0.57875204", "0.5682973", "0.5682973", "0.5682973", "0.5682973", "0.5682973", "0.56594133", "0.5654551", "0.5624027", "0.5586615", "0.558501", "0.5569376", "0.55499095", "0.5533781", "0.5532558", "0.55268484", "0.5513156", "0.55062664"...
0.56641155
9
Set default data for field
public static function set_default_value( $data, $object_id, $a, $field ) { if ( ! empty( $field->args['custom_value'] ) ) { return $field->args['custom_value']; } return $data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function set_default_values() {\n\t\t?>\n\t\tcase \"nu_phone\" :\n\t\t\tfield.label = \"Phone\";\n\t\t\tfield.isRequired = true;\n\t\t\tfield.description = \"Numbers only. e.g. 8885551212\";\n\t\t\tbreak;\n\t\t<?php\n\t}", "protected function initial_set_default() {\n\t\tif ( isset( $this->field[ '...
[ "0.75143987", "0.72825384", "0.70297503", "0.6989107", "0.69391334", "0.6849281", "0.6825262", "0.6777208", "0.67693716", "0.676299", "0.6750364", "0.67424196", "0.65882826", "0.6562928", "0.65315497", "0.6509797", "0.6472962", "0.6461142", "0.646114", "0.64370614", "0.643664...
0.68868864
5
A getter for properties of the package For example: $package>get('name'); $package>get('version'); $package>get('require>php'); Returns whatever there is in the node or false if was unable to find this node
public function get($propertyPath, $filter = null) { $result = $this->traverseGet($this->json, explode('->', $propertyPath)); if ($result && $filter) { foreach ($result as $key => $value) { if (!preg_match($filter, $key)) { unset($result->{$key}); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProperty();", "public function getProperty(): string;", "public function __get($name)\n {\n if (array_key_exists($name, $this->_properties)) {\n return $this->_properties[$name];\n }\n return false;\n }", "public function getProperty(): ?string;", "public func...
[ "0.64804006", "0.64762205", "0.590431", "0.5828912", "0.579735", "0.5742317", "0.5742317", "0.5742317", "0.57422554", "0.5739994", "0.57294124", "0.57294124", "0.57294124", "0.57294124", "0.5713772", "0.5713772", "0.566371", "0.5655182", "0.5625488", "0.5599513", "0.55763716"...
0.0
-1
Traverse an \StdClass object recursively in search of the needed property
private function traverseGet(\StdClass $json, array $chain, $index = 0) { $property = $chain[$index]; if (!property_exists($json, $property)) { return false; } if (isset($chain[$index + 1])) { return $this->traverseGet($json->{$property}, $chain, $index + 1); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testRecursiveObjectProp1()\n {\n $test = new TestObj();\n $test->propPublic = array();\n $test->propPublic[] = &$test->propPublic;\n $this->debug->log('test', $test);\n $abstraction = $this->debug->data->get('log/0/args/1');\n self::assertEquals(\n ...
[ "0.5997857", "0.5824439", "0.5547491", "0.5451957", "0.53441703", "0.5264458", "0.5229772", "0.51985496", "0.51910245", "0.5163068", "0.5139445", "0.51038367", "0.5087752", "0.50435704", "0.50390035", "0.5013243", "0.5008105", "0.49605706", "0.4958577", "0.49412888", "0.49108...
0.5118802
11
Display a listing of the resource.
public function index() { return view('brands.index', [ 'brands' => Brand::all() ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Show the form for creating a new resource.
public function create() { return view('brands.new'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { $validData = $request->validate( ['name_brand' => 'required | min:3 | max:99 | unique:brands,name_brand'], [ 'name_brand.required' => 'El campo Categoría es requerido', 'name_brand.min' => 'El campo Categoría r...
{ "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.72855324", "0.71447515", "0.7132799", "0.6641042", "0.66208744", "0.6566955", "0.65249777", "0.6509032", "0.6447701", "0.63756555", "0.6373163", "0.63650846", "0.63650846", "0.63650846", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.63416...
0.0
-1
Display the specified resource.
public function show($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245...
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { $brands = Brand::find($id); return view('brands/edit', [ 'brands' => $brands ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { $validData = $request->validate( ['name_brand' => 'required | min:3 | max:99 | unique:brands,name_brand'], [ 'name_brand.required' => 'El campo Marca es requerido', 'name_brand.min' => 'El campo Marca req...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n ...
[ "0.6671365", "0.6660839", "0.66361386", "0.6632988", "0.6624729", "0.6542195", "0.6541645", "0.6466739", "0.6288393", "0.61767083", "0.6129533", "0.608954", "0.6054169", "0.60443425", "0.60073143", "0.59338665", "0.59317696", "0.592145", "0.5920155", "0.59065086", "0.5897853"...
0.0
-1
Get the entity ID
public function getEntityId() { return $this->activityId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEntityId(){\n return $this->_getData(self::ENTITY_ID);\n }", "public function getEntityId()\n {\n return $this->entity_id;\n }", "function getEntityId() {\n return $this->entity_id;\n }", "public function getEntityId();", "public function getEntityId();", "pu...
[ "0.8758001", "0.8623391", "0.85424787", "0.8532749", "0.8532749", "0.8532749", "0.85200566", "0.8375094", "0.8364044", "0.82916564", "0.8156688", "0.80722386", "0.80521363", "0.7988025", "0.79015577", "0.76993114", "0.7681755", "0.76327443", "0.7587747", "0.75480986", "0.7483...
0.73606294
51
Get the class name the imageables
public function getClassName() { return $this->activityClass; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getImageClass()\n {\n return $this->image_class;\n }", "public function getClassName() ;", "public function getClassName() {}", "public function getClassName() {}", "public function getClassName() {}", "public function getClassName() {}", "public function getClassName();", ...
[ "0.76001406", "0.7398383", "0.734652", "0.734652", "0.734652", "0.734652", "0.73441195", "0.73441195", "0.7077168", "0.7058241", "0.7042681", "0.70299274", "0.70286894", "0.7008899", "0.6992622", "0.69562364", "0.6936795", "0.6935521", "0.69230646", "0.6919051", "0.6905389", ...
0.0
-1
/ ObjParam = "OBJECTTYPE=" + TypeValue + "&OBJECTID=" + ObjID forms basic query param. any request should have this as basic param. in addition to these one can have additional parameters as per required.
function OBJM_AddNewObjectToSCXML($elemID, $type, $class, $level, $nodeTitle, $parentID, $dataID, $datatype, $dataOrig) { $retval = $_SESSION['sceneCompXMLDOM']->load($_SESSION['sceneCompXMLFilePath']); if($retval != true) return false; $displaystring = $nodeTitle; global $treehandlerfnname; // $el...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function input (\\stdClass $param);", "private function PREPARE_OBJECT_VARIABLE_METHOD()\r\r {\r\r if($this->_type === 'POST')\r\r {\r\r foreach($this->_fields as $key=>$field)\r\r {\r\r $this->_object[$key]['VALUE'] = isset($_POST[$key]...
[ "0.5894033", "0.5652512", "0.5639989", "0.5597167", "0.5488477", "0.54536086", "0.54096574", "0.5395612", "0.5384274", "0.5352673", "0.531419", "0.52928174", "0.5280646", "0.527582", "0.5211525", "0.51857144", "0.5077404", "0.50649196", "0.50590193", "0.5058375", "0.50527734"...
0.0
-1
PARSE THE STRING AND FORM A QUERY PARAMS
function OBJM_AddNewObject(&$respData) { parse_str($respData) ; //DEPENDING ON OBJECT TYPE CALL THE APPROPRIATE FUNCTION $objectTypeVal = strtoupper($OBJECTTYPE); $objectIDVal = strtoupper($OBJECTID); $parentIDVal = strtoupper($REFID); $dataID = $objectIDVal; //WILL BE USED TO STORE UNIQIE I...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function parse_query($str) {\n \n $str = html_entity_decode($str);\n\n $arr = array();\n \n $pairs = explode('&', $str);\n \n foreach ($pairs as $i) {\n list($name,$value) = explode('=', $i, 2);\n\n if (isset($arr[$name])) {\n if (is...
[ "0.7255325", "0.7105226", "0.6935991", "0.6826799", "0.65007764", "0.64642876", "0.6438787", "0.6360737", "0.63376856", "0.6293293", "0.62723595", "0.6203748", "0.6183269", "0.6178459", "0.6175572", "0.61610895", "0.6090867", "0.60734004", "0.6036056", "0.6019035", "0.6015328...
0.0
-1
Here $respData is in form of OBJECTID and OBJECTTYPE only
function OBJM_DeleteObject($respdata) { //PARSE THE STRING AND FORM A QUERY PARAMS parse_str($respdata) ; $objectTypeVal = strtoupper($OBJECTTYPE); $objectIDVal = strtoupper($OBJECTID); $respdata = 'FAIL'; if($objectTypeVal == "PAGE") return false; //GET THE TARGET OBJECT ID TO BE DELETED...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getResponseData();", "abstract protected function getReponseData() ;", "public function getData()\n {\n return (object) $this->_response;\n }", "protected function getReponseData() {}", "protected function getReponseData() {}", "protected function getReponseData() {}", "pro...
[ "0.62855977", "0.60015136", "0.58495194", "0.57778627", "0.57778627", "0.57778627", "0.57778627", "0.57778627", "0.57501084", "0.5688988", "0.5684497", "0.5663222", "0.565002", "0.5622255", "0.5555347", "0.5535939", "0.5508196", "0.54841113", "0.54477096", "0.53603834", "0.53...
0.0
-1
first get the params e.g. sourceid, newLayerId from client, parentID where Layer has to be referred to
function OBJM_AddLayerReference(&$respdata) { $retval = $_SESSION['sceneCompXMLDOM']->load($_SESSION['sceneCompXMLFilePath']); if(!isset($_SESSION['sceneCompXMLDOM'])) return false; if(!isset($_SESSION['sceneCompXMLFilePath'])) return false; $retval = $_SESSION['sceneCompXMLDOM']->load($_SESSION['sc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getLayers($params) {\n $service = $params['service'];\n $user = $params['user'];\n $password = $params['password'];\n\n $physical_id = -1;\n\n $db = JFactory::getDbo();\n $pos = strstr($service, 'physical_');\n if ($pos) {\n $id = s...
[ "0.57760984", "0.5748526", "0.5623432", "0.5569858", "0.5569858", "0.5569858", "0.5569858", "0.55681133", "0.5532781", "0.55246586", "0.54457885", "0.543907", "0.543907", "0.54380983", "0.54380983", "0.54380983", "0.54380983", "0.54380983", "0.54380983", "0.54380983", "0.5438...
0.47866136
98