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 |
|---|---|---|---|---|---|---|
Flush Flush all values from memcached | function flush($delay=0) {
return $this->memcached->flush($delay);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function flush()\n {\n $this->memcache->flush();\n }",
"public function flush()\n {\n $keys = $this->cache->queryKeys();\n foreach ( $keys as $key ) {\n $this->cache->delete($key);\n }\n }",
"public function flushCache();",
"public function flushAll()... | [
"0.7621451",
"0.74579203",
"0.7386758",
"0.7227295",
"0.72210866",
"0.70464504",
"0.6938893",
"0.68632495",
"0.6859424",
"0.6856338",
"0.68457556",
"0.68369",
"0.6833655",
"0.67416507",
"0.67223984",
"0.6709398",
"0.665254",
"0.6638014",
"0.6625613",
"0.6611324",
"0.66069615"... | 0.0 | -1 |
Get Get an item from memcached | function get($key) {
return $this->memcached->get($key);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function get ($key) {\n return $this->memcached->get($key);\n }",
"public function get($key){\n if( $value = $this->memcache->get($this->prefix.$key) ) {\n return $value;\n }\n }",
"public function get($key) {\n $value = $this->memcached->get($key);\n\n return $value;... | [
"0.8125201",
"0.76511395",
"0.7639137",
"0.76028705",
"0.7507948",
"0.7507948",
"0.74945104",
"0.71756375",
"0.71737593",
"0.7123712",
"0.7102081",
"0.70858777",
"0.7016214",
"0.70043784",
"0.69775563",
"0.69665724",
"0.6965936",
"0.69190884",
"0.68139684",
"0.6712311",
"0.66... | 0.782009 | 1 |
Get All Keys Gets the keys stored on all the servers | function getAllKeys() {
return $this->memcached->getAllKeys();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getAllKey();",
"public function getKeys() {\n\t\treturn $this->getAllKeys();\n\t}",
"public function retrieveKeys()\n {\n return $this->start()->uri(\"/api/key\")\n ->get()\n ->go();\n }",
"public function getKeys() {}",
"public function getKeys();",
"static function ge... | [
"0.79576707",
"0.7618327",
"0.7462499",
"0.7438615",
"0.73016894",
"0.72672427",
"0.7262566",
"0.7222751",
"0.7218719",
"0.7218719",
"0.7218719",
"0.7218719",
"0.7218719",
"0.7218719",
"0.7187886",
"0.71615654",
"0.7138908",
"0.7075611",
"0.70298636",
"0.6984377",
"0.6984377"... | 0.79591775 | 0 |
Get Multi Get multiple items from memcached | function getMulti($keys) {
return $this->memcached->getMulti($keys);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function wp_cache_get_multiple($keys, $group = '', $force = \\false)\n {\n }",
"function wp_cache_get_multiple( $keys, $group = '', $force = false ) {\n\t\t$values = array();\n\n\t\tforeach ( $keys as $key ) {\n\t\t\t$values[ $key ] = wp_cache_get( $key, $group, $force );\n\t\t}\n\n\t\treturn $values;\n\t}... | [
"0.6987854",
"0.6728983",
"0.66264516",
"0.6474209",
"0.63721836",
"0.6367221",
"0.6293357",
"0.61977714",
"0.61054945",
"0.6095383",
"0.60721767",
"0.601287",
"0.5991778",
"0.596346",
"0.59350455",
"0.58057207",
"0.578981",
"0.5760802",
"0.5754851",
"0.57528424",
"0.57122463... | 0.76415044 | 0 |
Get Result Code Return the result code of the last operation | function getResultCode() {
return $this->memcached->getResultCode();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getResultCode()\n {\n return $this->resultCode;\n }",
"public function getResultCode()\n {\n return $this->_resultCode;\n }",
"public function getResultCode() {}",
"public static function getResultCode()\n\t\t{\n\t\t\treturn self::getCache()->getResultCode();\n\t\t}"... | [
"0.7819148",
"0.7776602",
"0.75168157",
"0.7459058",
"0.73300266",
"0.70645434",
"0.70645434",
"0.6848305",
"0.679168",
"0.66757023",
"0.6646927",
"0.6600647",
"0.6598586",
"0.65959805",
"0.6560599",
"0.6560599",
"0.65107363",
"0.64987934",
"0.64815825",
"0.6475568",
"0.64598... | 0.75438786 | 2 |
Get Result Message Return the message describing the result of the last operation | function getResultMessage() {
return $this->memcached->getResultCode();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getResultMessage() {}",
"public function getResultMessage()\n {\n return $this->resultMessage;\n }",
"public function getResultMessage()\n {\n return $this->_resultMessage;\n }",
"public function get_result_sync_message(){\n return $this->_result_sync_message;... | [
"0.79136384",
"0.76873565",
"0.75989807",
"0.69953775",
"0.6888023",
"0.6755235",
"0.66733384",
"0.664354",
"0.6624345",
"0.65971255",
"0.6538006",
"0.65373117",
"0.6435911",
"0.6337958",
"0.6328552",
"0.6288894",
"0.62859213",
"0.6265717",
"0.6254107",
"0.6248569",
"0.623173... | 0.7441279 | 3 |
Replace Replace the item under an existing key | function replace($key, $value, $expire=0) {
return $this->memcached->replace($key, $value, $expire);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function replace(string $key, $element): void;",
"public function replace($key, $value, $replacement);",
"function replace($table='', $keyandvalue) {\n return $this->_query_insert_replace($table, $keyandvalue, 'REPLACE');\n }",
"function wp_cache_replace($key, $value, $group = '', $e... | [
"0.6724475",
"0.65986365",
"0.64210254",
"0.6141153",
"0.6113103",
"0.6094683",
"0.6082935",
"0.6077779",
"0.6050264",
"0.6041422",
"0.60235214",
"0.59844834",
"0.59434277",
"0.5938389",
"0.5927328",
"0.5912096",
"0.5905506",
"0.59024763",
"0.58667153",
"0.58097667",
"0.57620... | 0.55745643 | 34 |
Set Store an item | function set($key, $value, $expire=0) {
return $this->memcached->set($key, $value, $expire);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract function set ($item, $data);",
"public function setItem($key, $item);",
"public function setItem($item) {\n $this->item = $item;\n }",
"private function setStore(Store $store) {\n $this->store = $store;\n }",
"abstract function setStore(string $storeKey, int $time = null);",
... | [
"0.7217996",
"0.6978595",
"0.6550057",
"0.65077144",
"0.6356895",
"0.6350048",
"0.631642",
"0.62957466",
"0.62651783",
"0.6230259",
"0.6224049",
"0.620973",
"0.61480415",
"0.61349386",
"0.61349386",
"0.6127612",
"0.6069583",
"0.6062298",
"0.6004823",
"0.5997169",
"0.59714854"... | 0.0 | -1 |
Set Multi Store multiple items | function setMulti($items, $expire=0) {
return $this->memcached->setMulti($items, $expire);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function setItems($items);",
"public function setItems(array $items);",
"public function setItems(array $items);",
"public function setItems(array $items);",
"public function setItems(array $items);",
"public function setItems(array $items);",
"public function setItems(array $items);",
"public functi... | [
"0.66790456",
"0.64611757",
"0.64611757",
"0.64611757",
"0.64611757",
"0.64611757",
"0.64611757",
"0.64611757",
"0.64611757",
"0.64611757",
"0.6433496",
"0.6200946",
"0.61081433",
"0.6054843",
"0.6026302",
"0.6024222",
"0.6012198",
"0.60062814",
"0.5960489",
"0.59158695",
"0.... | 0.63179475 | 11 |
Construct this object with a strict mode indicator flag. In strict mode, any dynamic properties must be supplied in a call to __setDynamicPropertyKeys. Otherwise in non strict mode, any properties may be set and got on this class with no checking. | public function __construct($strictMode = true)
{
$this->__strictMode = $strictMode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setStrict(bool $strict) : self\n {\n $this->initialized['strict'] = true;\n $this->strict = $strict;\n return $this;\n }",
"public function setStrict($strict)\n {\n $this->strict = (boolean)$strict;\n return $this;\n }",
"public function setStrict(... | [
"0.62233335",
"0.6041506",
"0.5979815",
"0.59623474",
"0.5950186",
"0.5514565",
"0.5476406",
"0.54540604",
"0.5423375",
"0.53907245",
"0.5325056",
"0.5299977",
"0.5281213",
"0.52127254",
"0.51778907",
"0.5172225",
"0.5045656",
"0.49394467",
"0.4938116",
"0.48707926",
"0.48586... | 0.7034262 | 0 |
Set the array of dynamic property keys permissable for mapping in strict mode. | public function __setDynamicPropertyKeys($keys)
{
$this->__dynamicPropertyKeys = $keys;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function ensure_keys($src, $props, $fill_on_missing=null){\n\t\t$props = Arrays::from($props);\n\t\tforeach($props as $prop){\n\t\t\tif(!self::is_set($src, $prop)){\n\t\t\t\t$src[$prop] = $fill_on_missing;\n\t\t\t}\n\t\t}\n\t\treturn $src;\n\t}",
"public function allowAllProperties() {}",
"function setE... | [
"0.5784002",
"0.56098765",
"0.5584173",
"0.5450173",
"0.5423237",
"0.5415303",
"0.5394008",
"0.53550315",
"0.5334094",
"0.528714",
"0.5285188",
"0.52774864",
"0.5257326",
"0.5248365",
"0.5243046",
"0.52347535",
"0.52344483",
"0.5212014",
"0.52098143",
"0.51787007",
"0.5167783... | 0.7049758 | 0 |
Get a dynamic property (fast lookup method) | public function __getDynamicProperty($propertyKey)
{
return isset($this->__dynamicPropertyMap[$propertyKey]) ? $this->__dynamicPropertyMap[$propertyKey] : null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected function propertyGet($name);",
"public function getProperty($key);",
"public function get($property);",
"public function __get($prop) {}",
"public function __get($property) {}",
"public function __get($propertyName){\n if(array_key_exists($propertyName, $this->properties)){\n\n return ... | [
"0.75297296",
"0.7406168",
"0.7397085",
"0.73942184",
"0.7255577",
"0.7218282",
"0.71928287",
"0.71086895",
"0.70684934",
"0.70610094",
"0.7011623",
"0.6960203",
"0.69555885",
"0.6941297",
"0.6939853",
"0.6927143",
"0.6911241",
"0.6908093",
"0.6839671",
"0.68339205",
"0.68332... | 0.6274672 | 96 |
Implement the magic __call method to allow us to intercept calls for getters and setters to undefined functions. | public function __call($methodName, $args)
{
if (strlen($methodName) > 3) {
$propertyName = CodeUtils::instance()->normalisePropertyName(substr($methodName, 3));
if (strtolower(substr($methodName, 0, 3) == "set") && sizeof($args) == 1) {
if (!$this->__strictMode || i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function __call($methodName, $args){\n\t\t$attr = lcfirst( substr($methodName, 3) );\n\t\t$key = $this->propertyToKey($attr);\n\t\tif(strpos($methodName, 'set') === 0){\n\t\t\t$this->setter($key, $args);\n\t\t} elseif(strpos($methodName, 'get') === 0) {\n\t\t\treturn $this->getter($key);\n\t\t} else {\n\t\t... | [
"0.6405649",
"0.6017115",
"0.59636384",
"0.5940704",
"0.593392",
"0.59326243",
"0.59326243",
"0.5895379",
"0.58839667",
"0.58786726",
"0.5853931",
"0.5850172",
"0.58482945",
"0.5841955",
"0.5841955",
"0.5841955",
"0.5841955",
"0.5822343",
"0.58154273",
"0.58154273",
"0.576913... | 0.58331585 | 17 |
Intercept setters for undefined properties | public function __set($propertyName, $propertyValue)
{
if (!$this->__strictMode || is_numeric(array_search($propertyName, $this->__dynamicPropertyKeys)))
if ($propertyValue !== null) {
$this->__dynamicPropertyMap [$propertyName] = $propertyValue;
} else {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function __set($name, $value)\n {\n // Don't allow to set attributes\n }",
"public function __set($name, $value)\n {\n throw new \\BadMethodCallException( 'Writing data to inaccessible properties is not allowed.' );\n }",
"public function __set($name, $value)\n {\n th... | [
"0.64399487",
"0.6362477",
"0.6362477",
"0.621254",
"0.6157373",
"0.6157373",
"0.6157373",
"0.61428887",
"0.6122188",
"0.60465294",
"0.6025258",
"0.6012395",
"0.5991334",
"0.59696496",
"0.5951452",
"0.5877806",
"0.58766615",
"0.5870246",
"0.58613425",
"0.58386093",
"0.5835309... | 0.0 | -1 |
Intercept getters for undefined properties | public function __get($propertyName)
{
if (!$this->__strictMode || is_numeric(array_search($propertyName, $this->__dynamicPropertyKeys)))
return isset ($this->__dynamicPropertyMap [$propertyName]) ? $this->__dynamicPropertyMap [$propertyName] : null;
else
throw new PropertyNo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected function getDirectGetters();",
"private function accessor_wakeup(): void\n {\n $properties = get_object_vars($this);\n\n foreach ($properties as $property => $value) {\n if (\n $this->has_method(static::accessor_format(\n $property,... | [
"0.7057223",
"0.6576389",
"0.6511713",
"0.649461",
"0.637898",
"0.6332091",
"0.6271753",
"0.62004876",
"0.60583436",
"0.60583436",
"0.60583436",
"0.60193545",
"0.60193545",
"0.60193545",
"0.60193545",
"0.60193545",
"0.60193545",
"0.60193545",
"0.60193545",
"0.60193545",
"0.60... | 0.0 | -1 |
Override the parent get property value method to be a little more tolerant than the parent | public function __getSerialisablePropertyValue($propertyName)
{
try {
return parent::__getSerialisablePropertyValue($propertyName);
} catch (PropertyNotReadableException $e) {
if ($this->__strictMode) {
throw $e;
} else {
return nul... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function getPropertyValue() {}",
"public function getPropertyValue() {\n\t\t$propertyValue = parent::getPropertyValue();\n\t\tif ($propertyValue === NULL)\n\t\t\treturn FALSE;\n\t\treturn $propertyValue;\n\t}",
"function __get($property)\n {\n return $this->value;\n }",
"protected func... | [
"0.8329332",
"0.73011774",
"0.70947623",
"0.6914035",
"0.68595403",
"0.6796298",
"0.6787582",
"0.6745001",
"0.6702792",
"0.6673081",
"0.6630654",
"0.6630654",
"0.64549655",
"0.64549655",
"0.64540875",
"0.64512753",
"0.6437292",
"0.6397385",
"0.63736945",
"0.63736945",
"0.6373... | 0.0 | -1 |
Get the array of serialisable properties | public function __getSerialisablePropertyMap()
{
$serialisableProperties = parent::__getSerialisablePropertyMap();
$dynamicProperties = $this->__dynamicPropertyMap;
$map = array();
foreach ($dynamicProperties as $key => $value) {
$map[$key] = $value;
}
f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getProperties(): array;",
"public function getProperties(): array;",
"public function toArray(): array\n {\n $serialized = collect($this->properties);\n\n //partial serialization only for initialized properties\n if ($this->isPartial) {\n $serialized = $serial... | [
"0.7726086",
"0.7726086",
"0.7574918",
"0.7561523",
"0.74211776",
"0.7406352",
"0.7374068",
"0.7353187",
"0.7302775",
"0.73000914",
"0.72967297",
"0.72916424",
"0.7244975",
"0.72222716",
"0.72156274",
"0.7209128",
"0.72085625",
"0.71291536",
"0.71217746",
"0.7120375",
"0.7105... | 0.72033143 | 17 |
Set an array of serialisable properties | public function __setSerialisablePropertyMap($propertyMap, $ignoreNoneWritableProperties = false)
{
// Always ignore any unknown properties in parent as we need to capture these for dynamic purposes
$dynamicProperties = parent::__setSerialisablePropertyMap($propertyMap, true);
// If none ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setProperties(array $properties);",
"private function setProperties($array)\n\t{\t\n\t\tif(is_array($array)){\n\t\t\tforeach($array as $key => $value)\n\t\t\t\t$this->$key = $value;\n\t\t}\n\t}",
"protected function setProperties($array) {\n\t\tforeach (array_keys($this->data) as $field) {\n\t\... | [
"0.6953147",
"0.6807053",
"0.6629371",
"0.6548939",
"0.6508974",
"0.64658976",
"0.6443781",
"0.63383293",
"0.6324249",
"0.6309834",
"0.6211236",
"0.6195087",
"0.6166455",
"0.6153735",
"0.6153735",
"0.6128112",
"0.61129874",
"0.6048166",
"0.6039938",
"0.6024118",
"0.60240537",... | 0.0 | -1 |
(PHP 5 >= 5.0.0) Whether a offset exists | public function offsetExists($offset)
{
return array_key_exists($offset, $this->__getSerialisablePropertyMap());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function offsetExists($offset) {}",
"public function offsetExists($offset) {}",
"public function offsetExists($offset) {}",
"public function offsetExists($offset) {}",
"public function offsetExists($offset) {}",
"public function offsetExists($offset) {}",
"public function offsetExists($offset);"... | [
"0.8772706",
"0.8772706",
"0.8772706",
"0.8772706",
"0.8772706",
"0.8772706",
"0.875576",
"0.875576",
"0.8703466",
"0.86794883",
"0.8590747",
"0.85588557",
"0.8558615",
"0.85416746",
"0.85394305",
"0.85214514",
"0.8519317",
"0.85081714",
"0.84992206",
"0.84992206",
"0.8482111... | 0.0 | -1 |
(PHP 5 >= 5.0.0) Offset to retrieve | public function &offsetGet($offset)
{
if (isset($this->__dynamicPropertyMap[$offset])) {
return $this->__dynamicPropertyMap [$offset];
} else {
return $this->nullGuard;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOffset();",
"public function getOffset();",
"public function getOffset();",
"public function getOffset() {}",
"public function getOffset() {}",
"public function getOffset() {}",
"public function get_offset()\n {\n }",
"function getOffset() ;",
"public function getOf... | [
"0.83274716",
"0.83274716",
"0.83274716",
"0.82968587",
"0.82968587",
"0.82968587",
"0.81555015",
"0.8113823",
"0.8041884",
"0.7839899",
"0.78202254",
"0.77916676",
"0.7778198",
"0.776228",
"0.7742595",
"0.76465875",
"0.75858676",
"0.75680906",
"0.75674903",
"0.75060594",
"0.... | 0.0 | -1 |
(PHP 5 >= 5.0.0) Offset to set | public function offsetSet($offset, $value)
{
$this->__set($offset, $value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setOffset($offset) {}",
"function setOffset($value) {\n $this->offset = $value;\n }",
"public function setOffset($offset) { $this->_offset = $offset; }",
"public function setOffset($offset);",
"public function setOffset($offset);",
"private function setOffset()\n {\n $th... | [
"0.803096",
"0.77768505",
"0.7732013",
"0.77066976",
"0.77066976",
"0.7320627",
"0.7311482",
"0.7306653",
"0.72560453",
"0.7195557",
"0.71524364",
"0.71234775",
"0.70963806",
"0.7071795",
"0.7071215",
"0.698863",
"0.6974258",
"0.6893127",
"0.6893127",
"0.6893127",
"0.68741864... | 0.0 | -1 |
(PHP 5 >= 5.0.0) Offset to unset | public function offsetUnset($offset)
{
$this->__set($offset, null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function offsetUnset($offset) {}",
"public function offsetUnset($offset) {}",
"public function offsetUnset($offset) {}",
"public function offsetUnset($offset) {}",
"public function offsetUnset($offset) {}",
"public function offsetUnset($offset);",
"public function offsetUnset($offset);",
"publ... | [
"0.8049718",
"0.8049718",
"0.8049387",
"0.8049387",
"0.8049387",
"0.7937953",
"0.7937953",
"0.77556944",
"0.77503955",
"0.77020925",
"0.7671424",
"0.76175094",
"0.74694145",
"0.74428016",
"0.7429423",
"0.74289",
"0.74156773",
"0.7402123",
"0.7276126",
"0.7273116",
"0.72722167... | 0.68804646 | 77 |
(PHP 5 >= 5.0.0) Return the current element | public function current()
{
$map = $this->__getSerialisablePropertyMap();
$mapKeys = array_keys($map);
return $map[$mapKeys[$this->iteratorPosition]];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function current() {\n return $this->currentElem;\n }",
"public function current()\n {\n return current($this->_elements);\n }",
"public function current() {\n $element = current($this->elements);\n return $element;\n }",
"public function current()\n {\n ... | [
"0.8329684",
"0.8321152",
"0.82586604",
"0.82424307",
"0.8234502",
"0.81883717",
"0.81850725",
"0.81217206",
"0.8017461",
"0.7998006",
"0.75916237",
"0.75916237",
"0.75916237",
"0.75916237",
"0.75916237",
"0.75916237",
"0.75916237",
"0.75916237",
"0.75916237",
"0.75916237",
"... | 0.0 | -1 |
(PHP 5 >= 5.0.0) Move forward to next element | public function next()
{
$this->iteratorPosition++;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function next() {\n next($this->elements);\n $this->pointer++;\n }",
"public function next()\n {\n $current = $this->current();\n\n if ($current) {\n $this->current = $current->getAfter();\n }\n }",
"public function next() {\n $this->nextElem... | [
"0.7794454",
"0.7689749",
"0.7498244",
"0.74530256",
"0.7442968",
"0.7442968",
"0.7301459",
"0.7246025",
"0.7209344",
"0.72027177",
"0.71627116",
"0.7116954",
"0.7113237",
"0.7066224",
"0.7053791",
"0.70533127",
"0.70533127",
"0.7043359",
"0.7035839",
"0.7030739",
"0.7023763"... | 0.6585426 | 77 |
(PHP 5 >= 5.0.0) Return the key of the current element | public function key()
{
$map = $this->__getSerialisablePropertyMap();
$mapKeys = array_keys($map);
return $mapKeys[$this->iteratorPosition];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function key() {\n $key = key($this->elements);\n return $key;\n }",
"public function key()\n {\n return key($this->_elements);\n }",
"public function key() {\n $element = key($this->elements);\n\n return $element;\n }",
"public function key()\n {\n ... | [
"0.8327821",
"0.82503223",
"0.8170709",
"0.8162659",
"0.8022903",
"0.80136764",
"0.7996445",
"0.78575104",
"0.7834267",
"0.7833222",
"0.781391",
"0.78070927",
"0.7778969",
"0.7766847",
"0.77640253",
"0.7761457",
"0.7733261",
"0.77173746",
"0.771003",
"0.77051723",
"0.7691282"... | 0.0 | -1 |
(PHP 5 >= 5.0.0) Checks if current position is valid | public function valid()
{
$map = $this->__getSerialisablePropertyMap();
$mapKeys = array_keys($map);
return isset($mapKeys[$this->iteratorPosition]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function valid() \n {\n return $this->offsetExists($this->position);\n }",
"function valid() {\n return ($this->pos < $this->end);\n }",
"function valid()\n {\n return $this->_position == 0 || $this->_curPage->getSize() > 0;\n }",
"function valid() {\r\n return isse... | [
"0.7836748",
"0.78107923",
"0.7591298",
"0.7414876",
"0.7375953",
"0.7326164",
"0.71571124",
"0.7152389",
"0.71319675",
"0.7094968",
"0.70847255",
"0.70817536",
"0.70695114",
"0.7060864",
"0.7045044",
"0.7040863",
"0.7040863",
"0.7019618",
"0.70139503",
"0.70102775",
"0.69468... | 0.0 | -1 |
(PHP 5 >= 5.0.0) Rewind the Iterator to the first element | public function rewind()
{
$this->iteratorPosition = 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function first()\r\n {\r\n $this->index = 0;\r\n }",
"public function first(): void\n {\n $this->index = 0;\n }",
"public function first() {\n $this->index = 0;\n }",
"public function rewind()\n {\n $this->iteratorIndex = 0;\n reset($this->elements)... | [
"0.72679526",
"0.72405833",
"0.72240293",
"0.719845",
"0.71791613",
"0.7164009",
"0.7164009",
"0.71441483",
"0.7067605",
"0.69443816",
"0.6926491",
"0.68786657",
"0.68576556",
"0.6827628",
"0.6827628",
"0.6808684",
"0.68048143",
"0.68045884",
"0.6792876",
"0.67910546",
"0.678... | 0.68542826 | 13 |
Create a new controller instance. | public function __construct()
{
$this->middleware('guest');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function createController()\n {\n $this->createClass('controller');\n }",
"protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this-... | [
"0.82668066",
"0.8173394",
"0.78115296",
"0.77052677",
"0.7681875",
"0.7659338",
"0.74860525",
"0.74064577",
"0.7297601",
"0.7252339",
"0.7195181",
"0.7174191",
"0.70150065",
"0.6989306",
"0.69835985",
"0.69732994",
"0.6963521",
"0.6935819",
"0.68973273",
"0.68920785",
"0.687... | 0.0 | -1 |
Get a validator for an incoming registration request. | protected function validator(array $data)
{
return Validator::make($data, [
'firstName' => 'required|string|max:255',
'lastName' => 'required|string|max:255',
'telephone' => 'required|string|max:255',
'email' => 'required|string|email|max:255|unique:users',
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getValidator() {}",
"public function getValidator();",
"public function getValidator();",
"public function getValidator()\n {\n return $this->validator;\n }",
"public function getValidator()\n {\n return $this->validator;\n }",
"public function getValidator()\n ... | [
"0.7217253",
"0.71017957",
"0.71017957",
"0.7048845",
"0.7048845",
"0.7048845",
"0.6924129",
"0.69168675",
"0.6899657",
"0.68542325",
"0.684801",
"0.68128955",
"0.68007755",
"0.6797457",
"0.67463154",
"0.66977936",
"0.6687648",
"0.6645321",
"0.6593937",
"0.6564549",
"0.650673... | 0.0 | -1 |
Create a new user instance after a valid registration. | protected function create(array $data)
{
try{
$user = User::create([
'firstName' => $data['firstName'],
'lastName' => $data['lastName'],
'telephone' => $data['telephone'],
'email' => $data['email'],
'password' => bcr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function _createUser()\n {\n $data = [\n 'email' => 'newuser@email.nl',\n 'password' => 'test',\n ];\n\n $user = $this->Users->newEntity($data);\n\n $user->set('active', true);\n $user->set('role_id', 1);\n\n $this->Users->save($user);\n ... | [
"0.77523947",
"0.74900365",
"0.7475983",
"0.7475983",
"0.7475983",
"0.7475983",
"0.7418979",
"0.7418979",
"0.73626566",
"0.7310667",
"0.72906804",
"0.7172797",
"0.71538836",
"0.71376646",
"0.71314734",
"0.711611",
"0.71076417",
"0.7093154",
"0.7086479",
"0.70860976",
"0.70681... | 0.0 | -1 |
/ Purpose of the flush, is to send the response code back to Stripe right away to prevent their request from timing out, and retries being sent. | public function account_updated(){
$this->log();
http_response_code(200);
ob_end_flush();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function flushResponses()\n {\n self::$bxClient->flushResponses();\n self::$bxClient->resetRequests();\n }",
"protected function _completeFlush() {\r\n\r\n }",
"public function flush() {}",
"public function flush() {}",
"public function flush() {}",
"public function flush() {}... | [
"0.62705255",
"0.61849475",
"0.6102658",
"0.6102658",
"0.6102658",
"0.6102658",
"0.6102399",
"0.6102399",
"0.6102399",
"0.6102399",
"0.6102399",
"0.6102399",
"0.6102399",
"0.6102399",
"0.6102399",
"0.6057254",
"0.5985159",
"0.59762645",
"0.5961308",
"0.5934398",
"0.5924447",
... | 0.0 | -1 |
/ stripe test to see if endpoint is alive; return 200 to let it know it is! | public function ping(){
http_response_code(200);
ob_end_flush();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function checkApiIsUp() {\n\t\t$result = $this->useCfCURLQuery( \"https://socket.bittrex.com/signalr/ping\" );\n\t\tif ( $result ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}",
"public function health(): bool {\n $_status = $this->fetch([\n 'fetch' => 'Status',\n 'route' => \"/heal... | [
"0.65209424",
"0.64206403",
"0.63276374",
"0.6191959",
"0.61757123",
"0.61531",
"0.61456233",
"0.6083699",
"0.6057163",
"0.59673727",
"0.59317863",
"0.587941",
"0.5877289",
"0.58623576",
"0.5855335",
"0.58543146",
"0.5850602",
"0.5808014",
"0.58057094",
"0.58005",
"0.5799425"... | 0.62350845 | 3 |
Create a new controller instance. | public function __construct()
{
// $this->middleware('auth');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function createController()\n {\n $this->createClass('controller');\n }",
"protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this-... | [
"0.82668066",
"0.8173394",
"0.78115296",
"0.77052677",
"0.7681875",
"0.7659338",
"0.74860525",
"0.74064577",
"0.7297601",
"0.7252339",
"0.7195181",
"0.7174191",
"0.70150065",
"0.6989306",
"0.69835985",
"0.69732994",
"0.6963521",
"0.6935819",
"0.68973273",
"0.68920785",
"0.687... | 0.0 | -1 |
Show the application dashboard. | public function __invoke(Request $request)
{
ini_set('memory_limit', '-1');
$user = auth()->user();
$alias = app('request')->input('name');
$filter = explode('-', $request->name);
$teams = Team::where('logo', '=', 'img/team-logos/'.$filter[0])->get();
$arrTopSupp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function dashboard()\n {\n\n $pageData = (new DashboardService())->handleDashboardLandingPage();\n\n return view('application', $pageData);\n }",
"function dashboard() {\r\n\t\t\tTrackTheBookView::render('dashboard');\r\n\t\t}",
"public function showDashboard() { \n\t\n ... | [
"0.77850926",
"0.7760142",
"0.7561336",
"0.75147176",
"0.74653697",
"0.7464913",
"0.73652893",
"0.7351646",
"0.7346477",
"0.73420244",
"0.7326711",
"0.7316215",
"0.73072463",
"0.7287626",
"0.72826403",
"0.727347",
"0.727347",
"0.727347",
"0.727347",
"0.7251768",
"0.7251768",
... | 0.0 | -1 |
Array of property to type mappings. Used for (de)serialization | public static function swaggerTypes()
{
return self::$swaggerTypes;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getTypes()\n {\n $types = PropertyType::all();\n $values = [];\n foreach ($types as $key) {\n $values[] = $key->id;\n }\n return $values;\n }",
"public function getTypes(): array\n {\n return $this->types;\n }",
"public static fun... | [
"0.6779591",
"0.6607671",
"0.6598399",
"0.65871716",
"0.65820396",
"0.6517233",
"0.6510976",
"0.6476572",
"0.6432348",
"0.6432348",
"0.6432348",
"0.6400341",
"0.62290716",
"0.6181703",
"0.6181703",
"0.6134249",
"0.61259305",
"0.6116482",
"0.6116482",
"0.61130923",
"0.6104262"... | 0.0 | -1 |
Array of property to format mappings. Used for (de)serialization | public static function swaggerFormats()
{
return self::$swaggerFormats;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getFormats()\n {\n\t $format_field = $this->getValue('format');\n\t return wed_decodeJSON($format_field,true);\n }",
"public function provideSetFormat()\n {\n return [\n 'json' => [\n 'format' => 'json',\n ],\n 'html' => [\n... | [
"0.6250112",
"0.6181188",
"0.612938",
"0.60935354",
"0.6042571",
"0.60404164",
"0.5926467",
"0.5917114",
"0.59049124",
"0.5883796",
"0.5882191",
"0.58203566",
"0.5803534",
"0.5791693",
"0.579118",
"0.57909596",
"0.5773587",
"0.57419014",
"0.5726583",
"0.57192504",
"0.5709573"... | 0.0 | -1 |
Array of attributes where the key is the local name, and the value is the original name | public static function attributeMap()
{
return self::$attributeMap;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function changedAttributesName(): array\n {\n $changedAttributes = [];\n $attributes = $this->toArray();\n foreach ($attributes as $key => $value) {\n if (isset($this->originals[$key]) && $value !== $this->originals[$key] && ! ((is_array($this->originals[$key]) || is_objec... | [
"0.7333711",
"0.6827746",
"0.6577591",
"0.65768814",
"0.65051097",
"0.6489663",
"0.64799356",
"0.6446691",
"0.6414611",
"0.6385425",
"0.6381223",
"0.63496166",
"0.6279113",
"0.6254763",
"0.6254763",
"0.6254763",
"0.6254763",
"0.625021",
"0.61942244",
"0.6169202",
"0.6161784",... | 0.0 | -1 |
Array of attributes to setter functions (for deserialization of responses) | public static function setters()
{
return self::$setters;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setAttributes();",
"public static function setters();",
"public static function setters()\n {\n return [\n 'status' => 'setStatus',\n 'quota' => 'setQuota'\n ];\n }",
"public function setAttributes(array $attributes);",
"public function setAttribute... | [
"0.680262",
"0.66679907",
"0.6505545",
"0.64688873",
"0.64688873",
"0.64688873",
"0.64303744",
"0.63683504",
"0.63627255",
"0.63459826",
"0.63396704",
"0.61683947",
"0.61683947",
"0.61683947",
"0.61683947",
"0.61683947",
"0.61683947",
"0.61683947",
"0.61683947",
"0.61683947",
... | 0.0 | -1 |
Array of attributes to getter functions (for serialization of requests) | public static function getters()
{
return self::$getters;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getAttributes(): array\n {\n // Get all attributes using all the getters.\n $attributes = [];\n foreach(\\array_keys(\\get_object_vars($this)) as $attribute) {\n\n // Construct the getter name.\n $getter = \\lcfirst(\\str_replace('_', '', \\ucwords($att... | [
"0.7071254",
"0.6628055",
"0.6581621",
"0.65085584",
"0.65085584",
"0.65085584",
"0.65085584",
"0.6499994",
"0.64624524",
"0.63637143",
"0.6363414",
"0.6315606",
"0.6315606",
"0.6315606",
"0.6315606",
"0.6315606",
"0.6315606",
"0.6315606",
"0.6315606",
"0.6315606",
"0.6287656... | 0.0 | -1 |
The original name of the model. | public function getModelName()
{
return self::$swaggerModelName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOriginalName(): string\n {\n return $this->originalName;\n }",
"public function getOriginalName(): string\n {\n\t\treturn $this->originalName;\n\t}",
"public function getOriginalName();",
"protected function getModelName()\n {\n $fullyQualifiedClassName = substr(s... | [
"0.8051171",
"0.80107665",
"0.7829159",
"0.763725",
"0.7625556",
"0.7594126",
"0.75220734",
"0.75203615",
"0.7520026",
"0.74983907",
"0.74457127",
"0.7406896",
"0.7395408",
"0.7392189",
"0.7380455",
"0.73451596",
"0.7309523",
"0.7268473",
"0.72646457",
"0.7194995",
"0.7167137... | 0.0 | -1 |
Show all the invalid properties with reasons. | public function listInvalidProperties()
{
$invalidProperties = [];
if ($this->container['query_type'] === null) {
$invalidProperties[] = "'query_type' can't be null";
}
if ($this->container['start_date'] === null) {
$invalidProperties[] = "'start_date' can't ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function listInvalidProperties();",
"public function listInvalidProperties()\n {\n $invalid_properties = parent::listInvalidProperties();\n\n return $invalid_properties;\n }",
"public function listInvalidProperties() {\n\n $invalidProperties = [];\n\n /*\n * Any needed vali... | [
"0.7954126",
"0.7814029",
"0.7804116",
"0.780055",
"0.780055",
"0.780055",
"0.7795368",
"0.77933925",
"0.7785144",
"0.7781625",
"0.7781625",
"0.77577174",
"0.77577174",
"0.77577174",
"0.77577174",
"0.77577174",
"0.77577174",
"0.7743693",
"0.7742531",
"0.77358544",
"0.77358544... | 0.0 | -1 |
Validate all the properties in the model return true if all passed | public function valid()
{
return count($this->listInvalidProperties()) === 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function validate(){\n\t\t$valid = true;\n\t\t$ref = new ReflectionObject($this);\n\t\tforeach($ref->getProperties() as $prop){\n\t\t\tif(isset($this->_atributosMetadata[$prop->getName()])){\n\t\t\t\t$propMetadata = $this->_atributosMetadata[$prop->getName()];\n\t\t\t\tif($propMetadata->needValidate){\n\t\t... | [
"0.76944476",
"0.7569596",
"0.72817",
"0.72507316",
"0.72507316",
"0.72507316",
"0.72507316",
"0.72507316",
"0.72507316",
"0.72507316",
"0.72507316",
"0.72507316",
"0.72507316",
"0.72507316",
"0.72507316",
"0.72507316",
"0.72507316",
"0.72507316",
"0.72507316",
"0.72507316",
... | 0.0 | -1 |
Returns true if offset exists. False otherwise. | public function offsetExists($offset)
{
return isset($this->container[$offset]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function offsetExists($offset): bool\n {\n return false;\n }",
"public function hasOffset(){\n return $this->_has(1);\n }",
"public function offsetExists($offset): bool;",
"public function offsetExists($offset) {\n\t\t$result = false;\n\t\t\n\t\tif($this->_data[$offset]) {\n\t\t\t... | [
"0.8555834",
"0.8536144",
"0.84876734",
"0.8325894",
"0.8322583",
"0.8300258",
"0.821515",
"0.81559885",
"0.8143132",
"0.8143132",
"0.81348807",
"0.81315136",
"0.8130816",
"0.8128181",
"0.8118165",
"0.81153667",
"0.81060076",
"0.8103301",
"0.80874085",
"0.80874085",
"0.808201... | 0.0 | -1 |
Sets value based on offset. | public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function set($offset, $value);",
"public function set($offset, $value = null);",
"function setOffset($value) {\n $this->offset = $value;\n }",
"public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }",
"public function offsetSet($offset, $value)\n {\n $th... | [
"0.8670502",
"0.84270954",
"0.821386",
"0.8191476",
"0.8170767",
"0.8170767",
"0.8170767",
"0.8170767",
"0.8170767",
"0.8170767",
"0.8170767",
"0.8170767",
"0.8170767",
"0.8170767",
"0.8170767",
"0.8170767",
"0.8170767",
"0.8170767",
"0.8170767",
"0.8170767",
"0.8170767",
"... | 0.0 | -1 |
Gets the string presentation of the object | public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForS... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function __toString() {\r\n\t\treturn $this->getPrint();\r\n\t}",
"public function __toString() {\r\n\t\treturn $this->getPrint();\r\n\t}",
"public function __toString() {\n\t\treturn $this->getPrint();\n\t}",
"public function visualize()\n {\n \n return new StringWrapper('object('.$this->name(... | [
"0.78987753",
"0.78987753",
"0.78655267",
"0.78240114",
"0.7798868",
"0.77837336",
"0.77770287",
"0.77690274",
"0.77437395",
"0.774057",
"0.7733258",
"0.7733258",
"0.7733258",
"0.7695146",
"0.767794",
"0.76635754",
"0.76593804",
"0.7630339",
"0.76228136",
"0.7610629",
"0.7575... | 0.0 | -1 |
converts name field so it's found in union's orginization | protected function findField($field) {
if ($field == 'union_name') {
$field = 'organization_name';
}
#converts phone field so it's found in union's telecommunication_number
if ($field == 'union_phone_no') {
$field = 'contact_number';
}
return paren... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract function get_union();",
"function name2field($name) {\n return str_replace(\n array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'), array('_a', '_b', '_c', '_d', '_e', '_f', '_g', '_h', '_i... | [
"0.6566665",
"0.5828676",
"0.5638046",
"0.562188",
"0.55986893",
"0.55572206",
"0.55337876",
"0.5505357",
"0.5470739",
"0.54336",
"0.5370983",
"0.5370283",
"0.53652257",
"0.53301775",
"0.53203213",
"0.5311883",
"0.5276244",
"0.5211383",
"0.515581",
"0.51519233",
"0.512599",
... | 0.51293224 | 20 |
converts name field so it's found in union's orginization | protected function getLocalField($field) {
if ($field == 'union_name') {
$field = 'organization_name';
}
#converts phone field so it's found in union's telecommunication_number
if ($field == 'union_phone_no') {
$field = 'contact_number';
}
return p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract function get_union();",
"function name2field($name) {\n return str_replace(\n array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'), array('_a', '_b', '_c', '_d', '_e', '_f', '_g', '_h', '_i... | [
"0.6566665",
"0.5828676",
"0.5638046",
"0.562188",
"0.55986893",
"0.55572206",
"0.55337876",
"0.5505357",
"0.5470739",
"0.54336",
"0.5370983",
"0.5370283",
"0.53301775",
"0.53203213",
"0.5311883",
"0.5276244",
"0.5211383",
"0.515581",
"0.51519233",
"0.51293224",
"0.512599",
... | 0.53652257 | 12 |
converts name field so it's found in union's orginization | protected function setLocalField($field, $value) {
if ($field == 'union_name') {
$field = 'organization_name';
}
#converts phone field so it's found in union's telecommunication_number
if ($field == 'union_phone_no') {
$field = 'contact_number';
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract function get_union();",
"function name2field($name) {\n return str_replace(\n array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'), array('_a', '_b', '_c', '_d', '_e', '_f', '_g', '_h', '_i... | [
"0.6566665",
"0.5828676",
"0.5638046",
"0.562188",
"0.55986893",
"0.55572206",
"0.55337876",
"0.5505357",
"0.5470739",
"0.54336",
"0.5370983",
"0.5370283",
"0.53652257",
"0.53301775",
"0.53203213",
"0.5311883",
"0.5276244",
"0.5211383",
"0.515581",
"0.51519233",
"0.51293224",... | 0.0 | -1 |
Handle user login events. | public function onUserLogin($event)
{
$user = $event->user;
// lets save the last_login timestamp.
$user->last_login = Carbon::now();
$user->save();
$this->setPermissions($user);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function handleUserLogin($event) {\n //Log user login\n $activity = new Activity;\n $activity->activity_type = 'login';\n $activity->actor_id = $event->user->id;\n $activity->actor_type = 'user';\n $activity->activity_data = '';\n $activity->user_agent = $this->request->he... | [
"0.78446686",
"0.75668645",
"0.72920346",
"0.7247962",
"0.72268045",
"0.71338725",
"0.71294385",
"0.70603514",
"0.68314135",
"0.68265253",
"0.67718315",
"0.6752976",
"0.66307336",
"0.6620447",
"0.66097003",
"0.660449",
"0.6587974",
"0.65558004",
"0.65505505",
"0.6528736",
"0.... | 0.65857565 | 17 |
Handle user logout events. | public function onUserLogout($event)
{
$user = $event->user;
Cache::tags('auth_permissions')->forget($user->id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function handleUserLogout($event) {}",
"public function onUserLogout($event) {\n\n Log::info('event catched');\n\n }",
"public function onUserLogout($event)\n {\n debug($event);\n }",
"public function onLogout()\n {\n // TODO: Implement onLogout() method.\n }",
"p... | [
"0.87109697",
"0.8093797",
"0.7875463",
"0.76664406",
"0.75929594",
"0.7468998",
"0.7466601",
"0.746067",
"0.74281156",
"0.74114",
"0.7347855",
"0.72975975",
"0.7238848",
"0.70879906",
"0.706557",
"0.7042854",
"0.7001643",
"0.69507337",
"0.69469774",
"0.69259965",
"0.6909255"... | 0.7110853 | 13 |
Handle user check events. | public function onUserCheck($event)
{
$this->setPermissions($event->user);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function check()\n {\n if(!empty($this->user)) {\n // If you need to check users online list in every page load, check this TRUE in config file\n if($this->config->item('check_users_on_page_load', 'online')) {\n $this->checkOnlineList();\n }\n\n ... | [
"0.65602386",
"0.6133399",
"0.60771954",
"0.5979248",
"0.5978918",
"0.59740734",
"0.5880663",
"0.587252",
"0.58474576",
"0.5812375",
"0.58063495",
"0.5749939",
"0.5716132",
"0.56953496",
"0.56855094",
"0.5664958",
"0.5651741",
"0.56449246",
"0.5638396",
"0.56306547",
"0.56224... | 0.70812285 | 0 |
Register the listeners for the subscriber. | public function subscribe($events)
{
$events->listen(
Login::class,
'AppCompass\Listeners\UserEventSubscriber@onUserLogin'
);
$events->listen(
Logout::class,
'AppCompass\Listeners\UserEventSubscriber@onUserLogout'
);
$events->... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function registerListeners()\n {\n // Login event listener\n #Event::listen('auth.login', function($user) {\n //\n #});\n\n // Logout event subscriber\n #Event::subscribe('Mrcore\\Parser\\Listeners\\MyEventSubscription');\n }",
"protected function reg... | [
"0.76423573",
"0.7576691",
"0.7523886",
"0.7480838",
"0.71998376",
"0.71273154",
"0.70560163",
"0.6981671",
"0.6912011",
"0.67695504",
"0.66503614",
"0.65324897",
"0.6521632",
"0.6521632",
"0.6494098",
"0.64904916",
"0.6473717",
"0.64685476",
"0.64645183",
"0.6458164",
"0.643... | 0.6033935 | 65 |
Returns list of former configured errors | public function getMappings()
{
$aMappings = $this->_fcpoGetExistingMappings();
$aMappings = $this->_fcpoAddNewMapping($aMappings);
return $aMappings;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function get_list_errors()\n\t{\n\t\treturn $this->errors;\n\t}",
"public function getAllerrors() {\n return $this->errors;\n }",
"function getListOfErrors() {\n\t\treturn $this->errorList;\n\t}",
"public function errors()\n {\n // return new \\ArrayList($this->errorList.values());\n... | [
"0.780528",
"0.7673197",
"0.76589805",
"0.7647438",
"0.76448476",
"0.7599415",
"0.75943273",
"0.7583431",
"0.752087",
"0.7502352",
"0.7481191",
"0.7463807",
"0.7446522",
"0.7436884",
"0.74195266",
"0.74182475",
"0.74130136",
"0.7351679",
"0.73299503",
"0.7300573",
"0.729761",... | 0.0 | -1 |
Returns list of former configured iframe errors | public function getIframeMappings()
{
$aMappings = $this->_fcpoGetExistingIframeMappings();
$aMappings = $this->_fcpoAddNewIframeMapping($aMappings);
return $aMappings;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function _fcpoGetExistingIframeMappings() \n {\n $aExistingErrorMappings = $this->_oFcpoErrorMapping->fcpoGetExistingMappings('iframe');\n\n return $aExistingErrorMappings;\n }",
"public function get_list_errors()\n\t{\n\t\treturn $this->errors;\n\t}",
"public function get_errors(... | [
"0.6965409",
"0.6675887",
"0.657262",
"0.6495985",
"0.6473753",
"0.64412445",
"0.64317167",
"0.6426883",
"0.6421216",
"0.64169186",
"0.6410796",
"0.63551563",
"0.63478976",
"0.63378245",
"0.6325951",
"0.63228077",
"0.6316106",
"0.6295226",
"0.6292224",
"0.6292224",
"0.6282294... | 0.0 | -1 |
Requests xml base file to fetch all existing error codes and defaultmessages | public function fcpoGetPayoneErrorMessages($sType='general')
{
$aErrorCodes = $this->_oFcpoErrorMapping->fcpoGetAvailableErrorCodes($sType);
return $aErrorCodes;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function getXmlErrors()\n {\n $errors = array();\n foreach (libxml_get_errors() as $error) {\n $errors[] = sprintf('[%s %s] %s (in %s - line %d, column %d)',\n LIBXML_ERR_WARNING == $error->level ? 'WARNING' : 'ERROR',\n $error->code,\n ... | [
"0.6310513",
"0.6310513",
"0.6255991",
"0.61736596",
"0.57595664",
"0.57562035",
"0.56870586",
"0.5671634",
"0.56604356",
"0.5656214",
"0.55957276",
"0.55936533",
"0.55616224",
"0.55263186",
"0.5499001",
"0.54916567",
"0.54553187",
"0.54553187",
"0.54550374",
"0.54520416",
"0... | 0.0 | -1 |
Returns list of language objects | public function getLanguages()
{
$oLang = $this->_oFcpoHelper->fcpoGetLang();
$aLanguages = $oLang->getLanguageArray(null, true, true);
return $aLanguages;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getLanguageList();",
"public function getLanguages () {\n\t\treturn $this->cachedObjects;\n\t}",
"public function getLanguages();",
"public function getAllLanguages()\n\t{\n\t\t$mod = $this->getAppModel('LanguageModel');\n\n\t\t$query = $this->getBaseManager()->getConnection()->newQuery();\n\... | [
"0.873339",
"0.7897025",
"0.7716041",
"0.7701232",
"0.7693995",
"0.75818855",
"0.75437635",
"0.75408417",
"0.75225574",
"0.75108224",
"0.75095725",
"0.74050975",
"0.7336716",
"0.73238546",
"0.72734684",
"0.7167542",
"0.7136019",
"0.71022886",
"0.7071906",
"0.707151",
"0.70642... | 0.65158004 | 77 |
Adds a new entry if flag has been set | protected function _fcpoAddNewMapping($aMappings)
{
if ($this->_oFcpoHelper->fcpoGetRequestParameter('add')) {
$oMapping = new stdClass();
$oMapping->sOxid = 'new';
$oMapping->sErrorCode = '';
$oMapping->sMappedMessage = '';
$oMapping->sLangId = '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function addFlag($flag)\n {\n if (! in_array($flag, $this->flags)) {\n $this->flags[] = $flag;\n }\n }",
"public function add_entry($entry);",
"public function add_entry($entry)\n {\n }",
"public function added($flag = true) {\n\t\t$this->added = (boolean) ... | [
"0.6817439",
"0.65982884",
"0.650972",
"0.64184195",
"0.6399495",
"0.63608205",
"0.58558047",
"0.5822871",
"0.5816913",
"0.5777252",
"0.5692013",
"0.56507134",
"0.5642039",
"0.5637235",
"0.5541096",
"0.55346555",
"0.55302525",
"0.54890823",
"0.54577327",
"0.54368997",
"0.5413... | 0.0 | -1 |
Adds a new entry if flag has been set | protected function _fcpoAddNewIframeMapping($aMappings)
{
if ($this->_oFcpoHelper->fcpoGetRequestParameter('addIframe')) {
$oMapping = new stdClass();
$oMapping->sOxid = 'new';
$oMapping->sErrorCode = '';
$oMapping->sMappedMessage = '';
$oMapping-... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function addFlag($flag)\n {\n if (! in_array($flag, $this->flags)) {\n $this->flags[] = $flag;\n }\n }",
"public function add_entry($entry);",
"public function add_entry($entry)\n {\n }",
"public function added($flag = true) {\n\t\t$this->added = (boolean) ... | [
"0.6817439",
"0.65982884",
"0.650972",
"0.64184195",
"0.6399495",
"0.63608205",
"0.58558047",
"0.5822871",
"0.5816913",
"0.5777252",
"0.5692013",
"0.56507134",
"0.5642039",
"0.5637235",
"0.5541096",
"0.55346555",
"0.55302525",
"0.54890823",
"0.54577327",
"0.54368997",
"0.5413... | 0.0 | -1 |
Returns list of all mappings | protected function _fcpoGetExistingMappings()
{
$aExistingIframeMappings = $this->_oFcpoErrorMapping->fcpoGetExistingMappings();
return $aExistingIframeMappings;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getMappings();",
"public function getMappings();",
"public function getMappings()\n {\n return $this->mappings;\n }",
"protected function getMappings()\n {\n return json_decode($this->mappings, true);\n }",
"public static function get_all ()\n {\n return ... | [
"0.8364371",
"0.8364371",
"0.7962262",
"0.75257295",
"0.74817324",
"0.7231722",
"0.72032106",
"0.71398324",
"0.68841153",
"0.6822596",
"0.68010235",
"0.6739001",
"0.67326856",
"0.67308354",
"0.6701516",
"0.6686688",
"0.6654618",
"0.661817",
"0.6613692",
"0.66049176",
"0.64883... | 0.58703667 | 66 |
Returns list of all mappings | protected function _fcpoGetExistingIframeMappings()
{
$aExistingErrorMappings = $this->_oFcpoErrorMapping->fcpoGetExistingMappings('iframe');
return $aExistingErrorMappings;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getMappings();",
"public function getMappings();",
"public function getMappings()\n {\n return $this->mappings;\n }",
"protected function getMappings()\n {\n return json_decode($this->mappings, true);\n }",
"public static function get_all ()\n {\n return ... | [
"0.8364371",
"0.8364371",
"0.7962262",
"0.75257295",
"0.74817324",
"0.7231722",
"0.72032106",
"0.71398324",
"0.68841153",
"0.6822596",
"0.68010235",
"0.6739001",
"0.67326856",
"0.67308354",
"0.6701516",
"0.6686688",
"0.6654618",
"0.661817",
"0.6613692",
"0.66049176",
"0.64883... | 0.0 | -1 |
Updating settings into database | public function save()
{
$oMapping = $this->fcpoGetInstance('fcpoerrormapping');
$aGeneralMappings = $this->_oFcpoHelper->fcpoGetRequestParameter("editval");
if (is_array($aGeneralMappings) && count($aGeneralMappings) > 0) {
$oMapping->fcpoUpdateMappings($aGeneralMappings, 'gene... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function updateSettings()\n {\n $this->settings = array();\n $raw_settings = $this->db->fetchAll('SELECT name, value FROM settings');\n\n foreach ($raw_settings as $raw_setting) {\n $this->settings[$raw_setting['name']] = $raw_setting['value'];\n }\n }",
"pu... | [
"0.7625936",
"0.74063194",
"0.73172325",
"0.6983534",
"0.697929",
"0.69198734",
"0.6857656",
"0.68384475",
"0.675479",
"0.6710239",
"0.6681419",
"0.66346204",
"0.6623677",
"0.6622036",
"0.6553051",
"0.65451425",
"0.6530473",
"0.6521987",
"0.6465335",
"0.6461901",
"0.6457962",... | 0.0 | -1 |
Get a list of Material | public function index() {
$materials = Material::withCount('parts')->get();
if($materials) {
return response()->json([
'success' => true,
'post' => [
'materials' => $materials,
],
'message' => '已获取所有材质信息'
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function materialList(){\n $materials = $this->getAll();\n $options = [];\n foreach($materials as $material){\n $options[$material->material_name] = $material->id;\n } \n \treturn $options;\n }",
"public static function all() {\n\t\t$material_helper = new Material()... | [
"0.80968195",
"0.8070642",
"0.7990947",
"0.7990947",
"0.7901039",
"0.73994666",
"0.71471596",
"0.7115192",
"0.70211095",
"0.68565917",
"0.68119997",
"0.67881304",
"0.67593426",
"0.67383903",
"0.6653339",
"0.66387033",
"0.6544976",
"0.6508833",
"0.6489704",
"0.64204645",
"0.63... | 0.5918168 | 36 |
Check name of Material | public function check($name) {
$material = Material::where('name', $name)->first();
return $material;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function CB_check_material($string) {\r\n\t\t$this->load->model('inventory/material_model');\r\n\t\t$b = false;\r\n\t\t$mod = $this->material_model->checkMaterialNames($string);\r\n\t\t$this->form_validation->set_message('CB_check_material', 'Material with that Name Found. <br /> Change the name and try again.');\... | [
"0.7265786",
"0.7120791",
"0.64741325",
"0.6344231",
"0.6127375",
"0.5965735",
"0.59247434",
"0.5700013",
"0.56573266",
"0.56454843",
"0.5620661",
"0.5620661",
"0.5620661",
"0.55878294",
"0.5503037",
"0.5499848",
"0.5485686",
"0.54477847",
"0.54034996",
"0.53619534",
"0.53063... | 0.7037086 | 2 |
Make raw data safe for HTML display | public function sanitize( $data_global = 'POST' ) {
foreach ( $this->inputs as &$input ) {
$input->sanitize( $data_global );
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function safeToHtml($data) \n {\n if (get_magic_quotes_gpc()) {\n $data = stripslashes($data);\n }\n\n return htmlspecialchars($data);\n }",
"function html($data) {\n $data = htmlspecialchars($data, ENT_QUOTES); // <>\n return $data;\n }",
"funct... | [
"0.7766705",
"0.73494583",
"0.72188866",
"0.71318966",
"0.7124986",
"0.70501626",
"0.7024379",
"0.69980264",
"0.6990215",
"0.6936298",
"0.6925023",
"0.69170266",
"0.6881396",
"0.685935",
"0.68522584",
"0.68471706",
"0.6845463",
"0.6839668",
"0.6808808",
"0.67995065",
"0.67936... | 0.0 | -1 |
validate function. Validate a fieldset's data, set appropriate errors. | public function validate( $data_global = 'POST' ) {
foreach ( $this->inputs as &$input ) {
$input->validate($data_global);
if ( ! empty ( $input->errors ) ) {
$this->errors[$input->name] = $input->errors;
}
}
return empty ( $this->errors );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function formValidation($dataSet){\n\t\t\t$error=FALSE; $data=array();\n\t\t\tforeach ($dataSet as $aData) {\n\t\t\t\tif($aData['validationString']=='name'){\n\t\t\t\t\t$data[$aData['dataName']]=$this->getValidatedName(trim($aData['dataValue']));\n\t\t\t\t}\n\t\t\t\tif($aData['validationString']=='number'){... | [
"0.68167937",
"0.6537276",
"0.6505875",
"0.6402691",
"0.62685084",
"0.6251854",
"0.6248535",
"0.6247144",
"0.62276226",
"0.62192464",
"0.61688423",
"0.6156396",
"0.6156146",
"0.6151806",
"0.6131316",
"0.61268157",
"0.61010075",
"0.6088361",
"0.60460746",
"0.6041968",
"0.60413... | 0.0 | -1 |
Display a listing of the resource. | public function index()
{
$Table = DB::Table('payrolltablenonfaculty')
->join('hr_employee','hr_employee.emp_pin','=','payrolltablenonfaculty.emp_id')
->get();
//dd($Table);
if(session('success_message')){
Alert::success('Succcess',session('success_message... | {
"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()
{
$nonfacultydetails = DB::Table('nonfacultydetails')
->join('hr_employee','nonfacultydetails.emp_id','=','hr_employee.emp_pin')
->get();
//dd($nonfacultydetails);
return view('PayrollNonFaculty.create',compact('nonfacultydetails'));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function create()\n {\n return $this->showForm('create');\n }",
"public function create()\n {\n return $this->showForm('create');\n }",
"public function create()\n {\n return view('admin.resources.create');\n }",
"public function create(){\n\n return view(... | [
"0.75948673",
"0.75948673",
"0.75863165",
"0.7577412",
"0.75727344",
"0.7500887",
"0.7434847",
"0.7433956",
"0.73892003",
"0.73531085",
"0.73364776",
"0.73125",
"0.7296102",
"0.7281891",
"0.72741455",
"0.72424185",
"0.7229325",
"0.7226713",
"0.7187349",
"0.7179176",
"0.717428... | 0.0 | -1 |
Store a newly created resource in storage. | public function store(Request $request)
{
$request->validate([
'date_from' => 'required',
'date_to' => 'required',
'emp_id' => 'required'
]);
$getEmpid = $request->get('emp_id');
$date_from = $request->get('date_from');
$date_to = $reques... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function store($data, Resource $resource);",
"public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations... | [
"0.72865677",
"0.7145327",
"0.71325725",
"0.6640912",
"0.66209733",
"0.65685713",
"0.652643",
"0.65095705",
"0.64490104",
"0.637569",
"0.63736665",
"0.63657933",
"0.63657933",
"0.63657933",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.63424... | 0.0 | -1 |
Display the specified resource. | public function show($id)
{
$payslipDetails = DB::table('hr_employee')
->where('emp_pin','=',$id)
->get();
$payslipTable = DB::Table('payslip')
->join('payrolltablenonfaculty','payslip.date','<=','payrolltablenonfaculty.date_to')
->where('admin_approval','=','App... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function show(Resource $resource)\n {\n // not available for now\n }",
"public function show(Resource $resource)\n {\n //\n }",
"function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id... | [
"0.8233718",
"0.8190437",
"0.6828712",
"0.64986944",
"0.6495974",
"0.6469629",
"0.6462615",
"0.6363665",
"0.6311607",
"0.62817234",
"0.6218966",
"0.6189695",
"0.61804265",
"0.6171014",
"0.61371076",
"0.61207956",
"0.61067593",
"0.6105954",
"0.6094066",
"0.6082806",
"0.6045245... | 0.0 | -1 |
Show the form for editing the specified resource. | public function edit($id)
{
//
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }",
"public function edit(Resource $resource)\n {\n //\n }",
"public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ... | [
"0.78550774",
"0.7692893",
"0.7273195",
"0.7242132",
"0.7170847",
"0.70622855",
"0.7053459",
"0.6982539",
"0.69467914",
"0.6945275",
"0.6941114",
"0.6928077",
"0.69019294",
"0.68976134",
"0.68976134",
"0.6877213",
"0.68636996",
"0.68592185",
"0.68566656",
"0.6844697",
"0.6833... | 0.0 | -1 |
Update the specified resource in storage. | public function update(Request $request, $id)
{
//
} | {
"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)
{
NonFacultyPayroll::where('payrolltablenonfaculty_id', $id)->delete();
Alert::success('Deleted', 'Payroll Deleted Successfully!');
return redirect()->route('PayrollNonFaculty.index');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }",
"public function destroy(Resource $resource)\n {\n //\n }",
"public function removeResource($resourceID)\n\t\t{\n\t\t}",
"public function unpublishResource(PersistentResource $resource)\n {\n ... | [
"0.6672584",
"0.6659381",
"0.6635911",
"0.6632799",
"0.6626075",
"0.65424126",
"0.65416265",
"0.64648265",
"0.62882507",
"0.6175931",
"0.6129922",
"0.60893893",
"0.6054415",
"0.60428125",
"0.60064924",
"0.59337646",
"0.5930772",
"0.59199584",
"0.5919811",
"0.5904504",
"0.5897... | 0.0 | -1 |
BizForm::GetSessionContext() Retrieve Session data of this object | public function GetSessionVars($sessCtxt)
{
if ($this->m_Stateless == "Y")
return;
$sessCtxt->GetObjVar($this->m_Name, "Mode", $mode);
$sessCtxt->GetObjVar($this->m_Name, "SubForms", $this->m_SubForms);
$sessCtxt->GetObjVar($this->m_Name, "ParentFormName", $this->m_ParentFormName);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getSessionData()\n {\n return $this->getSession()->get(\"FormInfo.{$this->FormName()}.data\");\n }",
"public function getSession()\n\t{\n\t\treturn $this->getContext()->getSession();\n\t}",
"public function getSession()\n {\n return $this['session'];\n }",
"function ... | [
"0.7503593",
"0.7151177",
"0.7044639",
"0.7043593",
"0.6966139",
"0.6965483",
"0.6953765",
"0.69356084",
"0.69096166",
"0.68652546",
"0.6864352",
"0.68514854",
"0.68514854",
"0.68492854",
"0.68457043",
"0.681033",
"0.68001926",
"0.6797008",
"0.67655516",
"0.67355996",
"0.6724... | 0.6043594 | 83 |
BizForm::SetSessionContext() Save Session data of this object | public function SetSessionVars($sessCtxt)
{
if ($this->m_Stateless == "Y")
return;
$sessCtxt->SetObjVar($this->m_Name, "Mode", $this->m_Mode);
$sessCtxt->SetObjVar($this->m_Name, "SubForms", $this->m_SubForms);
$sessCtxt->SetObjVar($this->m_Name, "ParentFormName", $this->m_ParentFormName)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setSessionData(): void\n {\n $this->response->getSession()->set(\n config('form.session_key'),\n [\n $this->form->getID() => [\n 'data' => $this->body,\n 'messages' => $this->errors\n ]\n ... | [
"0.72171474",
"0.7132012",
"0.6992061",
"0.69353944",
"0.67737037",
"0.6697995",
"0.6692477",
"0.66917586",
"0.6591059",
"0.65680814",
"0.65538937",
"0.65078473",
"0.6494912",
"0.6493248",
"0.64666945",
"0.6403731",
"0.62469727",
"0.6219368",
"0.62016296",
"0.6191068",
"0.618... | 0.627818 | 16 |
BizForm::GetHistoryInfo() get history info array | public function GetHistoryInfo()
{
if ($this->m_Stateless == "Y")
return;
if (!$this->m_NoHistoryInfo)
{
$histInfo[] = $this->m_RecordId;
$histInfo[] = $this->m_CurrentPage;
$histInfo[] = $this->m_SearchRule;
$histInfo[] = $this->m_SortRule;
return $histInfo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getHistory(): array\n {\n return $this->history;\n }",
"public function getHistory(): array\n {\n return $this->history;\n }",
"public function fetchHistory(): array;",
"public function getHistory()\r\r\n {\r\r\n return $this->history;\r\r\n }",
"funct... | [
"0.7213989",
"0.7213989",
"0.704268",
"0.7001648",
"0.69104946",
"0.68325",
"0.6822492",
"0.6822385",
"0.67672783",
"0.6668098",
"0.6651414",
"0.66363794",
"0.6574956",
"0.65746075",
"0.6556228",
"0.65172684",
"0.65127873",
"0.65068936",
"0.6471042",
"0.6470608",
"0.6461782",... | 0.77324784 | 0 |
BizForm::CleanHistoryInfo() clear history info so that the data set is fresh | public function CleanHistoryInfo()
{
$this->m_RecordId = null;
$this->m_CurrentPage = 1;
$this->m_SearchRule = null;
$this->m_SortRule = null;
$this->m_NoHistoryInfo = true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function cleanHistory()\n\t{\n\t\t$this->taskHistoryRepository->deleteOlderThanDays($this->maxHistoryDays);\n\t\t$this->taskHistoryRepository->deleteOverCount($this->maxHistoryRecords);\n\t}",
"public function clearHistory()\r\r\n {\r\r\n $this->history = array();\r\r\n }",
"public funct... | [
"0.7207973",
"0.7076254",
"0.70105743",
"0.69758177",
"0.6813846",
"0.67562217",
"0.6553826",
"0.6543943",
"0.6513098",
"0.6394953",
"0.6274233",
"0.61279833",
"0.6124794",
"0.595381",
"0.5849656",
"0.58413136",
"0.57977116",
"0.5762119",
"0.5758686",
"0.5718108",
"0.57034814... | 0.8270328 | 0 |
get post action url/view/... This method is called in Render() to determine the post action | protected function GetPostAction()
{
if ($this->m_PostActionOff) return null;
// check if the current rpc call has postaction specified
global $g_BizSystem;
// get the control that issues the call
// __this is ctrlname:eventhandlername
$ctrlname_ehname = $g_BizSystem->GetClientProxy()->GetF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getEditPostAction()\n {\n return $this->getUrl('myblog/myblog/editpost');\n }",
"public function getPostActionUrl() {\n return $this->_customerUrl->getLoginPostUrl ();\n }",
"public function getPostUrl()\n {\n return self::POST_URL;\n }",
"public function g... | [
"0.769906",
"0.756528",
"0.7326956",
"0.7234125",
"0.72328204",
"0.71876884",
"0.70630294",
"0.7025782",
"0.6978682",
"0.68370414",
"0.67612284",
"0.6752438",
"0.6736956",
"0.6677306",
"0.6662202",
"0.6648469",
"0.66386664",
"0.6615211",
"0.66080165",
"0.6586085",
"0.6586085"... | 0.67652756 | 10 |
BizForm::UpdateActiveRecord() update the active record with given record array | final public function UpdateActiveRecord($recArr)
{
$this->m_ActiveRecord = $recArr;
$this->m_RecordRow->SetRecordArr($this->m_ActiveRecord); // needed ???
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function updateRecord() \n {\n $str = \"Id = :Id\";\n array_walk($this->arrayKeysValues(), function ($value, $key) use (&$str) {\n $str .= \", $key = :$key\";\n });\n $sql = sprintf(\"UPDATE Cubans SET %s WHERE Id = :Id\", $str);\n $statement = $this->connec... | [
"0.69247204",
"0.6782369",
"0.67564327",
"0.6736067",
"0.6734445",
"0.6721066",
"0.66294426",
"0.66294426",
"0.66294426",
"0.6604887",
"0.6569594",
"0.6562268",
"0.6474667",
"0.64558935",
"0.6454816",
"0.6434433",
"0.64241546",
"0.6395014",
"0.6356877",
"0.6356488",
"0.635046... | 0.73341864 | 0 |
BizForm::NextPage() move to next page | public function NextPage()
{
if ($this->m_CurrentPage >= $this->m_TotalPages)
$this->m_CurrentPage = $this->m_TotalPages;
else
$this->m_CurrentPage++;
return $this->ReRender();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function nextAction()\n {\n $this->pageAction('goToNextPage');\n }",
"public function getNextPage();",
"public function setNextPage($nextPage);",
"private function next() {\n if ($this->currentPage < $this->totalPage) {\n print '<li><a href=\"' . $this->url . '&page=' . ($this->cu... | [
"0.7594009",
"0.75620866",
"0.74775136",
"0.7363199",
"0.7341632",
"0.720628",
"0.71050763",
"0.7100425",
"0.7076263",
"0.69806063",
"0.6979533",
"0.69002616",
"0.6885724",
"0.6834908",
"0.68341947",
"0.6797836",
"0.6733066",
"0.67082083",
"0.66728",
"0.66704756",
"0.6629698"... | 0.6724062 | 17 |
BizForm::PrevPage() move to previous page | public function PrevPage()
{
if ($this->m_CurrentPage <= 1)
$this->m_CurrentPage = 1;
else
$this->m_CurrentPage--;
return $this->ReRender();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected function setPreviousPage();",
"public function previousPage()\n {\n return$this->currentPage - 1;\n }",
"public function getPreviousPage();",
"function previousPage()\n\t\t{\n\t\t\tif(!$this->hasPrevious())\n\t\t\t\tthrow new Exception(\"Page out of bounds\");\n\t\t\t\t\n\t\t\t$th... | [
"0.82857364",
"0.7663157",
"0.7652627",
"0.76183003",
"0.75201607",
"0.73438615",
"0.7293518",
"0.72662276",
"0.7165688",
"0.71548766",
"0.7139806",
"0.71292347",
"0.707734",
"0.70388865",
"0.6992432",
"0.69269806",
"0.6926621",
"0.6913483",
"0.69099367",
"0.6896234",
"0.6883... | 0.7505414 | 5 |
BizForm::RunSearch() Run search on query mode, then go read mode | public function RunSearch()
{
BizSystem::log(LOG_DEBUG,"FORMOBJ",$this->m_Name."::RunSearch()");
global $g_BizSystem;
$this->m_SearchRule = "";
foreach ($this->m_RecordRow as $fldCtrl) {
$value = $g_BizSystem->GetClientProxy()->GetFormInputs($fldCtrl->m_Name);
if ($value) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function search(){}",
"function showquery() {\r\n #~ echo '<td align=right>'; // see nav.inc.php for reason\r\n echo '<form name=\"search\" method=POST action=\"'.$_SERVER['PHP_SELF'].'\">';\r\n #~ echo '<img src=\"images/b_search.png\" border=\"0\">';\r\n echo lang('Search'... | [
"0.66389984",
"0.6605083",
"0.6596757",
"0.65945494",
"0.65843254",
"0.6575047",
"0.6552156",
"0.6533281",
"0.6533281",
"0.6381002",
"0.6374229",
"0.6369271",
"0.6341935",
"0.6319149",
"0.628871",
"0.628871",
"0.6275875",
"0.6262573",
"0.62455803",
"0.6244874",
"0.62211096",
... | 0.7503704 | 0 |
BizForm::_run_search() call RunSearch of its dataobj by applying its FixSearchRule and SearchRule Its dataobj current search rule will be replaced by its FixSearchRule and SearchRule. | public function _run_search(&$resultRecords, $clearSearchRule=true)
{
if (!$this->m_DataObjName)
return;
$dataobj = $this->GetDataObj();
if (strlen($this->m_FixSearchRule) > 0) {
if (strlen($this->m_SearchRule) > 0)
$this->m_SearchRule .= " AND " . $this->m_FixSearchRu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function RunSearch()\n {\n BizSystem::log(LOG_DEBUG,\"FORMOBJ\",$this->m_Name.\"::RunSearch()\");\n global $g_BizSystem;\n $this->m_SearchRule = \"\";\n foreach ($this->m_RecordRow as $fldCtrl) {\n $value = $g_BizSystem->GetClientProxy()->GetFormInputs($fldCtrl->m_Name);\n ... | [
"0.6798444",
"0.65237224",
"0.62446016",
"0.5962318",
"0.5842552",
"0.5659062",
"0.56453973",
"0.56407136",
"0.56366676",
"0.56043744",
"0.5566093",
"0.5556791",
"0.55113196",
"0.54948086",
"0.54613996",
"0.5461252",
"0.5429973",
"0.5424777",
"0.54116344",
"0.537691",
"0.5376... | 0.6114098 | 3 |
BizForm::SortRecord() sort record on given column | public function SortRecord($sort_col)
{
$pos = strpos($sort_col, ",");
if ($pos > 0)
$reverse_flag = substr($sort_col, $pos + 1);
$sortflag = ($reverse_flag == 1) ? "DESC" : "ASC";
$sort_col = substr($sort_col, 0, $pos);
// change the OnSortField
$this->m_OnSortField = $... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function record_sort($records, $field, $reverse=false){\n\n $hash = array();\n \n foreach($records as $key => $record){\n $hash[$record[$field].$key] = $record;\n }\n \n ($reverse)? krsort($hash) : ksort($hash);\n \n $records = array();\n \n foreach($hash as $record){\n ... | [
"0.6891809",
"0.6803265",
"0.66187114",
"0.6335731",
"0.6194742",
"0.61785924",
"0.61240643",
"0.61168146",
"0.6114137",
"0.6057699",
"0.6035701",
"0.5988249",
"0.59495664",
"0.5938796",
"0.5880614",
"0.5880614",
"0.5880614",
"0.58648545",
"0.586276",
"0.5841891",
"0.5838168"... | 0.7645261 | 0 |
BizForm::SelectRecord() Select the record to selected row (if form show list of records) | public function SelectRecord($recId)
{
$this->m_RecordId = $recId;
return $this->ReRender(false); // not redraw the this form, but draw the subforms
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function select($idMedicalRecord) // Implementation \r\n\t\t{\r\n\t\t $this->idMedicalRecord = $idMedicalRecord;\r\n\t\t\t$dbo = database::getInstance(); // pass back that database object already created perhaps\r\n\t\t\t$sql = $this->buildQuery('select'); // what we want to do (select records)\r\n\r\n\t\t\t$db... | [
"0.6614141",
"0.619571",
"0.619571",
"0.61350375",
"0.61350375",
"0.61350375",
"0.59989446",
"0.59615946",
"0.5892473",
"0.57773936",
"0.56467754",
"0.5639115",
"0.5635424",
"0.5584868",
"0.55797106",
"0.5569013",
"0.55659354",
"0.5551983",
"0.5535125",
"0.5521067",
"0.548454... | 0.6660076 | 0 |
BizForm::SearchRecord() show the query record mode | public function SearchRecord()
{
$this->UpdateActiveRecord(null);
$this->m_QueryONRender = false;
$this->SetDisplayMode(MODE_Q);
return $this->ReRender(true,false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function showRecordInSearch()\n {\n return !($this->owner->hasField('ShowInSearch') AND false == $this->owner->ShowInSearch);\n }",
"function showquery() {\r\n #~ echo '<td align=right>'; // see nav.inc.php for reason\r\n echo '<form name=\"search\" method=POST action=\"'.$_S... | [
"0.73144567",
"0.7003529",
"0.662968",
"0.6529221",
"0.6477767",
"0.6463561",
"0.6332839",
"0.6292002",
"0.62812436",
"0.627197",
"0.6210324",
"0.6180011",
"0.61651844",
"0.61642087",
"0.61187065",
"0.60652727",
"0.6026988",
"0.6022407",
"0.5994263",
"0.59770226",
"0.5973414"... | 0.76463497 | 0 |
BizForm::RefreshQuery() clear the search rule and do the original query when view first loaded | public function RefreshQuery()
{
if ($this->m_OnSortField) {
$this->SetSortFieldFlag($this->m_OnSortField, null);
$this->m_OnSortField = null;
$this->GetDataObj()->ClearSortRule();
}
$this->SetDisplayMode (MODE_R);
$this->m_ClearSearchRule = true;
return $this... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function resetQuery() {\r\n\t\tunset($this->query);\r\n\t\t$this->query = $this->createQuery();\r\n\t\tunset($this->queryConstraints);\r\n\t\t$this->queryConstraints = array();\r\n\t}",
"public function updatingSearch()\n {\n $this->resetPage();\n }",
"protected function resetQuery()\n ... | [
"0.698625",
"0.6736528",
"0.66738003",
"0.6599311",
"0.6552379",
"0.65205246",
"0.6426771",
"0.6267148",
"0.6260573",
"0.6220055",
"0.6219238",
"0.61949193",
"0.6187037",
"0.61685497",
"0.616151",
"0.616151",
"0.616151",
"0.6148903",
"0.61411893",
"0.6131697",
"0.6131697",
... | 0.79245067 | 0 |
BizForm::Cancel() Cancel current edit or query, then go read mode | public function Cancel()
{
$prevMode = $this->m_Mode;
$this->SetDisplayMode(MODE_R);
if ($prevMode == MODE_N) // NEW mode to READ mode, has record change, need to refresh the subforms
return $this->ReRender(true, true);
// EDIT to READ, no record change
return $this->ReRender... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function cancel()\n {\n $this->updateMode = false;\n $this->resetInputFields();\n }",
"public function cancel()\n {\n $this->updateMode = false;\n $this->resetInputFields();\n }",
"public function cancel()\n {\n $this->resetInput();\n $this-... | [
"0.7546945",
"0.7546945",
"0.7259913",
"0.71052265",
"0.69750965",
"0.6943742",
"0.6938777",
"0.69354075",
"0.68767154",
"0.68767154",
"0.6688513",
"0.66838574",
"0.6611698",
"0.6577655",
"0.64540774",
"0.64490914",
"0.6412394",
"0.6385865",
"0.63772994",
"0.63671595",
"0.630... | 0.8167068 | 0 |
BizForm::NewRecord() show the new record mode | public function NewRecord()
{
global $g_BizSystem;
$this->SetDisplayMode(MODE_N);
$recArr = $this->GetNewRecord();
if (!$recArr)
return $this->ProcessDataObjError();
$this->UpdateActiveRecord($recArr);
// TODO: popup message of new record successful created
return $... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function show_new_record() {\r\n if ($this->allow_new) {\r\n #~ echo \"<p><a href='{$_SERVER['PHP_SELF']}?m={$this->module}&act=new&go=\".urlencode($GLOBALS['full_self_url']).\"'>Insert new row</a>\";\r\n echo '<form method=POST action=\"'.$_SERVER['PHP_SELF'].'\">';\r\n ... | [
"0.7946851",
"0.6933514",
"0.67558354",
"0.6745736",
"0.6730596",
"0.66538525",
"0.6578435",
"0.65660226",
"0.6497715",
"0.6455896",
"0.6417721",
"0.63568246",
"0.6356494",
"0.63383865",
"0.6324872",
"0.6310433",
"0.6301497",
"0.63014144",
"0.62962127",
"0.6290102",
"0.627470... | 0.799912 | 0 |
BizForm::EditRecord() edit the record of current row | public function EditRecord($recId=null)
{
global $g_BizSystem;
if (!$recId)
$recId = $g_BizSystem->GetClientProxy()->GetFormInputs('_selectedId');
if ($recId != null)
$this->SetActiveRecordId($recId);
$rec = $this->GetActiveRecord();
if (!$rec) return;
$this->Set... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function edit(Record $record)\n {\n //\n }",
"function editRecord($rec)\r\n\t\t{\r\n\t\t\t// Create associative array of key fields and data values\r\n\t\t\t$data = array(\"idMedicalRecord\"=>$rec[0],\"medicalRec_weight\"=>$rec[1],\"medicalRec_height\"=>$rec[2],\"medicalRec_bloodPressure\"=>... | [
"0.81555253",
"0.7708898",
"0.75930065",
"0.7364913",
"0.7357855",
"0.7304981",
"0.723072",
"0.72243047",
"0.7207486",
"0.7195869",
"0.70981705",
"0.70900285",
"0.7086133",
"0.70273113",
"0.7008358",
"0.6977694",
"0.6902694",
"0.68966246",
"0.688224",
"0.6859581",
"0.6841048"... | 0.7209771 | 8 |
BizForm::ReadInputRecord() read user input data from UI | protected function ReadInputRecord(&$recArr)
{
global $g_BizSystem;
foreach ($this->m_RecordRow as $fldCtrl) {
if ($fldCtrl->CanDisplayed()) {
$value = $g_BizSystem->GetClientProxy()->GetFormInputs($fldCtrl->m_Name);
$recArr[$fldCtrl->m_BizFieldName] = $value;
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function readInputData() {\n\t\t$this->readUserVars(array(\n\t\t\t'representativeId',\n\t\t\t'agentRole',\n\t\t\t'supplierRole',\n\t\t\t'representativeIdType',\n\t\t\t'representativeIdValue',\n\t\t\t'name',\n\t\t\t'phone',\n\t\t\t'fax',\n\t\t\t'email',\n\t\t\t'url',\n\t\t\t'isSupplier',\n\t\t));\n\t}",
"function... | [
"0.6917446",
"0.69035333",
"0.67636174",
"0.67499006",
"0.65583557",
"0.64997697",
"0.6438593",
"0.6344844",
"0.63365126",
"0.63232756",
"0.62677395",
"0.6227866",
"0.6193365",
"0.6159338",
"0.61230177",
"0.61230177",
"0.61230177",
"0.60655844",
"0.60405636",
"0.59707946",
"0... | 0.63007146 | 10 |
default form validation do nothing. developers need to override this method to implement their logic | protected function ValidateForm()
{
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function form_backend_validation()\r\n {\r\n return true ;\r\n }",
"public function validate() {\n if (!empty($this->value)) {\n parent::validate();\n }\n }",
"public function validate() {\n if (!empty($this->value)) {\n parent::validate();\n }\n }",
"public function vali... | [
"0.7409651",
"0.73257524",
"0.73257524",
"0.72906363",
"0.7247742",
"0.7065774",
"0.70466435",
"0.70052785",
"0.6993785",
"0.6974428",
"0.6966024",
"0.69583064",
"0.68987995",
"0.68730235",
"0.6852881",
"0.6847783",
"0.6795811",
"0.6794152",
"0.67883754",
"0.6783952",
"0.6780... | 0.73816526 | 1 |
BizForm::SaveRecord() Save current edited record with input | public function SaveRecord()
{
// call ValidateForm()
if ($this->ValidateForm() == false)
return;
$recArr = array();
if ($this->ReadInputRecord($recArr) == false)
return;
if ($this->m_Mode == MODE_N)
$dataRec = new DataRecord(null, $this->GetDataObj());
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function onSave()\n {\n try\n {\n // open a transaction with database 'samples'\n TTransaction::open('samples');\n \n // get the form data into an active record Entry\n $object = $this->form->getData('AgendaEntry');\n \n ... | [
"0.67028517",
"0.6472436",
"0.645022",
"0.6365255",
"0.63632566",
"0.6351433",
"0.6314028",
"0.6313097",
"0.6283938",
"0.627577",
"0.627577",
"0.627577",
"0.627577",
"0.627577",
"0.627577",
"0.627577",
"0.627577",
"0.627577",
"0.627577",
"0.627577",
"0.627577",
"0.627577",
... | 0.7478445 | 0 |
BizForm::DeleteRecord() Delete the record of current row | public function DeleteRecord()
{
// TODO: support delete multiple records
// read the id array from the check box list _REQUEST['row_selections']
global $g_BizSystem;
$values = $g_BizSystem->GetClientProxy()->GetFormInputs('row_selections',false);
if ($values)
{
foreach (... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function deleteRecord()\n { \n $sql = \"DELETE FROM Cubans WHERE Id = :Id\";\n $statement = $this->connect->prepare($sql);\n $statement->bindValue(':Id', $this->id);\n $statement->execute();\n }",
"function deleteRecord()\t{\n\t\tif ($this->conf['delete'])\t{\t// If del... | [
"0.7640079",
"0.76286453",
"0.75354093",
"0.74142456",
"0.7413047",
"0.7381915",
"0.71535695",
"0.71475536",
"0.7103126",
"0.7067173",
"0.7059723",
"0.7029607",
"0.70152307",
"0.6950108",
"0.6931678",
"0.692823",
"0.6926597",
"0.6907327",
"0.6796317",
"0.6796317",
"0.6796317"... | 0.84122926 | 0 |
BizForm::RemoveRecord() Remove the record out of the associate relationship | public function RemoveRecord()
{
$rec = $this->GetActiveRecord();
global $g_BizSystem;
$ok = $this->GetDataObj()->RemoveRecord($rec,$bPrtObjUpdated);
if (!$ok)
return $this->ProcessDataObjError($ok);
$html = "";
// rerender parent form's driving form (its field is update... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function onRelationManageRemove()\n {\n $this->beforeAjax();\n\n $recordId = post('record_id');\n $sessionKey = $this->deferredBinding ? $this->relationGetSessionKey() : null;\n $relatedModel = $this->relationModel;\n\n /*\n * Remove\n */\n if ($t... | [
"0.6813979",
"0.6612005",
"0.64071",
"0.6311899",
"0.63110745",
"0.62719935",
"0.6255385",
"0.6187896",
"0.61863273",
"0.6184471",
"0.61646646",
"0.6096491",
"0.6087318",
"0.6013859",
"0.6013756",
"0.6010203",
"0.6008153",
"0.5972906",
"0.59727114",
"0.59619707",
"0.59540707"... | 0.7375513 | 0 |
BizForm::CopyRecord() Copy current record and paste to a new record Note: copy record will error out if db table uses composite columns as its primary key | public function CopyRecord()
{
$rec = $this->GetActiveRecord();
if (!$rec) return;
foreach ($rec as $k=>$v)
$rec[$k] = addslashes($v);
global $g_BizSystem;
// get new record array
$recArr = $this->GetDataObj()->NewRecord();
$rec["Id"] = $recArr["Id"]; // replace wi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function clone_record($db_table) {\n $db_obj = new db_class();\n $typeHash = $db_obj->columnTypeHash($this->table_title);\n \n $sql = 'INSERT INTO ' . $this->table_title ;\n $typeList = '';\n $columns = ' (' ;\n $values = '(' ;\n $paramList = array();\n ... | [
"0.6525337",
"0.6165195",
"0.6137295",
"0.60140705",
"0.59805375",
"0.5928032",
"0.5911303",
"0.58938324",
"0.5869956",
"0.5857455",
"0.58397734",
"0.57352066",
"0.565873",
"0.5641316",
"0.5585916",
"0.55501807",
"0.5508207",
"0.54714197",
"0.54597795",
"0.54578537",
"0.54333... | 0.8193739 | 0 |
BizForm::InputValToRule() convert the user input on a given fieldcontrol in qeury mode to search rule | protected function InputValToRule($field, $inputVal)
{
// todo: should check single quote for nonoperators clauses
// find locations for all sql key words
// search for starting ' and closing ' pair, check if sql key word in the pair
$val = trim($inputVal);
// check " AND ", " OR "
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected function prepareFieldValidationRule($field_validation_rule);",
"protected function get_inputs_rules(){return $this->input['inputs_rules'];}",
"protected function set_inputs_rules($val){ $this->input ['inputs_rules'] = $val;}",
"function acf_validate_value($value, $field, $input)\n{\n}",
... | [
"0.5623711",
"0.54888225",
"0.5454033",
"0.53326046",
"0.52634543",
"0.5217676",
"0.5115427",
"0.51085263",
"0.501515",
"0.500902",
"0.49928808",
"0.49475366",
"0.49173877",
"0.4907876",
"0.4907876",
"0.4907876",
"0.4907876",
"0.4907876",
"0.49013764",
"0.4882725",
"0.4873252... | 0.66257006 | 0 |
send user input to BizForm. synch up client to server Bizform's activeRecord | public function SendUserInput()
{
$this->ReadInputRecord($recArr);
$this->UpdateActiveRecord($recArr);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public function bindForm();",
"abstract public function bindForm();",
"function receive() {\n // Input type 1.\n if ($this->method == 'POST' && isset($_POST[$this->id . '-form_id']) && $_POST[$this->id . '-form_id'] == $this->id) {\n $this->request['raw_input'] = $_POST;\n }\n // Inpu... | [
"0.61794895",
"0.61794895",
"0.59871686",
"0.58996487",
"0.5891565",
"0.5665535",
"0.5580118",
"0.5573205",
"0.5550448",
"0.55493826",
"0.5516256",
"0.55053353",
"0.55008966",
"0.5481724",
"0.5476852",
"0.54766595",
"0.54724264",
"0.54624295",
"0.54333615",
"0.54174507",
"0.5... | 0.69070315 | 0 |
/ Automatically search on the user input. input is empty, delete all related controls values input is no empty, query the DataObj of valuepicker BizForm. handle the cases of single/multiple/no records returned | public function AutoPickValue($ctrlName)
{
global $g_BizSystem;
$value = $g_BizSystem->GetClientProxy()->GetFormInputs($ctrlName);
$ctrlObj = $this->GetControl($ctrlName);
$valuePicker = $this->GetControl($ctrlName)->m_ValuePicker;
if (!$valuePicker) return;
// get valuePicker fo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function query() {\n if (!empty($this->value)) {\n parent::query();\n }\n }",
"function LoadSearchValues() {\n\t\tglobal $objForm;\n\n\t\t// Load search values\n\t\t// tanggal\n\n\t\t$this->tanggal->AdvancedSearch->SearchValue = @$_GET[\"x_tanggal\"];\n\t\tif ($this->tanggal->AdvancedSearch->S... | [
"0.6357788",
"0.6285291",
"0.6211462",
"0.6175084",
"0.6167985",
"0.6115679",
"0.6090689",
"0.60374933",
"0.60165787",
"0.59598374",
"0.5910895",
"0.5902663",
"0.5895454",
"0.5887557",
"0.585566",
"0.5832994",
"0.5829659",
"0.5771756",
"0.57635885",
"0.57567054",
"0.57530093"... | 0.57528424 | 21 |
BizForm::HandlePostAction() post action is the redirected page/view after an action is finished successfully | public function HandlePostAction($postAction)
{
global $g_BizSystem;
$pos = strpos($postAction, ":");
$tag = substr($postAction, 0, $pos);
$content = substr($postAction, $pos+1);
if ($tag == "view")
$g_BizSystem->GetClientProxy()->ReDirectView($content);
else if ($tag == ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function postAction() {\n\t\t\t$this->_forward('index');\n\t }",
"public function postAction() {}",
"public function postAction()\n {\n // Nothing to do\n }",
"public function postAction()\n {\n \n }",
"public function postAction()\n {\n }",
"protected function _... | [
"0.7470913",
"0.74662584",
"0.70402884",
"0.68905455",
"0.68537766",
"0.6832355",
"0.67660207",
"0.665156",
"0.6644602",
"0.66203356",
"0.66184103",
"0.66180164",
"0.66144854",
"0.6601249",
"0.6554281",
"0.6535736",
"0.6534485",
"0.65308976",
"0.65007204",
"0.6458564",
"0.641... | 0.6481455 | 19 |
BizForm::Render() render this form (return html content), called by bizview's render method (called when form is loaded). Query is issued before returning the html content. | public function Render()
{
// when in NEW mode or when parent form in NEW mode, do nothing
global $g_BizSystem;
$prtMode = "";
if ($this->m_ParentFormName) {
$prtForm = $g_BizSystem->GetObjectFactory()->GetObject($this->m_ParentFormName);
$prtMode = $prtForm->GetDisplayMode()->GetMode... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function render()\n {\n $root =& XCube_Root::getSingleton();\n $renderSystem =& $root->getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM);\n\n $renderTarget =& $renderSystem->createRenderTarget('main');\n\n $renderTarget->setAttribute('legacy_module', 'legacy');\n $ren... | [
"0.6683386",
"0.65917933",
"0.6519513",
"0.6431727",
"0.6366705",
"0.62878877",
"0.6241164",
"0.62408257",
"0.62229854",
"0.620923",
"0.6206829",
"0.6154277",
"0.61487544",
"0.61463606",
"0.61348605",
"0.6127034",
"0.61113876",
"0.60973233",
"0.609271",
"0.6088244",
"0.605749... | 0.69840676 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.