query
stringlengths
7
5.25k
document
stringlengths
15
1.06M
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Add calendar blocks to the default theme.
function date_tools_wizard_create_blocks($type_name) { $current_theme = variable_get('theme_default', 'garland'); // Legend block. $block = new stdClass(); $block->theme = $current_theme; $block->status = 1; $block->weight = -1; $block->region = 'left'; $block->title = ''; $block->module = 'calenda...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function register_block_core_calendar() {\n\tregister_block_type_from_metadata(\n\t\t__DIR__ . '/calendar',\n\t\tarray(\n\t\t\t'render_callback' => 'render_block_core_calendar',\n\t\t)\n\t);\n}", "public function calendar()\n {\n $this->template->set('global_setting', $this->global_setting);\n $...
[ "0.755544", "0.72267795", "0.71796167", "0.71749926", "0.67539847", "0.67328703", "0.6021429", "0.5930355", "0.58980906", "0.589505", "0.5863667", "0.58232015", "0.5784089", "0.5768862", "0.57667905", "0.57651794", "0.57638687", "0.57479525", "0.5719109", "0.56599295", "0.565...
0.64538854
6
Instantiate object instance and initialize it payment.paypal. part from config.ini must be passed as the first parameter
public function __construct(Array $options) { $this->_options = $options; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct($config = array())\r\n {\r\n $config = Arr::merge((array) Kohana::config('paypal'), $config);\r\n\r\n // Save the config in the object\r\n $this->config = $config;\r\n\r\n $this->paypal_url = isset($config['url']) ? $config['url'] : 'https://www.paypal.co...
[ "0.76908594", "0.7328332", "0.7209504", "0.7200372", "0.7177641", "0.7158414", "0.71389973", "0.712449", "0.70971227", "0.70776945", "0.7055535", "0.69846416", "0.68345803", "0.6833013", "0.6825782", "0.6820114", "0.68048567", "0.67796606", "0.6759061", "0.6759061", "0.674972...
0.0
-1
Set another payment currency
public function setCurrency($currency) { $this->_currency = $currency; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setCurrency(Currency|string $currency): self;", "public function setCurrency($currency){\n $this->currency = $currency;\n }", "public function setCurrency(string $currency);", "public function setCurrency($currency);", "private function setCurrency()\n {\n $currency = $this->e...
[ "0.76318496", "0.7594078", "0.7521203", "0.7491034", "0.72441393", "0.71843463", "0.7130317", "0.7130317", "0.70637923", "0.70415807", "0.6912305", "0.69078326", "0.6853418", "0.6732537", "0.66304487", "0.6595902", "0.65058446", "0.6468904", "0.6468904", "0.64568794", "0.6394...
0.7026823
10
Url to redirect user after success payment, must be set
public function setReturnUrl($url) { $this->_url_return = $url; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function redirectAction()\n {\n $model = new KBariotis_NBP_Model_NBP();\n\n $redirectUrl = $model->getRedirectUrl();\n\n if ($redirectUrl)\n $this->_redirectUrl($redirectUrl);\n else\n $this->_redirectUrl(Mage::getUrl('checkout/onepage/failure'));\n }"...
[ "0.71955335", "0.71234095", "0.7058403", "0.70459", "0.70252424", "0.7013614", "0.69979554", "0.69882107", "0.69775075", "0.6975095", "0.69583756", "0.6949912", "0.69417197", "0.69224423", "0.68877566", "0.68795526", "0.68788314", "0.6862896", "0.68158406", "0.6814849", "0.68...
0.0
-1
Url to redirect user if he decide to cancel an order
public function setCancelUrl($url) { $this->_url_cancel = $url; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCancelUrl()\n {\n return Mage::getUrl('payulite/processing/cancel', array('_secure' => true, 'order' => '{{ORDER_ID}}'));\n }", "public function cancelAction() {\n\n return $this->_redirect('/order_basis/payment');\n }", "public function cancelAction()\n\t{\n\t\t$this-...
[ "0.74424624", "0.73776853", "0.7364959", "0.71495885", "0.6904727", "0.6868556", "0.6736522", "0.6731848", "0.67258835", "0.67234993", "0.67233145", "0.66998124", "0.6685076", "0.66244173", "0.66038394", "0.65974164", "0.6574803", "0.65630287", "0.65606046", "0.6525642", "0.6...
0.0
-1
Set desired PayPal interface locale
public function setLocale($locale) { $this->_locale = $locale; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function settingLocale() {}", "function setLocale($locale);", "public function setLocale($locale);", "private function set_locale() {\n\n\t\t$plugin_i18n = new Soisy_Pagamento_Rateale_i18n();\n\n\t\t$this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );\n\t}", "public...
[ "0.7341603", "0.70109236", "0.67024475", "0.666348", "0.6543944", "0.6496231", "0.6469882", "0.6463589", "0.6458139", "0.6364509", "0.63393587", "0.63272625", "0.62912565", "0.6272205", "0.62619877", "0.6246781", "0.6220771", "0.6220205", "0.620067", "0.6169296", "0.6166886",...
0.55508506
76
Contact with PayPal to get TOKEN 1st Step
public function setExpressCheckout($price, $user_email) { $price = round($price, 2); $nvpstr = '&RETURNURL=' . urlencode($this->_url_return) . '&CANCELURL=' . urlencode($this->_url_cancel) . '&PAYMENTREQUEST_0_AMT=' . $price . '&PAYMENTREQUEST_0_CURRENCYCODE=' . $this->_currency . '&LOCALECODE=' . $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function make_payment($token) {\n\t // Getting settings.\n\t $settings = $this->pex_settings;\n\t\t $nvpstr=\"&TOKEN=\".$token;\n\t\t // call api with token and getting result.\n\t\t $resarray = $this->hash_call(\"GetExpressCheckoutDetails\",$nvpstr);\n\t\t $ack = strtoupper($resarray[\"ACK\"]);\n\t...
[ "0.67716926", "0.6770662", "0.6334543", "0.6192691", "0.61669415", "0.613896", "0.6076916", "0.6036614", "0.6036614", "0.6036614", "0.6036614", "0.6031266", "0.6021265", "0.5995351", "0.59666646", "0.5944641", "0.5943251", "0.59385884", "0.5894516", "0.5865951", "0.5832242", ...
0.0
-1
Get order and customer information from PayPal 2nd Step
public function getExpressCheckoutDetails($token) { $nvpstr = '&TOKEN=' . $token; return $this->hash_call('GetExpressCheckoutDetails', $nvpstr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function take_payment_details()\r\n\t\t{\r\n\t\t\tglobal $ecom_siteid,$db,$ecom_hostname,$Settings_arr,$ecom_themeid,$default_layout,\r\n\t\t\t\t\t$Captions_arr,$inlineSiteComponents,$sitesel_curr,$default_Currency_arr,$ecom_testing,\r\n\t\t\t\t\t$ecom_themename,$components,$ecom_common_settings,$vImage,$alert,$pr...
[ "0.6585961", "0.65769047", "0.65300477", "0.6380407", "0.628283", "0.6156265", "0.61345875", "0.6130991", "0.6100451", "0.6082305", "0.6079839", "0.60190225", "0.5944091", "0.5935058", "0.5906031", "0.5869138", "0.5862159", "0.5855021", "0.5837794", "0.5812199", "0.5799402", ...
0.0
-1
Perform actual payment 3rd Step
public function doExpressCheckoutPayment(Array $orderDetails) { $nvpstr = '&TOKEN=' . $orderDetails['TOKEN'] . '&PAYERID=' . $orderDetails['PAYERID'] . '&PAYMENTREQUEST_0_AMT=' . $orderDetails['PAYMENTREQUEST_0_AMT'] . '&PAYMENTREQUEST_0_CURRENCYCODE=' . $orderDetails['PAYMENTREQUEST_0_CURRENCYCODE'] . ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function processPayment();", "protected function doExecutePayment() {\n // This method is empty so child classes can override it and provide their\n // own implementation.\n }", "abstract protected function handlePayment();", "public function success_payment() {\n \n // Check if t...
[ "0.7516175", "0.714547", "0.6953258", "0.6879745", "0.6839262", "0.6812763", "0.68028784", "0.67768824", "0.67190826", "0.666666", "0.66434366", "0.66416097", "0.6614928", "0.6589211", "0.6583582", "0.65805745", "0.65764487", "0.65624136", "0.65274787", "0.6521082", "0.648399...
0.0
-1
Perform a transaction using reference Transaction ID
public function doReferenceTransaction($ref) { $nvpstr = '&REFERENCEID=' . $ref . '&AMT=10' . '&PAYMENTACTION=Sale&REQCONFIRMSHIPPING=0'; $this->hash_call('DoReferenceTransaction', $nvpstr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function transaction();", "public function transaction();", "public function getTransactionID();", "public function doTransaction()\n\t{\n\t\t$this->initRequest();\n\n\t\t$this->setTransaction([\n\t\t\t'ReportTxnDetail' => [\n\t\t\t\t'TxnId' => $this->TxnId\n\t\t\t]\n\t\t]);\n\t\t\n\t\treturn $this->T...
[ "0.66291356", "0.66291356", "0.6206243", "0.6113751", "0.6025251", "0.601474", "0.58320236", "0.58320236", "0.58200777", "0.5808117", "0.5742156", "0.5729479", "0.5701541", "0.5692495", "0.56885374", "0.56446946", "0.56387526", "0.56387526", "0.56387526", "0.5631671", "0.5630...
0.6816867
0
hash_call: Function to perform the API call to PayPal using API signature returns an associative array containing the response from the server.
private function hash_call($methodName, $nvpStr) { // form header string $nvpheader = $this->nvpHeader(); //setting the curl parameters. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $this->_api_endpoint); //turning off the server and peer verification(TrustManager Concept). curl_setopt($ch, CURLOPT_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hash_call($methodName, $nvpStr)\r\n {\r\n \r\n //declaring of global variables\r\n //global $API_Endpoint, $API_UserName, $API_Password, $API_Signature, $API_AppID;\r\n //global $USE_PROXY, $PROXY_HOST, $PROXY_PORT;\r\n \r\n ...
[ "0.70572996", "0.690641", "0.6697218", "0.6672535", "0.6670277", "0.6078703", "0.5990067", "0.5983911", "0.59212637", "0.58231366", "0.5800892", "0.56421924", "0.56316406", "0.56141484", "0.5591103", "0.5555254", "0.5522475", "0.5508676", "0.5505245", "0.5503398", "0.5423944"...
0.64371145
5
This function will take NVPString and convert it to an Associative Array and it will decode the response. It is useful to search for a particular key and displaying arrays.
private function deformatNVP($nvpstr) { $intial=0; $nvpArray = array(); while(strlen($nvpstr)){ //position of Key $keypos= strpos($nvpstr,'='); //position of value $valuepos = strpos($nvpstr,'&') ? strpos($nvpstr,'&'): strlen($nvpstr); /*getting the Key and Value values and storing in a Associa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function deformatNVP($nvpstr){\r\n \r\n $intial=0;\r\n $nvpArray = array(); \r\n \r\n while(strlen($nvpstr)){\r\n //postion of Key\r\n $keypos= strpos($nvpstr,'=');\r\n //position of value\r\n $valuepos = strpos($nvpstr,'&') ? strpos($...
[ "0.68386084", "0.67593586", "0.6727776", "0.6663099", "0.66561294", "0.66193986", "0.66057616", "0.63000566", "0.6216794", "0.594195", "0.5637514", "0.5609811", "0.5511996", "0.5396022", "0.5272197", "0.5240577", "0.5160063", "0.5151507", "0.5122402", "0.50719434", "0.5056054...
0.67708236
1
/ The construct has checking dealth with above 1. The techer will be taken to his class (teachers_class.tpl) 2. The teacher is not activated by admin (Then show him not_activate side of this form)
public function init() { if(isset($_POST['LoginStaff']) && $this->_mErrors == 0) { /* 0 = teacher exists, email and password all correct 1 = teacher exists, but email or password invalid 2 = teacher does not exist// */ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function teacher_registration(){\n\n\t\t$data['title_page'] = 'Teacher | Registration';\n\t\t$this->load->view('teach/reg_teach', $data);\n\n\t\t/* here is the validation to the form submitted in creating the new teacher_account_tbl;*/\n\n\t}", "public function adminTeacher(){\n\n }", "function valid...
[ "0.61245656", "0.61019784", "0.6096379", "0.604956", "0.59938014", "0.5983298", "0.586553", "0.57333034", "0.57308257", "0.57274574", "0.57020843", "0.5671908", "0.5658355", "0.5646518", "0.56351596", "0.5628341", "0.56267303", "0.56240946", "0.5622967", "0.56087977", "0.5604...
0.5552707
30
Get the connection using name
public function getUse() { if (isset($this->use)) { return $this->use; } else return $this->getDefaultUse(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static private function connection($name) { return self::$connections[$name]['connection']; }", "public static function connection($name=null){\n\t\treturn self::instance()->conn($name);\n\t}", "function findConnection(string $name);", "public function connection($name = 'default')\n {\n return Arr...
[ "0.87603086", "0.8390307", "0.8249926", "0.82293946", "0.8165101", "0.8012678", "0.8002587", "0.78540653", "0.78529716", "0.7778252", "0.7685722", "0.7643416", "0.76245755", "0.7618163", "0.76161104", "0.75996184", "0.7587031", "0.75678104", "0.75615615", "0.75579906", "0.749...
0.0
-1
Get the default use tag
public function getDefaultUse() { if (isset($this->getRoot()->use)) { return $this->getRoot()->use; } else return '*'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDefaultTag(): string|null;", "protected function get_tag() {\n\t\treturn self::TAG;\n\t}", "function getTag($name, $default = 0) {\n if(empty($this -> $name)) {\n return $default ;\n } else {\n return $this -> $name ;\n }\n }", "public function...
[ "0.75661653", "0.692143", "0.68892187", "0.6643984", "0.65091926", "0.64992255", "0.6458422", "0.6436237", "0.6385614", "0.6384073", "0.63671577", "0.6366389", "0.63467205", "0.63408554", "0.63408554", "0.6335441", "0.6330788", "0.6320616", "0.63121", "0.62464976", "0.6202257...
0.6638231
4
Get the table name
public function getTableName() { if (isset($this->table)) { return $this->table; } else return $this->name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_table_name()\n {\n return $this->prefix . $this->table;\n }", "public static function get_table_name()\n {\n return self::TABLE_NAME;\n }", "public function get_table_name(){\n return $this->table_name();\n }", "public function get_table_name() {\n ...
[ "0.87493235", "0.8735879", "0.87249297", "0.8660773", "0.8588095", "0.8579911", "0.8570862", "0.8570862", "0.8570862", "0.85706013", "0.8569707", "0.8566761", "0.8544769", "0.8541197", "0.85325557", "0.8528673", "0.85208464", "0.8519042", "0.8500149", "0.84937036", "0.8482849...
0.84642744
23
Get current adapter class name
public function getClassName() { if (isset($this->generate_as)) { return $this->generate_as; } else return ucfirst($this->name).'AdapterImpl'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAdapterClassName() {\n return $this->adapterClassName;\n }", "public function getAdapterClassName() {\n if ($this->class) {\n return $this->class;\n } elseif (!$this->getInterface()) {\n return $this->getClassName();\n } ...
[ "0.8546139", "0.84628975", "0.81053686", "0.7996842", "0.77670175", "0.75999993", "0.74073064", "0.7398324", "0.7089851", "0.7083192", "0.7073418", "0.69100595", "0.68582356", "0.68246233", "0.67926466", "0.6727503", "0.67229354", "0.67229354", "0.6694077", "0.6690192", "0.66...
0.7958611
4
Get the class name to implement
public function getImplements() { return array( 'pdoMap_Dao_IAdapter', $this->getGeneratedInterface() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getClassName();", "public function getClassName();", "public function getClassName() {}", "public function getClassName() {}", "public function getClassName() {}", "public function getClassName() {}", "public function getClassName() ;", "public function getClassName() : string;", "p...
[ "0.8252415", "0.8252415", "0.823351", "0.823351", "0.823351", "0.823351", "0.82120967", "0.8058368", "0.80380785", "0.8036677", "0.8011524", "0.80057263", "0.79868454", "0.79303575", "0.7917281", "0.7911965", "0.787799", "0.787799", "0.78604215", "0.78296787", "0.782636", "...
0.0
-1
Get the generated interface name
public function getGeneratedInterface() { return 'I'.ucfirst($this->name).'Adapter'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function name(): string\n {\n return 'interface';\n }", "protected function getInterfaceDefinition($name) {\n return 'Webforge\\Types\\Interfaces\\\\'.$name;\n }", "abstract protected function generateName();", "public function getUniqueName()\n {\n \t// load the identifiers\n ...
[ "0.7561654", "0.67842674", "0.6774712", "0.6696295", "0.6657731", "0.6585888", "0.6551176", "0.64950436", "0.648664", "0.6471242", "0.6444275", "0.6396577", "0.639656", "0.6378045", "0.6378045", "0.6378045", "0.6369798", "0.6356752", "0.63536525", "0.635339", "0.6336516", "...
0.75436175
1
Get the generated interface name
public function getInterface() { return $this->implements; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function name(): string\n {\n return 'interface';\n }", "public function getGeneratedInterface() {\n\t\t\treturn 'I'.ucfirst($this->name).'Adapter';\t\n\t\t}", "protected function getInterfaceDefinition($name) {\n return 'Webforge\\Types\\Interfaces\\\\'.$name;\n }", "abstract protect...
[ "0.75606626", "0.7544979", "0.67841804", "0.6774879", "0.66955847", "0.6658735", "0.6586861", "0.6549893", "0.6494723", "0.6484905", "0.6470596", "0.64428055", "0.63962895", "0.63948846", "0.63760513", "0.63760513", "0.63760513", "0.63671815", "0.635424", "0.6354084", "0.6353...
0.0
-1
Get the parent class name
public function getExtends() { return 'pdoMap_Dao_Adapter'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getParentClassName()\n {\n return $this->Parent()->getClassName();\n }", "function get_parent_class() {\n\t\t$args = func_get_args();\n\t\treturn strtolower(call_user_func_array(\"get_parent_class\", $args));\n\t}", "public function getParentClass() {}", "public function getParen...
[ "0.8713466", "0.80483663", "0.7939863", "0.7850326", "0.7715777", "0.74151266", "0.7348355", "0.7317825", "0.7284351", "0.7275702", "0.7259765", "0.7220434", "0.7171742", "0.7061621", "0.7058512", "0.70424855", "0.7004986", "0.7004986", "0.7004986", "0.7004986", "0.7003044", ...
0.0
-1
Generate the mapping interface
public function GenerateInterface($name = null) { if (!$name) $name = $this->getGeneratedInterface(); $this->writeLine('interface '.$name.' {'); if (isset($this->select_one)) foreach($this->select_one as $rq) $rq->writeSignature(true); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function defineMapping();", "abstract protected function getMapping();", "abstract protected function getMapping();", "public function getMapping() {}", "abstract protected function buildMap();", "public function getMappings();", "public function getMappings();", "public function g...
[ "0.7793871", "0.7234115", "0.7234115", "0.71539325", "0.6569726", "0.65337193", "0.65337193", "0.6517583", "0.6456219", "0.6407931", "0.6259392", "0.6151972", "0.6140589", "0.6105953", "0.6102349", "0.60996383", "0.6097243", "0.59908086", "0.596343", "0.59066767", "0.5870676"...
0.0
-1
Generate the adapter code
public function GenerateAdapter() { $this->writeLine( 'class '.$this->getClassName() ); $this->writeLine( 'extends '.$this->getExtends() ); $this->writeLine('implements '); $this->writeLine( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getGeneratedInterface() {\n\t\t\treturn 'I'.ucfirst($this->name).'Adapter';\t\n\t\t}", "abstract protected function createAdapter();", "abstract protected function getAdapter();", "abstract protected function getAdapter();", "public function generateInitCode();", "public function getAdapt...
[ "0.662946", "0.6511017", "0.60634387", "0.60634387", "0.6019794", "0.58341897", "0.58341897", "0.58334684", "0.58334684", "0.583344", "0.583344", "0.583344", "0.583344", "0.583344", "0.58287543", "0.580936", "0.5801711", "0.57794714", "0.5778451", "0.5763455", "0.5762898", ...
0.820904
0
Get the class name
public function getAdapterClassName() { if ($this->class) { return $this->class; } elseif (!$this->getInterface()) { return $this->getClassName(); } else return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getClassName(): string\n {\n return $this->get(self::CLASS_NAME);\n }", "private function get_class_name() {\n\t\t\treturn !is_null($this->class_name) ? $this->class_name : get_class($this);\n\t\t}", "public function getClassName() {\r\n\t\treturn($this->class_name);\r\n\t}", "pu...
[ "0.89232844", "0.88946396", "0.8771138", "0.8691598", "0.8688977", "0.8677661", "0.8677661", "0.8651231", "0.8651231", "0.8651231", "0.8651231", "0.86344886", "0.86344886", "0.86283", "0.8604795", "0.86018217", "0.85902196", "0.85688955", "0.85653675", "0.85653675", "0.856021...
0.0
-1
Generate the entity code
public function GenerateEntity() { return $this->entity->Generate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function generateEntityCode()\n {\n $tables = $this->getTables();\n \n $code = \" require_once 'grandprix.data.php';\";\n foreach ($tables as $table)\n {\n $columns = $this->getColumns($table['tableName']);\n $chi...
[ "0.85135317", "0.6651294", "0.6615616", "0.6508623", "0.63875175", "0.6356612", "0.6240284", "0.6197398", "0.6104176", "0.61031663", "0.60996467", "0.60996467", "0.6099628", "0.6099628", "0.6099628", "0.6099628", "0.6099628", "0.6053485", "0.60358304", "0.6029271", "0.5932153...
0.7133943
1
Generate the structure array
public function GenerateStructure() { // WRITE CONSTRUCTOR $this->writeLine( sprintf( '$return = new pdoMap_Dao_Metadata_Table( \'%1$s\',\'%2$s\',\'%3$s\', \'%4$s\',\'%5$s\',\'%6$s\');', $this...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function generateArray()\r\n\t{\t\r\n\t\t$data = array('logID'=>$this->logID,'text'=>$this->Text,'timestamp'=>$this->timestamp, 'textid'=>$this->textID);\r\n\t\tif($this->user!=null)\r\n\t\t\t$data['user'] = $this->user->generateArray();\r\n\t\tif($this->building!=null)\r\n\t\t\t$data['building'] = $this->b...
[ "0.6884768", "0.6833363", "0.67278177", "0.66833436", "0.6651912", "0.6595621", "0.6515777", "0.6515664", "0.651423", "0.64832205", "0.64832205", "0.6461082", "0.64381063", "0.64225173", "0.6337857", "0.630125", "0.6258858", "0.61475164", "0.61192566", "0.61082524", "0.605946...
0.5979651
24
Make a new Factory instace
public function __construct(IlluminateRequest $request) { $this->request = $request; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function newFactory()\n {\n //\n }", "public function getFactory() {}", "public function make($factory);", "public function getFactory(): Factory;", "public function getFactory()\n {\n return new Factory();\n }", "protected static function newFactory()\n {\n ...
[ "0.8439911", "0.83880466", "0.83268446", "0.8133495", "0.80076325", "0.78992486", "0.7656256", "0.75848705", "0.7529816", "0.74936485", "0.74830234", "0.747954", "0.74587446", "0.739582", "0.73857987", "0.7382707", "0.7382707", "0.7379845", "0.73763", "0.7375955", "0.7327311"...
0.0
-1
Factory a new DataTable builder instance
public function builder() { $builder = new Builder($this->request); return $builder; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function init_datatable(): stdClass\n {\n $columns[\"com_cliente_id\"][\"titulo\"] = \"Id\";\n $columns[\"com_cliente_codigo\"][\"titulo\"] = \"Código\";\n $columns[\"com_cliente_razon_social\"][\"titulo\"] = \"Razón Social\";\n $columns[\"com_cliente_rfc\"][\"titulo\"] = \...
[ "0.6687568", "0.66512233", "0.65645576", "0.6399188", "0.6253602", "0.62086797", "0.6186943", "0.60946995", "0.6080192", "0.6046568", "0.59955144", "0.59952843", "0.5994222", "0.58606464", "0.5830252", "0.5798715", "0.5784527", "0.5774832", "0.57320315", "0.5710996", "0.57044...
0.0
-1
Public Methods ========================================================================= Parses some HTML for headings and adds anchor links to them.
public function parseHtml($html, $tags = 'h1,h2,h3') { $tags = ArrayHelper::stringToArray($tags); return preg_replace_callback('/<('.implode('|', $tags).')([^>]*)>(.+?)<\/\1>/', array($this, '_addAnchorToTagMatch'), $html); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function heading_anchors() {\r\n\t\t// headings to have an anchor, so we can take the option that the structure() function now offers us for achieving the same end.\r\n\t\t$count = 0;\r\n\t\t$arrayRxp = array(\r\n\t\t//'(<h1>)(<em>)*([0-9]{1,2})' => '$1$2<a name=\"$3\"></a>$3',\r\n\t\t//'(<h2>)(<em>)*([0-9]{1,2})(...
[ "0.76134026", "0.69676524", "0.6715134", "0.6466037", "0.6269547", "0.61735755", "0.61275625", "0.60819227", "0.60324043", "0.5929578", "0.5808945", "0.5769234", "0.5621077", "0.55724424", "0.5571138", "0.5563406", "0.54859465", "0.5477194", "0.5352219", "0.5345598", "0.53198...
0.55214024
16
Generates an anchor name based on a given heading.
public function generateAnchorName($heading) { // Remove HTML tags $heading = preg_replace('/<(.*?)>/', '', $heading); // Remove parentheses $heading = preg_replace('/\(.*?\)/', '', $heading); // Remove inner-word punctuation $heading = preg_replace('/[\'"‘’“”]/', '', $heading); // Get the "words". Th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function heading_anchors() {\r\n\t\t// headings to have an anchor, so we can take the option that the structure() function now offers us for achieving the same end.\r\n\t\t$count = 0;\r\n\t\t$arrayRxp = array(\r\n\t\t//'(<h1>)(<em>)*([0-9]{1,2})' => '$1$2<a name=\"$3\"></a>$3',\r\n\t\t//'(<h2>)(<em>)*([0-9]{1,2})(...
[ "0.67633224", "0.6057888", "0.60150397", "0.58401763", "0.58030105", "0.5766994", "0.5761064", "0.56733775", "0.5601421", "0.5550285", "0.5527711", "0.55157316", "0.5511428", "0.549522", "0.54193324", "0.54011625", "0.5390055", "0.5373236", "0.5349038", "0.5334081", "0.529850...
0.84614486
0
Private Methods ========================================================================= Adds an anchor link to the given HTML tag match.
private function _addAnchorToTagMatch($match) { $anchorName = $this->generateAnchorName($match[3]); return '<'.$match[1].$match[2].' id='.$anchorName.'>' . $match[3] . ' <a class="anchor" href="#'.$anchorName.'" title="'.Craft::t('Direct link to {heading}', array('heading' => $match[3])).'">#</a>' . '</'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function __parseLinksHTML($match)\n\t{\n\t\t$completeUrl = $match[1] ? $match[0] : \"http://{$match[0]}\";\n\n\t\treturn '<a target=\"_blank\" href=\"' . $completeUrl . '\">'\n\t\t . $match[2] . $match[3] . $match[4] . '</a>';\n\t}", "public function renderTagAnchor($result);", "public function appen...
[ "0.7048786", "0.6548224", "0.6483145", "0.6248656", "0.62374574", "0.61355644", "0.6080457", "0.60681975", "0.5975719", "0.58886385", "0.5886247", "0.5843463", "0.5804454", "0.5783415", "0.5773873", "0.57414365", "0.57133985", "0.5709507", "0.5705729", "0.5649693", "0.5619515...
0.77676207
0
Returns an Identity object based on session_id() getIdentity() returns a base Scenario_Identity object with the identity string provided by session_id(). If the session is not yet started, it will throw an error, as when to start the session should be up to the developer.
public function getIdentity(array $params) { $id = session_id(); if ($id == "") { /** * @see Scenario_Exception */ require_once 'Scenario/Exception.php'; throw new Scenario_Exception('Unable to use session_id() as an identity string, are you...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function GetSessionIdentity ();", "public function getSessionID();", "public static function getSessionid();", "public function get_session_id()\n {\n }", "protected function _getId ()\n {\n return session_id();\n }", "protected function getSessionId()\n {\n ret...
[ "0.729675", "0.6675893", "0.65923226", "0.6418689", "0.63862914", "0.6324631", "0.63078356", "0.62673134", "0.62353605", "0.62349796", "0.6232178", "0.62279487", "0.62115616", "0.6198297", "0.61880475", "0.6180125", "0.6169896", "0.6162204", "0.6162204", "0.615711", "0.613693...
0.7623249
0
Add an item to the cart
public function add($product, $quantity) { $this->loadItems(); if (isset($this->items[$product->{$this->params['productFieldId']}])) { $this->plus($product->{$this->params['productFieldId']}, $quantity); } else { $this->items[$product->{$this->params['productFieldId']...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addItem(Cart $cart, CartItem $item);", "function add_to_cart(item $item) {\n \\Cart::session(auth()->id())->add(array(\n 'id' => $item->id,\n 'name' => $item->name,\n 'price' => $item->price,\n 'quantity' => 1,\n 'attributes' => array(...
[ "0.8509984", "0.8310418", "0.8252583", "0.8238454", "0.80710167", "0.8035943", "0.8035943", "0.7972041", "0.79000634", "0.7891097", "0.7842936", "0.7823215", "0.77436554", "0.7737258", "0.77297026", "0.76292753", "0.7625777", "0.75775754", "0.7575046", "0.7574568", "0.7504144...
0.0
-1
Load all items from the cart
private function loadItems() { if ($this->items === null) { $this->items = $this->storage->load(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function load() {\n if(isset($_SESSION['cart'])) {\n $this->items = $_SESSION['cart'];\n } \n }", "public function loadPreviousItems()\n {\n //first get it out of db.\n if ($orderId = $this->_order->check_cart($this->_auth->id)) {\n $order = $...
[ "0.7864368", "0.70897734", "0.675945", "0.67422634", "0.65406716", "0.6492334", "0.64723665", "0.6472274", "0.6456924", "0.63853735", "0.63778657", "0.63772964", "0.63579094", "0.6341696", "0.63258237", "0.62854457", "0.6269724", "0.61998665", "0.61774546", "0.6154933", "0.61...
0.7335535
1
Adding item quantity in the cart
public function plus($id, $quantity) { $this->loadItems(); if (isset($this->items[$id])) { $this->items[$id]->setQuantity($quantity + $this->items[$id]->getQuantity()); } $this->saveItems(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update_quantity()\n\t{\n\t\t$item = ORM::factory('cart_item', $this->input->post('id'));\n\t\t$quantity = $this->input->post('quantity');\n\t\t$this->cart->update_quantity($item->product, $item->variant, $quantity);\n\t\t\n\t\turl::redirect('cart');\n\t}", "function add_to_cart($id,$qty){\r\n\r\n...
[ "0.7687511", "0.76343036", "0.75463665", "0.7534838", "0.7481758", "0.74796563", "0.74199957", "0.73658645", "0.73004246", "0.7198177", "0.7168723", "0.71537024", "0.70653754", "0.7063997", "0.70073694", "0.69964516", "0.6990444", "0.6987328", "0.6980304", "0.6980304", "0.696...
0.0
-1
Save all items to the cart
private function saveItems() { $this->storage->save($this->items); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function save(): void\n {\n if ($this->connection == 'database') {\n $this->cart->each(\n function ($item) {\n if ($cart = $this->storage->has($item['id'])) {\n $cart->update(\n [\n ...
[ "0.77006334", "0.7656624", "0.7605002", "0.75858235", "0.75247955", "0.7001633", "0.68210167", "0.681683", "0.68084854", "0.6778957", "0.67635655", "0.67142963", "0.6685901", "0.6548933", "0.6504954", "0.6390826", "0.6314578", "0.6292063", "0.62647027", "0.6259779", "0.625250...
0.7333073
5
Change item quantity in the cart
public function change($id, $quantity) { $this->loadItems(); if (isset($this->items[$id])) { $this->items[$id]->setQuantity($quantity); } $this->saveItems(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update_quantity()\n\t{\n\t\t$item = ORM::factory('cart_item', $this->input->post('id'));\n\t\t$quantity = $this->input->post('quantity');\n\t\t$this->cart->update_quantity($item->product, $item->variant, $quantity);\n\t\t\n\t\turl::redirect('cart');\n\t}", "public function changeQtyAction()\n ...
[ "0.84345835", "0.79758817", "0.78904253", "0.7739696", "0.77150273", "0.7635611", "0.76076293", "0.7559233", "0.7545109", "0.7508889", "0.74151874", "0.73155046", "0.7195504", "0.71945745", "0.7186388", "0.71679765", "0.7129428", "0.7128203", "0.70499873", "0.7047494", "0.704...
0.63563883
87
Removes an items from the cart
public function remove($id) { $this->loadItems(); if (array_key_exists($id, $this->items)) { unset($this->items[$id]); } $this->saveItems(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function remove($items = array())\n {\n if (($this->_checkCartRemove($items) === TRUE) && isset($this->_session['products'][$items['token']]) )\n {\n $cart = $this->_session['products'][$items['token']];\n unset($this->_session['products'][$items['token']]);\n ...
[ "0.78974086", "0.76858616", "0.75085753", "0.7496261", "0.748771", "0.74585634", "0.7336066", "0.7269179", "0.72423506", "0.7196607", "0.7170548", "0.71522534", "0.7123197", "0.7096081", "0.7062699", "0.70258814", "0.7019003", "0.70185167", "0.7005794", "0.699055", "0.6990102...
0.0
-1
Removes all items from the cart
public function clear() { $this->items = []; $this->saveItems(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clearCart(){\r\n\t\t$this->cart_items = array();\r\n\t\t$this->latestItemId = 1;\t\t\r\n\t}", "protected function removeAll()\n {\n if (isset($this->currentSession->cart)) {\n unset($this->currentSession->cart);\n }\n }", "public function clear() {\n\t\t$this->loa...
[ "0.8119539", "0.7881413", "0.777156", "0.7532916", "0.7453845", "0.74533695", "0.7423607", "0.7322221", "0.73215467", "0.73086977", "0.7289867", "0.7278434", "0.72028416", "0.71741563", "0.7153963", "0.7080745", "0.70703006", "0.69851065", "0.69818103", "0.69359267", "0.69134...
0.6706774
29
Returns all items from the cart
public function getItems() { $this->loadItems(); return $this->items; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCartItems($cart_id);", "public function get_cart_items()\n\t{\n\t\t$this->initiate_cart();\n\t\treturn $this->ci->session->cart_items;\n\t}", "function getCart(){\n \treturn $this->myCart->getList();\n }", "public function cartItems()\n {\n if(Auth::check()) //if user is l...
[ "0.7715779", "0.7671784", "0.7650585", "0.7584836", "0.7548737", "0.7513873", "0.7349169", "0.72980654", "0.7291972", "0.7269382", "0.7263285", "0.722936", "0.71350646", "0.7121039", "0.6979915", "0.6979915", "0.6979915", "0.6979915", "0.6979915", "0.6979915", "0.6979915", ...
0.65272903
69
Returns an item from the cart
public function getItem($id) { $this->loadItems(); return isset($this->items[$id]) ? $this->items[$id] : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCartItem() {\n\n if (!$this->cartItem) {\n $this->cartItem = $this->cartItemRepository->getbyId($this->route('item'));\n }\n return $this->cartItem;\n }", "public function getCart();", "public function findItem(string $sku): ?CartItem;", "public function ...
[ "0.7720997", "0.71519005", "0.69477266", "0.6878156", "0.6802791", "0.6791912", "0.678039", "0.66736186", "0.6664862", "0.66474235", "0.6645511", "0.6645511", "0.6645511", "0.66350526", "0.663405", "0.6624117", "0.6624117", "0.6611097", "0.6610956", "0.66051203", "0.66048944"...
0.0
-1
Returns ids array all items from the cart
public function getItemIds() { $this->loadItems(); $items = []; foreach ($this->items as $item) { $items[] = $item->getId(); } return $items; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getCartItemIds()\n\t{\n\t\t$ids = array();\n\n\t\tforeach (Data::getOrderItems(null) as $item) {\n\t\t\t$ids []= $item['PRODUCT_ID'];\n\t\t}\n\n\t\treturn $ids;\n\t}", "public function arrayItems() {\r\n $quoteId = Mage::getSingleton('checkout/session')->getQuote()->getId();\r\n ...
[ "0.8330658", "0.7985419", "0.77382225", "0.76747614", "0.7654739", "0.7560241", "0.7375885", "0.73395884", "0.73022985", "0.73022985", "0.7288595", "0.72762406", "0.72695196", "0.7265569", "0.7203442", "0.71824473", "0.7160177", "0.7155635", "0.712711", "0.71102655", "0.70837...
0.7736977
3
Returns total cost all items from the cart
public function getTotalCost() { $this->loadItems(); return $this->calculator->getCost($this->items); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getCartTotal(){\n\t\t$totalCost = 0;\n\t\t$cartInfo = $this->getCart();\n\t\t$cartInfoSize = sizeof($cartInfo);\n\t\t$cartInfoSize--;\n\t\tfor($i=0; $i<=$cartInfoSize; $i++) {\n\t\t\t$totalCost = $totalCost + $cartInfo[$i][\"price\"];\n\t\t}\n\n\t\treturn $totalCost;\t\n\t}", "public function get_total_...
[ "0.8022281", "0.77250654", "0.7674297", "0.76469654", "0.76270336", "0.7526365", "0.7493104", "0.7448445", "0.7321985", "0.72973824", "0.72194195", "0.7181885", "0.7154182", "0.71482825", "0.7148271", "0.71408683", "0.71266395", "0.7116544", "0.7110881", "0.70966923", "0.7084...
0.75893563
5
Returns total count all items from the cart
public function getTotalCount() { $this->loadItems(); return $this->calculator->getCount($this->items); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function total_items()\n {\n $total_items = 0;\n $items = $this->_session->offsetGet('products');\n if ($this->_isCartArray($items) === TRUE)\n {\n foreach ($items as $key)\n {\n $total_items =+ ($total_items + $key['qty']);\n }\...
[ "0.8276823", "0.8246973", "0.81573355", "0.8098745", "0.8087005", "0.8017282", "0.7999781", "0.79988486", "0.79161435", "0.7842966", "0.78372025", "0.7836386", "0.7818407", "0.78020567", "0.77706397", "0.7731166", "0.7711051", "0.7702444", "0.7698584", "0.768706", "0.76610065...
0.7486349
31
Find all the Resources used
public function findAll() { try { // Create the MySQL Statement $result = $this->conn->prepare("SELECT * FROM `resource`"); $result->execute(); // Check if the Result has any rows if($result->rowCount() >= 1) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllResources() {\n\t\t\t$res=array();\n\t\t\t$res=$this->resources;\n\n\t\t\tforeach ($this->categories as $category)\n\t\t\t\t$res=array_merge($res,$category->getAllResources());\n\n\t\t\treturn $res;\n\t\t}", "abstract protected function getResources();", "public function getResources()\n ...
[ "0.6978817", "0.69781786", "0.6936818", "0.6936818", "0.6936818", "0.6936818", "0.6859763", "0.68049616", "0.67791265", "0.6761215", "0.6751364", "0.6675676", "0.65873057", "0.6580867", "0.65629035", "0.64078796", "0.63622993", "0.6342821", "0.6325454", "0.63215613", "0.62902...
0.0
-1
Before action instructions for to do before call actions
public function beforeAction($action) { if ($this->checkBadAccess($action->id)) { return $this->redirect(['/']); } $bitacora = new Bitacora(); $bitacora->register( Yii::t( 'app', 'showing the view' ), 'be...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function beforeAction () {\n\t}", "protected function before(){}", "protected abstract function before();", "abstract protected function before();", "public function pre_action()\n\t{\n\t\tparent::pre_action();\n\t}", "protected function _before()\n\t{\n\t\t\n\t}", "protected function beforeA...
[ "0.7926384", "0.78209543", "0.7800114", "0.7618145", "0.756786", "0.75388455", "0.75350845", "0.75129116", "0.74888945", "0.74783844", "0.7478383", "0.7379843", "0.7358584", "0.7286", "0.72693646", "0.72387", "0.7183379", "0.7183379", "0.71614164", "0.71326107", "0.7097502", ...
0.0
-1
Creates a new Permission model. If creation is successful, the browser will be redirected to the 'view' page.
public function actionCreate() { $model = new Permission(); if ($model->load(Yii::$app->request->post())) { $this->_saveRecord($model, 'permission_id'); } return $this->render(ACTION_CREATE, [MODEL => $model, 'titleView' => 'Create']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCreate()\n {\n $model = new PermissionForm();\n $post = Yii::$app->request->post();\n unset($this -> menuList[0]);\n if ($model->load($post) && $model->save()) {\n $model->menu_id = $post['PermissionForm']['menu_id'];\n $model->save();\n ...
[ "0.80862355", "0.74901825", "0.74845266", "0.74669313", "0.74579203", "0.74530274", "0.7448191", "0.7389891", "0.7350964", "0.734821", "0.7344983", "0.730681", "0.730681", "0.7271402", "0.7271402", "0.7264901", "0.7261882", "0.72546726", "0.7240605", "0.71993816", "0.71978396...
0.84697866
0
Deletes an existing row of Permission model. If deletion is successful, the browser will be redirected to the 'index' page.
public function actionDelete($id) { $deleteRecord = new DeleteRecord(); if (!$deleteRecord->isOkPermission(ACTION_DELETE)) { return $this->redirect([ACTION_INDEX]); } $model = $this->findModel($id); try { $common = new Common(); $status =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete() {\r\n $this->db->delete(\"assets_permissions\", $this->db->quoteInto(\"id = ?\", $this->model->getId()));\r\n }", "function delete_permission() {\n\t\t$this->db->where('permission_id', $_POST['id']);\n\t\t$this->db->delete('system_security.permission');\n\t\techo \"{error: '',m...
[ "0.753896", "0.742335", "0.7336915", "0.72244364", "0.7154113", "0.7144295", "0.70152587", "0.70063823", "0.6976089", "0.6938195", "0.68631756", "0.6841392", "0.68153137", "0.68074036", "0.67905515", "0.6753169", "0.6728657", "0.6713335", "0.6701199", "0.66810846", "0.6675113...
0.0
-1
Finds the Permission model based on its primary key value. If the model is not found, a 404 HTTP exception will be thrown.
protected function findModel($permissionId) { $permissionId = self::stringDecode($permissionId); if (($model = Permission::findOne($permissionId)) !== null) { return $model; } $event = Yii::t( 'app', 'The requested page does not exist {id}', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function find(int $id): Permission\n {\n return Permission::find($id);\n }", "public function findPermissionById($permissionId);", "protected function _getPermissionModel()\n\t{\n\t\treturn $this->getModelFromCache('XenForo_Model_Permission');\n\t}", "protected function findModel($id)\n ...
[ "0.6860788", "0.67522484", "0.6621091", "0.6521287", "0.6306831", "0.6301965", "0.6232957", "0.6203481", "0.6186248", "0.6177765", "0.60999924", "0.6051429", "0.6030567", "0.60105306", "0.6010337", "0.60079485", "0.5969247", "0.59671825", "0.5952619", "0.5928692", "0.59280086...
0.67843777
1
Select object, loaded via ajax method
public function actionActiondropdown($id) { if (Yii::$app->request->isAjax) { echo Common::relatedDropdownList( Action::class, self::CONTROLLER_ID, $id, 'action_id', 'action_name', 'action_name' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function selectAjax(Request $request) {\n if($request->ajax()){\n \t\t$cost = Part::where('part_number',$request->part_id)->pluck(\"cost\")->all();\n \t\t$data = view('purchaseOrders.ajax-select',compact('cost'))->render();\n \t\treturn response()->json(['options'=>$data]);\n \t}\n }",...
[ "0.611564", "0.59635013", "0.5819561", "0.56542075", "0.56440973", "0.55629385", "0.55489326", "0.55189013", "0.54566455", "0.5445164", "0.54258806", "0.54258806", "0.5411639", "0.54069906", "0.5383189", "0.53805023", "0.5376413", "0.5365321", "0.53511757", "0.53405", "0.5336...
0.0
-1
Lists all Permission models.
public function actionIndex() { $sm_permission = new PermissionSearch(); $dp_permission = $sm_permission->search( Yii::$app->request->queryParams ); $pageSize = $this->pageSize(); $dp_permission->pagination->pageSize = $pageSize; return $this->render( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function permissions()\n {\n return $this->permissionModel->findAll();\n }", "public function index()\n {\n return $permissions = $this->permission->all();\n }", "public function all() : Collection\n {\n return Permission::all();\n }", "public static function get...
[ "0.7682572", "0.7612452", "0.74533206", "0.74398625", "0.7430302", "0.74156976", "0.74156976", "0.7161744", "0.7125186", "0.6989954", "0.69665575", "0.6955749", "0.69293696", "0.6899438", "0.68826497", "0.6848176", "0.67938596", "0.6786612", "0.678222", "0.676751", "0.6761761...
0.665757
35
Delete many records of this table
public function actionRemove() { $delete_record = new DeleteRecord(); $result = Yii::$app->request->post('selection'); if (!$delete_record->isOkPermission(ACTION_DELETE) || !$delete_record->isOkSelection($result) ) { return $this->redirect([ACTION_INDEX]); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function deleteAll();", "public function deleteAll();", "public function deleteAll();", "public function deleteAll();", "public function deleteAll(){\n try {\n $this->getTable()->delete();\n } catch (\\Exception $e) {\n $this->handleException($e);\n ...
[ "0.7314146", "0.72768146", "0.72768146", "0.72768146", "0.7122341", "0.7057333", "0.7023772", "0.69342214", "0.69151515", "0.69097346", "0.68996966", "0.6846462", "0.6814651", "0.6786781", "0.66919947", "0.6688225", "0.6674263", "0.66140956", "0.6610268", "0.6604", "0.6560458...
0.0
-1
Updates an existing Permission model. If update is successful, the browser will be redirected to the 'view' page.
public function actionUpdate($id) { $model = $this->findModel($id); if ($model->load(Yii::$app->request->post())) { $this->_saveRecord($model, 'permission_id'); } return $this->render( ACTION_CREATE, [ MODEL => $model, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update(PermissionRequest $request, $id)\n {\n try {\n $model = $this->model->find($id);\n // $this->authorize('update', $model);\n\n $model->fill($request->all())->save();\n\n flash('更新操作成功', 'success');\n return redirect()->back();\n...
[ "0.71113694", "0.7051249", "0.6948477", "0.6840207", "0.6784284", "0.6779869", "0.6774511", "0.675797", "0.6745133", "0.67407125", "0.673798", "0.67277944", "0.66975456", "0.6685757", "0.6683766", "0.66778255", "0.6649236", "0.6648501", "0.6646448", "0.66422653", "0.6638117",...
0.687027
3
Displays a single Permission model.
public function actionView($id) { $model = $this->findModel($id); $event = Yii::t('app', 'view record {id}', ['id' => $model->permission_id]); $bitacora = new Bitacora(); $bitacora->register($event, 'actionView', MSG_INFO); return $this->render(ACTION_VIEW, [MODEL => $model...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show()\n {\n return view('permission::show');\n }", "public function show(Permission $permission)\n {\n //\n }", "public function show(Permission $permission)\n {\n //\n }", "public function show(Permission $permission)\n {\n //\n }", "pub...
[ "0.771366", "0.76149035", "0.76149035", "0.76149035", "0.7432771", "0.7334006", "0.73278373", "0.73240834", "0.72935504", "0.71484375", "0.7130245", "0.70957357", "0.70554715", "0.7048526", "0.6973128", "0.68980294", "0.68906885", "0.6873226", "0.68650776", "0.6831948", "0.67...
0.6638089
33
Handle an incoming request.
public function handle($request, Closure $next) { $user = Auth::user(); if (($user == null || $user->plan == null || $user->membership == null || !$user->membership->isValid()) && !superAdmin()) { return errorTo('You need to have an active subscription to access the page.', route('home'));...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function handle_request();", "public function handleRequest();", "public function handleRequest();", "public function handleRequest();", "protected abstract function handleRequest();", "abstract public function handleRequest($request);", "abstract public function handleRequest(Request $...
[ "0.8299201", "0.8147294", "0.8147294", "0.8147294", "0.8127764", "0.7993589", "0.7927201", "0.7912899", "0.7899075", "0.76317674", "0.75089735", "0.7485808", "0.74074036", "0.7377414", "0.736802", "0.7294553", "0.72389543", "0.7230166", "0.72108", "0.71808434", "0.7170364", ...
0.0
-1
Set values for the properties to allow for testing the AssertAttributeHelper.
public function setProperties() { $this->public_prop = 'public'; $this->protected_prop = 100; $this->private_prop = true; // Set a non-predefined property. $this->dynamic = new self(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setProperties()\n {\n foreach ($this->data as $key => $value) {\n $this->$key = $value;\n }\n }", "public function testSetProperties() {\n\t\t$this->CurrentConditions->update(\n\t\t\t.70,\n\t\t\t.33,\n\t\t\t.34\n\t\t);\n\n\t\t$reflection = new ReflectionClass($th...
[ "0.65301096", "0.6334555", "0.60540706", "0.6031574", "0.596571", "0.5933673", "0.59311944", "0.58942866", "0.58838814", "0.5764461", "0.574667", "0.57403624", "0.57213587", "0.5668403", "0.5637653", "0.5619263", "0.5611231", "0.557623", "0.55737114", "0.5559365", "0.555712",...
0.6174903
2
This method is called before each test.
protected function setUp(): void { parent::setUp(); $this->postScriptumServer = new PostScriptumServer(new ServerConnectionInfo('', 0, ''), new TestingCommandRunner()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "protected function setUp() {}", "...
[ "0.8559584", "0.8559584", "0.8559584", "0.8559584", "0.8559584", "0.8559584", "0.8559584", "0.8559584", "0.8559584", "0.8559584", "0.8559584", "0.8559584", "0.8559584", "0.8559584", "0.8559584", "0.8559387", "0.8559387", "0.8559387", "0.8559387", "0.8559387", "0.8559387", "...
0.0
-1
Verifies the currentMap can properly be retrieved.
public function test_current_map() { $this->assertSame('Heelsum Single 01', $this->postScriptumServer->currentMap()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasMaps(){\n return $this->_has(15);\n }", "public function valid()\n {\n if ($this->key() < count($this->map)) {\n return true;\n }\n return false;\n }", "public function test_current_map()\n {\n $this->assertSame('Al Basrah AAS v1', $thi...
[ "0.64523774", "0.64410555", "0.6375801", "0.6375801", "0.6144012", "0.6092912", "0.60356134", "0.59614795", "0.5868854", "0.58504844", "0.5806902", "0.57652193", "0.5625483", "0.5610382", "0.56039923", "0.55549026", "0.5554614", "0.55375725", "0.55181533", "0.5505959", "0.549...
0.63419557
4
Verifies the nextMap can properly be retrieved.
public function test_next_map() { $this->assertSame('Driel Single 01', $this->postScriptumServer->nextMap()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function valid()\n {\n if ($this->key() < count($this->map)) {\n return true;\n }\n return false;\n }", "protected function hasMappingErrorOccurred() {}", "public function test_next_map()\n {\n $this->assertSame('Belaya AAS v1', $this->btwServer->nextMap()...
[ "0.6516455", "0.6312409", "0.6198853", "0.608791", "0.608383", "0.6065419", "0.6012295", "0.5837406", "0.5720046", "0.57073665", "0.56728506", "0.55918354", "0.54946816", "0.54834014", "0.5476507", "0.5465668", "0.54432833", "0.54375935", "0.5434883", "0.54344213", "0.5410341...
0.63179684
1
Verifies the player list can properly be retrieved.
public function test_list_players() { $players = $this->postScriptumServer->listPlayers(); $this->assertCount(77, $players); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_list_players()\n {\n $players = $this->btwServer->listPlayers();\n\n $this->assertCount(0, $players);\n }", "public function test_list_players()\n {\n $players = $this->btwServer->listPlayers();\n\n $this->assertCount(77, $players);\n }", "public fun...
[ "0.7050542", "0.70244765", "0.66317576", "0.6226063", "0.6121532", "0.5895996", "0.58871627", "0.5840594", "0.58177185", "0.57683074", "0.57214993", "0.5680952", "0.55915695", "0.555837", "0.554711", "0.55350536", "0.5531993", "0.5530284", "0.54585344", "0.54585344", "0.54506...
0.7006917
2
Verifies the disconnected player list can properly be retrieved.
public function test_list_disconnected_players() { $playerList = $this->postScriptumServer->listDisconnectedPlayers(); $this->assertCount(3, $playerList); foreach ($playerList as $player) { if ($player->getId() === 88) { $this->assertSame(195, $player->getDiscon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_list_disconnected_players()\n {\n $playerList = $this->btwServer->listDisconnectedPlayers();\n\n $this->assertCount(0, $playerList);\n }", "public function test_list_disconnected_players()\n {\n $playerList = $this->btwServer->listDisconnectedPlayers();\n\n ...
[ "0.77570873", "0.76441556", "0.61054873", "0.6088999", "0.60659385", "0.60154957", "0.601074", "0.58628076", "0.58405006", "0.57007873", "0.5678933", "0.56211114", "0.54537207", "0.52979136", "0.52176505", "0.5153377", "0.5098705", "0.50837123", "0.5053778", "0.49932352", "0....
0.7647972
1
Verifies the broadcast command does work properly
public function test_admin_Broadcast() { $this->assertTrue($this->postScriptumServer->adminBroadcast('Hello World!')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isBroadcasted();", "public function test_admin_Broadcast()\n {\n $this->assertTrue($this->btwServer->adminBroadcast('Hello World!'));\n }", "public function test_admin_Broadcast()\n {\n $this->assertTrue($this->btwServer->adminBroadcast('Hello World!'));\n }", "publi...
[ "0.69082236", "0.66991156", "0.66991156", "0.6169791", "0.6169791", "0.57542425", "0.5725016", "0.5725016", "0.5725016", "0.5725016", "0.5693092", "0.56548315", "0.5500017", "0.5326541", "0.53026444", "0.5294171", "0.5219728", "0.51821285", "0.51215005", "0.5089883", "0.50808...
0.67587143
1
Verifies the change map command does work properly
public function test_admin_change_map() { $this->assertTrue($this->postScriptumServer->adminChangeMap('Heelsum Single 01')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_admin_change_map()\n {\n $this->assertTrue($this->btwServer->adminChangeMap('Al Basrah AAS v1'));\n }", "public function test_admin_change_map()\n {\n $this->assertTrue($this->btwServer->adminChangeMap('Al Basrah AAS v1'));\n }", "public function adminChangeMap(st...
[ "0.706797", "0.706797", "0.6732472", "0.5693152", "0.56480783", "0.5568288", "0.55609846", "0.55246776", "0.5499689", "0.5499689", "0.54659414", "0.5463292", "0.5347335", "0.53297144", "0.53146344", "0.5309306", "0.52852696", "0.5256249", "0.5212162", "0.52060014", "0.5198037...
0.6946586
2
Verifies the set next map command does work properly
public function test_admin_set_next_map() { $this->assertTrue($this->postScriptumServer->adminSetNextMap('Heelsum Single 01')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_next_map()\n {\n $this->assertSame('Driel Single 01', $this->postScriptumServer->nextMap());\n }", "public function test_admin_set_next_map()\n {\n $this->assertTrue($this->btwServer->adminSetNextMap('Al Basrah AAS v1'));\n }", "public function test_admin_set_next...
[ "0.7176545", "0.70906556", "0.7056645", "0.6848051", "0.6822363", "0.66957504", "0.6047744", "0.59268945", "0.58230567", "0.5736064", "0.5708287", "0.5708287", "0.56693184", "0.55760986", "0.55047345", "0.5459054", "0.5459054", "0.54217076", "0.53869563", "0.5307856", "0.5269...
0.72295284
0
Verifies the restart match command does work properly
public function test_admin_restart_match() { $this->assertTrue($this->postScriptumServer->adminRestartMatch()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_admin_restart_match()\n {\n $this->assertTrue($this->btwServer->adminRestartMatch());\n }", "public function adminRestartMatch() : bool\n {\n return $this->_consoleCommand('AdminRestartMatch', '', 'Game restarted');\n }", "public function test_admin_restart_match(...
[ "0.73609245", "0.7221903", "0.7208859", "0.6367601", "0.6331943", "0.6096358", "0.5967439", "0.5864611", "0.5577808", "0.55695707", "0.5523084", "0.5491819", "0.54550093", "0.5379564", "0.53795165", "0.5377231", "0.53632176", "0.53461796", "0.52655584", "0.5247932", "0.523564...
0.7437495
0
Verifies the end match command does work properly
public function test_admin_end_match() { $this->assertTrue($this->postScriptumServer->adminEndMatch()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function adminEndMatch() : bool\n {\n return $this->_consoleCommand('AdminEndMatch', '', 'Match ended');\n }", "public function test_admin_end_match()\n {\n $this->assertTrue($this->btwServer->adminEndMatch());\n }", "public function test_admin_end_match()\n {\n $this...
[ "0.74820113", "0.6888107", "0.63732845", "0.6371162", "0.62928724", "0.61902434", "0.60692745", "0.59760344", "0.5940732", "0.5898977", "0.58609116", "0.5847114", "0.58043635", "0.5791831", "0.57390827", "0.57390827", "0.57345915", "0.5734372", "0.5659402", "0.5623187", "0.56...
0.69672436
1
Verifies the admin set max num players command does work properly
public function test_admin_set_max_num_players() { $this->assertTrue($this->postScriptumServer->adminSetMaxNumPlayers(78)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_admin_set_max_num_players()\n {\n $this->assertTrue($this->btwServer->adminSetMaxNumPlayers(78));\n }", "public function test_admin_set_max_num_players()\n {\n $this->assertTrue($this->btwServer->adminSetMaxNumPlayers(78));\n }", "public function adminSetMaxNumPla...
[ "0.8642783", "0.8642783", "0.70288604", "0.6582735", "0.6343313", "0.6321232", "0.62790173", "0.6207885", "0.6161848", "0.6079425", "0.5897885", "0.5821605", "0.5804494", "0.57887733", "0.5751407", "0.57191855", "0.5702126", "0.56975454", "0.5673302", "0.5585022", "0.5541913"...
0.8645664
0
Verifies the admin set max num players command does work properly
public function test_admin_set_password() { $this->assertTrue($this->postScriptumServer->adminSetServerPassword('secret')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_admin_set_max_num_players()\n {\n $this->assertTrue($this->postScriptumServer->adminSetMaxNumPlayers(78));\n }", "public function test_admin_set_max_num_players()\n {\n $this->assertTrue($this->btwServer->adminSetMaxNumPlayers(78));\n }", "public function test_adm...
[ "0.864593", "0.86432284", "0.86432284", "0.7029466", "0.658319", "0.63417625", "0.63219035", "0.6279764", "0.6209093", "0.6161731", "0.6078422", "0.5896648", "0.5820766", "0.58046824", "0.5787694", "0.57508343", "0.5719635", "0.57011026", "0.56964684", "0.5673186", "0.5585004...
0.0
-1
Verifies the kick command does work properly
public function test_admin_kick() { $this->assertTrue($this->postScriptumServer->adminKick('Marcel', 'Test')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_admin_kick()\n {\n $this->assertTrue($this->btwServer->adminKick('Marcel', 'Test'));\n }", "public function test_admin_kick_by_id()\n {\n $this->assertTrue($this->postScriptumServer->adminKickById(1, 'Test'));\n }", "public function test_admin_kick_by_id()\n {\...
[ "0.6991278", "0.62694955", "0.6166438", "0.569332", "0.5669721", "0.56419355", "0.55808455", "0.55148077", "0.5514137", "0.5499427", "0.54472655", "0.5446986", "0.54001576", "0.5393819", "0.5324072", "0.525964", "0.52108175", "0.520291", "0.51139", "0.5081888", "0.5005252", ...
0.70317525
0
Verifies the kick by id command does work properly
public function test_admin_kick_by_id() { $this->assertTrue($this->postScriptumServer->adminKickById(1, 'Test')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_admin_kick_by_id()\n {\n $this->assertTrue($this->btwServer->adminKickById(1, 'Test'));\n }", "public function adminKickById(int $id, string $reason = '') : bool\n {\n return $this->_consoleCommand('AdminKickById', $id . ' ' . $reason, 'Kicked player ');\n }", "pu...
[ "0.7142423", "0.6444565", "0.59535444", "0.59183806", "0.5911984", "0.59015626", "0.5898159", "0.58456606", "0.56715405", "0.56634456", "0.5462734", "0.5407593", "0.5350294", "0.527448", "0.52650887", "0.5239024", "0.5181409", "0.51670814", "0.5155887", "0.5153842", "0.510887...
0.71932113
0
Verifies the ban command does work properly
public function test_admin_ban() { $this->assertTrue($this->postScriptumServer->adminBan('Marcel', '1h', 'Test')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ban();", "public function test_admin_ban()\n {\n $this->assertTrue($this->btwServer->adminBan('Marcel', '1h', 'Test'));\n }", "public function banUser(){\n if($this->adminVerify()){\n\n }else{\n echo \"Vous devez avoir les droits administrateur pour accéder...
[ "0.7686278", "0.7418485", "0.71322197", "0.6647474", "0.66345525", "0.6633356", "0.6596229", "0.6592005", "0.6493093", "0.6405045", "0.63256747", "0.6246675", "0.6063491", "0.60567814", "0.60476315", "0.60313886", "0.59893954", "0.5979146", "0.59675825", "0.5947278", "0.59390...
0.7303545
2
Verifies the ban by id command does work properly
public function test_admin_ban_by_id() { $this->assertTrue($this->postScriptumServer->adminBanById(1, '1h', 'Test')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_admin_ban_by_id()\n {\n $this->assertTrue($this->btwServer->adminBanById(1, '1h', 'Test'));\n }", "public function banORunBan($id)\n {\n try {\n $instance = $this->find($id);\n if ($instance->banned === 0) {\n \\Toastr::warning(tran...
[ "0.7984984", "0.70188737", "0.6972131", "0.68740016", "0.65127015", "0.6477991", "0.6394135", "0.6374035", "0.63722444", "0.6286647", "0.6277863", "0.62589586", "0.624427", "0.6225984", "0.6191506", "0.608635", "0.59782594", "0.59320784", "0.58829206", "0.5880357", "0.5861235...
0.79278874
1
Verifies the disconnect method works without any exception
public function test_squad_server_admin_force_team_change() { $this->assertTrue($this->postScriptumServer->adminForceTeamChange('Test')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function disconnectIfConnected() {}", "public function testDisconnect()\n {\n $this->server->disconnect();\n\n # Check a standard disconnection\n $this->server->connect();\n $this->server->disconnect();\n\n # Ensure a second disconnect is cool\n $this->asser...
[ "0.777693", "0.7557172", "0.74165106", "0.72449124", "0.72449124", "0.72449124", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.71351945", "0.6982229", "0.6982229", "0.69474566", "0.69381267", "0.69185024", "0.690813...
0.0
-1
Verifies the disconnect method works without any exception
public function test_squad_server_admin_force_team_change_by_id() { $this->assertTrue($this->postScriptumServer->adminForceTeamChange(0)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function disconnectIfConnected() {}", "public function testDisconnect()\n {\n $this->server->disconnect();\n\n # Check a standard disconnection\n $this->server->connect();\n $this->server->disconnect();\n\n # Ensure a second disconnect is cool\n $this->asser...
[ "0.777693", "0.7557172", "0.74165106", "0.72449124", "0.72449124", "0.72449124", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.71351945", "0.6982229", "0.6982229", "0.69474566", "0.69381267", "0.69185024", "0.690813...
0.0
-1
Verifies the disconnect method works without any exception
public function test_squad_server_admin_disband_squad() { $this->assertTrue($this->postScriptumServer->adminForceTeamChange(1, 1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function disconnectIfConnected() {}", "public function testDisconnect()\n {\n $this->server->disconnect();\n\n # Check a standard disconnection\n $this->server->connect();\n $this->server->disconnect();\n\n # Ensure a second disconnect is cool\n $this->asser...
[ "0.777693", "0.7557172", "0.74165106", "0.72449124", "0.72449124", "0.72449124", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.71351945", "0.6982229", "0.6982229", "0.69474566", "0.69381267", "0.69185024", "0.690813...
0.0
-1
Verifies the disconnect method works without any exception
public function test_squad_server_admin_remove_player_from_squad() { $this->assertTrue($this->postScriptumServer->adminRemovePlayerFromSquad('Test')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function disconnectIfConnected() {}", "public function testDisconnect()\n {\n $this->server->disconnect();\n\n # Check a standard disconnection\n $this->server->connect();\n $this->server->disconnect();\n\n # Ensure a second disconnect is cool\n $this->asser...
[ "0.7777244", "0.75565845", "0.7416151", "0.72451764", "0.72451764", "0.72451764", "0.71648747", "0.71648747", "0.71648747", "0.71648747", "0.71648747", "0.71648747", "0.71648747", "0.71648747", "0.7135212", "0.6982127", "0.6982127", "0.6947707", "0.69385296", "0.69186467", "0...
0.0
-1
Verifies the disconnect method works without any exception
public function test_squad_server_admin_remove_player_from_squad_by_id() { $this->assertTrue($this->postScriptumServer->adminRemovePlayerFromSquadById(0)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function disconnectIfConnected() {}", "public function testDisconnect()\n {\n $this->server->disconnect();\n\n # Check a standard disconnection\n $this->server->connect();\n $this->server->disconnect();\n\n # Ensure a second disconnect is cool\n $this->asser...
[ "0.777693", "0.7557172", "0.74165106", "0.72449124", "0.72449124", "0.72449124", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.71351945", "0.6982229", "0.6982229", "0.69474566", "0.69381267", "0.69185024", "0.690813...
0.0
-1
Verifies the disconnect method works without any exception
public function test_squad_server_admin_warn() { $this->assertTrue($this->postScriptumServer->adminWarn('Test', 'Hello World!')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function disconnectIfConnected() {}", "public function testDisconnect()\n {\n $this->server->disconnect();\n\n # Check a standard disconnection\n $this->server->connect();\n $this->server->disconnect();\n\n # Ensure a second disconnect is cool\n $this->asser...
[ "0.777693", "0.7557172", "0.74165106", "0.72449124", "0.72449124", "0.72449124", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.71351945", "0.6982229", "0.6982229", "0.69474566", "0.69381267", "0.69185024", "0.690813...
0.0
-1
Verifies the disconnect method works without any exception
public function test_squad_server_admin_warn_by_id() { $this->assertTrue($this->postScriptumServer->adminWarnById(0, 'Hello World!')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function disconnectIfConnected() {}", "public function testDisconnect()\n {\n $this->server->disconnect();\n\n # Check a standard disconnection\n $this->server->connect();\n $this->server->disconnect();\n\n # Ensure a second disconnect is cool\n $this->asser...
[ "0.777693", "0.7557172", "0.74165106", "0.72449124", "0.72449124", "0.72449124", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.7164282", "0.71351945", "0.6982229", "0.6982229", "0.69474566", "0.69381267", "0.69185024", "0.690813...
0.0
-1
Verifies the disconnect method works without any exception
public function test_squad_server_disconnect() { $this->assertNull($this->postScriptumServer->disconnect()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function disconnectIfConnected() {}", "public function testDisconnect()\n {\n $this->server->disconnect();\n\n # Check a standard disconnection\n $this->server->connect();\n $this->server->disconnect();\n\n # Ensure a second disconnect is cool\n $this->asser...
[ "0.7777244", "0.75565845", "0.7416151", "0.72451764", "0.72451764", "0.72451764", "0.71648747", "0.71648747", "0.71648747", "0.71648747", "0.71648747", "0.71648747", "0.71648747", "0.71648747", "0.7135212", "0.6982127", "0.6982127", "0.6947707", "0.69385296", "0.69186467", "0...
0.68587416
23
Display user friendly error messages.
public function indexView() { // create custom path to template to avoid complex directory structures $view_file = __DIR__ . DIRECTORY_SEPARATOR .'ErrorView.phtml'; $view = new View($view_file); $code = intval($this->request[0]); list($code, $short, $long) = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function DisplayError()\n\t\t{\n\t\t\techo \"<div>\" . $this->error_message . \"</div>\";\n\t\t}", "public function showError();", "public function display_error($msg){\n \n }", "function displayError(){\n\t\tprint \"<div class=\\\"validationerror\\\">\";\n\t\tfor ($i=0;$i<count($this->error);$i++)...
[ "0.7883885", "0.7883064", "0.77275234", "0.7568589", "0.7421737", "0.74103326", "0.73702157", "0.7292104", "0.7284852", "0.7276367", "0.72644156", "0.7247669", "0.72269577", "0.7224591", "0.71912116", "0.71616125", "0.7133253", "0.7074319", "0.7051967", "0.7033873", "0.702341...
0.0
-1
Return short and long descriptions for HTTP error codes.
private function getErrorDetails($code) { if (!isset($this->error_details[$code])) { $code = 404; } list($short, $long) = $this->error_details[$code]; // append exception output if (!is_null($this->exception)) { $long = sprintf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function error( $code, $desc ) {\n\t\t$codes = array();\n\t\t$codes[400] = 'Bad Request';\n\t\t$codes[401] = 'Unauthorized';\n\t\t$codes[403] = 'Forbidden';\n\t\t$codes[404] = 'Not Found';\n\t\t$codes[405] = 'Method Not Allowed';\n\t\t$codes[406] = 'Not Acceptable';\n\t\t$codes[501] = 'Not Implemented';\n\t...
[ "0.73382276", "0.7187227", "0.6890476", "0.68526995", "0.6646916", "0.66284716", "0.6571516", "0.6535722", "0.65039366", "0.64789367", "0.64746636", "0.6452553", "0.64498425", "0.6437008", "0.637233", "0.63466275", "0.634254", "0.631513", "0.6314962", "0.6314705", "0.6306479"...
0.62926596
21
Set the exception to handle, which is used to generate a custom error message.
public function setException($err) { $this->exception = $err; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setExceptionHandler()\n {\n new ExceptionHandler();\n }", "public static function set ()\n {\n set_error_handler([__CLASS__, 'handle']);\n }", "public function handle() {\n throw new Exception(\"This is a test exception.\");\n }", "public static function...
[ "0.67127323", "0.6669807", "0.65453446", "0.6504442", "0.64260197", "0.6398304", "0.63810664", "0.63382185", "0.6274508", "0.6187444", "0.61745644", "0.61180365", "0.6109779", "0.60826457", "0.6002602", "0.59925616", "0.5987312", "0.59670925", "0.59663886", "0.5957488", "0.59...
0.60083765
14
Create a new controller instance.
public function __construct() { $this->middleware('auth'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createController()\n {\n $this->createClass('controller');\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this-...
[ "0.82679385", "0.81739837", "0.7811711", "0.7706132", "0.76824135", "0.76599807", "0.7486886", "0.7407581", "0.72973657", "0.72537446", "0.71976084", "0.7175448", "0.70148426", "0.6989921", "0.698332", "0.69719964", "0.6963479", "0.69347966", "0.6898294", "0.68923163", "0.687...
0.0
-1
/ List all available items
public function index() { if (!has_permission('items', '', 'view')) { access_denied('Invoice Items'); } if ($this->input->is_ajax_request()) { $this->perfex_base->get_table_data('invoice_items'); } $this->load->model('taxes_model'); $d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function ge...
[ "0.75065845", "0.75065845", "0.75065845", "0.75065845", "0.75065845", "0.75065845", "0.75065845", "0.75065845", "0.75065845", "0.75065845", "0.75065845", "0.75065845", "0.75065845", "0.7506436", "0.7506436", "0.7413543", "0.7413543", "0.72705233", "0.71902233", "0.7186648", "...
0.0
-1
/ Edit or update items / ajax request /
public function manage() { if (has_permission('items', '', 'view')) { if ($this->input->post()) { $data = $this->input->post(); if ($data['itemid'] == '') { if (!has_permission('items', '', 'create')) { header('HT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function postEditItems()\n\t{\n\t\tif (!$this->request->ajax()) { return $this->ajaxErrorResponse(); }\n\n\t\t// Get the properties that will be applied to all items.\n\t\t$properties = [\n\t\t\t'buyRaw' => $this->request->input('buyRaw' ) ? true : false,\n\t\t\t'buyRecycled' => $this->request->...
[ "0.76676667", "0.6965389", "0.6912887", "0.6692407", "0.66850233", "0.66680074", "0.6642107", "0.6634659", "0.6607492", "0.6596909", "0.65926504", "0.6563988", "0.65273917", "0.6466764", "0.64519805", "0.644165", "0.6422748", "0.64189076", "0.64175564", "0.64175564", "0.64175...
0.632244
33
/ Get item by id / ajax
public function get_item_by_id($id) { if ($this->input->is_ajax_request()) { $item = $this->invoice_items_model->get($id); $item->long_description = nl2br($item->long_description); echo json_encode($item); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getItem() \n {\n $this->checkUserIsLogged();\n $params = Route::getUrlParameters();\n $id = $params['id'];\n try {\n $item = new Item;\n $item->getItem($id);\n View::renderJson($item);\n } catch (Exception $e) {\n View::renderJson(['status' => 0, 'message' => $e]...
[ "0.7390577", "0.7280987", "0.72175485", "0.70783985", "0.70016056", "0.69322383", "0.69322383", "0.69322383", "0.69322383", "0.69322383", "0.69322383", "0.69322383", "0.69322383", "0.69322383", "0.69322383", "0.69322383", "0.69322383", "0.69322383", "0.69322383", "0.69322383", ...
0.7200874
3
/ Get all items
public function get_all_items_ajax() { if ($this->input->is_ajax_request()) { echo json_encode($this->invoice_items_model->get_all_items_ajax()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAll()\n {\n \tif(!$this->isEmpty()){\n \t\treturn $this->items;\n \t}\n }", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "publ...
[ "0.8440427", "0.82528967", "0.82528967", "0.82528967", "0.82528967", "0.82528967", "0.82528967", "0.82528967", "0.82528967", "0.82528967", "0.82528967", "0.82528967", "0.82528967", "0.82528967", "0.8200573", "0.8119566", "0.80795264", "0.8062162", "0.8062162", "0.80440855", "...
0.0
-1
TODO: Actually implement this.
public function findAtomByRef(DivinerAtomRef $ref) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function __init__() { }", "final private function __construct() {}", "final private function __construct() {}", "protected final function __construct() {}", "final private function __construct() { }", "final private function __construct() { }", "final private function __construct() { }", "p...
[ "0.6160534", "0.59430444", "0.59430444", "0.58803374", "0.5865156", "0.5865156", "0.5865156", "0.5773414", "0.5770559", "0.5755509", "0.5740756", "0.5731984", "0.57191294", "0.57152593", "0.57152593", "0.57152593", "0.57152593", "0.57152593", "0.57152593", "0.57152593", "0.57...
0.0
-1
Run the database seeds.
public function run() { $faker = Faker\Factory::create('vi_VN'); $limit = 10; DB::table('users')->truncate(); for($i = 0; $i < $limit; $i++) { DB::table('users')->insert([ 'id' => $i++, 'email' => $faker->unique()->email, 'f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n fact...
[ "0.8013876", "0.79804534", "0.7976992", "0.79542726", "0.79511505", "0.7949612", "0.794459", "0.7942486", "0.7938189", "0.79368967", "0.79337025", "0.78924936", "0.78811055", "0.78790957", "0.78787595", "0.787547", "0.7871811", "0.78701615", "0.7851422", "0.7850352", "0.78414...
0.0
-1
Seed the application's database.
public function run() { // $this->call(UsersTableSeeder::class); $this->call(ExamSubjectSeeder::class); $this->call(ActivitiesSeeder::class); $this->call(CountriesSeeder::class); $this->call(StatesSeeder::class); $this->call(StudentSchoolNameSeeder::class); $t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function dbSeed(){\n\t\tif (App::runningUnitTests()) {\n\t\t\t//Turn foreign key checks off\n\t\t\tDB::statement('SET FOREIGN_KEY_CHECKS=0;');// <- USE WITH CAUTION!\n\t\t\t//Seed tables\n\t\t\tArtisan::call('db:seed');\n\t\t\t//Turn foreign key checks on\n\t\t\tDB::statement('SET FOREIGN_KEY_CHECKS=...
[ "0.8064933", "0.7848158", "0.7674873", "0.724396", "0.7216743", "0.7132209", "0.70970356", "0.70752203", "0.704928", "0.699208", "0.6987078", "0.69839287", "0.6966499", "0.68990964", "0.6868679", "0.68468624", "0.68307716", "0.68206114", "0.6803113", "0.6803113", "0.6801801",...
0.0
-1
User Login end point
public function login(Request $request) { try { Log::info('Access Login'); $notValid = $this->helpers->loginRequestValidator($request); if ($notValid) { Log::error("Validation Error."); return response()->json([ "resp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function login();", "public function login();", "private function login(){\n \n }", "public function login()\n {\n }", "public function login()\n {\n }", "public function loginUser()\n {\n $request = new Request();\n\n $email = $request->input('email');\n ...
[ "0.81558937", "0.81558937", "0.7901106", "0.76768", "0.76768", "0.76687133", "0.7628183", "0.76060665", "0.75957173", "0.7588646", "0.75645846", "0.75588083", "0.754707", "0.7538342", "0.75318664", "0.7521889", "0.75211847", "0.75089604", "0.7499023", "0.7497952", "0.7491672"...
0.0
-1
Replaces spaces with full text search wildcards
protected function fullTextWildcards($term) { return str_replace(' ', '*', $term) . '*'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function fullTextWildcards($term)\n {\n // removing symbols used by MySQL\n $reservedSymbols = ['-', '+', '<', '>', '@', '(', ')', '~'];\n $term = str_replace($reservedSymbols, ' ', $term);\n\n $words = explode(' ', $term);\n\n foreach($words as $key => $word){\n /*\n * applyin...
[ "0.6662183", "0.64149714", "0.61172026", "0.60683316", "0.59295064", "0.589712", "0.5817518", "0.578583", "0.5681057", "0.5548434", "0.5538875", "0.55084175", "0.55063283", "0.5474026", "0.54662937", "0.5466179", "0.5456904", "0.5448339", "0.5430218", "0.5429804", "0.5419971"...
0.6870011
0
Scope a query that matches a full text search of a term.
public function scopeSearch($query, $term) { $columns = implode(',',$this->searchable); $query->whereRaw("MATCH ({$columns}) AGAINST (? IN BOOLEAN MODE)" , $this->fullTextWildcards($term)); return $query; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function scopeSearch($query, $term);", "public function scopeMatchingTerm($query, $term)\n {\n if ($term == '')\n return $query;\n else\n return $query->where('name', 'like', '%' . $term . '%')\n ->orWhere('description', 'like', '%' . $term . '%');\n ...
[ "0.808432", "0.7413824", "0.7222598", "0.72054404", "0.7191608", "0.71395236", "0.64251107", "0.6399057", "0.6366055", "0.63552713", "0.62934667", "0.6277461", "0.62724614", "0.62619597", "0.6256577", "0.624123", "0.6213066", "0.62068313", "0.62060946", "0.61942387", "0.61856...
0.7715841
1
Get the user model by principal URI
private function _getUser($principalUri) { $username = basename($principalUri); return \GO\Base\Model\User::model()->findSingleByAttribute('username', $username); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getUserModel()\n {\n $config = $this->app->make('config');\n\n if (is_null($guard = $config->get('auth.defaults.guard'))) {\n return null;\n }\n\n if (is_null($provider = $config->get(\"auth.guards.{$guard}.provider\"))) {\n return null;\n ...
[ "0.6329774", "0.6171094", "0.6139268", "0.6118511", "0.60709256", "0.60309404", "0.60117435", "0.60117435", "0.60117435", "0.60117435", "0.60117435", "0.60117435", "0.60117435", "0.5990263", "0.59812427", "0.59791493", "0.59632057", "0.595907", "0.5937105", "0.59332234", "0.5...
0.7263936
0
Returns a list of calendars for a principal
public function getCalendarsForUser($principalUri) { \GO::debug("c:getCalendarsForUser($principalUri)"); if(!isset($this->_cachedCalendars[$principalUri])){ $user = $this->_getUser($principalUri); $findParams = \GO\Base\Db\FindParams::newInstance()->ignoreAcl() ->joinModel(array( 'mod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fetchAllForCalendarHome(string $principalUri): array;", "public function listCalendars()\n {\n Kronolith::initialize();\n $all_external_calendars = $GLOBALS['calendar_manager']->get(Kronolith::ALL_EXTERNAL_CALENDARS);\n $result = new stdClass;\n $auth_name = $GLOBAL...
[ "0.70131445", "0.6858883", "0.67017037", "0.66978055", "0.65352964", "0.6442766", "0.6253367", "0.61964846", "0.61364025", "0.6092897", "0.599893", "0.5983254", "0.586558", "0.58069414", "0.5733568", "0.5713105", "0.56808126", "0.56793064", "0.5621551", "0.56128055", "0.55851...
0.7077838
0
Creates a new calendar for a principal. If the creation was a success, an id must be returned that can be used to reference this calendar in other methods, such as updateCalendar
public function createCalendar($principalUri, $calendarUri, array $properties) { throw new Sabre\DAV\Exception\Forbidden(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createCalendar($principalUri, $calendarUri, array $properties) {}", "function createCalendar($principalUri, $calendarUri, array $properties) {\n\n return null;\n }", "public function store(CalendarsCreateRequest $request)\n {\n\n try {\n\n $this->validator->with($re...
[ "0.68141156", "0.62563926", "0.59141725", "0.57392716", "0.57192284", "0.5677594", "0.5596635", "0.55510163", "0.5514354", "0.5511221", "0.5468638", "0.5368757", "0.5279807", "0.5246921", "0.5185661", "0.5161506", "0.5149656", "0.51376957", "0.50723654", "0.5056522", "0.50333...
0.5710865
5
Delete a calendar and all it's objects
public function deleteCalendar($calendarId) { throw new Sabre\DAV\Exception\Forbidden(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function destroy(Calendar $calendar)\n {\n //\n }", "public function delete($calendario);", "public static function deleteByCalendar($a_cal_id)\r\n\t{\r\n\t\tglobal $ilDB;\r\n\t\t\r\n\t\t$query = \"DELETE FROM cal_shared WHERE cal_id = \".$ilDB->quote($a_cal_id ,'integer').\" \";\r\n\t\t$re...
[ "0.75884086", "0.7346631", "0.6924988", "0.6895693", "0.6874049", "0.68738574", "0.6519423", "0.6515091", "0.64197564", "0.625339", "0.619031", "0.6189879", "0.6119622", "0.60904646", "0.60383433", "0.6002049", "0.59439117", "0.5943278", "0.59424686", "0.5910592", "0.59032303...
0.56095606
42
Get the event by DAV client URI
private function getEventByUri($uri, $calendarId){ $joinCriteria = FindCriteria::newInstance() ->addRawCondition('t.id', 'd.id'); $whereCriteria = FindCriteria::newInstance() ->addModel(DavEvent::model(),'d') ->addCondition('calendar_id', $calendarId) ->addCondition('uri', $uri,'=','d'); $findP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function GetEventByURI($uri_path = '') \n {\n if ( ! $uri_path) {\n return false;\n }\n $data = $this->db\n ->join('status', 'status.id_status = event.id_status', 'left')\n ->join('event_detail', 'event_detail.id_event = event.id_event', 'left')\n ...
[ "0.6026523", "0.56476104", "0.55299765", "0.5339097", "0.53301615", "0.52014196", "0.5114776", "0.51048684", "0.50857025", "0.5063577", "0.50404483", "0.50049466", "0.5003664", "0.49884564", "0.49456805", "0.49206483", "0.48921737", "0.48792472", "0.48657516", "0.48657516", "...
0.5938819
1
Get the event by DAV client URI
private function getTaskByUri($uri, $calendarId){ //$this->db->query("SELECT e.* FROM cal_events e INNER JOIN dav_events d ON d.id=e.id WHERE d.uri=?","s",$uri); $joinCriteria = FindCriteria::newInstance() ->addRawCondition('t.id', 'd.id'); $whereCriteria = FindCriteria::newInstance() ->addModel(DavTa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function GetEventByURI($uri_path = '') \n {\n if ( ! $uri_path) {\n return false;\n }\n $data = $this->db\n ->join('status', 'status.id_status = event.id_status', 'left')\n ->join('event_detail', 'event_detail.id_event = event.id_event', 'left')\n ...
[ "0.602806", "0.5939343", "0.5647948", "0.5531834", "0.53405076", "0.53297037", "0.5203697", "0.5116562", "0.51079565", "0.5086977", "0.50643736", "0.5042135", "0.5005071", "0.5004832", "0.49903888", "0.49476907", "0.4920648", "0.48937073", "0.48807824", "0.48674336", "0.48674...
0.43463764
91