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
Display the specified resource.
public function show($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245...
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7424578", "0.7062392", "0.7056844", "0.6897447", "0.65815884", "0.6451359", "0.634689", "0.62107086", "0.6145251", "0.6121901", "0.6115076", "0.61009926", "0.60885817", "0.6053816", "0.6018965", "0.6007763", "0.5973282", "0.59455335", "0.593951", "0.59388787", "0.5892445",...
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n ...
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897...
0.0
-1
Map the webservice data structure to publicly response object suitable for thirdparty consumption.
public function map(AvailableServicesMap $response): array { $services = []; $preferredLocationService = new CarrierService( 'preferredLocation', $response->getPreferredLocation()->isAvailable() ); $preferredNeighbourService = new CarrierService( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function Transform_Response($response)\n\t{\n\t\t\n\t\tif (is_string($response))\n\t\t{\n\t\t\t$response = new OLP_Response($response);\n\t\t}\n\t\t\n\t\t// we want the merged result so we have tokens for promo_id, etc.\n\t\t$data = array_merge($response->Signature()->To_Array(), $response->Collection()-...
[ "0.59345955", "0.5638855", "0.56378084", "0.56319004", "0.5601318", "0.5550529", "0.55478746", "0.5472768", "0.54354554", "0.5414455", "0.534951", "0.5340649", "0.53390265", "0.5325724", "0.532178", "0.53185153", "0.53092253", "0.5301857", "0.52936447", "0.52783406", "0.52734...
0.0
-1
Get condition of this filter.
public function condition($inputs) { $value = Arr::get($inputs, $this->column); if ($value === null) { return; } $this->value = $value; return $this->buildCondition($this->column, '<=', $this->value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCondition() {\n return $this->condition;\n }", "public function getCondition() {\n return $this->condition;\n }", "public function getCondition()\n {\n return $this->condition;\n }", "public function getCondition() \n {\n return $this->_fields['Co...
[ "0.842417", "0.842417", "0.8394117", "0.818675", "0.81581086", "0.798433", "0.7782693", "0.7782693", "0.7782693", "0.73607886", "0.7124558", "0.71243554", "0.6959401", "0.678173", "0.6740247", "0.66873527", "0.66720605", "0.6640742", "0.65913004", "0.64298326", "0.64189446", ...
0.0
-1
getting the route should return the full path url
public function testCapabilities() { $this->assertContains( url()->getBaseUri() . 'auth/login', route('showLoginForm') ); # - You will get an error if the file 'welcome.volt not found', # the only solution to know if this works is to know the instance ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFullRoute();", "public function getRoute();", "private function getRoute(){\n\t}", "abstract public function getRoute();", "public function getRoute()\n {\n }", "public function get_route()\n {\n }", "public function get_matched_route()\n {\n }", "...
[ "0.79236704", "0.7863959", "0.78241545", "0.7745705", "0.751187", "0.7487852", "0.7387829", "0.7299548", "0.7196799", "0.7091576", "0.7082845", "0.70738345", "0.70531034", "0.7041065", "0.6979475", "0.69122756", "0.69104564", "0.6907128", "0.6894886", "0.6885154", "0.6865224"...
0.0
-1
Index Page for this controller. Maps to the following URL or or Since this controller is set as the default controller in config/routes.php, it's displayed at So any other public methods not prefixed with an underscore will map to /index.php/welcome/
public function __construct(){ parent::__construct(); //Codeigniter : Write Less Do More $this->load->model(array('process_model')); //session_destroy(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index () {\n $view = new WelcomeIndex();\n $view->display();\n }", "public function index()\n\t{\n\t\treturn view(\"welcome\");\n\t}", "public function index()\n\t{\n\t\t$this->load->view('welcome');\n\t}", "public function action_index()\r\n\t{\r\n\t\t$this->title = 'Welcome...
[ "0.7654014", "0.74132985", "0.7394691", "0.731586", "0.72269666", "0.72269666", "0.7189518", "0.7165739", "0.7151943", "0.71448207", "0.7107727", "0.70771956", "0.70734835", "0.70390546", "0.70293397", "0.70293397", "0.70293397", "0.70293397", "0.70293397", "0.6973074", "0.69...
0.0
-1
/ MUESTRA EL DASHBOARD DE INICIO
public function index(){ //$this->load->view('vistas/rh/bootgrid'); //$data['student_data'] = $this->export_csv_model->fetch_data(); //$this->load->view('vistas/rh/export_csv', $data); // $this->data['gerente_info'] = $this->process_model->fetch_data(); $fecha_hoy = date('Y-m-01'); $fecha_fin =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function board_list(){\n\t\tglobal $print, $x7s, $x7c, $db, $prefix;\n\t\t$head = \"\";\n\t\t$body='';\n\t\t\n\t\t$indice = indice_board();\n\n\n\t\t$q_new = $db->DoQuery(\"SELECT count(*) AS cnt FROM {$prefix}boardunread WHERE user='{$x7s->username}'\");\n\t\t$new_msg = $db->Do_Fetch_Assoc($q_new);\n\n\t\t$body=\...
[ "0.5767685", "0.5757089", "0.57241136", "0.5694339", "0.5665511", "0.55982226", "0.55319005", "0.5500014", "0.54753673", "0.54726034", "0.54715633", "0.54480356", "0.5437662", "0.5422935", "0.5421773", "0.54078096", "0.54020065", "0.54010206", "0.54010206", "0.5400618", "0.53...
0.0
-1
/ SEMANAS POR MES
function semanasMes($year,$month){ # Obtenemos el ultimo dia del mes $ultimoDiaMes=date("t",mktime(0,0,0,$month,1,$year)); # Obtenemos la semana del primer dia del mes $primeraSemana=date("W",mktime(0,0,0,$month,1,$year)); # Obtenemos la semana del ultimo dia del mes $ultimaSemana=date("W...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function valordelospasajesplus();", "public function valorpasaje();", "function getSemaforo() {\n\t\tglobal $usr;\n\n\t\tif ($this->extra[\"imprimir\"]) {\n\t\t\t$this->resultado = $this->__getSemaforoNormal();\n\t\t}\n\t\telseif ($usr->orientacion_semaforo == 0) {\n\t\t\t$this->resultado = $this->__get...
[ "0.60391873", "0.59227794", "0.5812013", "0.5785275", "0.57603586", "0.5722712", "0.5704181", "0.56967944", "0.5693835", "0.5638776", "0.56306165", "0.5616934", "0.56155753", "0.5521815", "0.5510703", "0.54965705", "0.54702693", "0.54575586", "0.54422176", "0.54250723", "0.54...
0.0
-1
/ SECCION PRE SOLICITUDES
public function presolicitud(){ $this->data['notificacion_count'] = $this->process_model->get_num_notify(); $this->data['notificacion_msj'] = $this->process_model->get_notificacion(); // if(!$this->data['notificacion_msj']): // $this->data['notificacion_msj'] = $this->process_model->get...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function AggiornaPrezzi(){\n\t}", "public function traerCualquiera()\n {\n }", "private function setExercicio(){\n\t\t$this->Enunciado = $this->Data['enunciado'];\n\t\t$this->A = $this->Data['opA'];\n\t\t$this->B = $this->Data['opB'];\n\t\t$this->C = $this->Data['opC'];\n\t\t$this->D = $this->Data...
[ "0.6583558", "0.59340084", "0.58787465", "0.58018583", "0.5746588", "0.5687177", "0.5678895", "0.5674511", "0.56635815", "0.5627363", "0.5579482", "0.5566939", "0.55437785", "0.54841876", "0.54831004", "0.54487294", "0.54382306", "0.54376984", "0.54358697", "0.5434033", "0.54...
0.0
-1
/ RANGO DE FECHA SEMANA LUNES A DOMINGO MEDIANTE NUMERO SEMANA COBRANZA
function getEndDateWeek($week, $year) { $dto = new DateTime(); $dto->setISODate($year, $week); $ret['week_start'] = $dto->format('Y-m-d'); $dto->modify('+6 days'); $ret['week_end'] = $dto->format('Y-m-d'); $ultimo_dia_semana = $dto->format('Y-m-d'); return $ultimo_dia_semana; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getGlobalMoyenne() {\r\n $query = \"SELECT AVG(MOYGENERALE) AS MOYCLASSE, MIN(MOYGENERALE) AS MOYMIN, \"\r\n . \"MAX(MOYGENERALE) AS MOYMAX \"\r\n . \"FROM (SELECT SUM(MOYENNE*COEFF)/SUM(COEFF) AS MOYGENERALE \"\r\n . \"FROM tmp_notes GROUP BY IDE...
[ "0.57965255", "0.5723134", "0.5682949", "0.5596287", "0.55510056", "0.552984", "0.5521537", "0.5474515", "0.54418284", "0.543501", "0.5428512", "0.54131824", "0.5398817", "0.53945607", "0.5376238", "0.5375584", "0.53670645", "0.5361351", "0.5361246", "0.5346089", "0.5333029",...
0.0
-1
echo $week; $week_array = getStartAndEndDate2(5,2020); print_r($week_array); / SEMANA POR MES DE LUNES A DOMINGO
function dateRange($begin, $end, $interval = null){ $begin = new DateTime($begin); $end = new DateTime($end); // Because DatePeriod does not include the last date specified. $end = $end->modify('+1 day'); $interval = new DateInterval($interval ? $interval : 'P1D'); return iterator_to_array(new ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getStartEndDate( $week, $year ) {\n $dto = new DateTime();\n $dto->setISODate( $year, $week, 0 );\n $dates['start'] = $dto->format( \"Y-m-d\" );\n $dto->modify( \"+6 days\" ); // move forward one week\n $dates['end'] = $dto->format( \"Y-m-d\" );\n return $dates;\n}", "function getDates( $week = ''...
[ "0.7198405", "0.7187139", "0.7155058", "0.7075658", "0.7055597", "0.69986933", "0.6944969", "0.6687197", "0.6683877", "0.6642371", "0.6622404", "0.6618533", "0.6560565", "0.65489584", "0.6520116", "0.6419316", "0.6404651", "0.6319564", "0.6308476", "0.63064665", "0.62529147",...
0.0
-1
/ FUNCION SEMANA POR MES
function SemanasEnElMes(){ $fecha_hoy = date('Y-m-01'); $fecha_fin = date('Y-m-t'); $dia_fin = date('t'); $j=1; $diaf = ''; //dia finales for($i=1;$i <= $dia_fin;$i++){ if(($i%7) == 0){ $diaf .= $i.','; $j++; } } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function valorpasaje();", "public function valordelospasajesplus();", "public function AggiornaPrezzi(){\n\t}", "function ola(){\n\n$argumentos = func_get_args();// recupera todos os argumentos da variavel que é um array \nreturn $argumentos;\n}", "function ambas()\n {\n print \"Ejecució...
[ "0.6556781", "0.6350757", "0.616273", "0.6138004", "0.6101579", "0.6039035", "0.60233206", "0.5968165", "0.5945041", "0.5918091", "0.5912684", "0.58930176", "0.58779126", "0.5870845", "0.5868914", "0.5865812", "0.58139193", "0.576446", "0.57463264", "0.57438636", "0.573213", ...
0.0
-1
/ RANGO DE LA SEMANA QUE ESTA CORRIENDO
public function dias_del_mes(){ $fecha= date('Y-m-d'); return; date('t',strtotime($fecha)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findRandom();", "function darLetras($solucion){ \r\n $azar = rand(0,strlen($solucion)-1);\r\n $dLetra = $solucion[$azar];\r\n $posicionLetra = $azar.strtoupper($dLetra);\r\n return $posicionLetra;\r\n }", "function rola_dado_simples($qtd, $codDado){...
[ "0.62566125", "0.60389286", "0.60117406", "0.592009", "0.5850497", "0.5836121", "0.58275294", "0.57999736", "0.5798091", "0.5788687", "0.5749886", "0.5632862", "0.55942607", "0.55917037", "0.5490736", "0.5488665", "0.5486574", "0.54638857", "0.54628515", "0.54607123", "0.5447...
0.0
-1
$time_elapsed = timeAgo($time_ago); The argument $time_ago is in timestamp (Ymd H:i:s)format. Function definition
function timeAgo($time_ago) { $time_ago = strtotime($time_ago); $cur_time = time()-28800; $time_elapsed = $cur_time - $time_ago; $seconds = $time_elapsed ; $minutes = round($time_elapsed / 60 ); $hours = round($time_elapsed / 3600); $days ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function time_Ago($time) { \n \n // Calculate difference between current \n // time and given timestamp in seconds \n $diff = time() - $time; \n \n // Time difference in seconds \n $sec = $diff; \n \n // Convert time difference in minutes \n $min = round($diff / 60 ); \n...
[ "0.7884377", "0.7260282", "0.7164432", "0.7141273", "0.71319723", "0.69959986", "0.69959986", "0.6964994", "0.6928122", "0.6927246", "0.6920535", "0.6904305", "0.68963015", "0.68765604", "0.6823943", "0.6807985", "0.6800133", "0.679153", "0.6774584", "0.6748985", "0.67376643"...
0.818667
0
Bootstrap the application services.
public function boot() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function boot()\n {\n // Boot here application\n }", "public function boot()\n {\n $configuration = [];\n\n if (file_exists($file = getcwd() . '/kaleo.config.php')) {\n $configuration = include_once $file;\n }\n\n $this->app->singleton('kaleo', functi...
[ "0.7218277", "0.7040664", "0.7003676", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", "0.69654787", ...
0.0
-1
Register the application services.
public function register() { $app = $this->app; $app->bind('MH\Repositories\FileRepositoryInterface', 'MH\Repositories\Local\FileRepository'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register()\n {\n $this->registerServices();\n }", "public function register()\n {\n $this->registerAssets();\n $this->registerServices();\n }", "public function register()\n\t{\n\n $this->registerUserService();\n $this->registerCountryService();\n ...
[ "0.72834975", "0.7129936", "0.7108755", "0.70365775", "0.69857496", "0.6981425", "0.69721615", "0.6920895", "0.69191223", "0.6882845", "0.6881585", "0.6819491", "0.6818964", "0.68054336", "0.68047476", "0.6799833", "0.6794076", "0.679339", "0.6788445", "0.67767453", "0.677005...
0.0
-1
createPDF create the PDF document and returns the complete filename (path+file) hooked to hdlObjectPDF()
function createPDF( $_key="", $_id=-1, $_pdfName="") { $this->_createPDF( $_key, $_id, $_pdfName) ; $this->printPDF() ; return $this->myCustomerCommission->getXMLComplete() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createPDF()\n {\n $soxId = $this->getEditObjectId();\n if ($soxId != \"-1\" && isset($soxId)) {\n // load object\n $oOrder = oxNew(\"oxorder\");\n if ($oOrder->load($soxId)) {\n $oUtils = oxRegistry::getUtils();\n $sTri...
[ "0.69424796", "0.6802906", "0.6450165", "0.64333785", "0.6400053", "0.6364733", "0.6356771", "0.63349926", "0.6298734", "0.6264982", "0.62442017", "0.6177744", "0.6168105", "0.61585844", "0.61494887", "0.61003417", "0.60900664", "0.6049555", "0.6009686", "0.5998726", "0.59864...
0.6680586
2
setupHeaderMid The method adds the header for a middle page to the frame passed as argument.
function setupHeaderMid( $_frm) { $_frm->addLine( "Kommissionierung", $this->defParaFmt) ; $_frm->addLine( sprintf( "Kommission Nr. %s, %s", $this->myCustomerCommission->CustomerCommissionNo, $this->myCustomerCommission->Datum), $this->defParaFmt) ; /** * draw the separating line between the header and the d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function\tsetupHeaderMid( $_frm) {\n\n\t\t$_frm->addLine( iconv( 'UTF-8', 'windows-1252//TRANSLIT', FTr::tr( \"Inventory\", null, $this->lang)), $this->defParaFmt) ;\n\t\t$_frm->addLine( iconv( 'UTF-8', 'windows-1252//TRANSLIT',\n\t\t\t\t\t\t\t\t\tFTr::tr( \"Inventory no. #1, Key date #2\",\n\t\t\t\t\t\t\t\t\t\t\t...
[ "0.64847016", "0.6227221", "0.54541034", "0.54457843", "0.54350674", "0.5391063", "0.53523505", "0.5310973", "0.5279594", "0.5274549", "0.523391", "0.5224938", "0.5202166", "0.5199482", "0.5195606", "0.5190355", "0.51844", "0.51826537", "0.5156028", "0.51532614", "0.51531416"...
0.65150595
0
Display a listing of the resource.
public function index(ManageHotelCategoryRequest $request) { return view('hotelcategory::index'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Show the form for creating a new resource.
public function create() { return view('hotelcategory::create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(CreateHotelCategoryRequest $request) { $hotelcategory = new HotelCategory($request->all()); $this->hotelcategory->save($hotelcategory); \Log::info($request->name.' Hotel Category Created By: ' . access()->user()->name); return redirect()->route('admin.hotelcateg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.72855324", "0.71447515", "0.7132799", "0.6641042", "0.66208744", "0.6566955", "0.65249777", "0.6509032", "0.6447701", "0.63756555", "0.6373163", "0.63650846", "0.63650846", "0.63650846", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.63416...
0.0
-1
Remove the specified resource from storage.
public function destroy(HotelCategory $hotelcategory) { $this->hotelcategory->delete($hotelcategory); \Log::info('Hotel Category ID '.$hotelcategory->id.'- Deleted By: ' . access()->user()->name); return redirect()->route('admin.hotelcategory.index')->withFlashSuccess(trans('hotelcategory::...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n ...
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897...
0.0
-1
Concatenate the values in a specific $key of an $iterable with a ';'
protected function concatenateIntoString(array $iterable = null, $key, $nested = null, $nestedKey = null) { if (!is_null($iterable)) { $placeholders = []; if (!$nested) { foreach ($iterable as $iterate) { $placeholders[] = (is_array($iterate) && a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function implode_assoc(array $array, $betweenKeyAndValue, $beforeItems='', $afterItems='') {\n\t$result = '';\n\tforeach ($array as $k=>$v) {\n\t\t$result .= $beforeItems.$k.$betweenKeyAndValue.$v.$afterItems;\n\t}\n\treturn $result;\n}", "function Array2Str($kvsep, $entrysep, $a){\n $str = \"\";\n foreach...
[ "0.60571873", "0.56504756", "0.55606633", "0.5523884", "0.5509592", "0.55056274", "0.55006605", "0.5498649", "0.5498601", "0.5484996", "0.5363549", "0.5248946", "0.5230871", "0.5226835", "0.52266455", "0.5163507", "0.5156881", "0.5115551", "0.5114725", "0.5067441", "0.4996692...
0.62865454
0
Concatenate values from different relations of an Activity.
protected function concatenateRelation(Model $relatedModel, $relatedColumn, $key, $nested = null, $nestedKey = null) { $relatedModel = $relatedModel->$relatedColumn; if (!$nested && !$nestedKey) { return getVal($relatedModel, [$key]); } return getVal($relatedModel, [$ke...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function doConcatenate() {}", "function concat_attr() {\n $str = \"\";\n if ($this->other_attr != NULL) {\n foreach($this->other_attr as $field => $value) {\n $str .= $field.'=\"'.$value.'\" ';\n }\n }\n return $str;\n }", "protected...
[ "0.62644583", "0.6245109", "0.5820934", "0.56931174", "0.5615774", "0.555835", "0.5516049", "0.54929745", "0.5470561", "0.5300394", "0.5292435", "0.5275615", "0.5224643", "0.5205964", "0.5193866", "0.5138907", "0.5093835", "0.5004165", "0.4941348", "0.49274287", "0.49262318",...
0.44341573
69
Concatenate Indicator values with multiple nesting levels.
protected function concatenateIndicator(array $indicators, $first, $second, $third = null, $fourth = null, $fifth = null) { $temp = []; if (!$fourth && !$fifth) { if (!$third) { foreach ($indicators as $indicator) { $temp[] = getVal($indicator, [$firs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function concat(Semigroup $value);", "function concat_attr() {\n $str = \"\";\n if ($this->other_attr != NULL) {\n foreach($this->other_attr as $field => $value) {\n $str .= $field.'=\"'.$value.'\" ';\n }\n }\n return $str;\n }", "prote...
[ "0.5389252", "0.5286378", "0.52118665", "0.49743757", "0.48592642", "0.4852583", "0.48211235", "0.47740927", "0.47665235", "0.47359192", "0.4700198", "0.46711838", "0.46688944", "0.4647517", "0.4642487", "0.4642487", "0.4624396", "0.46241966", "0.45794287", "0.45629406", "0.4...
0.5389728
0
refresh with Post Level
public function refreshAuthWithRelDuty($data) { $getAuth = new Model_UserAuth(); $AllAuths = $getAuth->getDutyRelAuth($data); DI()->logger->info('开始刷新: 岗位id->' . $data->param1 . '职责id->' . $data->param2); foreach ($AllAuths as $key => $value) { if ($value['user_state'] == "ac...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function handleRestUpdatePost($post)\n {\n if (\"publish\" == $post->post_status) {\n $this->indexPost($post->ID);\n }\n }", "function appthemes_stats_update($post_id) {\r\n\tglobal $wpdb, $app_abbr, $nowisnow;\r\n\r\n\t$thepost = get_post($post_id);\r\n\r\n\tif ($thepost->p...
[ "0.6354395", "0.617254", "0.6103742", "0.5984116", "0.59338796", "0.59187853", "0.59165543", "0.5913948", "0.591123", "0.5880895", "0.58727545", "0.5855105", "0.58002716", "0.5797384", "0.5773474", "0.5767801", "0.5756881", "0.5738758", "0.5731384", "0.57179105", "0.57128376"...
0.0
-1
this php unit contains main routines for scraping iTunesConnect sales reports
function process_sales($login, $options, $reptype) { global $last_http_headers; $appleid = $login["appleid"]; // function process_sales($sales_url, $appleid, $options, $reptype) { $reptype_l = strtolower($reptype); if (!is_dir(BASE_META_DIR."/salesreports") && !mkdir(BASE_META_DIR."/salesreports...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function scrape() \n {\n\t\t$index = $this->curl_index();\n\t\t$check = preg_match('/id\\=\\\"\\_\\_VIEWSTATE\\\"\\svalue\\=\\\"([^\"]*)\"/', $index, $match); \n\t\tif ($check)\n\t\t{\n\t\t\t$vs = $match[1];\n\t\t\t$check = preg_match('/id\\=\\\"\\_\\_EVENTVALIDATION\\\"\\svalue\\=\\\"([^\"]*)\"/', $inde...
[ "0.5940064", "0.5821078", "0.5727335", "0.56043154", "0.55675244", "0.5498159", "0.54911584", "0.54804236", "0.5438413", "0.5422629", "0.5386306", "0.5379583", "0.5349196", "0.5336306", "0.53155035", "0.53145164", "0.5313823", "0.5309151", "0.5306959", "0.5292262", "0.5288744...
0.5996147
0
/ TikiWiki plugin chart Displays a chart from a tikisheet.
function wikiplugin_chart_help() { return tra("Chart").":<br />~np~{CHART(id=>, type=>, width=>, height=>, value=> )}".tra("title")."{CHART}~/np~"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function Timeline($chart_div,$data,$size='300px'){\n\t//$dataArray[]= \"[\\\".$dataset[0].\"\\\", \\\"\". $dataset[1].\"\\\", \\\"\". $dataset[2].\"\\\"]\"\n\t//$data = implode(\",\",$dataArray);\n\techo \"<div class='box-body' id='\".$chart_div.\"' style='height=\".$size.\"'></div>\";\n\techo \"<script>\n\...
[ "0.5831208", "0.5759848", "0.57333994", "0.5631029", "0.5600386", "0.5599379", "0.55765635", "0.5567689", "0.5561675", "0.5519688", "0.5454943", "0.5442974", "0.5441047", "0.5431268", "0.53767383", "0.5362275", "0.5355412", "0.5338681", "0.5312168", "0.528737", "0.52606034", ...
0.6068307
0
Proceso de este handler
protected function handle() { $response = []; $galeria = new Galery(); $galeria->galeria_id = 0; $galeria->type = 'web'; $galeria->parent_galleries_id = isset($this->params['data']['parent_id']) ? $this->params['data']['parent_id'] : null; $galeria->nombre = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_handler()\n {\n }", "abstract public function handler() : void;", "public function getHandler() {}", "public function getHandler()\n {\n }", "public function getHandler();", "public function getHandler();", "function handle() ;", "public function handle() {}", ...
[ "0.74811715", "0.7381357", "0.72891176", "0.7144542", "0.70510674", "0.70510674", "0.702928", "0.7001606", "0.6876312", "0.6855251", "0.67945623", "0.67860335", "0.6718339", "0.6704852", "0.6689576", "0.6689576", "0.6689576", "0.66220015", "0.66183835", "0.6584104", "0.658410...
0.0
-1
/ Construtor definido para chamada do construtor da classe extendida
public function __construct($msg, $detail='', $codigo=0) { // construtor de um unico parametro if(is_int($msg)) { $mensagem = ""; switch($msg) { case self::ERRO_NAO_SUPORTADO: $mensagem = 'Atenção. O Formato solicitado não é suportado para este relatório'; break; default: $mensagem...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t// ben duoi nay se la cac logic cua __construct lop con ma chung ta can dinh nghia - xu ly\n\t}", "protected abstract function __construct();", "public function __construct(){\n\t\t//asi poder tener dispoble la vista que le pertenece a esta cl...
[ "0.84185165", "0.83222723", "0.82818294", "0.82635003", "0.82623017", "0.82392955", "0.823009", "0.82192236", "0.82192236", "0.82192236", "0.8201219", "0.8198327", "0.81889653", "0.81846154", "0.81846154", "0.81846154", "0.81846154", "0.81846154", "0.81846154", "0.81846154", ...
0.0
-1
Mapper::map(52.381128999999990000, 0.470085000000040000, ['markers' => ['icon' => ['symbol' => 'CIRCLE', 'scale' => 10], 'animation' => 'DROP', 'label' => 'Marker', 'title' => 'Marker']])>marker(53.381128999999990000, 1.470085000000040000);
public function index() { // Mapper::streetview(53.381128999999990000, -1.470085000000040000, 1, 1); return view('theme.maps.index'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMarkerFactory();", "public function getMarker()\n {\n\t\treturn $this->_marker;\n\t}", "function SvgMarker($id, $refX=\"\", $refY=\"\", $markerUnits=\"\", $markerWidth=\"\", $markerHeight=\"\", $orient=\"\")\r\n {\r\n $this->SvgElement();\r\n \r\n $this->mId = $id;...
[ "0.5849156", "0.5611689", "0.5610253", "0.5598228", "0.55962324", "0.55934846", "0.5574591", "0.5539083", "0.53818065", "0.53437304", "0.53281045", "0.52972215", "0.528862", "0.52727836", "0.5270668", "0.5222724", "0.5222724", "0.5222606", "0.522218", "0.52030057", "0.516214"...
0.0
-1
setup decider to use for tests
protected function setUp() { $this->decider = new OLPBlackbox_Enterprise_CLK_Decider(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setUp(): void{\n $this->obj = new \\FightTheIce\\Coding\\ClassResolver(\"FightTheIce\\Coding\\ClassResolver\");\n }", "abstract protected function setup();", "public function setUp()\n {\n // Create a new Laravel container instance.\n $container = new Container;\n\...
[ "0.66171515", "0.6526237", "0.6475473", "0.6463328", "0.64093226", "0.6391281", "0.6391281", "0.6391281", "0.6391281", "0.63887215", "0.63865054", "0.63430274", "0.62997884", "0.62950385", "0.6256116", "0.6248866", "0.62083644", "0.62063825", "0.6172184", "0.6144391", "0.6136...
0.6612248
1
Tests that 1 disagreed gets marked as new
public function testOneDisagreedNoCancelIsNew() { $history = $this->getMockHistory(array( 'getCountDisagreed' => 1, )); $result = $this->decider->getDecision($history); $this->assertEquals( OLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_NEW, $result ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testOneCancelledOneDisagreedIsDisagreed()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountDisagreed' => 1,\n\t\t\t'getCountConfirmedDisagreed' => 1,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_D...
[ "0.67598754", "0.6726145", "0.65821505", "0.6568994", "0.58188975", "0.575409", "0.57220376", "0.57220376", "0.57193786", "0.56954604", "0.56541574", "0.5621423", "0.55667776", "0.55341274", "0.552515", "0.5442183", "0.5441015", "0.54278654", "0.5410108", "0.5404722", "0.5379...
0.6813711
0
Tests that 2 disagreed gets marked as cancel/disagreed
public function testTwoDisagreedNoCancelledIsDisagreed() { $history = $this->getMockHistory(array( 'getCountDisagreed' => 2, )); $result = $this->decider->getDecision($history); $this->assertEquals( OLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_DISAGREED, $result ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testTwoCancelledNoDisagreedIsDisagreed()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountConfirmedDisagreed' => 2,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_DISAGREED,\n\t\t\...
[ "0.74521893", "0.70373327", "0.6315296", "0.63038063", "0.57395744", "0.56890845", "0.5681462", "0.56334496", "0.56164235", "0.5599066", "0.55465937", "0.545727", "0.5432743", "0.53712845", "0.5361333", "0.53519535", "0.5344831", "0.5328303", "0.531242", "0.5265989", "0.52636...
0.74224234
1
Tests that 1 confirmed_disagreed gets marked as new
public function testOneDisagreedNoCancelledIsNew() { $history = $this->getMockHistory(array( 'getCountConfirmedDisagreed' => 1, )); $result = $this->decider->getDecision($history); $this->assertEquals( OLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_NEW, $result ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testOneDisagreedNoCancelIsNew()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountDisagreed' => 1,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_NEW,\n\t\t\t$result\n\t\t);\n\t}", ...
[ "0.65873545", "0.6323322", "0.6242718", "0.6179043", "0.61374116", "0.60621715", "0.6042085", "0.6000938", "0.5991", "0.5928303", "0.58697534", "0.5827924", "0.58138883", "0.5786598", "0.5782922", "0.57350796", "0.5705499", "0.5698207", "0.56610835", "0.5638794", "0.5623922",...
0.6897816
0
Tests that 2 confirmed_disagreed gets marked as cancel/disagreed
public function testTwoCancelledNoDisagreedIsDisagreed() { $history = $this->getMockHistory(array( 'getCountConfirmedDisagreed' => 2, )); $result = $this->decider->getDecision($history); $this->assertEquals( OLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_DISAGREED, $result ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testTwoDisagreedNoCancelledIsDisagreed()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountDisagreed' => 2,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_DISAGREED,\n\t\t\t$result\...
[ "0.6955699", "0.6690282", "0.64127743", "0.6129533", "0.5875573", "0.5846233", "0.5741694", "0.5722742", "0.5672198", "0.5627346", "0.5607549", "0.5585798", "0.5580044", "0.5552409", "0.5528225", "0.5516798", "0.5495939", "0.5483847", "0.5474092", "0.54527366", "0.5394605", ...
0.7135051
0
Tests one disagreed and one confirmed disagreed gets marked as cancel/disagreed
public function testOneCancelledOneDisagreedIsDisagreed() { $history = $this->getMockHistory(array( 'getCountDisagreed' => 1, 'getCountConfirmedDisagreed' => 1, )); $result = $this->decider->getDecision($history); $this->assertEquals( OLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_DISAGREED, $r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testTwoCancelledNoDisagreedIsDisagreed()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountConfirmedDisagreed' => 2,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_DISAGREED,\n\t\t\...
[ "0.74385256", "0.7373181", "0.6958194", "0.6842848", "0.6082306", "0.60353696", "0.58996624", "0.58770293", "0.5804412", "0.57695234", "0.5736544", "0.5701384", "0.569139", "0.5688771", "0.5687657", "0.568283", "0.5682142", "0.5634629", "0.5610113", "0.5608588", "0.55604", ...
0.75115967
0
Tests that react loans take precedence over disagreed
public function testReactTakesPrecedenceOverDisagreed() { $history = $this->getMockHistory(array( 'getCountPaid' => 1, 'getCountDisagreed' => 2, )); $result = $this->decider->getDecision($history); $this->assertEquals( OLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_REACT, $result ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testTwoDisagreedNoCancelledIsDisagreed()\n\t{\n\t\t$history = $this->getMockHistory(array(\n\t\t\t'getCountDisagreed' => 2,\n\t\t\t));\n\n\t\t$result = $this->decider->getDecision($history);\n\t\t$this->assertEquals(\n\t\t\tOLPBlackbox_Enterprise_Generic_Decider::CUSTOMER_DISAGREED,\n\t\t\t$result\...
[ "0.59717184", "0.59424835", "0.58011425", "0.5791082", "0.56346947", "0.55434567", "0.55081266", "0.5426867", "0.5424317", "0.54224396", "0.54011935", "0.5357062", "0.53413993", "0.5291018", "0.5266901", "0.5249068", "0.52478707", "0.52117914", "0.52030843", "0.5201586", "0.5...
0.7092746
0
Core PHP interfaces methods
public function __clone() { $this->data = clone $this->data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function interface();", "public function getInterface();", "public function readyForInterface() {}", "public function getInterfaces() {}", "public static function node_interface()\n {\n }", "static public function getInterfaces();", "function getOwnInterfaces();", "pu...
[ "0.8199994", "0.6887597", "0.6622386", "0.65345156", "0.6404902", "0.62456673", "0.6141913", "0.611351", "0.60757464", "0.6015146", "0.59325635", "0.59135103", "0.59088284", "0.59088284", "0.59088284", "0.59088284", "0.5908355", "0.5908355", "0.59064525", "0.5890076", "0.5882...
0.0
-1
Display a listing of the resource.
public function index() { $ships = Ship::all(); return $this->sendResponse(ShipResource::collection($ships), 'Ships retrieved successfully.'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Display the specified resource.
public function show($id) { $ship = Ship::find($id); if (is_null($ship)) { return $this->sendError('Ship not found.'); } return $this->sendResponse(new ShipResource($ship), 'Ship retrieved successfully.'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245...
0.0
-1
Get the user that wrote this article
public function ulibier() { return $this->belongsTo('App\Ulibier', 'username'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getAuthor()\n {\n $tokenStorage = $this->getOption('token_storage');\n\n return $tokenStorage->getToken()->getUser();\n }", "public function getAuthor() {\n\t\treturn UserManager::getFromBlid($this->blid);\n\t}", "public function getUserArticleName()\n {\n return ...
[ "0.7614639", "0.72987556", "0.701647", "0.69436854", "0.6943233", "0.6910689", "0.68481934", "0.68365175", "0.68365175", "0.68365175", "0.68365175", "0.68365175", "0.6811296", "0.68090355", "0.67872065", "0.67632896", "0.6758758", "0.6753975", "0.6734763", "0.67283523", "0.67...
0.0
-1
Get all destinations related to this article
protected function destinations() { $list = $this->hasMany(Mapping\ArticleDestination::class, 'article_id', 'article_id'); return $list->getResults(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllDestination()\n {\n $destinations = [];\n \n $allDestinations = $this->pdo->prepare('SELECT * FROM destinations');\n $allDestinations->execute();\n \n while ($donneesDestination = $allDestinations->fetch(PDO::FETCH_ASSOC))\n {\n array_push($destinations, new Destin...
[ "0.72364235", "0.710738", "0.68104947", "0.65494305", "0.65488213", "0.60714906", "0.59334135", "0.591461", "0.58764005", "0.5848445", "0.5833889", "0.58260655", "0.57960606", "0.5795896", "0.5782617", "0.57728624", "0.5761642", "0.57586193", "0.575108", "0.5711202", "0.57014...
0.9045315
0
Get all destinations related to this article
public function getFirstRelatedDestinationAttribute() { try { /** @var \App\Models\Destination $destination */ $destination = $this->destinations()->first()->destination; $destination->append('avatar'); return $destination; } catch (\ErrorException $e)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function destinations()\n {\n $list = $this->hasMany(Mapping\\ArticleDestination::class, 'article_id', 'article_id');\n return $list->getResults();\n }", "public function getAllDestination()\n {\n $destinations = [];\n \n $allDestinations = $this->pdo->prepare('SELECT * FR...
[ "0.9045315", "0.72364235", "0.710738", "0.68104947", "0.65494305", "0.65488213", "0.60714906", "0.59334135", "0.591461", "0.58764005", "0.5848445", "0.5833889", "0.58260655", "0.57960606", "0.5795896", "0.5782617", "0.57728624", "0.5761642", "0.57586193", "0.575108", "0.57112...
0.0
-1
If an article not have cover, replace by its tagged destination's image
public function getThumbnailAttribute() { /** @var Photo $thumbPhoto */ try { $thumbPhoto = ($this->cover_id != null) ? Photo::find($this->cover_id) : $this->first_related_destination->avatar; return $thumbPhoto->src; } catch (\Exception $e) { return Phot...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function replaceImage()\n {\n $args = func_get_args();\n\n $domDocument = new DomDocument();\n $domDocument->loadXML(self::$_document);\n\n $domImages = $domDocument->getElementsByTagNameNS('http://schemas.openxmlformats.org/drawingml/2006/' .\n ...
[ "0.56886244", "0.5684464", "0.55345225", "0.54437757", "0.5401605", "0.5308878", "0.52648693", "0.5253547", "0.52198404", "0.51747483", "0.5082961", "0.5053135", "0.5046917", "0.5046406", "0.5042434", "0.50301766", "0.50282484", "0.50225925", "0.49987325", "0.49762765", "0.49...
0.0
-1
Generates a URL from the given parameters.
protected function generateUrl($route, $parameters = array(), $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH) { return $this->container->get('bfy_adapter.sf2_routing.url_generator')->generate($route, $parameters, $referenceType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function generateUrl($parameters = [])\n {\n $parameters = array_merge($this->getCurrentInput(), $parameters);\n\n\n // Grab the current URL\n $path = URL::getRequest()->path();\n\n return url($path . '/?' . http_build_query($parameters));\n }", "private function generate...
[ "0.77582794", "0.75618774", "0.7481641", "0.72889227", "0.7059782", "0.7034109", "0.6953093", "0.6923884", "0.6914206", "0.6820833", "0.6777478", "0.6756578", "0.6711334", "0.66970474", "0.6666435", "0.66649276", "0.66623634", "0.6653682", "0.66228825", "0.6616854", "0.661509...
0.60107434
92
Get Name of command
public static function getName() { return 'summary'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getName() {\n return $this->commandName;\n }", "public function getCommand(): string\n {\n return $this->attributes->get('command', '');\n }", "public function getCommand(): string\n {\n return $this->command;\n }", "public function getCommand(): string\n ...
[ "0.8789081", "0.77145326", "0.766893", "0.766893", "0.7472216", "0.74321765", "0.7404381", "0.73724306", "0.7348383", "0.7284432", "0.7234175", "0.71961975", "0.71912295", "0.7186373", "0.7179136", "0.7179136", "0.7179136", "0.7179136", "0.7174022", "0.7165678", "0.71537024",...
0.0
-1
Initialize this module after registration
public function initialize() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function init()\n {\n // you may place code here to customize the module or the application\n }", "public function init()\n\t{\n\t\t// you may place code here to customize the module or the application\n\n\t\t// import the module-level models and components\n\t\t$this->setImport(array(\n\t\t\...
[ "0.790953", "0.7813118", "0.77576345", "0.7730557", "0.764599", "0.7599441", "0.7588092", "0.75687075", "0.75614464", "0.7556077", "0.75351894", "0.7495451", "0.74800724", "0.74587286", "0.7453867", "0.743545", "0.7426692", "0.73997194", "0.73873234", "0.737496", "0.7373657",...
0.0
-1
Display status message Display a message colored either positive or negative
protected function _displayStatusMessage($message, $status) { if ($status) { $fg = 0; $bg = 2; } else { $fg = 15; $bg = 1; } $this->_qis->displayMessage($message, true, $fg, $bg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStatusColorText()\n {\n $status = $this->status;\n $list = self::getStatusOption();\n\n $color = 'default';\n if ($status == self::STATUS_NEW) {\n $color = 'info';\n }\n if ($status == self::STATUS_USED) {\n $color = 'default';\n...
[ "0.7004245", "0.69748497", "0.6930409", "0.68413496", "0.6794599", "0.67059666", "0.6540996", "0.6418441", "0.6410039", "0.63835186", "0.6378963", "0.6374358", "0.6367875", "0.63678426", "0.6346502", "0.6300922", "0.62924993", "0.6289005", "0.62788385", "0.6262082", "0.624435...
0.6488445
7
Get Help message for this module
public function getHelpMessage() { return "Get summary of a module or all modules\n"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function help()\n {\n // You could include a file and return it here.\n return \"No documentation has been added for this module.<br />Contact the module developer for assistance.\";\n }", "public function get_help()\n\t{\n\t\treturn '';\n\t}", "public function help()\r\n\t{\r\n\t\t// You could ...
[ "0.8388826", "0.82199055", "0.82126147", "0.81169057", "0.8101302", "0.8092861", "0.7854757", "0.7824589", "0.77846324", "0.7784203", "0.77822685", "0.77822685", "0.7762936", "0.775723", "0.77290404", "0.7679998", "0.7658723", "0.7645613", "0.7538306", "0.73526484", "0.732189...
0.86491305
0
Get extended help message
public function getExtendedHelpMessage() { $out = $this->getHelpMessage() . "\n"; $out .= "Usage: summary [--short] [module]\n" . "Show the summary of the most recent results of each module.\n" . "If a module name is provided as an argument, it\n" . "will display...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_help(){\n $tmp=self::_pipeExec('\"'.$this->cmd.'\" --extended-help');\n return $tmp['stdout'];\n }", "public function getHelpMessage() { return $this->data['helpMessage']; }", "public function getHelp(): string\n {\n ret...
[ "0.8037826", "0.79402626", "0.7801226", "0.7746395", "0.76596934", "0.7446455", "0.7446455", "0.7420929", "0.7363276", "0.73349345", "0.73207104", "0.7192808", "0.7192808", "0.7192808", "0.71767694", "0.71521115", "0.71431315", "0.71131134", "0.7102975", "0.71028584", "0.7087...
0.86842835
0
Display a listing of the resource.
public function index() { // $posts = Post::all(); $count = 0; return view('admin.posts.index',compact('posts','count')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Show the form for creating a new resource.
public function create() { // $categories = Category::pluck('name','id')->all(); return view('admin.posts.create',compact('categories')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.7594622", "0.7594622", "0.7588457", "0.7580005", "0.75723624", "0.7499764", "0.7436887", "0.74322647", "0.7387517", "0.735172", "0.73381543", "0.73117113", "0.72958225", "0.7280436", "0.7273787", "0.72433424", "0.7230227", "0.7225085", "0.71851814", "0.71781176", "0.717402...
0.0
-1
Store a newly created resource in storage.
public function store(PostsCreateRequest $request) { // $input = $request->all(); $user = Auth::user(); if($file = $request->file('photo_id')) { //grab the file name from client machine and append current dat and time to it, creating an unique name $te...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.7286258", "0.71454436", "0.7132821", "0.6640289", "0.6621105", "0.6566493", "0.65255576", "0.65087926", "0.6448317", "0.63752604", "0.63736314", "0.6365631", "0.6365631", "0.6365631", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0....
0.0
-1
Display the specified resource.
public function show($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245...
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { // $categories = Category::pluck('name','id')->all(); $post = Post::findOrFail($id); return view('admin.posts.edit', compact('post','categories')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { // return $request->all(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7424578", "0.7062392", "0.7056844", "0.6897447", "0.65815884", "0.6451359", "0.634689", "0.62107086", "0.6145251", "0.6121901", "0.6115076", "0.61009926", "0.60885817", "0.6053816", "0.6018965", "0.6007763", "0.5973282", "0.59455335", "0.593951", "0.59388787", "0.5892445",...
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n ...
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897...
0.0
-1
for PS >= 1.5, sets the $id_shop
public function __construct($id_shop = null) { $this->setIdshop($id_shop); //loads site params $this->loadParams(); //loads webservices URL $this->loadURLs(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getShopId() {\n\t\t\treturn $this->shopId;\n\t\t}", "public function setShopId($id)\n\t {\n\t \t $this->json['params'][$this->account]['shopid'] = $id;\n\t \t \n\t \t return $this;\n\t }", "public function setShop(string $shop)\n {\n $this->shop = $shop;\n }", "public functio...
[ "0.7516985", "0.7272931", "0.70258486", "0.6994701", "0.69685423", "0.6890607", "0.68718934", "0.6690591", "0.66408473", "0.655182", "0.65389574", "0.65249896", "0.65148884", "0.6485231", "0.64278626", "0.63136154", "0.6305182", "0.62861323", "0.6161083", "0.6125782", "0.6102...
0.6182539
18
loads site params from the file given in param
private function loadParams() { foreach ($this->_param_names as $param_name) { $funcname = 'set'.$param_name; if (_PS_VERSION_ < '1.5') $this->$funcname(Configuration::get('KWIXO_'.strtoupper($param_name))); else $this->$funcname(Configuration::get('KWIXO_'.strtoupper($param_name), null, null, $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ppom_load_file($file_path, $variables=array('')){\n\n\tif( is_array($variables))\n extract( $variables );\n \n if( file_exists($file_path))\n \tinclude ($file_path);\n else\n \tdie('File not found'.$file_path);\n}", "function loadConfig(){\n $file = file_get_contents($this->config_d...
[ "0.6018682", "0.5853855", "0.58028007", "0.5766411", "0.57496685", "0.5647814", "0.5628877", "0.56158787", "0.5611297", "0.55761707", "0.55761707", "0.55761707", "0.5556815", "0.5546447", "0.554393", "0.55390316", "0.5538574", "0.5516352", "0.5479706", "0.54572374", "0.544275...
0.54774815
19
loads scripts URL according to the current status if status defined and active
private function loadURLs() { $status = $this->statusIsAvailable($this->getStatus()) ? $this->getStatus() : 'test'; foreach ($this->_url as $scriptname => $modes) { $this->url[$scriptname] = $modes[$status]; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function loadURLs()\r\n\t{\r\n\t\t$status = $this->statusIsAvailable($this->getStatus()) ? $this->getStatus() : 'test';\r\n\r\n\t\tforeach ($this->url as $scriptname => $modes)\r\n\t\t\t$this->url_script[$scriptname] = $modes[$status];\r\n\t}", "public function setIsLoadScript($status)\n {\n $t...
[ "0.74690664", "0.64585596", "0.6164367", "0.61609364", "0.61609364", "0.5987267", "0.5932925", "0.59215367", "0.5880918", "0.5813071", "0.5799872", "0.57987654", "0.5779275", "0.57524407", "0.5731462", "0.57255983", "0.565822", "0.5654437", "0.5654437", "0.5654437", "0.565443...
0.7261437
1
returns the URL of the script given in param if it exists, false otherwise
public function getUrl($script) { if (!array_key_exists($script, $this->url)) { $msg = "L'url pour le script $script n'existe pas ou n'est pas chargée. Vérifiez le paramétrage."; insertLogKwixo(__METHOD__ . ' : ' . __LINE__, $msg); return false; } return $this->url[$script]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUrl($script)\r\n\t{\r\n\t\tif (!array_key_exists($script, $this->url_script))\r\n\t\t{\r\n\t\t\t$msg = \"L'url pour le script $script n'existe pas ou n'est pas chargée. Vérifiez le paramétrage.\";\r\n\t\t\tCertissimLogger::insertLog(__METHOD__.' : '.__LINE__, $msg);\r\n\t\t\treturn false;\r\n\t\...
[ "0.7383174", "0.68795043", "0.687784", "0.687784", "0.67987496", "0.65201247", "0.6308316", "0.6241424", "0.6241424", "0.6241424", "0.6241424", "0.6241424", "0.6241424", "0.6241424", "0.6241424", "0.6233022", "0.61503166", "0.6085929", "0.6025426", "0.5986629", "0.5985298", ...
0.7406418
0
switches status to $mode and reload URL if available, returns false otherwise
public function switchMode($mode) { if (!$this->statusIsAvailable($mode)) { CertissimLogger::insertLogKwixo(__FILE__, "Le mode '$mode' n'est pas reconnu. 'test' défini à la place."); $mode = 'test'; } //switch the status to $mode $this->setStatus($mode); //reload URLs $this->loadURLs(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setMode($mode)\n {\n $this->_isLiveMode = ($mode == self::LIVE);\n }", "public static function checkoutMode() {\n\n \tif ( file_exists(PassThru::$_realPath.'/checkoutmode') ) {\n \t\tLog::out(\"passthru - checkoutMode positive\");\n \t\treturn true;\n \t}\n \n \tret...
[ "0.5831286", "0.56028324", "0.5570128", "0.5548321", "0.54579395", "0.54401827", "0.54332304", "0.54330504", "0.54071337", "0.540272", "0.5399163", "0.5360786", "0.53475314", "0.53228694", "0.5302009", "0.52995867", "0.52206594", "0.51932627", "0.51803845", "0.5147062", "0.51...
0.6953161
0
saves params into the param YAML file and returns true if save succeed, false otherwise
public function saveParamInFile() { foreach ($this->_param_names as $param_name) { $funcname = 'get'.$param_name; if (_PS_VERSION_ < '1.5') Configuration::updateValue('KWIXO_'.strtoupper($param_name), $this->$funcname()); else Configuration::updateValue('KWIXO_'.strtoupper($param_name), $this->$...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function saveSettings($params) {\n\t\tif (!$this->canEdit()) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// plugin hook handlers should return true to indicate the settings have\n\t\t// been saved so that default code does not run\n\t\t$hook_params = array(\n\t\t\t'widget' => $this,\n\t\t\t'params' => $params\n\t\...
[ "0.64108926", "0.640945", "0.6371725", "0.6371725", "0.6342447", "0.6318787", "0.63069403", "0.62696314", "0.616305", "0.6103602", "0.60905653", "0.6059621", "0.60124564", "0.5955392", "0.59506476", "0.59328645", "0.5925509", "0.5903811", "0.58850455", "0.58722234", "0.583788...
0.5424183
84
Display a listing of the resource.
public function index() { $carts = Cart::with('crop')->where('vendor_id', Auth::user()->id)->get(); $total_bill_amount = 0; foreach ($carts as $cart) { if ($cart->crop->available_quantity == 0) { $cart->delete(); } $total_bill_amount += ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446377", "0.7361922", "0.72984487", "0.7248631", "0.7162871", "0.7148215", "0.7131838", "0.71028054", "0.7102395", "0.70988023", "0.7048243", "0.6993516", "0.6989079", "0.69341344", "0.69001913", "0.6899167", "0.68920904", "0.6887188", "0.68661547", "0.6849159", "0.683002...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { $cart = Cart::where('vendor_id', Auth::user()->id)->where('crop_id', $request->crop_id)->first(); if ($cart) { return redirect()->back()->withError('Already in cart'); } $data = $request->all(); $data['vendor_id'] = Auth:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.7286258", "0.71454436", "0.7132821", "0.6640289", "0.6621105", "0.6566493", "0.65255576", "0.65087926", "0.6448317", "0.63752604", "0.63736314", "0.6365631", "0.6365631", "0.6365631", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0....
0.0
-1
Update the specified resource in storage.
public function update(Request $request, Cart $cart) { $data = $request->all(); $cart->update($data); return redirect()->back()->with('success', 'cart updated'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Adds the specified component to the IComponentContainer.
public function addComponent(/*Nette\*/IComponent $component, $name, $insertBefore = NULL) { parent::addComponent($component, $name, $insertBefore); if ($this->currentGroup !== NULL /*&& $component instanceof IFormControl*/) { //5.11.2009 Novak $this->currentGroup->add($component); } return $component; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add(ComponentInterface $component);", "public function addComponent($component);", "public function addComponent(ComponentInterface $component);", "public function addComponent(Base $component) {\n $this->_components[] = $component;\n }", "public function addComponent($component) ...
[ "0.7784538", "0.77816904", "0.7690919", "0.69832504", "0.68490547", "0.6720029", "0.651199", "0.63161254", "0.62592995", "0.61905617", "0.60582817", "0.60511184", "0.5950936", "0.58821976", "0.57395196", "0.5710805", "0.5705764", "0.5678352", "0.56743646", "0.5671025", "0.555...
0.599527
12
Iterates over all form controls.
public function getControls() { return $this->getComponents(TRUE, 'Nette\Forms\IFormControl'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllControls();", "protected function regenerateFormControls()\n\t{\n\t\t$form = $this->getForm();\n\n\t\t// regenerate checker's checkbox controls\n\t\tif ($this->hasOperations()) {\n\t\t\t$values = $form->getValues();\n\n\t\t\t$form->removeComponent($form['checker']);\n\t\t\t$sub = $form->add...
[ "0.66396", "0.6395155", "0.59987897", "0.596678", "0.5901082", "0.57954496", "0.56972945", "0.564723", "0.55539083", "0.5546584", "0.55002546", "0.5441837", "0.5419653", "0.5410239", "0.5365661", "0.53204435", "0.52822644", "0.5257858", "0.5224224", "0.5213241", "0.5209556", ...
0.6429766
1
Pro pripad containeru ve formu
public function setRendered($value = TRUE) { $this->setOption('rendered', $value); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function Populate() {\r\n\t\t$form_instance = $this->form_instance;\r\n\t\t// Retrieve the field data\r\n\t\t$_els = vcff_parse_container_data($form_instance->form_content);\r\n\t\t// If an error has been detected, return out\r\n\t\tif (!$_els || !is_array($_els)) { return; }\r\n\t\t// Retrieve the form ins...
[ "0.6700675", "0.6567247", "0.6557318", "0.6434189", "0.63164485", "0.62855655", "0.62853134", "0.6205848", "0.62014663", "0.6183196", "0.61718696", "0.6167281", "0.6131445", "0.6114598", "0.60905504", "0.60885453", "0.6073631", "0.60344213", "0.60344213", "0.6029508", "0.6012...
0.0
-1
Pridano kvuli kontejnerum Sets userspecific option. Common options: 'rendered' indicate if method getControl() have been called 'required' indicate if ':required' rule has been applied 'description' textual or Html object description (recognized by ConventionalRenderer)
public function setOption($key, $value) { if ($value === NULL) { unset($this->options[$key]); } else { $this->options[$key] = $value; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testCustomOption() {\n // Add the boolean field handler to the test view.\n $view = Views::getView('test_view');\n $view->setDisplay();\n\n $view->displayHandlers->get('default')->overrideOption('fields', [\n 'age' => [\n 'id' => 'age',\n 'table' => 'views_test_data',...
[ "0.6084597", "0.58542883", "0.57687765", "0.55652785", "0.5563979", "0.5489098", "0.5446164", "0.54012877", "0.5399815", "0.5393554", "0.53650963", "0.536326", "0.53500986", "0.53425664", "0.5330611", "0.53249204", "0.5296109", "0.5295393", "0.5295367", "0.52951366", "0.52852...
0.0
-1
Generates label's HTML element.
public function getLabel() { return $this->label; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function render_label() {\n return xFormTemplate::apply($this->template_label, $this->options);\n }", "public function label(){\n\t\treturn '<label class=\"control-label\" for=\"'.$this->name.'\">'.$this->label.'</label>';\n\t}", "function label() {\n return \"<label>\".$this->label.\": </labe...
[ "0.7675705", "0.7674529", "0.761245", "0.76109695", "0.76002926", "0.75068545", "0.74875414", "0.7418551", "0.7385298", "0.73430866", "0.73090625", "0.72741884", "0.72741884", "0.72613966", "0.7246132", "0.71121913", "0.70153755", "0.70085955", "0.7001925", "0.69974893", "0.6...
0.0
-1
interface \ArrayAccess dg Adds the component to the container.
final public function offsetSet($name, $component) { $this->addComponent($component, $name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function &container() : array ;", "function addComponent($data);", "public function addComponent($component);", "public function add(ComponentInterface $component);", "public function getComponents();", "public function getComponents();", "public function __clone() {\n $this->comp...
[ "0.5959098", "0.59548026", "0.53048533", "0.5243955", "0.51854277", "0.51854277", "0.51234835", "0.50712514", "0.50314486", "0.5016016", "0.5013318", "0.5013318", "0.4999213", "0.49635437", "0.49635437", "0.49635437", "0.49635437", "0.49635437", "0.49613196", "0.49608856", "0...
0.47208315
44
Returns component specified by name. Throws exception if component doesn't exist.
final public function offsetGet($name) { return $this->getComponent($name, TRUE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getComponent($name) {\n if(!isset($this->components[$name])) throw new Exception(\"Component $name not exists\");\n\n return $this->components[$name];\n }", "public function getComponent($name) {\n return $this->components[$name];\n }", "public function getComponent($...
[ "0.861294", "0.8147452", "0.79454845", "0.7896916", "0.78829867", "0.7095062", "0.7069661", "0.7033262", "0.6466447", "0.6386398", "0.63575816", "0.6308349", "0.6182937", "0.61809206", "0.61430746", "0.60704243", "0.6035982", "0.59779614", "0.5965816", "0.59588087", "0.594081...
0.6707944
8
Does component specified by name exists?
final public function offsetExists($name) { return $this->getComponent($name, FALSE) !== NULL; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function componentDoesNotExist() : bool\n\t{\n\t\treturn ! method_exists($this->className(), $this->component);\n\t}", "public static function componentExist($component)\n {\n return isset(self::$commands[$component]);\n }", "protected function componentExists()\n {\n return $t...
[ "0.76943374", "0.7299006", "0.72213", "0.7066352", "0.69838613", "0.6910292", "0.68467486", "0.67281383", "0.6707455", "0.6697272", "0.66873926", "0.65667886", "0.6561768", "0.6561768", "0.6561768", "0.6561768", "0.6561768", "0.6561768", "0.64136606", "0.6403604", "0.6380898"...
0.7247689
2
Removes component from the container. Throws exception if component doesn't exist.
final public function offsetUnset($name) { $component = $this->getComponent($name, FALSE); if ($component !== NULL) { $this->removeComponent($component); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function removeComponent()\n {\n (new Filesystem)->deleteDirectory(\n resource_path('assets/js/components')\n );\n }", "public function detach($component);", "function removeComponent($acomponent)\r\n {\r\n //Removes a component from the com...
[ "0.6303586", "0.6252472", "0.62159735", "0.5895183", "0.57278365", "0.57058316", "0.54859275", "0.54854727", "0.5463962", "0.54206836", "0.54206836", "0.54206836", "0.54206836", "0.53785497", "0.53687453", "0.536179", "0.5360531", "0.534296", "0.5317966", "0.52575356", "0.525...
0.5348527
17
control factories dg Adds singleline text input control to the form.
public function addText($name, $label = '', $cols = NULL, $maxLength = NULL) { return $this[$name] = new TextInput($label, $cols, $maxLength); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function txtCilindrada_Create($strControlId = null) {\n\t\t\t$this->txtCilindrada = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtCilindrada->Name = QApplication::Translate('Cilindrada');\n\t\t\t$this->txtCilindrada->Text = $this->objFichas->Cilindrada;\n\t\t\t$this->txtCilindrada->M...
[ "0.60080916", "0.58642375", "0.58390415", "0.5831949", "0.579809", "0.5759829", "0.5725629", "0.5685612", "0.56668943", "0.56618416", "0.5653067", "0.5648203", "0.56314063", "0.5625685", "0.56221616", "0.5616547", "0.5598755", "0.5592705", "0.5588107", "0.55729187", "0.556025...
0.52693295
66
Adds singleline text float number input control to the form.
public function addFloat($name, $label = '', $cols = 4, $maxLength = NULL) { return $this[$name] = new FloatInput($label, $cols, $maxLength); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _field_number($fval) \n {\n return $this->_field_text($fval);\n }", "function number( \n\t $name, $title = null, $value = null, \n\t $required = false, \n\t $attributes = null\n\t){\n return $this->input(\n\t $name, \n\t Form::TYPE_NUMBER,\n\t $title, \n...
[ "0.60248977", "0.58514655", "0.554682", "0.55460733", "0.5416546", "0.5413518", "0.53914297", "0.5375392", "0.5374889", "0.5293773", "0.5264965", "0.52462184", "0.5220956", "0.5207607", "0.52015626", "0.517828", "0.5169786", "0.51286143", "0.5123235", "0.51062554", "0.5097652...
0.5860399
1
Adds singleline text input control used for sensitive input such as passwords.
public function addPassword($name, $label, $cols = NULL, $maxLength = NULL) { $control = new TextInput($label, $cols, $maxLength); $control->setPasswordMode(TRUE); $this->addComponent($control, $name); return $control; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function display_input_text_field($name, $value, $size = 75) {\n?>\n<input type=\"text\" name=\"<?php echo htmlspecialchars($this->group); ?>[<?php echo htmlspecialchars($name); ?>]\" id=\"http_authentication_<?php echo htmlspecialchars($name); ?>\" value=\"<?php echo htmlspecialchars($value) ?>\" size=\"<...
[ "0.58270127", "0.57235605", "0.56712186", "0.5646344", "0.5646307", "0.55887866", "0.5576606", "0.55710655", "0.5553509", "0.5549198", "0.5539813", "0.5506856", "0.550645", "0.5460097", "0.5429501", "0.5424558", "0.5397142", "0.5395577", "0.53597313", "0.5347745", "0.5319015"...
0.54459465
14
Adds multiline text input control to the form.
public function addTextArea($name, $label, $cols = 40, $rows = 10) { return $this[$name] = new TextArea($label, $cols, $rows); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function add_new_line() {\n\n\t\t$this->fields[] = array( 'newline' => true );\n\n\t}", "public function setMultiline($multiline = true) {}", "public function addInput($LableText = null, $NewLine = false , $InputPrams = array(), $InputValue = array()) \n{\n $this->showElment($this->processInput($Lab...
[ "0.6259633", "0.60663223", "0.58223933", "0.57378006", "0.5722647", "0.5617135", "0.5590648", "0.5588035", "0.55347943", "0.55201703", "0.54850054", "0.5469688", "0.5463095", "0.5431389", "0.5426543", "0.5407463", "0.53909963", "0.5377414", "0.5349583", "0.5341112", "0.533419...
0.5123269
27
Adds control that allows the user to upload files.
public function addFile($name, $label) { return $this[$name] = new FileUpload($label); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function _pagelet_upload_control($options = array())\n {\n $default_options = array(\n 'message' => 'Supports multiple file selection, drag&amp;drop, progress bar, cross-domain, chunked and resumable file uploads.',\n\n 'id' => 'file-upload',\n 'is_multiple' => TRU...
[ "0.6936367", "0.67394733", "0.66048294", "0.65882486", "0.6426651", "0.6406239", "0.6398911", "0.6394184", "0.6365227", "0.6350249", "0.6342652", "0.63355553", "0.63181186", "0.628697", "0.62754506", "0.6189443", "0.6189443", "0.6188568", "0.6188568", "0.6188568", "0.6188568"...
0.0
-1
Adds hidden form control used to store a nondisplayed value.
public function addHidden($name, $value = NULL) { return $this[$name] = new HiddenField($value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setHidden($value = TRUE);", "public function addHidden() {\n parent::createHiddenWithValidator(\"id\");\n }", "public function addHidden() {\n parent::createHiddenWithValidator(\"id\");\n }", "public function addHiddenField($name,$value) {\n $this->formLines[] = '<i...
[ "0.7301332", "0.7145171", "0.7145171", "0.7079056", "0.6877635", "0.68513304", "0.6792379", "0.67562985", "0.67296726", "0.6680702", "0.6680008", "0.6629704", "0.6618299", "0.660649", "0.6576404", "0.65714693", "0.6538914", "0.6536696", "0.6470416", "0.64232326", "0.638504", ...
0.6719676
9
Adds hidden form control used to store a nondisplayed value.
public function addValue($name, $value) { return $this[$name] = new ValueField($value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setHidden($value = TRUE);", "public function addHidden() {\n parent::createHiddenWithValidator(\"id\");\n }", "public function addHidden() {\n parent::createHiddenWithValidator(\"id\");\n }", "public function addHiddenField($name,$value) {\n $this->formLines[] = '<i...
[ "0.73015505", "0.7144775", "0.7144775", "0.70782787", "0.6877923", "0.6852996", "0.6793453", "0.67567563", "0.67288584", "0.67192256", "0.66809565", "0.66802484", "0.66293144", "0.6618184", "0.66063243", "0.657766", "0.65727735", "0.65387404", "0.65365434", "0.647034", "0.642...
0.0
-1
Adds check box control to the form.
public function addCheckbox($name, $caption, $items = array(1 => 1, 0 => 0)) { return $this[$name] = new Checkbox($caption, $items); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function AddCheckboxToRegistrationForm()\n\t{\n\t\tif ( ! is_user_logged_in())\n\t\t{\n\t\t\t$checked = get_option($this->GrOptionDbPrefix . 'registration_checked');\n\t\t\t?>\n\t\t\t<p class=\"form-row form-row-wide\">\n\t\t\t\t<input class=\"input-checkbox GR_registrationbox\" value=\"1\" id=\"gr_registra...
[ "0.7454603", "0.7389858", "0.6982826", "0.6882469", "0.6685229", "0.6657663", "0.6641693", "0.6528659", "0.64803743", "0.6473123", "0.6449235", "0.6446762", "0.64463395", "0.6446009", "0.6422478", "0.6420715", "0.64072657", "0.6369788", "0.6364608", "0.63480324", "0.633413", ...
0.62034607
32
Adds set of radio button controls to the form.
public function addRadioList($name, $label, array $items = NULL) { return $this[$name] = new RadioList($label, $items); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function UpdateRadioFields(){\n $_tabs = array_keys($this->form_fields);\n foreach ($_tabs as $_tab) {\n $sizeof = sizeof($this->form_fields[$_tab]);\n for ($j = 0; $j < $sizeof; $j ++) {\n if ($this->form_fields[$_tab][$j][\"control\"] == \"checkbox\") {\n ...
[ "0.59776", "0.5916462", "0.5895254", "0.58163023", "0.57622683", "0.56680363", "0.5667913", "0.566016", "0.5640825", "0.5637338", "0.56247836", "0.55170906", "0.5512662", "0.54879177", "0.5462033", "0.5442074", "0.5402858", "0.5401478", "0.5373421", "0.53691757", "0.5365172",...
0.0
-1
Adds select box control that allows single item selection.
public function addSelect($name, $label, $items = NULL, $size = NULL) { return $this[$name] = new SelectBox($label, $items, $size); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function theme_select(&$item) {\n\n\t\t$class = array('form-select');\n\t\t_form_set_class($item, $class);\n\n\t\t$size = $item['#size'] ? ' size=\"' . $item['#size'] . '\"' : '';\n\t\t$multiple = isset($item['#multiple']) && $item['#multiple'];\n\n\t\t$retval .= '<select name=\"'\n\t\t\t. $item['#name'] . ''. ($m...
[ "0.61533844", "0.59298015", "0.5775667", "0.5734499", "0.573293", "0.5730076", "0.563047", "0.56237876", "0.5499041", "0.54006255", "0.5398956", "0.5361821", "0.53601706", "0.53517205", "0.53517205", "0.534616", "0.53427726", "0.53275657", "0.5317555", "0.52860355", "0.525760...
0.5868407
2
Adds select box control that allows single item selection with bind to parent Select.
public function addSelectBind($name, $label, $items = NULL, $parent, $size = NULL) { return $this[$name] = new SelectBoxBind($label, $items, $parent, $size); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newSelect()\n {\n return $this->newInstance('Select');\n }", "public function addSelect($name, $label, $items = NULL, $size = NULL)\n\t{\n\t\treturn $this[$name] = new SelectBox($label, $items, $size);\n\t}", "function theme_select(&$item) {\n\n\t\t$class = array('form-select');\n\...
[ "0.61773527", "0.5996655", "0.59589136", "0.5743725", "0.56297994", "0.558627", "0.554805", "0.54564553", "0.5319266", "0.53090584", "0.5299444", "0.5279626", "0.5270832", "0.5232853", "0.5232853", "0.52327496", "0.521464", "0.5212312", "0.52074", "0.5206586", "0.51899594", ...
0.6500639
0
Adds select box control that allows multiple item selection.
public function addMultiSelect($name, $label, array $items = NULL, $size = NULL) { return $this[$name] = new MultiSelectBox($label, $items, $size); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIsMultipleSelect(){\n return true;\n }", "public function isMultiSelect() {}", "public function setMultiSelect($multiSelect = true) {}", "function _field_select_multiple($fval) \n {\n // if need be, copy the current vals for safety + reset()\n $postedvals = (is_a...
[ "0.6525376", "0.6503853", "0.62403095", "0.6169399", "0.5858537", "0.5840415", "0.5753206", "0.57342625", "0.5710295", "0.56461644", "0.55983347", "0.5573511", "0.55563337", "0.55393684", "0.54650736", "0.5417635", "0.54041463", "0.53747773", "0.5374175", "0.5371663", "0.5341...
0.64239657
2
Adds button used to submit form.
public function addSubmit($name, $caption) { return $this[$name] = new SubmitButton($caption); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function submitButton(){\n\t\t\n\t\t$this->addElement('button', 'bttnsubmit', array (\n\t\t\t\t'class' => 'btn blue ',\n\t\t\t\t'ignore'=>true,\n\t\t\t\t'type'=>'submit',\n \t\t\t\t'label'=>'<i class=\"fa fa-check\"></i> Save',\n\t\t\t\t'escape'=>false\n\t\t));\n\t\t$this->bttnsubmit->setDecorators(array('V...
[ "0.84699076", "0.7593174", "0.758997", "0.748885", "0.7197006", "0.71176434", "0.70549077", "0.70335966", "0.7012711", "0.69435924", "0.69188786", "0.6909819", "0.6883306", "0.68592334", "0.6795127", "0.6776371", "0.67741555", "0.66996545", "0.66522", "0.6612889", "0.6604895"...
0.5968258
87
Adds push buttons with no default behavior.
public function addButton($name, $caption) { return $this[$name] = new Button($caption); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addsButtons() {}", "protected function registerButtons() {}", "protected function registerButtons() {}", "private function loadButtons()\n {\n $objAdd = $this->addButtonNew(_FEST);\n $objAdd->setInline();\n }", "protected function initDefaultButtons()\n {\n if ...
[ "0.73389184", "0.6615263", "0.6614784", "0.63576406", "0.6288947", "0.6274591", "0.6253501", "0.6251194", "0.6133152", "0.6126957", "0.6113874", "0.6075283", "0.5978185", "0.5939329", "0.5921935", "0.5903775", "0.58980894", "0.5860916", "0.58281064", "0.57993114", "0.5794356"...
0.0
-1
Adds graphical button used to submit form.
public function addImage($name, $src = NULL, $alt = NULL) { return $this[$name] = new ImageButton($src, $alt); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function submitButton(){\n\t\t\n\t\t$this->addElement('button', 'bttnsubmit', array (\n\t\t\t\t'class' => 'btn blue ',\n\t\t\t\t'ignore'=>true,\n\t\t\t\t'type'=>'submit',\n \t\t\t\t'label'=>'<i class=\"fa fa-check\"></i> Save',\n\t\t\t\t'escape'=>false\n\t\t));\n\t\t$this->bttnsubmit->setDecorators(array('V...
[ "0.82290155", "0.7514475", "0.74319243", "0.7288254", "0.718673", "0.71389425", "0.7090933", "0.70408356", "0.7039002", "0.6978259", "0.68786705", "0.6855424", "0.680552", "0.6783935", "0.6705324", "0.6659817", "0.66512287", "0.6624086", "0.6585579", "0.6559926", "0.65396136"...
0.0
-1
Adds naming container to the form.
public function addContainer($name, $label = NULL, $required = FALSE) { $control = new FormContainer; $control->label = $label; //$control->setOption('inline') = TRUE; // vnoreny container if($required) $control->setOption('required', TRUE); //$control->currentGroup = $this->currentGroup; return $this[$nam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function addFormFieldNamesToViewHelperVariableContainer() {}", "protected function addFormObjectNameToViewHelperVariableContainer() {}", "static function add_name(): void {\r\n\t\tself::add_acf_inner_field(self::divisions, self::name, [\r\n\t\t\t'label' => 'Name',\r\n\t\t\t'type' => 'text',\...
[ "0.7250471", "0.7218297", "0.6471057", "0.6232313", "0.612205", "0.60906875", "0.6070127", "0.5884168", "0.5876493", "0.5841931", "0.5830083", "0.5827782", "0.5811157", "0.5806719", "0.5796147", "0.5723983", "0.57142645", "0.5696318", "0.5661079", "0.5653174", "0.564546", "...
0.62937677
3
Get all user for Admin .
public function users() { return $this->hasMany('App\User'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get_admin_users(){\n \n global $db;\n \n $query = \"SELECT * FROM users \";\n $query .= \"WHERE user_role = 'admin'\";\n \n $result = User::makeQuery($query);\n \n return $result;\n }", ...
[ "0.8308036", "0.8210048", "0.81195223", "0.7987607", "0.79301286", "0.79023147", "0.7875496", "0.77465343", "0.7740218", "0.77277166", "0.7708714", "0.7686165", "0.7684998", "0.7679398", "0.7669034", "0.7633594", "0.7632804", "0.7632804", "0.7632804", "0.7605881", "0.75637835...
0.0
-1
Get all film for Admin.
public function films() { return $this->hasMany('App\Film'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n return Film::all();\n }", "public function index()\n {\n //\n return Film::all();\n }", "public function index() // Filmleri listeler\n {\n $films = Film::all();\n return $films;\n }", "public function index()\n {\n ...
[ "0.7514433", "0.74798524", "0.72230995", "0.70703864", "0.69863576", "0.68395275", "0.68037426", "0.6707274", "0.66107804", "0.6608386", "0.6602657", "0.6563492", "0.6532715", "0.6527472", "0.6486995", "0.64767766", "0.64310926", "0.64255327", "0.6425025", "0.64202005", "0.64...
0.58992195
69
Test get messages from previous request
public function testGetMessagesFromPrevRequest() { $storage = ['slimFlash' => ['Test']]; $flash = new Messages($storage); $this->assertEquals(['Test'], $flash->getMessages()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetEmptyMessagesFromPrevRequest()\n {\n $storage = [];\n $flash = new Messages($storage);\n\n $this->assertEquals([], $flash->getMessages());\n }", "public function testMessages()\n {\n $response = $this->json('GET', '/api/messages');\n $response->a...
[ "0.6963384", "0.6546446", "0.63883805", "0.6366512", "0.6366512", "0.6299762", "0.62522984", "0.61525875", "0.6126471", "0.6036581", "0.6027699", "0.60088867", "0.60025966", "0.5976435", "0.59667623", "0.59667623", "0.59667623", "0.59667623", "0.59667623", "0.59667623", "0.59...
0.7407301
0
Test a string can be added to a message array for the current request
public function testAddMessageFromAnIntegerForCurrentRequest() { $storage = ['slimFlash' => []]; $flash = new Messages($storage); $flash->addMessageNow('key', 46); $flash->addMessageNow('key', 48); $messages = $flash->getMessages(); $this->assertEquals(['46','48']...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAddMessageFromStringForCurrentRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $flash->addMessageNow('key', 'value');\n\n $messages = $flash->getMessages();\n $this->assertEquals(['value'], $messages['key']);\n\n ...
[ "0.63396215", "0.6315442", "0.5907559", "0.58490497", "0.58008903", "0.5735759", "0.5543733", "0.5439099", "0.53641605", "0.5336792", "0.5280305", "0.526865", "0.5263324", "0.52414083", "0.52326226", "0.5206398", "0.52054787", "0.51950544", "0.5192795", "0.5176214", "0.514847...
0.5324709
10
Test a string can be added to a message array for the current request
public function testAddMessageFromStringForCurrentRequest() { $storage = ['slimFlash' => []]; $flash = new Messages($storage); $flash->addMessageNow('key', 'value'); $messages = $flash->getMessages(); $this->assertEquals(['value'], $messages['key']); $this->asser...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAddMessageFromStringForNextRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $flash->addMessage('key', 'value');\n\n $this->assertArrayHasKey('slimFlash', $storage);\n $this->assertEquals(['value'], $storage['slimFlash...
[ "0.63160044", "0.590883", "0.5850043", "0.58008045", "0.57348406", "0.5544945", "0.54400766", "0.536486", "0.53373414", "0.5325601", "0.5282629", "0.52709055", "0.526223", "0.5238714", "0.5234709", "0.5207915", "0.5205427", "0.5196832", "0.51946807", "0.51754576", "0.51515394...
0.6341585
0
Test an array can be added to a message array for the current request
public function testAddMessageFromArrayForCurrentRequest() { $storage = ['slimFlash' => []]; $flash = new Messages($storage); $formData = [ 'username' => 'Scooby Doo', 'emailAddress' => 'scooby@mysteryinc.org', ]; $flash->addMessageNow('old', $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAddMessageFromArrayForNextRequest()\n {\n $storage = ['slimFlash' => []];\n $flash = new Messages($storage);\n\n $formData = [\n 'username' => 'Scooby Doo',\n 'emailAddress' => 'scooby@mysteryinc.org',\n ];\n\n $flash->addMessage...
[ "0.66719", "0.6004601", "0.5933607", "0.5913529", "0.587468", "0.5841768", "0.5825768", "0.5692597", "0.56697255", "0.56646067", "0.5588559", "0.5534701", "0.5519163", "0.54959625", "0.54949576", "0.5475062", "0.5463661", "0.5442685", "0.5425069", "0.5421461", "0.5415065", ...
0.6700288
0