query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
632acadf831530367a8b4205928616f5
Define fields of type increments
[ { "docid": "aad897cac00beb2246d36169d823d358", "score": "0.4821812", "text": "public function increments($name = null){\n\t\tif($name != null){\n\t\t\t$this->name = $name;\n\t\t\t$this->type = 'int';\n\t\t\t$this->length = '11';\n\t\t}\n\t\t$this->autoIncrement = 'AUTO_INCREMENT';\n\t\t$this->index = ne...
[ { "docid": "d7af90ffc3b5f46c43e5367cbca882e2", "score": "0.6155573", "text": "protected function increment_type( string $_type, int $_identifier ): void {\n\t\t$property = \"{$_type}_index\";\n\t\tif ( !isset( $this->{$property}[ $_identifier ] ) ) {\n\t\t\t$this->{$property}[ $_identifier ] = 0;\n\t\t}...
84fe536c425fd699c9588e8498f84163
Copies the data from the JSON
[ { "docid": "0f5fb6b92e175a38ca935ff74190e6f9", "score": "0.0", "text": "public static function fromJSON($json)\n {\n $item = new static();\n\n // Get all the data that is supported and try to\n // get it from the json with same key\n foreach ($item->toArray() as $key => $v...
[ { "docid": "84bfea25412991419d1a61908c4c1355", "score": "0.6282833", "text": "protected function thatThePropertiesInTheJson($json)\n {\n $this->restObj = (object)array_merge((array)$this->restObj, json_decode($json, true));\n }", "title": "" }, { "docid": "d1f75b9c7e18c67395f026...
e2626950f889d8603798d0d6d0d1d020
Prevent unconfigured PDO instances!
[ { "docid": "70ab91e9c3023673e65a52400783d5e5", "score": "0.0", "text": "private function __construct($config)\n {\n $dsn = sprintf('mysql:dbname=%s;host=%s;port=%d;', $config['database'], $config['hostname'], $config['port']);\n parent::__construct($dsn, $config['username'], $config['pa...
[ { "docid": "39f9d223cde8d9b9eb816c110fd101d9", "score": "0.7270867", "text": "protected function _pdoCheck() {\n\t\tif (!$this->pdo instanceof PDO)\n\t\t\t$this->pdo = App::getPDO();\n\t}", "title": "" }, { "docid": "f60aab8149d77717dccf78661e0b2fc1", "score": "0.64964664", "text": "...
aca0b3487f6d7926f2cc8892de9c0f00
Register each of the asset (enqueues it)
[ { "docid": "64cfe3b41e8c3714ea64348e0f408dc3", "score": "0.0", "text": "public function register() {\n\t}", "title": "" } ]
[ { "docid": "bae258c2e102512ab95f95049920f1c3", "score": "0.75713134", "text": "public function registerAssets()\n {\n foreach (array_merge($this->assets, $this->getTheme()->assets) as $asset) {\n /** @var AssetBundle $asset */\n $asset::register($this->getView());\n ...
6e3fb183a8bddcb81b97c2f8a78db27b
Appends value to 'store_id' list
[ { "docid": "3ef458ba03ffe81e445dc2d885a1758d", "score": "0.71010846", "text": "public function appendStoreId($value)\n {\n return $this->append(self::store_id, $value);\n }", "title": "" } ]
[ { "docid": "492aeb1fd45ecf42f8efeae3e514ee8f", "score": "0.6464527", "text": "public function addIdFilter($store)\n {\n return $this->addFieldToFilter('main_table.store_id', ['in' => $store]);\n }", "title": "" }, { "docid": "d8195047d8a1a2b546df35b9fce49161", "score": "0.62...
0a0efd51c5e1e79b1b92f6f94e268d8a
Format to make message compatible with parse xml. When dephpugger receive the xml, there is any invalid chars and start with code (three ints). This method remove this to make compatible with `simplexml_load_string`
[ { "docid": "d57a60aadf707d4ae73251b444a73847", "score": "0.46451807", "text": "public function formatMessage($message)\n {\n // Remove # of bytes + null characters.\n $message = str_replace(\"\\0\", '', $message);\n $message = str_replace(\"\\00\", '', $message);\n $messag...
[ { "docid": "c364a324ed5ce75bbfa10d01340b43dd", "score": "0.6071639", "text": "function fix_xml_output($xml_input) {\n $xml_output = str_replace(\"/>\", \" />\", $xml_input);\n $xml_output = str_replace(\"<?xml version=\\\"1.0\\\"?>\\n\", \"\", $xml_output);\n\n // Decode UTF8 char for clean out...
da32c5a6513dbc388ae7d5dafd31825e
Check whether the row contains modifications
[ { "docid": "4e5ff998e5f228d4eddef87551753764", "score": "0.66291016", "text": "function isDirty() {\n\t\tforeach ($this->cell as $cell) {\n\t\t\tif ($cell->isDirty()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" } ]
[ { "docid": "a7086c827c76e9ccb6266d374fa2efa3", "score": "0.74574906", "text": "public function isModified()\n {\n return !!$this->modifiedColumns;\n }", "title": "" }, { "docid": "a7086c827c76e9ccb6266d374fa2efa3", "score": "0.74574906", "text": "public function isModifi...
ca8f3287c0b2a22ed3cc453c01060716
/ | | Set Mimi Type | It will set default array of class i.e $allowed_extensions |
[ { "docid": "c821024f818f49aeaa25d31570e09519", "score": "0.0", "text": "private function set_mime_type( $file_path ) { \n\t\t\n\t\t/* by Function - mime_content_type */\n\t\tif( function_exists( 'mime_content_type' ) ) {\n\t\t\t$file_mime_type = @mime_content_type( $file_path );\n\t\t}\n\t\t\n\t\t/* by ...
[ { "docid": "916726c0d7ad6aa2abcd0afc0004e62b", "score": "0.66366434", "text": "public function __setType($type){\n \t$this->type = $type;\n }", "title": "" }, { "docid": "dc43668778ab2941178673dcfc30b696", "score": "0.6496373", "text": "public function set_type($type);", "t...
50643f8d57ebbab3f65123c3e45f0e40
Builds an actual category tree.
[ { "docid": "6befd726db23d09497a8438e7c438ae1", "score": "0.57636", "text": "private function buildTree(array $categories)\n {\n $tree = [];\n\n foreach ($categories as $category) {\n $categoryId = $category['id'];\n $parentId = $category['parent'];\n\n u...
[ { "docid": "ea5152375ae98cbf0e13a94dbac5b075", "score": "0.7210865", "text": "public function getCategoryTree();", "title": "" }, { "docid": "a2e8757be70af7718a20adc3063b1a1c", "score": "0.70965403", "text": "function build_tree_cat($parent_id = 0, $level = 0, $per_page = 0, $page = ...
6d4ce249bafd807aad5ea3176eea292a
/ the function where actual web service call trigger
[ { "docid": "5b074dd0ee65ac2be6c66d8aff7055e2", "score": "0.0", "text": "function requestBags()\n{\n\n /* Generate a random number for the purchase order*/\n $randNum = (rand()%99);\n\n /* Requested date is two weeks from today*/\n $reqDate = mktime(0,0,0,date(\"m\"),date(\"d\")+14,date(\"Y\"...
[ { "docid": "4c4b2fecf3ab7c0247623e837ab95361", "score": "0.73733467", "text": "abstract protected function callService();", "title": "" }, { "docid": "fde65f14394340b6c3ba94613eb76331", "score": "0.6411742", "text": "public function call(){}", "title": "" }, { "docid": "f...
7a80f68be10a2c8d99934252d480daec
Factory method to instantiate the request object with given parameters
[ { "docid": "b72de57a401c7e2eeecd08bb30cc6ea8", "score": "0.0", "text": "public static function factory($params = null)\n {\n $class = new self;\n\n foreach ($params as $property => $propertyConfig) {\n if(is_array($propertyConfig)){\n if(isset($propertyConfig[\"type\"])){\n $...
[ { "docid": "a2f3aefa7dd881cbc7b0766c6351ee32", "score": "0.78597564", "text": "private function createRequest()\n\t{\n\t\t$path = $this->getRequestUri();\n\t\treturn new Request($_SERVER['REQUEST_METHOD'], $path);\n\t}", "title": "" }, { "docid": "b513da8105fee1af6d89685eafe37292", "scor...
b5a77778e22f92b13445fe8f67c2e6fc
API connection to auth user
[ { "docid": "45773ed505673ff7b09e852c7a403d89", "score": "0.0", "text": "static public function login ($login, $password)\n {\n $client = new GuzzleHttp\\Client();\n try {\n $res = $client->request('GET', 'http://azurix.pl:8080/auth/login?login='.$login.'&password='.$password)...
[ { "docid": "8548487f839db074c0f0dbacc42ece16", "score": "0.7145298", "text": "public function uac_auth();", "title": "" }, { "docid": "6e0839786002e752f18d1e46b92966b1", "score": "0.70697796", "text": "abstract public function auth();", "title": "" }, { "docid": "58d5f047...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "3ac3171436eb685c8ddb5478978b374f", "score": "0.0", "text": "public function show(Notification $notification)\n {\n //\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "e5152a75698da8d87238a93648112fcf", "score": "0.72897154", "text": "function display($resource_name, $cache_id ...
a9af96b0928f2713535039d97eeb4d33
Processes an IMS/QTI manifest file: store links to new files to be able to transform them into the questions text
[ { "docid": "d913ca19791331a1c8282c524c9150ee", "score": "0.6788922", "text": "function qtiProcessManifest($filePath)\n{\n $xml = simplexml_load_file($filePath);\n $course = api_get_course_info();\n $sessionId = api_get_session_id();\n $courseDir = $course['path'];\n $sysPath = api_get_pat...
[ { "docid": "2f972a05c6307d116f157a5df4fac085", "score": "0.59166366", "text": "function import_exercise($file)\n{\n global $exercise_info;\n global $element_pile;\n global $non_HTML_tag_to_avoid;\n global $record_item_body;\n // used to specify the question directory where files could be ...
b85509a9f7285d8fe8e46c4a4db26a7e
Get connection's initial data.
[ { "docid": "71d950b3ca305372b781149b68257238", "score": "0.71192294", "text": "public function initialData($connection_id);", "title": "" } ]
[ { "docid": "bcbd20eb6f650303cb0c25e77b402068", "score": "0.7134367", "text": "protected function getInitData()\n {\n return $this->initData;\n }", "title": "" }, { "docid": "1c78e4e5018831e74b57806ffb13dcd0", "score": "0.66507244", "text": "public function getInitialData...
0dcf163b45ff71f51a4c67cf03589727
Ensures an IP address is both a valid IP address and does not fall within a private network range.
[ { "docid": "aeff919323169aaa31daad8516dfa0b8", "score": "0.7181282", "text": "function validate_ip($ip) {\n\n\tif (strtolower($ip) === 'unknown')\n\t\treturn false;\n\n\t// Generate IPv4 network address\n\t$ip = ip2long($ip);\n\n\t// If the IP address is set and not equivalent to 255.255.255.255\n\tif (...
[ { "docid": "a310e4633c3d5e744b763441eaf4731a", "score": "0.74426275", "text": "function validate_internal_ip_address($value) {\n if (!filter_var($value, FILTER_VALIDATE_IP)) {\n throw new Carbon_Validator_ValidationError(\"Please enter valid IP address. \");\n }\n $pieces = explode('.', ...
2a0de06a033d82b36aa26408b2919b2b
Is all players offline?
[ { "docid": "b8eb560dc02d2302f418d4d6ecb41024", "score": "0.8334436", "text": "public function isAllFPlayersOffline() : bool\n {\n return count($this->getPlayersWhereOnline(true)) == 0;\n }", "title": "" } ]
[ { "docid": "8ae80c87b6c263a8178b32602d6a8eb8", "score": "0.7209056", "text": "public function isFactionConsideredOffline() : bool\n {\n return $this->isAllFPlayersOffline();\n }", "title": "" }, { "docid": "1d2f384f2b860e0d4ce535d9d3051615", "score": "0.71166295", "text"...
9fa02d475d145351688919cc4d53871f
Performs a DELETE on the database, given a RegistrasiPesertaDidik or Criteria object OR a primary key value.
[ { "docid": "69fd68a5e957844175adb8468b33dfaf", "score": "0.66444236", "text": "public static function doDelete($values, PropelPDO $con = null)\n {\n if ($con === null) {\n $con = Propel::getConnection(RegistrasiPesertaDidikPeer::DATABASE_NAME, Propel::CONNECTION_WRITE);\n }\...
[ { "docid": "8c8873b1586de58214ef499c656c6cc4", "score": "0.71042347", "text": "abstract public function deleteByPk($primaryKey);", "title": "" }, { "docid": "74d5c24a161ce9227e32b0a7db328339", "score": "0.69675076", "text": "public function delete()\n\t{\n\t\t$table = $this->table();...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "4bac3188558c3acab53dd8d5175c1d4e", "score": "0.0", "text": "public function show($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "9b47c918056858ef14b85bd8a41414c1", "score": "0.7020616", "text": "public function showAction(Humanresource $hu...
53c6e046b6bf8f18b5eda649d0f8e9a6
schemaFields returns array of all field names
[ { "docid": "cb784583fc50a40bbe716f975fcb6232", "score": "0.82011956", "text": "public function schemaFields() { \n return $this->allFieldsArray;\n }", "title": "" } ]
[ { "docid": "e062719ce03c2115a23ea67afaae58c7", "score": "0.78711283", "text": "public static function getFieldsNames()\n {\n return array();\n }", "title": "" }, { "docid": "0de46b7b38f55e10a11301c44ff54fee", "score": "0.7590405", "text": "public function fields(): array...
577a03e3f83081172a04cdbaf6919076
Gets a repository for ACL privileges
[ { "docid": "89d80b1e57ac86315d7282dfebb75dfc", "score": "0.62609756", "text": "public function getPrivilegeRepository()\n {\n return new $this->privilegeRepositoryClass($this);\n }", "title": "" } ]
[ { "docid": "f4da1d091512c103543ff98d0442fa49", "score": "0.62712437", "text": "public function getAcl()\n\t{\n\n\t\t//throw new \\Exception(\"something\");\n\n\t\tif (!isset($this->persistent->acl)) {\n\n\t\t\t$acl = new AclList();\n\n\t\t\t$acl->setDefaultAction(Acl::DENY);\n\n\t\t\t//Register roles\n\...
5667179cd76f3a0ccb258ba1b9c14d20
Generate template with given file
[ { "docid": "adfbc153199cf08fa24287101e7a9d32", "score": "0.0", "text": "protected function addImageToTemplate(\\Isotope\\Template $objTemplate, $strType, array $arrFile)\n {\n $objTemplate->setData($this->arrData);\n $objTemplate->type = $strType;\n $objTemplate->product_id...
[ { "docid": "2769c25c570e52f095d6ff4efea19ffe", "score": "0.78187776", "text": "function template()\n\t{\n\t\t$file = get('template', segment(3, null));\n\n\t\tif (!$file) exit;\n\n\t\t$file = 'template/'.$file.'.mustache';\n\n\t\tif (!file_exists($file)) exit;\n\n\t\t$file = file_get_contents($file);\n\...
9e19e25d197846ecf5d516cd2a3828ed
Lists all Band entities.
[ { "docid": "4b70eee4672525f2b3993a9ad37ee6fa", "score": "0.0", "text": "public function accueilAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $template = ($this->container->get('request')->isXmlHttpRequest())?\"accueil_content\":\"accueil\";\n \n $bands = $em...
[ { "docid": "69c11f66434e4f9a641d4ab42a3dfb4c", "score": "0.62562525", "text": "public function list(){\n $brands = $this->model->latest()->get();\n\n return BrandResource::collection($brands);\n }", "title": "" }, { "docid": "3d1cad257a4ec0a0bb5ce40bde35cf18", "score": "...
84836277c6f6812be7aa3c5192ea620b
Method to set the value of field farmerCropId
[ { "docid": "7fc57cf8f8edac0afffb257ffebd609a", "score": "0.61630726", "text": "public function setFarmerCropId($farmerCropId)\n {\n $this->farmerCropId = $farmerCropId;\n\n return $this;\n }", "title": "" } ]
[ { "docid": "7829c8518216b10ed7ad8df03188f16d", "score": "0.76164955", "text": "public function getFarmerCropId()\n {\n return $this->farmerCropId;\n }", "title": "" }, { "docid": "fca669fd5787cf31ff116c1f9c56ab76", "score": "0.60887873", "text": "public function setCropP...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "2edeb22d4c4777753cec1553c085d56b", "score": "0.0", "text": "public function create()\n {\n $users = Users::all();\n $diadiem = DiaDiem::all();\n return view('users.create',['users'=>$users,'diadiem'=>$diadiem]);\n }", "title": "" } ]
[ { "docid": "342bff56b62a745961c012a3ac82c12a", "score": "0.78761816", "text": "public function create()\n {\n return view('admin.resource.add');\n }", "title": "" }, { "docid": "0f0380ef896e8b1a4af511fb039fe879", "score": "0.7760756", "text": "public function create()\n\...
6ed5a2998399666b7c90d923044fb2a1
Get the console command options.
[ { "docid": "9c8068359b9dabb640ebadfc58e82ba7", "score": "0.0", "text": "protected function getOptions()\n {\n return array(\n array('example', null, InputOption::VALUE_OPTIONAL, 'An example option.', null),\n );\n }", "title": "" } ]
[ { "docid": "46bcab41d65b6e750324d923586ca802", "score": "0.79306257", "text": "public function getCommandOptions()\n\t{\n\t\treturn $this->commandOptions;\n\t}", "title": "" }, { "docid": "9c6f8602f6cb152a7e48d19dc0614bf9", "score": "0.7744165", "text": "protected function getOptions...
58bbb2309b88230770548db70f7c7165
Determine if this workflow task type is internal from task settings
[ { "docid": "a453e95aa54272fad2e3e9a75d820790", "score": "0.65279156", "text": "public function isInternal()\n {\n return (isset($this->settings['internal']) AND $this->settings['internal']);\n }", "title": "" } ]
[ { "docid": "73a0867a444ce5da499586d68d014965", "score": "0.63851076", "text": "function is_task() {\n\t\treturn is_singular( array( 'cs-task' ) );\n\t}", "title": "" }, { "docid": "4774c42fbf2bfcab2887566f22a26f26", "score": "0.55142313", "text": "function acf_is_internal_post_type( ...
74572b55c4ab2c3e16899436df055bc9
Bootstrap the application events.
[ { "docid": "a524283bc511d7d36136539ca73ad4c7", "score": "0.0", "text": "public function boot()\r\n\t{\r\n\t\t$this->package('vespakoen/epi');\r\n\t}", "title": "" } ]
[ { "docid": "5c2c90b069f2f331b064a4c3edc2a739", "score": "0.7562798", "text": "public function boot()\n\t{\n\t\t//\n $this->initializeAdminMenu();\n \\Event::listen('language:activated', function() {\n //$this->initializeFrontendMenu();\n });\n\t}", "title": "" }, ...
0707bf3a9bd026a179b81179ef0a4721
Add the roles configs to the loaded grids
[ { "docid": "4ddabf865dcd5aa89afba0c5547c53c8", "score": "0.6968743", "text": "public function addRolesConfigToResult()\n {\n $roles = $this->getResource()->getGridRoles($this->_getGridIds());\n return $this->_addArrangedValuesToResult($roles, 'roles_config');\n }", "title": "" ...
[ { "docid": "cd71cb5f5a7699be85ae8b8b1d7cc2fe", "score": "0.65343034", "text": "public function add_user_roles() {\r\n\t\tarray_walk( $this->config, function ( $role_key ) {\r\n\t\t\tadd_role(\r\n\t\t\t\t$role_key['role'],\r\n\t\t\t\t$role_key['display_name'],\r\n\t\t\t\t$role_key['capabilities']\r\n\t\t...
fe93acec0c31618a0f5b586d2b73d5de
Web Online / Offline
[ { "docid": "5a07dbb62e2e259cb3cec13938e4d4a2", "score": "0.0", "text": "function cek_situs (){\nglobal $koneksi_db,$judul_situs;\nif (select_option(site_publish) !='1'){\ndie(require 'id-admin/themes/administrator/pages/offline.html');\n}\n}", "title": "" } ]
[ { "docid": "b9fb5519b10672eaf9c0c6ff045456fd", "score": "0.74508727", "text": "public function isOnline();", "title": "" }, { "docid": "876bb5fa00068f427daf80c4eda232ea", "score": "0.7035694", "text": "public function online() {\n exec('python '.SCRIPT_PATH.'online.py',$output...
bf4b97f4971c7cf42f63b58088d866e6
Strip empty items from the array
[ { "docid": "a7bdcb65fc0abfdbea5e2061396f1528", "score": "0.7492081", "text": "protected function _removeEmptyArrayItems(array &$data) {\n foreach ($data as $key => $value) {\n if (!is_array($value) && trim($value) == '') {\n unset($data[$key]);\n }\n }\...
[ { "docid": "622f3538ebf79c9ca6b71e771a0df1b9", "score": "0.77637047", "text": "function remove_empty_values_from_array(array $array) : array {\n return array_values(array_filter($array, function($item){\n return $item != 0 || $item != \"\";\n }));\n}", "title": "" }, { "docid": ...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "7d56ba702b0f53bfb287a0a271448f5e", "score": "0.0", "text": "public function update(Request $request, $id)\n {\n //\n }", "title": "" } ]
[ { "docid": "98a92f5f221512e805209e68c21a2f41", "score": "0.7230707", "text": "public function update($resource, $id, $data);", "title": "" }, { "docid": "259a6a29a43bf9b88ecc1eb3eee3041e", "score": "0.6979853", "text": "public function updateResource($resourceType, $resourceId, $reco...
2b7fd763804876b6450e597ada9677d0
Notification URL. Payment Service will send information about the course of the transaction to this URL. Value is not required. Can be set in Merchant panel or as a global value in configuration. Min 1 character, max 256 characters.
[ { "docid": "35dd7b0c3574c02111b6a13fb906fba6", "score": "0.0", "text": "public function setNotificationUrl(string $notificationUrl): PaymentBuilderInterface\n {\n $this->payment->setNotificationUrl($notificationUrl);\n\n return $this;\n }", "title": "" } ]
[ { "docid": "c05b1a43f98214122ae4c3a6428a3bdf", "score": "0.75181574", "text": "public function getNotificationUrl()\n {\n return \\Mage::getUrl(\\Mage::getStoreConfig('payment/hycpay/notification_url'));\n }", "title": "" }, { "docid": "01bc7f72c73cfc1ba169aa58f5d7f9ec", "sc...
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "ed482119e218cad2dfd7df9e60f36e0e", "score": "0.0", "text": "public function edit(VacationData $vacation_data)\n {\n $vacation_data = VacationData::with('user.role', 'user.team')->find($vacation_data->id);\n $vacation_data = (new VacationDataResource($vacation_data))->all(req...
[ { "docid": "dd595e2401a651c870eaf18d7e9760a3", "score": "0.8056069", "text": "public function edit(Resource $resource)\n {\n //\n return view('resources.edit', compact('resource'));\n }", "title": "" }, { "docid": "4699678dcf8e1179c0197353cd91326b", "score": "0.773895...
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "4f2a6fa5afece2a063c84dc9eda4aa78", "score": "0.0", "text": "public function destroy(Loans $loans)\n {\n try{\n $loans->delete();\n return response('deleted', 200);\n }\n catch(Exception $e){\n return response('Failed to delete data', 220);\n }\...
[ { "docid": "37dd170c1eaea50870a9bd20839ad070", "score": "0.7137241", "text": "public function remove(ResourceInterface $resource): void\n {\n }", "title": "" }, { "docid": "6f5cb91b0423a11c78f100fc165554df", "score": "0.6959094", "text": "public function delete(ResourceInterfac...
6abaad552cc72a0a82e8e2c23f43aefa
Stars up all the files in the project to those specified in the package. This should copy over/prepare all the files needed to make a standard project into a heavyD one.
[ { "docid": "ef897e3030baa072766248053ea1c327", "score": "0.0", "text": "public function taskProjectStartup(string $seedFileLocation);", "title": "" } ]
[ { "docid": "5a6b33bc619d8354fb27505ecaa27d56", "score": "0.62220377", "text": "private function moveProjectFilesToRoot()\n {\n r_copy($this->backupPath . '/src', __ROOT_DIRECTORY__);\n }", "title": "" }, { "docid": "f3d5759a021d795cd77f3a107995aaf7", "score": "0.6192595", ...
ce5aab78562b75e97e98b3b5c31fe3c0
Process the sweetcaptcha logic
[ { "docid": "e397b6d779e84b0caed33ac18de39703", "score": "0.5740579", "text": "public function onFormProcessed(Event $event)\n {\n $form = $event['form'];\n $action = $event['action'];\n\n switch ($action) {\n case 'sweetcaptcha':\n // make sure we have t...
[ { "docid": "80cf1bf65708690acea353bb79baabd1", "score": "0.6385145", "text": "public function captcha()\n {\n $user_id = 'test';\n $status = Geetest::preProcess(['user_id'=>$user_id]);\n session()->put('gtserver',$status);\n session()->put('user_id',$user_id);\n ech...
361d34934ff41ce90ad3b183c8a60f28
Creates a question from a QTI file Receives parameters from a QTI parser and creates a valid ILIAS question object
[ { "docid": "44651aae80ae70486bda8bd679f0573d", "score": "0.46574602", "text": "function fromXML(&$item, &$questionpool_id, &$tst_id, &$tst_object, &$question_counter, &$import_mapping)\n\t{\n\t\t#$this->getPlugin()->includeClass(\"import/qti12/class.assMathematikOnlineImport.php\");\n\t\t#$import = new ...
[ { "docid": "fcda30c6f0a0b41f681d5b3153a76d5c", "score": "0.6139671", "text": "function readquestion($lines) {\n \t// converts it into a question object suitable for processing and insertion.\n\n $question = $this->defaultquestion();\n $comment = NULL;\n \n // define replac...
c0670d7025ed6a08e0485104e105fa18
Read: returns a page with dependant child entity pages. i.e: Doctor page with Appointments and Practitioners on error: route to indexAction
[ { "docid": "228987f1a66fe4fb5de7ae452aba21fe", "score": "0.0", "text": "public abstract function profileAction();", "title": "" } ]
[ { "docid": "15308ffac97d84fa3aea36dca39312ae", "score": "0.6246209", "text": "public function indexAction ()\n {\n \t$page = new Pages_Model_Pages();\n \t$row = $page->fetchForEditByName($this->_request->pageName);\n\n \tif($this->_request->isXmlHttpRequest()) {\n \t$this->getHelper('...
a5b61e6ef0735c4f182b9b2c5e0cab3a
validate the username and password
[ { "docid": "47406230126257e0c197e03993ddc140", "score": "0.0", "text": "private function userAndPassController() {\n\n\t\tif ($this -> userName !== $this -> strippUserName) {\n\t\t\t$this -> regViewClass -> setMessage(\\viewregister\\ViewRegister::NO_VALID_USERNAME);\n\t\t\treturn false;\n\t\t}\n\t\tels...
[ { "docid": "a061439a93c96567a3eebb58335cdca5", "score": "0.7383629", "text": "private function __ValidateCredentials($username, $passwd) {\n if (!$username) return false;\n if (!$passwd) return false;\n\n $f3 = Base::instance();\n $db_user = new DB\\SQL\\Mapper($f3->get('DB'), 'users');\n ...
cf09fdc8fb617526d37d865b7aa88980
our unknown payload error is really just a very specific type of an error. therefore, we can
[ { "docid": "0d3db8a9d64a6af6b5157fa59e1dd339", "score": "0.7067861", "text": "protected function handleUnknown()\n {\n // just pass a carefully crafted error message over to the error method.\n\n $this->handleError(\"Unexpected payload (\" . get_class($this->payload) . \") in \" . get_c...
[ { "docid": "6d973a7f32880f2183f2d0d1316915b6", "score": "0.6381118", "text": "protected function unknownErrorHappenedMsg(){\n\n $code = 503; //Service Unavailable\n $status = 'errors';\n $message = \"Unknown error happened, please try again later\";\n $dataContent = '';\n ...
935c42acfff2bfd11e2a6f22adf2087c
Creates simple content pages.
[ { "docid": "ef13f7a8afee27b2f3010d1d7ff0fdf4", "score": "0.0", "text": "public function createTextContentPage(SiteInterface $site, string $url, string $title, string $content): void\n {\n $page = $this->pageManager->create();\n $page->setSlug(sprintf('/%s', $url));\n $page->setUr...
[ { "docid": "c5f40842b5027f252717a26742db40dd", "score": "0.74788404", "text": "abstract protected function view_generatePageContent();", "title": "" }, { "docid": "ddf8e1ebad9dd5b0d2b64584e92434a0", "score": "0.7325683", "text": "static public function createPages() {\n\t\treturn fal...
6ae4ab04d1eecb285046966cf4fd05fc
Provides operations to manage the plans property of the microsoft.graph.plannerUser entity.
[ { "docid": "dcf14e0b40b6eb42c9c14ab7b55857ad", "score": "0.0", "text": "public function plans(): PlansRequestBuilder {\n return new PlansRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "title": "" } ]
[ { "docid": "24b9ee151fb46fb3eedcf08c22900352", "score": "0.6018756", "text": "public function setPlanner(?PlannerUser $value): void {\n $this->getBackingStore()->set('planner', $value);\n }", "title": "" }, { "docid": "808192db7f5eb1d9476abb1f181483a5", "score": "0.5851005", ...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "6310236e3ff3b5692f49359e094b911d", "score": "0.0", "text": "public function show($id)\n {\n //return \"Show a cat profile\";\n $cat = Cat::find($id);\n\n return view('cats.show')->with('cat', $cat);\n }", "title": "" } ]
[ { "docid": "1b84960e1b92d293ded93b3711f4a5bb", "score": "0.8234836", "text": "public function show(Resource $resource)\n {\n // not available for now\n }", "title": "" }, { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.819168", "text": "public function show(Re...
39882502c3c313ee8b844ee1282e1004
A basic test example.
[ { "docid": "a512f41d7f8a036325eb6b1b520a93f1", "score": "0.0", "text": "public function test_category()\n {\n\n $category = new CategoryModel();\n $entity = $category->getCategoryByID(1);\n $this->assertInstanceOf(CategoryEntity::class, $entity);\n $this->assertIsString($e...
[ { "docid": "00a539965df7dcf2762e8364efe391d7", "score": "0.7798981", "text": "public function testExample()\n {\n \n \n\n }", "title": "" }, { "docid": "4fc6137a2fdeb0555a3d1ac619ecb26b", "score": "0.7606664", "text": "public function testSample()\n\t{\n\t\t$this-...
8146ce4fb226d55009bfab8e54e1fbd6
Return une liste de PC dont l'ip d'une des interfaces contient $ip
[ { "docid": "3fcb39cd90db95c2f4ba69cf0a4097de", "score": "0.7065681", "text": "public function getPCListByIPV4($ip) {\n\t\t$PCList;\r\n\t\tforeach ($this->PCArray as $pc) {\n\t\t\tforeach ($pc->getIntferfaces() as $int) {\n\t\t\t\tif (strpos($int[\"Adresse\"], $ip) !== false) $PCList[] = $pc;\n\t\t\t}\n\...
[ { "docid": "82b7bf74d6b15944252f0297da3a7f31", "score": "0.65441245", "text": "function ShowIPMap() {\n\n$this->Error = '';\n\nif( $Status = $this->SockWrite( \"show_ip_map\" )) {\n $this->Error = \"Error - write to Socket failed! $Status\";\n return;\n }\n\n$Status = $this->SockRead();\n\nif( !$t...
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "a433e4db90e8b2bc1724f47789dc0d06", "score": "0.0", "text": "public function edit($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "5a5e25617e1019b0143435d1dcee143b", "score": "0.7874048", "text": "public function edit(Resource $resource) {\n $resource = Resource::find($resource->id);\n return view('resources.edit', compact('resource'));\n }", "title": "" }, { "docid": "d752fd3972b546ef194ae1...
920c22cfeaae5abf30fca46da26be274
This function will find out all closing information of daily closing.
[ { "docid": "eec1f24f8dd99a3849b5983baaac0ed7", "score": "0.61470455", "text": "public function accounts_closing_data() {\n $last_closing_amount = $this->get_last_closing_amount();\n $cash_in = $this->cash_data_receipt();\n $cash_out = $this->cash_data();\n if ($last_closing_a...
[ { "docid": "b18bfce5b388f6509288e2e0b9c2574c", "score": "0.5996685", "text": "public function getCloseDate() {\r\n return inship_fedexship_get($this->handle, 2 );\r\n }", "title": "" }, { "docid": "258e97dd7d089437a2291d543dfe0c9d", "score": "0.5873773", "text": "public function ...
8dce310cad6c1f39e8475676528b19af
Fires requested event by calling all its registered handlers.
[ { "docid": "cc8d8977ea2159097244ec73a2fdd826", "score": "0.62306446", "text": "protected function fire(Event $event)\n {\n $eventClass = get_class($event);\n if (!empty($this->handlers[$eventClass])) {\n foreach ($this->handlers[$eventClass] as $handler) {\n ca...
[ { "docid": "892b36311161f020c422c9b92da371d7", "score": "0.66633755", "text": "abstract public function fire($event);", "title": "" }, { "docid": "ced05bb8cc33c3a4a7b36e616208269d", "score": "0.6616351", "text": "function fire(): void {\n ///echo 'onFire:', var_dump($this->_ca...
8f92e1206cefd9cc33c3bb4a8541f00b
Devuelve la informacion de los impuestos aplicados al pedido.
[ { "docid": "5fb0ed7ddef6b587529765ab5e641a83", "score": "0.0", "text": "function get_taxes() \n\t{\n\t\treturn $this->_aIVAs;\n\t}", "title": "" } ]
[ { "docid": "a8ac5a8e4ebf210ba555f5620bab1091", "score": "0.5859793", "text": "public function infoAction()\n {\n $em = $this->getDoctrine()->getManager();\n $session = $this->getRequest()->getSession();\n //$session = new Session();\n //$session->migrate();\n $escue...
58d7adbfd6fa6a1199f0fec0f588ffa6
Use any HTML inside icons (e.g. Font Awesome)
[ { "docid": "3edcd9185dbe4ea7a3f157c7c1bd013f", "score": "0.0", "text": "public function iconHtml($iconHtml)\n {\n $this->config['iconHtml'] = $iconHtml;\n\n $this->flash();\n return $this;\n }", "title": "" } ]
[ { "docid": "eb28181d51519d4411862ad51dabb28b", "score": "0.72799915", "text": "public function htmlIcon(){\n return '<i class=\"'.$this->icon.'\" aria-hidden=\"true\"></i>';\n }", "title": "" }, { "docid": "354957f77a8e5e4875fef6841cc2ce24", "score": "0.71630687", "text": "pr...
d852edb47e98d37a474125022193e73b
Seed the content relations of a content
[ { "docid": "ee7fa61803c51615227d038b4f98b5bc", "score": "0.6306566", "text": "protected function seedRelations($content_id, $relations)\n {\n // Loop through the sets of relations, first index is the relation type, the second index is the relation value\n collect($relations)->each(funct...
[ { "docid": "e9ca3be063582776fcb702249ab9a2dd", "score": "0.59045416", "text": "protected function seedStructure($databaseStructure)\n {\n $relations = [];\n\n collect($databaseStructure)->each(function ($databaseItem) use (&$relations) {\n\n $databaseItemProperties = collect(...
3a3c233cf6bef8122ce904cfda11bb62
Insert Tasks in DataBase
[ { "docid": "7d793da1d35bea35dfeb710a7b0b7b2e", "score": "0.0", "text": "public static function addNoCheck(AbstractJob $job): ?InsertEvent\n {\n //====================================================================//\n // Dispatch Task Added Event\n $event = self::dispatch(new In...
[ { "docid": "9dff86e2740d8d1836433108674d4c3f", "score": "0.7033027", "text": "public function run()\n {\n DB::table('tasks')->insert(['tasks' => 'Get Up early']);\n DB::table('tasks')->insert(['tasks' => 'Sleep early']);\n }", "title": "" }, { "docid": "32e4a0a7cc3acf4dd3...
da8458d77e4fa1d967fa46cd26c38b24
string statement = 5;
[ { "docid": "1f3e89429b05b62f9addbd374e3e2452", "score": "0.4923497", "text": "public function setStatement($var)\n {\n GPBUtil::checkString($var, True);\n $this->statement = $var;\n }", "title": "" } ]
[ { "docid": "4871f8ea7f4a0662387da57bf31dcc1b", "score": "0.5211243", "text": "public function getStatement(): string\n {\n return $this->view->getStatement();\n }", "title": "" }, { "docid": "0b8d9da20c4dffb253cd60bfce3098d2", "score": "0.51108795", "text": "function get...
beee6bdfc1cc6b7b0bc54dacc3ae98b0
Sets a meta option that enables Muut commenting for new posts, if "Use Muut for Commenting" is enabled.
[ { "docid": "2b9c1dc6db2c9e7ce027cc16f1a94914", "score": "0.0", "text": "public function maybeEnableSpecificComments( $new_status, $old_status, $post ) {\n\t\t\tif ( $new_status == 'publish' ) {\n\t\t\t\tif ( muut()->getOption( 'replace_comments' ) ) {\n\t\t\t\t\tupdate_post_meta( $post->ID, 'muut_use_mu...
[ { "docid": "dd82829bc0c19b902b9cea620915b54e", "score": "0.5802906", "text": "private function setCommentsOnMedia(){\n Image::setDefaultCommentEnabled( $this->configuration->showComments );\n Video::setDefaultCommentEnabled( $this->configuration->showComments );\n return $this;\n ...
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "8006aab7d2d10a65789bbdec438b9193", "score": "0.0", "text": "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Librarian',\n 'email' => 'librarian@gmail.com',\n 'password' => bcrypt('librarian'),\n 'created_at' => new D...
[ { "docid": "74adb703f4d2ee8eeea828c6234b41f3", "score": "0.81044954", "text": "public function run()\n {\n Eloquent::unguard();\n\n $this->seed('Categories');\n\n // Illustration\n $this->seed('Supports');\n $this->seed('Illustrations');\n\n // Photography\n ...
7fff195a37eda56122db4c1a380ee488
Set function that adds a given class to the EEC Core. This must be used by plugins to register their class.
[ { "docid": "77f3afa335f2979af6250f89b9aff899", "score": "0.0", "text": "public function set($sCoreComponentName = null, $sCoreComponent = null, $aDetails = null)\n\t\t{\n\t\t\tif(is_array($aDetails))\n {\n if(isset($aDetails['requiredExtensions']) && is_array($aDetails['require...
[ { "docid": "20560033a633f441117c7f0889ab22b5", "score": "0.6722535", "text": "function register_class(&$class)\r\n\t{\r\n\t\t$this->class = $class;\r\n\t}", "title": "" }, { "docid": "a58b1bb7adf2d15106a7e2a8b93d8ae3", "score": "0.6440204", "text": "public function addClass($class) {...
9969aedde5db945b4e8edbf2d5eff9be
Array of property to format mappings. Used for (de)serialization.
[ { "docid": "96e4d9e7f6d72a90eb32656dfb81ba26", "score": "0.0", "text": "public static function openAPIFormats()\n {\n return self::$openAPIFormats;\n }", "title": "" } ]
[ { "docid": "68e800877adc1e3d5c2df851f42be6aa", "score": "0.6498941", "text": "public function getFormatMap()\n {\n return $this->formatMap;\n }", "title": "" }, { "docid": "4f4eab80a4a2cb1dc3c4e5261c94ec87", "score": "0.637007", "text": "public function getFormats()\n ...
13ed2c91f4e766c1fb3f7ccbe1aa3e38
Return the temp directory where uploaded files are stored.
[ { "docid": "a645872e260fe14c7f9871d41538c24c", "score": "0.73841125", "text": "public function getTempDir()\n {\n if (!$this->tempDir) {\n $this->tempDir = sys_get_temp_dir();\n }\n return $this->tempDir;\n }", "title": "" } ]
[ { "docid": "178a3830dea0e007b820a9f788c51aa6", "score": "0.8722388", "text": "protected function getUploadDir() {\n return 'upload/temp';\n }", "title": "" }, { "docid": "e0ca10bba4598837324582971aba3bc3", "score": "0.8566085", "text": "function getUploadedFilesTemporaryPat...
8ae9492ba737efd46dc87efa56da92a8
$fields is requested fields data which request from Form $requestType defined that what the type of the Request (POST or GET) $type is defined to convert that requested data into (integer, boolean, float, string(default))
[ { "docid": "d0a823ff9c4e2c95a4f901341bb07785", "score": "0.66892177", "text": "function getRequestData($Fields = array(), $requestType, $type = array())\n{\n try {\n $data = array();\n if ($requestType == \"post\") {\n $request = $_POST;\n } else if ($requestType == \"...
[ { "docid": "a17cf53d2adaceef3118eeb6ac829e2f", "score": "0.64640945", "text": "abstract public function fields(Request $request);", "title": "" }, { "docid": "f4b2ada3d9870e179fc575aa198fcc62", "score": "0.6310108", "text": "function regenerate_fields( $type ){\n\n\t\t$this->remove_t...
5c67fe63a9a0972378666bc4f7dd1aba
Returns and execution backtrace as an array
[ { "docid": "b1ff715548b580b514e48292e9167162", "score": "0.62702155", "text": "final function getTrace();", "title": "" } ]
[ { "docid": "b942d755cf2c4bab7bd0c3162db0fb8d", "score": "0.7124179", "text": "function trace() {\n\t\t$trace = array();\n\t\tforeach (debug_backtrace() as $k => $v) {\n\t\t\tif (!$k) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$v['object'] = is_object($v['object']) ? get_class($v['object']) : null;\n\t\t\t$tra...
a3316d9b3ae0cee109703d9ba228ac5a
Removes all existing cached files from the server
[ { "docid": "e61fa4c5f0683e77a1d552c40f2eb216", "score": "0.6987666", "text": "public function clear_cache() {\n\n // Only allow AJAX requests\n if (!$this->input->is_ajax_request()) {\n return show_404();\n }\n\n // Remove all logs\n foreach($this->_getCache...
[ { "docid": "2b64bf9c1d6f970b6bdbe5f4ef4e767a", "score": "0.8482171", "text": "public static function removeCacheFiles() {}", "title": "" }, { "docid": "6f84571e39855cab3067eacfae093f05", "score": "0.820143", "text": "public function removeCache() {\r\n $files = $this->caches;\...
a604e4c07a22e73100d1ef5710e4c861
okey etwas witzlos die md5 Geschichte hier
[ { "docid": "b44091dbfefaf89fdae14f0675703910", "score": "0.0", "text": "function checklogin($password){\n if(md5($password)==md5(\"thepassword\")){\n $_SESSION[\"mypw\"]=md5($password) ;\n return true;\n }else{\n return false;\n }\n}", "title": "" } ]
[ { "docid": "93ad0cc61aca0d89bfc2bfbba8747f2d", "score": "0.6792449", "text": "function Md5_pass($data){\n\t\t$data = md5($data);\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "feaab6b8117c8c9eb49e68e853ac6550", "score": "0.6766697", "text": "function enc5($value){\n\t$data = md...
bf2796ad976114819dddcd2233d2263c
A numerically indexed list of association names of this persistent class. This array includes identifier associations if present on this class.
[ { "docid": "21e3c3739a0853e9721e7108f4b9a1b4", "score": "0.6716054", "text": "function getAssociationNames();", "title": "" } ]
[ { "docid": "fcdce915b15de92d1d325b25025e0ce9", "score": "0.71014977", "text": "public function associations(): array\n {\n return $this->_associations;\n }", "title": "" }, { "docid": "573376397730491d437ee2782743594f", "score": "0.69653577", "text": "public function get...
927d37bef92f4cc6bafd35d6de3ad514
Authenticates against the supplied adapter
[ { "docid": "caa05ed2a5e2bbe69f260f549fa378df", "score": "0.6852947", "text": "public function authenticate(Yan_Auth_Adapter_Interface $adapter)\n\t{\n\t\t$result = $adapter->authenticate();\n\n\t\tif ($result->isValid()) {\n\t\t\t$this->getStorage()->write($result->getIdentity());\n\t\t}\n\n\t\treturn $...
[ { "docid": "ad0fb1f02cbcf54f1781a9053a09ca78", "score": "0.69013536", "text": "public function authenticate()\r\n {\r\n // ...\r\n }", "title": "" }, { "docid": "6060220cd70d7955c694a5acd7c4282b", "score": "0.68968785", "text": "public function authenticate() {}", "t...
c02ba1ce1fa03a6c6cf1925155836874
Generated from protobuf field string Company = 5;
[ { "docid": "a1572ad1c4f13743ba006d6d8d821ee0", "score": "0.58728516", "text": "public function getCompany()\n {\n return $this->Company;\n }", "title": "" } ]
[ { "docid": "70cc27ddd7e9c5ee53c87134cdb69c2a", "score": "0.6341465", "text": "public function getCompany() {\n return @$this->attributes['company'];\n }", "title": "" }, { "docid": "4584ccdc5b63c689733c9ad35bdf2328", "score": "0.60331666", "text": "function getCompanyId() {\n ...
c33099e3bad8ed7f201e3a469b628b91
Generated from protobuf field .clarifai.api.DeleteMetadata delete_metadata = 4;
[ { "docid": "8b9f005afed47b97eb84b70c95e08fef", "score": "0.78506446", "text": "public function setDeleteMetadata($var)\n {\n GPBUtil::checkMessage($var, \\Clarifai\\Api\\DeleteMetadata::class);\n $this->writeOneof(4, $var);\n\n return $this;\n }", "title": "" } ]
[ { "docid": "a84bfaeaf95c02052e585ee115a7771e", "score": "0.78511524", "text": "public function getDeleteMetadata()\n {\n return $this->readOneof(4);\n }", "title": "" }, { "docid": "356b1b4295131ee766b5b54ed6ef46d9", "score": "0.72129273", "text": "public function delMet...
653e7beb3365d018bc51f9de6fe6e5f7
Define accessor that will fetch the campaign metric data from the Facebook ads api.
[ { "docid": "a244f1badbaa89533caa52d70c028490", "score": "0.74904054", "text": "public function getMetricsAttribute()\n {\n $fields = $this->metric_fields;\n $start_date = $this->metric_start_date;\n $end_date = $this->metric_end_date;\n $time_increment = ...
[ { "docid": "5364488ffcc8be3d8fa181950bca544f", "score": "0.59698224", "text": "protected function get_metric()\n {\n return (object) array(\n 'distributionChannel'\t => $this->user,\n 'username'\t\t\t\t\t => $this->user,\n 'requestUniqueIdentifier'\t=> time(),\n 'requestD...
720749a709590c277e4b145f7640ae72
Return is enable output WARN level message
[ { "docid": "9765e69b3a4032464ec3fb71fb47d7f6", "score": "0.79865444", "text": "function isWarnEnabled(){\n return $this->logLevel >= self::WARN_LEVEL;\n }", "title": "" } ]
[ { "docid": "4829023ae16f7ab900f6080b0af8c49b", "score": "0.79955876", "text": "public function isWarnEnabled(){\n\t\treturn $this->_log_level >= self::WARN_LEVEL; \n\t}", "title": "" }, { "docid": "4e4faac3c2b572d378aee23a67c5c7ae", "score": "0.6772641", "text": "function warn() {\n\...
56f17d39509ed6f025fbb2f884aefdab
Uses a singleton pattern and a factory pattern to return the data manager. The configuration determines which data manager class is to be instantiated.
[ { "docid": "d9e136f010db74d41af1bbfee7e324c2", "score": "0.79275304", "text": "static function get_instance()\r\n {\r\n if (!isset(self :: $instance))\r\n {\r\n $type = Configuration :: get_instance()->get_parameter('general', 'data_manager');\r\n require_once dirn...
[ { "docid": "6102a82da33d20164e1433b4eeb7d2be", "score": "0.76935166", "text": "static function get_instance()\n\t{\n\t\tif (!isset (self :: $instance))\n\t\t{\n\t\t\t$type = Configuration :: get_instance()->get_parameter('general', 'data_manager');\n\t\t\trequire_once dirname(__FILE__).'/data_manager/'....
1c0d63b04fa7c1e2b50608658de238d9
Check if files are acceptable
[ { "docid": "1dc1f23961def7455eba841bb91adef9", "score": "0.75464076", "text": "public function checkFiles(){\n\t\tforeach($this->_files as $key => $upload){\n\t\t\t$ok = true;\n\t\t\tswitch(true){\n\t\t\t\tcase strpos($upload->name,'.php')!==false:\n\t\t\t\tcase strpos($upload->name,'.php3')!==false:\n\...
[ { "docid": "17d3ca5a870cf7eb2102c4d9f5264e7f", "score": "0.7269546", "text": "function file_check($file){\n\n\t\t// stuff we definitely don't want to see in a file name\n\t\t$bad = array(\"../\",\"./\",\"<!--\",\"-->\",\"<\",\">\",\"'\",'\"','&','$','#','{','}','[',']','=',';','?',\"%20\",\"%22\",\"%3c\...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "548619a4f19bddef975d486bbb6e4991", "score": "0.0", "text": "public function index()\n {\n $datas = Team::latest()->get();\n return view('backend.team.team-index', compact('datas'));\n }", "title": "" } ]
[ { "docid": "d37ee75c4feac8dcd7712d902a70bf82", "score": "0.7607344", "text": "public function listAction()\n {\n \t/**\n \t * @todo return a paginated and ordered list, selecting only valid elements (move valid clause to rowset)\n \t */\n \t$this->view->resources = $this->_table->fetchAll...
b6ebe7a07cf2e8b9b4514ea0db0b8e05
Returns path copy data.
[ { "docid": "022b8a811050cf35e5b24c73cf2ee2a7", "score": "0.5640001", "text": "protected function getPathCopyData($path_id, $max_revision = null)\n\t{\n\t\t$where_clause = array(\n\t\t\t'PathId = :path_id',\n\t\t\t'CopyPathId IS NOT NULL',\n\t\t);\n\n\t\t$bind_params = array(\n\t\t\t'path_id' => $path_id...
[ { "docid": "e6fe5cf315513b46e4e50bbe215c0dbc", "score": "0.68987936", "text": "public function getDataPath();", "title": "" }, { "docid": "57c9f7c5558a08ddf02b091a2da397b9", "score": "0.6766069", "text": "public function get_data_path()\n {\n // TODO: Implement get_data_pat...
91401d527cbc6d9b66e35cb63656f844
Show form to create new blog status
[ { "docid": "e954bb1358232df01bd2825b8b310e12", "score": "0.73421997", "text": "public function create(BlogStatusCreateRequest $request)\n {\n return view('admin.blog-status.create-or-edit', [\n 'id' => null,\n 'title' => \"Create New Blog Status\",\n ...
[ { "docid": "c3cd23d2320c238d7cb677bc31808154", "score": "0.70514184", "text": "public function actionCreate()\n {\n $model = new BlogForm();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n ...
aa2e48a5b8596975176009ba28021f40
Common::write_log( " PostMods > __construct : " );
[ { "docid": "5c9a425d0b3a3fe463d8cb3511987f8e", "score": "0.0", "text": "public function __construct( )\n\t{\n\n\t\tself::$Globals = parent::getGlobals( );\n\n\n\t\t#add_filter( 'gettext', array( $this, 'custom_enter_title' ), 1 );\n\t\t\n\t\t#add_filter( 'getdecsription', array( $this, 'custom_enter_de...
[ { "docid": "259b0b506cdc71dda269d64076ea3cb1", "score": "0.77101374", "text": "public function post_construct(){}", "title": "" }, { "docid": "259b0b506cdc71dda269d64076ea3cb1", "score": "0.77101374", "text": "public function post_construct(){}", "title": "" }, { "docid":...
ffd31b37c2d023ec014c726da1b6e03c
Set max_heap_table_size value in Bytes. By default value is 64M
[ { "docid": "06577b78a89cb6abc2dbb2449bba2286", "score": "0.70742303", "text": "public function set($maxHeapTableSize = null)\n {\n $maxHeapTableSize = (int) (null === $maxHeapTableSize ? $this->defaultMaxHeapTableSie : $maxHeapTableSize);\n if (!$maxHeapTableSize) {\n throw n...
[ { "docid": "cd132ec58a2cdef106de1d9ed2396b5a", "score": "0.58950984", "text": "public function getHeapSize()\n {\n return parent::getHeapSize() + 8 +\n count($this->_sampleToGroupTable) * 8;\n }", "title": "" }, { "docid": "ed0326368f20da18f9263fbcbdd1138e", "scor...
78e73b9a549844f530cbc8507ad9dbe7
Method to set the value of field refund_applied
[ { "docid": "b76d5d8f6eba05e25532b4d84b29067b", "score": "0.64573497", "text": "public function setRefundApplied($refund_applied)\n {\n $this->refund_applied = $refund_applied;\n\n return $this;\n }", "title": "" } ]
[ { "docid": "49e26634f97813ccef5ec9dae2d485d7", "score": "0.6315874", "text": "public function getRefundApplied()\n {\n return $this->refund_applied;\n }", "title": "" }, { "docid": "b2957d6ec4ac7141274c0d708202e014", "score": "0.56487495", "text": "public function setRef...
a223c1a37179a686e1da776cda60b602
show the record with the given id
[ { "docid": "8bd5d4902e43385ecdcfdb4335c9939f", "score": "0.0", "text": "public function show($id)\n {\n return $this->address->findOrFail($id);\n }", "title": "" } ]
[ { "docid": "0b4f2e30c007d9275630ea97c71274b2", "score": "0.8926914", "text": "public function showRecord($id){\n\t}", "title": "" }, { "docid": "496570de6c493cd9fe30f7c52ceb87d1", "score": "0.8627217", "text": "public function show($id)\n\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t//\n\t\t\t\t\t}...
032d3a8c8199acac83f99fde204bce02
Check whether permitted attributes are present.
[ { "docid": "e655459b4c448c3479276667a053b6b2", "score": "0.8081959", "text": "public function hasPermittedAttrs(): bool\n {\n return isset($this->_permittedAttrs);\n }", "title": "" } ]
[ { "docid": "5f554f9aac83ca48b995a4ac69037e37", "score": "0.748106", "text": "protected function validateRequiredAttributes()\n {\n if (!empty($this->requiredAttributes)) {\n $attributes = $this->fetchAttributes();\n foreach ($this->requiredAttributes as $openIdAttributeNa...
ba9b6a8fe9c4f557838de18a0bf7f9b6
Enqueue scripts and styles.
[ { "docid": "feeb72c0eb4441036af29315b525e56b", "score": "0.0", "text": "function ladwp_scripts() {\n wp_enqueue_style( 'ladwp-fonts' , ladwp_get_font_url(), array(), null );\n\twp_enqueue_style( 'ladwp-fontawesome-style', get_template_directory_uri() . '/libs/font-awesome/css/font-awesome.min.css');\...
[ { "docid": "6fee99ee35367e284faffd0f89e7a25d", "score": "0.82784325", "text": "public function enqueueScripts() {\n }", "title": "" }, { "docid": "9151cd3d02120c12c94ea56ebef588b8", "score": "0.82360536", "text": "public function enqueue_scripts() {\n\n\t\tif ( ! $this->is_availab...
093eaf4a45683705a2231315728bafea
Display a listing of the aspectos ambientales.
[ { "docid": "8c2587741826c60772de433cc91452d6", "score": "0.65763056", "text": "public function index(Request $request)\n {\n\t\t$input=$request->all();\n\t\t$r=AspectosAmbientale::where('id', '<>', '0');\n\t\tif(isset($input['id']) and $input['id']<>null){\n\t\t\t$r->where('id', '=', $input['id']);\n...
[ { "docid": "edbc0f669785f8d02dcb2f47acfda11d", "score": "0.71612084", "text": "public function index()\n\t{\n //\n $aspects = Aspect::all();\n return View::make('module2.aspects.listAspects')->with('aspects',$aspects);\n\t}", "title": "" }, { "docid": "8e59c3...
bf216a32e834d4a98e92a7e3506f0dfb
Validate zip code based on country code
[ { "docid": "4285239e477216525d252c7fce20ae73", "score": "0.7975013", "text": "function give_donation_form_validate_cc_zip( $zip = 0, $country_code = '' ) {\n\t$ret = false;\n\n\tif ( empty( $zip ) || empty( $country_code ) ) {\n\t\treturn $ret;\n\t}\n\n\t$country_code = strtoupper( $country_code );\n\n\...
[ { "docid": "8fd78921270825f49cb06ae719f650b3", "score": "0.82997", "text": "function checkZipCode($code, $country) {\r\n\t$code = preg_replace(\"/[\\s|-]/\", \"\", $code);\r\n\t$length = strlen ($code);\r\n\r\n\tswitch ( strtoupper ($country) ) {\r\n\t\tcase 'US':\r\n\t\tcase 'MX':\r\n\t\t\tif ( ($lengt...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "c4f1e36eff565171f824e91685d27abd", "score": "0.0", "text": "public function update(Request $request, $id)\n {\n //\n\n $this->validate($request, [\n 'nama_database' => 'required|unique:databases,nama_database',\n ]);\n $tanggal = date('Y-m-d');\n ...
[ { "docid": "1e58026b8952df10026ace5fc59fe274", "score": "0.7425105", "text": "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'D...
c21dc80cd03290ce8968ef98028faea6
Transform a search string to an array converts a comma seperated string to an array
[ { "docid": "cb7e65076c761d165eedbc975715f587", "score": "0.75508213", "text": "protected function _searchToArray($search)\n {\n if(is_array($search)) {\n return $search;\n }\n \n if(!preg_match('/\\,/', $search)) {\n return array($search);\n }\...
[ { "docid": "8109032ed92c9fb980edc0ae79e5ed8f", "score": "0.662034", "text": "function explodeByComma($str)\n\t{\n\t\t$str = str_replace(\" \", \"\", $str);\t//remove spaces\n\t\tif( strpos($str, \",\") )\n\t\t{\n\t\t\t// remove bad comma ing\n\t\t\t$invalid_comma = array(\", \", \" ,\", \" , \");\n\t\t\...
448a57f558c34a4e2b433c3d63d9f5b2
Find all records in this model's database table. Sorts the results by the 'title' field ascending.
[ { "docid": "a5764b6687ce1aa40da0bc5bd8a75290", "score": "0.5875865", "text": "public function findAll()\n {\n $sql = \"SELECT * FROM {$this->tableName} WHERE deleted = 0 ORDER BY title ASC\";\n\n $this->pdo->prepared = $this->pdo->prepare($sql);\n $this->pdo->prepared->execute();...
[ { "docid": "65a1bc5313dc5f2389809af1166ee516", "score": "0.7009857", "text": "public function all()\n {\n return $this->model->all();//->sortBy('name');\n }", "title": "" }, { "docid": "401bab6f685a3aacb3fc237b1b509d3a", "score": "0.6891642", "text": "public function all...
b2da5520f15d60e86711cd8d6ffe5549
Get record count (for current List page)
[ { "docid": "8d9f85923dd595a91cc8e644050c6b0a", "score": "0.7132561", "text": "function SelectRecordCount() {\r\n\t\tglobal $conn;\r\n\t\t$origFilter = $this->CurrentFilter;\r\n\t\t$this->Recordset_Selecting($this->CurrentFilter);\r\n\t\t$sSql = $this->SelectSQL();\r\n\t\t$cnt = $this->TryGetRecordCount(...
[ { "docid": "17ac79e27633e5c8448997520b15c964", "score": "0.8069798", "text": "public function getRecordCount()\n\t{\n\t\treturn $this->recordCount;\n\t}", "title": "" }, { "docid": "2c57383702338233d56dd1cdd18766b0", "score": "0.80511796", "text": "public function listRecordCount()\n...
cfa2c1b9b26836c96776f651f38bcec6
function that will display backend
[ { "docid": "351ab8daf8c20241a0ac9efeb86cfdf5", "score": "0.0", "text": "public function form( $instance ){\n\n echo '<p>You can manage this Widget from the <a href=\"./admin.php?page=carlos_practice\">Here!</a></p>';\n }", "title": "" } ]
[ { "docid": "371de04453ee51f0218960c6a7a8ceb4", "score": "0.75448227", "text": "public static function DisplayIndexBackend(){\n if(!Session::CheckAuthentication())\n Output::Redirect(Storage::Join(\"route.root\", \"login\"));\n \n maBase::SetBackendOutput(\"...
8b6aec6529b72082a90fbba56e42309d
Gets query for [[MAccessgroups]].
[ { "docid": "5f4f08b1e2d4c67f96f59c754f932545", "score": "0.70908487", "text": "public function getMAccessgroups()\n {\n return $this->hasMany(Accessgroup::className(), ['IdDoc' => 'IdDoc']);\n }", "title": "" } ]
[ { "docid": "8c1983096b26887ec828fa18a143c4a7", "score": "0.62988263", "text": "public function list_groups(){\r\n\t\t\t return $this->module_list_groups();\r\n\t\t }", "title": "" }, { "docid": "074e98b3940cb77dd5a2f5a99b58f5b8", "score": "0.6243414", "text": "public function getGr...
9e172f16639d8f16483ef8e134a8c631
show my timetable page
[ { "docid": "e32fd9540d108112fbc28e1766febecd", "score": "0.6934464", "text": "public function show_my_timetable () \n\t{\n\t\t// get requested lessons \n\t\t$teacher_id = $this->session->userdata('teacher_id');\n\t\t$params = array('teacher_id' => $teacher_id);\n\t\t$result = $this->http_req->send_reque...
[ { "docid": "083ecccb61017966ec422a601860792c", "score": "0.7710273", "text": "public function show(TimeTable $timeTable)\n {\n //\n }", "title": "" }, { "docid": "6e4438b2bb812e15abc17359a6f1aa16", "score": "0.75477445", "text": "function view_all_timetable(){\n\t\t\n\t\...
b70775277fdcc57fc35fe32d96c2675b
Creates a error message
[ { "docid": "6cf86c04a7e55d09b91923ba3234a65d", "score": "0.0", "text": "public function error(string $message): Message {\n $this->type = CONF_MESSAGE_ERROR;\n $this->icon = CONF_MESSAGE_ICONS[\"icon-error\"];\n $this->text = $this->filter($message);\n return $this;\n }", ...
[ { "docid": "8122ba68c8acb4be429c0d545bcf5b1e", "score": "0.7500433", "text": "public function createGenericErrorMessage(): string\n {\n return (string)__('Something went wrong while processing your order. Please try again later.');\n }", "title": "" }, { "docid": "19c2045640cfb5...
19c89485abfe83fb1300ac262b823f4d
Return the arithmetic mean of numeric data.
[ { "docid": "0fb84f8076057eca9c48ccf697beba13", "score": "0.71271324", "text": "public function mean(): int|float|null\n {\n return Stat::mean($this->numericalArray());\n }", "title": "" } ]
[ { "docid": "6c5427209c68c8764f5fb766e2e1a1b0", "score": "0.7781155", "text": "public function mean() : float\n {\n return $this->sum() / $this->n;\n }", "title": "" }, { "docid": "12b3254da3678001ccc3f624abbd8d11", "score": "0.7247777", "text": "public function average()...
b3ba039677f5b6f7021500a2f27fc58d
Constructor. Available options: global_prefix A prefix for all keys within the cache. This is useful to avoid colliding keys when using the same cache for different systems. prefix A "local" prefix for this wrapper. This is useful when reusing the same resolver for multiple filters. index_key The name of the index key ...
[ { "docid": "16a4c3d9fdf903b1c93ecfceec9430ed", "score": "0.0", "text": "public function __construct(Cache $cache, ResolverInterface $cacheResolver, array $options = array(), OptionsResolverInterface $optionsResolver = null)\n {\n $this->cache = $cache;\n $this->resolver = $cacheResolver...
[ { "docid": "8b593bc4444590f186ed6e49ea1633b3", "score": "0.58316386", "text": "public function __construct($image_name, $cached_key_name)\n {\n $this->image_name = $image_name;\n $this->cached_key_name = $cached_key_name;\n }", "title": "" }, { "docid": "98e9d33c738aa86c4...
ad56a0e3a4376b5766c92dce0ddc327e
Gets info about a category
[ { "docid": "4ac6a05a9ab4d27980511e763cd60f41", "score": "0.64158076", "text": "public function getInfo($category_id, $cleanName = false)\n {\n //Note: we don't ask for the leveled field ID here since that is unique\n //to the value ID.\n $db = DataAccess::getInstance();\n ...
[ { "docid": "90d4003da8f182f1dc90cad950c541ac", "score": "0.7208945", "text": "public function getCategory()\n {\n return $this->get(self::category);\n }", "title": "" }, { "docid": "71473b8f21aef80fad5e5f00f46cbfe4", "score": "0.7148252", "text": "function category() {\n...
888ccfb7a4854c575a89d4db05df4a3d
Clean up after running all test cases
[ { "docid": "e7bbc9a236453f2c87265a2bf8372202", "score": "0.0", "text": "public static function tearDownAfterClass()\n {\n }", "title": "" } ]
[ { "docid": "9f3d312881bd28694d82fe3989df315c", "score": "0.78126293", "text": "function teardown() {\n // clean any files you've created, close database handles, etc.\n @unlink('sometestfile');\n }", "title": "" }, { "docid": "b0aaac782a2875520f2fa38b9123d07c", ...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "92163c1ebf467c20dd009634c3d28399", "score": "0.0", "text": "public function update(Request $request, $id)\n {\n $request->validate([\n 'user_type_id'=>['required'],\n 'first_name'=>['required'],\n 'last_name'=>['required'],\n 'email'=>['r...
[ { "docid": "ae90a700efd6cf3cd7c51c1c4442503a", "score": "0.7658553", "text": "public function update(ResourceInterface $resource);", "title": "" }, { "docid": "33eafa1267660ce479c92ad656dea136", "score": "0.7497171", "text": "function updateResource(){\n\t\t$resource = $this->getReso...
b742d967813a6c46963d25a496465196
Fetch the data from GitHub
[ { "docid": "0ec73389dd4d69af4ae68df078cc6b8d", "score": "0.53982556", "text": "private function _fetch_data($url)\n {\n \t$ch = curl_init();\n\t\tcurl_setopt($ch, CURLOPT_URL, $url);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\t\t$returned = curl_exec($ch);\n\t\t$status = curl_getinfo($ch,...
[ { "docid": "090d78180730850aaab718ebe3b52389", "score": "0.7383918", "text": "public function fetch()\n {\n $this->repo()->run('fetch', ['--all']);\n }", "title": "" }, { "docid": "b311eaab39b6ca5c95eb8d8ac974f530", "score": "0.6819666", "text": "public function fetchDat...
cbd26b59e706fca0ee5028ce794f0e91
Deletes a particular model. If deletion is successful, the browser will be redirected to the 'index' page.
[ { "docid": "1972b950e946fc98066e5d6aeef931c8", "score": "0.70939475", "text": "public function actionDelete($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\t\t$model->delete();\n\t\t// if AJAX request (triggered by deletion via index grid view), we should not redirect the browser\n\t\tif(!isset($_GET['aj...
[ { "docid": "e92d42a775193058275341fa35e61b9d", "score": "0.8027941", "text": "public function actionDelete()\n {\n $id = Yii::$app->request->get('id', 0);\n $this->findModel($id)->delete();\n \n return $this->redirect(['index']);\n }", "title": "" }, { "doci...
d8bb7fe72025affc2d6f6abe4c29a993
A basic feature test example.
[ { "docid": "8fbb7cbe7e12cd6d7ed38f8b5ce605aa", "score": "0.0", "text": "public function testProcessWithExistInputs()\n {\n\n $curr = \"USD\";\n $products = [\"T-shirt\",\"T-shirt\",\"Shoes\",\"Jacket\"];\n $currObject = new CurrencyService();\n $subTotal=0.00;$taxes=0.00;$...
[ { "docid": "597b9e62da897a1296a3a7ff4b51ff92", "score": "0.754761", "text": "public function testBasicExample()\n {\n\n }", "title": "" }, { "docid": "8884558ce299cb0d10781a516c7769b1", "score": "0.7023433", "text": "public function testBasicExample()\n {\n //$this->v...
ac03f7a8dd56d7ac570214dad44ca080
Load Categories by ID
[ { "docid": "b337b18833f270a6b7cdc9606e01891e", "score": "0.0", "text": "public function get_categories_by_ids($ids) {\n $categories = [];\n foreach ($this->load_data_from_scoutnet([], ['categories' => ['uid' => $ids]]) as $record) {\n if ($record['type'] === 'categorie') {\n ...
[ { "docid": "72bccfa95d525beae18df53009b79acc", "score": "0.7828144", "text": "public function getCategory($id);", "title": "" }, { "docid": "d918ad70c47a959446f494677f2c9d25", "score": "0.7802302", "text": "public function getCategoryById($id);", "title": "" }, { "docid":...
bda361e10bea8dcd5ae097f34b521b47
Fires off the asynchronous http request to run the cleanup routine in a background process. Two birds with one stone, if I'm lucky; no additional load time on the users end, and all the time in the world to complete.
[ { "docid": "915c7c0a7bae5e6d14f8023eb9c4f17f", "score": "0.0", "text": "function kstats_trigger_async( $url = '', $params = array(), $timeout = 10, $method = 'POST' ) {\r\n\r\n\tif ( empty( $url ) )\r\n\t\treturn FALSE;\r\n\r\n\tif ( ! empty( $params ) && is_array( $params ) ) {\r\n\r\n\t\tforeach ( $pa...
[ { "docid": "5c7c27513246a1f2015b649fe3a3bf12", "score": "0.58253074", "text": "function kstats_cleanup_handler() {\r\n\tglobal $blog_id;\r\n\r\n\t// If and when this function is tripped, we can't afford for it to abort halfway through.\r\n\tignore_user_abort( 1 );\r\n\tset_time_limit( 0 );\r\n\r\n\t$res...