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
Show the form for creating a new resource.
public function create() { return View::make('mobilephones.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() { $data = Input::all(); $validation = Validator::make($data, Utility::commonRules()); if($validation->fails()){ Redirect::to('/')->withErrors($validation); } $image_path = ""; if(Input::hasFile('image_path')){ $file = Input::file('image_path'); $filename = str...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.63424...
0.0
-1
Display the specified resource.
public function show($id) { $product = Product::with('category')->find($id); $substr = "title LIKE ".implode(' AND title LIKE ', preg_split("/[\s,]+/",preg_replace("/(\w+)/","'%$1%'",$product->title))); $substr = preg_split("/[\s,]+/",preg_replace("/(\w+)/","%$1%",$product->title)); foreach ($substr as $key) ...
{ "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) { $product = Product::find($id); return View::make('mobilephones.edit')->with(compact('product')); }
{ "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($id) { $product = Product::find($id); if(Auth::user()->id != $product->poster_id){ return Redirect::to('/')->with('message','Wrong Poster'); } $image_path = $product->image_path; if(Input::hasFile('image_path')){ $file = Input::file('image_path'); $filename = str_random(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // $product = Product::find($id); if($product){ $product->delete(); } return Redirect::to('/')->with('message','Successfully Deleted'); }
{ "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
(array[SalesTerm], optional): Current sales terms
public function __construct(array $params) { $this->warnings = isset($params['warnings']) ? $params['warnings'] : ''; $this->processId = isset($params['processId']) ? $params['processId'] : ''; $this->status = isset($params['status']) ? $params['status'] : ''; $this->errors = isset($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_terms()\n {\n }", "public function get_terms()\n\t{\n\t\treturn $this->terms;\n\t}", "public function terms() {\n\t\treturn $this->terms->terms();\n\t}", "public function get_terms() {\n return $this->terms;\n }", "public static function calculateTerm($deal) {\n\...
[ "0.60119367", "0.59462494", "0.59275264", "0.58983636", "0.5686645", "0.56330985", "0.5598801", "0.55916727", "0.5586615", "0.5511313", "0.5496746", "0.5474062", "0.54606205", "0.5402331", "0.53912246", "0.5375583", "0.53624237", "0.534942", "0.528408", "0.52700347", "0.52354...
0.0
-1
Cantidad de registros por pagina
function get_paged_list($limit = null, $offset = 0, $filtro = null) { if(!empty($filtro)){ $filtro = explode(' ', $filtro); foreach($filtro as $f){ $this->db->or_like('c.nombre',$f); $this->db->or_like('c.descripcion',$f); } } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testCountRegioes()\n {\n $this->assertCount(5, UF::$REGIOES);\n }", "function nbErreurs(){\r\n if (!isset($_REQUEST['erreurs'])){\r\n\t return 0;\r\n\t}\r\n\telse{\r\n\t return count($_REQUEST['erreurs']);\r\n\t}\r\n}", "public function countAnnonce() {\n $db = $this->...
[ "0.6725432", "0.6672787", "0.66640455", "0.66145104", "0.6559569", "0.649385", "0.6481245", "0.6461444", "0.64487535", "0.6412218", "0.63302094", "0.627342", "0.6209036", "0.6133891", "0.6124441", "0.60969555", "0.60837734", "0.6079649", "0.6075225", "0.6072264", "0.6046355",...
0.0
-1
Obtener manzana por id
function get_by_id($id) { $this->db->where('id', $id); return $this->db->get($this->tbl); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function getId();", "public function...
[ "0.7514065", "0.7514065", "0.7514065", "0.7514065", "0.7514065", "0.7514065", "0.7514065", "0.7514065", "0.7514065", "0.7514065", "0.7514065", "0.7514065", "0.7514065", "0.7514065", "0.7514065", "0.7514065", "0.7514065", "0.7514065", "0.7514065", "0.7514065", "0.7514065", "...
0.0
-1
Actualizar manzana por id
function update($id, $datos) { $this->db->where('id', $id); $this->db->update($this->tbl, $datos); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setId($id){ $this->id=$id;}", "public function setId($id) ;", "public function setID($id);", "function setId($id){\n\t\t$this->id = $id;\n\t}", "function setId($id){\r\n\t\t$this->id = $id;\r\n\t}", "public function setId($id) { $this->id = $id; }", "public function setId($id)\n {\n ...
[ "0.72144175", "0.7213273", "0.70955074", "0.7095434", "0.70668983", "0.70287144", "0.70063955", "0.6993517", "0.6993517", "0.6993517", "0.69873154", "0.69873154", "0.69873154", "0.69873154", "0.69873154", "0.69873154", "0.69873154", "0.69873154", "0.69873154", "0.69873154", "...
0.0
-1
Eliminar manzana por id
function delete($id) { $this->db->where('id', $id); $this->db->delete($this->tbl); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function eliminar($id)\n {\n //\n }", "public function eliminar($id)\n {\n //\n }", "public function eliminar($id)\n {\n }", "public function eliminar($id)\n {\n }", "public function eliminar($id)\n {\n }", "protected function eliminar($id)\n {\n }...
[ "0.8095113", "0.8095113", "0.80732787", "0.80732787", "0.80732787", "0.80530304", "0.7945314", "0.7912613", "0.7621257", "0.7617724", "0.7533934", "0.7486204", "0.7486204", "0.74021524", "0.7382734", "0.7379378", "0.7283489", "0.72694355", "0.7264141", "0.7234609", "0.7230474...
0.0
-1
Gets an array of external entity type permissions.
public function ExternalEntityTypePermissions() { $perms = array(); // Generate node permissions for all node types. foreach (ExternalEntityType::loadMultiple() as $type) { $perms += $this->buildPermissions($type); } return $perms; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function entityGalleryTypePermissions() {\n $perms = array();\n // Generate entity gallery permissions for all entity gallery types.\n foreach (EntityGalleryType::loadMultiple() as $type) {\n $perms += $this->buildPermissions($type);\n }\n\n return $perms;\n }", "public function permi...
[ "0.7189829", "0.6989495", "0.6966285", "0.6898314", "0.6896353", "0.68632835", "0.67812526", "0.6763675", "0.673349", "0.6726324", "0.66731304", "0.66731304", "0.66682696", "0.6648148", "0.664122", "0.664122", "0.65730786", "0.65605384", "0.6505143", "0.64764386", "0.6433009"...
0.84525174
0
Builds a standard list of external entity permissions for a given type.
protected function buildPermissions(ExternalEntityType $type) { $type_id = $type->id(); $type_params = array('%type_name' => $type->label()); return array( "create $type_id external entity" => array( 'title' => $this->t('%type_name: Create new external entity', $type_params), ), "...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function buildPermissions(EntityGalleryType $type) {\n $type_id = $type->id();\n $type_params = array('%type_name' => $type->label());\n\n return array(\n \"create $type_id entity galleries\" => array(\n 'title' => $this->t('%type_name: Create new entity galleries', $type_params),\n ...
[ "0.6803465", "0.6761389", "0.6692831", "0.6634918", "0.6594306", "0.64647055", "0.64469683", "0.6351283", "0.586982", "0.58554333", "0.5835833", "0.5782066", "0.57617277", "0.5740527", "0.57039744", "0.5545564", "0.547719", "0.54566735", "0.545404", "0.5372211", "0.5347817", ...
0.81037617
0
Create the event listener.
public function __construct() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addRequestCreateListener($listener);", "public function onEvent();", "private function init_event_listeners() {\n\t\t// add_action('wp_ajax_example_action', [$this, 'example_function']);\n\t}", "public function listener(Listener $listener);", "protected function setupListeners()\n {\n ...
[ "0.65685207", "0.62875676", "0.6221792", "0.6197413", "0.61627764", "0.6129312", "0.6096226", "0.6056844", "0.6051069", "0.6041841", "0.596228", "0.596194", "0.5957539", "0.59439605", "0.58821785", "0.58821785", "0.5874665", "0.5864387", "0.5856076", "0.584338", "0.5824244", ...
0.0
-1
Method is not testable (STDIN/STDOPUT problem),see or
public function run() { // streams $read = [$this->_input]; $write = null; $except = null; // stream ends? $end_of_stream = false; $waitForMinComputationTime = defined('PROKKIBOT_MIN_COMPUTATION_TIME') && !empty(PROKKIBOT_MIN_COMPUTATION_TIME); do { $changed_streams = stream_select($read, $w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function stdin();", "public function readSTDIN() {\n\t\ttry {\n\t\t\t$string = NULL;\n\t\t\t$handle = fopen('php://stdin', 'r');\n\t\t\t\n\t\t\twhile (!feof($handle)) {\n\t\t\t\t$string .= fgets($handle, 1024);\n\t\t\t} //<-- end while -->\n\t\t\t\n\t\t\tfclose($handle);\n\t\t\t\n\t\t\tif (!$string) {\n\t...
[ "0.71069705", "0.66083306", "0.65675837", "0.6541771", "0.6518897", "0.6420176", "0.64060163", "0.63448757", "0.6330928", "0.6289994", "0.6271396", "0.6264161", "0.61966705", "0.61906046", "0.6179412", "0.61735326", "0.6172714", "0.6152739", "0.6127913", "0.6125484", "0.61071...
0.0
-1
Test for execute() method.
public function testExecute() { $company = $this ->getMockBuilder(\Magento\Company\Api\Data\CompanyInterface::class) ->disableOriginalConstructor() ->setMethods(['getSalesRepresentativeId']) ->getMockForAbstractClass(); $initialCompany = $this ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function execute();", "abstract public function execute();", "abstract public function execute();", "abstract public function execute();", "public abstract function execute();", "public abstract function execute();", "public abstract function execute();", "abstract function execute();...
[ "0.80465966", "0.80465966", "0.80465966", "0.80465966", "0.8037514", "0.8037514", "0.8037514", "0.79885346", "0.79885346", "0.79692304", "0.79567266", "0.79567266", "0.79567266", "0.79567266", "0.79567266", "0.79567266", "0.79567266", "0.79567266", "0.79567266", "0.79567266", ...
0.0
-1
Test for execute() method if sales representatives IDs of company and initial company are equal.
public function testExecuteIfSalesRepresentativesIdsEqual() { $salesRepresentativeId = 1; $company = $this ->getMockBuilder(\Magento\Company\Api\Data\CompanyInterface::class) ->disableOriginalConstructor() ->setMethods(['getSalesRepresentativeId']) ->g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testExecute()\n {\n $company = $this\n ->getMockBuilder(\\Magento\\Company\\Api\\Data\\CompanyInterface::class)\n ->disableOriginalConstructor()\n ->setMethods(['getSalesRepresentativeId'])\n ->getMockForAbstractClass();\n $initialCompany...
[ "0.59031135", "0.5580825", "0.5340377", "0.52788275", "0.5170822", "0.51461387", "0.51396227", "0.5054827", "0.5035228", "0.500984", "0.49981907", "0.4992841", "0.4984993", "0.4982965", "0.497837", "0.4953366", "0.49393314", "0.49281672", "0.49234185", "0.49032775", "0.489836...
0.76329875
0
Create a new controller instance.
public function __construct() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createController()\n {\n $this->createClass('controller');\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this-...
[ "0.82668066", "0.8173394", "0.78115296", "0.77052677", "0.7681875", "0.7659338", "0.74860525", "0.74064577", "0.7297601", "0.7252339", "0.7195181", "0.7174191", "0.70150065", "0.6989306", "0.69835985", "0.69732994", "0.6963521", "0.6935819", "0.68973273", "0.68920785", "0.687...
0.0
-1
error_reporting(0); //Uncomment this to hide notice reports on Live server, else leave it commented for develop
public function WriteToCommentsTable() //Inserts comments to Comments Table { $servername = "localhost"; $username = "root"; $password = ""; $db = "frameusers"; $table = "comments"; $commentTxt = $_POST['cmt']; $user = $_SESSION['username']; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function show_errors()\r\n{\r\n\terror_reporting(E_ALL);\r\n\tini_set('display_errors', '1');\r\n}", "function setReporting() {\nif (DEVELOPMENT_ENVIRONMENT == true) {\n error_reporting(E_ALL);\n ini_set('display_errors','On');\n} else {\n error_reporting(E_ALL);\n ini_set('display_errors','Off');\n ...
[ "0.73823667", "0.7379137", "0.7312549", "0.72980326", "0.7202291", "0.7112725", "0.71031994", "0.7095923", "0.6944677", "0.6910325", "0.6844473", "0.6743014", "0.6720938", "0.6638801", "0.66130996", "0.65036196", "0.6474685", "0.64256805", "0.64206874", "0.6341465", "0.622613...
0.0
-1
error_reporting(0); //Uncomment this to hide notice reports on Live server, else leave it commented for develop
public function WriteToPCommentsTable() //stores comments to db { $servername = "localhost"; $username = "root"; $password = ""; $db = "frameusers"; $table = "pcomments"; $commentTxt = $_POST['Pcmt']; $user = $_SESSION['username']; $dateti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function show_errors()\r\n{\r\n\terror_reporting(E_ALL);\r\n\tini_set('display_errors', '1');\r\n}", "function setReporting() {\nif (DEVELOPMENT_ENVIRONMENT == true) {\n error_reporting(E_ALL);\n ini_set('display_errors','On');\n} else {\n error_reporting(E_ALL);\n ini_set('display_errors','Off');\n ...
[ "0.73840386", "0.73802125", "0.73141015", "0.7299227", "0.7203349", "0.7113795", "0.71050215", "0.7097031", "0.6945425", "0.6911138", "0.68471384", "0.67448217", "0.6724071", "0.66402483", "0.66159976", "0.65053535", "0.6474072", "0.64267", "0.64218295", "0.6342647", "0.62273...
0.0
-1
error_reporting(0); //Uncomment this to hide notice reports on Live server, else leave it commented for develop
public function createPost($profile) //This allows users to write to different user's walls { $servername = "localhost"; $username = "root"; $password = ""; $db = "frameusers"; $table = "pcomments"; $cmtBody = $_POST['Pcmt']; $datetime = new DateTi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function show_errors()\r\n{\r\n\terror_reporting(E_ALL);\r\n\tini_set('display_errors', '1');\r\n}", "function setReporting() {\nif (DEVELOPMENT_ENVIRONMENT == true) {\n error_reporting(E_ALL);\n ini_set('display_errors','On');\n} else {\n error_reporting(E_ALL);\n ini_set('display_errors','Off');\n ...
[ "0.7384344", "0.737948", "0.7312493", "0.72986376", "0.720269", "0.71131206", "0.7105002", "0.7096195", "0.6946181", "0.69095516", "0.68470126", "0.6743884", "0.67236537", "0.6639866", "0.6615786", "0.6503801", "0.6474478", "0.64260155", "0.6420751", "0.63425046", "0.62264967...
0.0
-1
Display functions for forum, posts and replies ================================================================
public function displayForumImp() { $servername = "localhost"; $username = "root"; $password = ""; $db = "forumdb"; $table = "forum"; $count=1; $frname=array(); $frdesc=array(); // Create connection $conn = new mysqli...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function forumHandler() {}", "function Forum_show(&$PAGEDATA) {\n\t$view=0;\n\tif (isset($_REQUEST['forum-t'])) {\n\t\t$view=2;\n\t\t$thread_id=(int)$_REQUEST['forum-t'];\n\t}\n\telse if (isset($_REQUEST['forum-f'])) {\n\t\t$view=1;\n\t\t$forum_id=(int)$_REQUEST['forum-f'];\n\t}\n\tif ($view==0) {\n\t\t$forums=d...
[ "0.70005393", "0.6962288", "0.68411535", "0.6742073", "0.66885906", "0.66214216", "0.6589976", "0.6569449", "0.6536488", "0.6421608", "0.63960123", "0.6358747", "0.63552725", "0.63551044", "0.6352334", "0.6332639", "0.6328654", "0.6318848", "0.62977237", "0.6272226", "0.62681...
0.6570261
7
================================================Posts within the forums are done below this line(no, not the method, just a normal post section)=====================================================
public function displayPost() { $forumName = $_GET['name']; $servername = "localhost"; $username = "root"; $password = ""; $db = "forumdb"; $table = "post"; // Create connection $conn = new mysqli($servername, $username, $password, $db...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function the_post()\n {\n }", "function asForumPosts($data) {\r\n$IPBHTML = \"\";\r\n//--starthtml--//\r\n$IPBHTML .= <<<EOF\r\n<!--Begin Msg Number {$data['pid']}-->\n<div class='post_block hentry clear no_sidebar ipsBox_container' id='post_id_{$data['pid']}'>\n\t<div class='post_wrap'>\n\t...
[ "0.72909194", "0.7253882", "0.6951052", "0.69384956", "0.6896605", "0.6891749", "0.6846492", "0.6769174", "0.67484593", "0.6733144", "0.667558", "0.6674503", "0.6630266", "0.65993625", "0.6574174", "0.65564793", "0.6535535", "0.6535534", "0.6525662", "0.6491353", "0.6483658",...
0.62387097
38
error_reporting(0); //Uncomment this to hide notice reports on Live server, else leave it commented for develop
public function createPost() { $servername = "localhost"; $username = "root"; $password = ""; $db = "forumdb"; $table = "post"; $forumName = $_GET['name']; $Body = $_POST['postbody']; $datetime = new DateTime(); $user = $_SESSIO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function show_errors()\r\n{\r\n\terror_reporting(E_ALL);\r\n\tini_set('display_errors', '1');\r\n}", "function setReporting() {\nif (DEVELOPMENT_ENVIRONMENT == true) {\n error_reporting(E_ALL);\n ini_set('display_errors','On');\n} else {\n error_reporting(E_ALL);\n ini_set('display_errors','Off');\n ...
[ "0.73840386", "0.73802125", "0.73141015", "0.7299227", "0.7203349", "0.7113795", "0.71050215", "0.7097031", "0.6945425", "0.6911138", "0.68471384", "0.67448217", "0.6724071", "0.66402483", "0.66159976", "0.65053535", "0.6474072", "0.64267", "0.64218295", "0.6342647", "0.62273...
0.0
-1
Create a base user, assume github username is correct
public function index(Request $request) { //@TODO can't assume this $this->user = new stdClass(); $this->searchUsername($request->input('username')); $this->searchName($this->user->name); $this->searchPotentialUsers(); dd($this->user); return view('welcome'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createUser();", "public function createUser();", "public function createUser();", "public function createUser();", "function create_user($username, $password, $email)\n {\n }", "public function createUser($name, $pass, $profile, array $extra = []);", "function createUser(){\n\t\t\...
[ "0.6676201", "0.6676201", "0.6676201", "0.6676201", "0.6561822", "0.63923097", "0.6372158", "0.63636047", "0.63353455", "0.6325288", "0.63114184", "0.6270878", "0.62591314", "0.6246527", "0.6197292", "0.6188583", "0.6175349", "0.614518", "0.6142215", "0.61177564", "0.6101431"...
0.0
-1
Sets a new uUIDIdentifikator
public function setUUIDIdentifikator($uUIDIdentifikator) { $this->uUIDIdentifikator = $uUIDIdentifikator; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setIdentifier($id)\n {\n $this->uid = (int)$id;\n }", "function setUID($uid) {\n\t\t$this->_uid = $uid;\n\t}", "public function setUid($uid);", "public function set_uid($uid) {\n $this->uid = intval($uid);\n }", "public function setUID($uid = null)\n {\n if ...
[ "0.6738292", "0.6476877", "0.6431986", "0.63546604", "0.629667", "0.625409", "0.61927783", "0.61927783", "0.61927783", "0.61927783", "0.61927783", "0.61927783", "0.617899", "0.6167011", "0.6099815", "0.60893697", "0.60704887", "0.6018466", "0.5966381", "0.5962146", "0.5953556...
0.6972107
0
Sets a new virkningFraFilter
public function setVirkningFraFilter(?\Digitaliseringskataloget\Sagdok3_0_0\VirkningFraFilter $virkningFraFilter = null) { $this->virkningFraFilter = $virkningFraFilter; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setFilter($filter){ }", "function setFilter($filter) {\n\t\t$this->_filter = $filter;\n\t}", "public function setFilter($filter) : self\n {\n $this->initialized['filter'] = true;\n $this->filter = $filter;\n return $this;\n }", "public function setFilter(string $fil...
[ "0.65618676", "0.6379019", "0.626052", "0.624759", "0.60144067", "0.5960534", "0.59402245", "0.59334904", "0.59313", "0.5901031", "0.58806205", "0.5840974", "0.5840884", "0.5825377", "0.57891357", "0.57356817", "0.5718442", "0.5674054", "0.5647496", "0.5639524", "0.5626549", ...
0.67078674
0
Sets a new virkningTilFilter
public function setVirkningTilFilter(?\Digitaliseringskataloget\Sagdok3_0_0\VirkningTilFilter $virkningTilFilter = null) { $this->virkningTilFilter = $virkningTilFilter; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setFilter($filter){ }", "function setFilter($filter) {\n\t\t$this->_filter = $filter;\n\t}", "public function setFilter(string $filter);", "public function setDataFilter($filter)\n {\n // TODO: improve logging when we finally have a central Tesseract debugging workflow\n if (...
[ "0.6256199", "0.6116941", "0.60776716", "0.6061939", "0.5935819", "0.59337145", "0.589211", "0.5759268", "0.569589", "0.5630974", "0.5625592", "0.5606651", "0.55725634", "0.5515273", "0.5496747", "0.5495308", "0.54719603", "0.547118", "0.5464948", "0.5416283", "0.538264", "...
0.7448768
0
Sets a new registreringFraFilter
public function setRegistreringFraFilter(?\Digitaliseringskataloget\Sagdok3_0_0\RegistreringFraFilter $registreringFraFilter = null) { $this->registreringFraFilter = $registreringFraFilter; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setFilter($filter){ }", "function setFilter($filter) {\n\t\t$this->_filter = $filter;\n\t}", "public function registerFilter(Chainr_Filter $filter) {\n\t\t$this->filterChain->register($filter);\n\t}", "public function setFilter(string $filter);", "public function setRegistreringTilFilter(?\...
[ "0.6486333", "0.63432646", "0.62681276", "0.6203279", "0.6089539", "0.60690427", "0.60614246", "0.5913182", "0.5911716", "0.5909922", "0.5908412", "0.5737506", "0.5717446", "0.5690971", "0.5674141", "0.5672395", "0.5654998", "0.56489885", "0.5648545", "0.5613346", "0.56019604...
0.69844073
0
Sets a new registreringTilFilter
public function setRegistreringTilFilter(?\Digitaliseringskataloget\Sagdok3_0_0\RegistreringTilFilter $registreringTilFilter = null) { $this->registreringTilFilter = $registreringTilFilter; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setFilter($filter){ }", "public function setFilter(string $filter);", "function setFilter($filter) {\n\t\t$this->_filter = $filter;\n\t}", "public function setVirkningTilFilter(?\\Digitaliseringskataloget\\Sagdok3_0_0\\VirkningTilFilter $virkningTilFilter = null)\n {\n $this->virkni...
[ "0.7077936", "0.68532735", "0.68118304", "0.67019135", "0.65534437", "0.63818544", "0.6334924", "0.624136", "0.61934924", "0.61549014", "0.60904306", "0.6050619", "0.6007504", "0.600214", "0.5954915", "0.59159064", "0.58857167", "0.5855579", "0.5853472", "0.58460265", "0.5841...
0.7234813
0
default values for input form
function drawInputForm(){ $dMethod = 'LRFD'; global $dUnits; $dModulus = '200000'; $dPlateGrade = 'A36'; $dBeamGrade = 'A36'; $dColumnGrade = 'A36'; $dWeldGrade = 'E70'; $dBoltGrade = 'A325'; $dShearForce = '0'; $dColumnForce = '0'; $dConfiguration = '4_BOLTS_UNSTIFFENED'; global $dBeamSection; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function set_default_values() {\n\t\t?>\n\t\tcase \"nu_phone\" :\n\t\t\tfield.label = \"Phone\";\n\t\t\tfield.isRequired = true;\n\t\t\tfield.description = \"Numbers only. e.g. 8885551212\";\n\t\t\tbreak;\n\t\t<?php\n\t}", "public function setDefaultValues()\n\t{\t\t\n\t\t\t \n\t}", "public funct...
[ "0.7322539", "0.6873813", "0.6838611", "0.6821936", "0.677193", "0.67581874", "0.6729348", "0.6649209", "0.6639065", "0.6638208", "0.66257846", "0.6567988", "0.65184605", "0.65184605", "0.65184605", "0.65092295", "0.6498726", "0.6467897", "0.6458959", "0.6428139", "0.63462067...
0.0
-1
bypass scenarios() implementation in the parent class
public function scenarios() { return Model::scenarios(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function scenarios() {\n return yii\\base\\Model::scenarios();\n }", "public function scenarios(): array;", "public function scenarios() {\n $scenarios = parent::scenarios();\n \n $scenarios['updateLogo'] = ['employer_logo'];\n\n return $scenarios;\n }", "publi...
[ "0.69479024", "0.64154226", "0.6404568", "0.63141996", "0.63141996", "0.63141996", "0.63141996", "0.62543017", "0.6235037", "0.6235037", "0.6235037", "0.6235037", "0.6232693", "0.6144243", "0.61430675", "0.61147594", "0.6041508", "0.5981801", "0.5854334", "0.5761018", "0.5719...
0.6101843
47
/ End of file common_helper.php / Location: ./appplication/helpers/array_helper.php Element Send push notifications to android & iphone devices Get the users device Id with the device type
function send_notification($msg, $users) { $android_user = array(); $ios_user = array(); foreach ($users as $user) { if ($user['DeviceType'] == 'A') { $android_user[] = $user['DeviceId']; } if ($user['DeviceType'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sendPushNotificationToAndroid($registatoin_ids , $message , $type)\n {\n\t\n\t$messages = array(\"data\" => $message);\n //$fields = array('registration_ids' => $registatoin_ids, 'data' => $messages, 'type' => $type);\n\t$fields = array('registration_ids' =>$registatoin_ids , 'data' => $m...
[ "0.6569726", "0.65556127", "0.6469303", "0.6387688", "0.6345769", "0.6313246", "0.63021576", "0.62178344", "0.619058", "0.6180588", "0.6152584", "0.60970294", "0.607752", "0.59925437", "0.5941866", "0.5869452", "0.58664685", "0.58416784", "0.58230835", "0.5805175", "0.5772924...
0.6864269
0
Function to create the message and send push notification to android
function create_push_message($product_id = '', $retailer_id = '', $store_type_id = '', $store_id = '', $product_name = '', $retailer_name = '', $store_name = '', $store_type_name = '', $special_count = 0, $special_price = 0, $special_name = '', $success_count = 0, $store_array = array(), $product_array = array(), $stor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function send_message() \n {\n $device_token = $this->get_device_token();\n\n // Put your private key's passphrase here:\n $passphrase = $this->get_api_key();\n\n // Put your alert message here:\n $msg_data = $this->get_message();\n\n $ctx = stream_context_create();\n...
[ "0.7556529", "0.73835117", "0.7294164", "0.7289285", "0.72827744", "0.7275378", "0.72295713", "0.7188029", "0.7134796", "0.7027157", "0.7018612", "0.6980577", "0.69096166", "0.69021636", "0.68692064", "0.6817298", "0.6816482", "0.68067354", "0.67933506", "0.67829937", "0.6781...
0.63294655
53
Function to send push notification when change price of the store
function create_change_push_message($product_id = '', $retailer_id = '', $store_type_id = '', $store_id = '', $product_name = '', $retailer_name = '', $store_name = '', $store_type_name = '', $price = 0, $success_count = 0, $store_array = array(), $product_array = array(), $store_detail_array = array()) { /* $multi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function on_buy()\r\n\t{\r\n\t}", "public function hookActionProductUpdate($params)\n {\n $config = Tools::jsonDecode(Configuration::get('KB_PUSH_NOTIFICATION'), true);\n \n if (!empty($config) && isset($config['module_config']['enable'])) {\n $module_config = $config['module_c...
[ "0.6518792", "0.6212048", "0.61338615", "0.6123155", "0.60680443", "0.6008338", "0.58618057", "0.5824372", "0.5818815", "0.5778821", "0.5776055", "0.57625306", "0.5730447", "0.57062584", "0.570339", "0.5668887", "0.5643146", "0.5637972", "0.56082284", "0.5594886", "0.559207",...
0.66332924
0
Create location change notification message
function create_location_change_message($user_id, $device_token, $latitude, $longitude, $distance) { $notification_array = array( 'title' => 'Location Change Alert', 'message' => 'You are out of the preferred location. Please change the location to get more alerts.', 'latitude' => $latitude...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showNoticeLocation()\n {\n $id = $this->notice->id;\n\n $location = $this->notice->getLocation();\n\n if (empty($location)) {\n return;\n }\n\n $name = $location->getName();\n\n $lat = $this->notice->lat;\n $lon = $this->notice->lon;\n ...
[ "0.58110785", "0.5752141", "0.5654719", "0.54998213", "0.53405035", "0.53264284", "0.5291446", "0.52883244", "0.52883244", "0.5213636", "0.518438", "0.51799464", "0.517806", "0.51536566", "0.51158094", "0.50687534", "0.5055135", "0.5051269", "0.50446486", "0.501496", "0.49730...
0.7608566
0
Function to send the notification if the user is near to the store
function create_location_nearby_message($user_id, $device_token, $nearby_store_data) { $notification_array = array( 'title' => 'Nearby Store Alert', 'message' => 'You are near to store: ' . $nearby_store_data['StoreName'] . '. ' . $nearby_store_data['SpecialCount'] . ' specials are available here.'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function send_push_notification_location($notification_array, $user_id, $device_token, $store_near = 0) {\n $CI = &get_instance();\n $can_send = TRUE;\n// if($store_near === 0){ \n// if ($this -> session -> userdata('location_notification_send_time')) {\n// $start = date_create($this -> ...
[ "0.6043288", "0.57348716", "0.53542256", "0.5348562", "0.5305889", "0.5199681", "0.51625484", "0.51314044", "0.5063772", "0.5049372", "0.50391716", "0.5036657", "0.50204957", "0.50019825", "0.49854276", "0.4969458", "0.49552038", "0.49531442", "0.4949317", "0.49484727", "0.49...
0.70245343
0
Send notification to the user if gone out of the preferred location
function send_push_notification_location($notification_array, $user_id, $device_token, $store_near = 0) { $CI = &get_instance(); $can_send = TRUE; // if($store_near === 0){ // if ($this -> session -> userdata('location_notification_send_time')) { // $start = date_create($this -> session ->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function create_location_change_message($user_id, $device_token, $latitude, $longitude, $distance) {\n\n $notification_array = array(\n 'title' => 'Location Change Alert',\n 'message' => 'You are out of the preferred location. Please change the location to get more alerts.',\n 'latitude' =>...
[ "0.56901294", "0.54407865", "0.53561056", "0.52291447", "0.52265346", "0.51214993", "0.51067215", "0.5097743", "0.5083724", "0.50556934", "0.50349396", "0.5014769", "0.49809533", "0.49476984", "0.49440664", "0.49411362", "0.4938022", "0.4915247", "0.49112883", "0.49109933", "...
0.5040484
10
Loads the Zend resource and initials the Enlight_Controller_Front class. After the front resource is loaded, the controller path is added to the front dispatcher. After the controller path is set to the dispatcher, the plugin namespace of the front resource is set.
public function factory( Container $container, \Enlight_Event_EventManager $eventManager, array $options, RequestStack $requestStack ) { /** @var \Enlight_Controller_Front $front */ $front = \Enlight_Class::Instance('Enlight_Controller_Front', [$eventManager]); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function initialize()\n {\n // Set the include path\n set_include_path(\n dirname(__FILE__) . '/library'\n . PATH_SEPARATOR\n . get_include_path()\n );\n\n /* Zend_View */\n require_once 'Zend/View.php';\n\n /* Zend_Registry */\...
[ "0.7250692", "0.70551544", "0.7043361", "0.70290935", "0.6646813", "0.66076416", "0.64886534", "0.64636976", "0.6442078", "0.64228463", "0.6391399", "0.6349535", "0.6347593", "0.62916636", "0.62439454", "0.62238765", "0.6219783", "0.62132436", "0.6196003", "0.61657125", "0.61...
0.0
-1
Adds an array of column ids to skip
public function skip($skipIds = null) { if (empty($skipIds)) { $skipIds = []; } else if (!is_array($skipIds)) { $skipIds = [$skipIds]; } $this->skip = $skipIds; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function incrementRowsSkipped(): void\n {\n $this->rowsSkipped++;\n }", "public function skip($howMany);", "public function setSkipSql($skip)\n {\n $this->skipSql = (Boolean)$skip;\n }", "function rhd_excluded_category_columns( $columns ) {\n\treturn array_merge( $columns, ar...
[ "0.57554615", "0.55121887", "0.54373646", "0.5428507", "0.52916044", "0.5289146", "0.5173901", "0.5170893", "0.5125032", "0.5100623", "0.5087158", "0.50806713", "0.50612485", "0.50451773", "0.50147396", "0.49736094", "0.4972109", "0.49627617", "0.4953597", "0.49471533", "0.49...
0.62259763
0
Adds a cell to the current table row
public function cell() { $argKeys = ['cell', 'header', 'headerSort', 'skipId', 'cellOptions']; $totalArgs = count($argKeys); $totalArgKey = $lastArgKey = $totalArgs - 1; $args = func_get_args(); $numArgs = count($args); for ($i = $totalArgKey; $i > 0; $i--) { if (!empty($args[$i])) { $lastArg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addCell($key, Cell $cell);", "public function addRow(TableRow $row);", "private function AddRow($row) {\n $this->_table .= $this->Tpl2HTML($this->_rowtpl, array('RowContent' => $row));\n $this->_rown++;\n }", "function add_cell($val, $link = \"\")\n\t{\n\t\tif(!empty($link))\...
[ "0.70951414", "0.6703255", "0.6642177", "0.6563713", "0.65611345", "0.6559398", "0.6539321", "0.6337203", "0.62826097", "0.6267606", "0.6253327", "0.6156777", "0.6069859", "0.6039815", "0.5938514", "0.5909776", "0.5904442", "0.58804405", "0.58630323", "0.5833808", "0.582191",...
0.53264767
51
Adds multiple cells to the table row and then closes the row
public function row($cells = null, $options = []) { if (empty($options)) { $options = true; } return $this->cells($cells, $options); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tablecell_close() {\n $this->doc .= '</td>';\n }", "public function addRows()\n {\n }", "function addRowToTable(&$table, $row) {\n\t\tglobal $TCA, $BACK_PATH;\n\t\t$uid = $row['uid'];\n\t\t$hidden = $row['hidden'];\n\n\t\tif ($row[$TCA[$this->tableName]['ctrl']['languageField']]==0) {\...
[ "0.6616793", "0.6440842", "0.6383271", "0.63691765", "0.6322683", "0.62542355", "0.62028384", "0.61850685", "0.61719155", "0.6167078", "0.6137993", "0.60523415", "0.60460114", "0.6037425", "0.6030192", "0.5919578", "0.5911481", "0.5884584", "0.5839153", "0.58349234", "0.58123...
0.0
-1
Adds multiple cells to the table
public function cells($cells = null, $rowEnd = false) { if (is_array($cells)) { foreach ($cells as $cell) { $cell += [null, null, null, null, null]; $this->cell($cell[0], $cell[1], $cell[2], $cell[3], $cell[4]); } } if ($rowEnd) { $this->rowEnd(is_array($rowEnd) ? $rowEnd : []); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add_cells($cells = []){\n if(empty($cells)){\n $this -> add_cell(new HTMLCellElement(\"\"));\n }else{\n foreach ($cells as $cell) {\n $this -> add_cell($cell);\n }\n }\n }", "public function cells();", "function helper_pdf_...
[ "0.6623782", "0.64569616", "0.6454425", "0.63883036", "0.62122995", "0.6188372", "0.618014", "0.6134509", "0.5953186", "0.5951872", "0.59235585", "0.5897224", "0.58505404", "0.5850343", "0.58002627", "0.5735191", "0.57300687", "0.5694778", "0.56630594", "0.56502765", "0.56435...
0.5477972
31
Legacy function to output table
public function table($options = []) { return $this->output($options); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function make_table($table) {\n return print_table($table, true);\n}", "function as_table() \n {\n #$str = \"<table> \\n\";\n $str = \"\";\n foreach(get_object_vars($this) as $name => $obj) \n {\n if ($obj != NULL) \n {\n $str .= \"<tr>\\n\\t...
[ "0.7109124", "0.6961119", "0.6929", "0.68167764", "0.679739", "0.67096674", "0.66943103", "0.6675042", "0.6664581", "0.6636774", "0.66358036", "0.6634835", "0.66223603", "0.6583467", "0.658211", "0.65380687", "0.65359885", "0.65296805", "0.65278465", "0.650197", "0.64721525",...
0.6002656
71
Outputs current table information
public function output($options = []) { $options = array_merge([ 'form' => $this->hasForm, ], $options); $this->currentTableId++; if (!is_array($options)) { $options = [$options => true]; } $isEmpty = empty($this->rows); $output = ''; $after = ''; if (!$this->hasHe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function print_table_description()\n {\n }", "public function ListTable()\n {\n echo $this->ListTableText();\n }", "function _showTables() {\n print \"<pre>\";\n print_r($this->_tables);\n print \"</pre>\";\n }", "public function print(): void\n {\...
[ "0.7170086", "0.7072378", "0.70210934", "0.69973683", "0.69206893", "0.6917713", "0.68954396", "0.6872484", "0.6807943", "0.6797335", "0.6794948", "0.6772291", "0.67265964", "0.6706489", "0.66475886", "0.661657", "0.65304047", "0.6525657", "0.6462479", "0.6378857", "0.6371499...
0.0
-1
Checks if a column is being skipped
public function isSkipped($th) { return $this->_checkSkip($th); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isSkipColumnHeader()\n {\n return $this->isSkipColumnHeader;\n }", "function spr_exclude_column_found($column) {\nglobal $spr_exclude_db_debug;\n\n\t$rs = safe_query('SELECT * FROM '.safe_pfx('txp_section'),$spr_exclude_db_debug);\n\t$a = nextRow($rs);\n\treturn array_key_exists($col...
[ "0.7669197", "0.6758768", "0.6561356", "0.6543865", "0.64868844", "0.62241113", "0.6148054", "0.6038672", "0.6010946", "0.5993734", "0.5985426", "0.5984569", "0.59241164", "0.59218925", "0.58874285", "0.58557403", "0.5824446", "0.5818385", "0.5768855", "0.5694116", "0.5649785...
0.665213
2
Creates the navigation options for the table, including the pagination and sorting options If wrap is set to true, it return an array of the top and bottom navigation menus
public function tableNav($options = [], $wrap = false) { $return = $wrap ? ['',''] : ''; $out = ''; if (!empty($options['sort'])) { $out .= $this->tableSortMenu($options['sort'], ['class' => 'pull-right']); } $model = !empty($options['model']) ? $options['model'] : $this->Paginator->defaultMo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getPagesLinks()\n\t{\n\t\tglobal $mainframe;\n\n\t\t$lang =& JFactory::getLanguage();\n\n\t\t// Build the page navigation list\n\t\t$data = $this->_buildDataObject();\n\n\t\t$list = array();\n\n\t\t$itemOverride = false;\n\t\t$listOverride = false;\n\n\t\t$chromePath = JPATH_THEMES.DS.$mainframe->getTempl...
[ "0.6120339", "0.5898749", "0.5884466", "0.58527035", "0.5819622", "0.5768236", "0.57286805", "0.56696594", "0.56555665", "0.5626478", "0.56094486", "0.5602402", "0.55946827", "0.5591048", "0.5585551", "0.557883", "0.5568153", "0.5538077", "0.5525394", "0.552008", "0.5502185",...
0.7501029
0
Creates a sorting link for the heading cell
protected function thSort($label = null, $sort = null, $options = []) { $options = array_merge([ 'model' => null ], $options); if (empty($label)) { $label = '&nbsp;'; } $paginate = true || !empty($this->Paginator); if (!empty($paginate)) { $params = $this->Paginator->params($options['m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tep_create_sort_heading($sortby, $colnum, $heading) {\n global $PHP_SELF;\n\n $sort_prefix = '';\n $sort_suffix = '';\n\n if ($sortby) {\n $sort_prefix = '<a href=\"' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('page', 'info', 'sort')) . 'page=1&sort=' . $colnum . ($...
[ "0.7151062", "0.6813617", "0.67950547", "0.6792219", "0.67409587", "0.66092765", "0.65661913", "0.655543", "0.6539068", "0.6307011", "0.62482285", "0.6183894", "0.6158322", "0.6130875", "0.6015539", "0.589271", "0.58390504", "0.5816006", "0.5756272", "0.5743714", "0.57405585"...
0.0
-1
/METODO CONSTRUCTOR DE LA CLASS
public function __construct($n, $a, $c, $t, $em, $dir, $sx, $fn, $sc){ $this->nombre = $n; $this->apellido = $a; $this->cedula = $c; $this->telefono = $t; $this->email = $em; $this->direccion = $dir; $this->sexo = $sx; $this->fecnacper = $fn; $this->staciv = $sc; $this->fechoy = date('Y-m-d'); $th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private fun...
[ "0.8666458", "0.8666458", "0.8666458", "0.8666458", "0.8666458", "0.8666458", "0.8666458", "0.8666458", "0.8666458", "0.8666458", "0.8666458", "0.8666458", "0.8666458", "0.8666458", "0.8666458", "0.8666458", "0.8666458", "0.8633965", "0.86006725", "0.8585523", "0.85791564", ...
0.0
-1
LOS RESPECTIVOS SET... Y GET... DE CADA VARIABLE.
public function setNombre($n){ $this->nombre = $n; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSetVariables() {}", "public function valorpasaje();", "function Set_Getvar_val()\n {\n $this->getvar_val = (int)$_GET[$this->getvar];\n if($this->getvar_val<1)\n {\n $this->getvar_val = 1;\n }\n }", "public function variable(){\n try {\n // ...
[ "0.5824882", "0.5785492", "0.5737118", "0.56554365", "0.5486411", "0.54832864", "0.5413232", "0.5403554", "0.53540176", "0.5336153", "0.52806723", "0.52760804", "0.52676415", "0.52083856", "0.518941", "0.5113704", "0.5097323", "0.5090961", "0.50904626", "0.50675184", "0.50641...
0.0
-1
If user is not logged in redirect them to login
public function index() { if(!$this->user){ die('Members Only <a href="/users/login">Login</a>'); } echo "This is the index page"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function redirect_when_logged() {\n $is_logged_in = AppAuthentication::is_logged_in();\n\n // If the user is already logged in we redirect to the default path of\n // his role.\n if ($is_logged_in) {\n $user_info = AppAuthentication::get_user_data();\n redirect_to_user_default_path($user_info...
[ "0.80495083", "0.80377936", "0.7784762", "0.76492536", "0.7646651", "0.76152426", "0.7582917", "0.75781024", "0.75693434", "0.75679046", "0.75396484", "0.751695", "0.7514661", "0.75092906", "0.7447956", "0.74392056", "0.7437386", "0.74302435", "0.74184114", "0.74162185", "0.7...
0.0
-1
this sets up signup view, loads js and css and captures errors
public function signup($error = NULL) { $this->template->content3=View::instance('v_users_signup'); $this->template->title= APP_NAME. " :: Sign up"; // add required js and css files to be used in the form $client_files_head=Array('/js/languages/jquery.validationEngine-en.js', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function signup() {\n $this->template->content = View::instance(\"v_users_signup\");\n \n # Render the view\n echo $this->template;\n }", "public function signup() {\n // set third param to 1 so header/footer isn't displayed again\n $this->view->render('index/signup', ...
[ "0.75804114", "0.7524364", "0.7399359", "0.73854494", "0.7353374", "0.73277116", "0.71485025", "0.70435745", "0.69549733", "0.6782505", "0.67340904", "0.6686614", "0.6609899", "0.65877116", "0.65700924", "0.65632415", "0.65268254", "0.6522947", "0.64925456", "0.64872324", "0....
0.67688394
10
this is the function that processes the signup
public function p_signup() { $q= 'Select email From users WHERE email="'.$_POST['email'].'"'; # see if the email exists $emailexists= DB::instance(DB_NAME)->select_field($q); # email exists, throw an error if($emailexists){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function p_signup(){\n\t\tforeach($_POST as $field => $value){\n\t\t\tif(empty($value)){\n\t\t\t\tRouter::redirect('/users/signup/empty-fields');\n\t\t\t}\n\t\t}\n\n\t\t#check for duplicate email\n\t\tif ($this->userObj->confirm_unique_email($_POST['email']) == false){\n\t\t\t#send back to signup page\n\t\t...
[ "0.79888904", "0.7733975", "0.7696055", "0.76869136", "0.7677835", "0.7580091", "0.7570841", "0.753299", "0.7530093", "0.7511039", "0.7456928", "0.7436119", "0.7405426", "0.7391708", "0.7373141", "0.7359808", "0.7333507", "0.73007435", "0.72976786", "0.7270636", "0.72257054",...
0.7936471
1
sets up login view and shows error using the view
public function login($error = NULL) { $this->template->content3=View::instance('v_users_login'); $this->template->title= APP_NAME. " :: Login"; // add required js and css files to be used in the form $client_files_head=Array('/js/languages/jquery.validationEngine-en.js', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function formLogin(){\n\t\tView::show(\"user/login\");\n\t}", "public function login()\n {\n $this->renderView('login');\n }", "public function showLogin() {\n\t\treturn View::make('login/login')->with('error', '');\n\t}", "public function login(){\n \t\t//TODO redirect if user already l...
[ "0.80257314", "0.79789156", "0.78965545", "0.78348523", "0.77760977", "0.7655954", "0.758911", "0.75807196", "0.75553983", "0.75337785", "0.7530846", "0.75237155", "0.7509761", "0.7508476", "0.75059134", "0.75039524", "0.7491941", "0.74878544", "0.7479495", "0.7477483", "0.74...
0.7440133
22
this sets up email password view and displays error if any
public function emailpassword($error = NULL) { $this->template->content3=View::instance('v_users_emailpassword'); $this->template->title= APP_NAME. " :: Login"; // add required js and css files to be used in the form $client_files_head=Array('/js/languages/jquery.validationE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function forgotPassword(){\n\t\t// Set the Page Title ('pageName', 'pageSection', 'areaName')\n\t\t$this->_view->pageTitle = array('Forgot Your Password', 'Login');\n\t\t// Set Page Description\n\t\t$this->_view->pageDescription = 'You can reset your password.';\n\t\t// Set Page Section\n\t\t$this->_view->p...
[ "0.73582804", "0.7041275", "0.7005018", "0.693003", "0.6710612", "0.6689102", "0.66279", "0.6622148", "0.6612885", "0.6609213", "0.6575785", "0.6553878", "0.655179", "0.65469784", "0.6537619", "0.65359753", "0.6494458", "0.64927274", "0.6472844", "0.6464832", "0.6445919", "...
0.7696021
0
email password to users email
public function p_emailpassword(){ # if javascript is disabled this checks if user entered email and password to login if (!$_POST['email']) { Router::redirect("/users/emailpassword/error"); } # proceed with checking if email exists else { $q= 'Select...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function passwordEmail()\n {\n $this->shellshock(request(), [\n 'email' => 'required|email',\n 'g-recaptcha-response' => 'sometimes|recaptcha',\n ]);\n\n if (($user = app(config('turtle.models.user'))->where('email', request()->input('email'))->first())) {\n ...
[ "0.75237334", "0.7385961", "0.73008174", "0.7221458", "0.71154773", "0.70603234", "0.6967917", "0.6936234", "0.6852265", "0.6835179", "0.67902887", "0.67649424", "0.6749355", "0.6731855", "0.67305017", "0.67273337", "0.67014635", "0.66896087", "0.6676968", "0.6665232", "0.666...
0.73514324
2
this function let the user view other users profiles
public function profile($user_name = NULL) { if(!$this->user){ //Router::redirect('/'); die('Members Only <a href="/users/login">Login</a>'); } $this->template->content=View::instance('v_users_profile'); // $content=View::instance('v_users_profile'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function profile() {\n $this->restrictToRoleId(2);\n \n // Exécute la view\n $this->show('user/profile');\n }", "public function myprofileAction()\n {\n \tZend_Registry::set('Category', Category::ACCOUNT);\n \tZend_Registry::set('SubCategory', SubCategory::NONE);\n\...
[ "0.7432889", "0.7328086", "0.72856134", "0.7264295", "0.7142549", "0.71341217", "0.71055263", "0.71002114", "0.7070737", "0.7056218", "0.70479065", "0.704384", "0.70038277", "0.699809", "0.6993064", "0.6973791", "0.69717497", "0.69634014", "0.6957846", "0.6950549", "0.6940692...
0.0
-1
This function is to edit users profile
public function editprofile() { // If user is not logged in redirect them to login if(!$this->user){ die('Members Only <a href="/users/login">Login</a>'); } # Create a new View instance $this->template->content3=View::instance('v_users_editprofile'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function p_editProfile() {\n\t$_POST['modified'] = Time::now();\n \n $w = \"WHERE user_id = \".$this->user->user_id;\n\t\t\n\t# Insert\n\tDB::instance(DB_NAME)->update(\"users\", $_POST, $w);\n \n Router::redirect(\"/users/profile\");\n\n }", "public function actioneditProfi...
[ "0.8815151", "0.8235023", "0.8023828", "0.80198663", "0.80130374", "0.8012586", "0.793611", "0.7930787", "0.7882521", "0.7823167", "0.779548", "0.77940637", "0.7786805", "0.7779609", "0.77669305", "0.77652436", "0.7761568", "0.77610517", "0.7756399", "0.77498555", "0.77440834...
0.7713073
23
Define the model's default state.
public function definition() { return [ 'location' => 0, 'phone_number' => 0, 'last_name' => 0, 'is_public' => 0, 'public_messages' => 0, ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDefaultState()\r\n\t{\r\n\t}", "static function get_default_state();", "public function getDefaultUserState();", "private function setDefaultStates(): void\n {\n foreach ($this->arr_attributes as $strParamName) {\n $this->states[$strParamName] = $this->params->get($strParamNa...
[ "0.77757794", "0.72255844", "0.6857964", "0.67950636", "0.67661", "0.6433752", "0.64074224", "0.63712305", "0.61876214", "0.61864567", "0.6159088", "0.61543477", "0.6153316", "0.61428887", "0.6116904", "0.61084956", "0.6106097", "0.60391295", "0.60389197", "0.6019848", "0.598...
0.0
-1
Indicate that the model's location should be public.
public function publicLocation() { return $this->state(function (array $attributes) { return [ 'location' => 1, ]; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isLabelPublic()\n {\n return ($this->label == 'public');\n }", "public function isPublic() {\n\t\treturn $this->public;\n\t}", "public function isPublic()\n {\n return $this->public;\n }", "public function isPublic()\n {\n return $this->_public;\n }", "public ...
[ "0.67661715", "0.6718827", "0.6710505", "0.6688684", "0.6663686", "0.6647357", "0.6625221", "0.66238236", "0.64495337", "0.64205915", "0.6399107", "0.63955843", "0.6383736", "0.6239983", "0.62213093", "0.61335176", "0.613075", "0.6095288", "0.6032175", "0.6028373", "0.6019884...
0.58643496
29
Indicate that the model's phone number should be public.
public function publicPhoneNumber() { return $this->state(function (array $attributes) { return [ 'phone_number' => 1, ]; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasVerifiedPhone();", "public function hasTelephone(): bool;", "public function isPublic()\n {\n return $this->_public;\n }", "public function isPublic()\n {\n return $this->public;\n }", "public function isPublic() {\n\t\treturn $this->public;\n\t}", "public function is...
[ "0.64898306", "0.6386569", "0.62377524", "0.6222127", "0.61937845", "0.61648995", "0.6156399", "0.6105732", "0.6048553", "0.6012007", "0.5998215", "0.5993098", "0.598791", "0.5946367", "0.59402263", "0.59071314", "0.58636206", "0.5858392", "0.5768897", "0.5765944", "0.5764303...
0.6472975
1
Indicate that the model's last name should be public.
public function publicLastName() { return $this->state(function (array $attributes) { return [ 'last_name' => 1, ]; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function canStoreDisplayname();", "public function getLastname() {}", "public function getLastName() {}", "public function getLastName() {}", "function set_last_name($last_name='*')\r\n{\r\n\t$this->last_name = '';\t\t// return\r\n\t\r\n\t// get random name\r\n\tif ( $last_name == '*' )\r\n\t{\r\n\t...
[ "0.6180063", "0.614407", "0.6117989", "0.6117989", "0.61029446", "0.6032341", "0.60124856", "0.60051715", "0.5974674", "0.59419423", "0.5937558", "0.59218633", "0.5921", "0.59144086", "0.5865264", "0.5859314", "0.58570284", "0.58555603", "0.58447635", "0.5838385", "0.58319193...
0.564291
61
Indicate that the user is public.
public function publicUser() { return $this->state(function (array $attributes) { return [ 'is_public' => 1, ]; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isPublic() {\n return $this->privacyState == 'public';\n }", "public function isPublic() {\n\t\treturn $this->public;\n\t}", "public function isPublic()\n {\n return $this->public;\n }", "public function isPublic()\n {\n return $this->_public;\n }", "public funct...
[ "0.80202013", "0.76523757", "0.7599347", "0.75279856", "0.7474519", "0.7452971", "0.74501646", "0.7444011", "0.7399345", "0.73952776", "0.72784364", "0.70439714", "0.7001854", "0.6958568", "0.6813794", "0.67951316", "0.6767063", "0.6767063", "0.6766927", "0.67371655", "0.6716...
0.6895593
14
Indicate that public messages are allowed.
public function publicMessages() { return $this->state(function (array $attributes) { return [ 'public_messages' => 1, ]; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function is_public_allowed( $entry ) {\n\t\treturn false;\n\t}", "public function isPublic() {}", "public function isPublic()\n {\n $allowsAllHosts = false;\n $allowsRListings = false;\n foreach ($this->rules as $rule) {\n if (self::READ & $rule['mask']) {\n ...
[ "0.675742", "0.6548334", "0.6544168", "0.6444184", "0.64189076", "0.63178605", "0.6298838", "0.62197924", "0.6218151", "0.62042356", "0.6198216", "0.6174677", "0.6172411", "0.61446965", "0.61084276", "0.6105878", "0.6077288", "0.60626817", "0.60309887", "0.60133857", "0.60097...
0.5796725
35
Determine if the user is authorized to make this request.
public function authorize() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authorize()\n {\n if ($this->user() !== null) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }"...
[ "0.8401071", "0.8377486", "0.8377486", "0.8344406", "0.8253731", "0.824795", "0.8213121", "0.8146598", "0.81115526", "0.8083369", "0.7991986", "0.79907674", "0.79836637", "0.79604936", "0.79516214", "0.79494005", "0.79265946", "0.7915068", "0.79001635", "0.7894822", "0.789145...
0.0
-1
Get the validation rules that apply to the request.
public function rules() { $user = $this->route('user'); return [ 'name'=>'required', 'role'=>'required', 'phone'=>'required', 'class'=>'required', 'coin'=>'required', 'user_name'=>'required|min:5|max:255|unique:Users,user_name,'.$user->id, 'ema...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rules()\n {\n $commons = [\n\n ];\n return get_request_rules($this, $commons);\n }", "public function getRules()\n {\n return $this->validator->getRules();\n }", "public function getValidationRules()\n {\n $rules = [];\n\n // Get the sche...
[ "0.8342703", "0.80143493", "0.7937251", "0.79264987", "0.79233825", "0.79048395", "0.78603816", "0.7790699", "0.77842164", "0.77628785", "0.7737272", "0.7733618", "0.7710535", "0.7691693", "0.76849866", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.76830...
0.0
-1
Get the cards that are available for the given request.
public function availableCards(AdminRequest $request) { return $this->resolveCards($request)->filter->authorize($request)->values(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index(CardRequest $request)\n {\n return $request->availableCards();\n }", "public function cards(Request $request)\n {\n return [\n\n ];\n }", "public function cards(Request $request)\n {\n return [\n new Bookings,\n ...
[ "0.79891163", "0.7243225", "0.71895236", "0.71414095", "0.7123965", "0.7123965", "0.7116729", "0.7116729", "0.7116729", "0.7116729", "0.7116729", "0.7116729", "0.7116729", "0.7116729", "0.7116729", "0.7116729", "0.7116729", "0.7116729", "0.7116729", "0.7116729", "0.7116729", ...
0.726391
1
Get the cards for the given request.
public function resolveCards(AdminRequest $request) { return collect(array_values($this->filter($this->cards($request)))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cards(Request $request)\n {\n return [\n\n ];\n }", "public function cards(Request $request)\n {\n return [\n new Bookings,\n new BookingsPerDay,\n new BookingPerStatus\n ];\n }", "protected function cards(Request $request...
[ "0.78828216", "0.7700755", "0.7642698", "0.76161814", "0.7602721", "0.75726104", "0.75726104", "0.7571473", "0.7571473", "0.7571473", "0.7571473", "0.7571473", "0.7571473", "0.7571473", "0.7571473", "0.7571473", "0.7571473", "0.7571473", "0.7571473", "0.7571473", "0.7571473",...
0.64654106
87
Get the cards available on the entity.
public function cards(Request $request) { return []; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCards();", "public function getCards()\n {\n return $this->cards;\n }", "public function getCards()\n {\n return $this->cards;\n }", "public function getCards()\n {\n return $this->cards;\n }", "public function index(CardRequest $request)\n {...
[ "0.7874817", "0.7537292", "0.7537292", "0.7537292", "0.7406798", "0.690356", "0.67862254", "0.6713356", "0.6695608", "0.66596025", "0.65360254", "0.65319735", "0.65061796", "0.65061796", "0.6482702", "0.64793694", "0.6473247", "0.6447528", "0.63960564", "0.63710606", "0.63568...
0.6414816
61
Display a listing of the resource.
public function index() { if(Auth::check()){ $user_id = auth::user()->id; if($user_id==2){ return redirect('/delivery/payment'); } } return view('admin_ui.view-product'); }
{ "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() { if(Auth::check()){ $user_id = auth::user()->id; if($user_id==2){ return redirect('/delivery/payment'); } } $category = Category::all(); $subcategory = SubCategory::all(); return view('admin_ui....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { if(Auth::check()){ $user_id = auth::user()->id; if($user_id==2){ return redirect('/delivery/payment'); } } $count = count($request->file); if($count>5){ Session::flash('message', "Fai...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.63424...
0.0
-1
Display the specified resource.
public function edit($id) { if(Auth::check()){ $user_id = auth::user()->id; if($user_id==2){ return redirect('/delivery/payment'); } } $products = Product::findOrFail($id); $productimage = ProductImage::where('product_id','=',$i...
{ "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
Update the specified resource in storage.
public function update(Request $request, $id) { if(Auth::check()){ $user_id = auth::user()->id; if($user_id==2){ return redirect('/delivery/payment'); } } $products = Product::findOrFail($id); if($request->product_name == $prod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { if(Auth::check()){ $user_id = auth::user()->id; if($user_id==2){ return redirect('/delivery/payment'); } } $products=Product::findOrfail($id); Product::where('id',$id)->update(['product_status'=>2]...
{ "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
Create a new controller instance.
public function __construct() { $this->middleware('auth'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createController()\n {\n $this->createClass('controller');\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this-...
[ "0.82668066", "0.8173394", "0.78115296", "0.77052677", "0.7681875", "0.7659338", "0.74860525", "0.74064577", "0.7297601", "0.7252339", "0.7195181", "0.7174191", "0.70150065", "0.6989306", "0.69835985", "0.69732994", "0.6963521", "0.6935819", "0.68973273", "0.68920785", "0.687...
0.0
-1
Show the application dashboard.
public function index() { $data['result'] = \App\Api::all(); return view('home')->with($data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function dashboard()\n {\n\n $pageData = (new DashboardService())->handleDashboardLandingPage();\n\n return view('application', $pageData);\n }", "function dashboard() {\r\n\t\t\tTrackTheBookView::render('dashboard');\r\n\t\t}", "public function showDashboard() { \n\t\n ...
[ "0.77850926", "0.7760142", "0.7561336", "0.75147176", "0.74653697", "0.7464913", "0.73652893", "0.7351646", "0.7346477", "0.73420244", "0.7326711", "0.7316215", "0.73072463", "0.7287626", "0.72826403", "0.727347", "0.727347", "0.727347", "0.727347", "0.7251768", "0.7251768", ...
0.0
-1
The fetch types listed are not an exhaustive list, See PHP man pages for all fetch types SET THIS TO FALSE IF YOU NEED TO DO A QUERY THAT ISN'T A SELECT PDO::FETCH_ASSOC return queries indexed by column name PDO::FETCH_NUM return queries indexed by 0indexed column number PDO::FETCH_BOTH return queries indexed by column...
public function setFetchMode($fetch_mode) { $this->fetchMode = $fetch_mode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pdo_fetch_array($stmt, $type=3) {\r\n \r\n $map = array(\r\n MYSQL_ASSOC/*1*/ => PDO::FETCH_ASSOC/*2*/,\r\n MYSQL_NUM/*2*/ => PDO::FETCH_NUM/*3*/,\r\n MYSQL_BOTH/*3*/ => PDO::FETCH_BOTH/*4*/,\r\n // no consistency so far, so let's embrace and extend it:\r\n 0=>...
[ "0.7577967", "0.7347575", "0.7301222", "0.6997996", "0.69137037", "0.6908234", "0.68530804", "0.6842057", "0.68331105", "0.67624164", "0.6753345", "0.6690624", "0.6639591", "0.6639025", "0.66043234", "0.660098", "0.6583198", "0.6537187", "0.6518853", "0.64093214", "0.63974804...
0.0
-1
/ pass in array of the form [ [ 'name' => SQL field name 'value' => SQL field value 'type' => SQL field type ], . . . ]
function insertParamArray($array) { foreach ($array as $key => $param) { $name = $param['name']; $value = $param['value']; $type = $param['type']; $this->insertParam($name, $value, $type); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setFields($array)\r\n\t{\r\n\t\t$db = new \\Fmw\\Core\\Db();\r\n\t\t$fields = $db->getColumns($this->getTabName($this->defTab));\r\n\t\tif ($fields) {\r\n\t\t\t$colName = false;\r\n\r\n\t\t\tforeach ($fields as $field) {\r\n\t\t\t\t$colName = $field['Field'];\r\n\r\n\t\t\t\tif (isset($array[$field['Field'...
[ "0.6918311", "0.6724328", "0.67199373", "0.64898324", "0.6463044", "0.6460844", "0.6426752", "0.6425019", "0.64166003", "0.62794244", "0.62632287", "0.62437767", "0.62322104", "0.6230309", "0.6220281", "0.620018", "0.6180452", "0.6162083", "0.613797", "0.6105367", "0.6103606"...
0.0
-1
converter endereco em um objeto com latitude e longitude
protected function getLongLat($endereco){ $end = str_replace(" ", "+", $endereco); $url = "http://maps.googleapis.com/maps/api/geocode/json?address=".$end."&sensor=false"; $json = file_get_contents($url); $data = json_decode($json, TRUE); return json_encode($data['results'][...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCoordinates(Address $address)\n {\n $type = NULL;\n\n //set latitude and longitude of new user\n //remove bis, ter from address street for localization research because it makes the research inaccurate \n $base = strtolower(trim($address->getStreet1().' '...
[ "0.5961505", "0.5891433", "0.57869726", "0.570382", "0.5678855", "0.5677647", "0.5670468", "0.56352973", "0.56352973", "0.5623706", "0.56191015", "0.5542514", "0.55292034", "0.5516571", "0.5505411", "0.5469877", "0.5433283", "0.5406255", "0.5387065", "0.5348505", "0.5340457",...
0.60305923
0
======================================== Validate user. ========================================
function validateUser($user) { $errNum = array(); // Declare error names $emailError = ""; $passwordError = ""; // Email validation if (empty($_POST["email"])) { $emailError = "E-mail is required"; array_push($errNum, 1); } // Password validation if (empty($_POST["password"])) { $passwo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validUser();", "private function _checkValidUser()\n\t{\n\t\t$user = $this->getUser();\n\t\tif(NULL == $user->getFirstname()) return $this->redirect('/logout');\n\t\tif(NULL <> $user->getEmployerId()) return $this->redirect('/admin');\n\t}", "private function validateUserInput() {\n\t\ttry {\n\...
[ "0.85626876", "0.78657055", "0.77383393", "0.76522344", "0.7619292", "0.75417846", "0.74073", "0.73844784", "0.73055315", "0.7260934", "0.7258668", "0.72481745", "0.7219421", "0.7203323", "0.71873313", "0.7147083", "0.71455353", "0.71367234", "0.7130957", "0.7097556", "0.7014...
0.0
-1
======================================== Helper function used for validation. ========================================
function test_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _validate() {\n\t}", "public static function validate() {}", "abstract public function validate();", "abstract public function validate();", "public abstract function validation();", "public function validation();", "public function validate();", "public function validate();", "p...
[ "0.8028978", "0.7984545", "0.7953279", "0.7953279", "0.78783625", "0.7674689", "0.7671844", "0.7671844", "0.7671844", "0.7671844", "0.7671844", "0.7671844", "0.7671844", "0.7671844", "0.7671844", "0.7671844", "0.7671844", "0.7671844", "0.75483006", "0.74119896", "0.74116194",...
0.0
-1
Display a listing of the resource.
public function index() { //$trends="thankyou1dfor"; $trends= $name = Input::get('trending'); $phpArray = '{ "aggs": { "tweets": { "filter": { "term": { "tweet.entities.hashtags.text": "'.$trends.'" } }, "aggs": { "histotweets": { "histogram":...
{ "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
Get the validation rules that apply to the request.
public function rules() { return [ 'name' => 'required|max:255', 'apiary_id' => 'required', 'hive_type_id' => 'required', 'queen_id' => 'required', 'beehive_image' => 'image|nullable|mimes:jpeg,png,jpg,gif,svg|max:2048' ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rules()\n {\n $commons = [\n\n ];\n return get_request_rules($this, $commons);\n }", "public function getRules()\n {\n return $this->validator->getRules();\n }", "public function getValidationRules()\n {\n $rules = [];\n\n // Get the sche...
[ "0.8342703", "0.80143493", "0.7937251", "0.79264987", "0.79233825", "0.79048395", "0.78603816", "0.7790699", "0.77842164", "0.77628785", "0.7737272", "0.7733618", "0.7710535", "0.7691693", "0.76849866", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.76830...
0.0
-1
Get query source of dataTable.
public function query(Payment $model) { return $model->newQuery()->sortByDate()->with('terminal')->with('filial')->with('payer')->select('*'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fetchDataTableSource()\n { \n $dataTableConfig = [\n 'searchable' => [\n 'title' \n ]\n ];\n\n return SpecificationPreset::with([\n 'presetItem' => function($query) {\n ...
[ "0.6895125", "0.6753405", "0.6509491", "0.64851296", "0.6465343", "0.64154166", "0.63834846", "0.6268942", "0.6261598", "0.6261598", "0.6227419", "0.6218134", "0.62151456", "0.61885744", "0.6168129", "0.6070435", "0.60309273", "0.60120887", "0.59311485", "0.5923787", "0.59018...
0.0
-1
Optional method if you want to use html builder.
public function html() { return $this->builder() ->columns($this->getColumns()) ->parameters([ 'dom' => 'Bfrtip', 'buttons' => ['export', 'excel', 'pdf', 'print', 'reset', 'reload'], ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function html() {}", "public function html();", "protected function generateHtml()\n\t{\n\t}", "abstract public function generateHtml();", "public function renderHTML()\n {\n }", "public abstract function asHTML();", "public static function html() {\n\n\t\treturn new BF_HTML_Generator;\n\t...
[ "0.8223474", "0.7832399", "0.77049524", "0.7642871", "0.75216883", "0.74815524", "0.7403877", "0.73037547", "0.72794753", "0.7205899", "0.7202348", "0.7202348", "0.7194561", "0.71864444", "0.7173879", "0.71675974", "0.716523", "0.716523", "0.716523", "0.71432114", "0.71009815...
0.68485934
34
Get filename for export.
protected function filename() { return 'Payment_'.date('YmdHis'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function filename()\n {\n return 'Export_' . date('YmdHis');\n }", "protected function filename () : string {\n return sprintf('%s/%s.csv', $this->instanceDirectory(), $this->guessName());\n }", "public function getFileName()\n {\n $fileName = $this->getInfo('fileName...
[ "0.8196528", "0.80591613", "0.7949222", "0.7926228", "0.76592237", "0.7587201", "0.7587201", "0.7554733", "0.75451165", "0.750201", "0.750201", "0.7494168", "0.74720484", "0.7440598", "0.7438713", "0.74358875", "0.7431382", "0.7413326", "0.7389984", "0.735199", "0.7335797", ...
0.7250907
37
Create exception instance for accesstokenfetchfailed.
public static function accessTokenFetchFailed(Response $response) { return new static(sprintf( "Fetching access token from Procountor failed. '%s'", $response->body() )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testInvalidAccessTokenThrowsException(): void\n {\n $apiKey = $this->createValidFakeApiKey();\n $this->expectException(InvalidAccessTokenException::class);\n $this->tryTestWithCredentials($apiKey);\n }", "public function toException()\n {\n if ($this->failed()...
[ "0.572985", "0.555491", "0.5300718", "0.52597654", "0.5165469", "0.5097996", "0.5053184", "0.5026039", "0.49861214", "0.49824154", "0.49411005", "0.49185032", "0.4861722", "0.4860134", "0.4855615", "0.48008066", "0.47991243", "0.47854894", "0.47608408", "0.4750715", "0.472750...
0.6176644
0
Create a new notification instance.
public function __construct($ticketObj) { $this->ticketObj = $ticketObj; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function create($notification){\n }", "public static function createNotification($type, $eventid){\n\t\t$notification = new Notification; \n\t\t$notification->type = $type;\n\t\t$notification->eventid = $eventid;\n\t\t$notification->time = date('Y-m-d H:i:s');\n\t\t$notification->save();\n\t\tretu...
[ "0.8276063", "0.72309536", "0.7192113", "0.71250874", "0.7123231", "0.70414555", "0.6982398", "0.6982398", "0.6982398", "0.69165224", "0.6844303", "0.68205667", "0.6801263", "0.6776018", "0.6589725", "0.6531073", "0.6507233", "0.65047646", "0.6503655", "0.64437956", "0.641349...
0.0
-1
Get the notification's delivery channels.
public function via($notifiable) { return ['mail']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNotificationChannels()\n {\n if (array_key_exists(\"notificationChannels\", $this->_propDict)) {\n return $this->_propDict[\"notificationChannels\"];\n } else {\n return null;\n }\n }", "public function getDistributionChannels();", "public func...
[ "0.78077316", "0.7333707", "0.7127785", "0.7089724", "0.7087921", "0.70300424", "0.69931364", "0.6973003", "0.6951073", "0.6927183", "0.68472975", "0.67785895", "0.6697527", "0.6530563", "0.65100604", "0.6496754", "0.6474866", "0.6446399", "0.643471", "0.6423392", "0.64229727...
0.0
-1
Get the mail representation of the notification.
public function toMail($notifiable) { return (new MailMessage) ->subject('Nová požiadavka vo Vašej učebni - ' . $this->ticketObj->area->name . ' - PC' . $this->ticketObj->pc ) ->greeting('Zdravím ' . $notifiable->name) ->line('V učebni ' . $this->t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNotificationEmail() {}", "public function toMail($notifiable)\n {\n $mailMessage = (new MailMessage())\n ->error()\n ->subject($this->getMessageText())\n ->line($this->getMessageText());\n\n foreach ($this->getMonitorProperties() as $name => $v...
[ "0.7329682", "0.73008144", "0.7279281", "0.72447264", "0.7150932", "0.713269", "0.71279645", "0.7124905", "0.70436907", "0.70436907", "0.70436907", "0.70436907", "0.70169747", "0.6981995", "0.6965215", "0.69630843", "0.6962014", "0.69318545", "0.692679", "0.6913696", "0.69016...
0.6710188
73
Get the array representation of the notification.
public function toArray($notifiable) { return [ // ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toArray()\n {\n return [\n 'on' => $this->on,\n 'message' => $this->message,\n 'remaining' => $this->remaining\n ];\n }", "public function toArray($notifiable)\n {\n return $this->message;\n }", "public function getAsArray() {\n ...
[ "0.76758885", "0.76516277", "0.75636953", "0.74597746", "0.7458128", "0.734528", "0.73423344", "0.72810096", "0.72445726", "0.7225404", "0.7216026", "0.72065705", "0.71766704", "0.71498305", "0.70820516", "0.70820177", "0.70782363", "0.70270497", "0.70252293", "0.702143", "0....
0.0
-1
Method to retrieve a specific programme
public function getProgrammeByID($progID) { try { $programme = $this->em->getRepository(Entity\Programme::class)->findOneBy(array('progID' => $progID)); $this->em->flush(); } catch (\Doctrine\ORM\OptimisticLockException $e) { $this->em->rollback(); } r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function Get_Program($program_section_id){\n\n\t\t$sql = 'SELECT program_title FROM programs WHERE program_id = :program_id';\n $query = $this->con->prepare($sql);\n $query->bindValue(':program_id', $program_section_id);\n $query->execute();\n\n $result_row = $query->fetchObject...
[ "0.66857433", "0.65907973", "0.6530479", "0.64144826", "0.6331447", "0.6324927", "0.63156736", "0.62281644", "0.61265874", "0.60502714", "0.5974593", "0.5935404", "0.5934186", "0.59104645", "0.5897674", "0.5865037", "0.58088243", "0.58022004", "0.5782326", "0.57533664", "0.57...
0.5980327
10
Method to retrieve all Programmes
public function getAllProgrammes() { try { $programes = $this->em->getRepository(Entity\Programme::class)->findAll(); $this->em->flush(); } catch (\Doctrine\ORM\OptimisticLockException $e) { $this->em->rollback(); } return $programes === null ? 0 : $pr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProgrammes()\r\n {\r\n $sql=\"SELECT * FROM programmes\";\r\n $query=$this->db->query($sql);\r\n return $query->result_array();\r\n }", "public static function getPrograms()\n {\n $s = self::$_db->prepare('SELECT * FROM emission');\n $s->execute();\n ...
[ "0.7603743", "0.7042983", "0.67120755", "0.6561479", "0.63808376", "0.6342765", "0.6267164", "0.60983896", "0.6052791", "0.5973888", "0.5926106", "0.5925172", "0.59239125", "0.59002656", "0.5872258", "0.5838603", "0.58146966", "0.57869637", "0.5783099", "0.57418656", "0.57202...
0.7481882
1
Method to create new programme record
public function createProgramme($programme) { $successInsert = false; if ($this->getProgrammeByID($programme->getProgID()) !== 0) { $successInsert = -1; //-1 for duplicated record } else { try { $this->em->beginTransaction(); $this-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createRecord();", "public function AddProgram() {\n $data = $this->app[\"request\"];\n\n $isXML = false;\n\n $program = new Program($this->app[\"db\"]);\n\n if (0 === strpos($data->headers->get('Content-Type'), 'application/x-www-form-urlencoded')) {\n\n // ...
[ "0.6904766", "0.666551", "0.63646364", "0.62837195", "0.62093365", "0.620673", "0.6171317", "0.6135624", "0.61320245", "0.61145157", "0.61053514", "0.607548", "0.6035155", "0.6014774", "0.6010449", "0.6002064", "0.596874", "0.5962488", "0.59537745", "0.5952476", "0.595091", ...
0.5780633
38
Method to update programme record
public function updateProgramme($programme) { $successUpdate = false; if ($this->getProgrammeByID($programme->getProgID()) !== 0) { try { $this->em->beginTransaction(); $this->em->merge($programme); $this->em->commit(); $this->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update() {\n\n // Does the program object have an ID?\n if ( is_null( $this->programID ) ) trigger_error ( \"Program::update(): Attempt to update a Program object that does not have its ID property set.\", E_USER_ERROR );\n \n // Update the program\n $conn = new PDO( DB_DSN, DB_USERNA...
[ "0.71343887", "0.6776601", "0.6711701", "0.63599855", "0.6359553", "0.6225716", "0.61599195", "0.61540705", "0.61186683", "0.6103213", "0.6103213", "0.6073417", "0.6063371", "0.6053099", "0.60526687", "0.6039351", "0.5966065", "0.59530675", "0.5930581", "0.59040695", "0.58743...
0.6082753
11
Method to delete programme
public function deleteProgramme($programme) { $successDelete = false; if ($this->getProgrammeByID($programme->getProgID()) !== 0) { try { $this->em->beginTransaction(); $this->em->remove($programme); $this->em->commit(); $this-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete() {\n\n // Does the program object have an ID?\n if ( is_null( $this->programID ) ) trigger_error ( \"Program::delete(): Attempt to delete an program object that does not have its ID property set.\", E_USER_ERROR );\n\n // Delete the program\n $conn = new PDO( DB_DSN, DB_USERNAME...
[ "0.755218", "0.69342875", "0.6793486", "0.6793486", "0.6793486", "0.6793486", "0.6793486", "0.6793486", "0.6793486", "0.6793486", "0.6793486", "0.6793486", "0.6793486", "0.6793486", "0.6793486", "0.6793486", "0.6793486", "0.6737096", "0.6679146", "0.6663868", "0.658857", "0...
0.6135427
87
COOKIE DECORATOR FUNCTIONS // destroy the current instance
public static function _unsetMessenger() { // destroy the cookie if it is already set setcookie(self::$_name, "", time() - self::$_time, self::$_path); sleep(4); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function destroy() {\n global $ft, $remote;\n $remote = null;\n $ft->assign('remote', $remote);\n\n global $_COOKIE_PATH, $_COOKIE_DOMAIN;\n setcookie(\"FortissimoSession\", false, 0, $_COOKIE_PATH, $_COOKIE_DOMAIN);\n }", "public function iDestroyMyC...
[ "0.75224185", "0.75041664", "0.7444741", "0.74409425", "0.72123003", "0.71619976", "0.7146025", "0.7121837", "0.6986438", "0.69532937", "0.69397074", "0.6898263", "0.68516076", "0.6843818", "0.67895484", "0.67676616", "0.6745811", "0.6737786", "0.6733919", "0.67162496", "0.67...
0.680007
14
set the flash messenger value
public static function addMessage($message) { $messages = self::popMessage(); if (is_array($messages)) { $messages[] = $message; } else { $messages = array(); $messages[] = $message; } setcookie(self::$_name, serialize($messages), time() + sel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setFlashMessage()\n {\n if ($message = $this->session()->getFlash('flash-message')) {\n if ($this->session()->getFlash('flash-error')) {\n $this->pageView()->setError($message);\n } else {\n $this->pageView()->setMessage($message);\n ...
[ "0.72352624", "0.7187023", "0.68778056", "0.6801785", "0.66802955", "0.6672407", "0.6663468", "0.6606312", "0.66001344", "0.6588137", "0.6559043", "0.6532173", "0.6531339", "0.6515666", "0.6507002", "0.6501219", "0.64979655", "0.6486935", "0.647559", "0.64251107", "0.6404412"...
0.0
-1
set the flash messenger values
public static function addMessages($additions) { $messages = self::popMessage(); if (is_array($messages)) { foreach ($additions as $message) { $messages[] = $message; } } else { $messages = $additions; } setcookie(self::$_name,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setFlashMessage()\n {\n if ($message = $this->session()->getFlash('flash-message')) {\n if ($this->session()->getFlash('flash-error')) {\n $this->pageView()->setError($message);\n } else {\n $this->pageView()->setMessage($message);\n ...
[ "0.6855705", "0.6778446", "0.6748691", "0.6664076", "0.6561003", "0.6553233", "0.6457711", "0.6451383", "0.63961345", "0.63873994", "0.63247186", "0.6298847", "0.6257869", "0.6235792", "0.62321365", "0.6230321", "0.62064755", "0.62047875", "0.61994666", "0.6192961", "0.619139...
0.0
-1