query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
2f63d46cf1336b1b24428e68a0e2dfec
$guzzle = new Client();
[ { "docid": "762282077e4b83914cd5d60bd929b26f", "score": "0.0", "text": "public static function getDocContent()\n {\n //$response = $guzzle->get('https://www.reg.ru/support/help/api2');\n //$html = $response->getBody()->getContents();\n //file_put_contents('test.html', $html);\n ...
[ { "docid": "51993e089141e7c55d88f39027c1c77a", "score": "0.82196033", "text": "public function __construct()\n {\n $this->guzzle = new Guzzle();\n }", "title": "" }, { "docid": "9e9a42f9f9bd7d5747e7e611e1f444ba", "score": "0.79109144", "text": "function GuzzleTester()\n{...
8de458809c26fb94acbbfbb8623c2ecd
Send transactional email to recipient
[ { "docid": "1a2667b210b5aa85faf2d2fa912eaf96", "score": "0.0", "text": "public function sendTransactional($templateId, $sender, $email, $name, $vars=array(), $storeId=null)\n {\n $this->setSentSuccess(false);\n if (($storeId === null) && $this->getDesignConfig()->getStore()) {\n ...
[ { "docid": "940d050d1d523cbd484192f562f4d706", "score": "0.7150296", "text": "protected function _sendTransactional()\n {\n /* @var $options Varien_Object */\n $options = $this->_emailOptions;\n /* @var $mailTemplate Mage_Core_Model_Email_Template */\n $mailTemplate = $thi...
b55262cccc84d1d8df4b4c3b34eb1943
Returns which default modules to use.
[ { "docid": "08ffd8c7534f8f40a65b7ac918656f11", "score": "0.0", "text": "public function getDefinition($template)\n {\n $image = ['mod-image', __('Image', 'simrishamn')];\n $slider = ['mod-slider', __('Slider', 'simrishamn')];\n $teaser = ['mod-colored-index', __('Colored Index', ...
[ { "docid": "dafa10098d602b45296a0a73ddd6917d", "score": "0.7151721", "text": "public function getDefaultModule()\n {\n reset($this->modules);\n\n return key($this->modules);\n }", "title": "" }, { "docid": "0df5c44cf9157e5d900b9af360220597", "score": "0.6700116", ...
9fd38a7ccaf1de9cdd6fba8af27c549b
Delete all by Product
[ { "docid": "607b5a88ac53ad82588bf5f68865cbab", "score": "0.0", "text": "public function deleteByCategory($id)\n {\n $qb = $this->createQueryBuilder();\n\n $query = $qb\n ->delete()\n ->where('category_id = :category')\n ->getQuery()\n ;\n\n ...
[ { "docid": "31108bdff2342640d544e0548ce41622", "score": "0.764875", "text": "public function deleteAll(){\n $product = Product::findorfail()->delete();\n\n return response()->json([\n 'status' => true,\n 'success' => 'Multiple Products Deleted Successfully!'\n ...
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "2f20c620946768b514ff069ac56934b1", "score": "0.0", "text": "public function edit(Saude $saude, $id)\n { $this->authorize('saudes_edit');\n $consultors = Consultor::all();\n $seguradora = Seguradora::all();\n $saude = Saude::findOrFail($id);\n\n\n return view('...
[ { "docid": "eaff1ff5ad75e879908bb065beeea534", "score": "0.78929687", "text": "public function edit(Resource $resource)\n {\n return view('actions.resource.edit', compact('resource'));\n }", "title": "" }, { "docid": "f3bc4ff0e0f2cc54bf914d77670e405e", "score": "0.78108525",...
a25f01a4c31011d9664ef2e354a726ac
Returns the response body as string
[ { "docid": "41b78ada13a14b1fab60a32e4a5de6c7", "score": "0.0", "text": "public function json(): array\n {\n return (array) json_decode($this->response->getBody(), true);\n }", "title": "" } ]
[ { "docid": "52b741b056025f6d6855993d3cfcc0f3", "score": "0.8493357", "text": "function body(): string\n {\n return (string) $this->response->getBody();\n }", "title": "" }, { "docid": "109a2cbc9f957071dc9e490c4731e189", "score": "0.82650125", "text": "protected function ...
a51b9cb077edd5add1d943ff389f0614
Create request for operation 'getAnOrder'
[ { "docid": "69c38695771e4542858613e31908264d", "score": "0.5527629", "text": "protected function getAnOrderRequest(\n string $purchaseOrderId,\n ?string $productInfo = 'false',\n ?string $replacementInfo = 'false',\n ): Request {\n $contentType = self::contentTypes['getAnO...
[ { "docid": "2718e9d94a5f74dcf4c05b6fc6c4c2aa", "score": "0.7159164", "text": "public function request()\n {\n return new GuzzleHttp\\Psr7\\Request(\n 'GET',\n 'Persons/'.$this->personId.'/Orders/'.$this->orderId\n );\n }", "title": "" }, { "docid": "d8a6...
7d8e6f26164d19f88623a6d08751ecab
test successful get models
[ { "docid": "ad9caca8fafc40f358da410a9f9aafd5", "score": "0.83635664", "text": "public function test_get_models()\n {\n $response = $this->get('/api/models', $this->defaultHeaders);\n\n $response->assertStatus(200);\n }", "title": "" } ]
[ { "docid": "dc1252f7c0e78251b0f061ec5192c1ab", "score": "0.67341083", "text": "public function testGet()\n {\n\n $API = new API();\n $ProviderAPI = new ProviderAPI();\n\n // Get whatever first replied responsed from server, I don't care...\n $this->mockGetListRespo...
74e559e1833426a71dfd7104f3da4459
Get the last response
[ { "docid": "ac163f1182a45cad60036e1d9d0320d1", "score": "0.8446258", "text": "public function getLastResponse()\n {\n return $this->__getLastResponse();\n }", "title": "" } ]
[ { "docid": "61d059dea27a6cd2b3ec27f988e3a0dd", "score": "0.8972521", "text": "public function getLastResponse();", "title": "" }, { "docid": "38173ea94083ee2a987b7decad24e727", "score": "0.8838057", "text": "public function getLastResponse(){\n\t\treturn $this->lastResponse;\n\t}", ...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "7eb2e5d16ba1d69aebbe160899d09951", "score": "0.0", "text": "public function store()\n\t{\n\t\t\n\n\n\n\t\t$post = new Post;\n\n\t\t$post->title=$_POST['titre'];\n\t\t$post->abstract=$_POST['abstract'];\n\t\t$post->content=$_POST['content'];\n\n\n\t\tif (Input::hasFile('photo'))\n\t\t{\n /...
[ { "docid": "efa639da1b8f6cd79b8705d95edb8349", "score": "0.68727493", "text": "public function store(Request $request, storage $model)\n {\n \n Storage::create($request->all());\n\n return redirect()->route('storage.index')->withStatus(__('storage successfully created.'));\n }...
c817b04ee2975c71b204cb660cdebaa3
\brief get assigned variable
[ { "docid": "6e7618188ed1662cfa480d99dcc8ea65", "score": "0.0", "text": "public function getTemplateVars($var)\n {\n return $this->get_template_vars($var);\n }", "title": "" } ]
[ { "docid": "4f289ee41083abe19969ed1e4fa85046", "score": "0.7314918", "text": "public function getVariable()\n\t\t{\n\t\treturn $this->varible;\n\t\t}", "title": "" }, { "docid": "043eeba9ad06236beb37add6867cab7c", "score": "0.7058957", "text": "public function getVariable()\n\t{\n\t\...
675ef1ac2e46f4595932e95588bbd806
Initializes the DbCache component. This method will initialize the [[db]] property to make sure it refers to a valid DB connection.
[ { "docid": "7950e8825ef2ae5bc2878685585c86f5", "score": "0.0", "text": "public function init()\n\t{\n\t\tparent::init();\n\t\tif (is_string($this->db)) {\n\t\t\t$this->db = Yii::$app->getComponent($this->db);\n\t\t\tif (!$this->db instanceof Connection) {\n\t\t\t\tthrow new InvalidConfigException('The \...
[ { "docid": "dba0480fbab4222678931b683fa5f445", "score": "0.8029269", "text": "public function init()\n {\n parent::init();\n $this->db = Instance::ensure($this->db, Connection::className());\n if ($this->cache !== null) {\n $this->cache = Instance::ensure($this->cache,...
9acb221974053a053e8e5b89b9d1371a
Parses headers if necessary. Decodes the status code and reasonphrase. Parses and normalizes header names + values.
[ { "docid": "8656be7c2cd2f7451e21f455d2f8770e", "score": "0.66335803", "text": "protected function _parseHeaders($headers)\n {\n foreach ($headers as $key => $value) {\n if (substr($value, 0, 5) === 'HTTP/') {\n preg_match('/HTTP\\/([\\d.]+) ([0-9]+)(.*)/i', $value, $m...
[ { "docid": "54a4b6df5a44bfa56e6a5e43ceb2f9d7", "score": "0.74444973", "text": "private function _parseHeaders($headers) {\n\t\t$headers = explode(\"\\r\\n\", $headers);\n\n\t\t// Pull off the HTTP status\n\t\t$status = array_shift($headers);\n\t\tlist($version, $status_code, $status) = explode(' ', $sta...
9557808bbf3845bd9f435555ec904bd3
Get invited user's email by token
[ { "docid": "5d1cc59ea5231a0dd12a706edc25d8c2", "score": "0.6404144", "text": "public function actionCheckInvitationToken($token)\n {\n $invitation = InvitationResource::findByToken($token);\n if (!$invitation) {\n return $this->validationError('Invitation token is invalid, ex...
[ { "docid": "64646989bd3a63a42dc7e41c8b25c9ed", "score": "0.70831305", "text": "function getEmail($token) {\n $sqlQuery = \"SELECT * FROM forgot_password_token WHERE token = :token\";\n $params = array(':token' => $token);\n $result = $this->DB->executeQuery($sqlQuery, $params, \"sel...
082134e277eb41579fc8bc9bfd43d259
/ Abstracted to get the database fields and declare them
[ { "docid": "b9e5c05583d728f44273635ebd856434", "score": "0.6488629", "text": "function __construct() {\n\n global $database;\n\n /* Setup the query to get the field names */\n $sql = \"SELECT * FROM \" . static::$table_name . \" LIMIT 1\";\n /* Run the query */\n $resu...
[ { "docid": "8e535c6d137647f008e28a96b74f5a46", "score": "0.74319947", "text": "protected function initFieldNames()\n {\n//This should be implemented in child classes to set the list of fields retrieved from the database\n }", "title": "" }, { "docid": "0bd9913ceafb7869674500e39c678c3c"...
d53d60a09b0ae462d9b0a07ce7d5a9c4
get cached value according given key.
[ { "docid": "45ea68e89158fd4d599bfe18d342d5d5", "score": "0.7013244", "text": "abstract public function getValue(string $key);", "title": "" } ]
[ { "docid": "9c4c48d5c37b54672e64ddd37d3afbb8", "score": "0.8126723", "text": "function get($cacheId, $key);", "title": "" }, { "docid": "c3ac302fe0fc07873cd1a75f92c3ae14", "score": "0.7954019", "text": "function cache_get($key) {\n\tglobal $Memoization;\n\treturn $Memoization->get($k...
d03b388b5c2bcd743860d5a3096e1c5d
Execute the console command.
[ { "docid": "d5dff9e7384cd54f064e9a72b28c919b", "score": "0.0", "text": "public function handle()\n {\n $force = $this->option('force', false);\n if ($force) {\n $this->error(\"Force mode active.\");\n }\n $current_version = $this->_getCurrentAdminerVersion();\n ...
[ { "docid": "3286e942a6a81bd5076702116b0dc09f", "score": "0.67814165", "text": "public function handle()\n {\n $arguments = $this->argument();\n $options = $this->option();\n\n $this->writeRepository($arguments, $options);\n\n $this->composer->dumpAutoloads();\n }", ...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "d3175ffb79c2165b3c36051acad5bdfd", "score": "0.0", "text": "public function update($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "3e3a565a181db6f795f079d1dfb01f75", "score": "0.7099585", "text": "public function update(Resource $resource, $id)\n {\n //\n }", "title": "" }, { "docid": "bde449baf550552e043ec18452e05f5c", "score": "0.69665116", "text": "function update($resource, $content)...
a0cb979b02112cc9387e7feb0aed80b9
Verify if the provided $key exists on the data stack
[ { "docid": "b18443ff4fccbfba6879b4e1bc49a3af", "score": "0.0", "text": "public function __isset($key)\n {\n return $this->offsetExists($key);\n }", "title": "" } ]
[ { "docid": "97c4c4c85f8652ea1aae36da8768f88b", "score": "0.78203076", "text": "public function keyExists($key);", "title": "" }, { "docid": "97c4c4c85f8652ea1aae36da8768f88b", "score": "0.78203076", "text": "public function keyExists($key);", "title": "" }, { "docid": "db...
3b8fa187f0dc25969f957907d5e9e0ab
close git file handles
[ { "docid": "c47a264e5bc424d307b1bfd1f683cd92", "score": "0.88130265", "text": "function closeGitFileHandles(){\n\t\t if($this->gitFileHandles != false){\n\t\t\t\t$gitFileHandles = $this->gitFileHandles;\n\t\t\t\tforeach($gitFileHandles as $gitFileNumber => $gitFileHandle){\n\t\t\t\t\t fclose($gitFileHa...
[ { "docid": "03cffc21b4ef7acbfe0a6b4f097febac", "score": "0.65891737", "text": "protected function closeFile() {}", "title": "" }, { "docid": "a340ac431e6217132d283f2edc0e90bb", "score": "0.6578355", "text": "public function close()\n\t{\n\t\tif ($this->fileHandle)\n\t\t{\n\t\t\tfclos...
6249dd7caee85ea1c5fc8c56f148df50
Gets the transparent color of this image
[ { "docid": "68c787dd7b2e8fc7d9cbc1e7e8bc0f1b", "score": "0.82758296", "text": "public function getTransparentColor();", "title": "" } ]
[ { "docid": "89fe74eb5329a9555b2474a3ebcd0abf", "score": "0.76798975", "text": "public function getImageTransparent() {\r\n return $this->imageTransparent;\r\n }", "title": "" }, { "docid": "ae7a308e5d797b63aac38d7cfc0f6a67", "score": "0.7579252", "text": "public function ge...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "ce79bc03286a0039ad2282a6c06bd19a", "score": "0.0", "text": "public function update(Request $request, $id)\n {\n $product= \\App\\Product::find($id);\n\n $request->validate([\n 'name' => 'required|max:255|unique:products,name,'.$product->id,\n 'descripti...
[ { "docid": "b253a586f54d8fcd444353d114e8da96", "score": "0.76002145", "text": "public function update(IResource $resource)\r\n {\r\n }", "title": "" }, { "docid": "1e58026b8952df10026ace5fc59fe274", "score": "0.7425105", "text": "public function updateShopifyResource() {\n ...
47288aa4f786776046fa6da62483e7f9
Load row values from recordset
[ { "docid": "5cdda8102421edf8e3f012abe2851333", "score": "0.6666917", "text": "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->jk_id->setDbValue($rs->fields('jk_id'));\n\t\t$this->jk_...
[ { "docid": "7f8f52d5cfe5093e20e24422f07c3c19", "score": "0.72425157", "text": "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\t$this->idtools->setDbValue($r...
39f28296c86dd9e61cc7cde5552cd131
/ Process Save Form Single Attribute
[ { "docid": "4261b1b6b888fe55733aec08f43e7f84", "score": "0.0", "text": "public function processPut($workflowUpdate=false)\n {\n $this->setForm();\n \n if($this->form)\n {\n $this->form->{\\Input::get('name')} = \\Input::get('value') == \"\" ? null : \\Input::get...
[ { "docid": "d603c112dd3b60748a2c205211c1d6a6", "score": "0.7025262", "text": "function save_object()\n {\n if((isset($_POST['SubObjectFormSubmitted'])) && !preg_match(\"/freeze/\", $this->FAIstate)){\n foreach($this->attributes as $attrs){\n if($this->acl_is_writeable($attrs)){\n ...
ffaa7b98865840da23cd4a86ad3453ea
S3 legacy useast1 endpoint used for valid regions unless option is explicitly set to 'regional'
[ { "docid": "147e0a0e5f77c63157e60a4e7e948781", "score": "0.58405", "text": "private function isS3LegacyEndpointUsed($service, $region, $options)\n {\n return $service === 's3'\n && $region === 'us-east-1'\n && (empty($options['s3_us_east_1_regional_endpoint'])\n ...
[ { "docid": "56c9a33549b056262a7e5d4aa46d9ece", "score": "0.65378326", "text": "public function getS3UsEast1RegionalEndpoints();", "title": "" }, { "docid": "4405f46c32b88d0b675b0d029735ab90", "score": "0.60334355", "text": "public function region(string $region): S3ExternalAnalyticsL...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "4bedc215b9b1cccf6d24f0a5fe0be726", "score": "0.0", "text": "public function show(Order $order)\n\t{\n $order->load('products', 'products.images');\n\t\treturn view('orders.show', compact('order'));\n\t}", "title": "" } ]
[ { "docid": "1b84960e1b92d293ded93b3711f4a5bb", "score": "0.8233718", "text": "public function show(Resource $resource)\n {\n // not available for now\n }", "title": "" }, { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(R...
5b03ea0ac0ad3297d43cc3e6c888f2c5
This function fetches the CAP file from a URL.
[ { "docid": "46de2b5333a59157097ce2ae3b43222d", "score": "0.7499207", "text": "private function fetch($url) {\n #fetch the file\n return file_get_contents($url);\n }", "title": "" } ]
[ { "docid": "353b5b5615ad9375a63ce51b82768536", "score": "0.72528505", "text": "function loadFile($url) {\n\t\t\t $ch = curl_init();\n\n\t\t\t curl_setopt($ch, CURLOPT_HEADER, 0);\n\t\t\t curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\t\t\t curl_setopt($ch, CURLOPT_URL, $url);\n\n\t\t\t $d...
1b39e02288f33f806d95ffad0bcd4534
Seed the application's database.
[ { "docid": "26b11872c19cb55067c71edc764c316d", "score": "0.0", "text": "public function run()\n {\n // $this->call(PembelianTableSeeder::class);\n Model::unguard();\n\n $this->call(PenjualTableSeeder::class);\n $this->call(TokoTableSeeder::class);\n\n $this->call(Pe...
[ { "docid": "2d25564bcd887770f1d18e0a18ad8e56", "score": "0.79171", "text": "protected function seedDatabase()\n {\n // ...\n }", "title": "" }, { "docid": "fd7776f672f19c55bc854ee043aa0f77", "score": "0.7882304", "text": "protected function setUpDatabase()\n {\n ...
c9a3292fb718c69f01dba200a60e9ade
Returns the test dataset.
[ { "docid": "6f0520ba1b6e204c88ccd84b280ddaaa", "score": "0.6099677", "text": "protected function getDataSet()\n\t{\n\t\treturn new Shop_DbUnit_ArrayDataSet(array(\n\t\t\t'xe_shop_categories' => array(\n\t\t\t\tarray('category_srl' => 1000, 'module_srl' => 1001, 'title' => 'Dummy category 1000', 'parent_...
[ { "docid": "498b5f50b32c968f6df98ded31ed8d21", "score": "0.8083949", "text": "protected function getDataSet()\n {\n $testCase = $this->getName();\n $testFile = str_replace('.php', \"_$testCase.yml\", __FILE__);\n if (file_exists($testFile)) {\n return $this->loadRelat...
0eb60d71263106317cb4049337d9509f
This test will cover the error handling of the curl adapter
[ { "docid": "dadec55b9e6ac3fd1c2e060fd2e495d0", "score": "0.7166525", "text": "function testHostNotFound() {\n \n $curlAdapter = new CurlAdapter();\n \n $result = $curlAdapter->sendPost('https://abc.heidelpay.de/');\n \n \n \n $this->assertTrue(is_a...
[ { "docid": "4990db4d36343f118d83704bc1303b72", "score": "0.7579392", "text": "public function testCurlError()\n {\n $expectedBody = $this->getExpectedBody(\n [\n ['SKU' => 'test123']\n ],\n []\n );\n\n $this->mockEndpoint();\n ...
1d455ca8a0df0fbe12e752bf01f3dab4
Updates an existing CauKiemtra model. If update is successful, the browser will be redirected to the 'view' page.
[ { "docid": "c9fa4b5b924289d49dd9713ed7570ee6", "score": "0.0", "text": "public function actionUpdate($id) {\n $model = $this->findModel($id);\n $file_exist = $model->file;\n $file_exist2 = $model->hinhanh;\n\n if ($model->load(Yii::$app->request->post())) {\n $file...
[ { "docid": "137efb84b01e45fa77c0133490fc63ff", "score": "0.7074291", "text": "public function actionUpdate()\n\t{\n\t\t$model=$this->loadModel();\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['mov_extrato']))\n\t\...
7e509423c6eaf766e934040a6dda25a7
Uvecavanje polja za 1 jedinicu
[ { "docid": "ccf0e89d32a2042e9a86226363d074af", "score": "0.0", "text": "public function incrementField($table,$field,$kveri)\r\n {\r\n $sql = \"UPDATE `{$table}` SET `{$field}`= {$field} + 1 WHERE 1 {$kveri}\";\r\n $all = $this->conn->executeQuery($sql);\r\n if ($all){\r\n ...
[ { "docid": "d0ae5cb960b257efe4545a096b679849", "score": "0.6060701", "text": "public function izracunajPlatu(){\n if($this->brsati<40){\n return $this->zarada*0.8;\n }\n if($this->brsati>40){\n return $this->zarada*1.3;\n }\n return $this->zarada;\n }", "title": "" ...
20aedf6de8b8cf069ca87070fd6e4ee4
Adds a JOIN clause to the query using the PageRelatedByid relation
[ { "docid": "11a1724e8e38955a6b4f8a76fc6e2d43", "score": "0.6038807", "text": "public function joinPageRelatedByid($relationAlias = null, $joinType = Criteria::LEFT_JOIN)\n {\n $tableMap = $this->getTableMap();\n $relationMap = $tableMap->getRelation('PageRelatedByid');\n\n // cre...
[ { "docid": "a8a835d90f8b8bddbc6a5d95b31eb490", "score": "0.60950625", "text": "public function usePageRelatedByidQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN)\n {\n return $this\n ->joinPageRelatedByid($relationAlias, $joinType)\n ->useQuery($relationAlias...
516ab75d500d17c5419e3a1a8251b4bc
This is the main function that execute the parsing.
[ { "docid": "30d7997a27a4b47ded5653e7a9cfabd8", "score": "0.0", "text": "public function doImport(){\n // initialize zend parser\n try{\n $oZendFeed = Zend_Feed::import($this->requestUrl);\n }catch(Exception $oException){\n throw new AMI_DataImportException(\n ...
[ { "docid": "41be9f83a2e16eea96a3666c9611cd0d", "score": "0.72434634", "text": "function run()\r\n {\r\n if (isset($this->error)) {\r\n $this->_printUsage($this->error);\r\n } else {\r\n if (isset($this->dir)) {\r\n $this->_parseDir();\r\n ...
108976c3cc1b38b10688e8c4f827fccf
Creates an instance of Comparison, with the given arguments. First argument is considered the left expression and the second is the right expression. When converted to string, it will generated a . Example: [php] // u.id where($q>expr()>lessEqual('u.id', '?1'));
[ { "docid": "60f2aff29e3a5c97a245ecb908c3e98b", "score": "0.62106293", "text": "public function lessEqual($x, $y)\n {\n return new Comparison($x, Comparison::LTE, $y);\n }", "title": "" } ]
[ { "docid": "d84aea8b6b8ec22e4b8ec69a6fd4bab4", "score": "0.6583625", "text": "public function lessThanEquals($expression);", "title": "" }, { "docid": "2836b5300509a245f9b4262a3546d415", "score": "0.6146516", "text": "public function lessThanOrEqual()\n {\n return $this->bu...
ad282ad0cb8e499e668ebd1430ed62d0
Turn this item object into a generic array
[ { "docid": "e7fb0d8ed1b5a93535295b7cef3825af", "score": "0.0", "text": "public function transform($customer)\n {\n $lastName = issetRetrun($customer, 'last_name') ?: '';\n $jobAddress = $this->getJobAddress($customer);\n $customerAddress = $this->getCustomerAddress($customer);\n\...
[ { "docid": "c35dd66e567a5aec7f9be59c6799ebe2", "score": "0.733577", "text": "public function toArray()\n {\n return $this->item;\n }", "title": "" }, { "docid": "ed24bc77dfb4c354ef2fabc75a6dc13f", "score": "0.72740287", "text": "public function toArray()\n\t{\n\t\t$items...
0e09942d6c346a9b4d43f882202025fb
this down() migration is autogenerated, please modify it to your needs
[ { "docid": "74d26eb9849600aee43803ac20ac56a2", "score": "0.0", "text": "public function down(Schema $schema): void\n {\n $this->addSql('DROP TABLE fichiers');\n $this->addSql('ALTER TABLE produits CHANGE photo photo VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicod...
[ { "docid": "e54dad8abc5dfd9ee11ad5cb884d70c8", "score": "0.75539154", "text": "public function down(){\n\t\t/*Drop the Users table in the down function*/\n\t\t$this->dbforge->drop_column('pages', 'parent_id');\n\t}", "title": "" }, { "docid": "3844974f29f564ea9d9b35fba20733a0", "score": ...
b38e3de0cf130cfe3f0d5978497e658c
Permanently delete Education from storage.
[ { "docid": "f5fce75db7b7a2a99bcff509b99f5ca2", "score": "0.6196927", "text": "public function perma_del($id)\n {\n if (! Gate::allows('education_delete')) {\n return abort(401);\n }\n $education = Education::onlyTrashed()->findOrFail($id);\n $education->forceDel...
[ { "docid": "c8759f588d6de4815aad217280a39aa7", "score": "0.69943315", "text": "public function deleteAll(){\n DwEducation::query()->delete();\n }", "title": "" }, { "docid": "add51c26adec924e7fb72a855abb4ca0", "score": "0.6798883", "text": "public function destroy(Education...
f2aff5dcab36ee1123e34ae4b39442ab
/ Function: Get [String] user has a webmaster role
[ { "docid": "d31ad3b28be2184701b2f0297b11639a", "score": "0.0", "text": "function custom_list_user_administrator() {\n $list_user = custom_array_list_user_administrator();\n if (!empty($list_user[0])) {\n // dsm(join('+', $list_user));\n return join('+', $list_user);\n }\n else {\n return...
[ { "docid": "9262ca00ff2dc61fabe1fe3b8adb8573", "score": "0.6908812", "text": "public function is_admin()\n {\n \t$user_data = $this->user_model->get_user_data_by_id();\n \t$user_role = $this->db->get_where('user_roles', array('id' => $user_data['role']))->row();\n \treturn $user_role->manage...
b635910a26740ef5d8e689b61d3b1a0b
Retrieves a list of models based on the current search/filter conditions.
[ { "docid": "9e0a7420707a6308d25c6a031af880a7", "score": "0.0", "text": "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n...
[ { "docid": "6c1a920efd4686b6996345830e2c6903", "score": "0.6890721", "text": "public function getModels()\r\n {\r\n $query = $this->getQuery();\r\n $models = $query->all();\r\n return $models;\r\n }", "title": "" }, { "docid": "5c5084da01a3d18e3878dff9220c3a43", ...
fca8d4dca22723615c4142bbc217b0d5
/ Takes in an integervalue recommendation level for a TA applicant and returns the corresponding text for that recommendation level
[ { "docid": "5c488378601058c5204b057a354027eb", "score": "0.6203402", "text": "function get_recommendation( $value )\n{\n if ($value == 1)\n {\n return \"Possible\";\n }\n else if ($value == 2)\n {\n return \"Recommended\";\n }\n else if ($value == 3)\n {\n re...
[ { "docid": "cfb5c2bac99a77774101b911fed54bd5", "score": "0.6423506", "text": "function hitchability2textual($rating=false) {\n\n\tif($rating == 1) return _(\"Very good\");\n\telseif($rating == 2) return _(\"Good\");\n\telseif($rating == 3) return _(\"Average\");\n\telseif($rating == 4) return _(\"Bad\")...
5f1fce81e74cefb856d872a3003f3519
/ acf_delete_metadata This function will delete a value from the DB
[ { "docid": "7f1d256bf0314bcb4666f9932b7dec51", "score": "0.69084793", "text": "function acf_delete_metadata( $post_id = 0, $name = '', $hidden = false ) {\n\t\n\t// vars\n\t$return = false;\n\t$prefix = $hidden ? '_' : '';\n\t\n\t\n\t// get post_id info\n\t$info = acf_get_post_id_info($post_id);\n\t\n\t...
[ { "docid": "a12ad8faebe157c9a07bb5968530cb93", "score": "0.7497628", "text": "function delete_value($post_id, $meta_key, $field)\n {\n }", "title": "" }, { "docid": "2f7e43ace96d133565648cadfa17c1cb", "score": "0.7409799", "text": "function acf_delete_metadata($post_id = 0, $na...
783d73c8674c5e71e7ead9fa78c55845
Makes a copy of this object that will be inserted as a new row in table when saved. It creates a new object filling in the simple attributes, but skipping any primary keys that are defined for the table. If desired, this method can also make copies of all associated (fkey referrers) objects.
[ { "docid": "b8eea0c4b0da73e1595c57bc6fcf723d", "score": "0.0", "text": "public function copy($deepCopy = false)\n {\n // we use get_class(), because this might be a subclass\n $clazz = get_class($this);\n $copyObj = new $clazz();\n $this->copyInto($copyObj, $deepCopy);\n\n...
[ { "docid": "b3b4f3eed79b0445e06a99238301a4f8", "score": "0.6941202", "text": "public function copy()\n {\n\t\t$objCopy = clone $this;\n\t\t$objCopy->__blnRestored = false;\n\n\t\t// Make sure all valid data is dirty so it will be saved\n\t\tforeach ($this->__blnValid as $key=>$val) {\n\t\t\t$objCopy-...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "f09c1dfb4964fd701730c9027e33cefa", "score": "0.0", "text": "public function show(Clothe $clothe)\n {\n return response()->json($clothe,200);\n }", "title": "" } ]
[ { "docid": "f379d94fc578937200b5c52c49012541", "score": "0.8565385", "text": "public function display($resource)\t\r\r\n\t{\r\r\n\t\t$this->sm->display($resource);\r\r\n\t}", "title": "" }, { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function ...
aa7e39565cb56b307d4bfa6573de1807
/ / Function for Find Highest saleing Product /
[ { "docid": "67d15bf696bd6117ac83a7f4fd7312c0", "score": "0.7550604", "text": "function find_higest_saleing_product($limit){\n global $db;\n $sql = \"SELECT p.name, COUNT(s.product_id) AS totalSold, SUM(s.qty) AS totalQty\";\n $sql .= \" FROM sales s\";\n $sql .= \" LEFT JOIN products p ON p.id ...
[ { "docid": "680797b39676f53d228f612c5e9deb9d", "score": "0.7552066", "text": "function find_higest_saleing_product($limit){\n global $db;\n $sql = \"SELECT p.name, COUNT(s.product_id) AS totalSold, SUM(s.qty) AS totalQty\";\n $sql .= \" FROM sales s\";\n $sql .= \" LEFT JOIN producto p ON p.id ...
6774fd6ca855ea4975ecbf7bbd284e06
introduce the FAQ part
[ { "docid": "cd5c6c429387831bc11cf79263a04714", "score": "0.6319906", "text": "public function intro(){\n\t\t$html = \"\";\n\t\t$html.= '\n\t\t<div class=\"row description\">\n\t\t\t<div class=\"row\">\n\t\t\t\t<div class=\"small-12 large-12 columns\">\n\t\t\t\t\t<h1>FAQ</h1>\n\t\t\t\t\t<hr/>\n\t\t\t\t\t...
[ { "docid": "7a4bb81b5b4274a3e001283192e3d33b", "score": "0.73806113", "text": "public function faq()\n {\n $blogs = $this->common_model->getRecords(TABLES::$MST_BLOG_POSTS,'',array('status'=>'1'),'post_id desc','3');\n $this->template->set('blogs', $blogs);\n $this->template->set...
092501551a087a03be3941ddc24d98ed
Get the BluePay post response
[ { "docid": "33c989a96892ee9141b151fddebbc0cd", "score": "0.0", "text": "public function getResponse($raw = false)\n\t{\n\t\tif ($raw)\n\t\t{\n\t\t\treturn $this->response;\n\t\t}\n\n\t\tparse_str($this->response, $array);\n\t\treturn $array;\n\t}", "title": "" } ]
[ { "docid": "e63ea1aefd236f6b7d980da1b6671aab", "score": "0.7482258", "text": "public function post()\n {\n curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, \"POST\");\n $this->response_body = curl_exec($this->curl);\n return $this->response_body;\n }", "title": "" }, { ...
f2cd5d22d6bff14eb20109bf881633cc
\\ endregion region ARRAY JSON ARRAY JSON\\ Guarda los alumnos en un solo array de elementos JSON. Recibe el array de Alummnos (Clase alumno) y lo fusiona con el array ya existente en el archivo para reguardarlo como un solo array con los elementos entrantes y los ya existentes
[ { "docid": "76372fc41988b92e89bcdeb2d61dd897", "score": "0.5759892", "text": "public static function GuardarArrayJSON($dirFile, $array)\n {\n if(file_exists($dirFile))\n {\n $arrayYaExistente = alumno::LeerArchivoArrayJSON($dirFile); //Tomo los alumnos ya existentes\n ...
[ { "docid": "60c882d96aa3f13902b8e8952c178e74", "score": "0.6545386", "text": "public static function leerFromJSON($path)\n {\n $retorno = array();\n $json = file_get_contents($path);\n $json_data = json_decode($json,true);\n //var_dump($json_data);\n foreach ($json_...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "324896da1e7066369a656d9921028154", "score": "0.0", "text": "public function show($id)\n {\n $employes=DB::table('employes')->select('employe_id','employes.matricule','employes.numero_sss','employes.id','employes.nom','employes.prenom','employes.password','employes.role','employes.civ...
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "754e1795026ca4c71e3959656a533ca3", "score": "0.77020115", "text": "private function _displayResource() {\n\t\t...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "2a46fdbfc8cb01983bb03691388f0169", "score": "0.0", "text": "public function create()\n {\n //\n }", "title": "" } ]
[ { "docid": "735e465640db5c659ac193ab8af1f08c", "score": "0.75648046", "text": "public function createAction ()\n\t{\n\t\t$this->view->form = $this->_form;\n\t}", "title": "" }, { "docid": "c22dae1333d29c28ed855dcb7f069232", "score": "0.749277", "text": "public function create()\n ...
767b88e96ad53a4fd0d743e9f9422b39
Add a period to the end of an article title unless it is a ".", "?", or "!"
[ { "docid": "6a6f678a3d004ee012e22dcc5671dddc", "score": "0.7553057", "text": "public static function addPeriod($articleTitle)\n\t{\n\t\t$len = strlen($articleTitle);\n\t\t$lastChar = substr($articleTitle, $len - 1, 1);\n\t\tif (($lastChar != \".\") && ($lastChar != \"?\") && ($lastChar != \"!\")) {\n\...
[ { "docid": "f70b4b6b46ba821f77522dbfcb37435b", "score": "0.60736257", "text": "function mon_plugin_the_title($title){\n //remplace et dans le titre\n $title = str_replace('et','&amp;', $title);\n //retourne le titre modifié\n return $title;\n }", "title": "" }, { "docid": "666...
93a6fe1f583639e06c09ea68dbf2ee03
Specifies the directory where drush will store backups.
[ { "docid": "4a81254baa0da46069d27a9918b03320", "score": "0.5724389", "text": "public function setBackupLocation(PhingFile $directory) {\n $this->createOption()\n ->setName('backup-location')\n ->addText($directory->getAbsolutePath());\n }", "title": "" } ]
[ { "docid": "76a096542bd706f2da483768c1dcee13", "score": "0.60043246", "text": "protected function setUploadDirectory()\n {\n $config = Config::getInstance();\n $this->dir = '../' . $config->get('upload_dir') . '/users/' . $this->user->get('directory');\n }", "title": "" }, { ...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "4bac3188558c3acab53dd8d5175c1d4e", "score": "0.0", "text": "public function show($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "d7820004a578ddc16d57dff08d715ef0", "score": "0.70187664", "text": "public function showResource()\n\t{\n\t\treturn view('resources.list')->with('resources', Resources::all());\n\t}", "title": "" }, { "docid": "069b1d099b7ea4aa5397d961e2ee62da", "score": "0.6752789", "text...
7b7f9ffceb68ec92c4d90b23b88322d0
end prepareUrl() Return curl information.
[ { "docid": "04f1980a5b9463f427c13b95d2cf6205", "score": "0.0", "text": "public static function v(string $type = 'version') : string|null\n {\n $info = curl_version();\n \n return array_key_exists($type, $info) ? $info[$type] : null;\n \n }", "title": "" } ]
[ { "docid": "15b05954188a546bd731b292cbe74c0e", "score": "0.7168305", "text": "protected function get_curl_info()\n {\n }", "title": "" }, { "docid": "216b412280efff21e51813e61894ec14", "score": "0.6863171", "text": "public function prepareUrl() {}", "title": "" },...
8d532b2dea704a9bdef510de0a9b9b94
TODO: Implement execute() method.
[ { "docid": "85a7672fae9efec6a196d4fc3bbb137e", "score": "0.0", "text": "public function execute(array $parameters = array())\n {\n try\n {\n #Use the initialized statement to execute:\n $this->getStatement()->execute($parameters);\n return $this;\n ...
[ { "docid": "1a004dbd62759904e8408505203a5782", "score": "0.87422246", "text": "public function execute () {}", "title": "" }, { "docid": "53e1c6b4284528b72c45a35aa8312fb8", "score": "0.8636612", "text": "public function execute() {}", "title": "" }, { "docid": "53e1c6b428...
87b823f331a432ea93e93261e153bd10
Init plugin options to white list our options
[ { "docid": "f361d86d288fa22358a26734dc7f0d6d", "score": "0.0", "text": "function ct_podcast_settings_init(){\n\tregister_setting( 'ct_podcast', 'ct_podcast_settings', 'ct_podcast_settings_validate' );\n}", "title": "" } ]
[ { "docid": "5e1e7724eb6ba57fafd8536842133270", "score": "0.8212031", "text": "protected function initOptions()\n\t{\n\t\n\t}", "title": "" }, { "docid": "0321829d08c18775c38fed77a5f1f26d", "score": "0.8131684", "text": "public function init()\n {\n $this->getPluginO...
58b6cf1f5b08692d88ab8710b17f2039
Set the common header information.
[ { "docid": "ba3456deba763329134c4963638c9df7", "score": "0.8239573", "text": "private function _setCommonHeader()\r\n {\r\n if (empty($this->_header)) {\r\n // Set version header.\r\n $this->_setHeader('MIME-Version', '1.0');\r\n\r\n // Set User Agent for mail ...
[ { "docid": "21c7f1d96322444e0beb205d3829c49a", "score": "0.7361771", "text": "public function setHeader()\n {\n ;\n }", "title": "" }, { "docid": "1c4611a051d958dd7f7fe1ca2b8ca794", "score": "0.72189265", "text": "protected function setHeader()\n {\n $headers =...
9b0701713a2da837188af6ecd6f8200a
1.8 Upgrades. a. Upgrade checkbox settings to radio button settings. a. Update form meta for new metabox settings.
[ { "docid": "16c00ebce3a00e5fae8c696f9bf92c3d", "score": "0.7444866", "text": "function give_v18_upgrades() {\n\t// Upgrade checkbox settings to radio button settings.\n\tgive_v18_upgrades_core_setting();\n}", "title": "" } ]
[ { "docid": "e2d817fa309b439c81f454b1b0121d51", "score": "0.6500074", "text": "function update_me_admin()\n {\n global $xoouserultra, $uultra_group;\n\n require_once(ABSPATH . 'wp-includes/pluggable.php');\n\n $user_id = $_POST['user_id'];\n\n //get user form\n $cus...
e4cf9747fa0ba12875cd293d410ade6d
Constructs a ne PhoneNumbers element
[ { "docid": "61ad5a92428cb7c3e04aa61a833c920e", "score": "0.0", "text": "public function __construct() {\n $this->entries = array();\n }", "title": "" } ]
[ { "docid": "e3a6c8ae482190635896e7900e82727a", "score": "0.62356263", "text": "function createPhoneNumber(array $digits): string {\n return sprintf(\"(%d%d%d) %d%d%d-%d%d%d%d\", ...$digits);\n}", "title": "" }, { "docid": "865e2aba370c97c52aa0611808072d09", "score": "0.6233007", "te...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "61b1a8b5fbb2ff6d7955d9ba5405a8c1", "score": "0.0", "text": "public function update(Request $request, $id)\n {\n $test = Test::find($id);\n return $test->update($request->all());\n }", "title": "" } ]
[ { "docid": "ae90a700efd6cf3cd7c51c1c4442503a", "score": "0.7658553", "text": "public function update(ResourceInterface $resource);", "title": "" }, { "docid": "d6a508508d13bb02f2a247e9bf196f78", "score": "0.71877676", "text": "function update ( $id, $resource ) {\r\n\r\n }", ...
29962c0d7707f3c658863b96defa74cc
Recommend index action(supplier admin)
[ { "docid": "adf3cb72f78b52febbd48c5c72391e10", "score": "0.8367385", "text": "public function actionRecommendAdminIndexSupplier()\n {\n $type = (int)Yii::$app->request->get('type', GoodsRecommend::RECOMMEND_GOODS_TYPE_CAROUSEL);\n if (!in_array($type, GoodsRecommendSupplier::$types)) {\...
[ { "docid": "d259910e44b1634fd8e3946aff3cb9bb", "score": "0.7042133", "text": "public function updateSupplierSearchIndex() {\n WP_CLI::success('Beginning Search index update on Suppliers.');\n\n $suppliers = $this->supplierRepository->findAll();\n\n WP_CLI::success(count($suppliers) ...
3b7b4d786819464da9f89d4a80dfd225
Add an external stylesheet that is needed Mostly used by plugins, when they need to have a specified stylesheet added to the page.
[ { "docid": "b5d70ddeac22d302542fad6a60e96e8d", "score": "0.0", "text": "public function addCss($cssName, $useCssPath = true)\n {\n $css = ($useCssPath === true ? $this->cssPath . $cssName : $cssName);\n\n if (!in_array($css, $this->externalCss)) {\n $this->externalCss[] = $cs...
[ { "docid": "480bf4884573d5a7498afa7606a6801e", "score": "0.7564229", "text": "static public function add_stylesheet() {\n\t\twp_register_style( 'jquery-ui', self::$protocol . self::$jQueryCssUrl );\n\t\twp_register_style( 'travelmap', self::$pluginPath . 'screen.css' );\n\t\twp_enqueue_style( 'jquery-ui...
735446f7b54b188a54a4c4f0b34646a9
/ Modify a user
[ { "docid": "ef4e0db1e18a81695b41b9a3511246b9", "score": "0.0", "text": "function addSem()\r\n{\r\n\r\n\t$semId = $_POST['semId'];\r\n$userId = $_POST['userId'];\r\n$attendance = $_POST['attendance'];\r\n$remarks = $_POST['remarks'];\r\n\t\t\r\n\t\t\r\n\t$images = uploadProductImage('fleImage', SRV_ROOT ...
[ { "docid": "171eff99d3f79cd5035d7f3c5b477b57", "score": "0.8296296", "text": "public function modifyUser($idUser){\r\n\t}", "title": "" }, { "docid": "f957f0d31a7970b37c7a9b700435a5dd", "score": "0.77956563", "text": "public function updateUser(\\PHPAuth\\Model\\User $user);", "t...
5e11252fa22507c7c76aab39623cfef8
Initialize the language class for translating strings.
[ { "docid": "aba02b4f4dac1903739682a37f13fe39", "score": "0.0", "text": "public function __construct($directory, $language = null)\n {\n if(!file_exists($directory))\n throw new \\Exception(\"Languages directory not found.\");\n\n $this->translations = null;\n\n $this->...
[ { "docid": "50336aea6c51f19c252b595fd8a553e6", "score": "0.76273364", "text": "function initTranslator()\n {\n $langSupported=array(\"de\"=>true,\"en\"=>true);\n include_once 'HTTP.php';\n define(\"LC_LANG\",HTTP::negotiateLanguage($langSupported,$this->cfg['i18n']['default']));\...
a5d8b6ef64e6b39186c085edd3cb578c
Return the number of vertices in the graph.
[ { "docid": "4d64e8125a89c557880fd20e49104e17", "score": "0.73249537", "text": "public function countAllVertices();", "title": "" } ]
[ { "docid": "4cbef8029fb965b85545b6c699ef6065", "score": "0.682634", "text": "function get_num_vertices($thefile){\n $content = file($thefile, FILE_IGNORE_NEW_LINES);\n return count($content);\n}", "title": "" }, { "docid": "31b4306b2657b303eb7d02a47ed61262", "score": "0.66949606", ...
03c661f5664214d3659bb15e7814ac3e
put your code here
[ { "docid": "f65208b33d15cd3c48024540e61a12eb", "score": "0.0", "text": "public function init() {\n \n //Charge entity\n $this->addElement('text', 'condition_type', array(\n 'label' => 'Vehicle condition',\n 'required' => true,\n ));\n \n ...
[ { "docid": "2b8f8c258221a7336b898b1eb6e48695", "score": "0.62954557", "text": "protected function run() {\n\t\t\n\t}", "title": "" }, { "docid": "657b97cd6a1d79b798c25b9f5cd4053d", "score": "0.5984761", "text": "public function run()\n\t{\n\t\t\n\t}", "title": "" }, { "do...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "d847f88b40caa21fb5d773eca43fa11f", "score": "0.0", "text": "public function index()\n {\n $offers = Offer::all();\n\n\n return view('offer.index')->with([\"offers\"=>$offers]);;\n }", "title": "" } ]
[ { "docid": "a2c82e645f33199ca3af4df01daa0da0", "score": "0.73454344", "text": "public function listAction()\n {\n $this->view->headTitle('Book Listing ','PREPEND');\n $this->view->books = $this->bookService->listService();\n }", "title": "" }, { "docid": "2ecb35785c4b9e88...
7d099626d0663378925ab5f75fb878e3
/ Primary Key Finder
[ { "docid": "96e5348681acdb9fa72425f4d5171a55", "score": "0.0", "text": "public function findById($id)\n {\n $sql=\"SELECT * FROM assinante WHERE id='$id' LIMIT 1\";\n return $this->getSelfObject($sql);\n }", "title": "" } ]
[ { "docid": "eb4196e17bab16a1cc2d8af869ca82c2", "score": "0.77222747", "text": "abstract public function getPrimaryKey();", "title": "" }, { "docid": "04f6e330e457bfd1ad498e98d656390c", "score": "0.7685921", "text": "abstract protected function getPrimaryKey();", "title": "" }, ...
f0e118454b9e81104130fb73fc0490a4
Checks to see if the user is adding users to their public draft
[ { "docid": "af93e65d906aad23e93f642fe78cd660", "score": "0.6866609", "text": "protected static function userIsAddingUsersToDraft($requestURI = null)\n {\n $addUsersToDraftUrl = RoutingUtil::buildUrl(Config::ROUTING_LOCATION, 'addUsersToDraft', ['draftName' => self::guessDraftName($requestURI)], Conf...
[ { "docid": "6ff582d0cbe2278f4dab965ee8a778f2", "score": "0.71099025", "text": "protected static function userIsSavingPublicDraft()\n {\n return (isset($_POST['saveAction']) && $_POST['saveAction'] === 'savePublicDraft');\n }", "title": "" }, { "docid": "d7a75ad8e55d702d734a937cc2a60ddf"...
ea78ca5fcc5cbd2a6703db7c0b093e4d
Gets the application environment $config=[ 'env'=>'dev', ...
[ { "docid": "c6e8c1d39ed1b25a2a1dd02bd0d10970", "score": "0.8018153", "text": "public static function getEnvironment()\n {\n global $config;\n return App::getConfig('env', $config);\n }", "title": "" } ]
[ { "docid": "0b201d83fedd2b20bd4bbc4d7bd5a4ae", "score": "0.808693", "text": "public static function GetConfigEnvironment ();", "title": "" }, { "docid": "15b5a63e4a56c84d89cf9e304b596153", "score": "0.7427339", "text": "function app_env(): string\n {\n return app()->environ...
c3336340d8e0a6a63895d3be0edd9d46
fungsi hapus data Mahasiswa
[ { "docid": "453c5ec8be515076b1ef05ddfa6c4dc2", "score": "0.0", "text": "public function deleteMahasiswa($id){\n $this->db->query(\"DELETE FROM $this->tabel WHERE id=:id\");\n $this->db->bind('id', $id);\n $this->db->execute();\n return $this->db->rowCount();\n }", "tit...
[ { "docid": "50fe8d188998dc38b04ce9489bbdb591", "score": "0.7734803", "text": "public function tampilDataGalang(){\n\t\t\n\t}", "title": "" }, { "docid": "1bedd228a15e59270f4252d62222361f", "score": "0.718863", "text": "public function daftarMahasiswa()\n {\n $this->load->mo...
e45e609e22a75ccfbd0ce1c71f8790b3
Codes a real value to binary format
[ { "docid": "a35cfa995dc0a340f414e6015f0c99c8", "score": "0.7485936", "text": "protected function realToBinary($val) {\n $bdata = self::typeBytes(\"2\", 3); // 2 is 0010, type indicator for reals\n return $bdata.strrev(pack(\"d\", (float)$val));\n }", "title": "" } ]
[ { "docid": "c2014b120cae2a8c38b6b99a5e1b0323", "score": "0.68076605", "text": "public function numToBinary($value) {\n $saved_object_count = $this->writtenObjectCount++;\n\n $val = \"\";\n if(intval($value) == $value && !is_float($value) && strpos($value,'.') === false) $val = $this->intToBinar...
22a63645d57a5624f5ce0386d22b7231
Get total lessons no set preview
[ { "docid": "b0d0b41ba321588dc35e25a83b83ffe6", "score": "0.61041045", "text": "public function get_total_no_preview_items( $total_preview_items = 0 ) {\n\t\tglobal $wpdb;\n\t\t$query = $wpdb->prepare( \"\n\t\t SELECT COUNT(ID)\n\t\t FROM {$wpdb->posts} p\n\t\t WHERE p.post_type = %s...
[ { "docid": "b41b3e4b820b7e84d0a002070e387a88", "score": "0.6739828", "text": "public function get_total_preview_items() {\n\t\t$query = $this->wpdb->prepare( \"\n\t\t SELECT COUNT(ID) FROM $this->tb_posts p\n\t\t INNER JOIN {$this->tb_postmeta} pm\n\t\t ON p.ID = pm.post_id\n\t\t ...
f18b865186576b596fb80e81aa505fed
Operation getTelephonyProvidersEdgesCertificateauthoritiesWithHttpInfo Get the list of certificate authorities.
[ { "docid": "a9056a1ffb2909ad014902c9ce786821", "score": "0.7511512", "text": "public function getTelephonyProvidersEdgesCertificateauthoritiesWithHttpInfo()\n {\n $returnType = '\\PureCloudPlatform\\Client\\V2\\Model\\CertificateAuthorityEntityListing';\n $request = $this->getTelephonyP...
[ { "docid": "146eb3751c2362ac9bcf0cede2f7005b", "score": "0.7530957", "text": "public function getTelephonyProvidersEdgesCertificateauthoritiesAsyncWithHttpInfo()\n {\n $returnType = '\\PureCloudPlatform\\Client\\V2\\Model\\CertificateAuthorityEntityListing';\n $request = $this->getTelep...
2ada0b7178d665fda90f9e8ace98151f
Function GetLinks() Description:Returns array of all the hyperlinks in the html provided Please note that this does not include hyperlinks in comments Each element contains following keys 'href' the url ( this can be relative url or full url and needs validation) 'title' titles for links( the title attribute ) 'text' the linked text/phrase
[ { "docid": "5ab89d92b3fb8142d78079e42cb8fa6a", "score": "0.8292203", "text": "function GetLinks(){\n\t\t//get page links\n\t\t$links = array();\n\t\t$elementList = $this->dom->getElementsByTagName('a');\n\t\tfor( $i=0; $i < $elementList->length; $i++ ){\n\t\t\t//eliminate javascript calls in hyperlinks ...
[ { "docid": "9e21efdb4ed25db18f7c4be5724915b7", "score": "0.8032423", "text": "public function getLinks($html);", "title": "" }, { "docid": "9c91756066df688abeb491bd35cca81e", "score": "0.78104204", "text": "public function getLinks();", "title": "" }, { "docid": "9c917560...
81cf3737c85b3db208203c7da6eaf7cc
Add Weather data from microcontroller to database
[ { "docid": "45799871d931b124d9e93c9a1936b347", "score": "0.5627673", "text": "public function postWeather($waterTemp, $airTemp, $humidity, $address){\n\t\t$this->waterTemp = $waterTemp;\n\t\t$this->airTemp = $airTemp;\n\t\t$this->humidity = $humidity;\n\t\t$this->address = $address;\n\t\t\n\t\t$query = ...
[ { "docid": "151550cd21c7f8affbafa6c0fbe888f1", "score": "0.6490342", "text": "public function run()\n {\n $data = array(\n array('name' => 'esp8266', 'created_at' => \\Carbon\\Carbon::now(), 'updated_at' => \\Carbon\\Carbon::now()),\n array('name' => '6l5528', 'created_at...
d7b02231a60df1b4f082d125ff7f5ce3
Fills all of the leafnode values of a nested array with the provided replacement value.
[ { "docid": "e29612e6d9827fc13ba671f63d8a3365", "score": "0.594356", "text": "public static function fillRecursive(array $data, $fill)\n {\n $result = [];\n foreach ($data as $key => $value) {\n $result[$key] = $fill;\n if (self::isAssociative($value)) {\n ...
[ { "docid": "dd28dc6bde13f556e448baa3fd998fc8", "score": "0.59711814", "text": "function array_merge_replace($array, $newValues)\n {\n foreach ($newValues as $key => $value) {\n if (is_array($value)) {\n if (!isset($array[$key])) {\n $array[$key] = a...
a0be0417ec9944f49ab7515685ff0291
Get a validator for an incoming registration request.
[ { "docid": "485536c92064148063257708752083d9", "score": "0.0", "text": "protected function validator(array $data)\n {\n return Validator::make($data, [\n 'name' => 'required|max:255',\n 'email' => 'required|email|max:255|unique:users',\n 'password' => 'required...
[ { "docid": "faeb05308c51cb3cd2ef8fce8fc613f8", "score": "0.719234", "text": "private function getValidator() : Validator\n {\n return new Validator($this->params);\n }", "title": "" }, { "docid": "687f56e3050d373972e4649698062c17", "score": "0.7048845", "text": "public f...
0b92a0e8d28cf01c556994108dbd7ef5
use hook $sections = apply_filters( 'ocean_blog_entry_meta', $sections );
[ { "docid": "55b2de94d298ddb5b4a38e9b8d512771", "score": "0.0", "text": "public static function add_like_to_meta()\n {\n\n\n ?>\n <li>\n\n </li>\n\n<?php\n\n\n return;\n }", "title": "" } ]
[ { "docid": "8b881d93209d2d16a21fc347e25190c2", "score": "0.66553825", "text": "function pmpro_events_tribe_events_remove_post_meta_section( $templates, $slug, $name ) {\r\n\t$r = array();\r\n\t$r = apply_filters( 'pmpro_events_tribe_events_page_modules', $r, $templates, $slug, $name );\r\n\treturn $r;\t...
5b0ac639944b298638ab65a1e8725065
Default constructor The constructor will set some properties. It populates the parameter array with urldecoded values for easyuse.
[ { "docid": "5258caee6b1f5df6b78a884fbce2c94c", "score": "0.0", "text": "public function __construct()\n\t{\n\t\t// get objects from the reference so they are accessable from the action-object\n\t\t$this->tpl = Spoon::get('template');\n\t\t$this->url = Spoon::get('url');\n\n\t\t// do the login magic\n\t\...
[ { "docid": "01c0fd78ea956d69037d5350d7bc9ecd", "score": "0.734283", "text": "function __construct()\n {\n foreach($_REQUEST as $param_key => $param_value) {\n $this->all_params[$param_key] = $param_value;\n }\n\n // Record all params found in the path\n $url_pat...
4070c8ec237409d47f2ffc6eab52ad00
Add item to FieldInfo value
[ { "docid": "c4ae2f9f63be47bdb3b0bd8ec20a5569", "score": "0.69708455", "text": "public function addToFieldInfo(\\StructType\\FieldInfo $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\StructType\\FieldInfo) {\n throw new \\InvalidArgumentException(...
[ { "docid": "71157fc8e60a0be8cc5e8c5eacd4fe1f", "score": "0.647331", "text": "function add_field($field, $value) {\n // sent to paypal as POST variables. If the value is already in the\n // array, it will be overwritten.\n\n $this->fields[\"$field\"] = $value;\n }", "title": "" },...
a6bb1eb5745933eddebd984e93986131
Register all of the commands in the given directory.
[ { "docid": "263bd8b12238f685dcba068e603b0913", "score": "0.0", "text": "protected function loadCommands($paths)\n {\n $paths = array_unique(Arr::wrap($paths));\n $paths = array_filter($paths, function ($path) {\n return is_dir($path);\n });\n\n if (empty($paths)...
[ { "docid": "f79b7842c87162c5c74f45c8bb5f26fc", "score": "0.7247516", "text": "public function registerCommands()\n {\n foreach ($this->commands as $key => $value) {\n $this->app->singleton($value, function ($app) use ($key){\n $class_name = \"K_Laravel_Creator\\\\Cons...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "3579799e4dc8ed4919ebe794082591f1", "score": "0.0", "text": "public function index()\n {\n //\n }", "title": "" } ]
[ { "docid": "a5f21f14f06e50e6c899fc50c1823371", "score": "0.748859", "text": "public function index()\n {\n return $this->listing();\n }", "title": "" }, { "docid": "496d5d54d7c7a7947e57216e38436eaa", "score": "0.7468274", "text": "public function indexAction()\n {\n ...
03487dc30480118e71749310c9e19b35
Get the line number that this constant ends on.
[ { "docid": "f3d6461969ca73b6aba39a144fbe4950", "score": "0.74187404", "text": "public function getEndLine(): int\n {\n return $this->endLine;\n }", "title": "" } ]
[ { "docid": "f7a4ffa64e0d81771bd5cf28358c47de", "score": "0.7402562", "text": "public function getEndLine(): int\n {\n return $this->property->getEndLine();\n }", "title": "" }, { "docid": "785a6db3030ae7172c9567e79c7f7312", "score": "0.7396242", "text": "public function ...
263140b6466473379c8455b4635a57cc
Tests passing invalid uuid bin
[ { "docid": "41fb49c1bc07dbfe1c74558f4a1d8b44", "score": "0.8700198", "text": "public function test_invalid_uuid_bin() {\n\t\t$this->expectException(KO7_Exception::class);\n\t\tUUID::bin('invalid');\n\t}", "title": "" } ]
[ { "docid": "83693b9e664b1b3360936004c89d6965", "score": "0.85101193", "text": "public function testUuid() {\n $this->assertTrue(Validate::uuid('a8293fde-ce92-9abe-83de-7294ab29cd03'));\n\n $this->assertFalse(Validate::uuid('a8293fde-ce92-83de-7294ab29cd03'));\n $this->assertFalse(Va...
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "11d7b7044e292590cb6e82eb473c2d18", "score": "0.0", "text": "public function run()\n {\n $techCategories = \\App\\Helpers\\DataUtils::$techCategories;\n\n foreach($techCategories as $techCategory){\n \\App\\TechCategory::create([\n 'name' => $techCat...
[ { "docid": "1dcddd9fc4f2fbc62e484166f7f3332c", "score": "0.802869", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n DB::table('users')->truncate();\n DB::table('posts')->truncate();\n DB::table('roles')->truncate();\n DB::table('rol...
b5f2c8aed75d155d11bb08e1fda24258
Make a show builder.
[ { "docid": "138e9f5df25a63b857813ea5a34300bd", "score": "0.0", "text": "protected function detail($id)\n {\n $show = new Show(Department::findOrFail($id));\n\n $show->field('id', __('Id'));\n $show->field('name', __('Name'));\n $show->field('sort_order', __('Sort order'));...
[ { "docid": "199d4abcf65483361bdc32dc5353f244", "score": "0.62589526", "text": "public function show();", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.62369376", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "305...
ee79964f4f6027af48e7a48d25e11d89
Set the value of Request
[ { "docid": "df586657f995ba033f51ab193559e45a", "score": "0.5835593", "text": "public function setRequest()\n {\n $requestArray = [\n \"client_id\" => $this->getClientId(),\n \"trx_amount\" => $this->getTrxAmount(),\n \"customer_name\" => $this->getCustomerName(...
[ { "docid": "b2614b8de115116433b70e64ca26b59f", "score": "0.8443747", "text": "function setRequest($value) {\n $this->request = $value;\n }", "title": "" }, { "docid": "c48a5c81f7bdd42a93c9ac9f92242914", "score": "0.78782624", "text": "function setRequest($request) {\n\t\t$thi...
4f10cb2a6c01e1986c4995b4c8fd7028
Allows the user to amend the release notes.
[ { "docid": "f2c21c1a46fd87120b1ef80ad97fbd53", "score": "0.66319543", "text": "private function _amendReleaseNotes(InputInterface $input, $releaseNotes)\n {\n $commandLocatorFactory = new WhichLocatorFactory();\n $editorFactory = new EditorFactory($commandLocatorFactory->create());\n ...
[ { "docid": "3bbc5619c1258a2f18420fc007e797bf", "score": "0.62052584", "text": "public function updateApprovalNotes()\r\n {\r\n $id = Input::get('ID');\r\n $notes = trim(Input::get('NOTES'));\r\n $project = Project::find($id);\r\n if($project!=null)\r\n {\r\n ...
31f11681897f874960bcb53c61b62740
Handle Ajax call for deleting Product.
[ { "docid": "d2e728b98f3a88c406eeb9f0a31088d8", "score": "0.7260397", "text": "public function deleteAjaxAction(Request $request){\n try {\n $ids = array();\n $em = $this->getDoctrine()->getManager();\n foreach($request->request->all() as $req){\n $p...
[ { "docid": "bce702eb0b30bc1764e8f3648d1cd9b4", "score": "0.804236", "text": "public function ajaxDeleteProduct(Request $request) {\n if ($request->ajax() && $request->isMethod('DELETE')) {\n\n }\n }", "title": "" }, { "docid": "4eeec5c596ae8152aaa2a9a05c054884", "score":...
a9ad8cba73dd5dbf7532edb5a0886f15
Load logo or/and widget tpl with bottom position
[ { "docid": "eede1317704e3472b45bf0b86d43a2d9", "score": "0.6170599", "text": "public function hookFooter()\n {\n return $this->displayLogoWidget('bottom');\n }", "title": "" } ]
[ { "docid": "49575fffca5f8d961d23c3bbc1880268", "score": "0.6635749", "text": "private function loadWidgetTPL()\n {\n //retrieve widget number on database and load the corresponding widget\n $host = $_SERVER['HTTP_HOST'];\n $url_site = 'http://www.' . $host;\n $string_site ...
a9db863182def8b12c27b3bebb1acf35
Performs the underlying HTTP request. Not very exciting
[ { "docid": "9f316bc8c1ad55855c6c65d01544f3a1", "score": "0.0", "text": "private function _raw_request($method, $args=array())\n\t{\n\t\t$args['apikey'] = $this->apiKey;\n\n\t\t$url = $this->apiEndpoint.'/'.$method.'.json';\n\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch, CURLOPT_URL, $url);\n\t\tcurl_set...
[ { "docid": "234e2c861457b93cefa7faa5d0c48960", "score": "0.743765", "text": "abstract public function doRequest();", "title": "" }, { "docid": "9bf68e5a171b37bf92cb15eaf78704ec", "score": "0.74107033", "text": "public function request()\n {\n $ch = curl_init();\n cur...
2dd8aa167ea50ad720032cdccfd92dc2
Initialises the object string, and type string. Feeds the expected response to the request class.
[ { "docid": "d055c808358d660c5acf45f65fe9a48f", "score": "0.5486859", "text": "public function __construct($object, $type, $response = null)\n {\n parent::__construct('update', $response);\n if (in_array($object, self::$objects)) {\n $this->object = $object;\n }\n ...
[ { "docid": "c57b86b202275ac9e7444eb83ccc1e13", "score": "0.6471657", "text": "public function init()\n {\n $this->response = new Response();\n }", "title": "" }, { "docid": "63c04c7b5cda5e92f44971f4de587a04", "score": "0.62103647", "text": "public function __construct()\...
a15b2aa35f0a487efa443acd8ff709b3
Operation listZonesAsyncWithHttpInfo List available zones
[ { "docid": "795279c949a443985d83505d95e7d5bb", "score": "0.80745476", "text": "public function listZonesAsyncWithHttpInfo()\n {\n $request = new Request('GET', 'zone');\n\n return $this->client->sendAsync($request)->then(function (UpcloudApiResponse $response) {\n return $re...
[ { "docid": "51bfaee27579e2243170a359d1534d67", "score": "0.77205247", "text": "public function listZonesWithHttpInfo(): array\n {\n $request = new Request('GET', 'zone');\n $response = $this->client->send($request);\n\n return $response->toArray(ZoneListResponse::class);\n }"...
cfeed86e10e84e138e6ba8bf3e028326
Set $_EndTime to $inEndTime
[ { "docid": "42149488169ea2ab9a1457b7a26242ee", "score": "0.7898538", "text": "protected function _setEndTime($inEndTime) {\n\t\tif ( $this->_EndTime !== $inEndTime ) {\n\t\t\t$this->_EndTime = $inEndTime;\n\t\t}\n\t\treturn $this;\n\t}", "title": "" } ]
[ { "docid": "8a690b3f83fe2c91f2bebec3a0ae2bd9", "score": "0.7272351", "text": "public\r\n function setEndTime($endTime) {\r\n $this->endTime = $endTime;\r\n }", "title": "" }, { "docid": "e26304aa27160281e31170b964ebc58d", "score": "0.71682787", "text": "public function s...
a396baa65e55a3348008b21334fadcbe
Handler of the add_filter( 'studeon_filter_get_css', 'studeon_hovers_get_css', 10, 4 );
[ { "docid": "922b09b0b5f31ab1283ca0868e6bdc7b", "score": "0.6673513", "text": "function studeon_hovers_get_css($css, $colors, $fonts, $scheme='') {\n\t\tif (isset($css['fonts']) && $fonts) {\n\t\t\t$css['fonts'] .= <<<CSS\nCSS;\n\t\t}\n\n\t\tif (isset($css['colors']) && $colors) {\n\t\t\t$css['colors'] ....
[ { "docid": "4a5267b0a9c4a321a967be14e315943c", "score": "0.6632933", "text": "function hook_css() {\r\n\t\t\r\n\t\tglobal $table_prefix, $wpdb, $woocommerce;\r\n\t\t\r\n\t\t$blog_title = site_url();\r\n\t\t\r\n\t\t$qry22 = $wpdb->get_results( \"SELECT * FROM `\".$table_prefix.\"apart_setting_p` ORDER BY...
c8089425e1e708c82ffe39be24326cd4
look for a 'custom logo'
[ { "docid": "0004a9fa74f4838ba1176983ec99540b", "score": "0.6870456", "text": "function get_site_logo() {\n $content_logo = '';\n // if we have a custom logo\n\n if (!empty(get_theme_mod('custom_logo'))) {\n $logo_src = wp_get_attachment_image_src(get_theme_mod('custom_logo'));\n $...
[ { "docid": "a72f30478da222e6cb2dc2cc15365439", "score": "0.8019227", "text": "public function domaze_custom_logo() {\n the_custom_logo();\n }", "title": "" }, { "docid": "167ef4eb48c0416f5a3bd4bcfbc38300", "score": "0.78644294", "text": "function excellent_the_custom_...
a4ae0f847f2520c72dff185bf602bb76
function: events_messages END function: events_category BEGIN
[ { "docid": "ff71322aee864243cd99713ebe6a9c0c", "score": "0.0", "text": "function events_category()\n{\n register_taxonomy(\n __( \"events_category\" ),\n array(__( \"events\" )),\n array(\n \"hierarchical\" => true,\n \"label\" =>...
[ { "docid": "2af10dc1ce3752887cf107fd0bc04c90", "score": "0.6385585", "text": "public function messages($event)\n {\n }", "title": "" }, { "docid": "6d28171b0f5ee22e1fcdf3f50e6dab0f", "score": "0.60872483", "text": "function category_updated_messages( $messages ) {\n\n\t$message...
2ff3358e12af1f1dd720d2cf56a5a3d8
overwritten function to apply password
[ { "docid": "e26612ddcf1522618b8e796f60ff8179", "score": "0.0", "text": "public function store()\n {\n if (config('bap.demo')) {\n flash(trans('core::core.you_cant_do_that_its_demo'))->error();\n return redirect()->back();\n }\n $request = \\App::make($this->...
[ { "docid": "10aa5b977c51aade906dbd29282f4733", "score": "0.77064675", "text": "public function addPasswordVerify();", "title": "" }, { "docid": "10aa5b977c51aade906dbd29282f4733", "score": "0.77064675", "text": "public function addPasswordVerify();", "title": "" }, { "doc...
d2081be006b2712782153660967fd181
Update admin user info
[ { "docid": "1073eeeecf1d703bc0387da3f30cd6b2", "score": "0.734048", "text": "function update_user($admin_id , $user_info = array())\n {\n \tif(!is_numeric($admin_id))\n \t{\n \t\treturn FALSE;\n \t}\n return $this->db->update('admin_users', $user_info, array('admin_id' => $admin_id...
[ { "docid": "47a3f77358f5a2ce7a80cfe309ed1516", "score": "0.7434068", "text": "public function updateUser()\r\n\t{\r\n }", "title": "" }, { "docid": "6a57c5ff7896a880a4f55c49277a0c3c", "score": "0.7404351", "text": "public function updateUser(){\n\t}", "title": "" }, { ...