query
stringlengths
7
5.25k
document
stringlengths
15
1.06M
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Display the specified resource.
public function show($id) { if(Auth::user()->user_type==1) { $section=Section::find($id); return view('backend.sections.show',compact('section')); } else{ return(redirect('sections')); } }
{ "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);\n }", "private function showResourceable($resourceable)\n {\n save_resource_url();\n\n return $this->view('resources.create_edit')\n ->with('resource', $resourceable)\n ->with('photos', $resourceable->photos)\n ->with('videos', $resourceable->videos)\n ->with('documents', $resourceable->documents);\n }", "function display($resource_name, $cache_id = null, $compile_id = null) {\n\t\t$this->_getResourceInfo($resource_name); // Saves resource info to a Smarty class var for debugging\n\t\t$_t3_fetch_result = $this->fetch($resource_name, tx_smarty_div::getCacheID($cache_id), $compile_id);\n if ($this->debugging) { // Debugging will have been evaluated in fetch\n require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');\n $_t3_fetch_result .= smarty_core_display_debug_console(array(), $this);\n }\n\t\treturn $_t3_fetch_result;\n\t}", "public function show(ResourceSubject $resourceSubject)\n {\n //\n }", "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function retrieve(Resource $resource);", "public function showResource($resouceable, $id)\n {\n $model_name = str_replace('-', ' ',ucwords($resouceable));\n $model_name = str_replace(' ', '',ucwords($model_name));\n\n $resource_type = 'App\\Models\\\\'.$model_name;\n $model = app($resource_type);\n $model = $model->find($id);\n\n return $this->showResourceable($model);\n }", "public function showAction(Ressource $ressource)\n {\n $deleteForm = $this->createDeleteForm($ressource);\n\n return $this->render('ressource/show.html.twig', array(\n 'ressource' => $ressource,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function show(Dispenser $dispenser)\n {\n //\n }", "public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }", "public function displayAction() {\n\t\tif(is_numeric($this->req_id)) {\n\t\t\tAPI::DEBUG(\"[DefaultController::displayAction()] Getting \" . $this->req_id, 1);\n\t\t\t$this->_view->data['info'] = $this->_model->get($this->req_id);\n\t\t\t$this->_view->data['action'] = 'edit';\n\n\t\t} else {\n\t\t\t$this->_view->data['action'] = 'new';\n\t\t}\n\t\t// auto call the hooks for this module/action\n\t\terror_log(\"Should Call: \" . $this->module .\"/\".$this->action.\"/\".\"controller.php\");\n\t\tAPI::callHooks($this->module, $this->action, 'controller', $this);\n\n\t\t$this->addModuleTemplate($this->module, 'display');\n\n\t}", "public function show(NebulaResource $resource, $item): View\n {\n $this->authorize('view', $item);\n\n return view('nebula::resources.show', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function resource(string $resource, string $controller): void\n {\n $base = $this->plural($resource);\n $entity = '/{'.$resource.'}';\n\n $this->app->get($base, $controller.'@index');\n $this->app->post($base, $controller.'@store');\n $this->app->get($base.$entity, $controller.'@show');\n $this->app->patch($base.$entity, $controller.'@update');\n $this->app->delete($base.$entity, $controller.'@destroy');\n }", "function displayCustom($resource_name, $cache_id = null, $compile_id = null)\n\t{\n\t return $this->display(DotbAutoLoader::existingCustomOne($resource_name), $cache_id, $compile_id);\n\t}", "public function show($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.show\")) {\n $view = \"admin.{$this->name}.show\";\n } else {\n $view = 'admin.includes.actions.show';\n }\n\n /* Displays the specified resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function show($id)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $rules = [\n 'id' => 'required|integer'\n ];\n\n $validator = Validator::make(['id' => $id], $rules);\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n $resource = $this->resourceRepository->fetchResource($id);\n $this->resourceRepository->storeView($id, $currentUser['id']);\n\n $data = [\n 'resource' => $resource,\n 'related_resources' => $this->resourceRepository->getResourcesRelatedTo($resource->id, $resource->mentoring_area_id)\n ];\n\n return APIHandler::response(1, \"Show Resource\", $data);\n }", "public function get(Resource $resource);", "public function showAction()\n {\n $model = $this->_getPhotoModel();\n $photo = $model->fetchEntry($this->getRequest()->getParam('id'));\n\n if (null === $photo) {\n return $this->_forward('notfound', 'error');\n }\n\n $this->view->auth = Zend_Auth::getInstance();\n $this->view->title = $photo->title;\n $this->view->photo = $photo;\n }", "public function show($id)\n {\n //\n $data=Resource::find($id);\n return view('resourceDetails',compact('data'));\n }", "function display() {\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}", "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "function show( $resource ){\n\n $where = \"reservation_status <> 'Pending' AND id = {$resource}\";\n $reservation = where( 'reservations', $where );\n $reservation = $reservation[0];\n\n return view('admin/reservation/preview_reservation', compact( 'reservation' ));\n}", "public function show()\n {\n if ($this->twig !== false) {\n $this->twigDefaultContext();\n if ($this->controller) {\n $this->controller->display($this->data);\n }\n echo $this->twig->render($this->twig_template, $this->data);\n } else {\n $filename = $this->findTemplatePath($this->template);\n require($filename);\n }\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function show(rc $rc)\n {\n //\n }", "public function show(Resolucion $resolucion)\n {\n //\n }", "public function showAction(furTexture $furTexture)\n {\n\n return $this->render('furtexture/show.html.twig', array(\n 'furTexture' => $furTexture,\n ));\n }", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show(Resena $resena)\n {\n }", "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function showAction() {\n $docId = $this->getParam('id');\n\n // TODO verify parameter\n\n $document = new Opus_Document($docId);\n\n $this->_helper->layout()->disableLayout();\n\n $this->view->doc = $document;\n $this->view->document = new Application_Util_DocumentAdapter($this->view, $document);\n }", "public function action_display()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\r\n\t\tif ( ! $event->loaded())\r\n\t\t{\r\n\t\t\tNotices::error('event.view.not_found');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Can user view this event?\r\n\t\tif ( ! $this->user->can('event_view', array('event' => $event)))\r\n\t\t{\r\n\t\t\t// Error notification\r\n\t\t\tNotices::error('event.view.not_allowed');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Pass event data to the view class\r\n\t\t$this->view->event_data = $event;\r\n\t\t$this->view->user = $this->user;\r\n\t}", "public function execute()\n {\n // HTTP Request Get\n if ($this->type == \"resource\") {\n $action = $this->getResourceAction();\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n } else {\n $action = $this->Request->action;\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n }\n }", "public function show(Resident $resident)\n {\n $this->authorize('admin.resident.show', $resident);\n\n // TODO your code goes here\n }", "public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }", "public function display()\n\t{\n\t\tparent::display();\n\t}", "public function get_resource();", "public function show()\n\t{\n\t\t\n\t}", "function display() {\n\n\t\t// Check authorization, abort if negative\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t// Get the view\n\t\t$view = $this->getDefaultView();\n\n\t\tif ($view == NULL) {\n\t\t\tthrow new Exception('Display task called, but there is no view assigned to that controller. Check method getDefaultView.');\n\t\t}\n\n\t\t$view->listing = true;\n\n\t\t// Wrap the output of the views depending on the way the stuff should be shown\n\t\t$this->wrapViewAndDisplay($view);\n\n\t}", "public function viewResources()\n {\n $database = new Database();\n\n $resources = $database->getAllActiveResourcesNoLimit();\n\n\n $resourceArray = array();\n $i = 1;\n\n foreach ($resources as $resource) {\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n array_push($resourceArray, $availableResource);\n $i += 1;\n }\n $resourceSize = sizeof($resourceArray);\n $this->_f3->set('resourcesByActive', $resourceArray);\n $this->_f3->set('resourcesSize', $resourceSize);\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }", "public function display($title = null)\n {\n echo $this->fetch($title);\n }", "public function display(){}", "public function show($id)\n\t{\n\t\t//\n\t\t//\n\t\n\t}", "public function viewAction()\n\t{\n\t\t//get Id param from request\n\t\tif (!$id = $this->_getParam('id')) {\n\t\t\t$this->getFlashMessenger()->addMessage('Product ID was not specified');\n\t\t\t$this->getRedirector()->gotoSimple('list');\n\t\t}\n\n\t\t//fetch requested ProductID from DB\n\t\tif (!$this->_model->fetch($id)) {\n\t\t\t$this->render('not-found');\n\t\t} else {\n\t\t\t$this->view->model = $this->_model;\n\t\t}\n\t}", "public function show($id)\n {\n // Get single person\n $person = Person::findOrFail($id);\n\n // Return single person as a resource\n return '<h1>Person Number '.$id.'</h1><br>'.json_encode(new PersonResource($person));\n }", "#[TODO] use self object?\n\tprotected function GET(ResourceObject $resource) {\n#[TODO]\t\tif ($resource->getMTime())\n#[TODO]\t\t\t$this->response->headers->set('Last-modified', gmdate('D, d M Y H:i:s ', $resource->getMTime()) . 'GMT');\n#[TODO]\t\tif ($resource->getCTime())\n#[TODO]\t\t\t$this->response->headers->set('Date', gmdate('D, d M Y H:i:s ', $resource->getCTime()) . 'GMT');\n\n\n#[TODO] handle file streams\n\t\t// get ranges\n#\t\t$ranges = WebDAV::getRanges($this->request, $this->response);\n\n\t\t// set the content of the response\n\t\tif ($resource instanceof ResourceDocument) {\n\t\t\t$this->response->content->set($resource->getContents());\n\t\t\t$this->response->content->setType($resource->getMIMEType());\n\t\t\t$this->response->content->encodeOnSubmit(true);\n\t\t}\n\t}", "public function display() {\n echo $this->render();\n }", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "function Fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)\n {\n return $this->_smarty->fetch($resource_name, $cache_id, $compile_id, $display);\n }", "public function show($id)\n {\n //\n $this->_show($id);\n }", "public function show()\n\t{\n\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {}", "static public function showCallback(O_Dao_Renderer_Show_Params $params) {\r\n\t\t/* @var $r R_Mdl_Resource */\r\n\t\t$r = $params->record();\r\n\t\t// Setting layout title\r\n\t\t$params->layout()->setTitle($r->getPageTitle());\r\n\r\n?><h1><?=$r->title?></h1><div id=\"resource\"><?\r\n\t\tif($r->getContent()) {\r\n\t\t\t// page has its own content -- show it\r\n\t\t\t$r->getContent()->show($params->layout(), \"content\");\r\n\t\t} else {\r\n\t\t\t// It is a post unit, show all childs\r\n\t\t\tif($r->is_unit == 1) {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"content\");\r\n\r\n\t\t\t// It is a folder with several units, show paginator\r\n\t\t\t} elseif($r->show_def == \"last-units\") {\r\n\t\t\t\tlist($type, $perpage) = explode(\":\", $r->show_def_params);\r\n\t\t\t\t/* @var $p O_Dao_Paginator */\r\n\t\t\t\t$p = $r->addQueryAccessChecks($r->getChilds())->test(\"is_unit\", 1)->getPaginator(array($r, \"getPageUrl\"), $perpage);\r\n\t\t\t\t$p->show($params->layout(), $type);\r\n\t\t\t// It is a folder with subfolders, boxes, contents. Show one childs level\r\n\t\t\t} else {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"on-parent-page\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n?></div><?\r\n\t}", "public function show($id)\r\n\t{\r\n\t\t//\r\n\r\n\r\n\r\n\t}", "public function show($resourceId, $eventId)\n {\n $routes = $this->routes;\n\n $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);\n\n if (method_exists($eventable, 'events')) {\n $event = $eventable->events()->find($eventId);\n\n if ($event) {\n $apiObject = $this->event->findApiObject($event->api_id);\n\n return view('events.eventables.show', compact('routes', 'eventable', 'event', 'apiObject'));\n }\n }\n\n abort(404);\n }", "public abstract function display();", "abstract public function resource($resource);", "public function show($id)\r\r\n\t{\r\r\n\t\t//\r\r\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show(Response $response)\n {\n //\n }", "public function show()\n {\n return auth()->user()->getResource();\n }", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}" ]
[ "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.60389996", "0.6016584", "0.598783", "0.5961788", "0.59606946", "0.5954321", "0.59295714", "0.59182066", "0.5904556", "0.59036547", "0.59036547", "0.59036547", "0.5891874", "0.58688277", "0.5868107", "0.58676815", "0.5851883", "0.58144855", "0.58124036", "0.58112013", "0.5803467", "0.58012545", "0.5791527", "0.57901084", "0.5781528", "0.5779676", "0.5757105", "0.5756208", "0.57561266", "0.57453394", "0.57435393", "0.57422745", "0.5736634", "0.5736634", "0.5730559", "0.57259274", "0.5724891", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5718969", "0.5713412", "0.57091093", "0.5706405", "0.57057405", "0.5704541", "0.5704152", "0.57026845", "0.57026845", "0.56981397", "0.5693083", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962" ]
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { if(Auth::user()->user_type==1) { $section=Section::find($id); return view('backend.sections.edit',compact('section')); } else{ return(redirect('sections')); } }
{ "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 $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.edit\")) {\n $view = \"admin.{$this->name}.edit\";\n } else {\n $view = 'admin.includes.actions.edit';\n }\n\n /* Displays the edit resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function edit(NebulaResource $resource, $item): View\n {\n $this->authorize('update', $item);\n\n return view('nebula::resources.edit', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function edit()\n {\n return view('hirmvc::edit');\n }", "public function editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "public function edit() {\n $id = $this->parent->urlPathParts[2];\n // pass name and id to view\n $data = $this->parent->getModel(\"fruits\")->select(\"select * from fruit_table where id = :id\", array(\":id\"=>$id));\n $this->getView(\"header\", array(\"pagename\"=>\"about\"));\n $this->getView(\"editForm\", $data);\n $this->getView(\"footer\");\n }", "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "public function edit($id)\n {\n $model = $this->modelObj;\n $formObj = $model::findOrFail($id);\n $data['formObj'] = $formObj;\n return view($this->veiw_base . '.edit', $data);\n }", "public function createEditForm(Resourceperson $entity){\n \n $form = $this->createForm(new ResourcepersonType(), $entity, array(\n 'action' => $this->generateUrl('rsp_update', array('id' => $entity->getRpId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update','attr'=> array(\n 'class'=>'btn btn primary'\n )));\n\n return $form;\n }", "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'action' => $this->generateUrl('social_admin_resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => '保存','attr'=>[\n 'class'=>'btn btn-primary'\n ]));\n\n return $form;\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function editAction()\n {\n if ($form = $this->processForm()) {\n if ($this->useTabbedForms && method_exists($this, 'getSubject')) {\n $data = $this->getModel()->loadFirst();\n $subject = $this->getSubject($data);\n $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));\n } else {\n $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));\n }\n $this->html[] = $form;\n }\n }", "public function edit($id)\n {\n $this->data['entity'] = GS_Form::where('id', $id)->firstOrFail();\n return view('admin.pages.forms.edit', $this->data);\n }", "public function edit($id)\n\t{\n\t\t// get the fbf_presenca\n\t\t$fbf_presenca = FbfPresenca::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_presenca\n\t\t$this->layout->content = View::make('fbf_presenca.edit')\n->with('fbf_presenca', $fbf_presenca);\n\t}", "public function edit($id)\n {\n $data = $this->model->find($id);\n\n return view('admin.backends.employee.form.edit',compact('data'));\n }", "public function edit($model, $form);", "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "public function edit($id)\n\t{\n\t\t$faith = Faith::find($id);\n \n return view('faith.form')->with('faith', $faith);\n\n\t}", "public function edit()\n { \n return view('admin.control.edit');\n }", "public function edit(Form $form)\n {\n //\n }", "public function edit()\n {\n return view('common::edit');\n }", "public function edit($id)\n {\n $resource = (new AclResource())->AclResource;\n $roleResource = AclRole::where('role', $id)->get(['resource'])->toArray();\n $roleResource = Arr::pluck($roleResource, 'resource');\n return view('Admin.acl.role.form', [\n 'role' => $id,\n 'resource' => $resource,\n 'roleResource' => $roleResource,\n ]);\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\r\n {\r\n return view('petro::edit');\r\n }", "public function edit($id)\n {\n // show form edit user info\n }", "public function edit()\n {\n return view('escrow::edit');\n }", "public function edit($id)\n {\n $resource = ResourceManagement::find($id);\n\n $users = User::get();\n // Redirect to user list if updating user wasn't existed\n if ($resource == null || $resource->count() == 0) {\n return redirect()->intended('/resource-management');\n }\n\n return view('resources-mgmt/edit', ['resource' => $resource, 'users' => $users]);\n }", "public function edit()\n {\n return view('commonmodule::edit');\n }", "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$this->employee->setDataArray($action);\n\t\t\theader('Location: ' . PATH . 'Employee/index/', true, 303);\n\t\t}\n\t\t$employee = $this->employee->setAction('edit');\n\t\t$this->view->addToReplace($employee);\n\t\t$this->listEmployee();\n\t\t$this->arrayToPrint();\n\t}", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit(form $form)\n {\n //\n }", "public function actionEdit($id) { }", "public function edit()\n {\n return view('admincp::edit');\n }", "public function edit()\n {\n return view('scaffold::edit');\n }", "public function edit($id)\n {\n $header = \"Edit\";\n\t\t$data = Penerbit::findOrFail($id);\n\t\treturn view('admin.penerbit.form', compact('data','header'));\n }", "public function edit()\n {\n return view('Person.edit');\n }", "public function edit($id)\n {\n $data = Form::find($id);\n return view('form.edit', compact('data'));\n }", "public function edit($id)\n\t{\n\t\t$career = $this->careers->findById($id);\n\t\treturn View::make('careers._form', array('career' => $career, 'exists' => true));\n\t}", "public function edit($id, Request $request)\n {\n $formObj = $this->modelObj->find($id);\n\n if(!$formObj)\n {\n abort(404);\n } \n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \".$this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText.\".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\"; \n\n return view($this->moduleViewName.'.add', $data);\n }", "public function edit($id)\n\t{\n\t\t// get the material\n\t\t$material = Material::find($id);\n\n\t\t// show the edit form and pass the material\n\t\t$this->layout->content = View::make('material.edit')\n\t\t\t->with('material', $material);\n\t}", "public function edit(Flight $exercise, FlightResource $resource)\n {\n return $this->viewMake('adm.smartcars.exercise-resources.edit')\n ->with('flight', $exercise)\n ->with('resource', $resource);\n }", "public function edit()\n {\n $id = $this->getId();\n return view('panel.user.form', [\n 'user' => $this->userRepository->findById($id),\n 'method' => 'PUT',\n 'routePrefix' => 'profile',\n 'route' => 'profile.update',\n 'parameters' => [$id],\n 'breadcrumbs' => $this->getBreadcrumb('Editar')\n ]);\n }", "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getParameter('id');\n\t\t$product = $this->model->product->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('product/edit', [\n\t\t\t'product' => $product\n\t\t]);\n\t}", "public function edit($id)\n {\n //\n $data = Diskon::find($id);\n\n $form = $this->form;\n $edit = $this->edit;\n $field = $this->field;\n $page = $this->page;\n $id = $id;\n $title = $this->title;\n return view('admin/page/'.$this->page.'/edit',compact('form','edit','data','field','page','id','title'));\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "public function editAction()\n {\n $robot = Robots::findFirst($this->session->get(\"robot-id\"));\n if ($this->request->isGet()) {\n $this->tag->prependTitle(\"Редактировать робота :: \");\n $user = $this->session->get(\"auth-id\");\n if (!$robot) {\n $this->flashSession->error(\n \"Робот не найден\"\n );\n return $this->response->redirect(\"users/usershow/$user->name\");\n }\n\n }\n\n $this->view->form = new RobotForm(\n $robot,\n [\n \"edit\" => true,\n ]\n );\n }", "public function editAction()\n {\n $form = new $this->form();\n\n $request = $this->getRequest();\n $param = $this->params()->fromRoute('id', 0);\n\n $repository = $this->getEm()->getRepository($this->entity);\n $entity = $repository->find($param);\n\n if ($entity) {\n\n $form->setData($entity->toArray());\n\n if ( $request->isPost() ) {\n\n $form->setData($request->getPost());\n\n if ( $form->isValid() ) {\n\n $service = $this->getServiceLocator()->get($this->service);\n $service->update($request->getPost()->toArray());\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n }\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n return new ViewModel(array('form' => $form, 'id' => $param));\n\n }", "public function edit($id)\n\t{\n\t\t$SysApplication = \\Javan\\Dynaflow\\Domain\\Model\\SysApplication::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysApplicationForm', [\n \t'method' => 'POST',\n \t'url' => 'sysapplication/update/'.$id,\n \t'model' => $SysApplication,\n \t'data' => [ 'flow_id' => $SysApplication->flow_id]\n \t]);\n\t\treturn View::make('dynaflow::sysapplication.form', compact('form', 'SysApplication'));\n\t}", "public function editAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif (!$item) {\n\t\t\t$item = $model->createRow();\n\t\t}\n\t\t$form = $item->getForm();\n\t\tif ($this->_request->isPost()) {\n\t\t\t$newId = $form->populate($this->_request->getPost())->save();\n\t\t\tif ($newId) {\n\t\t\t\t$this->_helper->flashMessenger('Saved successfully!');\n\t\t\t\t$this->_helper->redirector('edit', null, null, array('id' => $newId, 'model' => $modelName));\n\t\t\t}\n\t\t}\n\t\t$this->view->form = $form;\n\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\n\t}", "public function edit($id)\n {\n return view('models::edit');\n }", "public function edit()\n {\n return view('home::edit');\n }", "public function editAction()\n {\n $id = $this->params()->fromRoute('id');\n $entity = $this->entityManager->find(Entity\\CourtClosing::class, $id);\n if (! $entity) {\n // to do: deal with it\n }\n $form = $this->getForm('update');\n $form->bind($entity);\n if ($this->getRequest()->isPost()) {\n return $this->post();\n }\n\n return new ViewModel(['form' => $form]);\n }", "public function editAction($id)\n {\n $entity = $this->getManager()->find($id);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Editar');\n\n if (!$entity) {\n throw $this->createNotFoundException('No se ha encontrado el elemento');\n }\n\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function editAction()\n {\n $form = MediaForm::create($this->get('form.context'), 'media');\n $media = $this->get('media_manager.manager')->findOneById($this->get('request')->get('media_id'));\n \n $form->bind($this->get('request'), $media);\n \n return $this->render('MediaManagerBundle:Admin:form.html.twig', array('form' => $form, 'media' => $media));\n }", "public function edit(Form $form)\n {\n return view('admin.forms.edit', compact('form'));\n }", "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CdlrcodeBundle:Question')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Question entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CdlrcodeBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('consultas::edit');\n }", "public function edit(DirectorFormBuilder $form, $id)\n {\n return $form->render($id);\n }", "public function edit()\n {\n return view('dashboard::edit');\n }", "public function edit($id){\n $rfid = Rfid::find($id);\n\n //load form view\n return view('rfids.edit', ['rfid' => $rfid]);\n }", "public function edit($id)\n {\n\n // retrieve provider\n $provider = Provider::findOrFail($id);\n\n // return form with provider\n return view('backend.providers.form')->with('provider', $provider);\n }", "public function edit() {\n return view('routes::edit');\n }", "public function edit(Question $question)\n {\n $this->employeePermission('application' , 'edit');\n $question->chooses;\n $action = 'edit';\n return view('admin.setting.question_form', compact('action' , 'question'));\n }", "public function edit($id)\n {\n $this->data['product'] = Product::find($id);\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \" Update Prouct Details\";\n $this->data['mode'] = \"edit\";\n\n return view('product.form', $this->data);\n }", "public function edit(ClueEnFormBuilder $form, $id): Response\n {\n return $form->render($id);\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BaseBundle:Feriado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Feriado entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BaseBundle:Feriado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n $resources = User::find(session('usuario_id'))->resources;\n $languages = Language::pluck('name', 'id');\n $types = Type::pluck('name', 'id');\n $method = 'PATCH';\n\n $recurso = Resource::find($id);\n $url = \"/resource/$recurso->id\";\n\n return view('resources.resources', compact('resources', 'languages', 'types', 'method', 'url', 'recurso'));\n }", "public function edit($articulo_id)\n {\n $titulo = \"Editar\";\n return View(\"articulos.formulario\",compact('titulo','articulo_id'));\n }", "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "public function displayEditForm(Employee $employee){\n return view('employee.displayEditForm',['employee'=>$employee]);\n }", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit]);\n }", "public function edit()\n {\n return view('website::edit');\n }", "public function edit()\n {\n return view('inventory::edit');\n }", "public function edit()\n {\n return view('initializer::edit');\n }", "public function editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "public function edit($id)\n {\n return view('backend::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n //dd($id);\n $familiaPrograma= FamiliaPrograma::findOrFail($id);\n return view('familiasPrograma.edit', compact('familiaPrograma'));\n }", "public function edit($id)\n {\n $user = User::where('id', $id)->first();\n\n\n return view('users.forms.update', compact('user'));\n }", "public function editAction($id)\n\t{\n\t\t$school = School::find( $id );\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => sprintf( 'Modifier \"%s\"', $school->name ),\n\t\t\t'entity' => $school\n\t\t) ) );\n\t}", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit ]);\n }", "public function edit($id)\n {\n \t$product = Product::find($id);\n \treturn view('admin.products.edit')->with(compact('product')); // formulario de actualizacion de datos del producto\n }", "public function edit_person($person_id){\n \t$person = Person::find($person_id);\n \treturn view('resource_detail._basic_info.edit',compact('person'));\n }", "public function edit(Person $person) {\n\t\t$viewModel = new PersonFormViewModel();\n\t\treturn view('person.form', $viewModel);\n\t}", "public function edit($id)\n {\n $professor = $this->repository->find($id);\n return view('admin.professores.edit',compact('professor'));\n }", "public function edit($id)\n {\n $data = Restful::find($id);\n return view('restful.edit', compact('data'));\n }", "public function edit($id)\n {\n return $this->form->render('mconsole::personal.form', [\n 'item' => $this->person->query()->with('uploads')->findOrFail($id),\n ]);\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('MedecinIBundle:Fichepatient')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Fichepatient entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('MedecinIBundle:Fichepatient:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n\t{\n\t\t // get the project\n $project = Project::find($id);\n\n // show the edit form and pass the project\n return View::make('logicViews.projects.edit')->with('project', $project);\n\t}" ]
[ "0.78548634", "0.7693446", "0.72737956", "0.72415876", "0.71732706", "0.7064379", "0.70547634", "0.6985193", "0.6948865", "0.6946892", "0.69416964", "0.6929201", "0.69028485", "0.6899143", "0.6899143", "0.68794435", "0.6864862", "0.6860578", "0.68581015", "0.6845792", "0.6836835", "0.681191", "0.6808133", "0.6806856", "0.68035305", "0.6796193", "0.67936623", "0.67936623", "0.67895305", "0.6785768", "0.678106", "0.67773324", "0.67697626", "0.6762823", "0.6747543", "0.6747543", "0.67463523", "0.67444044", "0.6741766", "0.6737379", "0.6726827", "0.6714104", "0.66950524", "0.66935307", "0.6689272", "0.6689106", "0.66872644", "0.6686648", "0.6684393", "0.6670288", "0.6669616", "0.66668564", "0.66668564", "0.666409", "0.6662514", "0.66599286", "0.66590035", "0.6655965", "0.6653906", "0.6644097", "0.66327673", "0.66314846", "0.6629497", "0.6629497", "0.6620671", "0.66204685", "0.66168797", "0.66163945", "0.66112244", "0.6610172", "0.66072273", "0.65975267", "0.6596347", "0.6595878", "0.65914613", "0.65904135", "0.65880567", "0.658147", "0.6581434", "0.6581035", "0.65780395", "0.65776944", "0.6576013", "0.6570687", "0.6569499", "0.6568776", "0.6567722", "0.6562973", "0.6562973", "0.6561691", "0.655929", "0.6557889", "0.65571314", "0.65565974", "0.65564924", "0.65558827", "0.65556073", "0.6555524", "0.6549151", "0.6548339", "0.65460944" ]
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { $input = Input::all(); $validation=Validator::make($input,Section::$rules); if($validation->fails()) { return(Redirect::back()->withErrors($validation)->withInput()); } $data = [ 'name'=>$request ->name, 'description'=>$request->description, ]; $section = Section::find($id); $section->update($data); return(redirect('sections')); }
{ "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 ]\n ]);\n }", "public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required|string',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n ]);\n\n $resource->update($request->all());\n\n if ( $request->hasFile('file') ) {\n $resource = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resource,'public');\n $resource->file = $resource;\n }\n\n if ( $resource->save() ) {\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated');\n } else {\n return redirect()->route('admin.resources.index')->with('error', 'Something went wrong');\n }\n }", "public function update(Request $request, Resource $resource)\n {\n //\n }", "public function updateStream($resource);", "public function update(Request $request, Storage $storage)\n {\n $storage->product_id = $request->product_id;\n $storage->amount = $request->amount;\n\n $storage->save();\n\n return redirect()->route('storages.index');\n }", "protected function updateImageResource($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n $this->deleteResource($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update(Storage $storage, UpdateStorageRequest $request)\n {\n $this->storage->update($storage, $request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('product::storages.title.storages')]));\n }", "public function update(StoreStorage $request, Storage $storage)\n {\n $storage->fill($request->all())->save();\n $request->session()->flash('alert-success', 'Запись успешно обновлена!');\n return redirect()->route('storage.index');\n }", "public function update_asset($id, Request $request){\n \t\tif(!Auth::user()){\n\t\t\treturn redirect('/');\n\t\t}\n \t\t$asset = Storage::find($id);\n \t\t$asset->name = $request->name;\n \t\t$asset->quantity = $request->quantity;\n \t\t$asset->category_id = $request->category;\n \t\tif($request->file('image') != null){\n\t\t\t$image = $request->file('image');\n\t\t\t$image_name = time(). \".\" . $image->getClientOriginalExtension();\n\t\t\t$destination = \"images/\";\n\t\t\t$image->move($destination, $image_name);\n\t\t\t$asset->image_url = $destination.$image_name;\n\t\t} \n\t\t$asset->save();\n\t\tsession()->flash('success_message', 'Item Updated successfully');\n\t\treturn redirect(\"/storage\");\n \t}", "public function update(Request $request, Flight $exercise, FlightResource $resource)\n {\n $request->validate([\n 'display_name' => 'required|string|max:100',\n 'file' => 'nullable|file|max:10240|mimes:pdf',\n 'uri' => 'nullable|url|max:255',\n ]);\n\n if ($resource->type === 'file' && $request->file('file')) {\n Storage::drive('public')->delete($resource->resource);\n $resource->resource = $request->file('file')->store('smartcars/exercises/resources', ['disk' => 'public']);\n } elseif ($resource->type === 'uri' && $request->input('uri')) {\n $resource->resource = $request->input('uri');\n }\n\n $resource->save();\n\n return redirect()->route('adm.smartcars.exercises.resources.index', $exercise)\n ->with('success', 'Resource edited successfully.');\n }", "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'title' => 'required|string',\n 'content' => 'required|string',\n 'mentoring_area_id' => 'required|integer',\n 'featured_image_uri' => 'string',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n \n $resource = Resource::find($id);\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->featured_image_uri = $request->get('featured_image_uri');\n $resource->updated_at = \\Carbon\\Carbon::now();\n $resource->mentoring_area_id = $request->get('mentoring_area_id');\n $resource->save();\n $data['resource'] = $resource;\n return APIHandler::response(1, \"Resource has been updated\");\n }", "protected function updateVideoResource($fileName, $videoId, $storage, $premium=1)\n {\n //Get video name and storage location for video\n $video = Video::where('id', '=', $videoId)->first();\n\n //Check the storage medium\n if($storage == 'vimeo' || $storage == 'youtube')\n {\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n else\n {\n if($video['storage'] == 'local' || $video['storage'] == 's3')\n {\n //Delete old video\n $this->deleteResource($video->name, $video->storage);\n }\n \n //Store the new video\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n }", "public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }", "public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }", "public function update($path);", "public function update($id, $resource)\n {\n SCA::$logger->log(\"Entering update()\");\n //check whether it is an sdo or an xml string.\n if ($resource instanceof SDO_DataObjectImpl) {\n //if the thing received is an sdo convert it to xml\n if ($this->xml_das !== null) {\n $xml = SCA_Helper::sdoToXml($this->xml_das, $resource);\n } else {\n throw new SCA_RuntimeException(\n 'Trying to update a resource with SDO but ' .\n 'no types specified for reference'\n );\n }\n } else {\n $xml = $resource;\n }\n\n $slash_if_needed = ('/' === $this->target_url[strlen($this->target_url)-1])?'':'/';\n\n $handle = curl_init($this->target_url.$slash_if_needed.\"$id\");\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, \"PUT\");\n curl_setopt($handle, CURLOPT_POSTFIELDS, $xml);\n\n //replace with Content-Type: atom whatever\n $headers = array(\"User-Agent: SCA\",\n \"Content-Type: text/xml;\",\n \"Accept: text/plain\");\n curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($handle);\n\n $response_http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\n curl_close($handle);\n\n $response_exception = $this->buildResponseException($response_http_code, '200');\n\n if ($response_exception != null) {\n throw $response_exception;\n } else {\n //update does not return anything in the body\n return true;\n }\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'link' => 'required',\n 'description' => 'required'\n ]);\n\n $resource = Resource::find($id);\n $resource->name = $request->name;\n $resource->type_id = $request->type_id;\n $resource->has_cost = ($request->has('has_cost')) ? 1 : 0;\n $resource->language_id = $request->language_id;\n $resource->link = $request->link;\n $resource->description = $request->description;\n $resource->tags = '';\n\n $resource->save();\n //return back()->with('success', 'Recurso actualizado satisfactoriamente');\n return redirect('/resource')->with('success', 'Recurso actualizado satisfactoriamente');\n }", "public function update(Request $request, $id)\n {\n $oldProduct = Product::findOrFail($id);\n $data = $request->all();\n if(isset($data['img'])){\n // $file = $request->file('photo');\n // return $file;\n $imgName = time().'.'.$request->img->extension();\n $data['img'] = $imgName;\n // Storage::putFile('spares', $file);\n $path = $request->img->storeAs('public/uploads', $imgName); //in Storage\n\n //delete old file\n if($oldProduct->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$oldProduct->img);\n // return 'deleted';\n }\n \n }else{\n $data['img'] = $oldProduct->img;\n }\n $oldProduct->update($data);\n return redirect()->route('product.index'); \n\n }", "public function update($request, $id) {\n\t\t\t$image = $request['photo'];\n\t\t\tif($image !== null) {\n\t\t\t\t$name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n\t\t\t\t\\Image::make($request['photo'])->save(public_path('storage/products/').$name);\n\t\t\t\t$request['photo'] = $name;\n\t\t\t} else {\n\t\t\t\t$currenPhoto = Product::all()->where('id', $id)->first();\n\t\t\t\t$request['photo'] = $currenPhoto->photo;\n\t\t\t}\n return $this->product->update($id, $request);\n\t}", "public function updateStream($path, $resource, Config $config)\n {\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n\n // STEP 1: Update or insert this resource as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\",\n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords();\n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\",\n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n\n // STEP 2: Update or insert the resource's link to holding repository\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} })-[r:HIRELATION]->()\n return r;\",\n [\n 'id' => $resource->getID(),\n ]\n );\n $records = $result->getRecords();\n if (!empty($records)) {\n // delete the one there so that we can add the correct one (just in case)\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}})-[r:HIRELATION]->() delete r;\",\n [\n 'id' => $resource->getID()\n ]\n );\n\n }\n\n // If resource has a repository, then add a link\n if ($resource->getRepository() != null && $resource->getRepository()->getID() != null) {\n $this->connector->run(\"MATCH (a:Identity {id: {id1} }) MATCH (b:Resource {id: {id2} }) CREATE (b)-[r:HIRELATION]->(a);\",\n [\n 'id1' => (string) $resource->getRepository()->getID(),\n 'id2' => $resource->getID()\n ]);\n }\n }\n }", "public function update($data) {}", "public function update($data) {}", "public function putStream($resource);", "public function update(Request $request, NebulaResource $resource, $item): RedirectResponse\n {\n $this->authorize('update', $item);\n\n $validated = $request->validate($resource->rules(\n $resource->editFields()\n ));\n\n $resource->updateQuery($item, $validated);\n\n $this->toast(__(':Resource updated', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function update($entity);", "public function update($entity);", "public function setResource($resource);", "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "public function isUpdateResource();", "public function update(Request $request, $id)\n {\n $device = Device::findOrFail($id);\n $device->fill($request->all());\n if ($request->hasFile('icon')) {\n if ($device->hasMedia('icon')) {\n $device->deleteMedia($device->getFirstMedia('icon'));\n }\n $device->addMediaFromRequest('icon')->toMediaCollection('icon');\n }\n $device->save();\n return new DeviceResource($device);\n }", "public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n \n $product->update($request->all());\n \n $file = $request->file('url_image')->move('upload', $request->file('url_image')->getClientOriginalName());\n\n Product::where('id',$id)->update(['url_image'=>$file]);\n \n \\Session::flash('flash_message', 'Edit product successfully.'); \n \n //cũ : return redirect('articles');\n return redirect()->route('products.index');\n }", "public function store($data, Resource $resource);", "public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n\n\n $product->fill($request->all())->save();\n\n //Verificamos que tenemos una imagen\n if($request->file('photo_1')){\n\n\n //En caso de tenerla la guardamos en la clase Storage en la carpeta public en la carpeta image.\n $path = Storage::disk('public')->put('photo_1',$request->file('photo_1'));\n\n //Actualizamos el Post que acabamos de crear\n $product->fill(['photo_1' => asset($path)])->save();\n\n }\n\n\n return redirect()->route('products.index')->with('info', 'Producto actualizado exitosamente!');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if (\\Input::hasFile('image')) {\n $this->imgsave($request, $product);\n }\n\n\n if (!empty($request->input('tags'))) {\n $product->tags()->sync($request->input('tags'));\n } else {\n $product->tags()->detach();\n }\n\n $product->update($request->all());\n\n return redirect()->to('dashboard/product')->with('message', 'update success');\n }", "public function put($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'PUT');\n }", "public function update($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'updateValidations')) {\n $this->request->validate($this->updateValidations());\n }\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Update the specified resource */\n $resource->update(Input::all());\n\n /* Redirect back */\n return redirect()->back()\n ->with(\n 'info',\n Lang::has($this->name . '.resource-updated') ?\n $this->name . '.resource-updated' :\n 'messages.alert.resource-updated'\n );\n }", "public function putResponse($request)\n {\n $idSearched = $this->searcher->searchResourceIndex(\n $request, \n $this->db[$request['resource']]\n );\n if ($idSearched) {\n $resource = $this->db[$request['resource']][$idSearched];\n $bodyInput = json_decode($this->standardInput, true);\n $resource = BodyRequest::canApplyBody($bodyInput);\n $resource['id'] = (int)$request['param'];\n foreach($resource as $key => $value) {\n $this->db[$request['resource']][$idSearched][$key] = $value;\n }\n file_put_contents(DB_PATH, json_encode($this->db));\n }\n }", "public function update(Request $request, $id)\n\n {\n ResourceManagement::findOrFail($id);\n $constraints = [\n 'title' => 'required|max:100',\n 'url'=> 'required|max:191',\n 'content' => 'required'\n ];\n\n $input = [\n 'title' => $request['title'],\n 'url' => $request['url'],\n 'content' => $request['content'],\n 'type' => $request['type'],\n 'level' => $request['level'],\n 'user_id' => $request['user']\n ];\n// $this->validate($input, $constraints);\n ResourceManagement::where('id', $id)\n ->update($input);\n\n return redirect()->intended('/resource-management');\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required|string',\n 'price' => 'required|numeric',\n 'reference'=>'required'\n ]);\n \n $product = Product::find($id);\n $product->update($request->all());\n \n $im = $request->file('picture');\n \n if (!empty($im)) {\n \n $link = $request->file('picture')->store('images');\n \n \n $product->update([\n 'url_image' => $link,\n ]);\n } \n //dump($request->all());\n return redirect()->route('product.index')->with('message', 'Article modifié avec succès');\n }", "public function update(Storedataset $request, dataset $dataset){\n $dataset->title = $request->input('title');\n $dataset->caption = $request->input('caption');\n $dataset->file_url = $request->input('file_url');\n $dataset->type = $request->input('type');\n $dataset->status = $request->input('status');\n $dataset->publication_id = $request->input('publication_id');\n\n $dataset->save();\n\n return redirect()->route('datasets.show', ['dataset' => $dataset]);\n }", "public function update(StoreOrUpdateAsset $request, Asset $asset)\n {\n if (Storage::exists($asset->path) && !Storage::delete($asset->path)) {\n abort(500);\n }\n\n $file = $request->file('file');\n $path = $file->store('assets');\n\n if (!$path) {\n abort(500);\n }\n\n // We wonder if we should delete the old file or not...\n\n $asset->name = $file->getClientOriginalName();\n $asset->size = $file->getSize();\n $asset->type = $file->getMimeType();\n $asset->path = $path;\n\n if ($asset->save()) {\n flash('The asset has been saved.')->success();\n } else {\n abort(500);\n }\n\n return redirect('/admin/assets');\n }", "public function update(FoodRecipeRequest $request, $id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n if ($request->input('name')!= null)\n $foodRecipe->name = $request->input('name');\n if ($request->input('detail')!= null)\n $foodRecipe->detail = $request->input('detail');\n if($request->file('photo') != null) {\n $old_file = $foodRecipe->photo;\n if($old_file != null){\n $path = public_path().'/storage/'.$old_file;\n File::delete($path);\n }\n $file = $request->file('photo');\n $name = '/foodRecipe/' . Carbon::now()->format(\"dnY-Hisu\") . \".\" . $file->extension();\n $file->storePubliclyAs('public', $name);\n $foodRecipe->photo = $name;\n }\n $foodRecipe->save();\n return new FoodRecipeResource($foodRecipe);\n }", "public function update(StorageTypeRequest $request, $id)\n {\n try {\n $this->service->updateStorageType($request, $id);\n return $this->NoContent();\n } catch (EntityNotFoundException $e) {\n \\Log::error($e->getMessage());\n return $this->NotFound($e->getMessage());\n } catch(\\QueryException $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n } catch(Exception $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n }\n }", "public function update(Request $request, $id)\n {\n //validation\n $this->validate(request(),[\n 'image' => 'image'\n ]);\n\n $slider = HomeSliders::find($id);\n \n $slider->link = request('link');\n\n //get old image to delete if updated\n $oldImage = request('oldImage');\n //get the new image\n $NewImage=$request->file('image');\n\n if($NewImage)\n {\n $filenameToStore= helpers::updatePhoto('image','homeSliders',$request);\n $slider->image=$filenameToStore;\n\n Storage::delete('public/Images/homeSliders/'.$oldImage);\n }\n\n $slider->save();\n\n Alert::success(config('app.name'), trans('messages.Updated Successfully') );\n return redirect()->route('admin.homeSlider',$slider->type);\n }", "public function update(Qstore $request, $id)\n {\n //\n }", "public function update(IEntity $entity);", "public function update($request, $id);", "protected function performUpdate(): bool\n {\n // Abort if resource does not support update operations\n if (!$this->isUpdatable()) {\n throw new UnsupportedOperation(sprintf('API does not support update operation for %s resources', $this->resourceNameSingular()));\n }\n\n $id = $this->id();\n $prepared = $this->prepareBeforeUpdate($this->toArray());\n\n $payload = [\n $this->resourceNameSingular() => $prepared\n ];\n\n $response = $this\n ->request()\n ->put($this->endpoint($id), $payload);\n\n // Extract and (re)populate resource (if possible)\n // Note: Unlike the \"create\" method, Redmine does NOT\n // appear to send back a full resource when it has been\n // successfully updated.\n $this->fill(\n $this->decodeSingle($response)\n );\n\n return true;\n }", "function put($resource, $data = null) {\r\n\t\t\r\n\t\tif(isset($data)) {\r\n\t\t\t$this->request_body = $data;\r\n\t\t}\r\n\r\n\t\t// make the call chief\r\n\t\t$this->exec ( \"PUT\", '/' . $resource );\r\n\r\n\t\t// check the request status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for resource \\'%s\\' Failed.\r\n\t\t\t\t\tStatus: %d,\r\n\t\t\t\t\tRequest: %s\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$resource,\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->request_body_raw,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthrow new Exception($this->response_body);\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n\t}", "public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $request = $this->createRequest('PUT', '/entities', ['json' => $json]);\n $response = $this->send($request);\n return $response;\n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "protected function handleUpdate()\n {\n $resource = $this->argument('resource');\n $action = $this->option('action');\n $startPage = (int)$this->option('startPage');\n $perPage = (int)$this->option('perPage');\n\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n $this->info('There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n exit('Nothing was updated.');\n }\n\n $options = [\n 'startPage' => $startPage,\n 'perPage' => $perPage,\n 'lastRun' => $harvest->last_run_at\n ];\n\n // If a lastRun was given use that\n // OR if this has never been run before use 2001-01-01\n if (!empty($this->option('lastRun'))) {\n $options['lastRun'] = new Carbon($this->option('lastRun'));\n } elseif (is_null($options['lastRun'])) {\n $options['lastRun'] = new Carbon('2001-01-01');\n }\n\n $job = new UpdateResourceJob(\n $harvest,\n $options\n );\n\n $message = 'Updating ' . $action . ' ' . $resource . ' ' . $perPage . ' at a time';\n if (isset($lastRun)) {\n $message .= ' with entries updated since ' . $lastRun->format('r');\n }\n $this->info($message);\n $this->dispatch($job);\n }", "public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }", "abstract public function put($data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function testUpdateSupplierUsingPUT()\n {\n }", "public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }", "public function update(Request $request, $id)\n {\n $skill = Skill::findOrFail($id);\n\n $skill->skill = $request->skill;\n\n if ($request->hasFile('image')) {\n \\Cloudder::upload($request->file('image'));\n $c=\\Cloudder::getResult();\n // $image = $request->file('image');\n // $filename = time() . '.' . $image->getClientOriginalExtension();\n // $location = public_path('images/' . $filename);\n // Image::make($image)->save($location);\n\n $skill->image = $c['url'];\n }\n\n $skill->save();\n\n Session::flash('success', 'Successsfully updated your skill!');\n return redirect()->route('skills.index');\n }", "public function updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\n }", "public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }", "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "public abstract function update($object);", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('files');\n \\Storage::delete($product->image);\n } \n $product->name = $request->get('name');\n $product->price = $request->get('price');\n $product->description = $request->get('description');\n $product->additional_info = $request->get('additional_info');\n $product->category_id = $request->get('category');\n $product->subcategory_id = $request->get('subcategory');\n $product->image = $image;\n $product->save();\n return redirect()->back();\n }", "public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }", "public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')){\n $name = time().$file->getClientOriginalName();\n $file->move('product_image',$name);\n $data['product_photo']=$name;\n// $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }", "public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }", "public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }", "public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }", "public function update(ProductStoreRequest $request,$id)\n {\n $data = $request->validated();\n $product = Product::where('id',$id);\n $product->update($data);\n return response(\"Producto actualizado con éxito\",200);\n }", "public function update($entity)\n {\n \n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path,stream_get_contents($resource),$config);\n }", "public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }", "public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }", "public function update($id, $input);", "public function update(ProductRequest $request,int $id): ProductResource\n {\n $attributes = $request->only('supplier_id', 'name', 'warehouses');\n\n return new ProductResource($this->productRepository->update($id, $attributes)); }", "public function update(Request $request, $id)\n {\n $slider=new Slider;\n $slider=$slider::find($id);\n \n \n if($file =$request->file('slider')){\n if(Storage::delete('public/slider/'.$slider->slider)){\n\n //Get file original name//\n \n$original_name=$file->getClientOriginalName();\n\n //Get just the file name\n$filename=pathinfo($original_name,PATHINFO_FILENAME);\n\n//Create new file name\n$name=$filename.'_'.time().'.'.$file->getClientOriginalExtension();\n\n $destination='public/slider';\n $path=$request->slider->storeAs($destination,$name);\n $slider->slider=$name;\n $slider->save();\n return redirect('Admin/slider');\n\n }\n }\n}", "public function update(Request $request, $id)\n {/* dd($request->all()); */\n $acheivePic = $this->acheiveRepo->find($id);\n $acheive = $request->except('_method', '_token', 'photo', 'ar', 'en');\n $acheiveTrans = $request->only('ar', 'en');\n\n if ($request->hasFile('icon')) {\n // Delete old image first.\n $oldPic = public_path() . '/images/acheives/' . $acheivePic->icon;\n File::delete($oldPic);\n\n // Save the new one.\n $image = $request->file('icon');\n $imageName = $this->upload($image, 'acheives');\n $acheive['icon'] = $imageName;\n }\n\n $this->acheiveRepo->update($id, $acheive, $acheiveTrans);\n\n return redirect('admin-panel/widgets/acheive')->with('updated', 'updated');\n }", "public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }", "public function update(Request $request, $id)\n {\n //if upload new image, delete old image\n $myfile=$request->old_photo;\n if($request->hasfile('photo'))\n {\n $imageName=time().'.'.$request->photo->extension();\n $name=$request->old_photo;\n\n if(file_exists(public_path($name))){\n unlink(public_path($name));\n $request->photo->move(public_path('backendtemplate/truefalseimg'),$imageName);\n $myfile='backendtemplate/truefalseimg/'.$imageName;\n }\n }\n //Update Data\n $truefalsequestion=TrueFalseQuestion::find($id);\n $truefalsequestion->name=$request->name;\n $truefalsequestion->photo=$myfile;\n $truefalsequestion->answer = $request->answer;\n $truefalsequestion->question_id = $request->question;\n $truefalsequestion->save();\n\n //Redirect\n return redirect()->route('truefalsequestions.index'); \n }", "public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }", "public function update($id);", "public function update($id);", "public function put($path, $data = null);", "public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }", "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "public function update(Entity $entity);", "public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }", "public function update(Request $request, $id)\n {\n //validate incoming request\n $request->validate([\n 'name' => 'string|max:100|nullable',\n 'picture' => 'max:2000|mimes:jpeg,jpg,png,svg|nullable', //max size 2mb,\n 'total' => 'integer|min:0|nullable', //value must be > 0\n 'selling_price' => 'numeric|min:0|nullable',\n 'cost_price' => 'numeric|min:0|nullable',\n 'category_id' => 'integer|nullable'\n ]);\n\n try {\n $product = Auth::user()->store->product()->findorFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n \"message\" => \"Forbidden\"\n ], 403);\n }\n\n //if category id isnt null\n if ($category_id = $request->category_id) {\n if (!$this->isCategoryIdValid($category_id))\n return response()->json([\n \"message\" => \"Category Id is not valid\"\n ], 422);\n else\n $product->category_id = $request->category_id;\n }\n\n //if uploaded file exist\n if ($picture = $request->file(\"picture\")) {\n //if product already has logo\n if ($product->picture)\n Storage::delete(Product::$PICTURE_PATH . \"/\" . $product->picture);\n\n $picture_path = $picture->store(Product::$PICTURE_PATH);\n //remove folder name from path\n $product->picture = str_replace(Product::$PICTURE_PATH . \"/\", '', $picture_path);\n }\n\n $this->renewProduct($product, $request);\n $product->save();\n return response()->json(new ProductResource($product), 200);\n }", "public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}", "public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required | min:3 | string',\n 'type' => 'required',\n 'producer' => 'required',\n 'image' => 'image | mimes:png,jpg,jpeg',\n 'price_input' => 'required | numeric | min:0 | max:300000000',\n 'promotion_price' => 'required | numeric | max:300000000',\n 'description' => 'required | string',\n\n ]);\n $product = Product::withTrashed()->findOrfail($id);\n $product->name = $request->name;\n $product->id_type = $request->type;\n $product->id_producer = $request->producer;\n\n $product->amount = $request->amount;\n if (request('image')) {\n $product->image = base64_encode(file_get_contents($request->file('image')->getRealPath()));\n }\n\n $product->price_input = $request->price_input;\n\n if ( $request->promotion_price >= 0 && $request->promotion_price < $product->price_input) {\n $product->promotion_price = $request->promotion_price;\n }else{\n return back()->with('error', '\n Do not enter a negative number');\n }\n $product->new = $request->new;\n\n $product->description = $request->description;\n\n $product->save();\n $product->size()->sync(request('size'));\n\n return redirect()->route('product.index')->with('success', 'Product Updated successfully');\n }", "public static function updateImage($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n ResourceHandler::delete($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n $product->lastPrice = $product->price !== $request->input('price') ? $product->price : NULL;\n $product->price = $request->input('price');\n\n if ($request->hasFile('image')) { \n $currentImg = $product->image;\n if ($currentImg) {\n Storage::delete('/public/' . $currentImg);\n }\n $image = $request->file('image'); \n $path = $image->store('images','public');\n $product->image = $path;\n };\n\n $product->save(); \n\n $product_promotions = $request->input('promotion');\n\n $product->promotions()->sync($product_promotions);\n\n return redirect()->route('admin.modify');\n }", "public function update($request, $id)\n {\n $this->checkExits($id);\n $data = $request->except(['_method','_token','photo']);\n\n if($request->photo)\n {\n try {\n $this->UploadFile($request);\n } catch (\\Exception $e) {\n //if has exception , don't has action\n }\n if ($this->img !== '') {\n $data['img'] = $this->img;\n }\n }\n\n $this->object->update($data);\n\n }", "public function updateProduct($request, $product)\n {\n $product->update($request->except(['_token', '_method', 'image']));\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $imageName = time() . '.' . $request->file('image')->extension();\n // $img = Image::make('public/foo.jpg');\n\n $image_resize = Image::make($image->getRealPath());\n $image_resize->resize(500, 500);\n $image_resize->save(public_path('images/') . $imageName, 100);\n $product->gallery = $imageName;\n $product->save();\n }\n $product->getTags()->sync($request->input('tags'));\n }" ]
[ "0.7423347", "0.70622426", "0.70568657", "0.6896551", "0.65835553", "0.64519453", "0.6348333", "0.6212436", "0.61450946", "0.6122591", "0.6114199", "0.6101911", "0.60876113", "0.60528636", "0.60177964", "0.6006609", "0.59725446", "0.594558", "0.59395295", "0.5938792", "0.5893703", "0.5862337", "0.58523124", "0.58523124", "0.5851579", "0.5815571", "0.58067423", "0.5750728", "0.5750728", "0.5736541", "0.5723664", "0.5715135", "0.56949675", "0.5691129", "0.56882757", "0.5669375", "0.5655524", "0.56517446", "0.5647158", "0.5636521", "0.563466", "0.5632965", "0.56322825", "0.56291395", "0.56202215", "0.56087196", "0.56020856", "0.5591966", "0.5581127", "0.5581055", "0.558085", "0.5575458", "0.55706805", "0.55670804", "0.55629116", "0.5562565", "0.5558853", "0.5558505", "0.5558505", "0.5558505", "0.5558505", "0.5558505", "0.555572", "0.5555007", "0.5553948", "0.5553837", "0.5553147", "0.55429846", "0.5541925", "0.5540208", "0.5539145", "0.5536157", "0.55350804", "0.5534241", "0.5523782", "0.5518406", "0.55147856", "0.5513397", "0.550961", "0.55072165", "0.55067354", "0.5503418", "0.5501671", "0.55010796", "0.54998124", "0.5497327", "0.54942787", "0.54942036", "0.54942036", "0.54935455", "0.549267", "0.5491964", "0.5489983", "0.54833627", "0.54794145", "0.5478835", "0.5478348", "0.5465178", "0.54648995", "0.54607797", "0.54571307" ]
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { $section = Section::find($id); $section->delete(); return (redirect('sections')); }
{ "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 $client = $this->getClient($this->name, $this->options);\n try {\n $client->delete(Path::fromString($this->getRelativePublicationPathAndFilename($resource)));\n } catch (FileDoesNotExistsException $exception) {\n }\n }", "public function deleteResource(&$resource) {\n\n if ($this->connector != null) {\n $this->logger->addDebug(\"Deleting Resource Node from Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}}) detach delete a;\",\n [\n 'id' => $resource->getID()\n ]\n );\n $this->logger->addDebug(\"Updated neo4j to remove resource\");\n }\n\n }", "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }", "public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }", "protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "public function remove()\n {\n if (! ftruncate($this->fileHandle, 0)) {\n throw new StorageException(\"Could not truncate $this->path\");\n }\n if (! unlink($this->path)) {\n throw new StorageException(\"Could not delete $this->path\");\n }\n }", "public function delete()\n\t{\n\t\t$s3 = AWS::createClient('s3');\n $s3->deleteObject(\n array(\n 'Bucket' => $this->bucket,\n 'Key' => $this->location\n )\n );\n\t\tif($this->local_file && file_exists($this->local_file)) {\n\t\t\tunlink($this->local_file);\n\t\t}\n $this->local_file = null;\n\t}", "public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}", "public function delete(): void\n {\n unlink($this->getPath());\n }", "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "public function remove($path);", "function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}", "public function delete(): void\n {\n unlink($this->path);\n }", "private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }", "public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function remove() {}", "public function remove() {}", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "function delete_resource($resource_id, $page)\n\t{\n\t\t//get resource data\n\t\t$table = \"resource\";\n\t\t$where = \"resource_id = \".$resource_id;\n\t\t\n\t\t$this->db->where($where);\n\t\t$resource_query = $this->db->get($table);\n\t\t$resource_row = $resource_query->row();\n\t\t$resource_path = $this->resource_path;\n\t\t\n\t\t$image_name = $resource_row->resource_image_name;\n\t\t\n\t\t//delete any other uploaded image\n\t\t$this->file_model->delete_file($resource_path.\"\\\\\".$image_name, $this->resource_path);\n\t\t\n\t\t//delete any other uploaded thumbnail\n\t\t$this->file_model->delete_file($resource_path.\"\\\\thumbnail_\".$image_name, $this->resource_path);\n\t\t\n\t\tif($this->resource_model->delete_resource($resource_id))\n\t\t{\n\t\t\t$this->session->set_userdata('success_message', 'resource has been deleted');\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$this->session->set_userdata('error_message', 'resource could not be deleted');\n\t\t}\n\t\tredirect('resource/'.$page);\n\t}", "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "public function del(string $resource): bool|string\n {\n $json = false;\n $fs = unserialize($_SESSION['rfe'][$this->getRoot()], ['allowed_classes' => false]);\n if (array_key_exists($resource, $fs)) {\n // if $item has children, delete all children too\n if (array_key_exists('dir', $fs[$resource])) {\n foreach ($fs as $key => $file) {\n if (isset($file['parId']) && $file['parId'] == $resource) {\n unset($fs[$key]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['rfe'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n return $json;\n }", "public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}", "public function destroy($id) {\n $book = Book::find($id);\n // return unlink(storage_path(\"public/featured_images/\".$book->featured_image));\n Storage::delete(\"public/featured_images/\" . $book->featured_image);\n if ($book->delete()) {\n return $book;\n }\n\n }", "public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }", "public function destroyResourceImage(): void\n\t{\n\t\tif (isset($this->image)) {\n\t\t\t@imagedestroy($this->image->getImageResource());\n\t\t}\n\t}", "public function deleteResource(PersistentResource $resource)\n {\n $pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n if (!file_exists($pathAndFilename)) {\n return true;\n }\n if (unlink($pathAndFilename) === false) {\n return false;\n }\n Files::removeEmptyDirectoriesOnPath(dirname($pathAndFilename));\n return true;\n }", "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "public function destroy()\n {\n $file=public_path(config('larapages.media.folder')).Input::all()['folder'].'/'.Input::all()['file'];\n if (!file_exists($file)) die('File not found '.$file);\n unlink($file);\n }", "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "public function destroy($id)\n {\n Myfile::find($id)->delete();\n }", "public function destroy($delete = false)\n {\n if (null !== $this->resource) {\n $this->resource->clear();\n $this->resource->destroy();\n }\n\n $this->resource = null;\n clearstatcache();\n\n // If the $delete flag is passed, delete the image file.\n if (($delete) && file_exists($this->name)) {\n unlink($this->name);\n }\n }", "public static function delete($path){\r\n $currentDir = getcwd();\r\n $storageSubPath = \"/../../\".STORAGE_PATH;\r\n $file = $currentDir . $storageSubPath . '/' . $path;\r\n\r\n unlink($file);\r\n }", "public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }", "public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }", "public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }", "public function destroy(Resource $resource)\n {\n if( $resource->delete() ){\n return Response(['status'=>'success','message'=>'Resource deleted']); \n } else {\n return Response(['status'=>'error', 'message'=>'Something went wrong']);\n }\n }", "public function delete($path);", "public function delete($path);", "public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }", "public function destroy($id)\n {\n $supplier = Supplier::find($id);\n $photo = $supplier->photo;\n if ($photo) {\n unlink($photo);\n }\n $supplier->delete();\n }", "public function destroy($id)\n {\n $student = Student::where('id', $id)->first();\n // $path = $student->image;\n unlink($student->image);\n Student::findOrFail($id)->delete();\n return response('Deleted!');\n }", "public function destroy($id)\n {\n $icon = SliderIcon::find($id);\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $icon->delete();\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества удалёны');\n }", "public function delete($path, $data = null);", "public function destroy($id)\n {\n $items=Items::find($id);\n // delete old file\n if ($items->photo) {\n $str=$items->photo;\n $pos = strpos($str,'/',1);\n $str = substr($str, $pos);\n $oldFile = storage_path('app\\public').$str;\n File::Delete($oldFile); \n }\n $items->delete();\n return redirect()->route('items.index');\n }", "public function destroy($id)\n {\n $carousel = Carousel::find($id);\n $image = $carousel->image;\n\n $basename ='img/carousel/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n unlink($basename);\n }\n //With softDeletes, this is the way to permanently delete a record\n $carousel->delete();\n Session::flash('success','Product deleted permanently');\n return redirect()->back();\n }", "public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }", "public static function destroy(int $resource_id)\n {\n try {\n $image_data = ListingImage::where('id', $resource_id)->first();\n self::delete_image($image_data->name);\n $delete = ListingImage::where('id', $resource_id)->delete();\n\n // activity()\n // ->causedBy(Auth::user()->id)\n // ->performedOn($delete)\n // ->withProperties(['id' => $delete->id])\n // ->log('listing image deleted');\n return response()->json(['status'=> 'ok', 'msg'=> 'Data deleted successfully']);\n } catch (Exception $e) {\n $e->getMessage();\n }\n }", "public function destroy(Storage $storage)\n {\n $this->storage->destroy($storage);\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));\n }", "public function del($path){\n\t\treturn $this->remove($path);\n\t}", "public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n $product->delete();\n if($product->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$product->img);\n // return 'deleted';\n }\n return redirect()->route('product.index'); \n }", "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "public function destroy($id)\n {\n $image = Images::withTrashed()->find($id);\n\n Storage::disk('uploads')->delete(\"social-media/$image->filename\");\n\n $image->tags()->detach();\n $image->detachMedia(config('constants.media_tags'));\n $image->forceDelete();\n\n return redirect()->back()->with('success', 'The image was successfully deleted');\n }", "public function destroyByResourceId($resource_id)\n {\n// $online_party = $this->onlinetrack->where('resource_id', $resource_id)->get()->first();\n// $online_party->status = \"offline\";\n// $online_party->save();\n// return $online_party;\n return $this->onlinetrack->where('resource_id', $resource_id)->delete();\n }", "public function revoke($resource, $permission = null);", "public function destroy($id)\n {\n $data=Image::find($id);\n $image = $data->img;\n\n\n $filepath= public_path('images/');\n $imagepath = $filepath.$image;\n\n //dd($old_image);\n if (file_exists($imagepath)) {\n @unlink($imagepath);\n }\n\n\n $data->delete();\n\n return redirect()->route('image.index');\n }", "function delete($path);", "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "public function destroyResource($resource)\n {\n if (!is_object($resource)) {\n return false;\n }\n\n $resource_type = get_class($resource);\n $resource_id = $resource->getKey();\n\n return Role::where('resource_type', $resource_type)\n ->where('resource_id', $resource_id)\n ->delete();\n }", "public function remove($filePath){\n return Storage::delete($filePath);\n }", "public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\n }", "public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }", "public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }", "public function processDeletedResource(EntityResource $resource)\n {\n /** @var AuthorizationRepository $repository */\n $repository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n\n $repository->removeAuthorizationsForResource($resource);\n }", "function _unlink($resource, $exp_time = null)\n {\n if(file_exists($resource)) {\n return parent::_unlink($resource, $exp_time);\n }\n\n // file wasn't found, so it must be gone.\n return true;\n }", "public function remove($id);", "public function remove($id);", "public function deleted(Storage $storage)\n {\n //\n }", "public function destroy($id)\n {\n $data = Product::findOrFail($id);\n\n if(file_exists('uploads/product/'.$data->image1)){\n unlink('uploads/product/'.$data->image1);\n }\n\n if(file_exists('uploads/product/'.$data->image2)){\n unlink('uploads/product/'.$data->image2);\n }\n\n if(file_exists('uploads/product/'.$data->image3)){\n unlink('uploads/product/'.$data->image3);\n }\n $data->delete();\n }", "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }", "public function resources_delete($resource_id, Request $request) {\n if ($resource_id) {\n $resp = Resources::where('id', '=', $resource_id)->delete();\n if($resp){\n $msg = 'Resource has been deleted successfully.';\n $request->session()->flash('message', $msg);\n }\n }\n //return redirect()->route('admin-factor-list');\n return redirect()->to($_SERVER['HTTP_REFERER']);\n }", "public function delete()\n {\n try\n {\n $thumbnail = $this->getThumbnail();\n if($thumbnail)\n {\n $thumbnail->delete();\n }\n }\n catch(sfException $e){}\n \n // delete current file\n parent::delete();\n }", "function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function remove_resource($idproject){\n\t\t\n\t\t// Load model and try to get project data\n\t\t$this->load->model('Projects_model', 'projects');\n\t\t\n\t\t// Update\n\t\t$this->projects->save_project(array(\"ext\" => \"\", \"vzaar_idvideo\" => \"0\", \"vzaar_processed\" => \"0\"), $idproject);\n\t}", "public function destroy($id){\n $file_data = Slider::findOrFail($id);\n File::delete(public_path('../storage/app/public/sliders/'.$file_data->path));\n $slider = Slider::destroy($id);\n return response()->json(null, 204);\n }", "public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}", "public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }", "public function destroy($id)\n {\n //Find Slider With Id\n $slider = Slider::findOrFail($id);\n // Check If The Image Exist\n if(file_exists('uploads/slider/'.$slider->image)){\n\n unlink( 'uploads/slider/'.$slider->image);\n }\n $slider->delete();\n return redirect()->back()->with('success','Slider Successfully Deleted');\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.5897263", "0.58962846", "0.58951396", "0.58951396", "0.58951396", "0.58951396", "0.5880124", "0.58690923", "0.5863659", "0.5809161", "0.57735413", "0.5760811", "0.5753559", "0.57492644", "0.5741712", "0.57334286", "0.5726379", "0.57144034", "0.57096", "0.5707689", "0.5705895", "0.5705634", "0.5703902", "0.5696585", "0.5684331", "0.5684331", "0.56780374", "0.5677111", "0.5657287", "0.5648262", "0.5648085", "0.5648012", "0.5640759", "0.5637738", "0.5629985", "0.5619264", "0.56167465", "0.5606877", "0.56021434", "0.5601949", "0.55992156", "0.5598557", "0.55897516", "0.5581397", "0.5566926", "0.5566796", "0.55642897", "0.55641", "0.5556583", "0.5556536", "0.5550097", "0.5543172", "0.55422723", "0.5540013", "0.5540013", "0.55371785", "0.55365825", "0.55300397", "0.552969", "0.55275744", "0.55272335", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.5525997", "0.5525624", "0.5523911", "0.5521122", "0.5517412" ]
0.0
-1
Display a listing of the resource.
public function index() { return view('backend.user.list_user'); }
{ "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->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "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.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Show the form for creating a new resource.
public function create() { $roles = Role::all(); return view('user.user', compact('roles')); }
{ "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('resource.create');\n }", "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "public function create()\n {\n return \"Display a form for creating a new catalogue\";\n }", "public function newAction()\n {\n $entity = new Resource();\n $current = $this->get('security.context')->getToken()->getUser();\n $entity->setMember($current);\n $form = $this->createCreateForm($entity);\n\n return array(\n 'nav_active'=>'admin_resource',\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function create()\n {\n return view ('forms.create');\n }", "public function create ()\n {\n return view('forms.create');\n }", "public function create()\n\t{\n\t\treturn view('faith.form');\n\t}", "public function create(NebulaResource $resource): View\n {\n $this->authorize('create', $resource->model());\n\n return view('nebula::resources.create', [\n 'resource' => $resource,\n ]);\n }", "public function create()\n {\n return view(\"request_form.form\");\n }", "public function create()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.create\")) {\n $view = \"admin.{$this->name}.create\";\n } else {\n $view = 'admin.includes.actions.create';\n }\n\n /* Show the form for creating a new resource. */\n return view($view)\n ->with('name', $this->name);\n }", "public function newAction()\n\t{\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => 'Ajouter une nouvelle &eacute;cole'\n\t\t) ) );\n\t}", "public function create()\n {\n return view($this->forms . '.create');\n }", "public function create()\n {\n return view('restful.add');\n }", "public function create()\n {\n $resource = (new AclResource())->AclResource;\n\n //dd($resource);\n return view('Admin.acl.role.form', [\n 'resource' => $resource\n ]);\n }", "public function create()\n {\n return view('admin.createform');\n }", "public function create()\n {\n return view('admin.forms.create');\n }", "public function create()\n {\n return view('backend.student.form');\n }", "public function newAction()\n {\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Nuevo');\n\n $entity = $this->getManager()->create();\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function create()\n {\n return view('client.form');\n }", "public function create()\n {\n // Nos regresa la vista del formulario\n return view('project.form');\n }", "public function create()\n {\n return view('Form');\n }", "public function newAction(){\n \n $entity = new Resourceperson();\n $form = $this->createAddForm($entity);\n\n \n return $this->render('ABCRspBundle:rsp:add.html.twig',array('entity'=>$entity,'form'=> $form->createView()));\n }", "public function createForm()\n\t{\n\t\treturn view('post.new');\n\t}", "public function create()\n {\n return view('admin.form.create', ['form' => new Form]);\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n $title = $this->title;\n $subtitle = \"Adicionar cliente\";\n\n return view('admin.clients.form', compact('title', 'subtitle'));\n }", "public function create()\n {\n return view('backend.schoolboard.addform');\n }", "public function create()\n\t{\n\t\treturn view('info.forms.createInfo');\n\t}", "public function create()\n {\n return view('rests.create');\n }", "public function create()\n {\n //\n return view('form');\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return view(\"Add\");\n }", "public function create()\n {\n // Show the page\n return view('admin.producer.create_edit');\n }", "public function create(){\n return view('form.create');\n }", "public function create()\n {\n\n return view('control panel.student.add');\n\n }", "public function newAction() {\n\t\t\n\t\t$this->view->form = $this->getForm ( \"/admin/invoices/process\" );\n\t\t$this->view->title = $this->translator->translate(\"New Invoice\");\n\t\t$this->view->description = $this->translator->translate(\"Create a new invoice using this form.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"#\", \"label\" => $this->translator->translate('Save'), \"params\" => array('css' => null,'id' => 'submit')),\r\n\t\t\t\t\t\t\t array(\"url\" => \"/admin/invoices/list\", \"label\" => $this->translator->translate('List'), \"params\" => array('css' => null)));\n\t\t$this->render ( 'applicantform' );\n\t}", "public function create()\n {\n $data['action'] = 'pengiriman.store';\n return view('pengiriman.form', $data);\n }", "public function create()\n {\n return $this->cView(\"form\");\n }", "public function newAction()\n {\n // Création de l'entité et du formulaire.\n $client = new Client();\n $formulaire = $this->createForm(new ClientType(), $client);\n \n \n \n // Génération de la vue.\n return $this->render('KemistraMainBundle:Client:new.html.twig',\n array('formulaire' => $formulaire->createView()));\n }", "public function create()\n {\n return view(\"dresses.form\");\n }", "public function create()\n\t{\n\t\treturn View::make('new_entry');\n\t}", "public function createAction()\n {\n// $this->view->form = $form;\n }", "public function create()\n {\n return view('bank_account.form', ['mode' => 'create']);\n }", "public function create()\n {\n return view('fish.form');\n }", "public function create()\n {\n return view('users.forms.create');\n }", "public function create()\n {\n $this->setFormFields($this->getCreateFormFields());\n $form = $this->getCreateForm();\n\n return view($this->getViewName('create'), [\n 'crudSlug' => $this->slug,\n 'form' => $form,\n ]);\n }", "public function create()\n\t{\n\t\treturn view('admin.estadoflete.new');\n\t}", "public function create()\n {\n $person = new Person;\n return view('contents.personform')->with(compact('person') );\n }", "public function createAction(){\n \t$this->view->placeholder('title')->set('Create');\n \t$this->_forward('form');\n }", "public function create()\n {\n Gate::authorize('app.products.create');\n\n return view('backend.products.form');\n }", "public function create()\n {\n return view('essentials::create');\n }", "public function create()\n {\n return view('student.add');\n }", "public function create()\n\t{\n\t\treturn view('loisier/create');\n\t}", "public function create()\n {\n return view('url.form');\n }", "public function newAction()\n {\n $entity = new Facture();\n $factureType = new FactureType();\n\t\t$factureType->setUser($this->get('security.context')->getToken()->getUser());\n $form = $this->createForm($factureType, $entity);\n\n return $this->render('chevPensionBundle:Facture:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function newAction()\n {\n $entity = new Chofer();\n $form = $this->createForm(new ChoferType(), $entity, ['user' => $this->getUser()]);\n\n return $this->render('ChoferesBundle:Chofer:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'css_active' => 'chofer',\n ));\n }", "public function create()\n\t{\n\t\treturn View::make('crebos.create');\n\t}", "public function create() : View\n {\n $fieldset = $this->menuFieldset();\n\n return $this->view('create', [\n 'title' => trans('addons.Aardwolf::titles.create'),\n 'data' => [],\n 'fieldset' => $fieldset->toPublishArray(),\n 'suggestions' => [],\n 'submitUrl' => route('aardwolf.postCreate')\n ]);\n }", "public function create()\n {\n return view('libro.create');\n }", "public function create()\n {\n return view('libro.create');\n }", "public function newAction()\n {\n $entity = new Species();\n $form = $this->createForm(new SpeciesType(), $entity);\n\n return $this->render('InfectBackendBundle:Species:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('crud/add'); }", "public function create()\n\t{\n\t\treturn View::make('supplier.create');\n\t}", "public function newAction()\n {\n $entity = new Company();\n $form = $this->createForm(new CompanyType(), $entity);\n\n return $this->render('SiteSavalizeBundle:Company:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view(\"List.form\");\n }", "public function index_onCreateForm()\n\t{\n\t\tparent::create();\n\t\treturn $this->makePartial('create');\n\t}", "public function create()\n {\n //load create form\n return view('products.create');\n }", "public function create()\n {\n return view('article.addform');\n }", "public function create()\n {\n // Mengarahkan ke halaman form\n return view('buku.form');\n }", "public function create()\n\t{\n\t\t// load the create form (app/views/material/create.blade.php)\n\t\t$this->layout->content = View::make('material.create');\n\t}", "public function create()\n {\n return view('saldo.form');\n }", "public function create()\n\t\t{\n\t\t\treturn view('kuesioner.create');\n\t\t}", "public function view_create_questioner_form() {\n \t// show all questioner\n \t// send questioner to form\n \treturn view(\"create_questioner\");\n }", "public function newAction() {\n $entity = new Question();\n $form = $this->createCreateForm($entity);\n\n return $this->render('CdlrcodeBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n $data['companies'] = Company::select('id', 'name')->where('status', 1)->orderBy('id', 'desc')->get();\n return view('admin.outlet.outlet_form', $data);\n }", "public function create()\n {\n return view('admin.inverty.add');\n }", "public function create()\n {\n return view('Libro.create');\n }", "public function create()\n {\n $breadcrumb='car.create';\n return view('admin.partials.cars.form', compact('breadcrumb'));\n }", "public function create()\n {\n $title = trans('entry_mode.new');\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n return view(\"familiasPrograma.create\");\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n\t{\n\t\treturn View::make('perusahaans.create');\n\t}", "public function create()\n {\n return view(\"create\");\n }", "public function create()\n\t{\n //echo 'show form';\n\t\treturn View::make('gaans.create');\n\t}", "public function create()\n {\n $title = trans('dormitorybed.new');\n $this->generateParams();\n\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n return view('forming');\n }", "public function formNew() {\n $this->data->options = array(\n 'RJ' => 'Rio de Janeiro',\n 'MG' => 'Minas Gerais',\n 'SP' => 'São Paulo',\n 'ES' => 'Espírito Santo',\n 'BA' => 'Bahia',\n 'RS' => 'Rio Grande do Sul'\n );\n $this->data->action = \"@exemplos/pessoa/save\";\n $this->render();\n }", "public function create()\n {\n \t\n \treturn view('supplies.create');\n\n }", "public function create()\n {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }", "public function createAction()\n {\n if ($form = $this->processForm()) {\n $this->setPageTitle(sprintf($this->_('New %s...'), $this->getTopic()));\n $this->html[] = $form;\n }\n }", "public function create() {\n\t\t$title = 'Create | Show';\n\n\t\treturn view('admin.show.create', compact('title'));\n\t}", "public function newAction(){\n\t\t$entity = new Reserva();\n\t\t$form = $this->createCreateForm($entity);\n\n\t\treturn $this->render('LIHotelBundle:Reserva:new.html.twig', array(\n\t\t\t'entity' => $entity,\n\t\t\t'form' => $form->createView(),\n\t\t));\n\t}", "public function create()\n {\n // not sure what to do with the form since im\n // using ame partial for both create and edit\n return view('plants.create')->with('plant', new Plant);\n }", "public function create()\n {\n return view('student::students.student.create');\n }" ]
[ "0.7593198", "0.7593198", "0.75881755", "0.75787884", "0.7570936", "0.74992913", "0.7436037", "0.7431172", "0.7386512", "0.7351077", "0.7337819", "0.73100585", "0.7295612", "0.72803086", "0.7272473", "0.72422874", "0.7229479", "0.7224403", "0.7184453", "0.7177193", "0.7173551", "0.71482", "0.71424824", "0.7141885", "0.7135663", "0.7126202", "0.7121413", "0.7113729", "0.7113729", "0.7113729", "0.7110717", "0.7092118", "0.7083616", "0.7080794", "0.7078082", "0.70561296", "0.70561296", "0.7054459", "0.703925", "0.70373696", "0.70346737", "0.70324355", "0.70287114", "0.7025425", "0.7025232", "0.7018496", "0.7016745", "0.7002774", "0.70019513", "0.69991785", "0.69942427", "0.69936013", "0.69929653", "0.6988009", "0.69856364", "0.6965122", "0.6964889", "0.6955187", "0.69511235", "0.69497", "0.6947041", "0.69432163", "0.6940678", "0.6939846", "0.6936846", "0.6936846", "0.6936506", "0.6933589", "0.69309", "0.69273484", "0.6925485", "0.6921386", "0.6917649", "0.6913987", "0.6910826", "0.6909406", "0.69085246", "0.6907409", "0.69021183", "0.6900961", "0.68997645", "0.68991655", "0.6894049", "0.68920606", "0.6892033", "0.6891114", "0.6890811", "0.6890811", "0.6887868", "0.6887327", "0.68854356", "0.688366", "0.68805534", "0.68766564", "0.68753666", "0.6872474", "0.68717086", "0.6869974", "0.6869806", "0.6868809", "0.68685615" ]
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { }
{ "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());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }", "public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }", "public function createStorage();", "public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "function storeAndNew() {\n $this->store();\n }", "public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}" ]
[ "0.7286258", "0.71454436", "0.7132821", "0.6640289", "0.6621105", "0.6566493", "0.65255576", "0.65087926", "0.6448317", "0.63752604", "0.63736314", "0.6365631", "0.6365631", "0.6365631", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229", "0.634229" ]
0.0
-1
Display the specified resource.
public function show($id) { $user = Admin::find($id); return view('backend.user.show_user', compact('user')); }
{ "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);\n }", "private function showResourceable($resourceable)\n {\n save_resource_url();\n\n return $this->view('resources.create_edit')\n ->with('resource', $resourceable)\n ->with('photos', $resourceable->photos)\n ->with('videos', $resourceable->videos)\n ->with('documents', $resourceable->documents);\n }", "function display($resource_name, $cache_id = null, $compile_id = null) {\n\t\t$this->_getResourceInfo($resource_name); // Saves resource info to a Smarty class var for debugging\n\t\t$_t3_fetch_result = $this->fetch($resource_name, tx_smarty_div::getCacheID($cache_id), $compile_id);\n if ($this->debugging) { // Debugging will have been evaluated in fetch\n require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');\n $_t3_fetch_result .= smarty_core_display_debug_console(array(), $this);\n }\n\t\treturn $_t3_fetch_result;\n\t}", "public function show(ResourceSubject $resourceSubject)\n {\n //\n }", "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function retrieve(Resource $resource);", "public function showResource($resouceable, $id)\n {\n $model_name = str_replace('-', ' ',ucwords($resouceable));\n $model_name = str_replace(' ', '',ucwords($model_name));\n\n $resource_type = 'App\\Models\\\\'.$model_name;\n $model = app($resource_type);\n $model = $model->find($id);\n\n return $this->showResourceable($model);\n }", "public function showAction(Ressource $ressource)\n {\n $deleteForm = $this->createDeleteForm($ressource);\n\n return $this->render('ressource/show.html.twig', array(\n 'ressource' => $ressource,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function show(Dispenser $dispenser)\n {\n //\n }", "public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }", "public function displayAction() {\n\t\tif(is_numeric($this->req_id)) {\n\t\t\tAPI::DEBUG(\"[DefaultController::displayAction()] Getting \" . $this->req_id, 1);\n\t\t\t$this->_view->data['info'] = $this->_model->get($this->req_id);\n\t\t\t$this->_view->data['action'] = 'edit';\n\n\t\t} else {\n\t\t\t$this->_view->data['action'] = 'new';\n\t\t}\n\t\t// auto call the hooks for this module/action\n\t\terror_log(\"Should Call: \" . $this->module .\"/\".$this->action.\"/\".\"controller.php\");\n\t\tAPI::callHooks($this->module, $this->action, 'controller', $this);\n\n\t\t$this->addModuleTemplate($this->module, 'display');\n\n\t}", "public function show(NebulaResource $resource, $item): View\n {\n $this->authorize('view', $item);\n\n return view('nebula::resources.show', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function resource(string $resource, string $controller): void\n {\n $base = $this->plural($resource);\n $entity = '/{'.$resource.'}';\n\n $this->app->get($base, $controller.'@index');\n $this->app->post($base, $controller.'@store');\n $this->app->get($base.$entity, $controller.'@show');\n $this->app->patch($base.$entity, $controller.'@update');\n $this->app->delete($base.$entity, $controller.'@destroy');\n }", "public function show($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.show\")) {\n $view = \"admin.{$this->name}.show\";\n } else {\n $view = 'admin.includes.actions.show';\n }\n\n /* Displays the specified resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "function displayCustom($resource_name, $cache_id = null, $compile_id = null)\n\t{\n\t return $this->display(DotbAutoLoader::existingCustomOne($resource_name), $cache_id, $compile_id);\n\t}", "public function show($id)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $rules = [\n 'id' => 'required|integer'\n ];\n\n $validator = Validator::make(['id' => $id], $rules);\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n $resource = $this->resourceRepository->fetchResource($id);\n $this->resourceRepository->storeView($id, $currentUser['id']);\n\n $data = [\n 'resource' => $resource,\n 'related_resources' => $this->resourceRepository->getResourcesRelatedTo($resource->id, $resource->mentoring_area_id)\n ];\n\n return APIHandler::response(1, \"Show Resource\", $data);\n }", "public function get(Resource $resource);", "public function showAction()\n {\n $model = $this->_getPhotoModel();\n $photo = $model->fetchEntry($this->getRequest()->getParam('id'));\n\n if (null === $photo) {\n return $this->_forward('notfound', 'error');\n }\n\n $this->view->auth = Zend_Auth::getInstance();\n $this->view->title = $photo->title;\n $this->view->photo = $photo;\n }", "public function show($id)\n {\n //\n $data=Resource::find($id);\n return view('resourceDetails',compact('data'));\n }", "function display() {\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}", "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "public function show()\n {\n if ($this->twig !== false) {\n $this->twigDefaultContext();\n if ($this->controller) {\n $this->controller->display($this->data);\n }\n echo $this->twig->render($this->twig_template, $this->data);\n } else {\n $filename = $this->findTemplatePath($this->template);\n require($filename);\n }\n }", "function show( $resource ){\n\n $where = \"reservation_status <> 'Pending' AND id = {$resource}\";\n $reservation = where( 'reservations', $where );\n $reservation = $reservation[0];\n\n return view('admin/reservation/preview_reservation', compact( 'reservation' ));\n}", "public function edit(Resource $resource)\n {\n //\n }", "public function show(rc $rc)\n {\n //\n }", "public function show(Resolucion $resolucion)\n {\n //\n }", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function showAction(furTexture $furTexture)\n {\n\n return $this->render('furtexture/show.html.twig', array(\n 'furTexture' => $furTexture,\n ));\n }", "public function show(Resena $resena)\n {\n }", "public function action_display()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\r\n\t\tif ( ! $event->loaded())\r\n\t\t{\r\n\t\t\tNotices::error('event.view.not_found');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Can user view this event?\r\n\t\tif ( ! $this->user->can('event_view', array('event' => $event)))\r\n\t\t{\r\n\t\t\t// Error notification\r\n\t\t\tNotices::error('event.view.not_allowed');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Pass event data to the view class\r\n\t\t$this->view->event_data = $event;\r\n\t\t$this->view->user = $this->user;\r\n\t}", "public function showAction() {\n $docId = $this->getParam('id');\n\n // TODO verify parameter\n\n $document = new Opus_Document($docId);\n\n $this->_helper->layout()->disableLayout();\n\n $this->view->doc = $document;\n $this->view->document = new Application_Util_DocumentAdapter($this->view, $document);\n }", "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function execute()\n {\n // HTTP Request Get\n if ($this->type == \"resource\") {\n $action = $this->getResourceAction();\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n } else {\n $action = $this->Request->action;\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n }\n }", "public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }", "public function show(Resident $resident)\n {\n $this->authorize('admin.resident.show', $resident);\n\n // TODO your code goes here\n }", "public function display()\n\t{\n\t\tparent::display();\n\t}", "public function show()\n\t{\n\t\t\n\t}", "public function get_resource();", "function display() {\n\n\t\t// Check authorization, abort if negative\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t// Get the view\n\t\t$view = $this->getDefaultView();\n\n\t\tif ($view == NULL) {\n\t\t\tthrow new Exception('Display task called, but there is no view assigned to that controller. Check method getDefaultView.');\n\t\t}\n\n\t\t$view->listing = true;\n\n\t\t// Wrap the output of the views depending on the way the stuff should be shown\n\t\t$this->wrapViewAndDisplay($view);\n\n\t}", "public function viewResources()\n {\n $database = new Database();\n\n $resources = $database->getAllActiveResourcesNoLimit();\n\n\n $resourceArray = array();\n $i = 1;\n\n foreach ($resources as $resource) {\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n array_push($resourceArray, $availableResource);\n $i += 1;\n }\n $resourceSize = sizeof($resourceArray);\n $this->_f3->set('resourcesByActive', $resourceArray);\n $this->_f3->set('resourcesSize', $resourceSize);\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }", "public function display($title = null)\n {\n echo $this->fetch($title);\n }", "public function display(){}", "public function show($id)\n\t{\n\t\t//\n\t\t//\n\t\n\t}", "public function viewAction()\n\t{\n\t\t//get Id param from request\n\t\tif (!$id = $this->_getParam('id')) {\n\t\t\t$this->getFlashMessenger()->addMessage('Product ID was not specified');\n\t\t\t$this->getRedirector()->gotoSimple('list');\n\t\t}\n\n\t\t//fetch requested ProductID from DB\n\t\tif (!$this->_model->fetch($id)) {\n\t\t\t$this->render('not-found');\n\t\t} else {\n\t\t\t$this->view->model = $this->_model;\n\t\t}\n\t}", "public function show($id)\n {\n // Get single person\n $person = Person::findOrFail($id);\n\n // Return single person as a resource\n return '<h1>Person Number '.$id.'</h1><br>'.json_encode(new PersonResource($person));\n }", "public function display() {\n echo $this->render();\n }", "#[TODO] use self object?\n\tprotected function GET(ResourceObject $resource) {\n#[TODO]\t\tif ($resource->getMTime())\n#[TODO]\t\t\t$this->response->headers->set('Last-modified', gmdate('D, d M Y H:i:s ', $resource->getMTime()) . 'GMT');\n#[TODO]\t\tif ($resource->getCTime())\n#[TODO]\t\t\t$this->response->headers->set('Date', gmdate('D, d M Y H:i:s ', $resource->getCTime()) . 'GMT');\n\n\n#[TODO] handle file streams\n\t\t// get ranges\n#\t\t$ranges = WebDAV::getRanges($this->request, $this->response);\n\n\t\t// set the content of the response\n\t\tif ($resource instanceof ResourceDocument) {\n\t\t\t$this->response->content->set($resource->getContents());\n\t\t\t$this->response->content->setType($resource->getMIMEType());\n\t\t\t$this->response->content->encodeOnSubmit(true);\n\t\t}\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n {\n //\n $this->_show($id);\n }", "function Fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)\n {\n return $this->_smarty->fetch($resource_name, $cache_id, $compile_id, $display);\n }", "public function show()\n\t{\n\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {}", "static public function showCallback(O_Dao_Renderer_Show_Params $params) {\r\n\t\t/* @var $r R_Mdl_Resource */\r\n\t\t$r = $params->record();\r\n\t\t// Setting layout title\r\n\t\t$params->layout()->setTitle($r->getPageTitle());\r\n\r\n?><h1><?=$r->title?></h1><div id=\"resource\"><?\r\n\t\tif($r->getContent()) {\r\n\t\t\t// page has its own content -- show it\r\n\t\t\t$r->getContent()->show($params->layout(), \"content\");\r\n\t\t} else {\r\n\t\t\t// It is a post unit, show all childs\r\n\t\t\tif($r->is_unit == 1) {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"content\");\r\n\r\n\t\t\t// It is a folder with several units, show paginator\r\n\t\t\t} elseif($r->show_def == \"last-units\") {\r\n\t\t\t\tlist($type, $perpage) = explode(\":\", $r->show_def_params);\r\n\t\t\t\t/* @var $p O_Dao_Paginator */\r\n\t\t\t\t$p = $r->addQueryAccessChecks($r->getChilds())->test(\"is_unit\", 1)->getPaginator(array($r, \"getPageUrl\"), $perpage);\r\n\t\t\t\t$p->show($params->layout(), $type);\r\n\t\t\t// It is a folder with subfolders, boxes, contents. Show one childs level\r\n\t\t\t} else {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"on-parent-page\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n?></div><?\r\n\t}", "public function show($id)\r\n\t{\r\n\t\t//\r\n\r\n\r\n\r\n\t}", "public abstract function display();", "public function show($resourceId, $eventId)\n {\n $routes = $this->routes;\n\n $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);\n\n if (method_exists($eventable, 'events')) {\n $event = $eventable->events()->find($eventId);\n\n if ($event) {\n $apiObject = $this->event->findApiObject($event->api_id);\n\n return view('events.eventables.show', compact('routes', 'eventable', 'event', 'apiObject'));\n }\n }\n\n abort(404);\n }", "public function show($id)\r\r\n\t{\r\r\n\t\t//\r\r\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "abstract public function resource($resource);", "public function show(Response $response)\n {\n //\n }", "public function show()\n {\n return auth()->user()->getResource();\n }", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}" ]
[ "0.8232636", "0.81890994", "0.68296117", "0.64987075", "0.649589", "0.64692974", "0.64633286", "0.63640857", "0.6307513", "0.6281809", "0.621944", "0.61926234", "0.61803305", "0.6173143", "0.61398774", "0.6119022", "0.61085826", "0.6106046", "0.60947937", "0.6078597", "0.6047151", "0.60409963", "0.6021287", "0.5989136", "0.5964405", "0.5962407", "0.59518087", "0.59309924", "0.5921466", "0.5908002", "0.5908002", "0.5908002", "0.59051657", "0.5894554", "0.5871459", "0.5870088", "0.586883", "0.5851384", "0.58168566", "0.58166975", "0.5815869", "0.58056176", "0.5799148", "0.5795126", "0.5791158", "0.57857597", "0.5783371", "0.5761351", "0.57592535", "0.57587147", "0.5746491", "0.57460666", "0.574066", "0.5739448", "0.5739448", "0.57295275", "0.57293373", "0.5729069", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57214445", "0.57149816", "0.5712036", "0.5710076", "0.57073003", "0.5707059", "0.5705454", "0.5705454", "0.5700382", "0.56997055", "0.5693362", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868" ]
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { $user = Admin::find($id); $roles = Role::all(); $businesscategories = BusinessCategory::all(); return view('backend.user.edit_user', compact('user', 'roles','businesscategories')); }
{ "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 $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.edit\")) {\n $view = \"admin.{$this->name}.edit\";\n } else {\n $view = 'admin.includes.actions.edit';\n }\n\n /* Displays the edit resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function edit(NebulaResource $resource, $item): View\n {\n $this->authorize('update', $item);\n\n return view('nebula::resources.edit', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function edit()\n {\n return view('hirmvc::edit');\n }", "public function editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "public function edit() {\n $id = $this->parent->urlPathParts[2];\n // pass name and id to view\n $data = $this->parent->getModel(\"fruits\")->select(\"select * from fruit_table where id = :id\", array(\":id\"=>$id));\n $this->getView(\"header\", array(\"pagename\"=>\"about\"));\n $this->getView(\"editForm\", $data);\n $this->getView(\"footer\");\n }", "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "public function edit($id)\n {\n $model = $this->modelObj;\n $formObj = $model::findOrFail($id);\n $data['formObj'] = $formObj;\n return view($this->veiw_base . '.edit', $data);\n }", "public function createEditForm(Resourceperson $entity){\n \n $form = $this->createForm(new ResourcepersonType(), $entity, array(\n 'action' => $this->generateUrl('rsp_update', array('id' => $entity->getRpId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update','attr'=> array(\n 'class'=>'btn btn primary'\n )));\n\n return $form;\n }", "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'action' => $this->generateUrl('social_admin_resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => '保存','attr'=>[\n 'class'=>'btn btn-primary'\n ]));\n\n return $form;\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function editAction()\n {\n if ($form = $this->processForm()) {\n if ($this->useTabbedForms && method_exists($this, 'getSubject')) {\n $data = $this->getModel()->loadFirst();\n $subject = $this->getSubject($data);\n $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));\n } else {\n $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));\n }\n $this->html[] = $form;\n }\n }", "public function edit($id)\n {\n $this->data['entity'] = GS_Form::where('id', $id)->firstOrFail();\n return view('admin.pages.forms.edit', $this->data);\n }", "public function edit($id)\n\t{\n\t\t// get the fbf_presenca\n\t\t$fbf_presenca = FbfPresenca::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_presenca\n\t\t$this->layout->content = View::make('fbf_presenca.edit')\n->with('fbf_presenca', $fbf_presenca);\n\t}", "public function edit($id)\n {\n $data = $this->model->find($id);\n\n return view('admin.backends.employee.form.edit',compact('data'));\n }", "public function edit($model, $form);", "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "public function edit($id)\n\t{\n\t\t$faith = Faith::find($id);\n \n return view('faith.form')->with('faith', $faith);\n\n\t}", "public function edit()\n { \n return view('admin.control.edit');\n }", "public function edit(Form $form)\n {\n //\n }", "public function edit()\n {\n return view('common::edit');\n }", "public function edit($id)\n {\n $resource = (new AclResource())->AclResource;\n $roleResource = AclRole::where('role', $id)->get(['resource'])->toArray();\n $roleResource = Arr::pluck($roleResource, 'resource');\n return view('Admin.acl.role.form', [\n 'role' => $id,\n 'resource' => $resource,\n 'roleResource' => $roleResource,\n ]);\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\r\n {\r\n return view('petro::edit');\r\n }", "public function edit($id)\n {\n // show form edit user info\n }", "public function edit()\n {\n return view('escrow::edit');\n }", "public function edit($id)\n {\n $resource = ResourceManagement::find($id);\n\n $users = User::get();\n // Redirect to user list if updating user wasn't existed\n if ($resource == null || $resource->count() == 0) {\n return redirect()->intended('/resource-management');\n }\n\n return view('resources-mgmt/edit', ['resource' => $resource, 'users' => $users]);\n }", "public function edit()\n {\n return view('commonmodule::edit');\n }", "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$this->employee->setDataArray($action);\n\t\t\theader('Location: ' . PATH . 'Employee/index/', true, 303);\n\t\t}\n\t\t$employee = $this->employee->setAction('edit');\n\t\t$this->view->addToReplace($employee);\n\t\t$this->listEmployee();\n\t\t$this->arrayToPrint();\n\t}", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit(form $form)\n {\n //\n }", "public function actionEdit($id) { }", "public function edit()\n {\n return view('admincp::edit');\n }", "public function edit()\n {\n return view('scaffold::edit');\n }", "public function edit($id)\n {\n $header = \"Edit\";\n\t\t$data = Penerbit::findOrFail($id);\n\t\treturn view('admin.penerbit.form', compact('data','header'));\n }", "public function edit()\n {\n return view('Person.edit');\n }", "public function edit($id)\n {\n $data = Form::find($id);\n return view('form.edit', compact('data'));\n }", "public function edit($id)\n\t{\n\t\t$career = $this->careers->findById($id);\n\t\treturn View::make('careers._form', array('career' => $career, 'exists' => true));\n\t}", "public function edit(Flight $exercise, FlightResource $resource)\n {\n return $this->viewMake('adm.smartcars.exercise-resources.edit')\n ->with('flight', $exercise)\n ->with('resource', $resource);\n }", "public function edit($id)\n\t{\n\t\t// get the material\n\t\t$material = Material::find($id);\n\n\t\t// show the edit form and pass the material\n\t\t$this->layout->content = View::make('material.edit')\n\t\t\t->with('material', $material);\n\t}", "public function edit($id, Request $request)\n {\n $formObj = $this->modelObj->find($id);\n\n if(!$formObj)\n {\n abort(404);\n } \n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \".$this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText.\".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\"; \n\n return view($this->moduleViewName.'.add', $data);\n }", "public function edit()\n {\n $id = $this->getId();\n return view('panel.user.form', [\n 'user' => $this->userRepository->findById($id),\n 'method' => 'PUT',\n 'routePrefix' => 'profile',\n 'route' => 'profile.update',\n 'parameters' => [$id],\n 'breadcrumbs' => $this->getBreadcrumb('Editar')\n ]);\n }", "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getParameter('id');\n\t\t$product = $this->model->product->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('product/edit', [\n\t\t\t'product' => $product\n\t\t]);\n\t}", "public function edit($id)\n {\n //\n $data = Diskon::find($id);\n\n $form = $this->form;\n $edit = $this->edit;\n $field = $this->field;\n $page = $this->page;\n $id = $id;\n $title = $this->title;\n return view('admin/page/'.$this->page.'/edit',compact('form','edit','data','field','page','id','title'));\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "public function editAction()\n {\n $robot = Robots::findFirst($this->session->get(\"robot-id\"));\n if ($this->request->isGet()) {\n $this->tag->prependTitle(\"Редактировать робота :: \");\n $user = $this->session->get(\"auth-id\");\n if (!$robot) {\n $this->flashSession->error(\n \"Робот не найден\"\n );\n return $this->response->redirect(\"users/usershow/$user->name\");\n }\n\n }\n\n $this->view->form = new RobotForm(\n $robot,\n [\n \"edit\" => true,\n ]\n );\n }", "public function editAction()\n {\n $form = new $this->form();\n\n $request = $this->getRequest();\n $param = $this->params()->fromRoute('id', 0);\n\n $repository = $this->getEm()->getRepository($this->entity);\n $entity = $repository->find($param);\n\n if ($entity) {\n\n $form->setData($entity->toArray());\n\n if ( $request->isPost() ) {\n\n $form->setData($request->getPost());\n\n if ( $form->isValid() ) {\n\n $service = $this->getServiceLocator()->get($this->service);\n $service->update($request->getPost()->toArray());\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n }\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n return new ViewModel(array('form' => $form, 'id' => $param));\n\n }", "public function edit($id)\n\t{\n\t\t$SysApplication = \\Javan\\Dynaflow\\Domain\\Model\\SysApplication::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysApplicationForm', [\n \t'method' => 'POST',\n \t'url' => 'sysapplication/update/'.$id,\n \t'model' => $SysApplication,\n \t'data' => [ 'flow_id' => $SysApplication->flow_id]\n \t]);\n\t\treturn View::make('dynaflow::sysapplication.form', compact('form', 'SysApplication'));\n\t}", "public function editAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif (!$item) {\n\t\t\t$item = $model->createRow();\n\t\t}\n\t\t$form = $item->getForm();\n\t\tif ($this->_request->isPost()) {\n\t\t\t$newId = $form->populate($this->_request->getPost())->save();\n\t\t\tif ($newId) {\n\t\t\t\t$this->_helper->flashMessenger('Saved successfully!');\n\t\t\t\t$this->_helper->redirector('edit', null, null, array('id' => $newId, 'model' => $modelName));\n\t\t\t}\n\t\t}\n\t\t$this->view->form = $form;\n\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\n\t}", "public function edit($id)\n {\n return view('models::edit');\n }", "public function edit()\n {\n return view('home::edit');\n }", "public function editAction()\n {\n $id = $this->params()->fromRoute('id');\n $entity = $this->entityManager->find(Entity\\CourtClosing::class, $id);\n if (! $entity) {\n // to do: deal with it\n }\n $form = $this->getForm('update');\n $form->bind($entity);\n if ($this->getRequest()->isPost()) {\n return $this->post();\n }\n\n return new ViewModel(['form' => $form]);\n }", "public function editAction($id)\n {\n $entity = $this->getManager()->find($id);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Editar');\n\n if (!$entity) {\n throw $this->createNotFoundException('No se ha encontrado el elemento');\n }\n\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit(Form $form)\n {\n return view('admin.forms.edit', compact('form'));\n }", "public function editAction()\n {\n $form = MediaForm::create($this->get('form.context'), 'media');\n $media = $this->get('media_manager.manager')->findOneById($this->get('request')->get('media_id'));\n \n $form->bind($this->get('request'), $media);\n \n return $this->render('MediaManagerBundle:Admin:form.html.twig', array('form' => $form, 'media' => $media));\n }", "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CdlrcodeBundle:Question')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Question entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CdlrcodeBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('consultas::edit');\n }", "public function edit(DirectorFormBuilder $form, $id)\n {\n return $form->render($id);\n }", "public function edit()\n {\n return view('dashboard::edit');\n }", "public function edit($id){\n $rfid = Rfid::find($id);\n\n //load form view\n return view('rfids.edit', ['rfid' => $rfid]);\n }", "public function edit($id)\n {\n\n // retrieve provider\n $provider = Provider::findOrFail($id);\n\n // return form with provider\n return view('backend.providers.form')->with('provider', $provider);\n }", "public function edit(Question $question)\n {\n $this->employeePermission('application' , 'edit');\n $question->chooses;\n $action = 'edit';\n return view('admin.setting.question_form', compact('action' , 'question'));\n }", "public function edit() {\n return view('routes::edit');\n }", "public function edit($id)\n {\n $this->data['product'] = Product::find($id);\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \" Update Prouct Details\";\n $this->data['mode'] = \"edit\";\n\n return view('product.form', $this->data);\n }", "public function edit(ClueEnFormBuilder $form, $id): Response\n {\n return $form->render($id);\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BaseBundle:Feriado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Feriado entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BaseBundle:Feriado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "public function edit($articulo_id)\n {\n $titulo = \"Editar\";\n return View(\"articulos.formulario\",compact('titulo','articulo_id'));\n }", "public function edit($id)\n {\n $resources = User::find(session('usuario_id'))->resources;\n $languages = Language::pluck('name', 'id');\n $types = Type::pluck('name', 'id');\n $method = 'PATCH';\n\n $recurso = Resource::find($id);\n $url = \"/resource/$recurso->id\";\n\n return view('resources.resources', compact('resources', 'languages', 'types', 'method', 'url', 'recurso'));\n }", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit]);\n }", "public function displayEditForm(Employee $employee){\n return view('employee.displayEditForm',['employee'=>$employee]);\n }", "public function edit()\n {\n return view('website::edit');\n }", "public function edit()\n {\n return view('inventory::edit');\n }", "public function edit()\n {\n return view('initializer::edit');\n }", "public function editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "public function edit($id)\n {\n return view('backend::edit');\n }", "public function edit($id)\n {\n //dd($id);\n $familiaPrograma= FamiliaPrograma::findOrFail($id);\n return view('familiasPrograma.edit', compact('familiaPrograma'));\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n $user = User::where('id', $id)->first();\n\n\n return view('users.forms.update', compact('user'));\n }", "public function editAction($id)\n\t{\n\t\t$school = School::find( $id );\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => sprintf( 'Modifier \"%s\"', $school->name ),\n\t\t\t'entity' => $school\n\t\t) ) );\n\t}", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit ]);\n }", "public function edit(Person $person) {\n\t\t$viewModel = new PersonFormViewModel();\n\t\treturn view('person.form', $viewModel);\n\t}", "public function edit($id)\n {\n \t$product = Product::find($id);\n \treturn view('admin.products.edit')->with(compact('product')); // formulario de actualizacion de datos del producto\n }", "public function edit_person($person_id){\n \t$person = Person::find($person_id);\n \treturn view('resource_detail._basic_info.edit',compact('person'));\n }", "public function edit($id)\n {\n $professor = $this->repository->find($id);\n return view('admin.professores.edit',compact('professor'));\n }", "public function edit($id)\n {\n $data = Restful::find($id);\n return view('restful.edit', compact('data'));\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('MedecinIBundle:Fichepatient')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Fichepatient entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('MedecinIBundle:Fichepatient:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return $this->form->render('mconsole::personal.form', [\n 'item' => $this->person->query()->with('uploads')->findOrFail($id),\n ]);\n }", "public function edit($id)\n\t{\n\t\t // get the project\n $project = Project::find($id);\n\n // show the edit form and pass the project\n return View::make('logicViews.projects.edit')->with('project', $project);\n\t}" ]
[ "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.68336326", "0.6811471", "0.68060875", "0.68047357", "0.68018645", "0.6795623", "0.6791791", "0.6791791", "0.6787701", "0.67837197", "0.67791027", "0.677645", "0.6768301", "0.6760122", "0.67458534", "0.67458534", "0.67443407", "0.67425704", "0.6739898", "0.6735328", "0.6725465", "0.6712817", "0.6693891", "0.6692419", "0.6688581", "0.66879624", "0.6687282", "0.6684741", "0.6682786", "0.6668777", "0.6668427", "0.6665287", "0.6665287", "0.66610634", "0.6660843", "0.66589665", "0.66567147", "0.66545695", "0.66527975", "0.6642529", "0.6633056", "0.6630304", "0.6627662", "0.6627662", "0.66192114", "0.6619003", "0.66153085", "0.6614968", "0.6609744", "0.66086483", "0.66060555", "0.6596137", "0.65950733", "0.6594648", "0.65902114", "0.6589043", "0.6587102", "0.65799844", "0.65799403", "0.65799177", "0.657708", "0.65760696", "0.65739626", "0.656931", "0.6567826", "0.65663105", "0.65660435", "0.65615267", "0.6561447", "0.6561447", "0.65576506", "0.655686", "0.6556527", "0.6555543", "0.6555445", "0.65552044", "0.65543956", "0.65543705", "0.6548264", "0.65475875", "0.65447706" ]
0.0
-1
Get the submitted roles
private function syncPermissions(Request $request, $user) { $roles = $request->get('roles', []); $permissions = $request->get('permissions', []); // Get the roles $roles = Role::find($roles); // check for current role changes if (!$user->hasAllRoles($roles)) { // reset all direct permissions for user $user->permissions()->sync([]); } else { // handle permissions $user->syncPermissions($permissions); } $user->syncRoles($roles); return $user; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getRoles() {\n return $this->roleStorage->loadMultiple();\n }", "public function rolesForUser();", "public function getRoles()\r\n {\r\n return $this->roles;\r\n }", "public function getRoles() \n {\n return $this->roles;\n }", "public function getRoleIds(): array\n {\n return $this->input('roles');\n }", "public function getRoles()\n {\n return $this->roles;\n }", "public function getRoles()\n {\n return $this->roles;\n }", "public function getRoles()\n {\n return $this->roles;\n }", "public function getRoles()\n {\n return $this->roles;\n }", "public function getRoles()\n {\n return $this->roles;\n }", "public function getRoles()\n {\n return $this->roles;\n }", "public function getRoles()\n {\n return array('1');\n }", "public function getRoles(): array;", "protected abstract function getAllowedRoles();", "public function getRoles()\n {\n #obsolete, I don't wnat user roles, I want the permission those roles are linked to\n # so I just need a getPermissions once, store those constants in a small session array\n #$roles = $this->roles;\n\n #d($roles);\n\n #foreach ($roles as $role) {\n # echo $role->name;\n #}\n }", "public function getRoles()\n {\n return [$this->role];\n }", "public function getRoles()\n {\n return [$this->role];\n }", "public function get_roles() {\n return DB::query(Database::SELECT, 'SELECT * FROM roles WHERE id > 1')\n ->as_object()\n ->execute($this->db);\n }", "public function getRoles(){\n\n return $this->_arrRoles;\n \n }", "public function getRoles()\n {\n $roles = $this->roles;\n if ($roles != NULL) {\n\n return explode(\" \", $roles);\n } else {\n return $this->roles;\n }\n // return ['ROLE_USER'];\n }", "public function getRoles(): array\n {\n return $this->roles;\n }", "public function getRoles(): array\n {\n return $this->roles;\n }", "public function getRoles(): array\n\t{\n\t\treturn $this->roles;\n\t}", "function get_role_list() {\n\t\treturn $this->db->get('system_security.security_role');\n\t\t\n\t}", "public function getRoles()\n {\n }", "public function getRoles()\n {\n }", "public function getRoles()\n {\n }", "public function getRoles()\n {\n return array($this->role);\n }", "abstract protected function getRoles();", "public function roles();", "public function roles();", "public function roles();", "public function roles();", "public function & GetRoles ();", "public function getRoles(): array\n {\n return [$this->role];\n }", "public function getRoles(){\n\n $roles = $this->visiteur_roles->map(function($role){\n return $role->getTitle();\n })->ToArray();\n\n $roles[]= 'ROLE_USER';\n \n return $roles;\n }", "public function getAvailableRoles() ;", "public function getRoles()\n\t{\n\t\treturn $this->roles->toArray();\n\t}", "public function getRoles()\n {\n if (!is_array($this->role)) {\n return array($this->role);\n }\n return $this->role;\n }", "function get_editable_roles()\n {\n }", "public function get_roles()\n {\n $users_roles = user_role_active_record::search()->where('uid', $this->uid)->exec();\n $roles = array();\n foreach ($users_roles as $users_role) {\n $roles[] = role_active_record::search()->where('rid', $users_role->rid)->execOne();\n }\n return $roles;\n }", "function getRoles () {\n return array(\"user.friendRequest.edit\",\"user.friendRequest.view\");\n }", "public function get_roles()\n {\n $query=$this->db->get('tbl_roles');\n return $query->result();\n }", "public function getRoles()\n {\n return $this->roles->toArray();\n }", "public function getRoles()\n {\n return $this->roles->toArray();\n }", "public function getRoles()\n {\n $roles = Role::lists('name','id');\n\n return $roles;\n }", "public function roles()\n {\n\n $roles = get_editable_roles();\n $output = array();\n foreach ($roles as $key => $val) {\n $output[$key] = $val['name'];\n }\n return $output;\n }", "public function getRoles()\n {\n\n $rolesReturn = [];\n $roles = $this->roles()->with(['role'])->get();\n\n $rolesReturn = $roles->pluck('role.name');\n\n // Add Standard role to the user roles\n\n if($rolesReturn->contains(config('user.standardRole')) === false)\n {\n $rolesReturn->push(config('user.standardRole'));\n }\n\n return $rolesReturn;\n\n }", "private function get_all_roles(){\n return Role::all();\n }", "public function getRoles()\n {\n return $this->userRoles->toArray();\n /*$roles = array();\n foreach ($this->userRoles as $role) {\n $roles[] = $role->getRole();\n }\n\n return $roles;*/\n }", "public function getAllRoles(): array;", "public function getAllRoles()\n {\n return $this->roles;\n }", "function bigbluebuttonbn_get_moodle_roles($rolename='all') {\n if( $rolename != 'all') {\n $roles = array(bigbluebuttonbn_get_role($rolename));\n } else {\n $roles = (array) role_get_names();\n }\n return $roles;\n}", "public function getRoles(): array\n {\n return ['admin'];\n }", "function getRoles()\n {\n $roles = array();\n\n foreach ($this->grupos as $grupo) {\n $roles[] = $grupo->getRole();\n }\n return $roles;\n }", "public function get_all_roles()\n {\n return App\\Role::all();\n }", "public function getRolesList()\n\t{\n\t\t$roles = Role::select('name as text', 'id')->get();\n\t\treturn $roles;\n\t}", "public function getRoles()\n {\n return array(\"ROLE_\".$this->getUserGroup());\n }", "static public function get_all_roles() {\n\t\tif ( ! function_exists( 'get_editable_roles' ) ) {\n\t\t\trequire_once( ABSPATH . 'wp-admin/includes/user.php' );\n\t\t}\n\n\t\t$editable_roles = get_editable_roles();\n\t\t$roles = array();\n\t\t$caps = apply_filters( 'fl_builder_user_access_capabilities', array( 'edit_posts' ) );\n\n\t\tforeach ( $editable_roles as $role => $data ) {\n\t\t\tforeach ( $caps as $cap ) {\n\t\t\t\tif ( isset( $data['capabilities'][ $cap ] ) && 1 == $data['capabilities'][ $cap ] ) {\n\t\t\t\t\t$roles[ $role ] = $data['name'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $roles;\n\t}", "public function get_all_roles(){\n\t\treturn ORM::factory('role')->find_all()->as_array();\n\t}", "public static function getRoles()\n {\n return self::$roles;\n }", "function getRoles () {\n return array(\"user.image.edit\",\"user.image.view\");\n }", "public function getAll()\n {\n try{\n return $this->roles;\n }\n catch (\\Exception $exception)\n {\n return null;\n }\n }", "public function getRoles()\n {\n\n $roles = $this->roles;\n // guarantee every user at least has ROLE_USER\n $roles[] = 'ROLE_USER';\n return array_unique($roles);\n\n //throw new \\Exception('Method getRoles() is not implemented.');\n }", "public function getRoles(): array {\n\t\t$sql = 'SELECT id, name FROM roles';\n\t\treturn $this->queryRows($sql);\n\t}", "function get_all_roles() {\n return get_records('role', '', '', 'sortorder ASC');\n}", "public function getRoles(){\n $sql = \"SELECT * FROM rol\";\n\n foreach ($this->bd->query($sql) as $res) {\n $this->rol[] = $res;\n }\n return $this->rol;\n }", "public function getRoles()\n\t{\n\t\t$roles = array();\n\n\t\tforeach($this->getSteps() as $step)\n\t\t{\n\t\t\t$roles = array_merge($roles, $step->getRoles());\n\t\t}\n\n\t\treturn array_unique($roles);\n\t}", "public function getRoles()\n {\n $id = Auth::id();\n $roles = \\App\\Models\\User::find($id)->roles;\n\n return $roles;\n }", "private function getRoles()\n\t{\n\t\tif (!isset($this->roles)) {\n\t\t\t$this->roles = $this->roles()\n\t\t\t\t->with('permissions')\n\t\t\t\t->withCount('users')\n\t\t\t\t->get();\n\t\t}\n\t\treturn $this->roles;\n\t}", "public function getRoles(): array\n {\n return array_values($this->roles);\n }", "function getAllRoles(){\r\n $data = new \\Cars\\Data\\Common($this->app);\r\n return $data->getAllRoles();\r\n }", "public function getRoles(ServerRequestInterface $request): array;", "public function retrieveAllRoles()\n {\n return $this->invoker->getAllRoles($this->factory->createNewRolesObject());\n\n }", "public function list_roles(){\n $roles=$this->roles->pluck('name')->toArray();\n //el primer parametro es el separador, y el segundo para es el arreglo a seprar\n // es lo opuesto al explode que retorna una arreglo\n $string=implode(', ',$roles);\n return $string;\n\n }", "protected function get_roles_data()\n {\n }", "function yith_ywraq_get_roles(){\n global $wp_roles;\n return array_merge( array( 'all' => __( 'All', 'yith-woocommerce-request-a-quote' ) ), $wp_roles->get_names() );\n }", "public function getRoles(): iterable\n {\n return [];\n }", "public function getProductionRoles();", "public function getRoles()\n {\n return explode(\" \", $this->role);\n }", "public function getRoles(): ?array\n {\n return $this->roles;\n }", "public function getRoles(): array\n {\n $roles = $this->userRoles->map(function($role){\n return $role->getTitle();\n })->toArray();\n\n $roles[] = 'ROLE_USER';\n // guarantee every user at least has ROLE_USER\n //$roles[] = 'ROLE_USER';\n\n return $roles;\n }", "public function getRoles() {\n return $this->getRelation(\"roles\");\n }", "public function getRoles()\n {\n $roles = explode(\",\", $this->roles);\n array_push($roles, 'ROLE_USER');\n return array_unique(array_filter($roles));\n }", "public static function getRoleList()\n {\n return Rights::getAuthItemSelectOptions(CAuthItem::TYPE_ROLE, array(\n 'authenticated', 'guest'\n ));\n }", "public function getRoles()\n {\n $roles = [];\n foreach ($this->roles as $role) {\n $roles[$role->role] = true;\n }\n return $roles;\n }", "public function getRoles()\n\t{\n\t\t$roles = array_map(function($value)\n\t\t{\n\t\t\treturn Html::a($value, $value->links['self']);\n\t\t}, $this->entity->roles);\n\n\t\treturn join('<br>', $roles);\n\t}", "public function roles()\n {\n return [\n 'traveller', 'sender'\n ];\n }", "public function getRoles()\n {\n $roles = Yii::$app->authManager->getRolesByUser($this->getId());\n return ArrayHelper::getColumn($roles, 'name', false);\n }", "public function getRoles(): array\n {\n return ['ROLE_ADMIN'];\n }", "public function getRoles(): array\n {\n $roles = $this->roles;\n if (empty($roles)) {\n $roles[] = 'ROLE_USER';\n }\n\n return array_unique($roles);\n }", "public static function getRoles ()\n {\n // Pulls column string from DB\n $enumStr = DB::select(DB::raw('SHOW COLUMNS FROM `user` WHERE FIELD = \"role\"'))[0]->Type;\n\n // Parse string\n preg_match_all(\"/'([^']+)'/\", $enumStr, $matches);\n\n // Return matches\n return isset($matches[1]) ? $matches[1] : [];\n }", "public function getRoles()\n {\n return $this->getRelation('roles');\n }", "function get_roles(){\n\t\t$this->db->select('*');\n\t\t$q = $this->db->get('user_role');\n\n\t\treturn $q->result_array();\n\t}", "public function getRoles()\n {\n $roles = $this->roles;\n\n return array_unique($roles);\n }", "public function getRoles()\n {\n $roles = $this->roles;\n // guarantees that a user always has at least one role for security\n if (empty($roles)) {\n $roles[] = 'ROLE_USER';\n }\n return array_unique($roles);\n }", "public function roles()\n {\n\n return Role::all();\n }", "public function getRoles()\n {\n return $this->getMemberRoles()->toArray();\n }", "public function getRoles() {\n return array('ROLE_USER');\n }", "public function getUserRoles()\n {\n return $this->userRoles;\n }", "public function getVacancyRoleSelect()\n {\n $roles = new \\Object\\VacancyRole\\Listing();\n $roles->setOrderKey(\"name\");\n $list = $roles->load();\n\n $roles = [];\n\n foreach ($list as $vacancyRole) {\n $roles[$vacancyRole->getId()] = $vacancyRole->getName();\n }\n\n return $roles;\n }" ]
[ "0.7405209", "0.7390415", "0.73354626", "0.7303867", "0.7272165", "0.72401536", "0.72401536", "0.72401536", "0.72401536", "0.72401536", "0.72401536", "0.7233971", "0.72217214", "0.7216235", "0.71886885", "0.7188247", "0.7188247", "0.71577233", "0.71232396", "0.71167094", "0.7097419", "0.7097419", "0.7088705", "0.7079183", "0.70686144", "0.70686144", "0.70686144", "0.70680094", "0.7057613", "0.7045713", "0.7045713", "0.7045713", "0.7045713", "0.70432675", "0.7033652", "0.70313406", "0.70254135", "0.70202523", "0.70142907", "0.69968086", "0.69841385", "0.69821423", "0.69584095", "0.69286716", "0.69286716", "0.69228566", "0.69184136", "0.6915568", "0.69116426", "0.68989617", "0.68892443", "0.68532157", "0.68448734", "0.68326926", "0.6829944", "0.68169665", "0.6809305", "0.67940575", "0.6793433", "0.6789836", "0.6786543", "0.67803395", "0.676906", "0.6752557", "0.67482895", "0.67238855", "0.6723159", "0.67176145", "0.6716303", "0.67125", "0.66986746", "0.66936487", "0.66886914", "0.6681667", "0.66808146", "0.66751623", "0.66738784", "0.6671908", "0.6671846", "0.66701823", "0.6659144", "0.665041", "0.6648931", "0.66485536", "0.6645103", "0.66419554", "0.6638822", "0.6638055", "0.6632606", "0.6602097", "0.659913", "0.6594813", "0.65891695", "0.65670705", "0.6563448", "0.656288", "0.65570307", "0.6554668", "0.65401673", "0.6536358", "0.65334463" ]
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { $this->validate($request, [ 'name' => 'bail|required|min:2', 'businessname' => ['required', 'string', 'max:255'], 'category' => ['required', 'not_in:0', 'max:255'], 'address' => ['required', 'max:255'], 'email' => ['required', 'email', 'max:255'], 'mobile' => ['required', 'digits:10', 'numeric'], 'roles' => 'not_in:0' ]); // Get the user $user = Admin::findOrFail($id); // Update user $user->fill($request->except('roles', 'permissions', 'password')); // check for password change if ($request->get('password') != null) { $user->password = bcrypt($request->get('password')); } $user->name = $request->name == null ?: $request->name; $user->category_id = $request->category == 0 ?: $request->category; $user->state = $request->state == '0' ?$request->hiddenstate: $request->state; $user->city = $request->city == '0' ?$request->hiddencity: $request->city; $user->businessname = $request->businessname == null ?: $request->businessname; $user->address = $request->address == null ?: $request->address; $user->email = $request->email == null ?: $request->email; $user->mobile = $request->mobile == null ?: $request->mobile; // Handle the user roles $this->syncPermissions($request, $user); $user->save(); toastr()->success('User has been Updated.'); return redirect()->route('user.home'); }
{ "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 ]\n ]);\n }", "public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required|string',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n ]);\n\n $resource->update($request->all());\n\n if ( $request->hasFile('file') ) {\n $resource = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resource,'public');\n $resource->file = $resource;\n }\n\n if ( $resource->save() ) {\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated');\n } else {\n return redirect()->route('admin.resources.index')->with('error', 'Something went wrong');\n }\n }", "public function update(Request $request, Resource $resource)\n {\n //\n }", "public function updateStream($resource);", "public function update(Request $request, Storage $storage)\n {\n $storage->product_id = $request->product_id;\n $storage->amount = $request->amount;\n\n $storage->save();\n\n return redirect()->route('storages.index');\n }", "protected function updateImageResource($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n $this->deleteResource($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update(Storage $storage, UpdateStorageRequest $request)\n {\n $this->storage->update($storage, $request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('product::storages.title.storages')]));\n }", "public function update(StoreStorage $request, Storage $storage)\n {\n $storage->fill($request->all())->save();\n $request->session()->flash('alert-success', 'Запись успешно обновлена!');\n return redirect()->route('storage.index');\n }", "public function update_asset($id, Request $request){\n \t\tif(!Auth::user()){\n\t\t\treturn redirect('/');\n\t\t}\n \t\t$asset = Storage::find($id);\n \t\t$asset->name = $request->name;\n \t\t$asset->quantity = $request->quantity;\n \t\t$asset->category_id = $request->category;\n \t\tif($request->file('image') != null){\n\t\t\t$image = $request->file('image');\n\t\t\t$image_name = time(). \".\" . $image->getClientOriginalExtension();\n\t\t\t$destination = \"images/\";\n\t\t\t$image->move($destination, $image_name);\n\t\t\t$asset->image_url = $destination.$image_name;\n\t\t} \n\t\t$asset->save();\n\t\tsession()->flash('success_message', 'Item Updated successfully');\n\t\treturn redirect(\"/storage\");\n \t}", "public function update(Request $request, Flight $exercise, FlightResource $resource)\n {\n $request->validate([\n 'display_name' => 'required|string|max:100',\n 'file' => 'nullable|file|max:10240|mimes:pdf',\n 'uri' => 'nullable|url|max:255',\n ]);\n\n if ($resource->type === 'file' && $request->file('file')) {\n Storage::drive('public')->delete($resource->resource);\n $resource->resource = $request->file('file')->store('smartcars/exercises/resources', ['disk' => 'public']);\n } elseif ($resource->type === 'uri' && $request->input('uri')) {\n $resource->resource = $request->input('uri');\n }\n\n $resource->save();\n\n return redirect()->route('adm.smartcars.exercises.resources.index', $exercise)\n ->with('success', 'Resource edited successfully.');\n }", "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'title' => 'required|string',\n 'content' => 'required|string',\n 'mentoring_area_id' => 'required|integer',\n 'featured_image_uri' => 'string',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n \n $resource = Resource::find($id);\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->featured_image_uri = $request->get('featured_image_uri');\n $resource->updated_at = \\Carbon\\Carbon::now();\n $resource->mentoring_area_id = $request->get('mentoring_area_id');\n $resource->save();\n $data['resource'] = $resource;\n return APIHandler::response(1, \"Resource has been updated\");\n }", "protected function updateVideoResource($fileName, $videoId, $storage, $premium=1)\n {\n //Get video name and storage location for video\n $video = Video::where('id', '=', $videoId)->first();\n\n //Check the storage medium\n if($storage == 'vimeo' || $storage == 'youtube')\n {\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n else\n {\n if($video['storage'] == 'local' || $video['storage'] == 's3')\n {\n //Delete old video\n $this->deleteResource($video->name, $video->storage);\n }\n \n //Store the new video\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n }", "public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }", "public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }", "public function update($path);", "public function update($id, $resource)\n {\n SCA::$logger->log(\"Entering update()\");\n //check whether it is an sdo or an xml string.\n if ($resource instanceof SDO_DataObjectImpl) {\n //if the thing received is an sdo convert it to xml\n if ($this->xml_das !== null) {\n $xml = SCA_Helper::sdoToXml($this->xml_das, $resource);\n } else {\n throw new SCA_RuntimeException(\n 'Trying to update a resource with SDO but ' .\n 'no types specified for reference'\n );\n }\n } else {\n $xml = $resource;\n }\n\n $slash_if_needed = ('/' === $this->target_url[strlen($this->target_url)-1])?'':'/';\n\n $handle = curl_init($this->target_url.$slash_if_needed.\"$id\");\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, \"PUT\");\n curl_setopt($handle, CURLOPT_POSTFIELDS, $xml);\n\n //replace with Content-Type: atom whatever\n $headers = array(\"User-Agent: SCA\",\n \"Content-Type: text/xml;\",\n \"Accept: text/plain\");\n curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($handle);\n\n $response_http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\n curl_close($handle);\n\n $response_exception = $this->buildResponseException($response_http_code, '200');\n\n if ($response_exception != null) {\n throw $response_exception;\n } else {\n //update does not return anything in the body\n return true;\n }\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'link' => 'required',\n 'description' => 'required'\n ]);\n\n $resource = Resource::find($id);\n $resource->name = $request->name;\n $resource->type_id = $request->type_id;\n $resource->has_cost = ($request->has('has_cost')) ? 1 : 0;\n $resource->language_id = $request->language_id;\n $resource->link = $request->link;\n $resource->description = $request->description;\n $resource->tags = '';\n\n $resource->save();\n //return back()->with('success', 'Recurso actualizado satisfactoriamente');\n return redirect('/resource')->with('success', 'Recurso actualizado satisfactoriamente');\n }", "public function update(Request $request, $id)\n {\n $oldProduct = Product::findOrFail($id);\n $data = $request->all();\n if(isset($data['img'])){\n // $file = $request->file('photo');\n // return $file;\n $imgName = time().'.'.$request->img->extension();\n $data['img'] = $imgName;\n // Storage::putFile('spares', $file);\n $path = $request->img->storeAs('public/uploads', $imgName); //in Storage\n\n //delete old file\n if($oldProduct->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$oldProduct->img);\n // return 'deleted';\n }\n \n }else{\n $data['img'] = $oldProduct->img;\n }\n $oldProduct->update($data);\n return redirect()->route('product.index'); \n\n }", "public function update($request, $id) {\n\t\t\t$image = $request['photo'];\n\t\t\tif($image !== null) {\n\t\t\t\t$name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n\t\t\t\t\\Image::make($request['photo'])->save(public_path('storage/products/').$name);\n\t\t\t\t$request['photo'] = $name;\n\t\t\t} else {\n\t\t\t\t$currenPhoto = Product::all()->where('id', $id)->first();\n\t\t\t\t$request['photo'] = $currenPhoto->photo;\n\t\t\t}\n return $this->product->update($id, $request);\n\t}", "public function updateStream($path, $resource, Config $config)\n {\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n\n // STEP 1: Update or insert this resource as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\",\n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords();\n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\",\n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n\n // STEP 2: Update or insert the resource's link to holding repository\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} })-[r:HIRELATION]->()\n return r;\",\n [\n 'id' => $resource->getID(),\n ]\n );\n $records = $result->getRecords();\n if (!empty($records)) {\n // delete the one there so that we can add the correct one (just in case)\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}})-[r:HIRELATION]->() delete r;\",\n [\n 'id' => $resource->getID()\n ]\n );\n\n }\n\n // If resource has a repository, then add a link\n if ($resource->getRepository() != null && $resource->getRepository()->getID() != null) {\n $this->connector->run(\"MATCH (a:Identity {id: {id1} }) MATCH (b:Resource {id: {id2} }) CREATE (b)-[r:HIRELATION]->(a);\",\n [\n 'id1' => (string) $resource->getRepository()->getID(),\n 'id2' => $resource->getID()\n ]);\n }\n }\n }", "public function update($data) {}", "public function update($data) {}", "public function putStream($resource);", "public function update(Request $request, NebulaResource $resource, $item): RedirectResponse\n {\n $this->authorize('update', $item);\n\n $validated = $request->validate($resource->rules(\n $resource->editFields()\n ));\n\n $resource->updateQuery($item, $validated);\n\n $this->toast(__(':Resource updated', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function update($entity);", "public function update($entity);", "public function setResource($resource);", "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "public function isUpdateResource();", "public function update(Request $request, $id)\n {\n $device = Device::findOrFail($id);\n $device->fill($request->all());\n if ($request->hasFile('icon')) {\n if ($device->hasMedia('icon')) {\n $device->deleteMedia($device->getFirstMedia('icon'));\n }\n $device->addMediaFromRequest('icon')->toMediaCollection('icon');\n }\n $device->save();\n return new DeviceResource($device);\n }", "public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n \n $product->update($request->all());\n \n $file = $request->file('url_image')->move('upload', $request->file('url_image')->getClientOriginalName());\n\n Product::where('id',$id)->update(['url_image'=>$file]);\n \n \\Session::flash('flash_message', 'Edit product successfully.'); \n \n //cũ : return redirect('articles');\n return redirect()->route('products.index');\n }", "public function store($data, Resource $resource);", "public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n\n\n $product->fill($request->all())->save();\n\n //Verificamos que tenemos una imagen\n if($request->file('photo_1')){\n\n\n //En caso de tenerla la guardamos en la clase Storage en la carpeta public en la carpeta image.\n $path = Storage::disk('public')->put('photo_1',$request->file('photo_1'));\n\n //Actualizamos el Post que acabamos de crear\n $product->fill(['photo_1' => asset($path)])->save();\n\n }\n\n\n return redirect()->route('products.index')->with('info', 'Producto actualizado exitosamente!');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if (\\Input::hasFile('image')) {\n $this->imgsave($request, $product);\n }\n\n\n if (!empty($request->input('tags'))) {\n $product->tags()->sync($request->input('tags'));\n } else {\n $product->tags()->detach();\n }\n\n $product->update($request->all());\n\n return redirect()->to('dashboard/product')->with('message', 'update success');\n }", "public function put($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'PUT');\n }", "public function update($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'updateValidations')) {\n $this->request->validate($this->updateValidations());\n }\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Update the specified resource */\n $resource->update(Input::all());\n\n /* Redirect back */\n return redirect()->back()\n ->with(\n 'info',\n Lang::has($this->name . '.resource-updated') ?\n $this->name . '.resource-updated' :\n 'messages.alert.resource-updated'\n );\n }", "public function putResponse($request)\n {\n $idSearched = $this->searcher->searchResourceIndex(\n $request, \n $this->db[$request['resource']]\n );\n if ($idSearched) {\n $resource = $this->db[$request['resource']][$idSearched];\n $bodyInput = json_decode($this->standardInput, true);\n $resource = BodyRequest::canApplyBody($bodyInput);\n $resource['id'] = (int)$request['param'];\n foreach($resource as $key => $value) {\n $this->db[$request['resource']][$idSearched][$key] = $value;\n }\n file_put_contents(DB_PATH, json_encode($this->db));\n }\n }", "public function update(Request $request, $id)\n\n {\n ResourceManagement::findOrFail($id);\n $constraints = [\n 'title' => 'required|max:100',\n 'url'=> 'required|max:191',\n 'content' => 'required'\n ];\n\n $input = [\n 'title' => $request['title'],\n 'url' => $request['url'],\n 'content' => $request['content'],\n 'type' => $request['type'],\n 'level' => $request['level'],\n 'user_id' => $request['user']\n ];\n// $this->validate($input, $constraints);\n ResourceManagement::where('id', $id)\n ->update($input);\n\n return redirect()->intended('/resource-management');\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required|string',\n 'price' => 'required|numeric',\n 'reference'=>'required'\n ]);\n \n $product = Product::find($id);\n $product->update($request->all());\n \n $im = $request->file('picture');\n \n if (!empty($im)) {\n \n $link = $request->file('picture')->store('images');\n \n \n $product->update([\n 'url_image' => $link,\n ]);\n } \n //dump($request->all());\n return redirect()->route('product.index')->with('message', 'Article modifié avec succès');\n }", "public function update(Storedataset $request, dataset $dataset){\n $dataset->title = $request->input('title');\n $dataset->caption = $request->input('caption');\n $dataset->file_url = $request->input('file_url');\n $dataset->type = $request->input('type');\n $dataset->status = $request->input('status');\n $dataset->publication_id = $request->input('publication_id');\n\n $dataset->save();\n\n return redirect()->route('datasets.show', ['dataset' => $dataset]);\n }", "public function update(StoreOrUpdateAsset $request, Asset $asset)\n {\n if (Storage::exists($asset->path) && !Storage::delete($asset->path)) {\n abort(500);\n }\n\n $file = $request->file('file');\n $path = $file->store('assets');\n\n if (!$path) {\n abort(500);\n }\n\n // We wonder if we should delete the old file or not...\n\n $asset->name = $file->getClientOriginalName();\n $asset->size = $file->getSize();\n $asset->type = $file->getMimeType();\n $asset->path = $path;\n\n if ($asset->save()) {\n flash('The asset has been saved.')->success();\n } else {\n abort(500);\n }\n\n return redirect('/admin/assets');\n }", "public function update(FoodRecipeRequest $request, $id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n if ($request->input('name')!= null)\n $foodRecipe->name = $request->input('name');\n if ($request->input('detail')!= null)\n $foodRecipe->detail = $request->input('detail');\n if($request->file('photo') != null) {\n $old_file = $foodRecipe->photo;\n if($old_file != null){\n $path = public_path().'/storage/'.$old_file;\n File::delete($path);\n }\n $file = $request->file('photo');\n $name = '/foodRecipe/' . Carbon::now()->format(\"dnY-Hisu\") . \".\" . $file->extension();\n $file->storePubliclyAs('public', $name);\n $foodRecipe->photo = $name;\n }\n $foodRecipe->save();\n return new FoodRecipeResource($foodRecipe);\n }", "public function update(StorageTypeRequest $request, $id)\n {\n try {\n $this->service->updateStorageType($request, $id);\n return $this->NoContent();\n } catch (EntityNotFoundException $e) {\n \\Log::error($e->getMessage());\n return $this->NotFound($e->getMessage());\n } catch(\\QueryException $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n } catch(Exception $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n }\n }", "public function update(Request $request, $id)\n {\n //validation\n $this->validate(request(),[\n 'image' => 'image'\n ]);\n\n $slider = HomeSliders::find($id);\n \n $slider->link = request('link');\n\n //get old image to delete if updated\n $oldImage = request('oldImage');\n //get the new image\n $NewImage=$request->file('image');\n\n if($NewImage)\n {\n $filenameToStore= helpers::updatePhoto('image','homeSliders',$request);\n $slider->image=$filenameToStore;\n\n Storage::delete('public/Images/homeSliders/'.$oldImage);\n }\n\n $slider->save();\n\n Alert::success(config('app.name'), trans('messages.Updated Successfully') );\n return redirect()->route('admin.homeSlider',$slider->type);\n }", "public function update(Qstore $request, $id)\n {\n //\n }", "public function update(IEntity $entity);", "public function update($request, $id);", "protected function performUpdate(): bool\n {\n // Abort if resource does not support update operations\n if (!$this->isUpdatable()) {\n throw new UnsupportedOperation(sprintf('API does not support update operation for %s resources', $this->resourceNameSingular()));\n }\n\n $id = $this->id();\n $prepared = $this->prepareBeforeUpdate($this->toArray());\n\n $payload = [\n $this->resourceNameSingular() => $prepared\n ];\n\n $response = $this\n ->request()\n ->put($this->endpoint($id), $payload);\n\n // Extract and (re)populate resource (if possible)\n // Note: Unlike the \"create\" method, Redmine does NOT\n // appear to send back a full resource when it has been\n // successfully updated.\n $this->fill(\n $this->decodeSingle($response)\n );\n\n return true;\n }", "function put($resource, $data = null) {\r\n\t\t\r\n\t\tif(isset($data)) {\r\n\t\t\t$this->request_body = $data;\r\n\t\t}\r\n\r\n\t\t// make the call chief\r\n\t\t$this->exec ( \"PUT\", '/' . $resource );\r\n\r\n\t\t// check the request status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for resource \\'%s\\' Failed.\r\n\t\t\t\t\tStatus: %d,\r\n\t\t\t\t\tRequest: %s\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$resource,\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->request_body_raw,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthrow new Exception($this->response_body);\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n\t}", "public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $request = $this->createRequest('PUT', '/entities', ['json' => $json]);\n $response = $this->send($request);\n return $response;\n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "protected function handleUpdate()\n {\n $resource = $this->argument('resource');\n $action = $this->option('action');\n $startPage = (int)$this->option('startPage');\n $perPage = (int)$this->option('perPage');\n\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n $this->info('There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n exit('Nothing was updated.');\n }\n\n $options = [\n 'startPage' => $startPage,\n 'perPage' => $perPage,\n 'lastRun' => $harvest->last_run_at\n ];\n\n // If a lastRun was given use that\n // OR if this has never been run before use 2001-01-01\n if (!empty($this->option('lastRun'))) {\n $options['lastRun'] = new Carbon($this->option('lastRun'));\n } elseif (is_null($options['lastRun'])) {\n $options['lastRun'] = new Carbon('2001-01-01');\n }\n\n $job = new UpdateResourceJob(\n $harvest,\n $options\n );\n\n $message = 'Updating ' . $action . ' ' . $resource . ' ' . $perPage . ' at a time';\n if (isset($lastRun)) {\n $message .= ' with entries updated since ' . $lastRun->format('r');\n }\n $this->info($message);\n $this->dispatch($job);\n }", "public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }", "abstract public function put($data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function testUpdateSupplierUsingPUT()\n {\n }", "public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }", "public function update(Request $request, $id)\n {\n $skill = Skill::findOrFail($id);\n\n $skill->skill = $request->skill;\n\n if ($request->hasFile('image')) {\n \\Cloudder::upload($request->file('image'));\n $c=\\Cloudder::getResult();\n // $image = $request->file('image');\n // $filename = time() . '.' . $image->getClientOriginalExtension();\n // $location = public_path('images/' . $filename);\n // Image::make($image)->save($location);\n\n $skill->image = $c['url'];\n }\n\n $skill->save();\n\n Session::flash('success', 'Successsfully updated your skill!');\n return redirect()->route('skills.index');\n }", "public function updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\n }", "public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }", "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "public abstract function update($object);", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('files');\n \\Storage::delete($product->image);\n } \n $product->name = $request->get('name');\n $product->price = $request->get('price');\n $product->description = $request->get('description');\n $product->additional_info = $request->get('additional_info');\n $product->category_id = $request->get('category');\n $product->subcategory_id = $request->get('subcategory');\n $product->image = $image;\n $product->save();\n return redirect()->back();\n }", "public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }", "public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')){\n $name = time().$file->getClientOriginalName();\n $file->move('product_image',$name);\n $data['product_photo']=$name;\n// $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }", "public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }", "public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }", "public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }", "public function update(ProductStoreRequest $request,$id)\n {\n $data = $request->validated();\n $product = Product::where('id',$id);\n $product->update($data);\n return response(\"Producto actualizado con éxito\",200);\n }", "public function update($entity)\n {\n \n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path,stream_get_contents($resource),$config);\n }", "public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }", "public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }", "public function update($id, $input);", "public function update(ProductRequest $request,int $id): ProductResource\n {\n $attributes = $request->only('supplier_id', 'name', 'warehouses');\n\n return new ProductResource($this->productRepository->update($id, $attributes)); }", "public function update(Request $request, $id)\n {\n $slider=new Slider;\n $slider=$slider::find($id);\n \n \n if($file =$request->file('slider')){\n if(Storage::delete('public/slider/'.$slider->slider)){\n\n //Get file original name//\n \n$original_name=$file->getClientOriginalName();\n\n //Get just the file name\n$filename=pathinfo($original_name,PATHINFO_FILENAME);\n\n//Create new file name\n$name=$filename.'_'.time().'.'.$file->getClientOriginalExtension();\n\n $destination='public/slider';\n $path=$request->slider->storeAs($destination,$name);\n $slider->slider=$name;\n $slider->save();\n return redirect('Admin/slider');\n\n }\n }\n}", "public function update(Request $request, $id)\n {/* dd($request->all()); */\n $acheivePic = $this->acheiveRepo->find($id);\n $acheive = $request->except('_method', '_token', 'photo', 'ar', 'en');\n $acheiveTrans = $request->only('ar', 'en');\n\n if ($request->hasFile('icon')) {\n // Delete old image first.\n $oldPic = public_path() . '/images/acheives/' . $acheivePic->icon;\n File::delete($oldPic);\n\n // Save the new one.\n $image = $request->file('icon');\n $imageName = $this->upload($image, 'acheives');\n $acheive['icon'] = $imageName;\n }\n\n $this->acheiveRepo->update($id, $acheive, $acheiveTrans);\n\n return redirect('admin-panel/widgets/acheive')->with('updated', 'updated');\n }", "public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }", "public function update(Request $request, $id)\n {\n //if upload new image, delete old image\n $myfile=$request->old_photo;\n if($request->hasfile('photo'))\n {\n $imageName=time().'.'.$request->photo->extension();\n $name=$request->old_photo;\n\n if(file_exists(public_path($name))){\n unlink(public_path($name));\n $request->photo->move(public_path('backendtemplate/truefalseimg'),$imageName);\n $myfile='backendtemplate/truefalseimg/'.$imageName;\n }\n }\n //Update Data\n $truefalsequestion=TrueFalseQuestion::find($id);\n $truefalsequestion->name=$request->name;\n $truefalsequestion->photo=$myfile;\n $truefalsequestion->answer = $request->answer;\n $truefalsequestion->question_id = $request->question;\n $truefalsequestion->save();\n\n //Redirect\n return redirect()->route('truefalsequestions.index'); \n }", "public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }", "public function update($id);", "public function update($id);", "public function put($path, $data = null);", "public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }", "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "public function update(Entity $entity);", "public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }", "public function update(Request $request, $id)\n {\n //validate incoming request\n $request->validate([\n 'name' => 'string|max:100|nullable',\n 'picture' => 'max:2000|mimes:jpeg,jpg,png,svg|nullable', //max size 2mb,\n 'total' => 'integer|min:0|nullable', //value must be > 0\n 'selling_price' => 'numeric|min:0|nullable',\n 'cost_price' => 'numeric|min:0|nullable',\n 'category_id' => 'integer|nullable'\n ]);\n\n try {\n $product = Auth::user()->store->product()->findorFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n \"message\" => \"Forbidden\"\n ], 403);\n }\n\n //if category id isnt null\n if ($category_id = $request->category_id) {\n if (!$this->isCategoryIdValid($category_id))\n return response()->json([\n \"message\" => \"Category Id is not valid\"\n ], 422);\n else\n $product->category_id = $request->category_id;\n }\n\n //if uploaded file exist\n if ($picture = $request->file(\"picture\")) {\n //if product already has logo\n if ($product->picture)\n Storage::delete(Product::$PICTURE_PATH . \"/\" . $product->picture);\n\n $picture_path = $picture->store(Product::$PICTURE_PATH);\n //remove folder name from path\n $product->picture = str_replace(Product::$PICTURE_PATH . \"/\", '', $picture_path);\n }\n\n $this->renewProduct($product, $request);\n $product->save();\n return response()->json(new ProductResource($product), 200);\n }", "public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}", "public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required | min:3 | string',\n 'type' => 'required',\n 'producer' => 'required',\n 'image' => 'image | mimes:png,jpg,jpeg',\n 'price_input' => 'required | numeric | min:0 | max:300000000',\n 'promotion_price' => 'required | numeric | max:300000000',\n 'description' => 'required | string',\n\n ]);\n $product = Product::withTrashed()->findOrfail($id);\n $product->name = $request->name;\n $product->id_type = $request->type;\n $product->id_producer = $request->producer;\n\n $product->amount = $request->amount;\n if (request('image')) {\n $product->image = base64_encode(file_get_contents($request->file('image')->getRealPath()));\n }\n\n $product->price_input = $request->price_input;\n\n if ( $request->promotion_price >= 0 && $request->promotion_price < $product->price_input) {\n $product->promotion_price = $request->promotion_price;\n }else{\n return back()->with('error', '\n Do not enter a negative number');\n }\n $product->new = $request->new;\n\n $product->description = $request->description;\n\n $product->save();\n $product->size()->sync(request('size'));\n\n return redirect()->route('product.index')->with('success', 'Product Updated successfully');\n }", "public static function updateImage($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n ResourceHandler::delete($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n $product->lastPrice = $product->price !== $request->input('price') ? $product->price : NULL;\n $product->price = $request->input('price');\n\n if ($request->hasFile('image')) { \n $currentImg = $product->image;\n if ($currentImg) {\n Storage::delete('/public/' . $currentImg);\n }\n $image = $request->file('image'); \n $path = $image->store('images','public');\n $product->image = $path;\n };\n\n $product->save(); \n\n $product_promotions = $request->input('promotion');\n\n $product->promotions()->sync($product_promotions);\n\n return redirect()->route('admin.modify');\n }", "public function update($request, $id)\n {\n $this->checkExits($id);\n $data = $request->except(['_method','_token','photo']);\n\n if($request->photo)\n {\n try {\n $this->UploadFile($request);\n } catch (\\Exception $e) {\n //if has exception , don't has action\n }\n if ($this->img !== '') {\n $data['img'] = $this->img;\n }\n }\n\n $this->object->update($data);\n\n }", "public function updateProduct($request, $product)\n {\n $product->update($request->except(['_token', '_method', 'image']));\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $imageName = time() . '.' . $request->file('image')->extension();\n // $img = Image::make('public/foo.jpg');\n\n $image_resize = Image::make($image->getRealPath());\n $image_resize->resize(500, 500);\n $image_resize->save(public_path('images/') . $imageName, 100);\n $product->gallery = $imageName;\n $product->save();\n }\n $product->getTags()->sync($request->input('tags'));\n }" ]
[ "0.7423347", "0.70622426", "0.70568657", "0.6896551", "0.65835553", "0.64519453", "0.6348333", "0.6212436", "0.61450946", "0.6122591", "0.6114199", "0.6101911", "0.60876113", "0.60528636", "0.60177964", "0.6006609", "0.59725446", "0.594558", "0.59395295", "0.5938792", "0.5893703", "0.5862337", "0.58523124", "0.58523124", "0.5851579", "0.5815571", "0.58067423", "0.5750728", "0.5750728", "0.5736541", "0.5723664", "0.5715135", "0.56949675", "0.5691129", "0.56882757", "0.5669375", "0.5655524", "0.56517446", "0.5647158", "0.5636521", "0.563466", "0.5632965", "0.56322825", "0.56291395", "0.56202215", "0.56087196", "0.56020856", "0.5591966", "0.5581127", "0.5581055", "0.558085", "0.5575458", "0.55706805", "0.55670804", "0.55629116", "0.5562565", "0.5558853", "0.5558505", "0.5558505", "0.5558505", "0.5558505", "0.5558505", "0.555572", "0.5555007", "0.5553948", "0.5553837", "0.5553147", "0.55429846", "0.5541925", "0.5540208", "0.5539145", "0.5536157", "0.55350804", "0.5534241", "0.5523782", "0.5518406", "0.55147856", "0.5513397", "0.550961", "0.55072165", "0.55067354", "0.5503418", "0.5501671", "0.55010796", "0.54998124", "0.5497327", "0.54942787", "0.54942036", "0.54942036", "0.54935455", "0.549267", "0.5491964", "0.5489983", "0.54833627", "0.54794145", "0.5478835", "0.5478348", "0.5465178", "0.54648995", "0.54607797", "0.54571307" ]
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { if (Auth::user()->id == $id) { toastr()->warning('Deletion of currently logged in user is not allowed :(')->important(); return redirect()->back(); } if (User::findOrFail($id)->delete()) { toastr()->success('User has been Deleted.'); } else { toastr()->error('Try Again..'); } return redirect()->back(); }
{ "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 $client = $this->getClient($this->name, $this->options);\n try {\n $client->delete(Path::fromString($this->getRelativePublicationPathAndFilename($resource)));\n } catch (FileDoesNotExistsException $exception) {\n }\n }", "public function deleteResource(&$resource) {\n\n if ($this->connector != null) {\n $this->logger->addDebug(\"Deleting Resource Node from Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}}) detach delete a;\",\n [\n 'id' => $resource->getID()\n ]\n );\n $this->logger->addDebug(\"Updated neo4j to remove resource\");\n }\n\n }", "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }", "public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }", "protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "public function remove()\n {\n if (! ftruncate($this->fileHandle, 0)) {\n throw new StorageException(\"Could not truncate $this->path\");\n }\n if (! unlink($this->path)) {\n throw new StorageException(\"Could not delete $this->path\");\n }\n }", "public function delete()\n\t{\n\t\t$s3 = AWS::createClient('s3');\n $s3->deleteObject(\n array(\n 'Bucket' => $this->bucket,\n 'Key' => $this->location\n )\n );\n\t\tif($this->local_file && file_exists($this->local_file)) {\n\t\t\tunlink($this->local_file);\n\t\t}\n $this->local_file = null;\n\t}", "public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}", "public function delete(): void\n {\n unlink($this->getPath());\n }", "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "public function remove($path);", "function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}", "public function delete(): void\n {\n unlink($this->path);\n }", "private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }", "public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function remove() {}", "public function remove() {}", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "function delete_resource($resource_id, $page)\n\t{\n\t\t//get resource data\n\t\t$table = \"resource\";\n\t\t$where = \"resource_id = \".$resource_id;\n\t\t\n\t\t$this->db->where($where);\n\t\t$resource_query = $this->db->get($table);\n\t\t$resource_row = $resource_query->row();\n\t\t$resource_path = $this->resource_path;\n\t\t\n\t\t$image_name = $resource_row->resource_image_name;\n\t\t\n\t\t//delete any other uploaded image\n\t\t$this->file_model->delete_file($resource_path.\"\\\\\".$image_name, $this->resource_path);\n\t\t\n\t\t//delete any other uploaded thumbnail\n\t\t$this->file_model->delete_file($resource_path.\"\\\\thumbnail_\".$image_name, $this->resource_path);\n\t\t\n\t\tif($this->resource_model->delete_resource($resource_id))\n\t\t{\n\t\t\t$this->session->set_userdata('success_message', 'resource has been deleted');\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$this->session->set_userdata('error_message', 'resource could not be deleted');\n\t\t}\n\t\tredirect('resource/'.$page);\n\t}", "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "public function del(string $resource): bool|string\n {\n $json = false;\n $fs = unserialize($_SESSION['rfe'][$this->getRoot()], ['allowed_classes' => false]);\n if (array_key_exists($resource, $fs)) {\n // if $item has children, delete all children too\n if (array_key_exists('dir', $fs[$resource])) {\n foreach ($fs as $key => $file) {\n if (isset($file['parId']) && $file['parId'] == $resource) {\n unset($fs[$key]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['rfe'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n return $json;\n }", "public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}", "public function destroy($id) {\n $book = Book::find($id);\n // return unlink(storage_path(\"public/featured_images/\".$book->featured_image));\n Storage::delete(\"public/featured_images/\" . $book->featured_image);\n if ($book->delete()) {\n return $book;\n }\n\n }", "public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }", "public function destroyResourceImage(): void\n\t{\n\t\tif (isset($this->image)) {\n\t\t\t@imagedestroy($this->image->getImageResource());\n\t\t}\n\t}", "public function deleteResource(PersistentResource $resource)\n {\n $pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n if (!file_exists($pathAndFilename)) {\n return true;\n }\n if (unlink($pathAndFilename) === false) {\n return false;\n }\n Files::removeEmptyDirectoriesOnPath(dirname($pathAndFilename));\n return true;\n }", "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "public function destroy()\n {\n $file=public_path(config('larapages.media.folder')).Input::all()['folder'].'/'.Input::all()['file'];\n if (!file_exists($file)) die('File not found '.$file);\n unlink($file);\n }", "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "public function destroy($id)\n {\n Myfile::find($id)->delete();\n }", "public function destroy($delete = false)\n {\n if (null !== $this->resource) {\n $this->resource->clear();\n $this->resource->destroy();\n }\n\n $this->resource = null;\n clearstatcache();\n\n // If the $delete flag is passed, delete the image file.\n if (($delete) && file_exists($this->name)) {\n unlink($this->name);\n }\n }", "public static function delete($path){\r\n $currentDir = getcwd();\r\n $storageSubPath = \"/../../\".STORAGE_PATH;\r\n $file = $currentDir . $storageSubPath . '/' . $path;\r\n\r\n unlink($file);\r\n }", "public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }", "public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }", "public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }", "public function destroy(Resource $resource)\n {\n if( $resource->delete() ){\n return Response(['status'=>'success','message'=>'Resource deleted']); \n } else {\n return Response(['status'=>'error', 'message'=>'Something went wrong']);\n }\n }", "public function delete($path);", "public function delete($path);", "public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }", "public function destroy($id)\n {\n $supplier = Supplier::find($id);\n $photo = $supplier->photo;\n if ($photo) {\n unlink($photo);\n }\n $supplier->delete();\n }", "public function destroy($id)\n {\n $student = Student::where('id', $id)->first();\n // $path = $student->image;\n unlink($student->image);\n Student::findOrFail($id)->delete();\n return response('Deleted!');\n }", "public function destroy($id)\n {\n $icon = SliderIcon::find($id);\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $icon->delete();\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества удалёны');\n }", "public function delete($path, $data = null);", "public function destroy($id)\n {\n $items=Items::find($id);\n // delete old file\n if ($items->photo) {\n $str=$items->photo;\n $pos = strpos($str,'/',1);\n $str = substr($str, $pos);\n $oldFile = storage_path('app\\public').$str;\n File::Delete($oldFile); \n }\n $items->delete();\n return redirect()->route('items.index');\n }", "public function destroy($id)\n {\n $carousel = Carousel::find($id);\n $image = $carousel->image;\n\n $basename ='img/carousel/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n unlink($basename);\n }\n //With softDeletes, this is the way to permanently delete a record\n $carousel->delete();\n Session::flash('success','Product deleted permanently');\n return redirect()->back();\n }", "public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }", "public static function destroy(int $resource_id)\n {\n try {\n $image_data = ListingImage::where('id', $resource_id)->first();\n self::delete_image($image_data->name);\n $delete = ListingImage::where('id', $resource_id)->delete();\n\n // activity()\n // ->causedBy(Auth::user()->id)\n // ->performedOn($delete)\n // ->withProperties(['id' => $delete->id])\n // ->log('listing image deleted');\n return response()->json(['status'=> 'ok', 'msg'=> 'Data deleted successfully']);\n } catch (Exception $e) {\n $e->getMessage();\n }\n }", "public function destroy(Storage $storage)\n {\n $this->storage->destroy($storage);\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));\n }", "public function del($path){\n\t\treturn $this->remove($path);\n\t}", "public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n $product->delete();\n if($product->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$product->img);\n // return 'deleted';\n }\n return redirect()->route('product.index'); \n }", "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "public function destroy($id)\n {\n $image = Images::withTrashed()->find($id);\n\n Storage::disk('uploads')->delete(\"social-media/$image->filename\");\n\n $image->tags()->detach();\n $image->detachMedia(config('constants.media_tags'));\n $image->forceDelete();\n\n return redirect()->back()->with('success', 'The image was successfully deleted');\n }", "public function destroyByResourceId($resource_id)\n {\n// $online_party = $this->onlinetrack->where('resource_id', $resource_id)->get()->first();\n// $online_party->status = \"offline\";\n// $online_party->save();\n// return $online_party;\n return $this->onlinetrack->where('resource_id', $resource_id)->delete();\n }", "public function revoke($resource, $permission = null);", "public function destroy($id)\n {\n $data=Image::find($id);\n $image = $data->img;\n\n\n $filepath= public_path('images/');\n $imagepath = $filepath.$image;\n\n //dd($old_image);\n if (file_exists($imagepath)) {\n @unlink($imagepath);\n }\n\n\n $data->delete();\n\n return redirect()->route('image.index');\n }", "function delete($path);", "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "public function destroyResource($resource)\n {\n if (!is_object($resource)) {\n return false;\n }\n\n $resource_type = get_class($resource);\n $resource_id = $resource->getKey();\n\n return Role::where('resource_type', $resource_type)\n ->where('resource_id', $resource_id)\n ->delete();\n }", "public function remove($filePath){\n return Storage::delete($filePath);\n }", "public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\n }", "public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }", "public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }", "public function processDeletedResource(EntityResource $resource)\n {\n /** @var AuthorizationRepository $repository */\n $repository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n\n $repository->removeAuthorizationsForResource($resource);\n }", "function _unlink($resource, $exp_time = null)\n {\n if(file_exists($resource)) {\n return parent::_unlink($resource, $exp_time);\n }\n\n // file wasn't found, so it must be gone.\n return true;\n }", "public function remove($id);", "public function remove($id);", "public function deleted(Storage $storage)\n {\n //\n }", "public function destroy($id)\n {\n $data = Product::findOrFail($id);\n\n if(file_exists('uploads/product/'.$data->image1)){\n unlink('uploads/product/'.$data->image1);\n }\n\n if(file_exists('uploads/product/'.$data->image2)){\n unlink('uploads/product/'.$data->image2);\n }\n\n if(file_exists('uploads/product/'.$data->image3)){\n unlink('uploads/product/'.$data->image3);\n }\n $data->delete();\n }", "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }", "public function resources_delete($resource_id, Request $request) {\n if ($resource_id) {\n $resp = Resources::where('id', '=', $resource_id)->delete();\n if($resp){\n $msg = 'Resource has been deleted successfully.';\n $request->session()->flash('message', $msg);\n }\n }\n //return redirect()->route('admin-factor-list');\n return redirect()->to($_SERVER['HTTP_REFERER']);\n }", "public function delete()\n {\n try\n {\n $thumbnail = $this->getThumbnail();\n if($thumbnail)\n {\n $thumbnail->delete();\n }\n }\n catch(sfException $e){}\n \n // delete current file\n parent::delete();\n }", "function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function remove_resource($idproject){\n\t\t\n\t\t// Load model and try to get project data\n\t\t$this->load->model('Projects_model', 'projects');\n\t\t\n\t\t// Update\n\t\t$this->projects->save_project(array(\"ext\" => \"\", \"vzaar_idvideo\" => \"0\", \"vzaar_processed\" => \"0\"), $idproject);\n\t}", "public function destroy($id){\n $file_data = Slider::findOrFail($id);\n File::delete(public_path('../storage/app/public/sliders/'.$file_data->path));\n $slider = Slider::destroy($id);\n return response()->json(null, 204);\n }", "public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}", "public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }", "public function destroy($id)\n {\n //Find Slider With Id\n $slider = Slider::findOrFail($id);\n // Check If The Image Exist\n if(file_exists('uploads/slider/'.$slider->image)){\n\n unlink( 'uploads/slider/'.$slider->image);\n }\n $slider->delete();\n return redirect()->back()->with('success','Slider Successfully Deleted');\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.5897263", "0.58962846", "0.58951396", "0.58951396", "0.58951396", "0.58951396", "0.5880124", "0.58690923", "0.5863659", "0.5809161", "0.57735413", "0.5760811", "0.5753559", "0.57492644", "0.5741712", "0.57334286", "0.5726379", "0.57144034", "0.57096", "0.5707689", "0.5705895", "0.5705634", "0.5703902", "0.5696585", "0.5684331", "0.5684331", "0.56780374", "0.5677111", "0.5657287", "0.5648262", "0.5648085", "0.5648012", "0.5640759", "0.5637738", "0.5629985", "0.5619264", "0.56167465", "0.5606877", "0.56021434", "0.5601949", "0.55992156", "0.5598557", "0.55897516", "0.5581397", "0.5566926", "0.5566796", "0.55642897", "0.55641", "0.5556583", "0.5556536", "0.5550097", "0.5543172", "0.55422723", "0.5540013", "0.5540013", "0.55371785", "0.55365825", "0.55300397", "0.552969", "0.55275744", "0.55272335", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.5525997", "0.5525624", "0.5523911", "0.5521122", "0.5517412" ]
0.0
-1
Calendar module on_build_menu event handler
function calendar_handle_on_build_menu(&$menu, &$user) { $menu->addToGroup(array( new MenuItem('calendar', lang('Calendar'), Calendar::getDashboardCalendarUrl(), 'lnr lnr-calendar-full'), ), 'main'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insertMenuEvent(){\n //\n }", "public function onBuildMainMenu(BuildMenuEvent $event)\n {\n $main = $event\n ->getMenu()\n ->removeChild('Dashboard')\n ->removeChild('Stock')\n ->removeChild('Projects')\n ->removeChild('Email')\n ->removeChild('Scheduler')\n ->removeChild('Calls')\n ->removeChild('Support')\n ->removeChild('Jobs')\n ->removeChild('Purchase orders')\n ->removeChild('Suppliers')\n ->removeChild('Contacts')\n ->removeChild('Clients');\n\n if ($this->security->isGranted(array('ROLE_CLIENT_CONTACT'))) {\n $main->addChild('Orders', array('route' => 'mirsa_sales_order_list'))->setAttribute('icon', 'fa-pencil-square-o');\n $main->addChild('Appointments', array('route' => 'mirsa_appointments_list'))->setAttribute('icon', 'fa-calendar');\n }\n\n if ($this->security->isGranted(array('ROLE_CLIENT_CONTACT_INVENTORY'))) {\n $menu->removeChild('Orders');\n $menu->removeChild('Appointments');\n }\n \n if ($this->security->isGranted(array('ROLE_STAFF'))) {\n $main->addChild('Clients', array('route' => 'mirsa_clients_list'))->setAttribute('icon', 'fa-group');\n $main->addChild('Orders', array('route' => 'mirsa_sales_order_list'))->setAttribute('icon', 'fa-pencil-square-o');\n $main->addChild('Appointments', array('route' => 'mirsa_appointments_list'))->setAttribute('icon', 'fa-calendar');\n }\n\n /* Standard menu items for all users */\n $main->addChild('Work Orders', array('route' => 'mirsa_work_order_list'))->setAttribute('icon', 'fa-cogs');\n $main->addChild('Assembly Activity', array('route' => 'mirsa_activity_assembly_list'))->setAttribute('icon', 'fa-cogs');\n $main->addChild('Inspection Activity', array('route' => 'mirsa_activity_inspection_list'))->setAttribute('icon', 'fa-cogs');\n $main->addChild('Defect Cross Tab', array('route' => 'mirsa_work_order_defect_cross_tab_report_by_template'))->setAttribute('icon', 'fa-cogs');\n $main->addChild('Batch', array('route' => 'mirsa_stock_quantity_list'))->setAttribute('icon', 'fa-cubes');\n $main->addChild('Inventory', array('route' => 'mirsa_stock_list'))->setAttribute('icon', 'fa-cubes');\n $main->addChild('Order Line Items', array('route' => 'mirsa_sales_order_line_item_list'))->setAttribute('icon', 'fa-list-alt');\n }", "public function onManagerAppointments() {\nglobal $_LW, $title;\nif (!$_LW->userSetting('core_globals')) { // disallow access for non-global perm\n\tdie(header('Location: /livewhale/'));\n};\n$GLOBALS['dropdown_checked']=$this->dropdown('checked_appointments'); // create checked items dropdown menu\n$title='Appointment Slots'; // set title\n$GLOBALS['manager_appointments']=$_LW->showManager('<ul id=\"manager_appointments\" class=\"manager simple list-group\"/>', '<li id=\"item{id}\" class=\"list-group-item\">\n\t<input class=\"with_this\" type=\"checkbox\" name=\"items[]\" value=\"{id}\"/>\n\t<h5>{title}</h5>\n\t<input type=\"hidden\" name=\"appointments[]\" value=\"{id}\"/>\n</li>', 'managerQuery', 'formatManager');\n}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "function buildCalendarMenu($automated, &$year, &$day, &$month, &$hour, &$min)\n{\n $today = getdate();\n $tday = $today['mday'];\n if ($tday < 10){\n $tday = \"0$tday\";\n }\n $tmonth = $today['month'];\n $ttmon = $today['mon'];\n if ($ttmon < 10){\n $ttmon = \"0$ttmon\";\n }\n $tyear = $today['year'];\n $thour = $today['hours'];\n if ($thour < 10){\n $thour = \"0$thour\";\n }\n $tmin = $today['minutes'];\n if ($tmin < 10){\n $tmin = \"0$tmin\";\n }\n $tsec = $today['seconds'];\n if ($tsec < 10){\n $tsec = \"0$tsec\";\n }\n $date = \"$tmonth $tday, $tyear @ $thour:$tmin:$tsec\"; /* ML get the language from the queue table */\n $formatted_date = ml_ftime(_DATETIMELONG, mktime($today['hours'],$today['minutes'],$today['seconds'],$today['mon'],$today['mday'],$today['year']));\n if(!$automated){\n echo _NOWIS.': '.pnVarPrepForDisplay($formatted_date).'<br />';\n echo _HOUR.': <select name=\"hour\">';\n $hour = 0;\n $cero = '0';\n while ($hour <= 23) {\n $dummy = $hour;\n if ($hour < 10) {\n $hour = \"$cero$hour\";\n }\n echo '<option>'.pnVarPrepForDisplay($hour).'</option>';\n $hour = $dummy;\n $hour++;\n }\n echo \"</select>&nbsp;\";\n echo \": <select name=\\\"min\\\">\";\n $min = 0;\n while ($min <= 59) {\n if (($min == 0) OR ($min == 5)) {\n $min = \"0$min\";\n }\n echo \"<option>\".pnVarPrepForDisplay($min).\"</option>\";\n $min = $min + 5;\n }\n echo \"</select>&nbsp;&nbsp;\";\n $day = 1;\n echo _DAY.': <select name=\"day\">';\n while ($day <= 31) {\n if ($tday==$day) {\n $sel = 'selected=\"selected\"';\n } else {\n $sel = '';\n }\n echo '<option '.$sel.'>'.pnVarPrepForDisplay($day).'</option>';\n $day++;\n }\n echo '</select>&nbsp;&nbsp;';\n $month = 1;\n echo _MONTH.': <select name=\"month\">';\n while ($month <= 12) {\n if ($ttmon==$month) {\n $sel = 'selected=\"selected\"';\n } else {\n $sel = '';\n }\n echo '<option '.$sel.'>'.pnVarPrepForDisplay($month).'</option>';\n $month++;\n }\n echo '</select>&nbsp;&nbsp;';\n $date = getdate();\n $formatted_date = ml_ftime(_DATETIMELONG, mktime($date['hours'],$date['minutes'],$date['seconds'],$date['mon'],$date['mday'],$date['year']));\n $year = $date['year'];\n echo _YEAR.': <input type=\"text\" name=\"year\" value=\"'.pnVarPrepForDisplay($year).'\" size=\"5\" maxlength=\"4\" /><br />';\n } else {\n echo _NOWIS.': '.pnVarPrepForDisplay($formatted_date).'<br />';\n echo _HOUR.': <select name=\"hour\">';\n $xhour = 0;\n $cero = '0';\n while ($xhour <= 23) {\n $dummy = $xhour;\n if ($xhour < 10) {\n $xhour = \"$cero$xhour\";\n }\n if ($xhour == $hour) {\n $sel = 'selected=\"selected\"';\n } else {\n $sel = '';\n }\n echo '<option '.$sel.'>'.pnVarPrepForDisplay($xhour).'</option>';\n $xhour = $dummy;\n $xhour++;\n }\n echo '</select>&nbsp;';\n echo ': <select name=\"min\">';\n $xmin = 0;\n while ($xmin <= 59) {\n if (($xmin == 0) OR ($xmin == 5)) {\n $xmin = \"0$xmin\";\n }\n if ($xmin == $min) {\n $sel = 'selected=\"selected\"';\n } else {\n $sel = '';\n }\n echo '<option '.$sel.'>'.pnVarPrepForDisplay($xmin).'</option>';\n $xmin = $xmin + 5;\n }\n echo '</select>&nbsp;';\n $xday = 1;\n echo _DAY.': <select name=\"day\">';\n while ($xday <= 31) {\n if ($xday == $day) {\n $sel = 'selected=\"selected\"';\n } else {\n $sel = '';\n }\n echo '<option '.$sel.'>'.pnVarPrepForDisplay($xday).'</option>';\n $xday++;\n }\n echo '</select>&nbsp;';\n $xmonth = 1;\n echo _MONTH.': <select name=\"month\">';\n while ($xmonth <= 12) {\n if ($xmonth == $month) {\n $sel = 'selected=\"selected\"';\n } else {\n $sel = '';\n }\n echo '<option '.$sel.'>'.pnVarPrepForDisplay($xmonth).'</option>';\n $xmonth++;\n }\n echo '</select>&nbsp;';\n echo _YEAR.': <input type=\"text\" name=\"year\" value=\"'.pnVarPrepForDisplay($year).'\" size=\"5\" maxlength=\"4\" /><br />';\n }\n}", "private function createCalendarMenu($trigger, $cal_id, $data_list){\n\t\tif(!$trigger instanceof Component){\n\t\t\tthrow new IllegalArgumentException(\"argument to \" . __METHOD__ . \" must be a Component\");\n\t\t}\n\t\tif(!is_int($cal_id)){\n\t\t\tthrow new IllegalArgumentException(\"argument to \" . __METHOD__ . \" must be an int\");\n\t\t}\n\t\t$data = new module_bootstrap_data($data_list, \"form input\");;\n\t\t$module = new StrongcalCalendarMenu($this->avalanche, $this->doc, $trigger, $cal_id);\n\t\t$bootstrap = $this->avalanche->getModule(\"bootstrap\");\n\t\t$runner = $bootstrap->newDefaultRunner();\n\t\t$runner->add($module);\n\t\t$runner->run($data);\n\t}", "public function calendar()\n {\n $this->template->set('global_setting', $this->global_setting);\n $this->template->set('page', 'calendar');\n $this->template->set_theme('default_theme');\n $this->template->set_layout('frontend')\n ->title($this->global_setting['site_title'] . ' | Calendar')\n ->set_partial('header', 'partials/header')\n ->set_partial('footer', 'partials/footer');\n $this->template->build('frontpages/calendar');\n }", "function DisplayCalendarOfEvents()\r\n\t{\r\n\t\tglobal $_SETTINGS;\r\n\t\techo \"<div id='calendar'></div>\";\t\r\n\t}", "function Dates_Menu()\n {\n $args=$this->CGI_URI2Hash();\n unset($args[ \"Place\" ]);\n\n return $this->DatesObj()->MyMod_Items_Menu($args,$this->Dates(),\"Date\",$idkey=\"ID\",$titlekey=\"Title\");\n }", "protected function _menu()\n\t{\n\t\tif (ee()->view->disabled('ee_menu'))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tee()->view->cp_main_menu = ee()->menu->generate_menu();\n\t}", "function portal_dashboard_calendar_widget() {\n\n\techo portal_output_project_calendar();\n\n}", "function _wp_menus_changed()\n {\n }", "public static function menuInit()\n {\n global $menu, $submenu;\n//print_r($temp);\n// exit;\n /**\n * Menu items that need completed\n * Registrations\n * Transactions\n * Settings\n * General\n * Payment Methods\n */\n\n // Add in locations\n foreach ([\n 'event_location',\n 'event_registration',\n 'event_transaction'\n ] as $temp) {\n $temp = get_post_type_object($temp);\n\n $submenu['edit.php?post_type=event'][] = [\n $temp->labels->menu_name,\n 'manage_options',\n admin_url('edit.php?post_type=' . $temp->name)\n ];\n\n }\n\n add_submenu_page(\n 'edit.php?post_type=event',\n __('General Settings', __NAMESPACE__),\n __('General Settings', __NAMESPACE__),\n 'manage_options',\n 'general',\n ['\\\\' . __NAMESPACE__ . '\\\\PageGeneral', 'Display'],\n get_stylesheet_directory_uri('stylesheet_directory') . \"/images/media-button-other.gif\"\n );\n\n $temp = get_post_type_object('event_payment_method');\n $submenu['edit.php?post_type=event'][] = [\n $temp->labels->menu_name,\n 'manage_options',\n admin_url('edit.php?post_type=event_payment_method')\n ];\n\n\n // Easy save post handler.\n add_action('save_post', [self::$_class, 'saveHandler'], 10, 1);\n\n }", "public function makeMenu() {}", "protected function buildMenuArray() {}", "function my_plugin_menu() {\n add_menu_page( 'Nursing Schedule Panel', 'Nursing Schedule Panel ', 'manage_options', 'nursing-panel', 'my_plugin_options' ,'dashicons-calendar-alt',3);\n}", "function scheduledreporting_component_addmenu()\n{\n $desturl = get_component_url_base(\"scheduledreporting\");\n\n $mi = find_menu_item(MENU_REPORTS, \"menu-reports-sectionend-myreports\", \"id\");\n if ($mi == null)\n return;\n\n $order = grab_array_var($mi, \"order\", \"\");\n if ($order == \"\")\n return;\n\n $reports = get_user_meta('0', 'scheduled_reports');\n ($reports) ? $reports = mb_unserialize($reports) : $reports = array();\n\n $num = count($reports);\n\n $neworder = $order + .01;\n\n // Add scheduled reports\n add_menu_item(MENU_REPORTS, array(\n \"type\" => \"menusection\",\n \"title\" => _(\"My Scheduled Reports\"),\n \"id\" => \"menu-reports-scheduledreportings\",\n \"order\" => $neworder,\n \"opts\" => array(\n \"id\" => \"scheduledreportings\",\n \"expanded\" => true,\n \"num\" => $num,\n \"url\" => $desturl . '/schedulereport.php',\n )\n ));\n\n $neworder += 0.01;\n\n foreach ($reports as $key => $r) {\n if (empty($r['dontdisplay'])) {\n add_menu_item(MENU_REPORTS, array(\n \"type\" => MENULINK,\n \"title\" => encode_form_val($r['name']),\n \"id\" => \"menu-reports-scheduledreporting-\".uniqid(),\n \"order\" => $neworder,\n \"opts\" => array(\n \"href\" => $desturl . \"/schedulereport.php?visit=1&id=\" . urlencode($key) . \"&nsp=\" . get_nagios_session_protector_id(),\n )));\n $neworder += .01;\n }\n }\n\n add_menu_item(MENU_REPORTS, array(\n \"type\" => \"menusectionend\",\n \"id\" => \"menu-reports-sectionend-scheduledreportings\",\n \"order\" => $neworder,\n \"title\" => \"\",\n \"opts\" => \"\"\n ));\n\n // Add management section if admin\n\n if (is_admin()) {\n add_menu_item(MENU_REPORTS, array(\n \"type\" => \"link\",\n \"title\" => _(\"Scheduled Reports\"),\n \"id\" => \"menu-reports-user-scheduled\",\n \"order\" => 501,\n \"opts\" => array(\n \"href\" => $desturl . \"/manage.php\"\n )\n ));\n add_menu_item(MENU_REPORTS, array(\n \"type\" => \"link\",\n \"title\" => _(\"Scheduled Reports History\"),\n \"id\" => \"menu-reports-user-scheduled-history\",\n \"order\" => 501.5,\n \"opts\" => array(\n \"href\" => $desturl . \"/history.php\"\n )\n ));\n }\n}", "function init_menu() {\n if (func_num_args()>0) {\n $arg_list = func_get_args();\n }\n\n // menu entries\n module::set_menu($this->module, \"Notifiable Diseases\", \"LIBRARIES\", \"_notifiable\");\n\n // add more detail\n module::set_detail($this->description, $this->version, $this->author, $this->module);\n\n }", "protected function makeActionMenu() {}", "public function add_menus()\n {\n }", "public function onWpAdminMenu() {\n\t}", "public function buildMenu() {\n $content = array();\n\n $headers = array(\n t(\"Menu keuze\"),\n t(\"Functie\"), \n );\n $rows[] = array(\n t(\"<b>Tabel beheer</b>\"),\n t(\"\"),\n );\n $rows[]= array(\n t(\"<a href= ezac/leden/>Leden administratie</a>\"),\n t(\"Inzage en wijzigen leden informatie\"),\n );\n $rows[] = array(\n t(\"<a href= ezac/leden/update>Lid toevoegen</a>\"),\n t(\"Invoeren gegevens nieuw lid\"),\n );\n $rows[] = array(\n t(\"<a href= ezac/kisten/>Vloot administratie</a>\"),\n t(\"Inzage en wijzigen vloot informatie\"),\n );\n $rows[] = array(\n t(\"<a href= ezac/kisten/update>Kist toevoegen</a>\"),\n t(\"Invoeren gegevens nieuw vliegtuig\"),\n );\n $rows[] = array(\n t(\"<b>Startadministratie</b>\"),\n t(\"\"),\n );\n $rows[] = array(\n t(\"<a href= ezac/starts>Startadministratie</a>\"),\n t(\"Overzicht startadministratie\"),\n );\n $rows[] = array(\n t(\"<a href= ezac/starts/create/>Start invoer</a>\"),\n t(\"Invoeren nieuwe start\"),\n );\n $rows[] = array(\n t(\"<b>Voortgang / Bevoegdheden administratie</b>\"),\n t(\"\"),\n );\n $rows[] = array(\n t(\"<a href= ezac/vba>Overzicht</a>\"),\n t(\"Overzicht VBA gegevens\"),\n );\n $rows[] = array(\n t(\"<a href= ezac/vba>Invoeren</a>\"),\n t(\"Invoeren verslagen en bevoegdheden\"),\n );\n\n $table = array(\n '#type' => 'table',\n '#caption' => t(\"EZAC administratie hoofdmenu\"),\n '#header' => $headers,\n '#rows' => $rows,\n '#empty' => t('Geen gegevens beschikbaar.'),\n '#sticky' => TRUE,\n '#prefix' => '<div id=\"menu-div\">',\n '#suffix' => '</div>',\n '#weight' => 2,\n );\n\n return $table;\n }", "public function modMenu() {}", "public function modMenu() {}", "public function modMenu() {}", "function exam_menu_rebuild() {\n \n menu_rebuild();\n \n return 'Menu rebuild completed.';\n}", "public function event()\n {\n return 'admin_menu';\n }", "public function create_menu() {\n\t\tif ( get_network()->site_id !== get_current_blog_id() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t//create new top-level menu\n\t\tadd_management_page(\n\t\t\t__( 'Sync newsletter', 'elemarjr' ),\n\t\t\t__( 'Sync newsletter', 'elemarjr' ),\n\t\t\t'manage_options',\n\t\t\t'sync-newsletter',\n\t\t\tarray( $this, 'display_submenu_page' ),\n\t\t\t6\n\t\t);\n\t}", "public static function month_calendar($day, $month, $year) {\r\n global $langDay_of_weekNames, $langMonthNames, $langToday, $langDay, $langWeek, $langMonth, $langViewShow;\r\n\r\n $calendar_content = \"\";\r\n //Handle leap year\r\n $numberofdays = array(0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);\r\n if (($year % 400 == 0) or ($year % 4 == 0 and $year % 100 <> 0)) {\r\n $numberofdays[2] = 29;\r\n }\r\n\r\n $eventlist = Calendar_Events::get_calendar_events(\"month\", \"$year-$month-$day\");\r\n\r\n $events = array();\r\n if ($eventlist) {\r\n foreach ($eventlist as $event) {\r\n $eventday = new DateTime($event->startdate);\r\n $eventday = $eventday->format('j');\r\n if (!array_key_exists($eventday,$events)) {\r\n $events[$eventday] = array();\r\n }\r\n array_push($events[$eventday], $event);\r\n }\r\n }\r\n\r\n //Get the first day of the month\r\n $dayone = getdate(mktime(0, 0, 0, $month, 1, $year));\r\n //Start the week on monday\r\n $startdayofweek = $dayone['wday'] <> 0 ? ($dayone['wday'] - 1) : 6;\r\n\r\n $backward = array('month'=>$month == 1 ? 12 : $month - 1, 'year' => $month == 1 ? $year - 1 : $year);\r\n $foreward = array('month'=>$month == 12 ? 1 : $month + 1, 'year' => $month == 12 ? $year + 1 : $year);\r\n\r\n $calendar_content .= '<div class=\"right\" style=\"width:100%\">'.$langViewShow.':&nbsp;'.\r\n '<a href=\"#\" onclick=\"show_day(selectedday, selectedmonth, selectedyear);return false;\">'.$langDay.'</a>&nbsp;|&nbsp;'.\r\n '<a href=\"#\" onclick=\"show_week(selectedday, selectedmonth, selectedyear);return false;\">'.$langWeek.'</a>&nbsp;|&nbsp;'.\r\n '<a href=\"#\" onclick=\"show_month(selectedday, selectedmonth, selectedyear);return false;\">'.$langMonth.'</a></div>';\r\n\r\n $calendar_content .= '<table width=100% class=\"title1\">';\r\n $calendar_content .= \"<tr>\";\r\n $calendar_content .= '<td width=\"250\"><a href=\"#\" onclick=\"show_month(1,'.$backward['month'].','.$backward['year'].'); return false;\">&laquo;</a></td>';\r\n $calendar_content .= \"<td class='center'><b>{$langMonthNames['long'][$month-1]} $year</b></td>\";\r\n $calendar_content .= '<td width=\"250\" class=\"right\"><a href=\"#\" onclick=\"show_month(1,'.$foreward['month'].','.$foreward['year'].'); return false;\">&raquo;</a></td>';\r\n $calendar_content .= \"</tr>\";\r\n $calendar_content .= \"</table><br />\";\r\n $calendar_content .= \"<table class='table-default'><tr class='list-header'>\";\r\n for ($ii = 1; $ii < 8; $ii++) {\r\n $calendar_content .= \"<th class='text-center'>\" . $langDay_of_weekNames['long'][$ii % 7] . \"</th>\";\r\n }\r\n $calendar_content .= \"</tr>\";\r\n $curday = -1;\r\n $today = getdate();\r\n\r\n while ($curday <= $numberofdays[$month]) {\r\n $calendar_content .= \"<tr>\";\r\n\r\n for ($ii = 0; $ii < 7; $ii++) {\r\n if (($curday == -1) && ($ii == $startdayofweek)) {\r\n $curday = 1;\r\n }\r\n if (($curday > 0) && ($curday <= $numberofdays[$month])) {\r\n $bgcolor = $ii < 5 ? \"class='alert alert-danger'\" : \"class='odd'\";\r\n $dayheader = \"$curday\";\r\n $class_style = \"class=odd\";\r\n if (($curday == $today['mday']) && ($year == $today['year']) && ($month == $today['mon'])) {\r\n $dayheader = \"<b>$curday</b> <small>($langToday)</small>\";\r\n $class_style = \"class='today'\";\r\n }\r\n $calendar_content .= \"<td height=50 width=14% valign=top $class_style><b>$dayheader</b>\";\r\n $thisDayItems = \"\";\r\n if (array_key_exists($curday, $events)) {\r\n foreach ($events[$curday] as $ev) {\r\n $thisDayItems .= Calendar_Events::month_calendar_item($ev, Calendar_Events::$calsettings->{$ev->event_group.\"_color\"});\r\n }\r\n $calendar_content .= \"$thisDayItems</td>\";\r\n }\r\n $curday++;\r\n } else {\r\n $calendar_content .= \"<td width=14%>&nbsp;</td>\";\r\n }\r\n }\r\n $calendar_content .= \"</tr>\";\r\n }\r\n $calendar_content .= \"</table>\";\r\n\r\n /* Legend */\r\n $calendar_content .= Calendar_Events::calendar_legend();\r\n\r\n\r\n /*************************************** Bootstrap calendar ******************************************************/\r\n\r\n $calendar_content .= '<div id=\"bootstrapcalendar\"></div>';\r\n\r\n return $calendar_content;\r\n }", "private function init_menu()\n {\n // it's a sample code you can init some other part of your page\n }", "public function menuEventFunc()\n {\n\n return 0;\n }", "function get_calendar($initial = \\true, $display = \\true)\n {\n }", "protected function getModuleMenu() {}", "protected function getModuleMenu() {}", "protected function getModuleMenu() {}", "function hotfix_menu( $p_event, $p_params ) {\n $project_id = helper_get_current_project();\n $p_option = 'p' . $project_id . '_hotfix_versions';\n if (plugin_config_get($p_option, '') != '') {\n\n \t\t// check if we are the currently selected menu item\n \t\tif ($_SERVER[\"REQUEST_URI\"] == plugin_page( 'hotfix_overview.php')) {\n \t\t\t$current_page = plugin_page( 'hotfix_overview.php');\n \t\t} else {\n \t\t\t$current_page = '';\n \t\t}\n \t\n \t\tlayout_sidebar_menu( plugin_page( 'hotfix_overview.php'), plugin_lang_get( 'sidebar_title' ), 'fa-fire-extinguisher', $current_page );\t\t\t\t\n }\n\t}", "protected function generateModuleMenu() {}", "public function onCreateMenu($event)\n {\n $menu = $event->menu;\n $resource = $event->resource;\n $model = $event->model;\n $owApp = OntoWiki::getInstance();\n\n // We only add entries to the menu, if all params are given and the\n // model is editable.\n if ((null === $resource) || (null === $model) || !$model->isEditable()\n || !$owApp->erfurt->getAc()->isModelAllowed('edit', $owApp->selectedModel)) {\n return;\n }\n\n $owApp = OntoWiki::getInstance();\n $translate = $owApp->translate;\n\n $wrapperRegistry = Erfurt_Wrapper_Registry::getInstance();\n $activeWrapperList = $wrapperRegistry->listActiveWrapper();\n\n if ((boolean)$this->_privateConfig->sync->enabled) {\n $syncConfigList = $this->_listSyncConfigs();\n } else {\n $syncConfigList = array();\n }\n\n $uri = (string)$resource;\n $modelUri = (string)$model;\n\n $menuArray = array();\n\n // Check all active wrapper extensions, whether URI is handled. Also\n // check, whether a sync config exists.\n foreach ($activeWrapperList as $wrapperName) {\n $hash = $this->_getHash($uri, $wrapperName, $modelUri);\n\n $r = new Erfurt_Rdf_Resource($uri);\n $r->setLocator($this->_getProxyUri($uri));\n\n $wrapperInstance = $wrapperRegistry->getWrapperInstance($wrapperName);\n if ($wrapperInstance->isHandled($r, $modelUri)) {\n $menuArray[$wrapperName] = array(\n 'instance' => $wrapperInstance\n );\n\n if (isset($syncConfigList[$hash])) {\n $menuArray[$wrapperName]['sync'] = true;\n }\n }\n }\n\n // Only add a separator, if at least one active wrapper exists.\n if (count($menuArray) > 0) {\n $menu->appendEntry(OntoWiki_Menu::SEPARATOR);\n }\n\n foreach ($menuArray as $wrapperName => $wrapperArray) {\n $wrapperInstance = $wrapperArray['instance'];\n\n if (isset($wrapperArray['sync']) && $wrapperArray['sync'] === true) {\n $message = $translate->_('Sync Data with %1$s');\n\n $menu->appendEntry(\n sprintf($message, $wrapperInstance->getName()),\n array(\n 'about' => $uri,\n 'class' => 'sync_data_button wrapper_' . $wrapperName\n )\n );\n } else {\n $message = $translate->_('Import Data with %1$s');\n\n $menu->appendEntry(\n sprintf($message, $wrapperInstance->getName()),\n array(\n 'about' => $uri,\n 'class' => 'fetch_data_button wrapper_' . $wrapperName\n )\n );\n }\n\n // Configure for sync entry.\n if ((boolean)$this->_privateConfig->sync->enabled) {\n $configUrl = $owApp->config->urlBase . 'datagathering/config?uri=' . urlencode($uri) .\n '&wrapper=' . urlencode($wrapperName);\n\n if ($event->isModel) {\n $configUrl .= '&m=' . urlencode($uri);\n }\n\n $message = $translate->_('Configure Sync with %1$s');\n\n $menu->appendEntry(\n sprintf($message, $wrapperInstance->getName()),\n $configUrl\n );\n }\n }\n\n return true;\n }", "function eventoni_create_menu() {\n\n\t//create new top-level menu\n\tadd_menu_page('Eventoni', 'Eventoni', 'administrator', __FILE__, 'eventoni_settings_page');\n\n\t//call register settings function\n\tadd_action( 'admin_init', 'register_mysettings' );\n}", "public function writeMenu() {}", "public function writeMenu() {}", "public function writeMenu() {}", "public function writeMenu() {}", "protected function build_calendar()\n\t{\n\t\t//ee()->TMPL->log_item('Calendar: Building calendar output');\n\n\t\t$disable\t= array(\n\t\t\t'categories',\n\t\t\t'category_fields',\n\t\t\t'custom_fields',\n\t\t\t'member_data',\n\t\t\t'pagination',\n\t\t\t'trackbacks'\n\t\t);\n\n\t\t$this->CDT->reset();\n\t\t$today_ymd\t= $this->CDT->ymd;\n\n\t\t// -------------------------------------\n\t\t// Set dynamic=\"off\", lest Channel get uppity and try\n\t\t// to think that it's in charge here.\n\t\t// -------------------------------------\n\n\t\t//default off.\n\t\tif ( $this->check_yes( ee()->TMPL->fetch_param('dynamic') ) )\n\t\t{\n\t\t\tee()->TMPL->tagparams['dynamic'] \t= 'yes';\n\t\t}\n\t\telse\n\t\t{\n\t\t\tee()->TMPL->tagparams['dynamic'] \t= 'no';\n\t\t}\n\n\t\tif (isset(ee()->TMPL->tagparams['category']))\n\t\t{\n\t\t\t$this->convert_category_titles();\n\t\t}\n\n\t\t// -------------------------------------\n\t\t// Collect important bits of tagdata\n\t\t// -------------------------------------\n\n\t\t//ee()->TMPL->log_item('Calendar: Collecting tagdata');\n\n\t\t$output_at\t= '';\n\t\t$tagdata\t= ee()->TMPL->tagdata;\n\t\t$each_year\t= $each_month = $each_week = $each_day = $each_hour = $each_event = '';\n\t\t$hash_event\t= 'd38bf16a9a74c63fa5eb6d1ac082d539'.\"\\n\";\n\t\t$hash_hour\t= 'fe16402ccfad7e120a7ca3a31df3a019'.\"\\n\";\n\t\t$hash_day\t= '2aa2a1a0724182b1d876232c137a6d4f'.\"\\n\";\n\t\t$hash_week\t= 'b657210371b3e2a6f955ef6a404689de'.\"\\n\";\n\t\t$hash_month\t= 'd03207661c36a3bfd43b9dd239e41676'.\"\\n\";\n\t\t$hash_year\t= '97a92770ab082652cf662bdacc311dff'.\"\\n\";\n\n\t\t//--------------------------------------------\n\t\t//\tremove pagination before we start\n\t\t//--------------------------------------------\n\n\t\t//has tags?\n\t\tif (preg_match(\n\t\t\t\t\"/\" . LD . \"calendar_paginate\" . RD .\n\t\t\t\t\t\"(.+?)\" .\n\t\t\t\tLD . preg_quote(T_SLASH, '/') . \"calendar_paginate\" . RD . \"/s\",\n\t\t\t\t$tagdata,\n\t\t\t\t$match\n\t\t\t))\n\t\t{\n\t\t\t$this->paginate_tagpair_data\t= $match[0];\n\t\t\t$tagdata \t\t\t\t\t\t= str_replace( $match[0], '', $tagdata );\n\t\t}\n\t\t//prefix comes first\n\t\telse if (preg_match(\n\t\t\t\t\"/\" . LD . \"paginate\" . RD .\n\t\t\t\t\t\"(.+?)\" .\n\t\t\t\tLD . preg_quote(T_SLASH, '/') . \"paginate\" . RD . \"/s\",\n\t\t\t\t$tagdata,\n\t\t\t\t$match\n\t\t\t))\n\t\t{\n\t\t\t$this->paginate_tagpair_data\t= $match[0];\n\t\t\t$tagdata \t\t\t\t\t\t= str_replace( $match[0], '', $tagdata );\n\t\t}\n\n\t\t// -------------------------------------\n\t\t// Replace days of the week first, cuz they're easy\n\t\t// -------------------------------------\n\n\n\t\tif (isset(ee()->TMPL->var_pair['display_each_day_of_week']))\n\t\t{\n\t\t\tpreg_match(\n\t\t\t\t'/' . LD . 'display_each_day_of_week' . RD .\n\t\t\t\t\t'(.*?)' .\n\t\t\t\tLD . preg_quote(T_SLASH, '/') . 'display_each_day_of_week' . RD . '/s',\n\t\t\t\t$tagdata,\n\t\t\t\t$match\n\t\t\t);\n\n\t\t\tif (isset($match[1]))\n\t\t\t{\n\t\t\t\t$dow_output\t\t= '';\n\t\t\t\t$vars\t\t\t= array();\n\t\t\t\t$current_dow\t= $this->CDT->day_of_week;\n\n\t\t\t\t$this->CDT->change_ymd($this->P->value('date_range_start', 'ymd'));\n\n\t\t\t\tif ($this->CDT->day_of_week != $this->first_day_of_week)\n\t\t\t\t{\n\t\t\t\t\t$this->CDT->add_day(\n\t\t\t\t\t\t$this->first_day_of_week - $this->CDT->day_of_week\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\tfor ($i = 0; $i < 7; $i++)\n\t\t\t\t{\n\t\t\t\t\tif ($i > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->CDT->add_day();\n\t\t\t\t\t}\n\n\t\t\t\t\t$vars['conditional'] = array(\n\t\t\t\t\t\t'day_of_week_is_weekend'\t=> (\n\t\t\t\t\t\t\t$this->CDT->day_of_week == 0 OR\n\t\t\t\t\t\t\t$this->CDT->day_of_week == 6\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'day_of_week_is_current'\t=> (\n\t\t\t\t\t\t\t$this->CDT->day_of_week == $current_dow\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\n\t\t\t\t\t$vars['single'] = array(\n\t\t\t\t\t\t'day_of_week'\t\t\t=> $this->cdt_format_date_string($this->CDT->datetime_array(), 'l'),\n\t\t\t\t\t\t'day_of_week_one'\t\t=> $this->cdt_format_date_string($this->CDT->datetime_array(), 'b'),\n\t\t\t\t\t\t'day_of_week_short'\t\t=> $this->cdt_format_date_string($this->CDT->datetime_array(), 'D'),\n\t\t\t\t\t\t'day_of_week_N'\t\t\t=> $this->cdt_format_date_string($this->CDT->datetime_array(), 'N'),\n\t\t\t\t\t\t'day_of_week_number'\t=> $this->cdt_format_date_string($this->CDT->datetime_array(), 'w')\n\t\t\t\t\t);\n\n\t\t\t\t\t$dow_output .= $this->swap_vars($vars, $match[1]);\n\t\t\t\t}\n\t\t\t\t$tagdata = str_replace($match[0], $dow_output, $tagdata);\n\t\t\t}\n\t\t}\n\n\t\t$tagdata = trim($tagdata).\"\\n\";\n\n\t\t// -------------------------------------\n\t\t// Now the rest\n\t\t// -------------------------------------\n\n\t\tif (isset(ee()->TMPL->var_pair['events']))\n\t\t{\n\t\t\tpreg_match(\n\t\t\t\t'/'.LD.'events'.RD.'(.*?)'.LD.preg_quote(T_SLASH, '/').'events'.RD.'/s',\n\t\t\t\t$tagdata,\n\t\t\t\t$match\n\t\t\t);\n\n\t\t\tif (isset($match[1]))\n\t\t\t{\n\t\t\t\t$each_event \t\t= trim($match[1]).\"\\n\";\n\t\t\t\t$tagdata \t\t\t= str_replace($match[0], $hash_event, $tagdata);\n\t\t\t\tee()->TMPL->tagdata = $each_event;\n\t\t\t\t$output_at \t\t\t= 'event';\n\t\t\t}\n\t\t}\n\n\t\tif (isset(ee()->TMPL->var_pair['display_each_hour']))\n\t\t{\n\t\t\tpreg_match(\n\t\t\t\t'/'.LD.'display_each_hour'.RD.'(.*?)'.LD.preg_quote(T_SLASH, '/').'display_each_hour'.RD.'/s',\n\t\t\t\t$tagdata,\n\t\t\t\t$match\n\t\t\t);\n\n\t\t\tif (isset($match[1]))\n\t\t\t{\n\t\t\t\t$each_hour \t\t\t= trim($match[1]).\"\\n\";\n\t\t\t\t$tagdata \t\t\t= str_replace($match[0], $hash_hour, $tagdata);\n\t\t\t\t$output_at \t\t\t= 'hour';\n\t\t\t}\n\t\t}\n\n\t\tif (isset(ee()->TMPL->var_pair['display_each_day']))\n\t\t{\n\t\t\tpreg_match(\n\t\t\t\t'/'.LD.'display_each_day'.RD.'(.*?)'.LD.preg_quote(T_SLASH, '/').'display_each_day'.RD.'/s',\n\t\t\t\t$tagdata,\n\t\t\t\t$match\n\t\t\t);\n\n\t\t\tif (isset($match[1]))\n\t\t\t{\n\t\t\t\t$each_day \t\t\t= trim($match[1]).\"\\n\";\n\t\t\t\t$tagdata \t\t\t= str_replace($match[0], $hash_day, $tagdata);\n\t\t\t\t$output_at \t\t\t= 'day';\n\t\t\t}\n\t\t}\n\n\t\tif (isset(ee()->TMPL->var_pair['display_each_week']))\n\t\t{\n\t\t\tpreg_match(\n\t\t\t\t'/'.LD.'display_each_week'.RD.'(.*?)'.LD.preg_quote(T_SLASH, '/').'display_each_week'.RD.'/s',\n\t\t\t\t$tagdata,\n\t\t\t\t$match\n\t\t\t);\n\n\t\t\tif (isset($match[1]))\n\t\t\t{\n\t\t\t\t$each_week \t\t\t= trim($match[1]).\"\\n\";\n\t\t\t\t$tagdata \t\t\t= str_replace($match[0], $hash_week, $tagdata);\n\t\t\t\t$output_at \t\t\t= 'week';\n\t\t\t}\n\t\t}\n\n\t\tif (isset(ee()->TMPL->var_pair['display_each_month']))\n\t\t{\n\t\t\tpreg_match(\n\t\t\t\t'/'.LD.'display_each_month'.RD.'(.*?)'.LD.preg_quote(T_SLASH, '/').'display_each_month'.RD.'/s',\n\t\t\t\t$tagdata,\n\t\t\t\t$match\n\t\t\t);\n\n\t\t\tif (isset($match[1]))\n\t\t\t{\n\t\t\t\t$each_month \t\t= trim($match[1]).\"\\n\";\n\t\t\t\t$tagdata \t\t\t= str_replace($match[0], $hash_month, $tagdata);\n\t\t\t\t$output_at \t\t\t= 'month';\n\t\t\t}\n\t\t}\n\n\t\tif (isset(ee()->TMPL->var_pair['display_each_year']))\n\t\t{\n\t\t\tpreg_match(\n\t\t\t\t'/'.LD.'display_each_year'.RD.'(.*?)'.LD.preg_quote(T_SLASH, '/').'display_each_year'.RD.'/s',\n\t\t\t\t$tagdata,\n\t\t\t\t$match\n\t\t\t);\n\n\t\t\tif (isset($match[1]))\n\t\t\t{\n\t\t\t\t$each_year \t\t\t= trim($match[1]).\"\\n\";\n\t\t\t\t$tagdata \t\t\t= str_replace($match[0], $hash_year, $tagdata);\n\t\t\t\t$output_at \t\t\t= 'year';\n\t\t\t}\n\t\t}\n\n\t\t// -------------------------------------\n\t\t// If there aren't any display_each_X var pairs, default to event\n\t\t// -------------------------------------\n\n\t\tif ($output_at == '')\n\t\t{\n\t\t\t$each_event \t= $tagdata;\n\t\t\t$tagdata \t\t= $hash_event;\n\t\t\t$output_at \t\t= 'event';\n\t\t}\n\n\t\t// -------------------------------------\n\t\t// Set the default date to the start of our range\n\t\t// -------------------------------------\n\n\t\t$start_blank = (\n\t\t\t$this->P->value('date_range_start') === FALSE AND\n\t\t\t$this->P->value('date_range_end') === FALSE\n\t\t);\n\n\t\t$start\t= $this->CDT->change_datetime(\n\t\t\t$this->P->value('date_range_start', 'year'),\n\t\t\t$this->P->value('date_range_start', 'month'),\n\t\t\t$this->P->value('date_range_start', 'day'),\n\t\t\t$this->P->value('date_range_start', 'hour'),\n\t\t\t$this->P->value('date_range_start', 'minute')\n\t\t);\n\n\t\t$end\t= $this->CDT->change_datetime(\n\t\t\t$this->P->value('date_range_end', 'year'),\n\t\t\t$this->P->value('date_range_end', 'month'),\n\t\t\t$this->P->value('date_range_end', 'day'),\n\t\t\t($start_blank ? '23' : $this->P->value('date_range_end', 'hour')),\n\t\t\t($start_blank ? '59' : $this->P->value('date_range_end', 'minute'))\n\t\t);\n\n\t\t$current_period_start\t= $start;\n\t\t$current_period_end\t\t= $end;\n\n\t\t$this->CDT->set_default($start);\n\t\t$this->CDT->reset();\n\n\t\t// -------------------------------------\n\t\t// If we are \"padding\" short weeks, modify our dates\n\t\t// -------------------------------------\n\n\t\tif ($this->P->value('pad_short_weeks') === TRUE)\n\t\t{\n\t\t\t// -------------------------------------\n\t\t\t// Adjust the start date backward to the first day of the week, if necessary\n\t\t\t// -------------------------------------\n\n\t\t\t$old_end = $end;\n\n\t\t\tif ($start['day_of_week'] != $this->first_day_of_week)\n\t\t\t{\n\t\t\t\t$offset = ($start['day_of_week'] > $this->first_day_of_week) ?\n\t\t\t\t\t$start['day_of_week'] - $this->first_day_of_week :\n\t\t\t\t\t7 - ($this->first_day_of_week - $start['day_of_week']);\n\n\t\t\t\t$start \t= $this->CDT->add_day(-$offset);\n\t\t\t\t$this->CDT->reset();\n\t\t\t}\n\n\t\t\t// -------------------------------------\n\t\t\t// Adjust the end date forward to the last day of the week, if necessary\n\t\t\t// -------------------------------------\n\n\t\t\t$last_dow = ($this->first_day_of_week > 0) ? $this->first_day_of_week - 1 : 6;\n\n\t\t\tif ($end['day_of_week'] != $last_dow)\n\t\t\t{\n\t\t\t\t$this->CDT->change_ymd($end['ymd']);\n\t\t\t\t$offset = ($end['day_of_week'] > $last_dow) ?\n\t\t\t\t\t7 - ($end['day_of_week'] - $last_dow) :\n\t\t\t\t\t$last_dow - $end['day_of_week'];\n\n\t\t\t\t$end \t= $this->CDT->add_day($offset);\n\t\t\t\t$this->CDT->reset();\n\t\t\t}\n\n\t\t\t$end['time']\t= $old_end['time'];\n\t\t\t$end['hour']\t= $old_end['hour'];\n\t\t\t$end['minute']\t= $old_end['minute'];\n\n\t\t\t$this->CDT->set_default($start);\n\t\t\t$this->P->set('date_range_start', $start);\n\t\t\t$this->P->set('date_range_end', $end);\n\t\t}\n\n\t\t//ee()->TMPL->log_item('Calendar: Date range start: '. $this->P->value('date_range_start', 'ymd'));\n\n\t\t//ee()->TMPL->log_item('Calendar: Date range end: '. $this->P->value('date_range_end', 'ymd'));\n\n\t\t// -------------------------------------\n\t\t// Let's go fetch some events\n\t\t// -------------------------------------\n\n\t\t/*$category = FALSE;\n\n\t\tif (isset(ee()->TMPL) AND\n\t\t\t is_object(ee()->TMPL) AND\n\t\t\t ee()->TMPL->fetch_param('category') !== FALSE AND\n\t\t\t ee()->TMPL->fetch_param('category') != ''\n\t\t)\n\t\t{\n\t\t\t$category = ee()->TMPL->fetch_param('category');\n\n\t\t\tunset(ee()->TMPL->tagparams['category']);\n\t\t}*/\n\n\t\t$ids \t\t\t= $this->data->fetch_event_ids($this->P /*, $category*/);\n\n\t\t//ee()->TMPL->log_item('Calendar:build_calendar() Fetching events. ' . count( $ids ) . ' events were found.');\n\n\t\t$entry_data \t= array();\n\t\t$events \t\t= array();\n\n\t\t// -------------------------------------\n\t\t// No events? You really need to work on your social calendar...\n\t\t// -------------------------------------\n\n\t\tif (empty($ids))\n\t\t{\n\t\t\t// -------------------------------------\n\t\t\t// If they used a no_results tag, let 'em have it\n\t\t\t// -------------------------------------\n\n\t\t\tif (ee()->TMPL->no_results != '')\n\t\t\t{\n\t\t\t\t//ee()->TMPL->log_item('Calendar:build_calendar() No results, going home');\n\t\t\t\treturn $this->no_results();\n\t\t\t}\n\n\t\t\t//ee()->TMPL->log_item('Calendar:build_calendar() No results, but staying around for the show');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// -------------------------------------\n\t\t\t// We only care about this stuff if:\n\t\t\t// \t* there's an {event}{/event} tag pair\n\t\t\t// \t* thar be one or more xxx_has_events variables\n\t\t\t// -------------------------------------\n\n\t\t\tif ($each_event != '' OR strpos(ee()->TMPL->tagdata, '_event_total') !== FALSE)\n\t\t\t{\n\t\t\t\twhile (TRUE)\n\t\t\t\t{\n\t\t\t\t\t//ee()->TMPL->log_item('Calendar:build_calendar() Firing up the ol Channel Module to try and process ' . count( $ids ) . ' events.');\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Fetch occurrence info\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t$occurrence_ids = $this->data->fetch_occurrence_entry_ids($ids);\n\n\t\t\t\t\t//ee()->TMPL->log_item('Calendar:build_calendar() ' . count( $occurrence_ids ) . ' occurrences were found.');\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// If the entry_id of the occurrence doesn't match the entry_id\n\t\t\t\t\t// of the entry, we need to fetch the occurrence data separately\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\tforeach ($occurrence_ids as $id => $data)\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach ($data as $oid => $o_entry_id)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif ($id != $o_entry_id)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$ids[$o_entry_id] = $id; //$o_entry_id;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Prepare tagdata for Calendar-specific variable pairs, which\n\t\t\t\t\t// we will process later.\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\tee()->TMPL->var_single['entry_id'] = 'entry_id';\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Prepare tagdata for Calendar-specific date variables, which\n\t\t\t\t\t// we will process later.\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t$var_dates = array(\n\t\t\t\t\t\t'event_start_date' \t=> FALSE,\n\t\t\t\t\t\t'event_start_time' \t=> FALSE,\n\t\t\t\t\t\t'event_end_date' \t=> FALSE,\n\t\t\t\t\t\t'event_end_time' \t=> FALSE\n\t\t\t\t\t);\n\n\t\t\t\t\tforeach (ee()->TMPL->var_single as $k => $v)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (($pos = strpos($k, ' format')) !== FALSE)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$name = substr($k, 0, $pos);\n\n\t\t\t\t\t\t\tif (array_key_exists($name, $var_dates))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$var_dates[$name][$k] \t\t= $v;\n\t\t\t\t\t\t\t\tee()->TMPL->var_single[$k] \t= $k;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t//\t----------------------------------------\n\t\t\t\t\t//\tInvoke Channel class\n\t\t\t\t\t//\t----------------------------------------\n\n\t\t\t\t\tif ( ! class_exists('Channel') )\n\t\t\t\t\t{\n\t\t\t\t\t\trequire PATH_MOD.'/channel/mod.channel.php';\n\t\t\t\t\t}\n\n\t\t\t\t\t$channel = new Channel();\n\n\t\t\t\t\t//need to remove limit here so huge amounts of events work\n\t\t\t\t\t$channel->limit = 1000000;\n\n\t\t\t\t\t// --------------------------------------------\n\t\t\t\t\t// Invoke Pagination for EE 2.4 and Above\n\t\t\t\t\t// --------------------------------------------\n\n\t\t\t\t\t$channel = $this->add_pag_to_channel($channel);\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Prepare parameters\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\tee()->TMPL->tagparams['entry_id'] = implode('|', array_keys($ids));\n\n\t\t\t\t\tif ($this->P->value('enable') != FALSE)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (is_array($this->P->value('enable')))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tee()->TMPL->tagparams['disable'] = implode('|', array_diff($disable, $this->P->value('enable')));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tee()->TMPL->tagparams['disable'] = implode('|', array_diff($disable, array($this->P->value('enable'))));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tee()->TMPL->tagparams['disable'] = implode('|', $disable);\n\t\t\t\t\t}\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Pre-process related data\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t//ee()->TMPL->tagdata = ee()->TMPL->assign_relationship_data( ee()->TMPL->tagdata );\n\n\t\t\t\t\tif (version_compare($this->ee_version, '2.6.0', '<'))\n\t\t\t\t\t{\n\t\t\t\t\t\tee()->TMPL->tagdata = ee()->TMPL->assign_relationship_data(\n\t\t\t\t\t\t\t$each_event\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\tee()->TMPL->var_single \t= array_merge( ee()->TMPL->var_single, ee()->TMPL->related_markers );\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Execute needed methods\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t$channel->fetch_custom_channel_fields();\n\n\t\t\t\t\t$channel->fetch_custom_member_fields();\n\n\t\t\t\t\t// --------------------------------------------\n\t\t\t\t\t// Pagination Tags Parsed Out\n\t\t\t\t\t// --------------------------------------------\n\n\t\t\t\t\t$channel = $this->fetch_pagination_data($channel);\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Querification\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t//for some reason without this in EE 2.8.x\n\t\t\t\t\t//pagination has some sort of dynamic detection\n\t\t\t\t\t//that it didn't in EE 2.7 and below and hoses our\n\t\t\t\t\t//pagination setup because we are doing it\n\t\t\t\t\t//manually later as this is just data gathering\n\t\t\t\t\t//for events.\n\t\t\t\t\tif (\n\t\t\t\t\t\tversion_compare($this->ee_version, '2.8.0', '>=') &&\n\t\t\t\t\t\tisset($channel->pagination)\n\t\t\t\t\t)\n\t\t\t\t\t{\n\t\t\t\t\t\t$channel->pagination->paginate = false;\n\t\t\t\t\t}\n\n\t\t\t\t\t$channel->build_sql_query();\n\n\t\t\t\t\tif ($channel->sql == '')\n\t\t\t\t\t{\n\t\t\t\t\t\t//ee()->TMPL->log_item('Calendar: Channel query empty');\n\n\t\t\t\t\t\tif (ee()->TMPL->no_results != '')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn $this->no_results();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\t$channel->query = ee()->db->query($channel->sql);\n\n\t\t\t\t\tif ($channel->query->num_rows == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t//ee()->TMPL->log_item('Calendar: Channel Module returned no results');\n\n\t\t\t\t\t\tif (ee()->TMPL->no_results != '')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn $this->no_results();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t//ee()->TMPL->log_item('Calendar:build_calendar() Channel module found ' . $channel->query->num_rows . ' results.');\n\t\t\t\t\t}\n\n\t\t\t\t\t$channel->query->result\t= $channel->query->result_array();\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Trim IDs and build events\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t$new_ids = array();\n\n\t\t\t\t\tforeach ($channel->query->result as $k => $row)\n\t\t\t\t\t{\n\t\t\t\t\t\t$new_ids[$row['entry_id']] = $ids[$row['entry_id']];\n\t\t\t\t\t}\n\n\t\t\t\t\t$event_data = $this->data->fetch_all_event_data($new_ids);\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Turn these IDs into events\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t$events = array();\n\n\t\t\t\t\t//ee()->TMPL->log_item('Calendar:build_calendar() Beginning event creation process.');\n\n\t\t\t\t\tif ( ! class_exists('Calendar_event'))\n\t\t\t\t\t{\n\t\t\t\t\t\trequire_once CALENDAR_PATH.'calendar.event.php';\n\t\t\t\t\t}\n\n\t\t\t\t\t$calendars = array();\n\n\t\t\t\t\tforeach ($event_data as $k => $edata)\n\t\t\t\t\t{\n\t\t\t\t\t\t$temp = new Calendar_event(\n\t\t\t\t\t\t\t$edata,\n\t\t\t\t\t\t\t$this->P->params['date_range_start']['value'],\n\t\t\t\t\t\t\t$this->P->params['date_range_end']['value']\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tif ( ! empty($temp->dates))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$temp->prepare_for_output();\n\t\t\t\t\t\t\t$events[$edata['entry_id']] = $temp;\n\t\t\t\t\t\t\t$calendars[$events[$edata['entry_id']]->default_data['calendar_id']] = array();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t//ee()->TMPL->log_item('Calendar:build_calendar() Event creation resulted in the creation of ' . count( $events ) . ' events.');\n\n\t\t\t\t\t//ee()->TMPL->log_item('Calendar:build_calendar() Event creation process finished.');\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Leaving so soon?\n\t\t\t\t\t// There's no point in continuing if we're just interested\n\t\t\t\t\t// in whether or not there are events on this day.\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\tif ($each_event == '')\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach (array_keys($events) as $id)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$entry_data[$id] = $id;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//ee()->TMPL->log_item('Calendar:build_calendar() Skipping further channel module processing because $each_event variable was empty string. ' . count( $entry_data ) . ' events were found and logged into the $entry_data array.');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Nor should we stay around if there's nothing to process\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\telseif (empty($calendars))\n\t\t\t\t\t{\n\t\t\t\t\t\t//ee()->TMPL->log_item('Calendar:build_calendar() Skipping further channel module processing because there were no calendars connected to the events found.');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Fetch information about the calendars\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t$calendars = $this->data->fetch_calendar_data_by_id(array_keys($calendars));\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Prepare the tagdata that will be parsed by the channel module\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t$blargle = '3138ad2081984be5dea40e593fd61f87';\n\t\t\t\t\t$bleegle = '6f8de301e6e6f2cd80ad99aa3a765b31';\n\t\t\t\t\t//ee()->TMPL->tagdata = $blargle . '[' . LD . \"entry_id\" . RD . ']' . $each_event . $bleegle;\n\t\t\t\t\tee()->TMPL->tagdata = $blargle .\n\t\t\t\t\t\t'[' . LD . \"entry_id\" . RD . ']' .\n\t\t\t\t\t\tee()->TMPL->tagdata .\n\t\t\t\t\t\t$bleegle;\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Prep variable aliases\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t$variables = array(\n\t\t\t\t\t\t'title'\t\t\t=> 'event_title',\n\t\t\t\t\t\t'url_title'\t\t=> 'event_url_title',\n\t\t\t\t\t\t'entry_id'\t\t=> 'event_id',\n\t\t\t\t\t\t'author_id'\t\t=> 'event_author_id',\n\t\t\t\t\t\t'author'\t\t=> 'event_author',\n\t\t\t\t\t\t'status'\t\t=> 'event_status'\n\t\t\t\t\t);\n\n\t\t\t\t\t//custom variables with the letters 'url' are borked in\n\t\t\t\t\t//EE 2.6. Bug reported, but this should fix.\n\t\t\t\t\t//https://support.ellislab.com/bugs/detail/19337\n\t\t\t\t\tif (version_compare($this->ee_version, '2.6.0', '>='))\n\t\t\t\t\t{\n\t\t\t\t\t\t$variables['url_title'] = 'event_borked_title';\n\n\t\t\t\t\t\tee()->TMPL->var_single['event_borked_title'] = 'event_borked_title';\n\n\t\t\t\t\t\tunset(ee()->TMPL->var_single['event_url_title']);\n\n\t\t\t\t\t\tee()->TMPL->tagdata = str_replace(\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\tLD . 'event_url_title' . RD,\n\t\t\t\t\t\t\t\t'\"event_url_title\"',\n\t\t\t\t\t\t\t\t\"'event_url_title'\"\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\tLD . 'event_borked_title' . RD,\n\t\t\t\t\t\t\t\t'\"event_borked_title\"',\n\t\t\t\t\t\t\t\t\"'event_borked_title'\"\n\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tee()->TMPL->tagdata\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tee()->TMPL->var_single['event_calendar_borked_title'] = 'event_calendar_borked_title';\n\n\t\t\t\t\t\tunset(ee()->TMPL->var_single['event_calendar_url_title']);\n\n\t\t\t\t\t\tee()->TMPL->tagdata = str_replace(\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\tLD . 'event_calendar_url_title' . RD,\n\t\t\t\t\t\t\t\t'\"event_calendar_url_title\"',\n\t\t\t\t\t\t\t\t\"'event_calendar_url_title'\"\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\tLD . 'event_calendar_borked_title' . RD,\n\t\t\t\t\t\t\t\t'\"event_calendar_borked_title\"',\n\t\t\t\t\t\t\t\t\"'event_calendar_borked_title'\"\n\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tee()->TMPL->tagdata\n\t\t\t\t\t\t);\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// --------------------------------------------\n\t\t\t\t\t// Typography\n\t\t\t\t\t// --------------------------------------------\n\n\t\t\t\t\tee()->load->library('typography');\n\t\t\t\t\tee()->typography->initialize();\n\t\t\t\t\tee()->typography->convert_curly = FALSE;\n\n\t\t\t\t\t$channel->fetch_categories();\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Add variables to the query result\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\tforeach ($channel->query->result as $k => $row)\n\t\t\t\t\t{\n\t\t\t\t\t\t$entry_id = $row['entry_id'];\n\n\t\t\t\t\t\t$channel->query->result[$k]['author'] = ($row['screen_name'] != '') ? $row['screen_name'] : $row['username'];\n\n\t\t\t\t\t\t//ee()->TMPL->log_item('Calendar:build_calendar() We\\'re in the channel query result loop. Entry id is ' . $entry_id );\n\n\t\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t\t// Skip this result if the event data doesn't exist\n\t\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t\tif (! isset($events[$ids[$entry_id]]))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tunset($channel->query->result[$k]);\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$channel->query->result[$k]['edited_occurrence'] \t= FALSE;\n\t\t\t\t\t\t$channel->query->result[$k]['event_parent_id']\t\t= ($ids[$entry_id] == $entry_id) ? 0 : $ids[$entry_id];\n\n\t\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t\t// If this entry_id is not in the $events array, this is an edited occurrence\n\t\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t\tif (! isset($events[$entry_id]))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t\t\t// Add this info to the $events array\n\t\t\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t\t\t$events[$entry_id] = clone $events[$ids[$entry_id]];\n\n\t\t\t\t\t\t\t$channel->query->result[$k]['edited_occurrence'] = TRUE;\n\n\t\t\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t\t\t// Correct the info\n\t\t\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t\t\tforeach ($events[$entry_id]->occurrences as $ymd => $times)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tforeach ($times as $time => $data)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif ($data['entry_id'] != $entry_id)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tunset($events[$entry_id]->occurrences[$ymd][$time], $events[$entry_id]->dates[$ymd][$time]);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tunset($events[$data['event_id']]->occurrences[$ymd][$time], $events[$data['event_id']]->dates[$ymd][$time]);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// NOTE: Requires PHP >= 5.1.0\n\t\t\t\t\t\t\t$events[$entry_id]->dates = array_intersect_key($events[$entry_id]->dates, $events[$entry_id]->occurrences);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t\t// Alias\n\t\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t\tforeach ($variables as $old => $new)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif ($old == 'title')\n\t\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\t\t$channel->query->result[$k][$old]\t= ee()->typography->parse_type(\n\t\t\t\t\t\t\t\t\t$channel->query->result[$k][$old],\n\t\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t\t'text_format' \t=> 'lite',\n\t\t\t\t\t\t\t\t\t\t'html_format' \t=> 'none',\n\t\t\t\t\t\t\t\t\t\t'auto_links' \t=> 'n',\n\t\t\t\t\t\t\t\t\t\t'allow_img_url' => 'no'\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t$channel->query->result[$k][$new]\t= $channel->query->result[$k][$old];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$channel->query->result[$k][$new]\t= $channel->query->result[$k][$old];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t\t// Calendar variables\n\t\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t\tforeach ($calendars[$events[$entry_id]->default_data['calendar_id']] as $key => $val)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$channel->query->result[$k][$key] = $val;\n\n\t\t\t\t\t\t\tif ($key == 'calendar_url_title' AND\n\t\t\t\t\t\t\t\tversion_compare($this->ee_version, '2.6.0', '>='))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$channel->query->result[$k]['event_calendar_borked_title'] = $val;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$channel->query->result[$k]['event_'.$key] = $val;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\n\t\t\t\t\t//\t----------------------------------------\n\t\t\t\t\t//\tRedeclare\n\t\t\t\t\t//\t----------------------------------------\n\t\t\t\t\t//\tWe will reassign the $channel->query->result with our\n\t\t\t\t\t//\treordered array of values. Thank you PHP for being so fast with array loops.\n\t\t\t\t\t//\t----------------------------------------\n\n\t\t\t\t\t$super_temp_fake = $channel->query->result_array = $channel->query->result;\n\n\t\t\t\t\t$channel->fetch_categories();\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Handle {title} and {event_title} differently\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\tee()->TMPL->tagdata\t= str_replace(\n\t\t\t\t\t\tLD . 'title' . RD,\n\t\t\t\t\t\t'6c21bdf1bfdab13bc8df8fcfeb2763a6' . LD . 'entry_id' . RD,\n\t\t\t\t\t\tee()->TMPL->tagdata\n\t\t\t\t\t);\n\n\t\t\t\t\tee()->TMPL->tagdata\t= str_replace(\n\t\t\t\t\t\tLD . 'event_title' . RD,\n\t\t\t\t\t\t'6c21bdf1bfdab13bc8df8fcfeb2763a6' . LD . 'entry_id' . RD,\n\t\t\t\t\t\tee()->TMPL->tagdata\n\t\t\t\t\t);\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Remove \"ignore\" prefixes\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\tee()->TMPL->tagdata = str_replace(\n\t\t\t\t\t\t'calendar_ignore_',\n\t\t\t\t\t\t'',\n\t\t\t\t\t\tee()->TMPL->tagdata\n\t\t\t\t\t);\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Parse Weblog stuff\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t//ee()->TMPL->log_item('Calendar: Parsing Weblog stuff');\n\n\t\t\t\t\t$channel->parse_channel_entries();\n\n\t\t\t\t\tforeach ($super_temp_fake as $k => $data)\n\t\t\t\t\t{\n\t\t\t\t\t\t$channel->return_data = str_replace(\n\t\t\t\t\t\t\t'6c21bdf1bfdab13bc8df8fcfeb2763a6' . $data['entry_id'],\n\t\t\t\t\t\t\t$super_temp_fake[$k]['title'],\n\t\t\t\t\t\t\t$channel->return_data\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Related entries\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t//ee()->TMPL->log_item('Calendar: Parsing related entries');\n\n\t\t\t\t\tif (version_compare($this->ee_version, '2.6.0', '<'))\n\t\t\t\t\t{\n\t\t\t\t\t\tif (count(ee()->TMPL->related_data) > 0 AND\n\t\t\t\t\t\t\tcount($channel->related_entries) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$channel->parse_related_entries();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (count(ee()->TMPL->reverse_related_data) > 0 AND\n\t\t\t\t\t\t\tcount($channel->reverse_related_entries) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$channel->parse_reverse_related_entries();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Collect the parsed data for use later\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\tpreg_match_all('/' . $blargle . '\\[(\\d+)\\](.*?)' . $bleegle . '/s', $channel->return_data, $matches);\n\t\t\t\t\tforeach ($matches[0] as $k => $match)\n\t\t\t\t\t{\n\t\t\t\t\t\t$entry_data[$matches[1][$k]] = $matches[2][$k];\n\t\t\t\t\t}\n\n\t\t\t\t\tunset($channel);\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Stop the insanity!\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//ee()->TMPL->log_item('Calendar:build_calendar() Channel module stuff done');\n\n\t\t// -------------------------------------\n\t\t// Build the calendar\n\t\t// -------------------------------------\n\n\t\t//ee()->TMPL->log_item('Calendar: Starting to build the calendar');\n\n\t\t$start_year\t\t= $start['year'];\n\t\t$start_month\t= $start['month'];\n\t\t$start_day\t\t= $start['day'];\n\t\t$end_year\t\t= $end['year'];\n\t\t$end_month\t\t= $end['month'];\n\t\t$end_day\t\t= $end['day'];\n\t\t$w\t\t\t\t= 0;\n\n\t\t$this->CDT->reset();\n\n\t\tif ($this->P->value('pad_short_weeks') === TRUE)\n\t\t{\n\t\t\t$week_counter = 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$week_counter = ($this->CDT->day_of_week >= $this->first_day_of_week) ?\n\t\t\t\t\t\t\t\t$this->CDT->day_of_week - $this->first_day_of_week :\n\t\t\t\t\t\t\t\t7 + $this->CDT->day_of_week - $this->first_day_of_week;\n\t\t}\n\n\t\t$output = '';\n\t\t$week_temp = $month_temp = $year_temp = '';\n\t\t$day_count = 0;\n\n\t\t$next_CDT = $prev_CDT = $start;\n\n\t\t$all_day = array();\n\t\t$event_array = array();\n\n\t\t// -------------------------------------\n\t\t// Prepare the events\n\t\t// -------------------------------------\n\n\t\t//ee()->TMPL->log_item('Calendar: Preparing events');\n\n\t\tforeach ($events as $id => $event)\n\t\t{\n\t\t\t//prevent missing entry data from attempting to display and causing errors\n\t\t\tif ( ! isset($entry_data[$event->default_data['entry_id']]))\n\t\t\t{\n\t\t\t\tunset($events[$id]);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (empty($event->dates))\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tforeach ($event->dates as $ymd => $items)\n\t\t\t{\n\t\t\t\tforeach ($items as $time => $ddata)\n\t\t\t\t{\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// It was over before it started\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\tif ($ddata['end_date']['ymd'].$ddata['end_date']['time'] <\n\t\t\t\t\t\t$this->P->value('date_range_start', 'ymd') .\n\t\t\t\t\t\t$this->P->value('date_range_start', 'time'))\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// ...or the inverse\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\tif ($ddata['date']['ymd'].$ddata['date']['time'] >\n\t\t\t\t\t\t $this->P->value('date_range_end', 'ymd') .\n\t\t\t\t\t\t $this->P->value('time_range_end', 'time'))\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// If the start date of the event is less than the first\n\t\t\t\t\t// day of the calendar, we've got ourselves a hangover.\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\tif ($ddata['date']['ymd'] < $this->P->value('date_range_start', 'ymd'))\n\t\t\t\t\t{\n\t\t\t\t\t\t$event_array[$this->P->value('date_range_start', 'ymd')]['all_day'][$id]\t= $id;\n\t\t\t\t\t\t$events[$id]->dates[$this->P->value('date_range_start', 'ymd')]\t\t\t\t= $events[$id]->dates[$ymd];\n\t\t\t\t\t}\n\t\t\t\t\telseif ($ddata['all_day'] === TRUE)\n\t\t\t\t\t{\n\t\t\t\t\t\t$event_array[$ymd]['all_day'][$id] = $id;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif ($ddata['multi_day'])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$event_array[$ymd]['all_day'][$id] = $id;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$start_hour\t= str_pad($ddata['date']['hour'], 2, 0, STR_PAD_LEFT);\n\t\t\t\t\t\t\t$start_min\t= str_pad($ddata['date']['minute'], 2, 0, STR_PAD_LEFT);\n\t\t\t\t\t\t\t$end_hour\t= str_pad($ddata['end_date']['hour'], 2, 0, STR_PAD_LEFT);\n\t\t\t\t\t\t\t$end_min\t= str_pad($ddata['end_date']['minute'], 2, 0, STR_PAD_LEFT);\n\t\t\t\t\t\t\t$event_array[$ymd][$start_hour][$start_min][$end_hour][$end_min][$id] = $id;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\n\n\t\t\t// -------------------------------------\n\t\t\t// Aliases\n\t\t\t// -------------------------------------\n\n\t\t\t$events[$id]->default_data['first_date']\t= $events[$id]->default_data['start_date'];\n\t\t}\n\n\t\t$this->CDT->reset();\n\n\t\t// -------------------------------------\n\t\t// Prune the event array, if there's an event limit.\n\t\t// NOTE: apply_event_limit() also sorts the array for us.\n\t\t// -------------------------------------\n\n\t\t//--------------------------------------------\n\t\t//\tcount all events for tag and pagination\n\t\t//--------------------------------------------\n\n\t\t$this->event_timeframe_total = $this->count_event_results($event_array);\n\n\t\t//--------------------------------------------\n\t\t//\tpagination\n\t\t//--------------------------------------------\n\n\t\t$this->paginate = FALSE;\n\n\t\tif ($this->P->value('event_limit') > 0 AND\n\t\t\t$this->event_timeframe_total > $this->P->value('event_limit'))\n\t\t{\n\t\t\t//get pagination info\n\t\t\t$pagination_data = $this->universal_pagination(array(\n\t\t\t\t'total_results'\t\t\t=> $this->event_timeframe_total,\n\t\t\t\t//had to remove this jazz before so it didn't get iterated over\n\t\t\t\t'tagdata'\t\t\t\t=> $tagdata . $this->paginate_tagpair_data,\n\t\t\t\t'limit'\t\t\t\t\t=> $this->P->value('event_limit'),\n\t\t\t\t'uri_string'\t\t\t=> ee()->uri->uri_string,\n\t\t\t\t'paginate_prefix'\t\t=> 'calendar_'\n\t\t\t));\n\n\t\t\t// -------------------------------------------\n\t\t\t// 'calendar_events_create_pagination' hook.\n\t\t\t// - Let devs maniuplate the pagination display\n\n\t\t\tif (ee()->extensions->active_hook('calendar_build_calendar_create_pagination') === TRUE)\n\t\t\t{\n\t\t\t\t$pagination_data = ee()->extensions->call(\n\t\t\t\t\t'calendar_build_calendar_create_pagination',\n\t\t\t\t\t$this,\n\t\t\t\t\t$pagination_data\n\t\t\t\t);\n\t\t\t}\n\t\t\t//\n\t\t\t// -------------------------------------------\n\n\t\t\t//if we paginated, sort the data\n\t\t\tif ($pagination_data['paginate'] === TRUE)\n\t\t\t{\n\t\t\t\t$this->paginate\t\t\t= $pagination_data['paginate'];\n\t\t\t\t$this->page_next\t\t= $pagination_data['page_next'];\n\t\t\t\t$this->page_previous\t= $pagination_data['page_previous'];\n\t\t\t\t$this->p_page\t\t\t= $pagination_data['pagination_page'];\n\t\t\t\t$this->current_page \t= $pagination_data['current_page'];\n\t\t\t\t$this->pager \t\t\t= $pagination_data['pagination_links'];\n\t\t\t\t$this->basepath\t\t\t= $pagination_data['base_url'];\n\t\t\t\t$this->total_pages\t\t= $pagination_data['total_pages'];\n\t\t\t\t$this->paginate_data\t= $pagination_data['paginate_tagpair_data'];\n\t\t\t\t$this->page_count\t\t= $pagination_data['page_count'];\n\t\t\t\t//$tagdata\t\t\t\t= $pagination_data['tagdata'];\n\t\t\t}\n\t\t}\n\n\t\t//--------------------------------------------\n\t\t//\tevent limiter\n\t\t//--------------------------------------------\n\n\t\t$offset = (\n\t\t\tee()->TMPL->fetch_param('event_offset') ?\n\t\t\t\tee()->TMPL->fetch_param('event_offset') :\n\t\t\t\t0\n\t\t);\n\n\t\t$page \t= (($this->current_page -1) * $this->P->value('event_limit'));\n\n\t\tif ($page > 0)\n\t\t{\n\t\t\t$offset += $page;\n\t\t}\n\n\t\t$event_array = $this->apply_event_limit(\n\t\t\t$event_array,\n\t\t\t$this->P->value('event_limit'),\n\t\t\t$offset\n\t\t);\n\n\t\t// -------------------------------------\n\t\t// Loopage\n\t\t// -------------------------------------\n\n\t\t//ee()->TMPL->log_item('Calendar: Beginning date loops');\n\n\t\t$week_event_count\t= 0;\n\t\t$event_count\t\t= 0;\n\t\t$year_tick\t\t\t= 0;\n\t\t$month_tick\t\t\t= 0;\n\n\t\tfor ($y = $start_year; $y <= $end_year; $y++)\n\t\t{\n\t\t\t$year_event_count = 0;\n\n\t\t\t//blank out\n\t\t\t$this->counted['year'] = array();\n\n\t\t\t$mx = ($y == $start_year) ? $start_month : 1;\n\t\t\t$my = ($y == $end_year) ? $end_month : 12;\n\n\t\t\t$year_ymd_cache = $this->CDT->ymd;\n\n\n\t\t\tfor ($m = $mx; $m <= $my; $m++)\n\t\t\t{\n\t\t\t\t$month_ymd_cache \t= $this->CDT->ymd;\n\n\n\t\t\t\t$month_event_count = 0;\n\n\t\t\t\t//blank out\n\t\t\t\t$this->counted['month'] = array();\n\n\t\t\t\t$dx = ($y == $start_year AND $m == $start_month) ?\n\t\t\t\t\t\t$start_day :\n\t\t\t\t\t\t1;\n\n\t\t\t\t$dy = ($y == $end_year AND $m == $end_month) ?\n\t\t\t\t\t\t$end_day :\n\t\t\t\t\t\t$this->CDT->days_in_month($m, $y);\n\n\t\t\t\tfor ($d = $dx; $d <= $dy; $d++)\n\t\t\t\t{\n\t\t\t\t\t$day_ymd_cache \t= $this->CDT->ymd;\n\t\t\t\t\t$day_tick\t\t= 0;\n\n\t\t\t\t\t$this->CDT->change_date($y, $m, $d);\n\t\t\t\t\t$this->CDT->set_default($this->CDT->date_array());\n\n\t\t\t\t\t$ymd = $this->CDT->ymd;\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Prepare counts and totals, also\n\t\t\t\t\t// altered later in the loop in some cases\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t$day_event_count = 0;\n\t\t\t\t\t$day_event_total = 0;\n\n\t\t\t\t\t//blank out\n\t\t\t\t\t$this->counted['day'] = array();\n\n\t\t\t\t\tif (! isset($event_array[$ymd])) $event_array[$ymd] = array();\n\n\t\t\t\t\t$day_event_total\t= $this->count_events(\n\t\t\t\t\t\t$ymd,\n\t\t\t\t\t\t$event_array,\n\t\t\t\t\t\t$all_day,\n\t\t\t\t\t\t'day',\n\t\t\t\t\t\t$events\n\t\t\t\t\t);\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Start events for the day\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t//ee()->TMPL->log_item('Calendar: Beginning ' . $ymd . count( $event_array[$ymd] ) . ' events for this day.');\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// This looks a little goofy, but it\n\t\t\t\t\t// prevents extra years/months\n\t\t\t\t\t// showing up thanks to padded weeks\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t$day_count++;\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Week stuff\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\tif ($week_counter % 7 == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t//blank out\n\t\t\t\t\t\t$this->counted['week'] = array();\n\n\t\t\t\t\t\t$w = str_pad($this->CDT->week_number, 2, 0, STR_PAD_LEFT);\n\t\t\t\t\t}\n\n\t\t\t\t\t$week_counter++;\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// \"next\" stuff\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t$next_y = ($m == 12 AND $d == 31) ? $y+1 : $y;\n\t\t\t\t\t$next_m = ($d == $this->CDT->days_in_month()) ? $m + 1 : $m;\n\t\t\t\t\t$next_w = ($week_counter % 7 == 0) ? $w + 1 : $w;\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Yodelers of Mass Destruction\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t$find\t\t\t= '';\n\t\t\t\t\t$replace\t\t= '';\n\t\t\t\t\t$hour_events\t= array();\n\t\t\t\t\t$last_day\t\t= (\n\t\t\t\t\t\t$y == $end_year AND\n\t\t\t\t\t\t$m == $end_month AND\n\t\t\t\t\t\t$d == $end_day\n\t\t\t\t\t) ? TRUE : FALSE;\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Remove \"all day\" stragglers\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\tforeach ($all_day as $i => $stuff)\n\t\t\t\t\t{\n\t\t\t\t\t\tif ($ymd > $stuff['end_ymd'])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tunset($all_day[$i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Each event\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// \t$each_event contains the formatting\n\t\t\t\t\t// \tto use for displaying the contents\n\t\t\t\t\t// \tof an event on a given day in the calendar.\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\tif ($each_event != '')\n\t\t\t\t\t{\n\t\t\t\t\t\t$event_output = '';\n\n\t\t\t\t\t\tif ( ! empty($event_array[$ymd]))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tforeach ($event_array[$ymd] as $start_hour => $sh_data)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$hour_event_count\t= 0;\n\t\t\t\t\t\t\t\t$hour_event_total\t= count($sh_data);\n\n\t\t\t\t\t\t\t\tif ($start_hour == 'all_day')\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$prev_index = 0;\n\t\t\t\t\t\t\t\t\t$index = 0;\n\n\t\t\t\t\t\t\t\t\tforeach ($sh_data as $i => $id)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t\t\t\t\t\t// Multi-day events get one time key, regular\n\t\t\t\t\t\t\t\t\t\t// all day events get another\n\t\t\t\t\t\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t\t\t\t\t\t$time_key = '00002400';\n\n\t\t\t\t\t\t\t\t\t\tif ( ! isset( $events[$id]->dates[$ymd][$time_key]))\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t//so in some rare situations this\n\t\t\t\t\t\t\t\t\t\t\t//can come to us without being reset?\n\t\t\t\t\t\t\t\t\t\t\t//I hate moving pointers :p\n\t\t\t\t\t\t\t\t\t\t\treset($events[$id]->dates[$ymd]);\n\n\t\t\t\t\t\t\t\t\t\t\t$time_key = key($events[$id]->dates[$ymd]);\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t$event_count++;\n\t\t\t\t\t\t\t\t\t\t$year_event_count++;\n\t\t\t\t\t\t\t\t\t\t$month_event_count++;\n\t\t\t\t\t\t\t\t\t\t$week_event_count++;\n\t\t\t\t\t\t\t\t\t\t$day_event_count++;\n\t\t\t\t\t\t\t\t\t\t$hour_event_count++;\n\n\t\t\t\t\t\t\t\t\t\t$vars = $this->get_occurrence_vars($id, $events[$id], $ymd, $time_key);\n\n\t\t\t\t\t\t\t\t\t\t$vars['conditional']['event_all_day']\t= TRUE;\n\n\t\t\t\t\t\t\t\t\t\t$vars['single']\t+= array(\n\t\t\t\t\t\t\t\t\t\t\t'event_count'\t\t\t\t=> $this->create_count_hash('event_count'),\n\t\t\t\t\t\t\t\t\t\t\t'year_event_count'\t\t\t=> $this->create_count_hash('year_event_count'),\n\t\t\t\t\t\t\t\t\t\t\t'month_event_count'\t\t\t=> $this->create_count_hash('month_event_count'),\n\t\t\t\t\t\t\t\t\t\t\t'week_event_count'\t\t\t=> $this->create_count_hash('week_event_count'),\n\t\t\t\t\t\t\t\t\t\t\t'day_event_count'\t\t\t=> $this->create_count_hash('day_event_count'),\n\t\t\t\t\t\t\t\t\t\t\t'hour_event_count'\t\t\t=> $this->create_count_hash('hour_event_count'),\n\t\t\t\t\t\t\t\t\t\t\t'all_day_event_index_difference' => $index - $prev_index,\n\t\t\t\t\t\t\t\t\t\t\t'all_day_event_index'\t\t=> $index++,\n\n\t\t\t\t\t\t\t\t\t\t\t'event_duration_minutes'\t=> (isset($events[$id]->dates[$ymd][$time_key])) ?\n\t\t\t\t\t\t\t\t\t\t\t\t\t$events[$id]->dates[$ymd][$time_key]['duration']['minutes'] :\n\t\t\t\t\t\t\t\t\t\t\t\t\t$events[$id]->default_data['duration']['minutes'],\n\n\t\t\t\t\t\t\t\t\t\t\t'event_duration_hours'\t\t=> (isset($events[$id]->dates[$ymd][$time_key])) ?\n\t\t\t\t\t\t\t\t\t\t\t\t\t$events[$id]->dates[$ymd][$time_key]['duration']['hours'] :\n\t\t\t\t\t\t\t\t\t\t\t\t\t$events[$id]->default_data['duration']['hours'],\n\n\t\t\t\t\t\t\t\t\t\t\t'event_duration_days'\t\t=> (isset($events[$id]->dates[$ymd][$time_key])) ?\n\t\t\t\t\t\t\t\t\t\t\t\t\t$events[$id]->dates[$ymd][$time_key]['duration']['days'] :\n\t\t\t\t\t\t\t\t\t\t\t\t\t$events[$id]->default_data['duration']['days']\n\t\t\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t\t\t//we have to remove conditionals for these items as well\n\t\t\t\t\t\t\t\t\t\t//because the dummy hashes screw with them\n\t\t\t\t\t\t\t\t\t\t$output_data = $this->remove_post_parse_conditionals(array(\n\t\t\t\t\t\t\t\t\t\t\t'event_count'\t=> $vars['single']['event_count'],\n\t\t\t\t\t\t\t\t\t\t\t'year_event_count'\t\t=> $vars['single']['year_event_count'],\n\t\t\t\t\t\t\t\t\t\t\t'month_event_count' \t=> $vars['single']['month_event_count'],\n\t\t\t\t\t\t\t\t\t\t\t'week_event_count'\t\t=> $vars['single']['week_event_count'],\n\t\t\t\t\t\t\t\t\t\t\t'day_event_count'\t\t=> $vars['single']['day_event_count'],\n\t\t\t\t\t\t\t\t\t\t\t'hour_event_count'\t\t=> $vars['single']['hour_event_count']\n\t\t\t\t\t\t\t\t\t\t), $entry_data[$id]);\n\n\t\t\t\t\t\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t\t\t\t\t\t// If we're outputting at the event level, then we have\n\t\t\t\t\t\t\t\t\t\t// to spit out the all day stuff here.\n\t\t\t\t\t\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t\t\t\t\t\tif ($output_at == 'event')\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t$event_output .= $this->swap_vars($vars, $output_data);\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t//shortcut\n\t\t\t\t\t\t\t\t\t\t$evtk =& $events[$id]->dates[$ymd][$time_key];\n\n\t\t\t\t\t\t\t\t\t\t$array = array(\n\t\t\t\t\t\t\t\t\t\t\t'output'\t\t\t\t\t=> $output_data,\n\t\t\t\t\t\t\t\t\t\t\t'vars'\t\t\t\t\t\t=> $vars,\n\t\t\t\t\t\t\t\t\t\t\t'first_day'\t\t\t\t\t=> $evtk['date']['ymd'],\n\t\t\t\t\t\t\t\t\t\t\t'last_day'\t\t\t\t\t=> $evtk['end_date']['ymd'],\n\t\t\t\t\t\t\t\t\t\t\t'start_ymd'\t\t\t\t\t=> $evtk['date']['ymd'],\n\t\t\t\t\t\t\t\t\t\t\t'end_ymd'\t\t\t\t\t=> $evtk['end_date']['ymd'],\n\t\t\t\t\t\t\t\t\t\t\t'time'\t\t\t\t\t\t=> $time_key,\n\t\t\t\t\t\t\t\t\t\t\t'id'\t\t\t\t\t\t=> $id,\n\t\t\t\t\t\t\t\t\t\t\t'event_duration_minutes'\t=> $evtk['duration']['minutes'],\n\t\t\t\t\t\t\t\t\t\t\t'event_duration_hours'\t\t=> $evtk['duration']['hours'],\n\t\t\t\t\t\t\t\t\t\t\t'event_duration_days'\t\t=> $evtk['duration']['days']\n\t\t\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t\t\t//unset($event_array[$ymd]['all_day'][$id]);\n\n\t\t\t\t\t\t\t\t\t\t$count\t\t= (empty($all_day)) ? 0 : max(array_keys($all_day));\n\t\t\t\t\t\t\t\t\t\t$inserted\t= FALSE;\n\t\t\t\t\t\t\t\t\t\t$prev_index\t= $index + 1;\n\n\t\t\t\t\t\t\t\t\t\tif (! in_array($array, $all_day))\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tfor ($i = 0; $i <= $count; $i++)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t\t\t\t\t\t\t\t// Find a spot for this event\n\t\t\t\t\t\t\t\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t\t\t\t\t\t\t\tif (! isset($all_day[$i]))\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t$all_day[$i] = $array;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$inserted = TRUE;\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\tif ($inserted === FALSE)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t$all_day[$i] = $array;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tksort($all_day);\n\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif ($each_hour != '')\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$hour_events[$start_hour] = $sh_data;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tforeach ($sh_data as $start_minute => $sm_data)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tforeach ($sm_data as $end_hour => $eh_data)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tforeach ($eh_data as $end_minute => $event_ids)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tforeach ($event_ids as $id)\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (isset($entry_data[$id]))\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$start_hour\t= str_pad($start_hour, 2, 0, STR_PAD_LEFT);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$start_min\t= str_pad($start_min, 2, 0, STR_PAD_LEFT);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$end_hour\t= str_pad($end_hour, 2, 0, STR_PAD_LEFT);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$end_min\t= str_pad($end_min, 2, 0, STR_PAD_LEFT);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$time_key = $start_hour.$start_minute.$end_hour.$end_minute;\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif ( ! isset($events[$id]->dates[$ymd][$time_key]))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$event_count++;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$year_event_count++;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$month_event_count++;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$week_event_count++;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$day_event_count++;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$hour_event_count++;\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$vars = $this->get_occurrence_vars(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$id,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$events[$id],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$ymd,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$start_hour . $start_minute . $end_hour . $end_minute\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$vars['single']['event_duration_minutes']\t= $events[$id]->dates[$ymd][$time_key]['duration']['minutes'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$vars['single']['event_duration_hours']\t\t= $events[$id]->dates[$ymd][$time_key]['duration']['hours'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$vars['single']['event_duration_days']\t\t= $events[$id]->dates[$ymd][$time_key]['duration']['days'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$vars['single']['event_count']\t\t\t\t= $this->create_count_hash('event_count');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$vars['single']['year_event_count']\t\t\t= $this->create_count_hash('year_event_count');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$vars['single']['month_event_count']\t\t= $this->create_count_hash('month_event_count');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$vars['single']['week_event_count']\t\t\t= $this->create_count_hash('week_event_count');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$vars['single']['day_event_count']\t\t\t= $this->create_count_hash('day_event_count');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$vars['single']['hour_event_count']\t\t\t= $this->create_count_hash('hour_event_count');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$vars['single']['day_event_total']\t\t\t= $day_event_total;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$vars['single']['hour_event_total']\t\t\t= $hour_event_total;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$vars['single']['all_day_event_index']\t\t= 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$vars['single']['all_day_event_index_difference'] = 0;\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t//we have to remove conditionals for these items as well\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t//because the dummy hashes screw with them\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$output_data = $this->remove_post_parse_conditionals(array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'event_count'\t\t\t=> $vars['single']['event_count'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'year_event_count'\t\t=> $vars['single']['year_event_count'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'month_event_count'\t\t=> $vars['single']['month_event_count'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'week_event_count'\t\t=> $vars['single']['week_event_count'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'day_event_count'\t\t=> $vars['single']['day_event_count'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'hour_event_count'\t\t=> $vars['single']['hour_event_count']\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t), $entry_data[$id]);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$event_output .= $this->swap_vars($vars, $output_data);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//parse day event counts\n\t\t\t\t\t\t\t$event_output = $this->parse_count_hashes('hour_event_count', $event_output);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$find = $hash_event;\n\t\t\t\t\t\t$replace = $event_output;\n\n\t\t\t\t\t\tif ($output_at == 'event')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$output .= $replace;\n\t\t\t\t\t\t\t$replace = '';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// If $each_event is empty, $all_day never gets filled. Let's fix that.\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\tif ($each_event == '' AND isset($event_array[$ymd]['all_day']))\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach ($event_array[$ymd]['all_day'] as $id)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$time_key\t\t\t= (! isset( $events[$id]->dates[$ymd]['00002400'])) ?\n\t\t\t\t\t\t\t\t\t\t\t\t\tkey($events[$id]->dates[$ymd]) :\n\t\t\t\t\t\t\t\t\t\t\t\t\t'00002400';\n\n\t\t\t\t\t\t\t$data['end_ymd']\t= $events[$id]->dates[$ymd][$time_key]['end_date']['ymd'];\n\n\t\t\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t\t\t// This stuff can be gibberish since it'll never show, but we\n\t\t\t\t\t\t\t// provide it because other parts of the code expect it to exist\n\t\t\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t\t\t$data['time']\t\t= '';\n\t\t\t\t\t\t\t$data['vars']\t\t= array();\n\t\t\t\t\t\t\t$data['first_day']\t= FALSE;\n\t\t\t\t\t\t\t$data['last_day']\t= FALSE;\n\t\t\t\t\t\t\t$data['output']\t\t= '';\n\n\t\t\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t\t\t// Add the all day event\n\t\t\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t\t\t$all_day[]\t\t\t= $data;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$all_day_event_total\t= count($all_day);\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// \"All day\" output\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t$all_day_output = '';\n\n\t\t\t\t\tif ( ! empty($all_day))\n\t\t\t\t\t{\n\t\t\t\t\t\t$prev_index = 0;\n\t\t\t\t\t\t$hour_event_count = 0;\n\n\t\t\t\t\t\tforeach ($all_day as $all_day_data)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$time_key\t= $all_day_data['time'];\n\t\t\t\t\t\t\t$vars\t\t= $all_day_data['vars'];\n\t\t\t\t\t\t\t$vars['single']['event_first_day']\t= ($ymd == $all_day_data['first_day']) ? TRUE : FALSE;\n\t\t\t\t\t\t\t$vars['single']['event_last_day']\t= ($ymd == $all_day_data['last_day']) ? TRUE : FALSE;\n\n\t\t\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t\t\t// Process all day variables\n\t\t\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t\t\t$all_day_output\t.= $this->swap_vars($vars, $all_day_data['output']);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$this->CDT->reset();\n\t\t\t\t\t}\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Each hour\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\tif ($each_hour != '')\n\t\t\t\t\t{\n\t\t\t\t\t\t$hour_output = '';\n\t\t\t\t\t\t$hour_temp = '';\n\n\t\t\t\t\t\tif ($all_day_output != '')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$hour_output = $all_day_output;\n\t\t\t\t\t\t\t$all_day_output = '';\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tfor ($i = 0; $i < 24; $i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$hour_temp\t\t\t= '';\n\t\t\t\t\t\t\t$hour_count\t\t\t= 0;\n\t\t\t\t\t\t\t$hour_event_count\t= 0;\n\t\t\t\t\t\t\t$h\t\t\t\t\t= str_pad($i, 2, '0', STR_PAD_LEFT);\n\t\t\t\t\t\t\t//$this->cdt_format_date_string($this->CDT->datetime_array(), 'H');\n\t\t\t\t\t\t\t$minute\t\t\t\t= '00';\n\t\t\t\t\t\t\t//$this->cdt_format_date_string($this->CDT->datetime_array(), 'i');\n\n\t\t\t\t\t\t\tif (isset($hour_events[$h]))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tforeach ($hour_events[$h] as $start_minute => $sm_data)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tforeach ($sm_data as $end_hour => $eh_data)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tforeach ($eh_data as $end_minute => $event_ids)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t$hour_count += count($event_ids);\n\n\t\t\t\t\t\t\t\t\t\t\tforeach ($event_ids as $id)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tif (isset($entry_data[$id]))\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t$event_count++;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$year_event_count++;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$month_event_count++;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$week_event_count++;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$day_event_count++;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$hour_event_count++;\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t$vars = $this->get_occurrence_vars(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$id,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$events[$id],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$ymd,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$h . $start_minute . $end_hour . $end_minute\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t$vars['single']['event_count']\t\t\t= $this->create_count_hash('event_count');\n\t\t\t\t\t\t\t\t\t\t\t\t\t$vars['single']['hour_event_count']\t\t= $this->create_count_hash('hour_event_count');\n\t\t\t\t\t\t\t\t\t\t\t\t\t$vars['single']['year_event_count']\t\t= $this->create_count_hash('year_event_count');\n\t\t\t\t\t\t\t\t\t\t\t\t\t$vars['single']['month_event_count']\t= $this->create_count_hash('month_event_count');\n\t\t\t\t\t\t\t\t\t\t\t\t\t$vars['single']['week_event_count']\t\t= $this->create_count_hash('week_event_count');\n\t\t\t\t\t\t\t\t\t\t\t\t\t$vars['single']['day_event_count']\t\t= $this->create_count_hash('day_event_count');\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t//we have to remove conditionals for these items as well\n\t\t\t\t\t\t\t\t\t\t\t\t\t//because the dummy hashes screw with them\n\t\t\t\t\t\t\t\t\t\t\t\t\t$output_data = $this->remove_post_parse_conditionals(array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'event_count'\t\t\t=> $vars['single']['event_count'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'year_event_count'\t\t=> $vars['single']['year_event_count'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'month_event_count'\t\t=> $vars['single']['month_event_count'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'week_event_count'\t\t=> $vars['single']['week_event_count'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'day_event_count'\t\t=> $vars['single']['day_event_count'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'hour_event_count'\t\t=> $vars['single']['hour_event_count']\n\t\t\t\t\t\t\t\t\t\t\t\t\t), $entry_data[$id]);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t$hour_temp .= $this->swap_vars($vars, $output_data);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t$hour_temp = str_replace($find, $hour_temp, $each_hour);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$hour_temp = str_replace($find, $replace, $each_hour);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$vars = array();\n\t\t\t\t\t\t\t$total_events = $hour_count;\n\t\t\t\t\t\t\t$this->CDT->change_time($i, 0);\n\n\t\t\t\t\t\t\t$vars['date'] = array(\n\t\t\t\t\t\t\t\t'time'\t\t=> $this->CDT->datetime_array(),\n\t\t\t\t\t\t\t\t'date'\t\t=> $this->CDT->datetime_array()\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t$vars['single'] = array(\n\t\t\t\t\t\t\t\t'hour'\t\t\t\t=> $h,\n\t\t\t\t\t\t\t\t'minute'\t\t\t=> $minute,\n\t\t\t\t\t\t\t\t'time'\t\t\t\t=> $h.':'.$minute,\n\t\t\t\t\t\t\t\t'hour_event_total' \t=> $total_events\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t$hour_output .= $this->swap_vars($vars, $hour_temp);\n\n\t\t\t\t\t\t\t//parse day event counts\n\t\t\t\t\t\t\t$hour_output = $this->parse_count_hashes('hour_event_count', $hour_output);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$find = $hash_hour;\n\t\t\t\t\t\t$replace = $hour_output;\n\n\t\t\t\t\t\tif ($output_at == 'hour')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$output .= $replace;\n\t\t\t\t\t\t\t$replace = '';\n\n\t\t\t\t\t\t\t//ee()->TMPL->log_item('Calendar: Outputting hour data for '.$ymd);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Each day\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t//var_dump($this->CDT->ymd . ' OUTSIDE DAY');\n\n\t\t\t\t\tif ($each_day != '')\n\t\t\t\t\t{\n\t\t\t\t\t\t$prefix = $suffix = '';\n\n\t\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t\t// Prep day variables\n\t\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t\tif ($all_day_output != '')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$replace = $all_day_output . $replace;\n\t\t\t\t\t\t\t$all_day_output = '';\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//var_dump($this->CDT->ymd . ' DAY');\n\n\t\t\t\t\t\t$day_output = str_replace($find, $replace, $each_day);\n\n\t\t\t\t\t\t$next_CDT = $this->CDT->add_day(1);\n\t\t\t\t\t\t$prev_CDT = $this->CDT->add_day(-2);\n\t\t\t\t\t\t$this->CDT->reset();\n\n\t\t\t\t\t\t//var_dump($this->CDT->ymd . ' DAY 2');\n\n\t\t\t\t\t\t$vars = array();\n\n\t\t\t\t\t\t$vars['conditional'] = array(\n\t\t\t\t\t\t\t'day_is_today'\t\t\t=> ($today_ymd == $ymd) ? TRUE : FALSE,\n\t\t\t\t\t\t\t'day_is_weekend'\t\t=> ($this->CDT->day_of_week == 0 OR\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$this->CDT->day_of_week == 6) ? TRUE : FALSE,\n\t\t\t\t\t\t\t'day_is_weekday'\t\t=> ($this->CDT->day_of_week == 0 OR\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$this->CDT->day_of_week == 6) ? FALSE : TRUE,\n\t\t\t\t\t\t\t'day_in_current_month'\t=> ($this->CDT->month == $current_period_start['month']) ? TRUE : FALSE,\n\t\t\t\t\t\t\t'day_in_previous_month'\t=> ($this->CDT->month < $current_period_start['month'] OR\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$this->CDT->year < $current_period_start['year']) ? TRUE : FALSE,\n\t\t\t\t\t\t\t'day_in_next_month'\t\t=> ($this->CDT->month > $current_period_start['month'] OR\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$this->CDT->year > $current_period_start['year']) ? TRUE : FALSE\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\t$vars['single'] = array(\n\t\t\t\t\t\t\t'day'\t\t\t\t\t=> $d,\n\t\t\t\t\t\t\t'prev_day'\t\t\t\t=> $prev_CDT['day'],\n\t\t\t\t\t\t\t'next_day'\t\t\t\t=> $next_CDT['day'],\n\t\t\t\t\t\t\t'day_event_total'\t\t=> $day_event_total,\n\t\t\t\t\t\t\t'all_day_event_total'\t=> $all_day_event_total\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\t$vars['date'] = array(\n\t\t\t\t\t\t\t'day' \t\t=> $this->CDT->datetime_array(),\n\t\t\t\t\t\t\t'date'\t\t=> $this->CDT->datetime_array(),\n\t\t\t\t\t\t\t'prev_day' \t=> $prev_CDT,\n\t\t\t\t\t\t\t'next_day'\t=> $next_CDT\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\t$day_output = $this->parse_count_hashes('day_event_count', $this->swap_vars($vars, $day_output));\n\n\n\t\t\t\t\t\t$find = $hash_day;\n\t\t\t\t\t\t$replace = $prefix.$day_output.$suffix;\n\n\t\t\t\t\t\tif ($output_at == 'day')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$output .= $replace;\n\t\t\t\t\t\t\t$replace = '';\n//ee()->TMPL->log_item('Calendar: Outputting day data for '.$ymd);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$this->CDT->reset();\n\n\t\t\t\t\t\t//var_dump($this->CDT->ymd . ' DAY 3');\n\t\t\t\t\t}\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Each week\n\t\t\t\t\t// -------------------------------------\n\n//var_dump($this->CDT->ymd . ' OUTSIDE WEEK');\n\n\t\t\t\t\tif ($each_week != '')\n\t\t\t\t\t{\n\t\t\t\t\t\tif ($all_day_output != '')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$replace = $all_day_output . $replace;\n\t\t\t\t\t\t\t$all_day_output = '';\n\t\t\t\t\t\t\tif ($each_day == '')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$all_day = array();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ($w != $next_w OR\n\t\t\t\t\t\t\t($each_month != '' AND\n\t\t\t\t\t\t\t\t(($m != $next_m OR $last_day === TRUE) AND\n\t\t\t\t\t\t\t\t\t($ymd >= $current_period_start['ymd'] AND\n\t\t\t\t\t\t\t\t\t\t(\t($last_day === TRUE AND $ymd == $current_period_end['ymd']) OR\n\t\t\t\t\t\t\t\t\t\t($ymd != $current_period_end['ymd']))))) OR\n\t\t\t\t\t\t\t$last_day === TRUE)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//var_dump($this->CDT->ymd . ' WEEK');\n\n\t\t\t\t\t\t\t$week_temp .= $replace;\n\t\t\t\t\t\t\t$week_output = str_replace($find, $week_temp, $each_week);\n\n\t\t\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t\t\t// Prep week variables\n\t\t\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t\t\t$offset = ($this->CDT->day_of_week > $this->first_day_of_week) ?\n\t\t\t\t\t\t\t\t\t\t$this->CDT->day_of_week - $this->first_day_of_week :\n\t\t\t\t\t\t\t\t\t\t7 - ($this->first_day_of_week - $this->CDT->day_of_week);\n\n\t\t\t\t\t\t\t$this->CDT->add_day(-$offset);\n\t\t\t\t\t\t\t$this->CDT->set_default($this->CDT->datetime_array());\n\t\t\t\t\t\t\t$next_CDT = $this->CDT->add_day(7);\n\t\t\t\t\t\t\t$prev_CDT = $this->CDT->add_day(-14);\n\t\t\t\t\t\t\t$this->CDT->reset();\n\n\t\t\t\t\t\t\t//var_dump($this->CDT->ymd . ' WEEK 2');\n\n\t\t\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t\t\t// Calculate the number of events this week\n\t\t\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t\t\t$week_event_total \t= 0;\n\n\t\t\t\t\t\t\t//$week_count_id\t\t= 'week_event_total_' . uniqid();\n\n\t\t\t\t\t\t\tif (strpos($each_week, 'week_event_total') !== FALSE)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$low\t= $this->CDT->year .\n\t\t\t\t\t\t\t\t\t\t\tstr_pad($this->CDT->month, 2, '0', STR_PAD_LEFT) .\n\t\t\t\t\t\t\t\t\t\t\tstr_pad($this->CDT->day, 2, '0', STR_PAD_LEFT);\n\n\t\t\t\t\t\t\t\t$this->CDT->add_day(6);\n\n\t\t\t\t\t\t\t\t$high\t= $this->CDT->year .\n\t\t\t\t\t\t\t\t\t\t\tstr_pad($this->CDT->month, 2, '0', STR_PAD_LEFT) .\n\t\t\t\t\t\t\t\t\t\t\tstr_pad($this->CDT->day, 2, '0', STR_PAD_LEFT);\n\n\t\t\t\t\t\t\t\t$this->CDT->reset();\n\n\t\t\t\t\t\t\t\tforeach ($event_array as $k => $v)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif ($k < $low OR $k > $high)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t$week_event_total += $this->count_events($k, $event_array, $all_day, 'week', $events);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$vars = array();\n\n\t\t\t\t\t\t\t$vars['single'] = array(\n\t\t\t\t\t\t\t\t'week'\t\t\t\t=> $w,\n\t\t\t\t\t\t\t\t'prev_week'\t\t\t=> $prev_CDT['week_number'],\n\t\t\t\t\t\t\t\t'next_week'\t\t\t=> $next_CDT['week_number'],\n\t\t\t\t\t\t\t\t'week_event_total' \t=> $week_event_total\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t$vars['date'] = array(\n\t\t\t\t\t\t\t\t'week' \t\t \t\t=> $this->CDT->datetime_array(),\n\t\t\t\t\t\t\t\t'date' \t\t \t\t=> $this->CDT->datetime_array(),\n\t\t\t\t\t\t\t\t'prev_week' \t\t=> $prev_CDT,\n\t\t\t\t\t\t\t\t'next_week'\t \t\t=> $next_CDT\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t$week_output = $this->parse_count_hashes('week_event_count', $this->swap_vars($vars, $week_output));\n\n\t\t\t\t\t\t\t$find = $hash_week;\n\t\t\t\t\t\t\t$replace = $week_output;\n\t\t\t\t\t\t\t$week_temp = '';\n\n\t\t\t\t\t\t\tif ($output_at == 'week')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$output .= $replace;\n\t\t\t\t\t\t\t\t$replace = '';\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$this->CDT->reset();\n\t\t\t\t\t\t\t$week_event_count = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telseif ($end['day'] == $d AND\n\t\t\t\t\t\t\t\t$end['month'] == $m AND\n\t\t\t\t\t\t\t\t$d == $this->CDT->days_in_month($m, $y) AND\n\t\t\t\t\t\t\t\t$this->P->value('pad_short_weeks') === TRUE)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$week_temp .= $replace;\n\t\t\t\t\t\t\t$week_output = str_replace($find, $week_temp, $each_week);\n\n\t\t\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t\t\t// Prep week variables\n\t\t\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t\t\t$this->CDT->add_day(-6);\n\t\t\t\t\t\t\t$next_CDT = $this->CDT->add_day(7);\n\t\t\t\t\t\t\t$prev_CDT = $this->CDT->add_day(-14);\n\t\t\t\t\t\t\t$this->CDT->reset();\n\n\t\t\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t\t\t// Calculate the number of events this week\n\t\t\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t\t\t$week_event_total = 0;\n\n\t\t\t\t\t\t\tif (strpos($each_week, 'week_event_total') !== FALSE)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$low\t= $this->CDT->year .\n\t\t\t\t\t\t\t\t\t\t\tstr_pad($this->CDT->month, 2, '0', STR_PAD_LEFT) .\n\t\t\t\t\t\t\t\t\t\t\tstr_pad($this->CDT->day, 2, '0', STR_PAD_LEFT);\n\n\t\t\t\t\t\t\t\t$this->CDT->add_day(6);\n\n\t\t\t\t\t\t\t\t$high\t= $this->CDT->year .\n\t\t\t\t\t\t\t\t\t\t\tstr_pad($this->CDT->month, 2, '0', STR_PAD_LEFT) .\n\t\t\t\t\t\t\t\t\t\t\tstr_pad($this->CDT->day, 2, '0', STR_PAD_LEFT);\n\n\t\t\t\t\t\t\t\t$this->CDT->reset();\n\n\t\t\t\t\t\t\t\tforeach ($event_array as $k => $v)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif ($k < $low OR $k > $high)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t$week_event_total += $this->count_events($k, $event_array, $all_day, 'week', $events);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$vars = array();\n\n\t\t\t\t\t\t\t$vars['single'] = array(\n\t\t\t\t\t\t\t\t'week'\t\t\t\t=> $w,\n\t\t\t\t\t\t\t\t'prev_week'\t\t\t=> $prev_CDT['week_number'],\n\t\t\t\t\t\t\t\t'next_week'\t\t\t=> $next_CDT['week_number'],\n\t\t\t\t\t\t\t\t'week_event_total' \t=> $week_event_total\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t$vars['date'] = array(\n\t\t\t\t\t\t\t\t'week' \t\t\t\t=> $this->CDT->datetime_array(),\n\t\t\t\t\t\t\t\t'date'\t\t\t\t=> $this->CDT->datetime_array(),\n\t\t\t\t\t\t\t\t'prev_week' \t\t=> $prev_CDT,\n\t\t\t\t\t\t\t\t'next_week'\t\t\t=> $next_CDT\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t$week_output = $this->parse_count_hashes('week_event_count', $this->swap_vars($vars, $week_output));\n\n\t\t\t\t\t\t\t$find \t\t= $hash_week;\n\t\t\t\t\t\t\t$replace \t= $week_output;\n\t\t\t\t\t\t\t$week_temp \t= '';\n\n\t\t\t\t\t\t\tif ($output_at == 'week')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$output .= $replace;\n\t\t\t\t\t\t\t\t$replace = '';\n//ee()->TMPL->log_item('Calendar: Outputting week data for '.$ymd);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$this->CDT->reset();\n\t\t\t\t\t\t\t$week_event_count = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$week_temp .= $replace;\n\t\t\t\t\t\t\t$replace = '';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Each month\n\t\t\t\t\t// -------------------------------------\n\n//var_dump($this->CDT->ymd . ' OUTSIDE MONTH');\n\n\t\t\t\t\tif ($each_month != '')\n\t\t\t\t\t{\n\t\t\t\t\t\tif ($all_day_output != '')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$replace = $all_day_output . $replace;\n\t\t\t\t\t\t\t$all_day_output = '';\n\t\t\t\t\t\t\tif ($each_day == '')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$all_day = array();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (($m != $next_m OR $last_day === TRUE) AND\n\t\t\t\t\t\t\t(\t$ymd >= $current_period_start['ymd'] AND\n\t\t\t\t\t\t\t\t(\t($last_day === TRUE AND $ymd == $current_period_end['ymd']) OR\n\t\t\t\t\t\t\t\t\t($ymd != $current_period_end['ymd'])\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\t$month_temp .= $replace;\n\t\t\t\t\t\t\t$month_output = str_replace($find, $month_temp, $each_month);\n\n\t\t\t\t\t\t\t//--------------------------------------------\n\t\t\t\t\t\t\t//\treset and add month because\n\t\t\t\t\t\t\t//\tthis gets 'off' some places\n\t\t\t\t\t\t\t//--------------------------------------------\n\t\t\t\t\t\t\t$this->CDT->set_default($current_period_start);\n\t\t\t\t\t\t\t$this->CDT->reset();\n\n\t\t\t\t\t\t\t//first month is correct\n\t\t\t\t\t\t\tif ($month_tick > 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$this->CDT->add_month($month_tick);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$month_tick++;\n\n\t\t\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t\t\t// Prep month variables\n\t\t\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t\t\t//add a month\n\t\t\t\t\t\t\t$next_CDT = $this->CDT->add_month();\n\n\t\t\t\t\t\t\t//subtract 2\n\t\t\t\t\t\t\t$prev_CDT = $this->CDT->add_month(-2);\n\n\t\t\t\t\t\t\t//add 1, now we are back where we started!\n\t\t\t\t\t\t\t$this->CDT->add_month();\n\t\t\t\t\t\t\t$this->CDT->change_date($this->CDT->year, $this->CDT->month, 1);\n\n\t\t\t\t\t\t\t$vars = array();\n\n\t\t\t\t\t\t\t//var_dump($this->CDT->ymd . ' MONTH 2');\n\n\t\t\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t\t\t// Calculate the number of events this month\n\t\t\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t\t\t$month_event_total = 0;\n\n\t\t\t\t\t\t\tif (strpos($each_month, 'month_event_total') !== FALSE)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$low\t= $this->CDT->year.str_pad($this->CDT->month, 2, '0', STR_PAD_LEFT).'01';\n\t\t\t\t\t\t\t\t$high\t= $this->CDT->year.str_pad($this->CDT->month, 2, '0', STR_PAD_LEFT).$this->CDT->days_in_month();\n\n\t\t\t\t\t\t\t\tforeach ($event_array as $k => $v)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif ($k < $low OR $k > $high)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t$month_event_total += $this->count_events($k, $event_array, $all_day, 'month', $events);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//$vars['conditional'] = array( 'day_in_current_month' => TRUE );\n\t\t\t\t\t\t\t$vars['single'] = array(\n\t\t\t\t\t\t\t\t'month'\t\t\t\t=> $m,\n\t\t\t\t\t\t\t\t'prev_month'\t\t=> $prev_CDT['month'],\n\t\t\t\t\t\t\t\t'next_month'\t\t=> $next_CDT['month'],\n\t\t\t\t\t\t\t\t'month_event_total' => $month_event_total\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t$vars['date'] = array(\n\t\t\t\t\t\t\t\t'month' \t\t\t=> $this->CDT->datetime_array(),\n\t\t\t\t\t\t\t\t'date'\t\t\t\t=> $this->CDT->datetime_array(),\n\t\t\t\t\t\t\t\t'prev_month' \t\t=> $prev_CDT,\n\t\t\t\t\t\t\t\t'next_month'\t\t=> $next_CDT\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t$month_output \t= $this->parse_count_hashes(\n\t\t\t\t\t\t\t\t'month_event_count',\n\t\t\t\t\t\t\t\t$this->swap_vars($vars, $month_output)\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t$replace \t\t= $month_output;\n\n\t\t\t\t\t\t\t$find = $hash_month;\n\t\t\t\t\t\t\t$month_temp = '';\n\n\t\t\t\t\t\t\tif ($output_at == 'month')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$output .= $replace;\n\t\t\t\t\t\t\t\t$replace = '';\n//ee()->TMPL->log_item('Calendar: Outputting month data for '.$ymd);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$this->CDT->reset();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$month_temp .= $replace;\n\t\t\t\t\t\t\t$replace = '';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t// Each year\n\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\tif ($each_year != '')\n\t\t\t\t\t{\n\t\t\t\t\t\tif ($all_day_output != '')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$replace = $all_day_output . $replace;\n\t\t\t\t\t\t\t$all_day_output = '';\n\t\t\t\t\t\t\tif ($each_day == '')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$all_day = array();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ($y != $next_y OR $last_day === TRUE)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//if ($last_day !== TRUE)\n\t\t\t\t\t\t\tif ($last_day == TRUE)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$year_temp .= $replace;\n\n\t\t\t\t\t\t\t\t$year_output = str_replace($find, $year_temp, $each_year);\n\n\t\t\t\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t\t\t\t// Calculate the number of events this year\n\t\t\t\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t\t\t\t$year_event_total = 0;\n\n\t\t\t\t\t\t\t\tif (strpos(ee()->TMPL->tagdata, 'year_event_total') !== FALSE)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$low\t= $this->CDT->year.'0101';\n\t\t\t\t\t\t\t\t\t$high\t= $this->CDT->year.'1231';\n\t\t\t\t\t\t\t\t\tforeach ($event_array as $k => $v)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif ($k < $low OR $k > $high)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t$year_event_total += $this->count_events($k, $event_array, array(), 'year', $events);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// -------------------------------------\n\t\t\t\t\t\t\t\t// Prep year variables\n\t\t\t\t\t\t\t\t// -------------------------------------\n\n\t\t\t\t\t\t\t\t$this->CDT->set_default($current_period_start);\n\t\t\t\t\t\t\t\t$this->CDT->reset();\n\t\t\t\t\t\t\t\tif ($year_tick > 1)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$this->CDT->add_year($year_tick);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$year_tick++;\n\n\t\t\t\t\t\t\t\t$next_CDT = $this->CDT->add_year(1);\n\t\t\t\t\t\t\t\t$prev_CDT = $this->CDT->add_year(-2);\n\t\t\t\t\t\t\t\t$this->CDT->reset();\n\n\t\t\t\t\t\t\t\t$vars = array();\n\n\t\t\t\t\t\t\t\t$vars['conditional']\t\t= array(\n\t\t\t\t\t\t\t\t\t'year_is_leap_year'\t=> $this->CDT->is_leap_year()\n\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t$vars['single']\t\t\t\t= array(\n\t\t\t\t\t\t\t\t\t'year'\t\t\t\t=> $y,\n\t\t\t\t\t\t\t\t\t'prev_year'\t\t\t=> $prev_CDT['year'],\n\t\t\t\t\t\t\t\t\t'next_year'\t\t\t=> $next_CDT['year'],\n\t\t\t\t\t\t\t\t\t'year_event_total'\t=> $year_event_total\n\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t$vars['date']\t\t\t\t= array(\n\t\t\t\t\t\t\t\t\t'year' \t\t\t\t=> $this->CDT->datetime_array(),\n\t\t\t\t\t\t\t\t\t'date'\t\t\t\t=> $this->CDT->datetime_array(),\n\t\t\t\t\t\t\t\t\t'prev_year' \t\t=> $prev_CDT,\n\t\t\t\t\t\t\t\t\t'next_year' \t\t=> $next_CDT\n\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t$year_output = $this->parse_count_hashes(\n\t\t\t\t\t\t\t\t\t'year_event_count',\n\t\t\t\t\t\t\t\t\t$this->swap_vars($vars, $year_output)\n\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t$replace = $year_output;\n\n\t\t\t\t\t\t\t\t$this->CDT->reset();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//$replace = '';\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$find = $hash_year;\n\t\t\t\t\t\t\t$year_temp = '';\n\n\t\t\t\t\t\t\tif ($output_at == 'year')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$output .= $replace;\n\t\t\t\t\t\t\t\t$replace = '';\n//ee()->TMPL->log_item('Calendar: Outputting year data for '.$ymd);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$year_temp .= $replace;\n\t\t\t\t\t\t\t$replace = '';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t//parse day event counts\n\t\t\t\t\t//$output = $this->parse_count_hashes('day_event_count', $output);\n\n\t\t\t\t\t//parse week event counts\n\t\t\t\t\t//$output = $this->parse_count_hashes('week_event_count', $output);\n\t\t\t\t}\n\n\t\t\t\t//parse month event counts\n\t\t\t\t//$output = $this->parse_count_hashes('month_event_count', $output);\n\t\t\t}\n\n\t\t\t//parse year event count\n\t\t\t//$output = $this->parse_count_hashes('year_event_count', $output);\n\t\t}\n\n\t\t// -------------------------------------\n\t\t//\trunning all of these again in case\n\t\t//\tthe didn't fire. This means we\n\t\t//\tare in a straight event loop in\n\t\t//\tcal and it's probably errorsome :/\n\t\t// -------------------------------------\n\n\t\t//parse hour event counts\n\t\t$output = $this->parse_count_hashes('hour_event_count', $output);\n\n\t\t//parse day event counts\n\t\t$output = $this->parse_count_hashes('day_event_count', $output);\n\n\t\t//parse week event counts\n\t\t$output = $this->parse_count_hashes('week_event_count', $output);\n\n\t\t//parse month event counts\n\t\t$output = $this->parse_count_hashes('month_event_count', $output);\n\n\t\t//parse year event count\n\t\t$output = $this->parse_count_hashes('year_event_count', $output);\n\n\t\t//parse year event count\n\t\t$output = $this->parse_count_hashes('event_count', $output);\n\n\t\t$output = $this->swap_vars(array('single'=>array('event_total' => $event_count)), $output);\n\n\t\t$hash = 'hash_'.$output_at;\n\n\t\t$tagdata = isset($$hash) ? str_replace($$hash, $output, $tagdata) : $output;\n\n\t\t$tagdata = $this->parse_pagination($tagdata);\n\n\t\t//ee()->TMPL->log_item('Calendar: All done!');\n\n\t\t// -------------------------------------\n\t\t//\tsetting everything back thats not parsed\n\t\t//\tin case people were writing it in plain text\n\t\t// -------------------------------------\n\n\t\t//custom variables with the letters 'url' are borked in\n\t\t//EE 2.6. Bug reported, but this should fix.\n\t\t//https://support.ellislab.com/bugs/detail/19337\n\t\tif (version_compare($this->ee_version, '2.6.0', '>='))\n\t\t{\n\t\t\t$tagdata = str_replace(\n\t\t\t\tarray(\n\t\t\t\t\tLD . 'event_borked_title' . RD,\n\t\t\t\t\t'\"event_borked_title\"',\n\t\t\t\t\t\"'event_borked_title'\"\n\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\tLD . 'event_url_title' . RD,\n\t\t\t\t\t'\"event_url_title\"',\n\t\t\t\t\t\"'event_url_title'\"\n\t\t\t\t),\n\t\t\t\t$tagdata\n\t\t\t);\n\n\n\t\t\t$tagdata = str_replace(\n\t\t\t\tarray(\n\t\t\t\t\tLD . 'event_calendar_borked_title' . RD,\n\t\t\t\t\t'\"event_calendar_borked_title\"',\n\t\t\t\t\t\"'event_calendar_borked_title'\"\n\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\tLD . 'event_calendar_url_title' . RD,\n\t\t\t\t\t'\"event_calendar_url_title\"',\n\t\t\t\t\t\"'event_calendar_url_title'\"\n\t\t\t\t),\n\t\t\t\t$tagdata\n\t\t\t);\n\t\t}\n\n\t\t//--------------------------------------------\n\t\t//\tthis shouldn't ever be needed, but here we are\n\t\t//--------------------------------------------\n\n\t\tif (trim($tagdata) === '')\n\t\t{\n\t\t\treturn $this->no_results();\n\t\t}\n\n\t\t// -------------------------------------\n\t\t// Send 'em home\n\t\t// -------------------------------------\n\n\t\treturn $tagdata;\n\t}", "function church_admin_calendar_widget($args)\n{\n global $wpdb;\n\n extract($args);\n $options=get_option('church_admin_widget');\n $title=$options['title'];\n \n echo $before_widget;\n if ( $title )echo $before_title . $title . $after_title;\n \n echo church_admin_calendar_widget_output($options['events'],$options['postit'],$title);\n echo $after_widget;\n}", "public function onMainMenuBuild(MenuBuilderEvent $event): void\n {\n if (!$this->authorizationChecker->isGranted('ROLE_NGLAYOUTS_ADMIN')) {\n return;\n }\n\n $this->addLayoutsSubMenu($event->getMenu());\n }", "function init_menu() {\n if (func_num_args()>0) {\n $arg_list = func_get_args();\n }\n\n // menu entries\n module::set_menu($this->module, \"RAD Facility\", \"LIBRARIES\", \"_rad_facility\");\n module::set_menu($this->module, \"RAD DX Codes\", \"LIBRARIES\", \"_rad_dxcodes\");\n module::set_menu($this->module, \"RAD DX Codes\", \"LIBRARIES\", \"_rad_\");\n\n // add more detail\n module::set_detail($this->description, $this->version, $this->author, $this->module);\n\n }", "public static function onTopMenuInit($event)\n {\n\n // Is Module enabled on this workspace?\n $event->sender->addItem(array(\n 'label' => Yii::t('DashboardModule.base', 'Dashboard'),\n 'id' => 'dashboard',\n 'icon' => '<i class=\"fa fa-tachometer\"></i>',\n 'url' => 'dashboard/dashboard',\n 'sortOrder' => 100,\n 'isActive' => (Yii::app()->controller->module && Yii::app()->controller->module->id == 'dashboard'),\n ));\n }", "function attachBirthdayMenu()\n {\n add_menu_page('Birthday Manager', 'Birthday Manager', 'unfiltered_html', 'KHB-Birthday-Manager', 'renderTableTemplate', 'dashicons-buddicons-community');\n }", "function MakeCalendarGrid(){\n //get our days\n $intMonthDays = cal_days_in_month(CAL_GREGORIAN, $this->intMonth, $this->intYear);\n $intDayCounter = 0;\n $arrMonthAttributes = array('colspan'=>'7');\n //make our parent calendar table\n $objCalendarParent = $this->objCalendar->AddChildNode($this->objCalendar->objHTML,'', 'table');\n //let's make our header\n $objHeaderRow = $this->objCalendar->AddChildNode($objCalendarParent,'', 'tr');\n //establish our base attributes\n for($intWeekDay=0;$intWeekDay<7;$intWeekDay++){\n $strDay = date('l', strtotime(\"Sunday +{$intWeekDay} days\"));\n $this->objCalendar->AddChildNode($objHeaderRow,$strDay, 'th',array('class'=>'weekday'));\n }\n //get the starting date\n $intMonthStart = date('N', strtotime($this->intYear.'-'.$this->intMonth.'-1'));\n $intMonthStart++;\n //avoid empty rows\n if($intMonthStart == 8)\n $intMonthStart = 1;\n //make our days now\n for($intDay=1;$intDay<($intMonthDays + $intMonthStart);$intDay++){\n $arrDateAttributes = array('onclick'=>'SelectDay(this);');\n if($intDayCounter === 0){\n //make our new week\n $objWeekRow = $this->objCalendar->AddChildNode($objCalendarParent,'', 'tr');\n $arrDateAttributes['class'] = 'calendarday weekend';\n }\n else if($intDayCounter === 6)\n $arrDateAttributes['class'] = 'calendarday weekend';\n else if($intDay == date('j'))\n $arrDateAttributes['class'] = 'calendarday today';\n else\n $arrDateAttributes['class'] = 'calendarday weekday';\n $intDayCounter++;\n //reset our week now\n if($intDayCounter == 7)\n $intDayCounter = 0;\n if($intDay < $intMonthStart){\n unset($arrDateAttributes['onclick']);\n $this->objCalendar->AddChildNode($objWeekRow,'&nbsp;', 'td',$arrDateAttributes);\n continue 1;\n }\n $arrDateAttributes['id'] = ($intDay - ($intMonthStart - 1)).'-'.$this->arrCalendarProperties['calendarid'];\n //make our day now\n $this->objCalendar->AddChildNode($objWeekRow,($intDay - ($intMonthStart - 1)), 'td',$arrDateAttributes);\n }\n return TRUE;\n }", "function calendar1($date){ //get \"from\" date\r\n\t\t\t$myCalendar = new tc_calendar(\"date1\", true, false);\r\n\t\t\t$myCalendar->setIcon(\"calendar/images/iconCalendar.gif\");\r\n\t\t\t$myCalendar->setPath(\"calendar/\");\r\n\t\t\t$myCalendar->setYearInterval(1970, 2020);\r\n\t\t\t$myCalendar->setAlignment('left', 'bottom');\r\n\t\t\tif($date!=\"\"){\r\n\t\t\t\t$myCalendar->setDate(Date(\"d\",strtotime($date)),Date(\"m\",strtotime($date)),Date(\"Y\",strtotime($date)));\r\n\t\t\t}\r\n\t\t\t$myCalendar->setOnChange(\"calculate()\");\t\r\n\t\t\t$myCalendar->writeScript();\r\n\t}", "function menu_build($module) {\n $instanceArgs = array(\n 'module' => $module,\n );\n $factoryArgs = array(\n 'instance_args' => $instanceArgs\n );\n $builder = hook_get_builder('menu', $factoryArgs);\n\n return $builder->build();\n}", "public function build(MenuInterface $menu);", "function rst_manage_seats_moncalender()\n{\n require_once('inc/inc.fullcalendar.php');\n}", "public function getMenu();", "public function create_menu()\n\t{\n\t\t$obj = $this; // PHP 5.3 doesn't allow $this usage in closures\n\n\t\t// Add main menu page\n\t\tadd_menu_page(\n\t\t\t'Testimonials plugin', // page title\n\t\t\t'Testimonials', // menu title\n\t\t\t'manage_options', // minimal capability to see it\n\t\t\t'jststm_main_menu', // unique menu slug\n\t\t\tfunction() use ($obj){\n\t\t\t\t$obj->render('main_menu'); // render main menu page template\n\t\t\t},\n\t\t\tplugins_url('images/theater.png', dirname(__FILE__)), // dashboard menu icon\n\t\t\t'25.777' // position in the dahsboard menu (just after the Comments)\n\t\t);\n\t\t// Add help page\n\t\tadd_submenu_page(\n\t\t\t'jststm_main_menu', // parent page slug\n\t\t\t'Testimonials plugin help', // page title\n\t\t\t'What is this?', // menu title\n\t\t\t'manage_options', // capability\n\t\t\t'jststm_help', // slug\n\t\t\tfunction() use ($obj){\n\t\t\t\t$obj->render('help_page');\n\t\t\t}\n\t\t);\n\t}", "public function admin_menu_open() {\n\n\t\t$this->content = $this->render_template(\n\t\t\t'collections/js-holder.php', [\n\t\t\t\t'all_collections' => [],\n\t\t\t]\n\t\t);\n\t\t$this->header = $this->render_template( 'collections/header.php' );\n\t\techo $this->render_template( 'wrapper.php' );\n\n\t}", "function wpmu_menu()\n {\n }", "public function date_widget($data = array())\n\t{\n\t\t$this->actions();\n\n\t\t$id = ee()->TMPL->fetch_param('event_id');\n\n\t\tif ($id AND is_numeric($id) AND $id > 0)\n\t\t{\n\t\t\t$data = $this->data->fetch_event_data_for_view($id);\n\n\t\t\t$eoid = $this->data->get_event_entry_id_by_channel_entry_id($id);\n\n\t\t\tif ($eoid != FALSE AND $eoid != $id)\n\t\t\t{\n\t\t\t\t$data['edit_occurrence'] = TRUE;\n\t\t\t}\n\t\t}\n\n\t\t// -------------------------------------\n\t\t//\tcalendar permissions\n\t\t// -------------------------------------\n\n\t\tee()->load->library('calendar_permissions');\n\n\t\tif ($id > 0)\n\t\t{\n\t\t\t$temp = $this->data->get_calendar_id_by_event_entry_id($id);\n\t\t\t$parent_calendar_id = (isset($temp[$id]) ? $temp[$id] : 0);\n\t\t}\n\n\t\tif ( $id != 0 AND\n\t\t\t $parent_calendar_id > 0 AND\n\t\t\t ! ee()->calendar_permissions->group_has_permission(\n\t\t\t\tee()->session->userdata['group_id'],\n\t\t\t\t$parent_calendar_id\n\t\t))\n\t\t{\n\t\t\treturn $this->show_error(lang('invalid_calendar_permissions'));\n\t\t}\n\n\t\tif ( ! isset($data['rules'])) \t\t\t$data['rules'] \t\t\t\t= array();\n\t\tif ( ! isset($data['occurrences'])) \t$data['occurrences'] \t\t= array();\n\t\tif ( ! isset($data['exceptions'])) \t\t$data['exceptions'] \t\t= array();\n\t\tif ( ! isset($data['edit_occurrence'])) $data['edit_occurrence'] \t= FALSE;\n\n\t\treturn $this->actions->date_widget($data);\n\t}", "public function initMenu()\n {\n add_menu_page(\n 'Flickr Group Gallery',\n 'Flickr Group Gallery',\n 'administrator',\n 'flickr-group-gallery',\n array($this, 'render'),\n 'dashicons-admin-generic'\n );\n }", "function ft_hook_menu() {}", "public function menuConfig() {}", "static function addMenus()\n {\n add_menu_page(\n // string $page_title The text to be displayed in the title tags\n // of the page when the menu is selected\n __('Projecten plugin Admin', 'projecten-plugin'),\n // string $menu_title The text to be used for the menu\n __('Projecten plugin', 'projecten-plugin'),\n // string $capability The capability required for this menu to be displayed to the user.\n 'manage_options',\n // string $menu_slug The slug name to refer to this menu by (should be unique for this menu)\n 'projecten plugin',\n // callback $function The function to be called to output the content for this page.\n array('ProjectenPlugin_AdminController', 'adminMenuPage'),\n // string $icon_url The url to the icon to be used for this menu.\n // * Pass a base64-encoded SVG using a data URI, which will becolored to match the color scheme.\n // This should begin with 'data:image/svg+xml;base64,'.\n // * Pass the name of a Dashicons helper class to use a fonticon, e.g.\n 'dashicons-chart-pie' .\n // * Pass 'none' to leave div.wp-menu-image empty so an icon can be added via CSS.\n PROJECTEN_PLUGIN_INCLUDES_IMGS_DIR . '/icon.png'\n // int $position The position in the menu order this one should appear\n );\n add_submenu_page(\n // string $parent_slug The slug name for the parent menu \n // (or the file name of a standard WordPress admin page) \n 'my-event-organiser-admin',\n // string $page_title The text to be displayed in the title tags of the page when the menu is selected \n __('event_type', 'my-event-organiser'),\n // string $menu_title The text to be used for the menu \n __('Event Type', 'my-event-organiser'),\n // string $capability The capability required for this menu to be displayed to the user. \n 'manage_options',\n // string $menu_slug The slug name to refer to this menu by (should be unique for this menu) \n 'meo_admin_event_types',\n // callback $function The function to be called to output the content for this page. \n array('ProjectenPlugin_AdminController', 'adminSubMenuProjecten')\n\n\n );\n }", "public function menuConfig() {}", "public function menuConfig() {}", "public function menuConfig() {}", "public function menuConfig() {}", "public function menuConfig() {}", "function genMenu()\n\t{\n\t $menuData = array(\n\t \t\t\t\t\t\t\tarray('text' => SHIN_Core::$_language->line('lng_label_choice_language'), 'data' => array(\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t array('type' => 'link', 'text' => SHIN_Core::$_language->line('lng_label_name_italian'), 'link' => base_url().'/change_language/it'),\n \t\t array('type' => 'link', 'text' => SHIN_Core::$_language->line('lng_label_name_english'), 'link' => base_url().'/change_language/en'),\n \t\t array('type' => 'link', 'text' => SHIN_Core::$_language->line('lng_label_name_russian'), 'link' => base_url().'/change_language/ru'),\t\n \t\t)\n \t\t ),\n\t\t\t\t\t\t\t\t \tarray('text' => SHIN_Core::$_language->line('lng_label_choice_theme'), 'data' => array(\n\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\tarray('type' => 'link', 'text' => 'Lightness', 'link' => base_url().'/change_theme/lightness'),\n\t \tarray('type' => 'link', 'text' => 'Darkness', 'link' => base_url().'/change_theme/darkness'),\n\t \tarray('type' => 'link', 'text' => 'Redmond', 'link' => base_url().'/change_theme/redmond'),\n\t \tarray('type' => 'link', 'text' => 'Smoothness', 'link' => base_url().'/change_theme/smoothness'),\n\t )\n\t\t ),\n\t \tarray('text' => SHIN_Core::$_language->line('lng_label_logout'), 'link' => base_url().'/logout')\n\t );\n\n \t$ddmenu = SHIN_Core::$_libs['ddmenu']->get_instance();\n\t $ddmenu->setMenuData('ddmenu', $menuData);\n\t SHIN_Core::$_jsmanager->addComponent($ddmenu->render());\n\t /////////////////////////////////////////////////////////\n\n\t // ppfmm menu ///////////\n\t $menuData = array( \n\t \tarray('text' => SHIN_Core::$_language->line('lng_label_main_page_ppfm'), 'link' => base_url().'/main'),\n\t \tarray('text' => SHIN_Core::$_language->line('lng_label_register'), 'link' => base_url().'/registration'),\n\t \tarray('text' => SHIN_Core::$_language->line('lng_label_todo'), 'link' => base_url().'/todo'),\n\t \tarray('text' => SHIN_Core::$_language->line('lng_label_statistic'), 'link' => base_url().'/statistic'),\n\t \tarray('text' => SHIN_Core::$_language->line('lng_label_usermanage'), 'link' => base_url().'/usermanage'),\n\t );\n\n \t$ppfmddmenu = SHIN_Core::$_libs['ddmenu']->get_instance();\n\t $ddmenu->setMenuData('ppfm_ddmenu', $menuData);\n\t SHIN_Core::$_jsmanager->addComponent($ppfmddmenu->render());\n\t /////////////////////////\t\t\n\t}", "protected function build_global_calendar(&$tpl_var)\n {\n global $page;\n\n assert( count($page['chronology_date']) == 0 );\n $query='\n SELECT '.pwg_db_get_date_YYYYMM($this->date_field).' as period,\n COUNT(distinct id) as count';\n $query.= $this->inner_sql;\n $query.= $this->get_date_where();\n $query.= '\n GROUP BY period\n ORDER BY '.pwg_db_get_year($this->date_field).' DESC, '.pwg_db_get_month($this->date_field).' ASC';\n\n $result = pwg_query($query);\n $items=array();\n while ($row = pwg_db_fetch_assoc($result))\n {\n $y = substr($row['period'], 0, 4);\n $m = (int)substr($row['period'], 4, 2);\n if ( ! isset($items[$y]) )\n {\n $items[$y] = array('nb_images'=>0, 'children'=>array() );\n }\n $items[$y]['children'][$m] = $row['count'];\n $items[$y]['nb_images'] += $row['count'];\n }\n //echo ('<pre>'. var_export($items, true) . '</pre>');\n if (count($items)==1)\n {// only one year exists so bail out to year view\n list($y) = array_keys($items);\n $page['chronology_date'][CYEAR] = $y;\n return false;\n }\n\n global $lang;\n foreach ( $items as $year=>$year_data)\n {\n $chronology_date = array( $year );\n $url = duplicate_index_url( array('chronology_date'=>$chronology_date) );\n\n $nav_bar = $this->get_nav_bar_from_items( $chronology_date,\n $year_data['children'], false, false, $lang['month'] );\n\n $tpl_var['calendar_bars'][] =\n array(\n 'U_HEAD' => $url,\n 'NB_IMAGES' => $year_data['nb_images'],\n 'HEAD_LABEL' => $year,\n 'items' => $nav_bar,\n );\n }\n\n return true;\n }", "function buildModuleMenu() {\n\t$badge_counts = getModuleBadgeCounts('zones');\n\t$GLOBALS['zone_badge_counts'] = $badge_counts;\n\taddObjectPage(__('Zones'), __('Zones'), array('manage_zones', 'manage_records', 'reload_zones', 'view_all'), $_SESSION['module'], 'zones.php');\n\t\taddSubmenuPage('zones.php', __('Forward'), __('Forward Zones'), null, $_SESSION['module'], 'zones-forward.php', null, null, $badge_counts['forward']);\n\t\taddSubmenuPage('zones.php', __('Reverse'), __('Reverse Zones'), null, $_SESSION['module'], 'zones-reverse.php', null, null, $badge_counts['reverse']);\n\t\taddSubmenuPage('zones.php', __('Groups'), __('Zones Groups'), array('view_all'), $_SESSION['module'], 'zones-groups.php');\n\t\taddSubmenuPage('zones.php', null, __('Records'), null, $_SESSION['module'], 'zone-records.php');\n\t\taddSubmenuPage('zones.php', null, __('Record Validation'), null, $_SESSION['module'], 'zone-records-validate.php');\n\t\n\taddObjectPage(__('Config'), __('Name Servers'), array('manage_servers', 'build_server_configs', 'view_all'), $_SESSION['module'], 'config-servers.php');\n\t\taddSubmenuPage('config-servers.php', _('Servers'), __('Name Servers'), array('manage_servers', 'build_server_configs', 'view_all'), $_SESSION['module'], 'config-servers.php', null, null, getModuleBadgeCounts('servers'));\n\t\taddSubmenuPage('config-servers.php', __('Views'), __('Views'), array('manage_servers', 'view_all'), $_SESSION['module'], 'config-views.php');\n\t\taddSubmenuPage('config-servers.php', __('ACLs'), __('Access Control Lists'), array('manage_servers', 'view_all'), $_SESSION['module'], 'config-acls.php');\n\t\taddSubmenuPage('config-servers.php', __('Keys'), __('Keys'), array('manage_servers', 'view_all'), $_SESSION['module'], 'config-keys.php');\n\t\taddSubmenuPage('config-servers.php', __('Masters'), __('Masters'), array('manage_servers', 'view_all'), $_SESSION['module'], 'config-masters.php');\n\t\taddSubmenuPage('config-servers.php', __('Options'), __('Options'), array('manage_servers', 'view_all'), $_SESSION['module'], 'config-options.php');\n\t\taddSubmenuPage('config-servers.php', __('Logging'), __('Logging'), array('manage_servers', 'view_all'), $_SESSION['module'], 'config-logging.php');\n\t\taddSubmenuPage('config-servers.php', __('Operations'), __('Operations'), array('manage_servers', 'view_all'), $_SESSION['module'], 'config-controls.php');\n\t\n\taddObjectPage(__('Templates'), __('Zones'), array('manage_zones', 'view_all'), $_SESSION['module'], 'templates-soa.php');\n\t\taddSubmenuPage('templates-soa.php', __('SOA'), __('SOA Templates'), array('manage_zones', 'view_all'), $_SESSION['module'], 'templates-soa.php');\n\t\taddSubmenuPage('templates-soa.php', __('Zones'), __('Zone Templates'), array('manage_zones', 'manage_records', 'view_all'), $_SESSION['module'], 'templates-zones.php');\n\n\taddSettingsPage($_SESSION['module'], sprintf(__('%s Settings'), $_SESSION['module']), array('manage_settings', 'view_all'), $_SESSION['module'], 'module-settings.php');\n}", "public function event()\n\t{\n\t\tif (defined('ADMIN_THEME'))\n\t\t{\n\t\t\t$this->CI->type->add_misc($this->CI->type->load_view('codemirror', 'codemirror_admin', null));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->CI->type->add_misc($this->CI->type->load_view('codemirror', 'codemirror_entry_form', null));\n\t\t}\n\t}", "public static function onAdminMenuInit($event)\n {\n $event->sender->addItem(array(\n 'label' => \"Note\",\n 'url' => Url::to(['/Note/admin']),\n 'group' => 'manage',\n 'icon' => '<i class=\"fa fa-pencil-square-o\" aria-hidden=\"true\"></i>',\n 'isActive' => (Yii::$app->controller->module && Yii::$app->controller->module->id == 'Note' && Yii::$app->controller->id == 'admin'),\n 'sortOrder' => 99999,\n ));\n }", "public function __construct() {\r\n if (Eabi_Ipenelo_Calendar::get('show_link')) {\r\n add_action('wp_footer', array(&$this, 'link'));\r\n }\r\n }", "function event_grid_view() {\n\tsp_calendar_grid();\n}", "protected function menus()\n {\n\n }", "public static function onTopMenuInit($event)\n {\n\n $event->sender->addItem(array(\n 'label' => Yii::t('MailModule.base', 'Messages'),\n 'url' => Yii::app()->createUrl('//mail/mail/index', array()),\n 'icon' => '<i class=\"fa fa-envelope\"></i>',\n 'isActive' => (Yii::app()->controller->module && Yii::app()->controller->module->id == 'mail'),\n 'sortOrder' => 300,\n ));\n }", "public static function icalendar() {\r\n $ical = \"BEGIN:VCALENDAR\".PHP_EOL;\r\n $ical .= \"VERSION:2.0\".PHP_EOL;\r\n\r\n $show_personal_bak = Calendar_Events::$calsettings->show_personal;\r\n $show_course_bak = Calendar_Events::$calsettings->show_course;\r\n $show_deadline_bak = Calendar_Events::$calsettings->show_deadline;\r\n $show_admin_bak = Calendar_Events::$calsettings->show_admin;\r\n Calendar_Events::set_calendar_settings(1,1,1,1);\r\n Calendar_Events::get_calendar_settings();\r\n $eventlist = Calendar_Events::get_calendar_events();\r\n Calendar_Events::set_calendar_settings($show_personal_bak,$show_course_bak,$show_deadline_bak,$show_admin_bak);\r\n Calendar_Events::get_calendar_settings();\r\n\r\n $events = array();\r\n foreach ($eventlist as $event) {\r\n $ical .= \"BEGIN:VEVENT\".PHP_EOL;\r\n $startdatetime = new DateTime($event->start);\r\n $ical .= \"DTSTART:\".$startdatetime->format(\"Ymd\\THis\").PHP_EOL;\r\n $duration = new DateTime($event->duration);\r\n $ical .= \"DURATION:\".$duration->format(\"\\P\\TH\\Hi\\Ms\\S\").PHP_EOL;\r\n $ical .= \"SUMMARY:[\".strtoupper($event->event_group).\"] \".$event->title.PHP_EOL;\r\n $ical .= \"DESCRIPTION:\".canonicalize_whitespace(strip_tags($event->content)).PHP_EOL;\r\n if ($event->event_group == 'deadline')\r\n {\r\n $ical .= \"BEGIN:VALARM\".PHP_EOL;\r\n $ical .= \"TRIGGER:-PT24H\".PHP_EOL;\r\n $ical .= \"DURATION:PT10H\".PHP_EOL;\r\n $ical .= \"ACTION:DISPLAY\".PHP_EOL;\r\n $ical .= \"DESCRIPTION:DEADLINE REMINDER for \".canonicalize_whitespace(strip_tags($event->title)).PHP_EOL;\r\n $ical .= \"END:VALARM\".PHP_EOL;\r\n }\r\n $ical .= \"END:VEVENT\".PHP_EOL;\r\n }\r\n $ical .= \"END:VCALENDAR\".PHP_EOL;\r\n return $ical;\r\n }", "function phorum_mod_google_maps_cc_menu_options_hook()\n{\n global $PHORUM;\n\n // Generate the required template data for the control panel menu button.\n if ($PHORUM[\"DATA\"][\"PROFILE\"][\"PANEL\"] == 'location')\n $PHORUM[\"DATA\"][\"LOCATION_PANEL_ACTIVE\"] = TRUE;\n $PHORUM[\"DATA\"][\"URL\"][\"CC_LOCATION\"] =\n phorum_get_url(PHORUM_CONTROLCENTER_URL, \"panel=location\");\n\n // Show the menu button.\n include phorum_get_template('google_maps::cc_menu_item');\n}", "function templ_add_admin_menu_()\r\n{\r\n\tdo_action('templ_add_admin_menu_');\r\n}", "public function build() {\n\t\t$extender = $this->container->make(SidebarExtender::class);\n\n\t\t$this->menu->add(\n\t\t\t$extender->extendWith($this->menu)\n\t\t);\n\t}", "function admin_menu()\n {\n }", "function admin_menu()\n {\n }", "function admin_menu()\n {\n }", "function render_block_core_calendar($attributes)\n {\n }", "public function add_menu_link() {\n\t\tadd_submenu_page(null, __('Operations', 'wpas_attendeeinfo') , __('Operations', 'wpas_attendeeinfo') , 'manage_operations_emd_contacts', 'operations_emd_contact', array(\n\t\t\t$this,\n\t\t\t'get_operations'\n\t\t));\n\t}", "function Menu_Rendering($menu) {\r\n}", "function altlab_student_data_motherblog_menu(){\n\tadd_menu_page(\n\t\t'Mother Blog Student Data', \n\t\t'Student Data', \n\t\t'manage_options', \n\t\t'altlab_student_data_motherblog', \n\t\t'altlab_student_data_motherblog_options_page', \n\t\t'dashicons-chart-bar'\n\t\t); \n\n}", "function evt_cfg_menu_elem($evt_tmp, $agenda_tmp, $jour_ymd_select)\r\n{\r\n\t////\tINIT\r\n\tglobal $trad, $objet;\r\n\tif(!isset($evt_tmp[\"droit_acces\"]))\t\t$evt_tmp[\"droit_acces\"] = droit_acces($objet[\"evenement\"],$evt_tmp,false);\r\n\t$cfg_menu_elem = array(\"objet\"=>$objet[\"evenement\"], \"objet_infos\"=>$evt_tmp, \"taille_icone\"=>\"small\");\r\n\r\n\t////\tMODIF\r\n\tif($evt_tmp[\"droit_acces\"] > 1)\t\t$cfg_menu_elem[\"modif\"] = \"evenement_edit.php?id_evenement=\".$evt_tmp[\"id_evenement\"].\"&id_agenda=\".$agenda_tmp[\"id_agenda\"];\r\n\t////\tSUPPRESSION\r\n\tif($evt_tmp[\"droit_acces\"]==3 || $agenda_tmp[\"droit\"]>=2)\r\n\t{\r\n\t\t////\tSuppression ds l'agenda courant\r\n\t\t$cfg_menu_elem[\"suppr\"] = \"index.php?action=suppr_evt&id_evenement=\".$evt_tmp[\"id_evenement\"].\"&id_agenda=\".$agenda_tmp[\"id_agenda\"];\r\n\t\t$cfg_menu_elem[\"suppr_text_confirm\"] = $trad[\"AGENDA_confirm_suppr_evt\"];\r\n\t\t////\tSuppressions ds les agendas, pour le proprio de l'evt\r\n\t\tif($evt_tmp[\"droit_acces\"]==3)\r\n\t\t{\r\n\t\t\t// Périodicité : supprime à une date précise\r\n\t\t\tif($evt_tmp[\"periodicite_type\"]!=\"\")\t$cfg_menu_elem[\"options_divers\"][] = array(\"action_js\"=>\"confirmer('\".addslashes($trad[\"AGENDA_confirm_suppr_evt_date\"]).\"','index.php?action=suppr_evt&id_evenement=\".$evt_tmp[\"id_evenement\"].\"&id_agenda=tous&date_suppr=\".$jour_ymd_select.\"');\", \"icone_src\"=>PATH_TPL.\"divers/supprimer.png\", \"text\"=>$trad[\"AGENDA_supprimer_evt_date\"]);\r\n\t\t\t// Supprime pour tous les agendas ou il est affecté (s'il y en a plusieurs)\r\n\t\t\tif(db_valeur(\"SELECT count(*) FROM gt_agenda_jointure_evenement WHERE id_evenement='\".$evt_tmp[\"id_evenement\"].\"'\")>1){\r\n\t\t\t\t$cfg_menu_elem[\"options_divers\"][] = array(\"action_js\"=>\"confirmer('\".addslashes($trad[\"AGENDA_confirm_suppr_evt_tout\"]).\"','index.php?action=suppr_evt&id_evenement=\".$evt_tmp[\"id_evenement\"].\"&id_agenda=tous');\", \"icone_src\"=>PATH_TPL.\"divers/supprimer.png\", \"text\"=>$trad[\"AGENDA_supprimer_evt_agendas\"]);\r\n\t\t\t\t$cfg_menu_elem[\"suppr_text\"] = $trad[\"AGENDA_supprimer_evt_agenda\"];\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t////\tVISIBILITE SPECIFIQUE & RETOUR\r\n\t$cfg_menu_elem[\"visibilite_specifique\"] = txt_affections_evt($evt_tmp);\r\n\treturn $cfg_menu_elem;\r\n}", "protected function createMenuEntriesForTbeModulesExt() {}", "protected function createMenuEntriesForTbeModulesExt() {}", "function make_calendar_pulldowns() {\n $months = array (1 => 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');\n\n\n\n // Make the days pull-down menu:\n echo '<select required=\"required\" name=\"day\" id=\"day\" style=\"width: 33%; display: inline; float: left; margin-left: 0%; margin-right: 0%\" ;>';\n echo '<option selected value=\"\">Day</option>\\n';\n for ($day = 1; $day <= 31; $day++) {\n echo \"<option value=\\\"$day\\\">$day</option>\\n\";\n }\n echo '</select>';\n\n\n// Make the months pull-down menu:\n //echo '<p><label for=\"dob\" style=\"font-family: Verdana, Arial; font-size: 1.0em; font-weight: 600; color: #595959; line-height: 1.9em;\">Date of Birth</label></p>';\n echo '<select required=\"required\" name=\"month\" id=\"month\" style=\"width: 33%; display: inline; float: left; margin-left: 1%; margin-right: 0%\">';\n echo '<option selected value=\"\">Month</option>\\n';\n foreach ($months as $key => $value) {\n echo \"<option value=\\\"$key\\\" >$value</option>\\n\";\n }\n echo '</select>';\n\n\n // Make the years pull-down menu:\n echo '<select required=\"required\" name=\"year\" id=\"year\" style=\"width: 33%; display: inline; float: left; margin-left: 0%; margin-right: 0%\" ;>';\n echo '<option selected value=\"\">Year</option>\\n';\n for ($year = 1980; $year <= 2015; $year++) {\n echo \"<option value=\\\"$year\\\">$year</option>\\n\";\n }\n echo '</select>';\n }", "protected function registerMenu()\n {\n }", "function compileMenu() {\n\t\tglobal $page;\n\t\tSession::setMenu($page->getNavigationItems(0));\n\t}", "function CreateCalendarActions(){\n $arrFormAttributes = array('method'=>'post');\n $objActionsForm = $this->objCalendar->AddChildNode($this->objCalendar->objHTML,'', 'form',$arrFormAttributes);\n //compare dates\n $this->objCalendar->AddChildNode($objActionsForm,'', 'input',array('type'=>'button','onclick'=>'ExecuteAction(\\'comparedates\\',this.form);','value'=>'Compare dates between selected options','class'=>'calendarnavbuttons left linebreak'));\n //add dates\n $this->objCalendar->AddChildNode($objActionsForm,'', 'input',array('type'=>'button','onclick'=>'ExecuteAction(\\'adddates\\',this.form);','value'=>'Add dates together','class'=>'calendarnavbuttons left linebreak'));\n //add now till then ( last date )\n $this->objCalendar->AddChildNode($objActionsForm,'', 'input',array('type'=>'button','onclick'=>'ExecuteAction(\\'nowtillthen\\',this.form);','value'=>'Add now till then ( earliest date if more than one is selected )','class'=>'calendarnavbuttons left linebreak'));\n //hidden calendar action field\n $this->objCalendar->AddChildNode($objActionsForm,'', 'input',array('type'=>'hidden','value'=>'','name'=>'calendaraction'));\n //hidden calendar action data field\n $this->objCalendar->AddChildNode($objActionsForm,'', 'input',array('type'=>'hidden','value'=>'','name'=>'actiondata'));\n //hidden present month\n $this->objCalendar->AddChildNode($objActionsForm,'', 'input',array('type'=>'hidden','value'=>$this->intMonth,'name'=>'presentmonth'));\n //hidden present year\n $this->objCalendar->AddChildNode($objActionsForm,'', 'input',array('type'=>'hidden','value'=>$this->intYear,'name'=>'presentyear'));\n //hidden month action\n $this->objCalendar->AddChildNode($objActionsForm,'', 'input',array('type'=>'hidden','value'=>'none','name'=>'monthaction'));\n return TRUE;\n }" ]
[ "0.6623506", "0.6484451", "0.6376782", "0.626269", "0.626269", "0.626269", "0.626269", "0.626269", "0.626269", "0.6237314", "0.62168115", "0.61911184", "0.6172591", "0.6143225", "0.60772306", "0.60534066", "0.60376495", "0.60370576", "0.6016299", "0.60118073", "0.5969944", "0.59657955", "0.59650046", "0.5914811", "0.589344", "0.5887842", "0.58221745", "0.5796236", "0.5795899", "0.57954794", "0.57923865", "0.57870024", "0.5786672", "0.5772392", "0.5757224", "0.5742632", "0.57365173", "0.5731518", "0.5731518", "0.5731092", "0.57227296", "0.5715677", "0.5708686", "0.5703631", "0.56948835", "0.5693911", "0.5693911", "0.5693174", "0.5670008", "0.5645951", "0.56361014", "0.5633997", "0.5628912", "0.5608918", "0.5603597", "0.55932075", "0.5582396", "0.5581624", "0.5577896", "0.55714464", "0.556793", "0.55672556", "0.55543697", "0.55537975", "0.5552298", "0.5542558", "0.5540078", "0.55387497", "0.5537725", "0.5537725", "0.5537725", "0.553647", "0.553647", "0.5535229", "0.5527392", "0.5526477", "0.55258423", "0.5521882", "0.5518202", "0.55164057", "0.55136776", "0.550393", "0.54954165", "0.5492881", "0.5491034", "0.54892075", "0.54831564", "0.54831564", "0.54831564", "0.5475259", "0.54736733", "0.5472761", "0.5464649", "0.54644394", "0.5463743", "0.5463743", "0.5458503", "0.5455434", "0.5452019", "0.54484534" ]
0.81439376
0
Retrieve list of modules from config
public function getModulesList();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getModules();", "public function getModules();", "public function getModules() {\n }", "public function getModules()\n {\n return $this['module.list'];\n }", "public function getModuleList(){\n $qb = $this->createQueryBuilder();\n $qb->module('system')->query('modulelistnames');\n return $this->execute($qb);\n }", "public function getAll()\n {\n $this->_modules['core'][] = array (\n 'module' => 'Magento',\n 'codePool' => 'core',\n 'active' => 'true',\n 'version' => Mage::getVersion()\n );\n\n foreach (Mage::getConfig()->getModuleConfig() as $node) {\n foreach ($node as $module => $data) {\n if (!isset($data->codePool)) {\n continue;\n }\n $codePool = $data->codePool->asArray();\n if (empty($codePool)) {\n continue;\n }\n if (is_array($codePool)) {\n $codePool = implode('.', $codePool);\n }\n\n $this->_modules[$codePool][] = array (\n 'module' => $module,\n 'codePool' => $codePool,\n 'active' => $data->active,\n 'version' => $data->version\n );\n }\n }\n\n return $this->_modules;\n }", "public function listModules() {\n\t\t\t// to use languages\n\t\t\tglobal $language;\n\t\t\t$this->lang = $language[parse_lang()];\n\n\t\t\t// only open when directory really exists\n\t\t\t$handler = file_exists($this->dir) ? opendir($this->dir) : die($this->lang['nodirectory']);\n\n\t\t\twhile (false !== ($entry = readdir($handler))) {\n\t\t\t\tif(preg_match('/^[m][o][d][_][0-9][A-Za-z]{3,}[.][p][h][p]$/', $entry)) {\n\t\t\t\t\tinclude($this->dir.'/'.$entry);\n\t\t\t\t\tif($config['innav'] == true) $this->listArray[$entry] = $config;\n\t\t\t\t\t$this->listRequires[$config['name']] = $requires;\n\t\t\t\t\t$this->listAttributes[$config['name']] = $config;\n\t\t\t\t}\n\t\t\t\tksort($this->listArray);\n\t\t\t}\n\t\t}", "public function getModules() {\n if($this->_Modules === NULL) {\n $this->_Modules = array();\n $dir = opendir('modules');\n while ($cnt = readdir($dir)) {\n if ($cnt == '.' || $cnt == '..') {\n continue;\n }\n $configFile = \"modules/$cnt/module.json\";\n if (!is_file($configFile)) {\n continue;\n }\n $json_data = file_get_contents($configFile);\n $config = json_decode($json_data, true);\n $config[\"folder\"] = \"modules/$cnt\";\n $config[\"config\"] = file_exists(\"modules/$cnt/config.php\") === true;\n $this->_Modules[$config['code']] = $config;\n }\n closedir($dir); \n }\n return $this->_Modules;\n }", "function qa_list_modules_info()\n{\n\tglobal $qa_modules;\n\treturn $qa_modules;\n}", "static function modulesConfig($onlyConfigured=false){\r\n\t\t$conf = smvcCollection::init(defined('MODULES_CONF') ? json_decode(MODULES_CONF,true) : array())\r\n\t\t\t->combine(self::$modulConfKeys)\r\n\t\t\t->sort('weight')\r\n\t\t;\r\n\t\tif( $onlyConfigured ){\r\n\t\t\treturn $conf;\r\n\t\t}\r\n\t\t$modulesIterator = new DirectoryIterator(MODULES_DIR);\r\n\t\t$modules = array();\r\n\t\tforeach( $modulesIterator as $mod ){\r\n\t\t\tif( $mod->isDot() || ! $mod->isDir() )\r\n\t\t\t\tcontinue;\r\n\t\t\t$modules[] = $mod = $mod->getFileName();\r\n\t\t\t$maxWeight = $conf->max('weight');\r\n\t\t\tif(! isset($conf[$mod]) ){\r\n\t\t\t\t$conf[$mod] = array(\r\n\t\t\t\t\t'active'=> false\r\n\t\t\t\t\t,'weight'=> ++$maxWeight\r\n\t\t\t\t\t,'installed'=> false\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $conf;\r\n\t}", "public function getIncludedModules ();", "public static function getModules(){ \n $db = new db();\n $db->connect();\n $modules = $db->selectAll('modules');\n return self::getModulesInfo($modules);\n }", "public function getModules()\n {\n $oxidConfig = oxConfig::getInstance();\n $modules = $oxidConfig->getShopConfVar('aModules');\n $moduleList = array();\n foreach ($modules as $oxidClass => $module) {\n $moduleList[$oxidClass] = explode('&', $module);\n }\n\n return $moduleList;\n }", "function forminator_get_modules() {\n\t$forminator = Forminator_Core::get_instance();\n\n\treturn $forminator->modules;\n}", "final public function availableConfiguration(): array {\n\t\t$module_paths = $this->application->modulePath();\n\t\t$files = [];\n\t\t/* Walk all non-dot directories, looking for .module.json files */\n\t\t$options = [\n\t\t\tDirectory::LIST_RULE_FILE => [\n\t\t\t\t'#\\.module\\.json$#' => true, false,\n\t\t\t], Directory::LIST_RULE_DIRECTORY_WALK => [\n\t\t\t\t'#/\\.#' => false, true,\n\t\t\t], Directory::LIST_RULE_DIRECTORY => false, Directory::LIST_ADD_PATH => true,\n\t\t];\n\t\tforeach ($module_paths as $module_path) {\n\t\t\ttry {\n\t\t\t\t$files[$module_path] = Directory::listRecursive($module_path, $options);\n\t\t\t} catch (ParameterException) {\n\t\t\t}\n\t\t}\n\t\t$available = [];\n\t\tforeach ($files as $module_files) {\n\t\t\tforeach ($module_files as $module_file) {\n\t\t\t\t$module = trim(StringTools::removePrefix(dirname($module_file), $module_paths), '/');\n\t\t\t\t$available[$module] = $module_file;\n\t\t\t}\n\t\t}\n\t\treturn $available;\n\t}", "public static function getAllModules()\n\t\t{\n\n\t\t\t$modules = array();\n\n\t\t\treturn apply_filters( 'studiorum_modules', $modules );\n\n\t\t}", "public function getModules()\n {\n return array();\n }", "public function getLoadedModules() {}", "public function getDirectoryModules();", "private function listModules() {\n\t\t\n\t\t$tabModules = array ();\n\t\t\n\t\t# search for modules in {appPath}/lib/modules/{module_name}/{module_name}.class.php\n\t\t$res = opendir(LIB_MOD);\n\t\t$i = 0;\n\t\twhile (false !== ($fModule = readdir($res))) {\n\t\t\tif (is_dir(LIB_MOD . $fModule) && $fModule != '.' && $fModule != '..') {\n\t\t\t\tif (is_file(LIB_MOD . $fModule .'/'. $fModule .'.class.php')) {\n\t\t\t\t\t$tabModules[$i]['name'] = $fModule;\n\t\t\t\t\t$tabModules[$i]['link'] = $this->conf['general']['appURL'] .'?action='. $fModule .'.show';\n\t\t\t\t\t++$i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tclosedir($res);\n\t\t$ret = array (\n\t\t\t'modules'\t=> $tabModules\n\t\t);\n\t\t\n\t\treturn $ret;\n\t}", "function getModules()\n\t{\n\t\t $this->loadModel('Module'); \n\n\t\t $sections = $this->Module->query(\"SELECT * FROM modules WHERE enable = '1'\");\n\t\t return $sections;\n\t}", "public function listModules(): array\n {\n if ($this->listModulesCache !== null) {\n return $this->listModulesCache;\n }\n\n // Check manifest\n if (Manifest::has(self::MANIFEST_MODULES)) {\n return (array) Manifest::get(self::MANIFEST_MODULES);\n }\n\n $loadModules = Config::get('system.load_modules');\n\n // Lazy\n if (!$loadModules) {\n $foundModules = [];\n foreach (File::directories(base_path('modules')) as $dir) {\n $foundModules[] = ucfirst(basename($dir));\n }\n\n $result = $foundModules;\n }\n // Eager\n elseif (is_array($loadModules)) {\n $result = $loadModules;\n }\n else {\n $result = array_map('trim', explode(',', (string) $loadModules));\n }\n\n // System comes first\n $result = array_unique(array_merge(['System'], $result));\n\n // Store result\n Manifest::put(self::MANIFEST_MODULES, $result);\n\n return $this->listModulesCache = $result;\n }", "public function getModules(){\n $qb = $this->createQueryBuilder();\n $qb->module('system')->query('modulelist');\n return $this->execute($qb);\n }", "public function get_modules( $status = 'all' );", "public function getModules() {\n return $this->modules;\n }", "public function all()\n {\n return $this->modules;\n }", "protected function readModules()\n {\n foreach ($this->moduleList as $vendorName => &$modulesArray) {\n $directoryIterator = new \\DirectoryIterator(\n $this->getAppCodeAbsolutePath() . DIRECTORY_SEPARATOR . $vendorName\n );\n foreach ($directoryIterator as $element) {\n if ($element->isDir()\n && $this->isBaseNameValid($element->getBasename())\n ) {\n $modulesArray[] = $element->getBasename();\n }\n }\n }\n }", "public function getConfig()\n {\n\n $config = [];\n\n $configFiles = [\n __DIR__ . '/config/module.config.php',\n __DIR__ . '/config/module.config.cache.php',\n __DIR__ . '/config/module.config.console.php',\n __DIR__ . '/config/module.config.forms.php',\n __DIR__ . '/config/module.config.imagestorage.php',\n __DIR__ . '/config/module.config.routes.php',\n ];\n\n // Merge all module config options\n foreach($configFiles as $configFile) {\n $config = \\Zend\\Stdlib\\ArrayUtils::merge($config, include $configFile);\n }\n\n return $config;\n }", "public function getModules()\n {\n return $this->modules;\n }", "public function getModules()\n {\n return $this->modules;\n }", "public function getModules()\n {\n return $this->modules;\n }", "function qa_list_modules($type)\n{\n\t$modules = qa_list_modules_info();\n\treturn is_array(@$modules[$type]) ? array_keys($modules[$type]) : array();\n}", "public function getAllModules()\n\t{\n\t\treturn $this->modules;\n\t}", "public function\n\tgetAvailableModules() : array\n\t{\n\t\t$moduleList_core \t= [];\n\t\t$moduleList_mantle \t= [];\n\n\t\t$procPath = CMS_SERVER_ROOT . DIR_CORE . DIR_MODULES;\n\n\t\tif(file_exists($procPath))\n\t\t{ \n\t\t\t$_dirIterator \t= new DirectoryIterator($procPath);\n\t\t\tforeach($_dirIterator as $_dirItem)\n\t\t\t{\n\t\t\t\tif($_dirItem -> isDot() || $_dirItem -> getType() !== 'dir')\n\t\t\t\t\tcontinue;\n\n\t\t\t\t$directory = $_dirItem -> getFilename();\n\n\t\t\t\tif($directory[0] === '.')\n\t\t\t\t\tcontinue;\n\n\t\t\t\t$moduleFilepath = $procPath . $directory .'/module.json'; \n\n\t\t\t\t$moduleConfig\t= file_get_contents($moduleFilepath);\n\n\t\t\t\tif($moduleConfig === false)\n\t\t\t\t\tcontinue;\n\n\t\t\t\t$moduleConfig = json_decode($moduleConfig);\n\n\t\t\t\t// Determine Scheme\n\n\t\t\t\t$pModulesInstall = new CModulesInstall;\n\n\t\t\t\t$moduleData = $pModulesInstall -> getModuleData($moduleConfig, $directory, 'core');\n\n\t\t\t\tif($moduleData === false)\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$moduleData = json_decode(json_encode($moduleData));\n\n\t\t\t\t$moduleData -> module -> module_location = $directory;\n\n\t\t\t\t$moduleList_core[]\t= $moduleData;\n\t\t\t}\n\t\t}\n\n\t\t$procPath = CMS_SERVER_ROOT . DIR_MANTLE . DIR_MODULES;\n\n\t\tif(file_exists($procPath))\n\t\t{ \n\t\t\t$_dirIterator \t= new DirectoryIterator($procPath);\n\t\t\tforeach($_dirIterator as $_dirItem)\n\t\t\t{\n\t\t\t\tif($_dirItem -> isDot() || $_dirItem -> getType() !== 'dir')\n\t\t\t\t\tcontinue;\n\n\t\t\t\t$directory = $_dirItem -> getFilename();\n\n\t\t\t\tif($directory[0] === '.')\n\t\t\t\t\tcontinue;\n\n\t\t\t\t$moduleFilepath = $procPath . $directory .'/module.json'; \n\n\t\t\t\t$moduleConfig\t= file_get_contents($moduleFilepath);\n\n\t\t\t\tif($moduleConfig === false)\n\t\t\t\t\tcontinue;\n\n\t\t\t\t$moduleConfig = json_decode($moduleConfig);\n\n\t\t\t\t// Determine Scheme\n\n\t\t\t\t$pModulesInstall = new CModulesInstall;\n\n\t\t\t\t$moduleData = $pModulesInstall -> getModuleData($moduleConfig, $directory, 'mantle');\n\n\t\t\t\tif($moduleData === false)\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$moduleData = json_decode(json_encode($moduleData));\n\n\t\t\t\t$moduleData -> module -> module_location = $directory;\n\n\t\t\t\t$moduleList_mantle[]\t= $moduleData;\n\t\t\t}\n\t\t}\n\n\t\t$availableList = [];\n\n\t\tforeach($moduleList_core as $dirModuleKey => $dirModuleItem)\n\t\t{\n\t\t\t$moduleInstalled = false;\n\n\n\t\t\tif(!isset($dirModuleItem -> module -> module_controller))\n\t\t\t{\n\t\t\t\t#tk::dbug($dirModuleItem);\n\n\t\t\t\t// aaaooohhh well ... this should not be\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tforeach($this -> modulesList as $listItem)\n\t\t\t{\n\t\t\t\tif($listItem -> module_controller === $dirModuleItem -> module -> module_controller)\n\t\t\t\t{\n\t\t\t\t\t$moduleInstalled = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif($moduleInstalled)\n\t\t\t\tcontinue;\n\n\t\t#\t$dirModuleItem -> module_type = \"core\";\n\n\t\t\t$availableList[] = $dirModuleItem;\n\t\t}\n\n\t\tforeach($moduleList_mantle as $dirModuleKey => $dirModuleItem)\n\t\t{\n\t\t\t$moduleInstalled = false;\n\n\t\t\tforeach($this -> modulesList as $listItem)\n\t\t\t{\n\t\t\t\tif($listItem -> module_controller === $dirModuleItem -> module -> module_controller)\n\t\t\t\t{\n\t\t\t\t\t$moduleInstalled = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($moduleInstalled)\n\t\t\t\tcontinue;\n\n\t\t#\t$dirModuleItem -> module_type \t\t= \"mantle\";\n\n\t\t\t$availableList[] = $dirModuleItem;\n\t\t}\n\n\n\t\treturn $availableList;\n\t}", "private function getAllModulesOfProject()\n {\n return $this->modulesRegistry->getModules();\n }", "public function getConfig() : array {\n return include __DIR__ . '/../config/module.config.php';\n }", "public function loadModules();", "function getModules(){\n global $adb;\n $query=\"select vtiger_tab.tabid,vtiger_tab.tablabel as modulename,linklabel from vtiger_tab left join vtiger_links on vtiger_tab.tabid=vtiger_links.tabid and linklabel='WYSIWYG'\nwhere isentitytype=1 and tablabel!='Comments'\";\n $result=$adb->pquery($query,array());\n while($resultrow = $adb->fetch_array($result)) {\n $modulelist[$resultrow['modulename']]=array('enabled'=>$resultrow['linklabel']==\"WYSIWYG\",'tabid'=>$resultrow['tabid']);\n }\n return $modulelist;\n }", "public static function getListStatic() {\n\n\t\t$list = array();\n\t\t$d = dir(CGN_MODULE_PATH);\n\t\twhile ($entry = $d->read()){\n\t\t\tif (substr($entry,0,1) == '.' || substr($entry, -1) == '~') {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$mod = new Cgn_Module_Info($entry, NULL, CGN_MODULE_PATH.'/'.$entry);\n\t\t\t$list[] = $mod;\n\t\t}\n\n\t\tif (defined('CGN_MODULE_LOCAL_PATH') && file_exists(CGN_MODULE_LOCAL_PATH)) {\n\t\t\t$d = dir(CGN_MODULE_LOCAL_PATH);\n\t\t\twhile ($entry = $d->read()){\n\t\t\t\tif (substr($entry,0,1) == '.' || substr($entry, -1) == '~') {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$mod = new Cgn_Module_Info($entry, NULL, CGN_MODULE_LOCAL_PATH.'/'.$entry);\n\t\t\t\t$list[] = $mod;\n\t\t\t}\n\t\t}\n\n\t\t$d = dir(CGN_ADMIN_PATH);\n\t\twhile ($entry = $d->read()){\n\t\t\tif (substr($entry,0,1) == '.' || substr($entry, -1) == '~') {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$mod = new Cgn_Module_Info($entry, TRUE, CGN_ADMIN_PATH.'/'.$entry);\n\t\t\t$list[] = $mod;\n\t\t}\n\n\t\tif (defined('CGN_ADMIN_LOCAL_PATH') && file_exists(CGN_ADMIN_LOCAL_PATH)) {\n\t\t\t$d = dir(CGN_ADMIN_LOCAL_PATH);\n\t\t\twhile ($entry = $d->read()){\n\t\t\t\tif (substr($entry,0,1) == '.' || substr($entry, -1) == '~') {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$mod = new Cgn_Module_Info($entry, TRUE, CGN_ADMIN_LOCAL_PATH.'/'.$entry);\n\t\t\t\t$list[] = $mod;\n\t\t\t}\n\t\t}\n\t\treturn $list;\n\t}", "public function getLoadedModules($loadModules);", "protected function getAllModules()\n {\n return Hook::getHookModuleExecList('displayHeader');\n }", "function getModuleList($add_extravars = false)\n {\n $args->sort_index = \"module_srl\";\n $args->page = 1;\n $args->list_count = 200;\n $args->page_count = 10;\n $args->s_module_category_srl = Context::get('module_category_srl');\n\n $output = executeQueryArray('xedocs.getManualList', $args);\n ModuleModel::syncModuleToSite($output->data);\n\n if(!$add_extravars){\n return $output->data;\n }\n\n $oModuleModel = &getModel('module');\n\n foreach($output->data as $module_info){\n $extra_vars = $oModuleModel->getModuleExtraVars($module_info->module_srl);\n foreach($extra_vars[$module_info->module_srl] as $k=>$v){\n $module_info->{$k} = $v;\n }\n }\n\n return $output->data;\n }", "public function getModuleConfiguration();", "public function getAllModules()\n {\n $modules = array();\n $query = 'SELECT m.id, m.name, t.name AS theme FROM tl_module m LEFT JOIN tl_theme t ON m.pid=t.id';\n\n if (\\Input::get('table') == 'tl_module' && \\Input::get('act') == 'edit') {\n $query .= ' WHERE m.id != ?';\n }\n\n $query .= ' ORDER BY t.name, m.name';\n $result = \\Database::getInstance()\n ->prepare($query)\n ->execute(\\Input::get('id'));\n\n while ($result->next()) {\n $modules[$result->theme][$result->id] = $result->name . ' (ID ' . $result->id . ')';\n }\n\n return $modules;\n }", "public function getModules()\n {\n\n if ($this->_modules !== null) {\n return $this->_modules;\n }\n\n $url = Yii::app()->getModule('admin')->marketplaceApiUrl . \"list?version=\" . urlencode(HVersion::VERSION) . \"&installId=\" . HSetting::Get('installationId', 'admin');\n\n try {\n\n $this->_modules = Yii::app()->cache->get('onlineModuleManager_modules');\n if ($this->_modules === null || !is_array($this->_modules)) {\n\n $http = new Zend_Http_Client($url, array(\n 'adapter' => 'Zend_Http_Client_Adapter_Curl',\n 'curloptions' => $this->getCurlOptions(),\n 'timeout' => 30\n ));\n\n $response = $http->request();\n $json = $response->getBody();\n\n $this->_modules = CJSON::decode($json);\n Yii::app()->cache->set('onlineModuleManager_modules', $this->_modules, HSetting::Get('expireTime', 'cache'));\n }\n } catch (Exception $ex) {\n throw new CHttpException('500', Yii::t('AdminModule.libs_OnlineModuleManager', 'Could not fetch module list online! (%error%)', array('%error%' => $ex->getMessage())));\n }\n return $this->_modules;\n }", "public function actionGenerateModuleConfig()\n {\n $detectedModules = $this->actionDetectModules();\n\n $modules = Module::model()->findAll(new CDbCriteria(array(\n 'order' => 'name',\n 'condition' => 'enabled = true',\n )));\n $config = array();\n foreach ($modules as $module) {\n if (!isset($detectedModules[$module->name])) continue;\n $config[$module->name] = array(\n 'class' => $detectedModules[$module->name]\n );\n }\n $str = \"<?php\\nreturn \" . var_export($config, true) . \"\\n?>\";\n file_put_contents(Yii::getPathOfAlias('runtime.cache') . '/modules.php', $str);\n }", "static function get_all_available_modules()\n {\n $result = array();\n\n $categories = self::get_all_available_categories();\n\n foreach ($categories as $nome_categoria)\n {\n $names = self::get_all_available_by_category($nome_categoria);\n\n if (is_array($names))\n foreach ($names as $nome_modulo)\n {\n $def = self::get_available_module_definition($nome_categoria,$nome_modulo);\n \n $mod = array();\n $mod[\"show\"] = $def->get_show();\n $mod[\"nome_categoria\"] = $nome_categoria;\n $mod[\"nome_modulo\"] = $nome_modulo;\n $version = $def->get_current_version();\n $mod[\"properties\"] = $version;\n $result[] = $mod;\n \n }\n else echo \"Errore per la categoria : \".$nome_categoria;\n\n }\n\n return $result;\n }", "protected function installedModules()\n {\n $model = Pi::model('module');\n $select = $model->select()\n ->columns(array('dir' => new Expression('DISTINCT directory')));\n $rowset = $model->selectWith($select);\n $modules = array();\n foreach ($rowset as $row) {\n $modules[] = $row->dir;\n }\n\n return $modules;\n }", "function efflab_cb_get_plugin_module_slugs() {\n\t$pluginModules = glob( EFFLAB_CB_BASE_DIR .'/modules/*' , GLOB_ONLYDIR );\n\t\n\t// Build array of slugs\n\tif($pluginModules){\n\t $pluginModuleArray = [];\n\t foreach ($pluginModules as $pluginModule ) {\n\t \t$pluginMod = basename( $pluginModule );\n\t \t$pluginModuleArray[] = $pluginMod;\n\t }// end foreach\n\t //print_r($pluginModuleArrary);\n\t} // endif\n\t\n\treturn $pluginModuleArray;\n}", "public static function getCachedCmsModulesList()\n {\n $storedHash = (string) Configuration::get(static::MODULE_LIST_CACHE_CHECKSUM);\n $calculatedHash = md5(implode('#', Module::getModulesDirOnDisk(true)));\n\n if ($storedHash != $calculatedHash) {\n $serializedModules = array();\n static::$moduleListCache = Module::getModulesOnDisk(true);\n\n foreach (static::$moduleListCache as $module) {\n $serializedModules[] = json_encode($module);\n }\n\n Configuration::updateValue(static::MODULE_LIST_CACHE_CHECKSUM, $calculatedHash);\n static::writeModulesCache($serializedModules);\n\n return static::$moduleListCache;\n } else {\n try {\n if (is_array(static::$moduleListCache)) {\n return static::$moduleListCache;\n }\n\n $modulesList = static::requireModulesCache();\n\n if ($modulesList === false) {\n Configuration::updateValue(static::MODULE_LIST_CACHE_CHECKSUM, 'not exist');\n\n return static::getCachedCmsModulesList();\n }\n\n static::$moduleListCache = array();\n\n foreach ($modulesList as $serializedModule) {\n $deserialized = json_decode($serializedModule);\n\n if ($deserialized instanceof stdClass\n && property_exists($deserialized, 'name')\n && property_exists($deserialized, 'active')\n ) {\n $deserialized->active = Module::isEnabled($deserialized->name);\n static::$moduleListCache[] = $deserialized;\n }\n }\n\n static::$moduleListCache = array_filter(static::$moduleListCache);\n unset($modulesList);\n\n return static::$moduleListCache;\n } catch (Exception $exception) {\n RetailcrmLogger::writeCaller(__METHOD__, $exception->getMessage());\n RetailcrmLogger::writeNoCaller($exception->getTraceAsString());\n Configuration::updateValue(static::MODULE_LIST_CACHE_CHECKSUM, 'exception');\n\n return static::getCachedCmsModulesList();\n }\n }\n }", "public static function getAccessModules() {\n global $lC_Language;\n\n $lC_DirectoryListing = new lC_DirectoryListing('includes/modules/access');\n $lC_DirectoryListing->setIncludeDirectories(false);\n\n $modules = array();\n\n foreach ( $lC_DirectoryListing->getFiles() as $file ) {\n $module = substr($file['name'], 0, strrpos($file['name'], '.'));\n if ( !class_exists('lC_Access_' . ucfirst($module)) ) {\n $lC_Language->loadIniFile('modules/access/' . $file['name']);\n include($lC_DirectoryListing->getDirectory() . '/' . $file['name']);\n }\n $module = 'lC_Access_' . ucfirst($module);\n $module = new $module();\n $modules[lC_Access::getGroupTitle( $module->getGroup() )][] = array('id' => $module->getModule(),\n 'text' => $module->getTitle());\n }\n ksort($modules);\n\n return $modules;\n }", "public function getModuleList($forceScan = false)\n {\n if ($this->moduleList === null || $forceScan) {\n $this->scanDir();\n }\n\n return $this->moduleList;\n }", "function getModules() {\n // transverse component directory\n $files = scandir($this->componentDir, 1);\n $dirs = [];\n\n // find all directories\n foreach ($files as $file) {\n if (($file != \".\") && ($file != \"..\") && is_dir($this->componentDir . DIRECTORY_SEPARATOR . $file)) {\n array_push($dirs, $this->getModule($file));\n }\n }\n\n // remember the structure within the module\n $this->modules = $dirs;\n\n return $dirs;\n }", "public static function modules() {\n\t\tif (!isset(self::$_modules)) {\n//\t\t\tif(\\GO::user()){\n//\t\t\t\n//\t\t\tCaching caused more problems than benefits\n//\t\t\t\n//\t\t\t\tif(isset(\\GO::session()->values['modulesObject']) && !isset($GLOBALS['GO_CONFIG'])){\n//\t\t\t\t\tself::$_modules=\\GO::session()->values['modulesObject'];\n//\t\t\t\t}else{\n//\t\t\t\t\tself::$_modules=\\GO::session()->values['modulesObject']=new \\GO\\Base\\ModuleCollection();\n//\t\t\t\t}\n//\t\t\t}else\n//\t\t\t{\n//\t\t\t\tself::$_modules=new \\GO\\Base\\ModuleCollection();\n//\t\t\t}\n\t\t\t\n\t\t\tself::$_modules=new \\GO\\Base\\ModuleCollection();\n\t\t}\n\t\treturn self::$_modules;\n\t}", "public function getModuleServiceProvider()\n {\n return isset($this->config['module']['providers']) ? $this->config['module']['providers'] : [];\n }", "public function moduleConfig($modules)\n {\n if (is_string($modules)) {\n $config = config('society.'.strtolower($modules).'.settings');\n\n return $config;\n }\n\n $config = [];\n foreach ($modules as $module) {\n if ($moduleSettings = config('society.'.strtolower($module->getName()).'.settings')) {\n $config[$module->getName()] = $moduleSettings;\n }\n }\n\n return $config;\n }", "function &loadModules($dirName) {\n\t\t// Ensure modules/ is on include_path\n\t\tset_include_path(implode(PATH_SEPARATOR, array(\n\t\t\trealpath($dirName),\n\t\t\tget_include_path(),\n\t\t)));\n\n\t\t$modules = array();\n\t\t$modulesDir = dir($dirName);\n\n\t\twhile (false !== ( $directory = $modulesDir->read() )) {\n\t\t\tif ($directory == \".\" || $directory == \"..\" || $directory == \".svn\" || !is_dir($modulesDir->path . \"/\" . $directory) || !is_file ($modulesDir->path . \"/\" . $directory . \"/config.json\") )\n\t\t\t\tcontinue;\n\n\t\t\t$directory = realpath($modulesDir->path . \"/\" . $directory);\n\t\t\t/** basename of this module * */\n\t\t\t$bn = basename($directory);\n\t\t\t/** namespace of this module * */\n\t\t\t$ns = $bn;\n\n\t\t\t$modules[$ns] = array(\n\t\t\t\t\"namespace\" => $ns,\n\t\t\t\t\"basePath\" => $directory,\n\t\t\t\t\"config\" => new Zend_Config_Json($directory . '/config.json', 'production', true)\n\t\t\t);\n\t\t}\n\n\t\treturn $modules;\n\t}", "public static function getConfig(){\n\t\tif(CoreConfig::$config == null){\n\t\t\t$query = \"SELECT module, name, value FROM config ORDER by module, name\";\n\t\t\t$table = DB::getTable($query);\n\t\t\tforeach($table as $row) {\n\t\t\t\tCoreConfig::$config[$row['module']][$row['name']] = $row['value'];\n\t\t\t}\n\t\t}\n\t\treturn CoreConfig::$config;\n\t}", "public function readModulesDirectory()\n\t{\n\t\t$modulesName = glob( INCLUDE_PATH . '/Module/*', GLOB_ONLYDIR);\n\t\t$modulesName = $modulesName === false ? array() : array_map('basename', $modulesName);\n\t\treturn $modulesName;\n\t}", "public function getExistingModules() {\n if($this->cache->load(\"existingModules\") !== NULL) {\n return $this->cache->load(\"existingModules\");\n }\n else {\n $existingClasses = $this->getClasses();\n $existingModules = array();\n foreach($existingClasses as $fullName => $path)\n {\n $explode = explode(\"\\\\\", $fullName);\n if($explode[0] == \"AdminModule\" && !in_array($explode[1], $existingModules) && preg_match(\"~[a-zA-Z]+Module~\",$explode[1]) !== 0) {\n $path = pathinfo($path, PATHINFO_DIRNAME);\n $path = str_replace(\"/presenters\", \"\", $path);\n $path = str_replace(\"\\presenters\", \"\", $path);\n $existingModules[$path] = $explode[1];\n }\n }\n $this->cache->save(\"existingModules\", $existingModules);\n return $existingModules;\n }\n }", "public function getAvailableModules(string $module): array;", "protected function _loadModulesInfo($config, $allModuleInfo) {\n\n $installerFile = App::varConfigPath('installer.ini.php');\n\n if ($config->disableInstallers) {\n $installation = array ();\n }\n else if (file_exists($installerFile)) {\n $installation = parse_ini_file($installerFile, true);\n }\n else {\n if ($allModuleInfo)\n $installation = array ();\n else {\n throw new Exception(\"The application is not installed -- installer.ini.php doesn't exist!\\n\", 9);\n }\n }\n\n $section = $config->urlengine['urlScriptId'];\n\n if (!isset($installation[$section])) {\n $installation[$section] = array();\n }\n\n if ($config->compilation['checkCacheFiletime']) {\n $config->_allBasePath = App::getDeclaredModulesDir();\n } else {\n $config->_allBasePath = array();\n }\n\n $modules = array();\n $list = App::getAllModulesPath();\n foreach($list as $k=>$path){\n $module = $this->_readModuleInfo($config, $allModuleInfo, $path, $installation, $section);\n if ($module !== null) {\n $modules[$module->name] = $module;\n }\n }\n return $modules;\n }", "private function getModules() {\n // @todo Only do a full rebuild of the module cache every 1 at the most\n $modules = system_rebuild_module_data();\n uasort($modules, 'system_sort_modules_by_info_name');\n\n $result = array();\n $keys_to_send = array('name', 'version', 'package', 'core', 'project');\n foreach ($modules as $module) {\n $info = array();\n $info['status'] = $module->status;\n foreach ($keys_to_send as $key) {\n $info[$key] = isset($module->info[$key]) ? $module->info[$key] : '';\n }\n $info['filename'] = $module->getPathname();\n if (empty($info['project']) && $module->origin == 'core') {\n $info['project'] = 'drupal';\n }\n\n // Determine which files belong to this module and hash them.\n $module_path = explode('/', $info['filename']);\n array_pop($module_path);\n\n // We really only care about this module if it is in 'sites' or in\n // 'modules' folder.\n // Otherwise it is covered by the hash of the distro's modules.\n if ($module_path[0] == 'sites' || $module_path[0] == 'modules') {\n $contrib_path = implode('/', $module_path);\n\n // Get a hash for this module's files. If we nest into another module,\n // we'll return. and that other module will be covered by it's entry in\n // the system table.\n //\n // !! At present we aren't going to do a per module hash, but rather a\n // per-project hash. The reason being that it is too hard to tell an\n // individual module apart from a project.\n list($info['module_data']['hashes'], $info['module_data']['fileinfo']) = self::generateHashesHelper($contrib_path);\n }\n else {\n $info['module_data']['hashes'] = array();\n $info['module_data']['fileinfo'] = array();\n }\n\n $result[] = $info;\n }\n return $result;\n }", "public static function getActiveFeedModules()\n {\n $feedModules = sugar_cache_retrieve('SugarFeedModules');\n if ($feedModules != null) {\n return($feedModules);\n }\n\n // Already stored in a file\n if (file_exists($cachefile = sugar_cached('modules/SugarFeed/moduleCache.php'))) {\n require_once($cachefile);\n sugar_cache_put('SugarFeedModules', $feedModules);\n return $feedModules;\n }\n\n // Gotta go looking for it\n\n $admin = new Administration();\n $admin->retrieveSettings();\n\n $feedModules = array();\n if (isset($admin->settings['sugarfeed_enabled']) && $admin->settings['sugarfeed_enabled'] == '1') {\n // Only enable modules if the feed system is enabled\n foreach ($admin->settings as $key => $value) {\n if (strncmp($key, 'sugarfeed_module_', 17) === 0) {\n // It's a module setting\n if ($value == '1') {\n $moduleName = substr($key, 17);\n $feedModules[$moduleName] = $moduleName;\n }\n }\n }\n }\n\n\n sugar_cache_put('SugarFeedModules', $feedModules);\n if (! file_exists($cachedir = sugar_cached('modules/SugarFeed'))) {\n mkdir_recursive($cachedir);\n }\n $fd = fopen(\"$cachedir/moduleCache.php\", 'wb');\n fwrite($fd, '<'.\"?php\\n\\n\".'$feedModules = '.var_export($feedModules, true).';');\n fclose($fd);\n\n return $feedModules;\n }", "public function refreshModules ()\n\t{\n\n\t\t$modules = array();\n\n\t\tif ( $_SESSION[ __oSESSION_USER_PARAM__ ][ 'account' ][ 'allSet' ] && $this->hasAuthorised() )\n\t\t{\n\t\t\tif ( isset( $_SESSION[ __oSESSION_USER_PARAM__ ][ 'allowance' ][ 'discoversLimit' ] ) )\n\t\t\t{\n\t\t\t\t$modules[] = 'discover';\n\t\t\t}\n\t\t\tif ( isset( $_SESSION[ __oSESSION_USER_PARAM__ ][ 'allowance' ][ 'campaignsLimit' ] ) )\n\t\t\t{\n\t\t\t\t$modules[] = 'campaign';\n\t\t\t}\n\t\t\tglobal $freeCompanyModules;\n\t\t\tforeach ( $freeCompanyModules as $mod )\n\t\t\t{\n\t\t\t\t$modules[] = $mod;\n\t\t\t}\n\t\t\t$companyModules = $this->company->getModules();\n\t\t\tforeach ( $companyModules as $mod => $status )\n\t\t\t{\n\t\t\t\tif ( in_array( $mod, array(\n\t\t\t\t\t\t'admin',\n\t\t\t\t\t\t'reseller' ) ) )\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$modules[] = $mod;\n\t\t\t}\n\t\t}\n\t\tif ( $_SESSION[ __oSESSION_USER_PARAM__ ][ 'representative' ] )\n\t\t{\n\t\t\tif ( $this->company->hasAccessTo( 'admin' ) )\n\t\t\t{\n\t\t\t\t$modules[] = 'admin';\n\t\t\t}\n\t\t\tif ( $this->company->hasAccessTo( 'reseller' ) )\n\t\t\t{\n\t\t\t\t$modules[] = 'reseller';\n\t\t\t}\n\t\t}\n\n\t\t$this->userInfo[ 'modules' ] = $modules;\n\n\t\treturn $modules;\n\t}", "public function getExcludedModules ();", "public function getModules(DataContainer $dc)\n\t{\n\t\t$arrReturn = array();\n\t\t\n\t\t$objModules = $this->Database->execute(\"SELECT * FROM tl_module WHERE type IN('onepagewebsiteregular','onepagewebsitecustom')\");\n\t\t\n\t\tif($objModules->numRows < 1)\n\t\t{\n\t\t\treturn array(); \n\t\t}\n\t\t\n\t\twhile($objModules->next())\n\t\t{\n\t\t\t$arrReturn[$objModules->id] = $objModules->name. ' <span style=\"color:#b3b3b3\">[id:'.$objModules->id.']</span>';\n\t\t}\n\t\t\n\t\treturn $arrReturn;\n\t}", "protected function getModuleComponents() {\n\t return [\n\t ];\n\t}", "public function getConfigModule() {\n return $this->configModule;\n }", "public function getModuleManager();", "public function get_installed_modules()\n\t{\n\t\tif ( ! is_array($this->installed_modules))\n\t\t{\n\t\t\t$this->installed_modules = array();\n\n\t\t\tee()->db->select('LOWER(module_name) AS name');\n\t\t\tee()->db->order_by('module_name');\n\t\t\t$query = ee()->db->get('modules');\n\n\t\t\tif ($query->num_rows())\n\t\t\t{\n\t\t\t\tforeach($query->result_array() as $row)\n\t\t\t\t{\n\t\t\t\t\t$this->installed_modules[$row['name']] = $row['name'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $this->installed_modules;\n\t}", "public function getLoadedModules() {\n return $this->modules_loaded;\n }", "public function getList() {\n\t\t$modules=$this->_module->getList();\n\t\tforeach($modules as $module_id=>$module_name) {\n\t\t\t$module_name=strtolower($module_name);\n\t\t\t$result=$this->_db->query(\"SELECT * FROM controller WHERE module_id='$module_id'\");\n\t\t\tforeach($result as $controller) {\n\t\t\t\t$controllers[$module_name][]=$controller['name'];\n\t\t\t}\n\t\t}\t\t\n\t\treturn($controllers);\n\t\t\t\n\t}", "public function modules(){\n $userID = Auth::user()->USER_ID;\n $users = USER::where('USER_ID',$userID)->with('authModules')->first();\n $res['USERNAME'] = $users->USERNAME;\n $userModules = $users->authModules;\n foreach($userModules as $userModule){\n $userModuleID = $userModule->MODULE_ID;\n $modules = SystemModule::where('MODULE_ID', $userModuleID)->get();\n foreach($modules as $module){\n array_push($res,$module->MODULE_NAME);\n }\n }\n return $res;\n }", "public static function modules()\n {\n return static::$modules ?: static::$modules = new Modules;\n }", "public static function getModules()\n {\n $modules = [];\n $modules[] = new D2UModule('20-1',\n 'D2U Adressen - Adressausgabe',\n 10);\n $modules[] = new D2UModule('20-2',\n 'D2U Adressen - Kontaktbox',\n 5);\n $modules[] = new D2UModule('20-3',\n 'D2U Adressen - Weltkarte',\n 1);\n return $modules;\n }", "public function getEnabledModules()\n {\n return array_filter($this->definitions, [$this, 'filterEnabled']);\n }", "public function getModuleRoutes()\n {\n return isset($this->config['module']['routes']) ? $this->config['modules']['routes'] : [];\n }", "public function getModules() : array\n {\n if ($this->checkModules()) {\n return $this->modules();\n }\n\n return [];\n }", "protected function getModulesData() {}", "public function workflowModules() {\n \t$out = '';\n \t$modules = Application::availableModules();\n \tforeach($modules as $module) {\n \t\t$out .= \"[\\\"\".$module.\"\\\"], \";\n \t}\n \treturn substr($out, 0, -2);\n }", "public function moduleList($opt=array()){\n\n\t$core = @$this->fsFolder(APP.'/module', '', 'NOROOT_FLAT');\n\t$user = @$this->fsFolder(USER.'/module', '', 'NOROOT_FLAT');\n\n\t$core = is_array($core) ? $core : array();\n\t$user = is_array($user) ? $user : array();\n\t$mods = array_merge($core, $user);\n\tksort($mods);\n\n\tforeach($mods as $mod){\n\n\t\t$core\t= (strpos($mod, \"/user/module\") === false) ? true : false;\n\t\t$mod\t= basename($mod);\n\t\t$module = $this->moduleData($mod, $core);\n\n\t\tif(is_array($module)){\n\t\t\tif($module['hidden'] != 'YES' OR $opt['all']){\n\t\t\t\tif($opt['profile']){\n\t\t\t\t\tif($this->userCan($module['key'].'.index')) $out[$module['name']] = $module;\n\t\t\t\t}else{\n\t\t\t\t\t$out[$module['name']]\t= $module;\n\t\t\t\t\t$pkg[$module['key']]\t= $module;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tksort($out); ksort($pkg);\n\n\tif($opt['dependencies']){\n\t\tforeach($pkg as $key => $mod){\n\t\t\tif(is_array($mod['dependencies']) && sizeof($mod['dependencies']) > 0){\n\t\t\t\tforeach($mod['dependencies'] as $i => $dep){\n\t\t\t\t\tif(array_key_exists($dep, $pkg)){\n\t\t\t\t\t\t$pkg[$key]['dependencies'][$dep] = $pkg[$dep];\n\t\t\t\t\t\t$un[] = $dep;\n\t\t\t\t\t\t\n\t\t\t\t\t#\t$this->pre('@'.$dep, $un);\n\n\t\t\t\t\t\tunset($pkg[$key]['dependencies'][$i]);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tksort($mod['dependencies']);\n\t\t\t}\n\t\t}\n\n\t\tif(sizeof($un) > 0){\n\t\t#\t$this->pre($un, $pkg);\n\t\t\tforeach($un as $unk){\n\t\t\t\tunset($pkg[$unk]);\n\t\t\t}\n\t\t}\n\n\t\treturn $pkg;\n\t}\n\n\t#$this->pre($un);\n\n\n\treturn $out;\n}", "public static function getAll()\n {\n return self::$config;\n }", "public function getAll()\n {\n return $this->config;\n }", "public function getConfigFiles()\n {\n $configs = [];\n\n foreach ($this->getSearchPaths() as $alias) {\n $path = Yii::getAlias($alias);\n $files = FileHelper::findFiles($path, ['only' => ['*/' . self::CONFIG_FILE]]);\n\n foreach ($files as $file) {\n try {\n $config = require($file);\n $config['basePath'] = dirname($file);\n $configs[] = $config;\n } catch (Exception $e) {\n Yii::trace(\"Failed loading module config.php file for {$file}: {$e->getMessage()}\", __METHOD__);\n }\n }\n\n usort($configs, function ($configA, $configB) {\n if (isset($configA['weight'], $configB['weight'])) {\n return (int)$configA['weight'] > (int)$configB['weight'];\n }\n\n return 0;\n });\n }\n\n return $configs;\n }", "public function getModules()\n {\n $orgid = isset($_REQUEST['orgid']) ? decode5t($_REQUEST['orgid']) : '0';\n $data = array();\n try {\n $query = $this->db->query(\"SELECT ModuleId AS module,ViewPermission as permission FROM OrgPermission WHERE OrgId= ? and ModuleId in (5,31,66,171,186,187,2)\", array(\n $orgid\n ));\n $data['permission'] = $query->result();\n }\n catch (Exception $a) {\n $data['permission'] = '0';\n }\n return $data;\n \n }", "public static function getAllFeedModules()\n {\n $feedModules = array('UserFeed'=>'UserFeed');\n\n $baseDirList = array('modules/', 'custom/modules/');\n foreach ($baseDirList as $baseDir) {\n if (! file_exists($baseDir)) {\n continue;\n }\n $d = dir($baseDir);\n while ($module = $d->read()) {\n if (file_exists($baseDir.$module.'/SugarFeeds/')) {\n $dFeed = dir($baseDir.$module.'/SugarFeeds/');\n while ($file = $dFeed->read()) {\n if ($file[0] == '.') {\n continue;\n }\n if (substr($file, -4) == '.php') {\n // We found one\n $feedModules[$module] = $module;\n }\n }\n }\n }\n }\n\n return($feedModules);\n }", "private function get_configurations()\n {\n return [\n Configuration\\Comments::class,\n Configuration\\Editor::class,\n Configuration\\Media::class,\n Configuration\\Misc::class,\n Configuration\\Menu::class,\n Configuration\\Plugins::class,\n ];\n }", "public function getLoadedModules()\n\t{\n\t\treturn $this->loadedModules;\n\t}", "public function includeModules() {\n \t$out = '';\n \t$modules = Application::availableModules();\n \tforeach($modules as $module) {\n \t\t$out .= $module.\",\";\n \t}\n \treturn substr($out, 0, strlen($out)-1);\n }", "public function list() {\n $this->store->listConfig();\n }", "public function getConfig(){\r\n return include __DIR__ . '/config/module.config.php';\r\n }", "private function getInstalledModules()\n\t{\n\t\t$modules = [];\n\t\t$moduleManager = $this->modelManager(Module::class);\n\t\t$builder = $moduleManager->builder();\n\n\t\t$query = $builder->select()\n\t\t\t->from('modules');\n\t\t$installedModules = $builder->execute($query);\n\t\t$installedModules = array_map(function ($class) {\n\t\t\t$class['module_class'] = str_replace('::class', '', $class['module_class']);\n\t\t\treturn $class;\n\t\t}, $installedModules);\n\n\t\tforeach ($installedModules as $installedModule) {\n\t\t\t$module = Module::hydrate($installedModule);\n\t\t\t$modules[] = $module;\n\t\t}\n\t\treturn $modules;\n\t}", "public function getDesignModules()\n {\n $iterator = $this->createFinder()\n ->in($this->getAbsoluteDesignFolder())\n ->directories();\n\n $modules = [];\n foreach ($iterator as $file) {\n \tif(file_exists($file->getRealPath().'/index.ss')) {\n \t$modules[] = new DesignModule($file->getRealPath());\n \t}\n }\n\n return $modules;\n }", "public function getModulesServiceProviders()\n {\n $modulesNamespace = ModulesConfig::getModulesNamespace();\n\n foreach (ModulesConfig::getModulesNames() as $moduleName) {\n // get the Module extra service providers (extra service providers are defined in the modules config file)\n foreach (ModulesConfig::getModulesExtraServiceProviders($moduleName) as $provider) {\n $allServiceProviders[] = $provider;\n }\n // append the Module main service provider\n $allServiceProviders[] = ModulesConfig::buildMainServiceProvider($modulesNamespace, $moduleName);\n }\n\n return array_unique($allServiceProviders) ? : [];\n }", "function getStaticModules () {\n return $this->templateParser->getStaticModules();\n }", "public function getModuleConfig($name) {\n return $this->config['modules'][$name];\n }", "public static function availableModules() {\n\t\t$children = array();\n\t\tforeach(get_declared_classes() as $class){\n\t\t if(is_subclass_of((string)$class, 'WorkflowCategory')) {\n\t\t\t\t$children[] = $class;\n\t\t\t}\n\t\t}\n\t\t//This was the old method we shouldn't need this any longer\n\t\t$modules = self::$registeredModules;\n\t\t$children = $modules;\n\t\t//print_r($children);\n\t\treturn $children;\n\t}", "function getConnectorModules() {\n $sql = \"SELECT module_guid, module_class, module_type\n FROM %s\n WHERE module_type = 'connector'\n AND module_guid != '79f18e7c40824a0f975363346716ff62'\n ORDER BY module_class ASC\";\n $sqlParams = array($this->tableModules);\n $result = array();\n if ($res = $this->databaseQueryFmt($sql, $sqlParams)) {\n while ($row = $res->fetchRow(DB_FETCHMODE_ASSOC)) {\n $result[$row['module_guid']] = $row['module_class'];\n }\n }\n return $result;\n }", "public function getModuleNames()\r\n {\r\n return $this->_moduleNames;\r\n }" ]
[ "0.7650052", "0.7650052", "0.72455215", "0.7130881", "0.70267963", "0.7014003", "0.6998285", "0.69740033", "0.6951048", "0.6942988", "0.69083977", "0.6900634", "0.68975335", "0.6880085", "0.6836136", "0.682136", "0.68171924", "0.6814711", "0.6813408", "0.68004245", "0.6786048", "0.6770018", "0.6673114", "0.6653467", "0.65507305", "0.65133226", "0.6493325", "0.64899737", "0.6469047", "0.6469047", "0.6469047", "0.6461694", "0.6459614", "0.6450956", "0.6415766", "0.6406384", "0.6392492", "0.63868344", "0.6384696", "0.6324911", "0.630546", "0.6303846", "0.63022316", "0.63011783", "0.62389576", "0.62305623", "0.6224713", "0.62215865", "0.6219201", "0.61936736", "0.61923456", "0.6178279", "0.61708057", "0.6162956", "0.6153652", "0.6145585", "0.61226517", "0.61211485", "0.6117976", "0.6107374", "0.60948646", "0.6086976", "0.60653996", "0.60535884", "0.6048898", "0.6043797", "0.60386133", "0.5994271", "0.59881467", "0.59786123", "0.5972553", "0.5971238", "0.59555215", "0.59358287", "0.5928479", "0.5924307", "0.59225184", "0.591787", "0.59177595", "0.5907043", "0.5906095", "0.58968973", "0.58873385", "0.587942", "0.5845451", "0.5834931", "0.58277416", "0.58066565", "0.579783", "0.5796162", "0.5792846", "0.5791596", "0.5790544", "0.578617", "0.57826585", "0.57667845", "0.57661366", "0.57630527", "0.57621586", "0.5761434" ]
0.78308743
0
Created by PhpStorm. User: egibar Date: 23/09/2016 Time: 12:06
function getBD() { return (mysqli_connect("localhost","root","","quiz")); //return mysqli_connect("mysql.hostinger.es", "u566940088_asier", "egibar", "u566940088_quiz"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function __() {\n }", "public function helper()\n\t{\n\t\n\t}", "private function _i() {\n }", "private function j() {\n }", "public function ex4()\n {\n }", "final private function __construct(){\r\r\n\t}", "protected function test9() {\n\n }", "public function boleta()\n\t{\n\t\t//\n\t}", "public function oops () {\n }", "public function masodik()\n {\n }", "private function __construct()\r\n {\r\n }", "private function __construct()\r\n {\r\n }", "public function monarch()\n {\n }", "public function nadar()\n {\n }", "private function __construct () {}", "public function custom()\n\t{\n\t}", "final private function __construct() { }", "final private function __construct() { }", "final private function __construct() { }", "private function __construct() {\r\n\t\t\r\n\t}", "public function __construct() {\n\t\t\n\t}", "public function __construct() {\n\t\t\n\t}", "public function __construct() {\n\t\t\n\t}", "public function __construct() {\n\t\t\n\t}", "public function __construct() {\n\t\t\n\t}", "final function __construct() { \n\t}", "private function __construct() {;}", "private function __construct( )\n {\n\t}", "private function __construct() {\n \n }", "private function __construct() {\n \n }", "private function __construct() {\n \n }", "private function __construct(){ }", "private function __construct(){ }", "private function __construct()\t{}", "function __construct()\r\n\t{\t\t//Yeah bro! Freaking PhP yo..\r\n\t}", "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 function __construct() { }", "private function __construct() { }", "private function __construct() { }", "private function __construct() { }", "private function __construct() { }", "public function serch()\n {\n }", "private function __construct() {\n ;\n }", "public function __construct() {\r\n ;\r\n }", "private function __construct()\r\n {}", "public function __init(){}", "public function obtener()\n {\n }", "public function __construct() {\n \t\t \t\n\t\t}", "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 function __construct() {}", "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 function __construct() {}", "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 function __construct() {}", "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 function __construct() {}", "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 function __construct() {}", "private function __construct() {}" ]
[ "0.5862287", "0.5830008", "0.57835376", "0.5688444", "0.56682926", "0.56595004", "0.5617968", "0.5608854", "0.5545009", "0.55245537", "0.54958683", "0.54958683", "0.5494124", "0.54776454", "0.5475012", "0.54697627", "0.546469", "0.546469", "0.546469", "0.54623735", "0.545538", "0.545538", "0.545538", "0.545538", "0.545538", "0.5441059", "0.5440629", "0.54399496", "0.5432305", "0.5432305", "0.5432305", "0.5430296", "0.5430296", "0.54276204", "0.54224396", "0.5411582", "0.5411582", "0.5411582", "0.5411582", "0.5411582", "0.5411582", "0.5411582", "0.5411582", "0.5411582", "0.5411582", "0.5411582", "0.5411582", "0.5411582", "0.54097605", "0.5402225", "0.53986037", "0.5397854", "0.5397783", "0.5392434", "0.537975", "0.53756195", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217", "0.5375217" ]
0.0
-1
update the current avatar to 0
function update_avatar($data = array()) { $this->db->where('id', $data['id']); $this->db->update('users', $data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testUpdateAvatarImage()\n {\n }", "private function setAvatarsInactive()\n {\n $userId = Auth::user()->id;\n $avatars = Avatar::where('user_id', $userId)->where('active', 1)->get();\n\n foreach ($avatars as $avatar) {\n $avatarModel = Avatar::find($avatar->id);\n $avatarModel->update([\n 'active' => false,\n ]);\n }\n }", "private function changeAvatar()\n {\n try\n {\n global $userquery; \n\n if(!userid())\n throw_error_msg(\"Please login to perform this action\");\n\n if(!isset($_FILES['avatar_file']['name']))\n throw_error_msg(\"provide avatar_file\");\n\n $array['userid'] = userid();\n $userquery->update_user_avatar_bg($array);\n\n if( error() )\n {\n throw_error_msg(error('single')); \n }\n else\n {\n $user_info = format_users($array['userid']);\n $data = array('code' => \"204\", 'status' => \"success\", \"msg\" => \"success\", \"data\" => $user_info);\n $this->response($this->json($data)); \n } \n\n }\n catch(Exception $e)\n {\n $this->getExceptionDelete($e->getMessage());\n }\n }", "public function actionAvatar()\n {\n $players=Player::find()->active()->all();\n foreach($players as $player)\n {\n $robohash=new \\app\\models\\Robohash($player->profile->id,'set1');\n $image=$robohash->generate_image();\n if(get_resource_type($image)=== 'gd')\n {\n $dst_img=\\Yii::getAlias('@app/web/images/avatars/'.$player->profile->id.'.png');\n imagepng($image,$dst_img);\n imagedestroy($image);\n $player->profile->avatar=$player->profile->id.'.png';\n $player->profile->save(false);\n }\n }\n }", "public function updateAvatar(Request $request){\n \tif($request->hasFile('avatar')){\n \t\t$avatar = $request->file('avatar');\n \t\t$filename = preg_replace('/\\s+/', '', Auth::user()->name) . time() . '.' . $avatar->getClientOriginalExtension();\n\n \t\t// Delete current image before uploading new image\n if (Auth::user()->avatar !== 'default.jpg') {\n $file = public_path('/uploads/avatars/' . Auth::user()->avatar);\n if (File::exists($file)) {\n unlink($file);\n }\n }\n\n \t\tImage::make($avatar)->resize(300, 300)->save( public_path('/uploads/avatars/' . $filename ) );\n\n \t\t$user = Auth::user();\n \t\t$user->avatar = $filename;\n \t\t$user->save();\n \t}\n\n \t//return view('user.profile', array('user' => Auth::user()) );\n return back();\n\n }", "private function deleteLatestAvatar()\n {\n $userId = Auth::user()->id;\n $userLatestAvatar = Avatar::where('user_id', $userId)->oldest()->first();\n if ($userLatestAvatar) {\n $imageUrl = $userLatestAvatar->image_url;\n if (!strpos($imageUrl, 'default')) {\n $locationImage = public_path('uploads/avatars/' . $imageUrl);\n unlink($locationImage);\n }\n $userLatestAvatar->delete();\n }\n }", "public function updateAvatar(UpdateAvatarRequest $request)\n {\n if ($request->hasFile('avatar')) {\n $avatar = $request->file('avatar');\n $filename = $avatar->getClientOriginalName();\n $ruta = public_path('assets/images/uploads/') . $request->user_id . '/avatars/';\n\n $ficheros = scandir($ruta, 0);\n foreach ($ficheros as $fichero) {\n if (is_file($ruta . $fichero)) {\n unlink($ruta . $fichero);\n }\n }\n Image::make($avatar)->resize(128, 128)->save($ruta . $filename);\n $this->socios->changeavatar($filename, $request);\n }\n\n return redirect()->back();\n }", "public function setAvatarDbUpdate(Avatar $avatar){\n $this->setAvatar($avatar);\n $connection = new Connection();\n $link = $connection->connect();\n $link->exec(\"UPDATE user SET avatar_id = '\" . $avatar->getId() . \"' WHERE id = '\" . $this->id . \"'\");\n $connection = null;\n }", "public function setAvatar($avatar){\n\t\t$pictureName = 'default.png';\n\t\t\n\t\tif ($avatar){\n\t\t\t$pictureName = $this->saveImage($avatar);\n\t\t}\n\t\t$this->avatar = $pictureName;\n\t}", "public function update_avatar(Request $request){\n \n if($request->hasFile('avatar')){\n $avatar=$request->file('avatar');\n $filename=time() .'.' .$avatar->getClientOriginalExtension();\n Image::make($avatar)->resize(300,300)->save(public_path('images/avatars/' .$filename));\n\n $user = Auth::user();\n $user ->avatar =$filename;\n $user->save();\n }\n return redirect('user/settings')->with(['response'=>'Profile Image Updated Successfully'] );\n }", "private function setAvatar(Avatar $avatar) {\n $this->avatar = $avatar;\n }", "final public function updateAvatar(?string $image): void\n {\n $user = Auth::user();\n $avatarFromDatabase = $user->avatar;\n if (blank($image)) {\n $image = $avatarFromDatabase;\n } else {\n $this->removeImageIfExist($avatarFromDatabase);\n }\n\n $this->repo->findAndUpdate($user->id, ['avatar' => $image]);\n }", "public function updating(Profile $article)\n {\n \t$profile->avatar = 'https://www.gravatar.com/avatar/'.md5($profile->gravatar_email);\n }", "public function changeAvatar($file)\n\t{\n\t\t$photoname = Helper::makeUuid() . '.png';\n\t\tImage::make($file)->resize(300,300)->save(storage_path() . '/hphotos/xpf1/' . $photoname);\n\t\t//$file->move(storage_path() . '/hphotos/xpf1/',$photoname);\n\t\t$this->instance->profile = $photoname;\n\t\t$this->instance->save();\n\t}", "public function editAvatar(EditUserForm $request){\n if(Auth::check()){\n $valid = User::select('id')\n ->where('email', $request->email)\n ->where('id', '<>' , $request->id)\n ->get();\n if(count($valid) <= 0){\n\n $user = User::find($request->id);\n $oldAvatar = $user->avatar; \n\n if ($request->avatar == $oldAvatar){\n\n $fileName = $request->avatar;\n }\n else{\n\n if ( $oldAvatar =='img/img_profile_users/default-avatar2.jpg') {\n\n $idUnique = time();\n list(, $request->avatar) = explode(';', $request->avatar);\n list(, $request->avatar) = explode(',', $request->avatar);\n //Decodificamos $request->avatar codificada en base64.\n $avatar = base64_decode($request->avatar);\n $fileName = \"img/img_profile_users/\" . $idUnique . \"-\" . $request->name .\".jpg\";\n //escribimos la información obtenida en un archivo llamado \n //$idUnico = time().jpg para que se cree la imagen correctamente\n file_put_contents($fileName, $avatar); //se crea la imagen en la ruta \n }\n else{\n \n $idUnique = time();\n list(, $request->avatar) = explode(';', $request->avatar);\n list(, $request->avatar) = explode(',', $request->avatar);\n //Decodificamos $request->avatar codificada en base64.\n $avatar = base64_decode($request->avatar);\n $fileName = \"img/img_profile_users/\" . $idUnique . \"-\" . $request->name .\".jpg\";\n unlink($oldAvatar);\n //escribimos la información obtenida en un archivo llamado \n //$idUnico = time().jpg para que se cree la imagen correctamente\n file_put_contents($fileName, $avatar); //se crea la imagen en la ruta \n };\n } \n\n $sessionUser = Auth::user()->name;\n //$user = User::find($request->id);\n $user->name = $request->name;\n $user->email = $request->email;\n $user->telephone = $request->telephone;\n $user->dependence = $request->dependence;\n $user->role = $request->role;\n $user->avatar = $fileName;\n $user->save();\n $audi_users = new Audi_Users;\n $audi_users->name = $request->name;\n $audi_users->email = $request->email;\n $audi_users->telephone = $request->telephone;\n $audi_users->dependence = $request->dependence;\n $audi_users->role = $request->role;\n $audi_users->avatar = $fileName;\n $audi_users->id_user = Auth::user()->id;\n $audi_users->tipo_audi = 2;\n $audi_users->save();\n return ['success'=>'ok'];\n }else{\n return ['error'=>'Este correo ya esta asignado a otro usuario'];\n }\n }\n else{\n return ['error'=>'no se pudo completar la operacion'];\n }\n }", "public function setAvatar($avatar)\n {\n $this->avatar = $avatar;\n }", "public function update_avatar(Request $request){\n\n // Handle the user upload of avatar\n if($request->hasFile('avatar')){\n\n $avatar = $request->file('avatar');\n $filename = time() . '.' . $avatar->getClientOriginalExtension();\n Image::make($avatar)->resize(300, 300)->save(('uploads/avatars/' . $filename ) );\n\n $user = Auth::user();\n $user->avatar = $filename;\n $user->name = $request->get('name');\n $user->save();\n }\n\n return view('profile', array('user' => Auth::user()) );\n\n }", "public function update_avatar(Request $request){\n \n $request->validate([\n 'avatar' => 'required|image|mimes:jpeg,png,jpg,gif,svg|max:2048',\n ]);\n \n $user = Auth::user();\n \n $avatarName = $user->id.'_avatar'.time().'.'.request()->avatar->getClientOriginalExtension();\n \n $request->avatar->storeAs('avatars',$avatarName);\n \n $user->avatar = $avatarName;\n $user->save();\n \n return back()\n ->with('success','Your Profile Picture Has Been Updated');\n \n }", "public function avatar() {\n $data = array();\n if (!$this->user->is_logged_in()) {\n redirect(\"/account/info\");\n }\n\n $this->user->get_user($this->user->getMyId());\n $data['user'] = $this->user;\n\n $this->load->helper('form');\n $this->load->library('form_validation');\n $this->form_validation->set_error_delimiters('<div class=\"error\">', '</div>');\n $hidden_fields = array(\n 'user_id' => $this->user->getMyId(),\n 'set_avatar' => 'set_avatar',\n );\n $data['hidden'] = $hidden_fields;\n $data['avatars'] = $this->user->get_all_avatars();\n if ($this->input->post('set_avatar') == 'set_avatar') {\n if ($this->form_validation->run('account/avatar') === FALSE) {\n $this->load->view('account/avatar', $data);\n\n }\n else {\n $id = $this->user->update_avatar();\n redirect('account/profile_complete');\n }\n }\n else {\n $this->load->view('account/avatar', $data);\n }\n }", "public function setAvatar(string $avatar);", "public function addAvatar( $value){\n return $this->_add(5, $value);\n }", "public function avatar() {\n\t\tif(!empty($this->request->data['Upload']['file'])) {\n\t\t\t/* check all image parameters */\n\t\t\t\n\t\t\t$this->__checkImgParams();\n\t\t\t\t\t\t\n\t\t\t$user = $this->User->findById($this->Auth->user('id'));\n\t\t\t$uploadPath = WWW_ROOT . 'img/uploads/users/';\n\t\t\t$uploadFile = $uploadPath . $this->Auth->user('public_key') . '-' . $this->request->data['Upload']['file']['name'];\n\t\t\t\n\t\t\n\t\t\t\n\t\t\t$directory = dir($uploadPath); \n\t\t\tif(!empty($user['User']['image'])) {\n\t\t\t\tunlink(WWW_ROOT . $user['User']['image']);\n\t\t\t}\n\t\t\t$directory->close();\n\n\t\t\t\n\t\t\tif(move_uploaded_file($this->request->data['Upload']['file']['tmp_name'], $uploadFile)) {\n\t\t\t\t\n\t\t\t\t$data['User']['image'] = '/img/uploads/users/' . $this->Auth->user('public_key') . '-' . $this->request->data['Upload']['file']['name'];\n\t\t\t\t$data['User']['api_key'] = '538bfe80756c5c00a1984a4bd57c4b45';\n\t\t\t\t\n\t\t\t\t$data['User']['id'] = $user['User']['id'];\n\t\t\t\t//$this->User->id = $data['User']['id'];\n\t\t\t\t$this->User->save($data);\n\t\t\t\t\n\t\t\t\t$this->Session->setFlash('Your profile picture has been set!');\n\t\t\t\t$this->redirect(Controller::referer('/'));\n\t\t\t}\n\t\t\telse {\n\t\t\t\t\t\n\t\t\t\t$this->Session->setFlash('Something went wrong uploading your avatar...');\n\t\t\t\t$this->redirect(Controller::referer('/'));\n\t\t\t}\n\t\t} else {\n\t\t\t$this->Session->setFlash('We didn\\'t catch that avatar, please try again...');\n\t\t\t$this->redirect(Controller::referer('/'));\n\t\t}\n\t}", "public function avatar()\n {\n $view_data = [\n 'form_errors' => []\n ];\n\n $this->load->helper('directory');\n\n $files = directory_map(APPPATH .'../public_html/images/avatar');\n\n foreach ($files AS $key => $file) {\n\n $file_part = explode('.', $file);\n\n if (!is_numeric($file_part[0])) {\n unset($files[$key]);\n }\n }\n\n $view_data['number_avatar'] = count($files);\n \n // Check input data\n if ($this->input->is_post()) {\n\n // Call API to register for parent\n $res = $this->_api('user')->update([\n 'id' => $this->current_user->id,\n 'avatar_id' => $this->input->post('avatar')\n ]);\n\n if (isset($res['result'])) {\n $this->session->set_flashdata('get_trophy', $res['result']['trophy']);\n $this->session->set_flashdata('get_point', $res['result']['point']);\n redirect('setting');\n return;\n }\n\n $view_data['form_errors'] = $res['invalid_fields'];\n }\n\n $res = $this->get_current_user_detail();\n\n $view_data['current_avatar'] = $res['result']['avatar'];\n\n $this->_render($view_data);\n }", "public function update_avatar(Request $request){\n\n if($request->hasFile('avatar')){\n $avatar = $request->file('avatar');\n $filename = time() . '.' . $avatar->getClientOriginalExtension();\n Image::make($avatar)->resize(300, 300)->save(public_path('/dist/img/' . $filename));\n\n $user = Auth::user();\n $user->avatar = $filename;\n $user->save();\n }\n\n return view('usuario.profile', array('user' => Auth::user()) );\n }", "public function update_avatar(Request $request){\n\n // Handle the user upload of avatar\n $this->validate($request, [\n 'photo' => 'required|image|mimes:jpeg,png,jpg,gif,svg',\n ]);\n if($request->hasFile('photo')){\n $avatar = $request->file('photo');\n $filename = time() . '.' . $avatar->getClientOriginalExtension();\n //$path = $_FILES['photo']['type'];\n //$ext = pathinfo($path, PATHINFO_EXTENSION);\n //dd($path);\n Image::make($avatar)->resize(300, 300)->save(public_path('/uploads/avatars/' . $filename ));\n\n $user = Auth::user();\n $img_path = url('/uploads/avatars/'.$filename);\n $user->photo = $img_path;\n $user->save();\n }\n // Session::flash('success', 'Photo de profile changée avec succès.');\n //return view('etudiants.profile', array('user' => Auth::user()) );\n //return back();\n\n }", "public function deleteldImage() {\n\n if (!empty($this->oldImg) && $this->oldImg != $this->avatar) {\n $file = Yii::app()->basePath . DIRECTORY_SEPARATOR . \"..\" . DIRECTORY_SEPARATOR;\n $file.= \"uploads\" . DIRECTORY_SEPARATOR . \"user_profile\" . DIRECTORY_SEPARATOR . $this->user->primaryKey . DIRECTORY_SEPARATOR . $this->oldImg;\n\n DTUploadedFile::deleteExistingFile($file);\n }\n }", "public function deleteAvatar(): self\n {\n return $this->clearMediaCollection(self::MEDIA_AVATARS_COLLECTION);\n }", "public function update_avatar(Request $request){\n if($request->hasFile('avatar')){\n $avatar = $request->file('avatar');\n $filename = time() . '.' . $avatar->getClientOriginalExtension();\n Image::make($avatar)->resize(300, 300)->save( public_path('/images/avatar/' . $filename ) );\n $user = Auth::user();\n $user->avatar = $filename;\n $user->save();\n }\n return view('configPerfil', array('user' => Auth::user()) );\n\n }", "public function updateAvatar(Request $request)\n {\n // Creating The Image\n $avatar = Image::make($request->avatar)->fit(300);\n $avatarThumbnail = Image::make($request->avatar)->fit(40);\n\n // Generating Name For File\n $avatarName = Auth::id() . str_random(10) . time() . '.png';\n $path = 'avatar/'.$avatarName;\n $thumbnailPath = 'avatar/'.'tn-'.$avatarName;\n\n // Storing The File\n $avatar->save(storagePath($path), 60);\n $avatarThumbnail->save(storagePath($thumbnailPath), 60);\n\n // Updating User Avatar\n $user = Auth::user();\n $user->avatar = $avatarName;\n $user->save();\n\n // Return Url Of the Avatar\n return 'success';\n }", "public function initialize(){\n if(empty($this->avatar)){\n $this->setAvatar('/img/avatar/avatar-icon2.png');\n }\n }", "public function reset()\n {\n $this->currentUser->saveLastArticleTime(0);\n }", "public function changeAvatar(Request $request)\n {\n\n $response = new stdClass();\n if ($request->isMethod('post')) {\n $postData = $request->all();\n $objUserModel = new User();\n\n $userId = \"\";\n if (isset($postData['user_id'])) {\n $userId = $postData['user_id'];\n }\n\n $authFlag = false;\n if (isset($postData['api_token'])) {\n if ($userId != '') {\n $apiToken = $postData['api_token'];\n if ($apiToken == $this->API_TOKEN) {\n $authFlag = true;\n } else {\n $where = [\n 'rawQuery' => 'id=?',\n 'bindParams' => [$userId]\n ];\n\n $selectColumn = array('login_token');\n $userCredentials = $objUserModel->getUsercredsWhere($where, $selectColumn);\n if ($userCredentials) {\n if ($apiToken == $userCredentials->login_token) {\n $authFlag = true;\n }\n }\n }\n }\n }\n\n if ($authFlag) {\n if ($userId != '') {\n if (Input::hasFile('file')) {\n $validator = Validator::make($request->all(), ['file' => 'image']);\n if (!$validator->fails()) {\n $destinationPath = $_SERVER['DOCUMENT_ROOT'] . '/../../web/public/assets/uploads/useravatar/';\n $fileName = $userId . '_' . time() . \".jpg\";\n File::makeDirectory($destinationPath, 0777, true, true);\n $filePath = $destinationPath . $fileName;\n\n $quality = 70;//$this->imageQuality(Input::file('file'));\n Image::make(Input::file('file'))->resize($this->imageWidth, $this->imageHeight, function ($constraint) {\n $constraint->aspectRatio();\n })->save($destinationPath . $fileName, $quality);\n\n $filePathUpdate = '/assets/uploads/useravatar/' . $fileName;\n $updateData['profile_pic'] = $filePathUpdate;\n $where = [\n 'rawQuery' => 'id =?',\n 'bindParams' => [$userId]\n ];\n $userData = $objUserModel->getUsercredsWhere($where);\n $updatedResult = $objUserModel->UpdateUserDetailsbyId($where, $updateData);\n\n if ($updatedResult) {\n if ($userData->profile_pic != '') {\n File::delete(public_path() . '/../../web/public' . $userData->profile_pic);\n }\n $response->code = 200;\n $response->message = \"Successfully updated profile image.\";\n $response->data = $filePathUpdate;\n echo json_encode($response);\n } else {\n $response->code = 400;\n $response->message = \"Something went wrong, please try again.\";\n $response->data = null;\n echo json_encode($response);\n }\n } else {\n $response->code = 100;\n $response->message = $validator->messages();\n $response->data = null;\n echo json_encode($response);\n }\n } else {\n $response->code = 400;\n $response->message = \"Give correct input and Input Image files should be(jpg,gif,png,jpeg)only\";\n $response->data = null;\n echo json_encode($response, true);\n }\n } else {\n $response->code = 400;\n $response->message = \"You need to login to change Avtar.\";\n $response->data = null;\n echo json_encode($response, true);\n }\n } else {\n $response->code = 401;\n $response->message = \"Access Denied\";\n $response->data = null;\n echo json_encode($response, true);\n }\n } else {\n $response->code = 400;\n $response->message = \"Request not allowed\";\n $response->data = null;\n echo json_encode($response, true);\n }\n }", "function update_avatar ( $ID, $student_or_staff='student' ) {\n\tglobal $access_token, $canvas_base_url;\n\t\n\t$url=$canvas_base_url.\"/api/v1/users/sis_user_id:\".$ID.\".json\";\n\t\n\t$nine_digit = str_pad($ID, 9, \"0\", STR_PAD_LEFT);\n\n\tif ($student_or_staff == 'staff') {\n\t\t$avatar_url = 'https://www.YOURINSTITUTION.edu/path/to/employee/pics/'.$ID;\n\t}\n\telse {\n\t\t$avatar_url = 'https://www.YOURINSTITUTION.edu/path/to/student/pics/'.$nine_digit.'.jpg';\n\t}\n\n\tsystem(\"curl $url -X PUT -F 'user[avatar][url]=$avatar_url' -H 'Authorization: Bearer $access_token'\");\n\t\n}", "public function reset()\n {\n $this->values[self::_AVATAR] = null;\n $this->values[self::_NAME] = null;\n $this->values[self::_VIP] = null;\n $this->values[self::_LEVEL] = null;\n $this->values[self::_GUILD_NAME] = null;\n $this->values[self::_USER_ID] = null;\n }", "public function ResetAvatar($uuid){\n\t\t\tif($uuid instanceof WebUI\\abstractUser){\n\t\t\t\tif(is_null($name) === true){\n\t\t\t\t\t$name = $uuid->Name();\n\t\t\t\t}\n\t\t\t\t$uuid = $uuid->PrincipalID();\n\t\t\t}\n\n\t\t\tif(is_string($uuid) === false){\n\t\t\t\tthrow new InvalidArgumentException('UUID must be a string.');\n\t\t\t}else if(preg_match(self::regex_UUID, $uuid) === false){\n\t\t\t\tthrow new InvalidArgumentException('UUID was not a valid UUID.');\n\t\t\t}\n\n\t\t\treturn $this->makeCallToAPI('ResetAvatar', false, array(\n\t\t\t\t'User' => $uuid\n\t\t\t), array(\n\t\t\t\t'Success' => array('boolean' => array())\n\t\t\t))->Success;\n\t\t}", "public function updateProfilePicture(Request $request){\n \tif($request->hasFile('avatar')){\n \t\t$avatar = $request->file('avatar');\n \t\t$filename = preg_replace('/\\s+/', '', Auth::user()->name) . time() . '.' . $avatar->getClientOriginalExtension();\n\n \t\t// Delete current image before uploading new image\n if (Auth::user()->avatar !== 'default.jpg') {\n $file = public_path('/assets-admin/img/uploads/avatars/' . Auth::user()->avatar);\n if (File::exists($file)) {\n unlink($file);\n }\n }\n\n \t\tImage::make($avatar)->resize(300, 300)->save( public_path('/assets-admin/img/uploads/avatars/' . $filename ) );\n\n \t\t$user = Auth::user();\n \t\t$user->avatar = $filename;\n \t\t$user->save();\n \t}\n\n \treturn view('privateviews.users.profile', array('user' => Auth::user()) );\n\n }", "public function resetOnline()\n {\n User::where([['type', User::TYPE_MAN], ['online', '!=', 0]])->update(['online' => 0]);\n }", "public function update_img(Request $request)\n {\n $user = User::find(Auth::user()->id);\n\n //Handle the user upload of image\n if($request->hasFile('img')){\n\n $img = $request->file('img');\n $filename = time().'.'.$img->getClientOriginalExtension();\n\n //Delete current image before uploading new Image\n if($user->img !== 'default.jpg'){\n $file = public_path('uploads/avatars/'.$user->img);\n\n if(File::exists($file)){\n unlink($file);\n }\n }\n\n Image::make($img)->resize(300,300)->save(public_path('uploads/avatars/'.$filename));\n $user = Auth::user();\n $user->img = $filename;\n $user->save();\n }\n }", "public function update_avatar(Request $request){\n if($request->hasFile('foto_perfil')){\n $avatar = $request->file('foto_perfil');\n $filename = time() . '.' . $avatar->getClientOriginalExtension();\n $avatar->resize(300, 300)->save( public_path('/storage/foto_perfil/' . $filename ) );\n $user = Auth::user();\n $user->avatar = $filename;\n $user->save();\n }\n\n dd($user);\n return view('profile', ['user' => Auth::user()] );\n }", "public function update($id)\n {\n $this->setAvatarsInactive();\n $avatar = Avatar::find($id);\n $avatar->active = 1;\n $avatar->save();\n session()->flash('message', 'Je avatar is gewijzigd');\n return redirect()->route('profile.show', ['id' => Auth::user()->id, '#profile']);\n }", "public function setAvatarFile(UploadedFile $file = null)\n {\n $this->avatar_file = $file;\n // check if we have an old image path\n if (is_file($this->getAbsolutePath())) {\n // store the old name to delete after the update\n $this->temp = $this->getAbsolutePath();\n } else {\n $this->avatar_path = 'initial';\n }\n }", "public function update(Request $request)\n {\n //\n $log = Auth::user();\n $user = UserProfile::find($log->id);\n\n if(Input::hasFile('avatar')){\n $file = Input::file('avatar');\n $file-> move(public_path(). '/PP/', $file -> getClientOriginalName());\n\n //$user->avatar = $file -> getClientOriginalName();\n\n $pic = $file -> getClientOriginalName();\n DB::table('user_profiles')\n ->where('id',$log->id)\n ->update(['avatar' => $pic ]);\n\n }\n\n\n $user->name = $log->name;\n $user->country = $request->country;\n $user->owner = $request->owner;\n $user->district = $request->district;\n $user->citizenship = $request->citizenship;\n $user->sex = $request->sex;\n $user->birthdate = $request->birthdate;\n $user->age = Carbon::parse($request->birthdate)->age;\n $user->religion = $request->religion;\n $user->maritalstatus = $request->maritalstatus;\n $user->height = $request->height;\n $user->physicalstatus = $request->physicalstatus;\n $user->familyvalue = $request->familyvalue;\n $user->familystatus = $request->familystatus;\n $user->ethnicity = $request->ethnicity;\n $user->educationlevel = $request->educationlevel;\n $user->fieldofeducation = $request->fieldofeducation;\n $user->employedin = $request->employedin;\n $user->annualincome = $request->annualincome;\n $user->ancestralfamilyorigin = $request->ancestralfamilyorigin;\n $user->motheroccupation = $request->motheroccupation;\n $user->fatheroccupation = $request->fatheroccupation;\n $user->noofbrother = $request->noofbrother;\n $user->noofmarriedbrother = $request->noofmarriedbrother;\n $user->noofsister = $request->noofsister;\n $user->noofmarriedsister = $request->noofmarriedsister;\n $user->weight = $request->weight;\n $user->bodytype = $request->bodytype;\n $user->complexion = $request->complexion;\n $user->spokenlanguage = $request->spokenlanguage;\n $user->eatinghabit = $request->eatinghabit;\n $user->hobbies = $request->hobbies;\n $user->favourite = $request->favourite;\n\n\n $user->psex = $request->psex;\n $user->pagefrom = $request->pagefrom;\n $user->pageto = $request->pageto;\n $user->pmaritalstatus = $request->pmaritalstatus;\n $user->preligion = $request->preligion;\n\n $user->mreligious = $request->mreligious;\n $user->mpreligious = $request->mpreligious;\n $user->memployment = $request->memployment;\n $user->mpemployment = $request->mpemployment;\n $user->mlifestyle = $request->mlifestyle;\n $user->mplifestyle = $request->mplifestyle;\n $user->mfamily = $request->mfamily;\n $user->mpfamily = $request->mpfamily;\n $user->mtravelling = $request->mtravelling;\n $user->mptravelling = $request->mptravelling;\n $user->mmusic = $request->mmusic;\n $user->mpmusic = $request->mpmusic;\n $user->mgame = $request->mgame;\n $user->mpgame = $request->mpgame;\n $user->msmoking = $request->msmoking;\n $user->mpsmoking = $request->mpsmoking;\n $user->mdrinking = $request->mdrinking;\n $user->mpdrinking = $request->mpdrinking;\n\n $user->save();\n\n\n $user = DB::table('user_profiles')->where('id', Auth::id())->first();\n return view('view_bothprofile',compact('user'));\n\n }", "public function _setAvatar($Avatar)\n {\n $this->Avatar = $Avatar;\n\n }", "function resetFlagsForMonument() {\n self::DbQuery(\"\n UPDATE\n player\n SET\n number_of_tucked_cards = 0,\n number_of_scored_cards = 0\n \");\n }", "public function reset()\n {\n foreach (self::AvailableCoins as $aCoin) {\n \t $sProperty = $aCoin['name'];\n $this->$sProperty = 0;\n }\n }", "public function UpdateAvatar($username, $filename)\n {\n $nono = new db($this->returnType);\n $query = \"update players set avatarpath='$filename' where username='$username';\";\n $nono->InsertQuietly($query);\n }", "public function updating(Materia $model)\n {\n $model->ativo = $model->ativo ?? 0;\n }", "private function updateBalance()\n {\n if (!auth()->user()->hasRole('admin')) {\n auth()->user()->update([\n 'credit' => auth()->user()->credit - $this->totalCost()\n ]);\n }\n }", "public function update_profile(Request $request) {\n //Validsmo el archivo, sus formatos, y su tamaño maximo de 2MB\n $this->validate($request, [\n 'avatar' => 'required|image|mimes:jpg,png,jpeg,gif,svg|max:2048',\n ]);\n \n //Lo sube a la carpeta de avatares\n $filename = Auth::id().'_'.time().'.'.$request->avatar->getClientOriginalExtension();\n $request->avatar->move(public_path('uploads/avatars'), $filename);\n \n //Termina guardando lo anterior en la base de datos\n $user = Auth::user();\n $user->avatar = $filename;\n $user->save();\n \n //Mandamos Mensaje de Confirmación\n Flash('¡ La Foto de Perfil a cambiado !')->success();\n //Redireccionamos\n return redirect()->route('users.index');\n }", "public function reset_chat_count(Request $request)\n {\n $user_id = Auth::user()->id;\n $update_current_chat_count=User::where('id',$user_id)\n ->update(['current_chat_count'=>'0','chat_flag'=>'1']);\n echo $update_current_chat_count;\n }", "private function handleAvatarUpdate($avatar)\n {\n $this->users->update($this->theUser->id, ['avatar' => $avatar]);\n\n event(new ChangedAvatar);\n\n return redirect()->route('profile')\n ->withSuccess(trans('app.avatar_changed'));\n }", "private function update_accessory_image($accessory) {\n $image = Uploader::get('image');\n\n if ($image) {\n $upload = Upload::create_from_uploaded_file($image);\n $accessory->update_image($upload);\n } else {\n $accessory->update_image(null);\n }\n }", "public function update($data) {\n\t\t$updates = '';\n\t\tforeach ($data as $key => $value) {\n\t\t\tif (!empty($updates)) $updates .= ',';\n\t\t\t$updates .= $key . \" = '\" . $value . \"'\";\n\t\t}\n\t\t\n\t\tif (!empty($updates)) {\n\t\t\t$sql = \"UPDATE\twcf\".WCF_N.\"_avatar\n\t\t\t\tSET\t\".$updates.\"\n\t\t\t\tWHERE\tavatarID = \".$this->avatarID;\n\t\t\tWCF::getDB()->sendQuery($sql);\n\t\t}\n\t}", "public function setUserAvatar($avatar)\n {\n $this->avatar = $avatar;\n return $this;\n }", "public function update(Request $request, Avatar $avatar)\n {\n //\n }", "public function updatePic(Request $request,$id)\n {\n\n if(Input::hasFile('pic'))\n {\n $user=User::find($id);\n \n \n $ppath=$user->displaypic;\n $pic=Input::file('pic');\n $pic_name=time().$pic->getClientOriginalName();\n $cpath='profile_pic/'.$pic_name;\n $pic->move('profile_pic',$pic_name);\n if($user->displaypic!=\"profile_pic/default.png\")\n {\n File::delete($ppath);\n }\n $user->displaypic=$cpath; \n $user->save();\n echo '0';\n }\n else\n echo \"not able to upload\";\n\n \n }", "public function saveUserAvatar($avatar) {\n\n $img = file_get_contents($avatar);\n $ava = $this->generateUniqueAvatarName();\n $file = Yii::app()->baseUrl.'images/members/avatars/'.$ava;\n file_put_contents($file, $img);\n\n return $ava;\n }", "public function getImg_avatar()\r\n {\r\n return $this->img_avatar;\r\n }", "protected function sync()\n {\n $this->image =& $this->temp;\n unset($this->temp);\n }", "public function updateImage(){\t\t\tif( is_null( $this->id ) ) trigger_error( \"User::update(): Attempt to update a user object that does not have its ID property set.\", E_USER_ERROR );\r\n\t\t\t$conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\t\t\r\n\t\t\t$sql = \"UPDATE \".TABLENAME_GROUPS.\" SET icon_link=:icon_link WHERE id = :id\";\r\n\t\t\t$st = $conn->prepare( $sql );\r\n\t\t\t$st->bindValue( \":icon_link\", $this->icon_link, PDO::PARAM_STR );\r\n\t\t\t\r\n\t\t\t$st->bindValue( \":id\", $this->id, PDO::PARAM_INT );\r\n\t\t\t$st->execute();\r\n\t\t\t$conn = null;\r\n\r\n\t\t\treturn true;\r\n\t\t\t\r\n\t\t\t}", "public function avatar($id){\n \n Auth::userAuth();\n $data['title1'] = 'Edit Avatar';\n if($_SERVER['REQUEST_METHOD']=='POST' && $_POST['addAvatar']){\n\n echo $pro_img = $_FILES['image']['name'];\n $pro_tmp = $_FILES['image']['tmp_name'];\n $pro_type = $_FILES['image']['type'];\n if(!empty($pro_img)){\n $uploaddir = dirname(ROOT).'\\public\\uploads\\\\' ;\n $pro_img = explode('.',$pro_img);\n $pro_img_ext = $pro_img[1];\n $pro_img = $pro_img[0].time().'.'.$pro_img[1];\n\n if($pro_img_ext != \"jpg\" && $pro_img_ext != \"png\" && $pro_img_ext != \"jpeg\"\n && $pro_img_ext != \"gif\" ) {\n $data['errImg']= \"Sorry, only JPG, JPEG, PNG & GIF files are allowed.\";\n }\n }else {\n $data['errImg'] = 'You must choose an image';\n }\n \n\n if(empty($data['errImg'])){\n move_uploaded_file($pro_tmp, $uploaddir.$pro_img);\n unlink($uploaddir.Session::name('user_img'));\n $this->userModel->avatar($id,$pro_img);\n Session::set('user_img',$pro_img );\n Session::set('success', 'Your avatar has been uploaded successfully');\n Redirect::to('users/profile');\n }else {\n $this->view('users.avatar', $data);\n }\n }else {\n $this->view('users.avatar',$data);\n }\n }", "public function update_profileImage() {\n \n $data = $_POST['image'];\n\n list($type, $data) = explode(';', $data);\n list(, $data) = explode(',', $data);\n\n $data = base64_decode($data);\n $imageName = time().'.png';\n\n file_put_contents('files/uploads/users/'.$imageName, $data);\n $data = $this->request->data;\n $id = $this->Auth->user('id');\n $profile_image = $imageName;\n if (!empty($profile_image)) {\n $ext = substr(strtolower(strrchr($profile_image, '.')), 1);\n $arr_ext = array(\n 'jpg',\n 'jpeg',\n 'gif',\n 'png',\n );\n if (in_array($ext, $arr_ext)) {\n move_uploaded_file($profile_image, WWW_ROOT . 'files/uploads/users/' . $profile_image);\n \n $data['profile_image'] = $profile_image;\n $update = $this->User->updateUser($id, $data);\n if ($update == 1) {\n $this->Session->write('Auth.User.profile_image', $profile_image);\n die();\n }\n }\n }\n \n \n \n }", "protected function resetAttemptCount()\n {\n $this->attempted = 0;\n }", "public function Reset(){\r\n\t\t$this->points = 0;\r\n\t }", "public function changeProfilePicture(Request $request)\n {\n $user = User::where('id', $request->id)->first();\n $image_path = public_path().'/'.$user->avatar;\n\n $image = $request->file('avatar');\n $input['imagename'] = time().'.'.$image->getClientOriginalExtension();\n \n $destinationPath = public_path('/images/avatars');\n ini_set('memory_limit', '256M');\n $img = Image::make($image->getRealPath());\n $img->resize(400, null, function ($constraint) {\n $constraint->aspectRatio();\n })->save($destinationPath.'/'.$input['imagename']);\n\n $avatar = 'images/avatars/'.$input['imagename'];\n\n $user->avatar = $avatar;\n $user->save();\n\n unlink($image_path);\n\n if($user)\n {\n return response()->json([\n 'status' => 'true',\n 'msg' => 'success'\n ]) ;\n }\n else\n {\n return response()->json([\n 'status' => 'false',\n 'msg' => 'error'\n ]) ;\n }\n }", "function user_user_construct_($user){\n\t\t$CI =& get_instance();\n\t\t//if($user->is_logged() && $user->get()->avatar == '') $user->update('avatar',$CI->gears->user->avatar->default);\n\t}", "public function reset() {\n\n\t\t$type = Dba::escape($this->type);\n\t\t$uid = Dba::escape($this->uid);\n\n\t\t$sql = \"DELETE FROM `image` WHERE `object_id`='$uid' AND `object_type`='$type'\";\n\t\t$db_results = Dba::write($sql);\n\n\t}", "public function resetInitial()\n {\n // drop column\n DB::query()->selectRaw('SET SQL_SAFE_UPDATES = 0;');\n QueryProfile::query()->where('initial_avg_position', '!=', 0)->update(['initial_avg_position' => 0]);\n QueryProfile::query()->where('initial_ctr_value', '!=', 0)->update(['initial_ctr_value' => 0]);\n QueryProfile::query()->where('initial_impressions', '!=', 0)->update(['initial_impressions' => 0]);\n DB::query()->selectRaw('SET SQL_SAFE_UPDATES = 1;');\n }", "public function updateAvatar(Request $request, $id)\n {\n $kid = App\\Kid::findOrFail($id);\n\n Storage::put(\n 'avatars/'.$kid->id,\n file_get_contents($request->file('avatar')->getRealPath())\n );\n }", "protected function deleteOldImage(){\n if(auth()->user()->profileImage){\n Storage::delete('/public/images/'.auth()->user()->profileImage);\n }\n }", "public function resetProgress(Achievement $instance): void\n {\n $this->setProgress($instance, 0);\n }", "private function recalcCurrentAmount()\n\t{\n\t\t$currentAmount = $this->balanceSheet->getBalanceAmounts()->\n\t\t\t//joinWith('account')->\n\t\t\tleftJoin('balance_item', 'balance_item.id = account.balance_item_id')->\n\t\t\twhere(['balance_item.ref_balance_item_id'=>9])->one();\n\t\tif (!$currentAmount) {\n\t\t\tYii::warning(\"Current Amount not found\");\n\t\t\treturn;\n\t\t}\n\t\tif ($currentAmount->id == $this->id) return;\n\t\t//count diff assets-liabilities+current for selected balance sheet\n\t\t$newAmount = $this->balanceSheet->getTotal(1) - $this->balanceSheet->getTotal(2) + $currentAmount->amount;\n\t\t//set current value to that diff for selected balance sheet\n\t\t$currentAmount->amount = $newAmount;\n\t\t$currentAmount->save();\n\t}", "function the_champ_social_avatar_options(){\r\n\tglobal $user_ID, $theChampLoginOptions;\r\n\tif(isset($theChampLoginOptions['enable']) && isset($theChampLoginOptions['avatar']) && isset($theChampLoginOptions['avatar_options'])){\r\n\t\tif(isset($_POST['ss_dontupdate_avatar'])){\r\n\t\t\t$dontUpdateAvatar = intval($_POST['ss_dontupdate_avatar']);\r\n\t\t\tupdate_user_meta($user_ID, 'thechamp_dontupdate_avatar', $dontUpdateAvatar);\r\n\t\t}else{\r\n\t\t\t$dontUpdateAvatar = get_user_meta($user_ID, 'thechamp_dontupdate_avatar', true);\r\n\t\t}\r\n\t\tif(isset($_POST['ss_small_avatar']) && heateor_ss_validate_url($_POST['ss_small_avatar']) !== false){\r\n\t\t\t$updatedSmallAvatar = str_replace('http://', '//', esc_url(trim($_POST['ss_small_avatar'])));\r\n\t\t\tupdate_user_meta($user_ID, 'thechamp_avatar', $updatedSmallAvatar);\r\n\t\t}\r\n\t\tif(isset($_POST['ss_large_avatar']) && heateor_ss_validate_url($_POST['ss_large_avatar']) !== false){\r\n\t\t\t$updatedLargeAvatar = str_replace('http://', '//', esc_url(trim($_POST['ss_large_avatar'])));\r\n\t\t\tupdate_user_meta($user_ID, 'thechamp_large_avatar', $updatedLargeAvatar);\r\n\t\t}\r\n\t\t?>\r\n\t\t<div class=\"profile\" style=\"margin-bottom:20px\">\r\n\t\t\t<form action=\"\" method=\"post\" class=\"standard-form base\">\r\n\t\t\t\t<h4><?php _e('Social Avatar', 'super-socializer') ?></h4>\r\n\t\t\t\t<div class=\"clear\"></div>\r\n\t\t\t\t<div class=\"editfield field_name visibility-public field_type_textbox\">\r\n\t\t\t\t\t<label for=\"ss_dontupdate_avatar_1\"><input id=\"ss_dontupdate_avatar_1\" style=\"margin-right:5px\" type=\"radio\" name=\"ss_dontupdate_avatar\" value=\"1\" <?php echo $dontUpdateAvatar ? 'checked' : '' ?> /><?php _e('Do not fetch and update social avatar from my profile, next time I Social Login', 'super-socializer') ?></label>\r\n\t\t\t\t\t<label for=\"ss_dontupdate_avatar_0\"><input id=\"ss_dontupdate_avatar_0\" style=\"margin-right:5px\" type=\"radio\" name=\"ss_dontupdate_avatar\" value=\"0\" <?php echo ! $dontUpdateAvatar ? 'checked' : '' ?> /><?php _e('Update social avatar, next time I Social Login', 'super-socializer') ?></label>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class=\"editfield field_name visibility-public field_type_textbox\">\r\n\t\t\t\t\t<label for=\"ss_small_avatar\"><?php _e('Small Avatar', 'super-socializer') ?></label>\r\n\t\t\t\t\t<input id=\"ss_small_avatar\" type=\"text\" name=\"ss_small_avatar\" value=\"<?php echo isset($updatedSmallAvatar) ? $updatedSmallAvatar : get_user_meta($user_ID, 'thechamp_avatar', true) ?>\" />\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class=\"editfield field_name visibility-public field_type_textbox\">\r\n\t\t\t\t\t<label for=\"ss_large_avatar\"><?php _e('Large Avatar', 'super-socializer') ?></label>\r\n\t\t\t\t\t<input id=\"ss_large_avatar\" type=\"text\" name=\"ss_large_avatar\" value=\"<?php echo isset($updatedLargeAvatar) ? $updatedLargeAvatar : get_user_meta($user_ID, 'thechamp_large_avatar', true) ?>\" />\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class=\"submit\">\r\n\t\t\t\t\t<input type=\"submit\" value=\"<?php _e('Save Changes', 'super-socializer') ?>\" />\r\n\t\t\t\t</div>\r\n\t\t\t</form>\r\n\t\t</div>\r\n\t\t<?php\r\n\t}\r\n}", "public function reassignFeaturedImage()\n {\n\n }", "protected function handleAvatar() : void // image\n {\n // something happened in the last years: those textures do not include tiny icons\n $sizes = [/* 'tiny' => 15, */'small' => 18, 'medium' => 36, 'large' => 56];\n $aPath = 'uploads/avatars/%d.jpg';\n $s = $this->_get['size'] ?: 'medium';\n\n if (!$this->_get['id'] || !preg_match('/^([0-9]+)\\.(jpg|gif)$/', $this->_get['id'][0], $matches) || !in_array($s, array_keys($sizes)))\n {\n trigger_error('AjaxProfile::handleAvatar - malformed request received', E_USER_ERROR);\n return;\n }\n\n $this->contentType = $matches[2] == 'png' ? MIME_TYPE_PNG : MIME_TYPE_JPEG;\n\n $id = $matches[1];\n $dest = imageCreateTruecolor($sizes[$s], $sizes[$s]);\n\n if (file_exists(sprintf($aPath, $id)))\n {\n $offsetX = $offsetY = 0;\n\n switch ($s)\n {\n case 'tiny':\n $offsetX += $sizes['small'];\n case 'small':\n $offsetY += $sizes['medium'];\n case 'medium':\n $offsetX += $sizes['large'];\n }\n\n $src = imageCreateFromJpeg(printf($aPath, $id));\n imagecopymerge($dest, $src, 0, 0, $offsetX, $offsetY, $sizes[$s], $sizes[$s], 100);\n }\n else\n trigger_error('AjaxProfile::handleAvatar - avatar file #'.$id.' not found', E_USER_ERROR);\n\n if ($matches[2] == 'gif')\n imageGif($dest);\n else\n imageJpeg($dest);\n }", "public function delAllAvatars()\r\n\t{\r\n\t\t$files = scandir(IMAGES.'avatars'.DS);\r\n\r\n\t\tforeach ($files as $val)\r\n\t\t{\r\n\t\t\tif ($val != '.' && $val != '..')\r\n\t\t\t{\r\n\t\t\t\tunlink(IMAGES.'avatars'.DS.$val);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn $this->update(array('avatar' => ''), FALSE);\r\n\t}", "public function updateUserProfilePicture(Request $request)\n {\n $data= Validator::make($request->all(), [\n 'id' => 'required',\n 'avatar' => 'required|image|mimes:jpeg,png,jpg,gif,svg|max:2048',\n ]);\n\n if ($data->fails()) {\n return response()->json([\n 'status' => 400,\n 'message' => 'All fields are required',\n 'data'=> []\n ], 400);\n }\n\n if($request->id != $request->userID){\n return response()->json([\n 'status' => 400,\n 'message' => 'Not authorized to carry out this action',\n 'data'=> []\n ], 400);\n }\n\n $name = $request->id.\".jpg\";\n $path = Storage::disk('public')->putFileAs('avatars', $request->file('avatar'), $name, 'public');\n\n User::find($request->id)->update([\n 'pictureUrl' => Storage::disk('public')->url('avatars/'.$name)\n ]);\n $user = User::find($request->id);\n $user->followers = Follow::where('userId', $user->id)->count();\n $user->following = Follow::where('followedBy', $user->id)->count();\n $user->recipes = Recipe::where('userId', $user->id)->count();\n $user->saveCount = Favorite::where('userId', $user->id)->where('commentId', null)->count();\n return response()->json([\n 'status' => 200,\n 'message' => 'User account has been updated',\n 'data' => [\n // User::find($request->id)->only('id', 'name', 'email', 'phoneNumber','bio', 'pictureUrl'),\n $user\n ]\n ], 200);\n }", "function reset_avatar($USER_ID) {\n\t\t$sPARAMS = array(\n \"partner_id\" \t => $this->getPartnerId(),\n \"partner_key\" \t => $this->getPartnerKey(),\n\t\t\t\"partner_user_id\" => $USER_ID,\n\t\t\t\"is_test\"\t\t => false\t\t);\n\n\t\t$result = $this->_api(\"ResetDoppelMe\", array($sPARAMS) );\n $doc = simplexml_load_string( $result->ResetDoppelMeResult );\n\n\t\t$sSTATUS_CODE = $doc->StatusCode;\n\t\t$sSTATUS_INFO = $doc->StatusInfo;\n\n\t\treturn array(\n 'StatusCode' => $doc->StatusCode,\n 'StatusInfo' => strval(trim($doc->StatusInfo)),\n );\n\t}", "public function setOppoAvatar($value)\n {\n return $this->set(self::_OPPO_AVATAR, $value);\n }", "public function update(Request $request)\n {\n $validator = Validator::make($request->all(), [\n 'first_name' => 'required',\n 'last_name' => 'required',\n 'sure_name' => 'required',\n 'email' => 'required|email|max:255|unique:users,email,'.Auth::user()->id,\n 'telephone' => 'required',\n ]);\n\n if ($validator->fails()) {\n\n return redirect('profile/edit')\n ->withErrors($validator)\n ->withInput();\n } else {\n\n try {\n\n $user = Auth::user();\n\n $user->first_name = $request->first_name;\n $user->last_name = $request->last_name;\n $user->sure_name = $request->sure_name;\n $user->email = $request->email;\n $user->telephone = $request->telephone;\n $filename = NULL;\n\n if($request->hasFile('avatar')){\n $avatar = $request->file('avatar');\n $filename = time() . '.' . $avatar->getClientOriginalExtension();\n $pathname= Auth::user()->id;\n $path = storage_path('app/public/uploads/avatars/'.$pathname.'' );\n File::exists($path) or File::makeDirectory($path);\n\n Image::make($avatar)->save( storage_path('app/public/uploads/avatars/'.$pathname.'/'.'origin_'.$filename ) );\n Image::make($avatar)->resize(200, 200)->save( storage_path('app/public/uploads/avatars/'.$pathname.'/'.'200x200_'.$filename ) );\n Image::make($avatar)->resize(150, 150)->save( storage_path('app/public/uploads/avatars/'.$pathname.'/'.'150x150_'.$filename ) );\n Image::make($avatar)->resize(300, 300)->save( storage_path('app/public/uploads/avatars/'.$pathname.'/'.'300x300_'.$filename ) );\n Image::make($avatar)->resize(30, 30)->save( storage_path('app/public/uploads/avatars/'.$pathname.'/'.'30x30_'.$filename ) );\n\n\n }\n $user->avatar = $filename;\n\n $user->save();\n\n Session::flash('alert-class', 'alert-success');\n Session::flash('message', 'Successfully edit profile!');\n return Redirect::to('profile');\n\n } catch (Exception $e) {\n\n Session::flash('alert-class', 'alert-danger');\n Session::flash('message', $e->getMessage());\n return redirect('profile/edit')\n ->withErrors($validator)\n ->withInput();\n\n } catch (QueryException $e) {\n\n Session::flash('alert-class', 'alert-danger');\n Session::flash('message', $e->getMessage());\n return redirect('profile/edit')\n ->withErrors($validator)\n ->withInput();\n\n }\n\n\n }\n }", "public function update()\n {\n\n if ($this->param['uid']) {\n $id = $this->param['uid'];\n unset($this->param['uid']); \n\n } else {\n return msg(100, null, '参数错误');\n }\n // return msg(11100, null, $this);\n $ret = $this->model->updateProfile($id, $this->param); \n if ($ret) {\n return msg(200, null, '更新成功');\n } else {\n return msg(100, null, $this->model->getError());\n }\n // if ($this->param['uid']) {\n\n // $id = $this->param['uid'];\n // unset($this->param['uid']);\n // $file = request()->file('image');\n // if($file){\n // $info = $file->move(ROOT_PATH . 'public' . DS . 'uploads');\n // if($info){\n // // 成功上传后 获取上传信息\n // // 输出 jpg\n // echo $info->getExtension();\n // // 输出 20160820/42a79759f284b767dfcb2a0197904287.jpg\n // echo $info->getSaveName();\n // // 输出 42a79759f284b767dfcb2a0197904287.jpg\n // echo $info->getFilename(); \n // }else{\n // // 上传失败获取错误信息\n // echo $file->getError();\n // }\n // }\n // } else {\n // return msg(100, null, '参数错误');\n // }\n // $ret = $this->model->updateProfile($id, $this->param);\n // if ($ret) {\n // return msg(200, null, '更新成功');\n // } else {\n // return msg(100, null, $this->model->getError());\n // }\n }", "public function updateTotal() {\n //get the scans for this user\n $scans = $this->scans();\n //create running total\n $newTotal = 0; \n //for each scan, add the total pups and virus to the total\n foreach ($scans as $scan) {\n $newTotal += $scan->pups + $scan->troj_mal;\n }\n //sets and saves the new total for this user\n $this->total = $newTotal;\n $this->save();\n }", "function setProfilePicture(){ \n\t\t\t\t$this->__dataDecode();\n\t\t\t\t$data=$this->data;\n\t\t\t\tpr($this->data);\n\t\t\t\tpr($data); \n\t\t\t\t//print_R($this->data)\n\t\t\t\techo $this->webroot.'/webroot/images/adv1.jpg';\n\t\t\t\t$string\t= base64_encode(file_get_contents('http://softprodigy.in/iWrestled/webroot/images/adv1.jpg'));\n\t\t\t\t$playerId = $data['User']['playerId'];\n\t\t\t\t$token = $data['User']['secToken'];\n\t\t\t\n\t\t\t\tpr($string);die;\n\t\t\t\tif(isset($string) && $string !='' && $string !='NULL'){//pr('ok');die;\n\t\t\t\t\t$imageName\t\t= $this->createImage($string);\n\t\t\t\t\t$imageDirectory\t\t= '';\n\t\t\t\t\t$thumbDirectory\t\t= 'img/upload_userImages';\n\t\t\t\t\t$thumbWidth\t\t\t= 300;\n\t\t\t\t\t$this->createThumbnail($imageDirectory, $imageName, $thumbDirectory, $thumbWidth);\n\t\t\t\t\t$requiredData['profilePicture']\t= \t$imageName;\n\t\t\t\t\tunlink($imageName);\n\t\t\t\t\t//pr($token);die('ok');\n\t\t\t\t\t$data['User']['id'] = $this->data['User']['playerId'];\n\t\t\t\t\t$data['User']['secToken'] = $this->data['User']['secToken'];\n\t\t\t\t\t$details = $this->User->find('first', array('conditions' => array('User.id' => $data['User']['id'],'User.secToken' => $data['User']['secToken'])));//pr($details);die;\n\t\t\t\t\tif(!empty($details)){\n\t\t\t\t\t\n\t\t\t\t\t$query\t\t= \"UPDATE users set image = '\".$requiredData['profilePicture'].\"' WHERE id = '\".$playerId.\"' and secToken = '\".$token.\"' \";\n\t//pr($query);die;\n\t\t\t\t\t$resource\t= mysql_query($query);\n\t\t\t\t\tif($resource){\n\t\t\t\t\t\t$response['error']\t\t= 0;\n\t\t\t\t\t\t$response['response']['msg']\t= \"profilePicture Successfully changed.\";\n\t\t\t\t\t\t$response['response']['profilePicture']\t= PROFILE_IMAGE_URL.'upload_userImages/'.$requiredData['profilePicture'];\t\t\t\t$response['response']['message']\t= 'setProfilePicture successfully';\n\t\t\t\t\t\t$this->set('response', $response);\n\t\t\t\t\t\techo json_encode($response);\n\t\t\t\t\t\tdie();\n\n\t\t\t\t\t}else{\n\t\t\t\t\n\t\t\t\t\t\t$response['error']\t\t= 1;\n\t\t\t\t\t\t$response['response']['message']\t= \"setProfilePicture Un-successfully\";\n\t\t\t\t\t\t$this->set('response', $response);\n\t\t\t\t\t\techo json_encode($response);\n\t\t\t\t\t\tdie();\t\n\t\t\t\t\t}\n\t\t\t\n\t\t\t\t}\telse{\n\t\t\t\t\n\t\t\t\t\t\t\t$response['error']\t\t\t= 1;\n\t\t\t\t\t\t\t$response['response']['result'] \t= 'failure';\n\t\t\t\t\t\t\t$response['response']['message']\t= 'UnAuthorized User';\n\t\t\t\t\t\t\t$this->set('response', $response);\n\t\t\t\t\t\t\techo json_encode($response);\n\t\t\t\t\t\t\tdie();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdie;\t\t\n\t\t\t}", "function update_pic($value)\n\t\t{\n\t\t\t$value = \"'\".$value.\"'\";\n\t\t\t// Todo: Where clause to include user_id\n\t\t\t$sql = $this->conn_id->query('select * from users ORDER BY user_id DESC LIMIT 1');\n\t\t\t$r = $sql->fetchALL(PDO::FETCH_ASSOC);\n\t\t\t$sql = $this->conn_id->prepare(\"UPDATE users SET profilepic = \".$value.\" where user_id = ?\");\n\t\t\t$sql->execute(array($r[0]['user_id']));\n\t\t\t$affected_rows = $sql->rowCount();\n\t\t\treturn $affected_rows;\n\t\t}", "public function updatePositiveCount() {\n\n\t}", "public function updatePhoto()\n {\n //Intenta subir la foto que viene en el campo 'photo'\n if ($photo = $this->uploadPhoto('photo')) {\n //Modifica el campo photo del usuario y lo intenta actualizar\n $this->photo = $photo;\n return $this->update();\n }\n }", "public function update(Request $request)\n {\n\n // dd($request);\n $this->validate($request, [\n 'name' => 'required|max:255',\n 'middlename' => 'required|max:255',\n 'lastname' => 'required|max:255',\n 'avatar' => 'mimes:jpeg,jpg,png|max:3000'\n ]);\n\n \n\n Auth::user()->update(\n array(\n 'name' => ucfirst($request->name),\n 'middlename' => ucfirst($request->middlename),\n 'lastname' => ucfirst($request->lastname),\n 'job' => ucfirst($request->job),\n 'about' => ucfirst($request->about)\n ));\n\n\n if ($request->hasfile('avatar')) {\n\n $user = Auth::user();\n\n $avatar = $request->file('avatar');\n $filename = $user->id . '-' . time() . '.' . $avatar->getClientOriginalExtension();\n $path = public_path('upload/avatars/' . $filename);\n\n //deleting image if not default\n if ($user->avatar !== 'default.png') {\n $tempfile = 'upload/avatars/' . $user->avatar;\n if (File::exists($tempfile)) {\n unlink($tempfile);\n }\n }\n Image::make($avatar)->resize(160,160)->save($path); \n\n Auth::user()->update(\n array(\n 'avatar' => $filename\n ));\n\n \n // return back()\n // ->with('error', \"Upload File is not valid\");\n\n }\n\n \n\n\n\n\n return back()->with('success',' Record was successfully updated.'); \n\n \n\n\n }", "public function reset()\n {\n $this->values[self::_UID] = null;\n $this->values[self::_NAME] = null;\n $this->values[self::_LEVEL] = null;\n $this->values[self::_AVATAR] = null;\n $this->values[self::_HEROES] = array();\n }", "public function soumettre(Request $request)\n {\n $avatarPath = $request->session()->get('avatarPath');\n\n $dossier = 'storage/imagesSubmits/';\n $user=Auth::User()->id;\n $avatars=Avatar::all();\n foreach($avatars as $avatar){\n $userId = $avatar->user_id;\n $imageValide = $avatar->imageValider;\n if ($userId==$user and $imageValide == false){\n $avatar->delete();\n }\n /*if($avatar==$user){\n echo ('trouve doublon de '.$username);\n }*/\n }\n $avatarName=$_POST['publierNom'];\n $avatar = new Avatar();\n $avatar->user_id = $user;\n $avatar->imageUrl = $avatarName;\n $avatar->save();\n //recupere l'extension du nom de l'image\n $avatarHeader = 'image/'.substr(strrchr($avatarName, '.'),1);\n //sauvegarde de l'image cropped apres encodage(balise canvas)/decodage Base64\n \\header($avatarHeader);\n $avatarBase64=$_POST['publierHref'];\n //on retire le MINE-type et le mot clé present pour ne recuperer que la data de l'encodage\n $avatarBase64= substr(strrchr($avatarBase64,','),1);\n $avatarData=base64_decode($avatarBase64);\n $avatarImage=imagecreatefromstring($avatarData);\n imagejpeg($avatarImage,$dossier.$avatarName);\n\n return view ('profile.profile',compact('avatarPath'));\n }", "public function updateProfile(Request $request, $id){\n if(!$request->ajax())return redirect('/');\n\n $imgAnterior = User::select('foto_user','id')\n ->where('foto_user','!=','default-image.gif')\n ->where('id','=',$id)->get();\n\n if($imgAnterior->isEmpty()==1){ // verifica si en el capo de la imagen se encuentra vacio\n $fileName = uniqid().'.'.$request->foto_user->getClientOriginalExtension();\n $moved = $request->foto_user->move(public_path('/img/avatars'), $fileName);\n\n if($moved){\n if(!$request->ajax())return redirect('/');\n $user = User::findOrFail($request->id);\n $user->foto_user = $fileName;\n $user->id = $id;\n $user->save(); //Insert\n }\n return back();\n\n }else{\n if ($request->foto_user != $imgAnterior[0]->foto_user){\n\n $pathAnterior = public_path().'/img/avatars/'.$imgAnterior[0]->foto_user; // elimina la imagen anterior\n File::delete($pathAnterior); }\n\n $fileName = uniqid().'.'.$request->foto_user->getClientOriginalExtension(); // crea un nombre unico\n $moved = $request->foto_user->move(public_path('/img/avatars'), $fileName);// guarada la imagen\n\n if($moved){\n if(!$request->ajax())return redirect('/'); // guarda el registro del nombre de la imagen\n $user = User::findOrFail($request->id);\n $user->foto_user = $fileName;\n $user->id = $id;\n\n $user->save(); //Insert\n }\n return back();\n }\n\n }", "public function updateUserOffline()\n {\n $this->is_online = 0;\n $this->save();\n }", "public function onPreUpdate()\n {\n $this->updatedAt = new \\DateTime(\"now\");\n $this->setTotalAmounts();\n }", "public function modifierAvatar($nomAvatar)\r\n {\r\n // Connexion à la base\r\n self::connexionBD();\r\n \r\n // Prépare la requête\r\n $requete = self::getBaseDeDonnees()->getCnxBD()->prepare(self::RQT_MODIFIER_AVATAR_UTIL);\r\n \r\n $idAvatar = Avatar::getIdAvatar($nomAvatar);\r\n \r\n $ok = $requete->execute(array(\r\n ':login' => $this->login,\r\n ':idAvatar' => $idAvatar\r\n ));\r\n \r\n if ($ok) {\r\n $this->idAvatar = $idAvatar;\r\n }\r\n \r\n return $ok;\r\n }", "public function getUserAvatar(){\n return($this->userAvatar);\n }", "function update_user_avatar() {\n\n global $DB,$CFG;\n require_once($CFG->dirroot . '/local/elggsync/classes/curl.php');\n $config = get_config('local_elggsync');\n $elggmethod = 'get.user.info';\n $moodlefunctionname = 'core_files_upload';\n $elgg_api_key = $config->elggapikey;\n $moodle_token = $config->moodleapikey;\n $serverurl = $CFG->wwwroot .'/webservice/rest/server.php' . '?wstoken=' . $moodle_token .'&wsfunction=' . $moodlefunctionname;\n $restformat = '&moodlewsrestformat=json';\n\n $curl = new local_elggsync\\easycurl;\n\n $results = $DB->get_records_sql(\"SELECT u.id,u.username,u.city, u.description FROM {user} AS u WHERE u.suspended = 0\");\n foreach($results as $result) {\n $url = $CFG->wwwroot.$config->elggpath.'/services/api/rest/json/?method='.$elggmethod.'&api_key='.$elgg_api_key;\n $fetched = $curl->post($url,array('username'=>$result->username));\n $fetched = json_decode($fetched);\n if(isset($fetched) && $fetched->status == 0) {\n if(isset($fetched->result) && $fetched->result->success == true) {\n $avatar_url = (string) $fetched->result->url;\n if(strpos($avatar_url,'/user/default/') !== false) {\n continue;\n }\n else {\n $tmp = explode('/',$avatar_url);\n $imagename = end($tmp);\n unset($tmp);\n $params = array(\n 'component' => 'user',\n 'filearea' => 'draft',\n 'itemid' => 0,\n 'filepath' => '/',\n 'filename' => $result->id.'_'.$imagename,\n 'filecontent' => base64_encode(file_get_contents($avatar_url)),\n 'contextlevel' => 'user',\n 'instanceid' => 2,\n );\n $upload_file = $curl->post($serverurl . $restformat, $params);\n $upload_file = json_decode($upload_file);\n if(isset($upload_file->itemid)) {\n $update_picture = $curl->post($CFG->wwwroot .'/webservice/rest/server.php' . '?wstoken=' . $moodle_token .'&wsfunction=core_user_update_picture' . $restformat, array('draftitemid'=>$upload_file->itemid,'userid'=>$result->id));\n }\n }\n }\n } \n }\n return true;\n}", "private function resetCounters()\r\n\t{\r\n\t\t$this->ipCounter->reset();\r\n\t\t$this->usernameCounter->reset();\r\n\t}", "public function testProfilePrototypeUpdateImage()\n {\n\n }", "protected function imageCount()\n\t{\n\t\t$this->score += $this->store['image_count'] * $this->config->data()['imageCount'];\n\t}", "public function setAvatarPath($filePath, $profileID) {\n $dbConVar = new dbConnect();\n $conn = $dbConVar->createConnectionObject();\n $affectedRows = NULL;\n //$finalPath = $avatarBasePath.$fileName;\n $query = \"UPDATE user_info\n SET avatar=?\n WHERE user_id=?\";\n $stmt = $conn->prepare($query);\n $stmt->bind_param(\"ss\", $filePath, $profileID);\n $stmt->execute();\n $affectedRows = $stmt->affected_rows;\n $stmt->close();\n $dbConVar->closeConnectionObject($conn);\n return $affectedRows;\n }", "public function update(Request $request) //////// Update user's Info\n {\n $id = Auth::id();\n\n $request->validate([\n 'image' => 'image|mimes:jpeg,jpg,png,gif|max:248',\n 'password' => 'required|password',\n 'email' => 'required',\n ]);\n $username= $request->username;\n $gender =$request->gender;\n $password =$request->password;\n //$membership =$request->membership;\n $email =$request->email;\n $altmail =$request->altmail;\n $phone =$request->phone;\n $web =$request->web;\n $social =$request->social;\n $country =$request->country;\n $city =$request->city;\n $surbub =$request->surbub;\n $street =$request->street;\n $discription =$request->discription;\n $goal =$request->goal;\n $dob = $request->dob;\n $filename = $request->image;\n\n //proccess avater if user uploads it\n if($filename != null){\n if($request->hasFile('image')){\n $avater = DB::table('users')->select('avater')->where('id', '=' , $id)->get();\n $filename = $request->image->getClientOriginalName();\n $ext = $request->image->extension();\n //writing avater/image name, to be unique\n function uniqFile($id,$filename,$ext) {\n $file = md5($filename).\"\".uniqid($filename, true);\n return \"pro\".$id.\"\".md5($file).\"le.\".$ext ;\n }\n // storing user avater to storage\n $filename = uniqFile($id,$filename,$ext);\n Storage::delete('public/profile/'.$avater[0]->avater);\n $request->image->storeAs('profile',\"$filename\",'public');\n }\n }else{\n $filename = $request->img;\n }\n // update users general info\n DB::table('users')\n ->where('id', $id)\n ->update([\n 'avater' => $filename,\n 'email' => $email,\n 'dob' => $dob,\n // 'membership' => $membership,\n 'gender' => $gender,\n 'username' => $username,\n 'password' => Hash::make($password)]);\n\n DB::table('contacts')\n ->where('id', $id)\n ->update([\n 'altmail' => $altmail,\n 'phone' => $phone,\n 'web' => $web,\n 'social' => $social,\n 'country' => $country,\n 'city' => $city,\n 'surbub' => $surbub,\n 'street' => $street,\n 'discription' => $discription,\n 'goal' => $goal]);\n\n return redirect()->to('admin/profile/profile')->with('success','Profile updated successfully!');\n\n }" ]
[ "0.6942327", "0.6390411", "0.6104725", "0.6088848", "0.5890941", "0.58768153", "0.56922436", "0.5661899", "0.56381506", "0.56340975", "0.56285065", "0.55984193", "0.5523373", "0.5507635", "0.5500878", "0.54902786", "0.54892117", "0.54860765", "0.545339", "0.5445309", "0.54450804", "0.54035723", "0.5401873", "0.5392", "0.5391783", "0.5389655", "0.53882724", "0.53851545", "0.53529465", "0.5342204", "0.5341553", "0.53295213", "0.53206444", "0.53152627", "0.5299602", "0.529572", "0.5287362", "0.5287121", "0.526282", "0.52320457", "0.5212459", "0.52045375", "0.5186594", "0.5176354", "0.51553833", "0.51348", "0.5127473", "0.5118364", "0.51101893", "0.5107825", "0.50965184", "0.5092992", "0.50835097", "0.5077915", "0.50625145", "0.50558984", "0.50556576", "0.5053194", "0.5051228", "0.5046895", "0.50464565", "0.50428414", "0.50222206", "0.5018876", "0.50158966", "0.50157225", "0.5015691", "0.5014201", "0.50100446", "0.5010008", "0.5006535", "0.4997032", "0.49897778", "0.49797744", "0.49792415", "0.49594995", "0.49573278", "0.49530026", "0.49506155", "0.49489826", "0.49479508", "0.49459088", "0.49418354", "0.4939293", "0.49290007", "0.49184093", "0.49140966", "0.491404", "0.49107647", "0.49105537", "0.4910294", "0.4907865", "0.49068087", "0.49066848", "0.4906511", "0.49052185", "0.48950246", "0.48924848", "0.48881295", "0.48719904" ]
0.5673047
7
TODO: Implement connect() method.
public function connect() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function connect();", "public function connect();", "public function connect();", "public function connect();", "public function connect();", "public function connect();", "public function connect();", "public function connect();", "public function connect();", "public function connect();", "public function connect();", "abstract public function connect();", "abstract public function connect();", "abstract public function connect();", "abstract public function connect();", "abstract public function connect();", "abstract public function connect();", "abstract public function connect();", "abstract protected function connect();", "abstract protected function connect();", "abstract protected function connect();", "protected function connect() {}", "public abstract function connect();", "abstract function connect();", "abstract function connect ();", "public function connect(): mixed;", "public function connect(): void;", "public abstract function Connect();", "static function connect(): void;", "public function connect(): void\n {\n }", "function connect();", "abstract function getConnect();", "public function connect() {\n $this->getConnectionSocket();\n }", "public function connect()\n\t{\n\t\t$this->isConnected = false;\n\n\t\t$this->connectInternal();\n\t}", "public function pconnect(): void\n {\n }", "final public function p_connect() {\n \t$this->connect('', '', '', '', true);\n \t}", "function connect(): bool;", "public function connect() {\n\t\treturn true;\n\t}", "protected function connect() {\n $this->connection = 'resource';\n echo $this->name . ' connected '.\"<br>\" ;\n }", "private function connect() {\n\t\tif (!$this->connected) {\n\t\t\t$this->socket = @socket_create(AF_INET, SOCK_STREAM, SOL_TCP);\n\t\t\t$this->connected = @socket_connect($this->socket, $this->host, $this->port);\n\t\t}\n\t}", "abstract public function connected();", "public function connect(): bool;", "public function connect()\n {\n $this->connection->connect();\n }", "private function __construct()\n {\n $this->connect();\n }", "public function connect()\r\n\t{\r\n\t\t//$this->link = qracle_connect();\r\n\t}", "public function connect() {\n $this->connection = AMQPStreamConnection($this->server_ip, $this->server_port, $this->username, $this->password);\n }", "public function connect()\n {\n return $this->connector->connect();\n }", "public function connected()\n {\n }", "abstract public function connect(array $options = array());", "public function connect() {\n return $this->_connect;\n }", "function __construct(){\n\n\t\t $this->connect() ;\n\t}", "public function connect() {\n if ($this->client) {\n $this->client->connect();\n }\n }", "function __construct() {\n $this->_connect();\n }", "public function preconnect(): void\n {\n }", "function __construct()\n {\n $this->connect();\n }", "public function run(): void\n {\n $this->connect();\n parent::run();\n }", "public function connect()\n {\n if (!$this->isConnected()) {\n $this->manager->connect();\n }\n }", "public function __construct(){\n self::connect(self::$classname);\n }", "public function connect()\n {\n return $this->adapter->attach();\n }", "protected function connect()\n {\n $url = $this->createUrl(\"\");\n // create curl resource\n $this->connection = curl_init();\n\n // set url\n curl_setopt($this->connection, CURLOPT_URL, $url);\n\n //return the transfer as a string\n curl_setopt($this->connection, CURLOPT_RETURNTRANSFER, 1);\n\n }", "function connect(){\n if($conn_obj->connect_error){\n echo \"Could not make connection at point 1 ERROR: \".$conn_obj->connect_error ;\n die;\n }\n }", "public function connectSocket()\n {\n if (($this->connectSocket = socket_connect($this->socket, $this->host, $this->port)) === false) {\n socket_strerror(socket_last_error());\n\n die(\"Соединение с сокетом не установленно!\\n\");\n\n }\n echo \"Соединение с сокетом установленно.\\n\";\n }", "function connect() {\n $this->conn = imap_open('{'.$this->server.'/notls}', $this->user, $this->pass);\n }", "abstract protected function _connect(array $inConfiguration);", "abstract public function getConnection();", "public function disConnect();", "public function __wakeup()\n {\n $this->connect();\n }", "public function connect()\r\n {\r\n $this->log( \"Connecting to {$this->_server}:{$this->_port}\" );\r\n \r\n // open the connection\r\n $this->_conn = fsockopen( $this->_server, $this->_port, $errno, $errstr, 10 );\r\n \r\n if ( $this->_conn )\r\n {\r\n $this->log( \"Connected.\" );\r\n \r\n // start processing the data\r\n $this->main();\r\n }\r\n }", "protected function socketPerform() {}", "protected function connect() {\n if ($this->worker->addServer($this->host, $this->port) === false) {\n throw new Ex(\n \"Unable to connect to Gearman at '{$this->host}:{$this->port}'\",\n Ex::CONNECTION_ERROR\n );\n }\n }", "public function __construct()\n\t{\n\t\t$this->connectOpen();\n\t}", "function connect($r) {\n\t\t\t\tif($r == 0) echo \"{$r}-CONX-OK|\";\n\t\t\t\tif($r == 1) echo \"{$r}-Connection refused (unacceptable protocol version)|\";\n\t\t\t\tif($r == 2) echo \"{$r}-Connection refused (identifier rejected)|\";\n\t\t\t\tif($r == 3) echo \"{$r}-Connection refused (broker unavailable )|\"; \n\t\t}", "protected function connect() \n {\n $this->socket = @stream_socket_client(\n $this->host.':'.$this->port,\n $errorNumber,\n $errorDescription,\n $this->timeout ? $this->timeout : ini_get('default_socket_timeout')\n );\n if ($this->socket) {\n if ($this->password!==null) {\n $this->executeCommand('AUTH', array($this->password)); \n }\n $this->executeCommand('SELECT', array($this->db));\n } else {\n throw new Exception(\n 'Failed to connect to redis: '.$errorDescription,\n (int)$errorNumber\n );\n }\n }", "public function reconnect();", "public function reconnect();", "abstract public function _get_connected();", "function connect() {\n\n $this->conn = imap_open('{'.$this->server.'/notls}', $this->user, $this->pass);\n\n}", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "public function getConnection();", "private static function getConnection(){\n\t\tself::$cnx = Connect::conn();\n\n\t}", "public function registerConnection();", "function connect()\n\t{\n\t\t\n\t\t$this->sock = @fsockopen($this->host,$this->port,&$this->errno,&$this->errstr,30);\n\t\t@set_socket_blocking($this->sock,false);\n\t\treturn $this->sock;\n\t}", "public function reconnect(): void;", "public function reconnect(): void\n {\n }", "public function __construct()\n\t{\n\t\t$this->conn = 'connected';\n\t}", "public function connect()\r\n\t{\r\n\t\t//$this->link = mysql_connect();\r\n\t}", "public function getConnector();", "public function __construct() {\n $this->connect();\n// var_dump($this->cont);\n }" ]
[ "0.86881727", "0.86881727", "0.86881727", "0.86881727", "0.86881727", "0.86881727", "0.86881727", "0.86881727", "0.86881727", "0.86881727", "0.86881727", "0.8668089", "0.8668089", "0.8668089", "0.8668089", "0.8668089", "0.8668089", "0.8668089", "0.8633519", "0.8633519", "0.8633519", "0.8608076", "0.8602754", "0.85652083", "0.8387781", "0.8189546", "0.8187683", "0.8053942", "0.79464066", "0.78643155", "0.77807", "0.7648264", "0.7505087", "0.73360735", "0.7296275", "0.7242655", "0.7192545", "0.7177278", "0.71204907", "0.7051531", "0.70025027", "0.69276756", "0.68861103", "0.68457615", "0.6823067", "0.677963", "0.6767297", "0.67533207", "0.6752747", "0.67326534", "0.6731738", "0.6724957", "0.66886747", "0.6686183", "0.66464114", "0.660044", "0.6577433", "0.65055823", "0.6483996", "0.64465857", "0.6444523", "0.64373904", "0.6436363", "0.64359546", "0.6423034", "0.6402492", "0.6397758", "0.63805085", "0.634851", "0.63365287", "0.6333252", "0.63286126", "0.6309488", "0.62847805", "0.62847805", "0.62727123", "0.6272477", "0.62478703", "0.62478703", "0.62478703", "0.62478703", "0.62478703", "0.62478703", "0.62478703", "0.62478703", "0.62478703", "0.62478703", "0.62478703", "0.62478703", "0.62445784", "0.62411946", "0.6233226", "0.62272745", "0.62253714", "0.6222739", "0.6219426", "0.62193274", "0.6152704" ]
0.80707735
29
For internal only. DO NOT USE IT.
public function deserialize($param) { if ($param === null) { return; } if (array_key_exists("Time",$param) and $param["Time"] !== null) { $this->Time = $param["Time"]; } if (array_key_exists("Type",$param) and $param["Type"] !== null) { $this->Type = $param["Type"]; } if (array_key_exists("Data",$param) and $param["Data"] !== null) { $this->Data = $param["Data"]; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function __init__() { }", "private function __() {\n }", "protected function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "protected function init() {}", "private function __construct()\t{}", "private function init()\n\t{\n\t\treturn;\n\t}", "final private function __construct() {}", "final private function __construct() {}", "final private function __construct(){\r\r\n\t}", "final private function __construct() {\n\t\t\t}", "final private function __construct() { }", "final private function __construct() { }", "final private function __construct() { }", "private function _i() {\n }", "protected function fixSelf() {}", "protected function fixSelf() {}", "protected final function __construct() {}", "protected function initialize() {}", "protected function initialize() {}", "protected function initialize() {}", "protected function initialize() {}", "protected function init()\n\t{\n\t\t\n\t}", "private function __construct() {\r\n\t\r\n\t}", "private function __construct() {\r\n\t\t\r\n\t}", "protected function init() {return;}", "final private function __construct()\n\t{\n\t}", "private function __construct () {}", "final private function __construct()\n {\n }", "private final function __construct() {}", "public function __init(){}", "public function helper()\n\t{\n\t\n\t}", "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 function __construct() {}", "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 function __construct() {}", "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 function __construct() {}", "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 function __construct() {}", "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 function __construct() {}", "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 function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct()\n\t{\n\t\t\n\t}" ]
[ "0.62662613", "0.6151871", "0.5989886", "0.5989886", "0.5989886", "0.5989886", "0.5989418", "0.5989418", "0.5989418", "0.5989418", "0.5989418", "0.5989418", "0.5988404", "0.5988404", "0.5949015", "0.5939596", "0.59168774", "0.59168774", "0.58703923", "0.58665824", "0.5855589", "0.5855589", "0.5855589", "0.5799749", "0.5797107", "0.5797107", "0.57807934", "0.5749856", "0.5749856", "0.5749856", "0.5749856", "0.57458705", "0.5741364", "0.571247", "0.5701768", "0.5694139", "0.5680823", "0.5673589", "0.5668696", "0.5640213", "0.5639332", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5627174", "0.5626381", "0.56240404", "0.56240404", "0.5610547" ]
0.0
-1
Lists all Game models.
public function actionIndex() { $games = Game::find()->all(); return $this->render('index', ['games' => $games]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n return Game::all();\n }", "public function index()\n {\n $games = Game::all();\n return $this->showAll($games);\n }", "public function getModels();", "public function getModels();", "public function listModels() {\n\n $config = $this->initConfig($version = AnalyzeModel::VERSION);\n\n $config->setQuery( [ 'version' => $version ] );\n\n $config->setMethod(HttpClientConfiguration::METHOD_GET);\n $config->setType(HttpClientConfiguration::DATA_TYPE_JSON);\n $config->setURL(self::BASE_URL.\"/models\");\n\n return $this->sendRequest($config);\n }", "private function getAllModels()\n {\n return (object)ModelRegistry::getAllObjects();\n }", "public function listGame()\n {\n return $this->db->get('game', 8, 9)->result();\n }", "public function index() {\n\n\t\t$arr = [\n\t\t\t'fields' => ['id', 'description', 'user_id', 'complete'],\n\t\t\t'recursive' => 0\n\t\t];\n\t\t$this->set('games', $this->Killer->find('all', $arr));\n\n\t}", "public function findAllGames()\n {\n return $this->entityManager->getRepository('Model\\Entity\\Game')->findAll();\n }", "public function index()\n {\n return view('game.index')->withGames(Game::all());\n }", "public function getAll() { \r\n return $this->makeRequest('get', \"/games/top\");\r\n }", "public function index()\n {\n $games = Game::all();\n \n return $this->sendResponse(GameResource::collection($games), 'Games retrieved successfully.');\n }", "public function getAll()\n {\n return DB::table('product_models')->get()->all();\n }", "public function index()\n {\n $game=Game::all();\n return GameResource::collection($game);\n }", "public function index()\n {\n //$games = Game::all();\n\n return View::make('index');\n }", "public function index()\n {\n $this->title = 'List Games';\n $this->games = Game::latest()->get();\n return $this->view();\n }", "public function index() {\n $this->set('actions', $this->getAuthorizedActions());\n $this->set('games', $this->Game->find('all'));\n }", "public function index()\n {\n return view('admin.games.games.list', ['rows' => Games::paginate(15)]);\n }", "public function index()\n {\n return $this->model->all();\n }", "public function models()\n {\n $this->_display('models');\n }", "public function index()\n {\n $games = Game::orderBy('igw_limit', 'DESC')->get();\n\n return view('game.index', compact('games'));\n }", "public function fetch_all_models() {\n global $pdo;\n\n $query = $pdo->prepare(\"SELECT * FROM talents\");\n $query -> execute();\n return $query->fetchAll(\\PDO::FETCH_ASSOC);\n }", "function getAllGames() {\n $conn = dbcon();\n\n $query = $conn->prepare(\"SELECT * FROM games\");\n $query->execute();\n\n return $query->fetchAll();\n }", "public function index(){\n return $this->model->all();\n }", "public function list(){\n $games=Game::where(['user_id'=>Auth::user()->id])->get();\n return response()->json([\n 'games' => $games,\n ], 200);\n }", "public function games()\n {\n $games=Item::all();\n return view('front.games',compact('games'));\n }", "public function getAllModels()\n {\n try {\n return AppModelList::models();\n }\n catch (Throwable $t) {\n throw new Exception('Parse Error: AppModelList.php has been corrupted.');\n }\n }", "public function index()\n {\n {\n $teams = Team::all();\n $games = Game::all();\n return view('games.index')->with('games', $games)->with('teams', $teams);\n }\n }", "public function all()\n {\n return $this->model->get();\n }", "public function all()\n {\n return $this->model->get();\n }", "public function getAll()\n {\n return $this->model->all();\n }", "public function getAll()\n {\n return $this->model->all();\n }", "public function getAll()\n {\n return $this->model->all();\n }", "public function GetAll()\n {\n return $this->model->all();\n }", "public function index()\n {\n return $this->model->getAll();\n }", "public function index()\n {\n return Player::all();\n }", "public function index()\n {\n $data = Game::withCount('order')->paginate(8);\n return response()->json($data, 200);\n }", "public function viewallunitmodelsAction() {\n\n\t\t$model = new Unit_Model_UnitModel();\n\t\t$this->view->records = $model->fetchAll( 'name','ASC' );\n \n\t\tif( $this->view->records ) {\n $attached = $model->getAttachedModels();\n $this->view->attached = $attached;\n\t\t $this->view->paginator = $this->paginate( $this->view->records );\n }\n\t}", "public function models();", "private function _getAllModels(): array {\n\t\t$models = Array();\n\t\t$folder = Environment::$dirs->models;\n\t\t$files = array_diff(scandir($folder), array('.', '..'));\n\t\tforeach ($files as $fileName) {\n\t\t\tinclude_once($folder.DIRECTORY_SEPARATOR.$fileName);\n\t\t\t$className = basename($fileName, \".php\");\n\t\t\t$classNameNamespaced = \"\\\\Jeff\\\\Api\\\\Models\\\\\" . ucfirst($className);\n\t\t\t$model = new $classNameNamespaced($this->db, $this->account);\n\t\t\t$models[$model->modelNamePlural] = $model;\n\t\t}\n\t\treturn $models;\n\t}", "public function actionList()\r\n {\r\n $this->_userAutehntication();\r\n switch($_GET['model'])\r\n {\r\n case 'posts': \r\n $models = Post::model()->findAll();\r\n break; \r\n default: \r\n $this->_sendResponse(501, sprintf('Error: Mode <b>list</b> is not implemented for model <b>%s</b>',$_GET['model']) );\r\n exit; \r\n }\r\n if(is_null($models)) {\r\n $this->_sendResponse(200, sprintf('No Post found for model <b>%s</b>', $_GET['model']) );\r\n } else {\r\n $rows = array();\r\n foreach($models as $model)\r\n $rows[] = $model->attributes;\r\n\r\n $this->_sendResponse(200, CJSON::encode($rows));\r\n }\r\n }", "public function actionIndex()\n {\n $searchModel = new GameBasicInfoSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n \n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function index()\n {\n return Model::all();\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $games = $em->getRepository('AppBundle:Game')->findAllDesc();\n\n return $this->render('game/index.html.twig', array(\n 'games' => $games,\n ));\n }", "public static function list_all() {\n // $player = self::get_user_logged_in();\n // $scores = Score::find_by_player($player->id);\n // View::make('player/show.html', array('player' => $player, 'scores' => $scores));\n Redirect::to('/player/' . self::get_user_logged_in()->id);\n }", "public function all()\n {\n return Model::all();\n }", "public function all()\n {\n return Model::all();\n }", "public function getAll()\n {\n return $this->model->orderBy('id', 'DESC')->get();\n }", "public function index()\n {\n $game = new Game();\n $gameData = $game->all();\n\n return response()->json(['gameData' => $gameData]);\n }", "public function index()\n\t{\n\t\t$gametypes = Gametype::all();\n\n\t\treturn View::make('gametypes.index', compact('gametypes'));\n\t}", "public function games() {\n return $this->belongsToMany(Game::class)->orderBy(\"title\");\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function all()\n {\n return $this->model->all();\n }", "public function all()\n {\n return $this->model->all();\n }", "public function all()\n {\n return $this->model->all();\n }", "public function all()\n {\n return $this->model->all();\n }", "public function all()\n {\n return $this->model->all();\n }", "public function all()\n {\n return $this->model->all();\n }", "public function all()\n {\n return $this->model->all();\n }", "public function all()\n {\n return $this->model->all();\n }", "public function all()\n {\n return $this->model->all();\n }", "public function all()\n {\n return $this->model->all();\n }", "public function japiGet_All()\n\t{\n\t\tif (Yii::app()->user->isGuest)\n\t\t\treturn array('ret'=>'failed', 'reason'=>'not login');\n\n\t\t$games=User::model()->findByPk(Yii::app()->user->id)->own_games;\n\t\t$games_info = array();\n\t\tforeach ($games as $game)\t\n\t\t\tarray_push($games_info, $game->attributes);\n\t\treturn array('ret'=>'ok', 'list'=>$games_info);\n\t}", "public function all()\n\t{\n\t\treturn $this->model->all();\n\t}", "public function findAll()\n {\n return $this->model->all();\n }", "public function findAll($model);", "public function index()\n {\n $models= Carmodal::latest()->paginate(10);\n return view('models.index',compact('models'));\n }", "public function index()\n {\n return Entity::all();\n }", "public function index() {\n $data['manufacturers'] = Manufacturer::getManufacturers();\n return view('models.models')->with($data);\n }", "public function actionList() {\n switch ($_GET['model']) {\n case 'Product':\n $models = Product::model()->findAll();\n break;\n case 'Vendor':\n $models = Vendor::model()->findAll();\n break;\n case 'FavoriteProduct':\n $models = FavoriteProduct::model()->findAll();\n break;\n case 'Order':\n $models = Order::model()->findAll();\n break;\n case 'Rating':\n $models = Rating::model()->findAll();\n break;\n case 'Review':\n $models = Review::model()->findAll();\n break;\n case 'UserAddress':\n $models = UserAddress::model()->findAll();\n break;\n case 'OrderDetail':\n $models = OrderDetail::model()->findAll();\n break;\n default:\n $this->_sendResponse(0, 'You have pass invalid modal name');\n Yii::app()->end();\n }\n // Did we get some results?\n if (empty($models)) {\n // No\n $this->_sendResponse(0, 'No Record found ');\n } else {\n // Prepare response\n $rows = array();\n $i = 0;\n foreach ($models as $model) {\n $rows[] = $model->attributes;\n if ($_GET['model'] == 'Order') {\n $rows[$i]['cart_items'] = Product::model()->getProducts($model->product_id);\n $rows[$i]['order_detail'] = OrderDetail::model()->findAll(array('condition' => 'order_id ='.$model->id));\n }\n $i = $i + 1;\n }\n // Send the response\n $this->_sendResponse(1, '', $rows);\n }\n }", "public function index()\n {\n $validData = request()->validate([\n 'group_identifier' => 'required|string',\n ]);\n //get all games for this identifier\n $games = Game::with('positions')\n ->where('group_identifier', $validData['group_identifier'])\n ->get();\n\n return GameResource::collection($games);\n }", "public function getAll()\n {\n return \\App\\Movie::all()->load('genre');\n }", "public function index()\n {\n if (! Gate::allows('game_access')) {\n return abort(401);\n }\n $games = Game::all();\n\n return view('games.index', compact('games'));\n }", "public function all()\n {\n return $this->getModel()->all();\n }", "public function games()\n {\n return $this->hasMany(Game::class);\n }", "public static function getList()\n {\n $models = self::find()->all();\n $list = ArrayHelper::map($models, 'id', 'name');\n return $list;\n }", "public function get_models() {\n if (userLogedIn()) {\n $result = $this->admin_model->get_models();\n echo json_encode($result);\n \n } else {\n $this->load->view('admin/login');\n }\n }", "public function index()\n {\n return PlayerCollection::collection(Player::paginate(5));\n }", "public function all($model){\n\n if(!class_exists($model)){\n return new $model;\n }\n\n $table = $this->getTableName($model);\n $stmt = $this->pdo->prepare('select * from ' . $table);\n $stmt->execute();\n\n return $stmt->fetchAll(\\PDO::FETCH_CLASS, $model);\n }", "public function index()\n\t{\n\t\treturn $this->room->all();\n\t}", "function listaAll() {\n require ROOT . \"config/bootstrap.php\";\n return $em->getRepository('models\\Equipamentos')->findby(array(), array(\"id\" => \"DESC\"));\n $em->flush();\n }", "public function getAll(): Collection\n {\n return $this->model->all();\n }", "public function index()\n {\n return $this->findModel()->toArray();\n }", "public function getModelsForIndex()\n {\n $models = [];\n $all_models = $this->getAllModels();\n\n foreach ($all_models as $model) {\n //parse model\n $pieces = explode('.', $model);\n if (count($pieces) != 2) {\n throw new Exception('Parse error in AppModelList');\n }\n //check form match\n $app_model = $pieces[1];\n $link = $this->convertModelToLink($app_model);\n\n // add to actions\n $models[$app_model]['GET'] = [\n [\n 'action' => 'index',\n 'description' => 'List & filter all ' . $app_model . ' resources.',\n 'route' => '/' . env('EASY_API_BASE_URL', 'easy-api') . '/' . $link\n ],\n [\n 'action' => 'show',\n 'description' => 'Show the ' . $app_model . ' that has the matching {id} from the route.',\n 'route' => '/' . env('EASY_API_BASE_URL', 'easy-api') . '/' . $link . '/{id}'\n ]\n ];\n }\n return $models;\n }", "public function action_index(array $parameters = []) {\r\n \r\n $games = (array)$this->model->getGames();\r\n \r\n $this->outputHeader();\r\n require DIR_VIEW . strtolower($this->name) . DS . 'list' . FILE_PHTML;\r\n $this->outputFooter();\r\n }", "public function index()\n {\n $car_models = CarModel::with(['car'])->get();\n return view('car-models.index', compact('car_models'));\n }", "public function getAll($model)\n {\n $sql = \"SELECT * FROM {$this->table}\";\n $req = Database::getBdd()->prepare($sql);\n $req->execute();\n return $req->fetchAll(PDO::FETCH_CLASS,get_class($this->model));\n }", "public function index()\n {\n $active_games = Game::where('status', '!=', 'finished')->get();\n $finished_games = Game::where('status', 'finished')->get();\n return view('games.index', [\n 'active_games' => $active_games,\n 'finished_games' => $finished_games\n ]);\n }", "public function index()\n {\n $products = Games::all();\n return view('shop')->with('products', $products);\n }", "public function getModels()\n {\n return $this->_models;\n }", "public static function all() {\n\t\t$classe = get_called_class();\n\t\t$table = str_replace(\"db_\", \"\", $classe);\n\t\t$liste = db::findAll(db::table($table));\n\t\treturn $liste;\n\t}", "public function getAll()\n {\n return Team::all();\n }", "public function showAll(){\n\t\t\n\t\treturn view('skill/showall', [ \"skills\"=>Skill::all(), \"skilllevels\" => SkillLevel::all(), \"playerclasses\" => PlayerClass::all()]);\t\t\n\t}", "public function index()\n {\n $games = DB::table('games')->where('UserId',Auth::id())->get();\n return view('games.index')->with('games',$games);\n }", "public function actionIndex()\n {\n $searchModel = new GeSeguimientoGestionBuscar();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function getList()\n {\n $this->db->order_by(\"id\", 'desc');\n $this->db->where('status', 1);\n return $this->db->get($this->model);\n }", "public function get_all()\n {\n $db_games = \\DB::table('games')->get();\n \n // Only returns some fields\n $games = [];\n foreach ($db_games as $game) {\n $db_games_users = \\DB::table('games_users')\n ->where('game_id', '=', $game->id)\n ->get();\n\n $users = [];\n $creator_id = NULL;\n $creator_pseudo = NULL;\n foreach ($db_games_users as $item) {\n if ($item->type == 'guest') {\n array_push( $users, ['type' => 'guest', 'username' => $item->username] );\n } else {\n $user = \\App\\User::where('id', $item->user_id)->first();\n array_push( $users, [\n 'type' => 'user', 'username' => $item->username, 'user_id' => intval($item->user_id),\n 'avatar' => $user->avatar, 'color' => $user->color\n ]);\n }\n if ($item->is_owner) {\n $creator_id = $item->user_id;\n $creator_pseudo = $item->username;\n }\n }\n $games[] = [\n 'game_id' => intval($game->id),\n 'users' => $users,\n 'creator_id' => intval($creator_id),\n 'creator_pseudo' => $creator_pseudo\n ];\n }\n return [\n \"status\" => \"ok\",\n \"games\" => $games\n ];\n }", "public function index(Request $request)\n {\n $games = $this->gameRepository->all(\n ['user_id' => auth()->id()]\n );\n\n return view('studio.games.index')\n ->with('games', $games);\n }", "public function index()\n {\n // return view('cinema::index');\n return $this->model->all();\n }", "public function index()\n {\n return view('games.index');\n }" ]
[ "0.7327281", "0.71130526", "0.6793311", "0.6793311", "0.6664447", "0.66620827", "0.66573846", "0.6619565", "0.65948445", "0.65003854", "0.64931613", "0.6486966", "0.6481925", "0.6459926", "0.64472073", "0.64235497", "0.6393513", "0.6385091", "0.63776314", "0.6365212", "0.6334651", "0.63118905", "0.63095486", "0.62979776", "0.629049", "0.62786245", "0.62785566", "0.62564105", "0.6246107", "0.6233225", "0.6214227", "0.6214227", "0.6214227", "0.62077063", "0.6198708", "0.61982185", "0.6163502", "0.6158506", "0.61476105", "0.6139211", "0.6121025", "0.61209774", "0.61128485", "0.60804135", "0.6069281", "0.6065542", "0.6065542", "0.60602486", "0.6051667", "0.6024313", "0.6017056", "0.6003197", "0.59978426", "0.59978426", "0.59978426", "0.59978426", "0.59978426", "0.59978426", "0.59978426", "0.59978426", "0.59978426", "0.59978426", "0.5996769", "0.599405", "0.5976989", "0.5973491", "0.5960698", "0.5948865", "0.59445053", "0.5927353", "0.5908472", "0.59054327", "0.5902889", "0.5897189", "0.5896262", "0.588065", "0.5872415", "0.58443564", "0.58334404", "0.58311564", "0.5828917", "0.58277714", "0.5818125", "0.5809328", "0.58068305", "0.5779463", "0.5776137", "0.57711214", "0.576533", "0.57520765", "0.57470703", "0.5742052", "0.57327425", "0.5732592", "0.5715058", "0.57150024", "0.5714892", "0.5712951", "0.57082856", "0.57065165" ]
0.64183295
16
Retrieve values from specified option
public function items($optionId, $store = null) { /** @var $option Mage_Catalog_Model_Product_Option */ $option = $this->_prepareOption($optionId, $store); $productOptionValues = $option->getValuesCollection(); $result = array(); foreach($productOptionValues as $value){ $result[] = array( 'value_id' => $value->getId(), 'title' => $value->getTitle(), 'price' => $value->getPrice(), 'price_type' => $value->getPriceType(), 'sku' => $value->getSku(), 'sort_order' => $value->getSortOrder() ); } return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getOptionValues() {\t\t\n\t\t$optionvaluesquery = \"SELECT lv.lookuptypevalue as optiontext, lv.lookuptypevalue as optionvalue FROM lookuptype AS l , \n\t\tlookuptypevalue AS lv WHERE l.id = lv.lookuptypeid AND l.name ='\".$this->getName().\"' ORDER BY optiontext \";\n\t\treturn getOptionValuesFromDatabaseQuery($optionvaluesquery);\n\t}", "public function getOpt($option) {}", "function getOptions() ;", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function get( $option );", "abstract public function getOptions();", "function getOptions();", "public function getOptions() {}", "public function get(string $option);", "public function get(string $option);", "public function getOptions() {}", "public function getOptions() {}", "public function getOptions()\n {\n return $this->optionRequested->get();\n }", "public function getOptions($option = '')\n {\n if ($option == '') {\n\n return parent::$db->query(\n \"SELECT * FROM `\" . OPTIONS . \"`;\"\n );\n } else {\n\n return parent::$db->queryFetch(\n \"SELECT * \n FROM `\" . OPTIONS . \"` \n WHERE `option_name` = '\" . $option . \"';\"\n )['option_value'];\n }\n }", "protected static abstract function getOptions();", "function getOptions()\n\t{\n\t\t\n\t\treturn $this->getAssoc(Array('id','title')/*, $cond*/);\n\t}", "public function getOptions(): array;", "public function getOptions(): array;", "public function getOptions(): array;", "public function getOptions(): array;", "public function getOptions(): array;", "public function getOptions(): array;", "public function getOptions(): array;", "protected function getOptions() {}", "protected function getOptions() {}", "protected function getOptions() {}", "public function get() {\n\t\treturn $this->options->get( self::OPTION );\n\t}", "public function getOptions(){ return $this->option_map; }", "function _options_option($option) {\n global $db ;\n $data = null ;\n $req = $db->prepare(\"SELECT `data` FROM `_options` WHERE `option` = :option \") ;\n $req->execute(array(\n \"option\" => $option\n )) ;\n $data = $req->fetch() ;\n return (isset($data['data'])) ? $data['data'] : false ;\n}", "public function getOptions()\r\n {\r\n }", "function optionValues( )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n $return_array = array();\n $this->dbInit();\n \n $this->Database->array_query( $res_array, \"SELECT ID FROM eZTrade_OrderOptionValue\n WHERE\n OrderItemID='$this->ID'\n \" );\n\n foreach ( $res_array as $item )\n {\n $return_array[] = new eZOrderOptionValue( $item[\"ID\"] );\n }\n \n return $return_array; \n }", "function getOptionValuesFromQuery() {\t\t\n\t\t# get the query to execute\n\t\t$conn = Doctrine_Manager::connection(); \n\t\t$query = $conn->fetchRow(\"SELECT querystring FROM lookupquery WHERE name = '\".$this->getName().\"'\");\n\t\t# debugMessage($query); \n\t\tif (isEmptyString($query['querystring'])) {\n\t\t\treturn array(); \n\t\t} else {\n\t\t\treturn getOptionValuesFromDatabaseQuery($query['querystring']);\n\t\t}\n\t}", "public function value()\n {\n return $this->app->input->get('option');\n }", "function getOption($name);", "public function getOptionValues()\n {\n\n $values = $this->getData('option_values');\n if (is_null($values)) {\n\n $option_data = Mage::getResourceModel('joy_optionimage/attribute_option_image_collection')\n ->setAttributeFilter(Mage::registry('attribute_id'));\n $values = array();\n $option_data = Mage::getResourceModel('eav/entity_attribute_option_collection')\n ->setAttributeFilter(Mage::registry('attribute_id'))\n ->setPositionOrder('desc', true)\n ->toOptionArray();\n\n // restructure option_data\n $data = array();\n foreach($option_data as $v) {\n $data[] = $v['value'];\n }\n unset($option_data);\n $this->prepareAttributeOptionImageData($data);\n $helper = Mage::helper('core');\n foreach ($data as $v) {\n $value = array();\n $value['id'] = $v;\n $value['data'] = array();\n foreach ($this->getStores() as $store) {\n $optionImageData = $this->getOptionImageData($v,$store->getId());\n $storeValues = $this->getStoreOptionValues($store->getId());\n $value['data'][$store->getId()]['storecode'] = $store->getCode();\n $value['data'][$store->getId()]['image'] = isset($optionImageData['image']) ? $optionImageData['image'] : '' ;\n $value['data'][$store->getId()]['label'] = isset($storeValues[$v])\n ? $helper->escapeHtml($storeValues[$v]) : '';\n }\n $value['fieldset_id'] = $store->getId().\"-\".$v;\n\n $values[]= new Varien_Object($value);\n }\n $this->setData('option_values', $values);\n }\n return $values;\n }", "public function getValue() {\n \n $_aParams = func_get_args(); \n return AdminPageFramework_WPUtility::getOption( \n $this->oProp->sOptionKey, \n $_aParams, \n null, // default\n $this->getSavedOptions() + $this->oProp->getDefaultOptions( $this->oForm->aFields ) // additional array to merge with the options\n );\n \n }", "function get_options(){\n\t\treturn $this->options;\n\t}", "function getOptionValuesAndDescription($orderby = \"optiontext\") {\t\t\n\t\t$optionvaluesquery = \"SELECT lv.lookupvaluedescription as optiontext, lv.lookuptypevalue as optionvalue FROM lookuptype AS l , \n\t\tlookuptypevalue AS lv WHERE l.id = lv.lookuptypeid AND l.name ='\".$this->getName().\"' ORDER BY \".$orderby;\n\t\treturn getOptionValuesFromDatabaseQuery($optionvaluesquery);\n\t}", "public function getOptions()\n { return $this->get('options'); }", "public \tfunction\tretrieveOptions() {\n\t\t\t//For each option category.\n\t\t\tforeach($this -> options as $category => $k) {\n\t\t\t\t//For each option. \n\t\t\t\tforeach ($this -> options[$category] as $key => $value) {\n\t\t\t\t\t//Set the option. \n\t\t\t\t\t$this -> options[$category][$key]\t\t=\tget_option($key);\n\t\t\t\t\t\n\t\t\t\t\t//If the option is serialized.\n\t\t\t\t\tif (is_serialized($this -> options[$category][$key])) {\n\t\t\t\t\t\t//Unserialize the option.\n\t\t\t\t\t\t$this -> options[$category][$key]\t=\t \n\t\t\t\t\t\tunserialize($this -> options[$category][$key]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public function getOptions() : array;", "public function wp_get_info(string $option = 'siteurl'){\n\n\t $bdd = Bdd::getInstance();\n\n\t\t$req = $bdd->dbh->prepare('SELECT option_value FROM '.$this->_table_prefix.'options WHERE option_name = \"' . $option . '\";');\n\t\t$req->execute();\n\n\t\treturn $req->fetch();\n\t}", "function load_option()\n {\n $op = array();\n \t// $query = $this->db->get('option');\n $query = $this->db->query('SELECT `var`,`value` FROM `option`');\n foreach ( $query->result_array() as $o )\n {\n \t$op[$o['var']] = $o['value'];\n }\n \n return $op;\n \n }", "public function getDefinedOptions();", "public static function get_option_setting()\n\t\t{ \n\t\t\t\tglobal $wpdb;\n\t\t\t\t\n\t\t\t\t$opt_list = $wpdb->get_results( \"SELECT * FROM \".$wpdb->prefix.self::$table_name_settings);\n\t\t\t\t\n\t\t\t\t$option =array();\n\t\t\t\t\n\t\t\t\tif(!empty($opt_list)){\n\t\t\t\t\t\n\t\t\t\t\tforeach($opt_list as $key => $val){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$option[] = $val->rs_lang;\n\t\t\t\t\t\t\t$option[] = $val->rs_type;\t\t\t\t\t\n\t\t\t\t\t\t\t$option[] = $val->rs_postid;\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn $option;\n\t\t\t\t\n\t\t}", "public function option()\n\t{\n\t\treturn [];\n\t}", "public function get_options()\n {\n }", "function get_data_request_options()\r\n{\r\n\t//kijk wat het abstractie niveau is van de huidige opties\r\n\t$current_abstraction_level_query = 'select option_type from Requestable_data where option_name == \":current_selected_option\"';\r\n\t$current_abstraction_level = execute_sql_extract_data($current_abstraction_level_query);\r\n\t\r\n\t//haal de opties maar op uit de DB\r\n\t$requestable_data_descriptions = 'select option_name from Requestable_data where option_type = ' . $current_abstraction_level;\r\n\texecute_sql_extract_data($requestable_data_descriptions);\r\n}", "public function getProductOption();", "protected function get_options()\n\t{}", "function get_settings($option)\n {\n }", "public function get_stLight_options($data_options);", "#[Pure]\n public function getOptions() {}", "protected function get()\n {\n return get_option($this->hash);\n }", "public function getOptions()\n\t{\n\t\t$options = get_option($this->optionVar);\n\t\tif($options) {\n\t\t\t$this->options = unserialize($options);\n\t\t} else {\n\t\t\t$this->options = [];\n\t\t}\n\t}", "public function getOption($name);", "public function getOption($name);", "public function getOption($name);", "public function getOption($key);", "function mdl_opt($_opt, $_slc=false){\r\n\t\r\n\t$ci =& get_instance();\r\n\t\r\n\t$ci->load->model('foo/foo_m');\r\n\t\r\n\t$_ = $ci->foo_m->__select('mdl_options', 'OPT_VAL val', ['OPT'=>$_opt], false);\r\n\r\n\tif($_slc){\r\n\t\r\n\t\t$_j = json_decode($_->val, true);\r\n\t\r\n\t\treturn $_j[$_slc];\r\n\r\n\t} else return $_->val;\r\n}", "function _get( $option_key ) {\n\t\treturn bf_get_option( $option_key, $this->option_panel_id );\n\t}", "public function options($key){\n\t\t$vars = get_object_vars($this);\n\t\treturn $vars[$key];\n\t}", "public function getOptions()\n {\n return $this->where(array('is_del' => array('neq', -1)))->getField('id, name');\n }", "public function getOptions(){\n return $this->options;\n }", "function get_value_options() {\r\n\t\t$sql_string = \"\";\r\n\t\tglobal $user;\r\n\t\t\r\n\t\tif( user_is_logged_in() ) {\r\n\t\t\t\r\n\t\t\tif( in_array('super user', $user->roles) ) {\r\n\t\t\t\t$sql_string = \" \";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t$user_obj = user_load($user->uid);\r\n\t\t\t\t$franchise_nid = $user_obj->field_user_franchise['und'][0]['nid']; \r\n\t\t\t\t$user_obj = user_load($user->uid); \r\n\t\t\t\t$user_franchise_nid = $user_obj->field_user_franchise['und'][0]['nid'];\r\n\t\t\t\t$sql_string = \" AND fr.field_user_franchise_nid = '\" .$user_franchise_nid. \"'\";\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t$query = \"SELECT DISTINCT fr.entity_id, usr.name \r\n\t\tFROM {field_data_field_user_franchise} fr, {users_roles} ur, {node} n, {users} usr \r\n\t\tWHERE (fr.entity_id = ur.uid AND ur.rid != '7') \r\n\t\tAND fr.entity_id = n.uid AND fr.entity_id = usr.uid AND n.type = 'shipment' \" .$sql_string. \"\";\r\n\t\t\r\n\t\t$res = db_query($query); \r\n\r\n\t\tforeach ( $res as $user_value ) {\r\n\t\t\t$users[$user_value->entity_id] = $user_value->name;\r\n\t\t}\r\n // We don't need Guest user here, so remove it.\r\n unset($users[0]);\r\n\t\t// Sort by username.\r\n natsort($users);\r\n\r\n $this->value_options = $users;\r\n\r\n return $users;\r\n }", "public function getOptions()\n {\n return $this->where(array('is_del' => array('neq', 1)))->getField('id, name');\n }", "protected function CatalogOptionsList() {\n\treturn $this->GetFieldValue('ItOptions');\n }", "private function get_option() {\n\t\t$default = [\n\t\t\tself::STATUS => self::NOT_FETCHED,\n\t\t\tself::LAST_FETCH => 0,\n\t\t];\n\n\t\treturn get_option( self::OPTION_NAME, $default );\n\t}", "private static function getOption()\n {\n return array_merge(\n array_flip(['application_id', 'api_key', 'index_name']),\n array_filter((array) get_option('algolia_index'))\n );\n }", "function getData($options) \n {\n }", "public function getOption()\n {\n return $this->option;\n }", "public function getOption()\n {\n return $this->option;\n }", "public function getOptionList()\n {\n return Mage::helper('bundle/catalog_product_configuration')->getOptions($this->getItem());\n }", "public function get( $option ) {\n\t\treturn $this->options->get( $option );\n\t}", "function get_attribute_options_values_by_option($zf_product_id, $options_id) {\n\t\tglobal $db;\n\t\t$query = 'SELECT attr.products_attributes_id, attr.products_id, attr.options_id, val.products_options_values_name ' .\n\t\t\t'FROM ' . TABLE_PRODUCTS_ATTRIBUTES . ' AS attr ' .\n\t\t\t'LEFT JOIN ' . TABLE_PRODUCTS_OPTIONS .\n\t\t\t\t' AS opt ON attr.options_id = opt.products_options_id ' .\n\t\t\t'LEFT JOIN ' . TABLE_PRODUCTS_OPTIONS_VALUES .\n\t\t\t\t' AS val ON attr.options_values_id = val.products_options_values_id ' .\n\t\t\t'WHERE attr.options_id = \\'' . (int)$options_id . '\\' ' .\n\t\t\t\t'AND attr.products_id = \\'' . (int)$zf_product_id . '\\' ' .\n\t\t\t\t'AND val.language_id = \\'' . (int)$_SESSION['languages_id'] . '\\' ' .\n\t\t\t'ORDER BY `opt`.`products_options_sort_order`, `attr`.`options_id`';\n\n\t\tif($this->cache_time == 0) $queryResult = $db->Execute($query);\n\t\telse $queryResult = $db->Execute($query, false, true, $this->cache_time);\n\n\t\t$retval = array();\n\t\twhile (!$queryResult->EOF) {\n\t\t\t$retval[$queryResult->fields['products_attributes_id']] = array(\n\t\t\t\t'id' => $queryResult->fields['options_id'],\n\t\t\t\t'value' => $queryResult->fields['products_options_values_name']\n\t\t\t);\n\t\t\t$queryResult->MoveNext();\n\t\t}\n\t\treturn $retval;\n\t}", "public function getOptionValuesForRender()\n\t{\n\t\treturn $this->_elementValues;\n\t}", "public function get_value() {\n return $this->get_selected_options();\n }", "public final function getOptions() { return $this->_options; }", "public function getOption() {\n return $this->get(self::OPTION);\n }", "public function getOption(string $name);", "public function getOption(string $name);", "public function optionAction() \n {\n $result = array();\n \n $productIdOrSku = $this->getRequest()->getParam('product');\n $attributeOptionId = $this->getRequest()->getParam('id');\n\n try {\n \n $model = $this->getModel();\n $model->loadOptions($productIdOrSku, $attributeOptionId);\n $options = $model->getApiOptions(); \n \n $result = $options;\n \n \n } catch (Exception $e) {\n \n $result['error'] = true;\n $result['data'] = $e->getMessage();\n } \n \n $this->getResponse()->clearHeaders()->setHeader('Content-type','application/json',true)->setBody(Mage::helper('core')->jsonEncode($result));\n \n }", "public static function get_current_options(){\n\t\t\t\n\t\t\tglobal $wpdb;\n\t\t\t\t\t\t\t\n\t\t\t$settings = $wpdb->get_results(\"SELECT * FROM \".$wpdb->prefix.self::$table_name_settings); \n\t\t\t\n\t\t\t$arr_opt = array();\n\t\t\tif(!empty($settings)){\n\t\t\t\t\tforeach($settings as $key => $val){\n\t\t\t\t\t\t$arr_opt[] = $val->rs_postid;\n\t\t\t\t\t\t$arr_opt[] = $val->rs_lang;\n\t\t\t\t\t\t$arr_opt[] = $val->rs_posttype;\n\t\t\t\t\t\t$arr_opt[] = $val->rs_type;\n\t\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t\t\t$arr_opt[] = null;\n\t\t\t\t\t\t$arr_opt[] = null;\n\t\t\t\t\t\t$arr_opt[] = null;\n\t\t\t\t\t\t$arr_opt[] = null;\n\t\t\t}\n\t\t\t\n\t\t\treturn $arr_opt;\n\t\n\t\t}", "public function findAllOptions();", "public function get($option){\n return $this->db->get_where(\"admin\", $option)->row();\n }", "protected function getOptions()\n\t{\n\t\treturn [\n\t\t\t\n\t\t];\n\t}" ]
[ "0.751754", "0.74875134", "0.7439558", "0.7272546", "0.7272546", "0.7272546", "0.7272546", "0.7272546", "0.7272546", "0.7272546", "0.7272546", "0.7272546", "0.7272546", "0.7272546", "0.7272546", "0.7272546", "0.7272546", "0.7272546", "0.7272546", "0.7166026", "0.7132512", "0.710374", "0.70165753", "0.7015648", "0.7015648", "0.7015362", "0.7015362", "0.69236934", "0.68842435", "0.6824293", "0.67838585", "0.67753845", "0.67753845", "0.67753845", "0.67753845", "0.67753845", "0.67753845", "0.67753845", "0.6767157", "0.6767157", "0.6764623", "0.6709157", "0.67028975", "0.6693209", "0.6595431", "0.6582955", "0.6582765", "0.65803814", "0.6558983", "0.6553809", "0.65433365", "0.65363836", "0.652094", "0.65134704", "0.6509889", "0.64821506", "0.6448742", "0.644599", "0.644108", "0.6426832", "0.6370134", "0.6337381", "0.63242006", "0.63237107", "0.631243", "0.6309863", "0.62954515", "0.6284518", "0.62734985", "0.627211", "0.6253512", "0.6253512", "0.6253512", "0.62454695", "0.6234524", "0.6232836", "0.6228986", "0.62076336", "0.6206237", "0.62018603", "0.6197764", "0.61934304", "0.6188945", "0.6169628", "0.6166623", "0.6156021", "0.6156021", "0.6155745", "0.6151722", "0.6114514", "0.6094354", "0.6090697", "0.6084177", "0.6073806", "0.60619885", "0.60619885", "0.60448927", "0.60441005", "0.6022509", "0.6019216", "0.6011388" ]
0.0
-1
Retrieve specified option value info
public function info($valueId, $store = null) { /** @var $productOptionValue Mage_Catalog_Model_Product_Option_Value */ $productOptionValue = Mage::getModel('catalog/product_option_value')->load($valueId); if (!$productOptionValue->getId()) { $this->_fault('value_not_exists'); } $storeId = $this->_getStoreId($store); $productOptionValues = $productOptionValue ->getValuesByOption( array($valueId), $productOptionValue->getOptionId(), $storeId ) ->addTitleToResult($storeId) ->addPriceToResult($storeId); $result = $productOptionValues->toArray(); // reset can be used as the only item is expected $result = reset($result['items']); if (empty($result)) { $this->_fault('value_not_exists'); } // map option_type_id to value_id $result['value_id'] = $result['option_type_id']; unset($result['option_type_id']); return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOpt($option) {}", "public function get() {\n\t\treturn $this->options->get( self::OPTION );\n\t}", "public function value()\n {\n return $this->app->input->get('option');\n }", "public function wp_get_info(string $option = 'siteurl'){\n\n\t $bdd = Bdd::getInstance();\n\n\t\t$req = $bdd->dbh->prepare('SELECT option_value FROM '.$this->_table_prefix.'options WHERE option_name = \"' . $option . '\";');\n\t\t$req->execute();\n\n\t\treturn $req->fetch();\n\t}", "public function get( $option );", "public function get(string $option);", "public function get(string $option);", "function getOption($name);", "public function getValue() {\n \n $_aParams = func_get_args(); \n return AdminPageFramework_WPUtility::getOption( \n $this->oProp->sOptionKey, \n $_aParams, \n null, // default\n $this->getSavedOptions() + $this->oProp->getDefaultOptions( $this->oForm->aFields ) // additional array to merge with the options\n );\n \n }", "public function getOption() {\n return $this->get(self::OPTION);\n }", "public function getOption()\n {\n return $this->option;\n }", "public function getOption()\n {\n return $this->option;\n }", "private function get_option() {\n\t\t$default = [\n\t\t\tself::STATUS => self::NOT_FETCHED,\n\t\t\tself::LAST_FETCH => 0,\n\t\t];\n\n\t\treturn get_option( self::OPTION_NAME, $default );\n\t}", "public function getOption($name);", "public function getOption($name);", "public function getOption($name);", "public function getOptionElement($value){\n\t\treturn $this->options[$value];\n\t}", "protected function get()\n {\n return get_option($this->hash);\n }", "function getOptions() ;", "public function getOption(int $key)\n {\n return curl_getinfo($this->curl, $key);\n }", "public function getOption($key);", "public function getOption(string $name);", "public function getOption(string $name);", "public function getOption() {\n\t\treturn $this->_option;\n\t}", "function _options_option($option) {\n global $db ;\n $data = null ;\n $req = $db->prepare(\"SELECT `data` FROM `_options` WHERE `option` = :option \") ;\n $req->execute(array(\n \"option\" => $option\n )) ;\n $data = $req->fetch() ;\n return (isset($data['data'])) ? $data['data'] : false ;\n}", "function _get( $option_key ) {\n\t\treturn bf_get_option( $option_key, $this->option_panel_id );\n\t}", "function getOptionValues() {\t\t\n\t\t$optionvaluesquery = \"SELECT lv.lookuptypevalue as optiontext, lv.lookuptypevalue as optionvalue FROM lookuptype AS l , \n\t\tlookuptypevalue AS lv WHERE l.id = lv.lookuptypeid AND l.name ='\".$this->getName().\"' ORDER BY optiontext \";\n\t\treturn getOptionValuesFromDatabaseQuery($optionvaluesquery);\n\t}", "function getOptions();", "function get_option() {\n\t\t\tcheck_ajax_referer('ajax-nonce', 'nonce');\n\t\t\tif (!empty($_POST['option'])) {\n\t\t\t\tswitch ($_POST['option']) {\n\t\t\t\t\tcase 'blogname':\n\t\t\t\t\t\techo preg_replace_callback(\"/(&#[0-9]+;)/\", array($this, 'decode_entities'), html_entity_decode(get_bloginfo('name')));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'blogdescription':\n\t\t\t\t\t\techo preg_replace_callback(\"/(&#[0-9]+;)/\", array($this, 'decode_entities'), html_entity_decode(get_bloginfo('description')));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\techo get_option($_POST['option']);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\techo 'notfound';\n\t\t\t}\n\t\t\tdie;\n\t\t}", "abstract public function getOptions();", "public function getProductOption();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function get_value() {\n return $this->get_selected_options();\n }", "function get_the_option( $key ) {\n return genesis_get_option( $key, GENESIS_SIMPLE_SETTINGS_FIELD );\n }", "public function option()\n {\n return $this->optionRequested;\n }", "function EV_get_option( $key = '' ) {\n\treturn cmb2_get_option( EV_admin()->key, $key );\n}", "public function getOptions() {}", "public function getOptions() {}", "public function getOptions() {}", "protected static abstract function getOptions();", "function acapi_get_option($name) {\n // Make sure $name is an acapi option.\n $options = acapi_common_options();\n if (!isset($options[$name])) {\n return drush_set_error('ACAPI_UNKNOWN_OPTION', dt('Unknown ac-api option @name.', array('@name' => $name)));\n }\n\n // If the user specified --$name=<value> on the command line, return <value>.\n $value = drush_get_option($name, NULL);\n if (isset($value)) {\n return $value;\n }\n\n // If the ac-config file sets $name, return the value.\n $values = acapi_load_options($name);\n if (isset($values[$name])) {\n return $values[$name];\n }\n\n // If $name has a default value, return it.\n if (!empty($options[$name]['default_value'])) {\n return $options[$name]['default_value'];\n }\n\n // No specified value, no default, return NULL.\n return;\n}", "public function option($key)\n {\n return $this->options[$key];\n }", "public function get() {\n\t\treturn (bool) $this->user_options->get( static::OPTION );\n\t}", "function bf_get_option($name) {\r\n\tglobal $bf_options;\r\n\t\r\n\tif (!is_object($bf_options) )\r\n\t\tbf_flush_options();\r\n\t\r\n\treturn $bf_options->$name;\r\n}", "function it_option($option){\n\techo get_it_option($option);\n}", "protected function getOptions() {}", "protected function getOptions() {}", "protected function getOptions() {}", "function get_settings($option)\n {\n }", "public function get( $option ) {\n\t\treturn $this->options->get( $option );\n\t}", "function get_option($option_key) {\n if (!isset($result)) {\n $result = get_option($option_key);\n }\n\n return $result;\n }", "function get_option($name) {\n $setting = Setting::where('name', $name)->first();\n if(!$setting) {\n return \"\";\n }\n return $setting->value;\n}", "public function get_setting() {\n // $this->db->where('option_name', $opname);\n \n $query = $this->db->get('t_pref');\n return $query->row();\n }", "private function getOptionValue($form_field_list, $field_name, $option_value){\r\n \t\t\r\n \t\tforeach ($form_field_list as $form_row){\r\n \t\t\t\r\n \t\t\tif ($form_row['name'] == $field_name){\r\n \t\t\t\t\r\n \t\t\t\t$options = explode('::', $form_row['options']);\r\n \t\t\t\tarray_unshift($options, 0);\r\n \t\t\t\tunset($options[0]);\r\n \t\t\t\t\r\n \t\t\t\tif (@$options[$option_value])\r\n \t\t\t\t\treturn $options[$option_value];\r\n \t\t\t}\r\n \t\t\t\r\n \t\t} // foreach ($form_field_list as $form_row){\r\n \t\t\r\n \t}", "function get_field_value($id){\n\t\treturn stripslashes(get_option( $id )); \n\t}", "public function getSiteOption($optionName){\n\t\ttry{\t\t\n\t\t\t$stmt = $this->db->prepare(\"SELECT optionValue FROM site_options WHERE optionName = :optionName\");\n\t\t\t$stmt->execute(array(':optionName'=>$optionName));\n\t\t\t$val=$stmt->fetch(PDO::FETCH_ASSOC);\n\t\t\treturn $val['optionValue'];\t\t\t\n\t\t} catch(PDOException $e) {\n echo $e->getMessage();\n } \n }", "function __get_option($setting)\n {\n }", "public function get_info($option = 0)\n {\n return curl_getinfo($this->ch, $option); \n }", "function getOption ( $key, $option )\n\t{\n\t\tif ( isset( $this->options[$option][$key] ) ) {\n\t\t\t$return = $this->options[$option][$key]; // From Admin Page\n\t\t} else {\n\t\t\t$return = $this->default_options[$option][$key]; // Default\n\t\t}\n\t\treturn ($return);\n\t}", "function mdl_opt($_opt, $_slc=false){\r\n\t\r\n\t$ci =& get_instance();\r\n\t\r\n\t$ci->load->model('foo/foo_m');\r\n\t\r\n\t$_ = $ci->foo_m->__select('mdl_options', 'OPT_VAL val', ['OPT'=>$_opt], false);\r\n\r\n\tif($_slc){\r\n\t\r\n\t\t$_j = json_decode($_->val, true);\r\n\t\r\n\t\treturn $_j[$_slc];\r\n\r\n\t} else return $_->val;\r\n}", "function getOptionValuesAndDescription($orderby = \"optiontext\") {\t\t\n\t\t$optionvaluesquery = \"SELECT lv.lookupvaluedescription as optiontext, lv.lookuptypevalue as optionvalue FROM lookuptype AS l , \n\t\tlookuptypevalue AS lv WHERE l.id = lv.lookuptypeid AND l.name ='\".$this->getName().\"' ORDER BY \".$orderby;\n\t\treturn getOptionValuesFromDatabaseQuery($optionvaluesquery);\n\t}", "protected function get_option_name()\n {\n }", "function get_option( $option = false ) {\n\t\t\t\t// Get options from database\n\t\t\t\t$options = get_option( $this->option );\n\t\t\t\t// Check option is specified\n\t\t\t\t$value = ( $option ) ? $options[$option] : $options;\n\t\t\t\t// Return result\n\t\t\t\treturn ( is_array( $value ) ) ? array_filter( $value, 'esc_attr' ) : esc_attr( stripslashes( $value ) );\n\t\t\t}", "function get_option($option_name, $default_value = false)\n{\n if (!is_string($option_name)) {\n // Option name must be string\n return $default_value;\n }\n\n $opt = \\Controller::model(\"Option\", $option_name);\n if (!$opt->isAvailable()) {\n return $default_value;\n }\n\n // Return the value\n return $opt->get(\"option_value\");\n}", "function cpo_get_option( $option_name = '', $option_array = 'ctct_settings' ) {\n\t//Determines whether to grab current language, or original language's option\n\t$option_list_name = $option_array;\n\t$option_list = get_option( $option_list_name, false );\n\tif ( $option_list && isset( $option_list[ $option_name ] ) ) {\n\t\t$option_value = $option_list[ $option_name ];\n\t} else {\n\t\t$option_value = false;\n\t}\n\n\treturn $option_value;\n}", "function getValue($setting)\n\t\t{\n\t\t\t// lookup the value in the array \n\t\t\tif (isset($this->options[$setting]))\n\t\t\t{\n\t\t\t\t// return its value, if set\n\t\t\t\treturn $this->options[$setting];\n\t\t\t}\n\t\t\t\n\t\t\t// default to NULL\n\t\t\treturn NULL;\n\t\t}", "function ubercontent_get_options($field) {\n\treturn _options_get_options(field_info_field($field), NULL, NULL, NULL, NULL);\n}", "public function getSomeOption() {}", "public function getValue() {\n\t\ttry {\n\t\t\t$value\t= parent::getValue();\n\t\t\tif (strlen($value) > 0) {\n\t\t\t\tif (!array_key_exists((string)$value, (array)$this->getOptions())) {\n\t\t\t\t\tthrow new LBoxExceptionFormControl(\"$value: \". LBoxExceptionFormControl::MSG_FORM_CONTROL_VALUE_NOT_OPTION, LBoxExceptionFormControl::CODE_FORM_CONTROL_VALUE_NOT_OPTION);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $value;\n\t\t}\n\t\tcatch (Exception $e) {\n\t\t\tthrow $e;\n\t\t}\n\t}", "function startup_get_option( $key = '' ) {\n\treturn cmb2_get_option( startup_admin()->key, $key );\n}", "public function getOptions()\r\n {\r\n }", "private function getSurveyOptionValue($survey_id, $field_name, $option_value){\r\n \t\t\r\n \t\t/**\r\n \t\t * get survey data\r\n \t\t */\r\n \t\t$survey_data = $this->db_model->getSurveyData($survey_id);\r\n \t\t\r\n \t\tforeach ($survey_data as $row){\r\n \t\t\t\r\n \t\t\t$options = explode('::', $row['options']);\r\n \t\t\tarray_unshift($options, 0);\r\n \t\t\tunset($options[0]);\r\n \t\t\t\r\n \t\t\tif ($row['type'] == 'radio'){\r\n \t\t\t\t\r\n \t\t\t\tif (@$options[$option_value])\r\n \t\t\t\t\treturn $options[$option_value];\r\n \t\t\t\t\t\r\n \t\t\t}elseif ($row['type'] == 'checkbox'){\r\n \t\t\t\t\r\n \t\t\t\t$option_expl = explode('::', $option_value);\r\n \t\t\t\t\t\t\r\n\t\t \t\t$value = array();\r\n\t\t \t\tforeach ($option_expl as $row)\r\n\t\t \t\t\t$value[] = @$options[$row];\t\t\t\t\r\n \t\t\t\t\r\n\t\t \t\tif ($value)\r\n\t\t \t\t\treturn join(',', $value);\r\n\t\t \t\t\t\r\n \t\t\t} // if ($survey_data['type'] == 'radio'){\r\n \t\t\t\r\n \t\t} // foreach ($survey_data as $row){\r\n \t\t\r\n \t}", "public function getOptions()\n {\n return $this->optionRequested->get();\n }", "public function get_value($option_key)\r\n {\r\n return get_option($option_key, '');\r\n }", "function get_options(){\n\t\treturn $this->options;\n\t}", "public function getOptionValue($option, $taskName = NULL) {\n list($source, $value) = $this->getOption($option, $taskName);\n return $value;\n }", "function getOptions()\n\t{\n\t\t\n\t\treturn $this->getAssoc(Array('id','title')/*, $cond*/);\n\t}", "final protected function getOption($option) {\n return isset($this->valueOptions[$option]) ? $this->valueOptions[$option] : null;\n }", "function the_option( $key ) {\n\n if ( ! $this->get_the_option( $key ) )\n return false;\n\n echo $this->get_the_option( $key );\n }", "public function getOption($key)\n\t{\n\t\treturn $this->options->get($key);\n\t}", "function PKG_OptionPageGetValue($variable,$params)\n{\n\tif (isset($_GET[$variable]))\n\t\treturn($_GET[$variable]);\n\telse\n\t\treturn($params[$variable]);\n}", "public function options($key=null,$value=null){\n return $this->methodsData(\"options\",$key,$value);\n }", "public function get_option( WP_REST_Request $request ) {\n\t\treturn $this->get_property( $request );\n\t}", "function acapi_get_option_file() {\n $defaults = acapi_common_options();\n return drush_get_option('ac-config', $defaults['ac-config']['default_value']);\n}", "function bb_print_mystique_option( $option ) {\r\n\techo bb_get_mystique_option( $option );\r\n}", "public function get_options()\n {\n }" ]
[ "0.7716748", "0.731162", "0.7273648", "0.72292364", "0.7208386", "0.71108377", "0.71108377", "0.7110034", "0.7021525", "0.7015667", "0.697986", "0.697986", "0.6831244", "0.68294716", "0.68294716", "0.68294716", "0.6823253", "0.6820788", "0.6782126", "0.67671984", "0.6754856", "0.66856366", "0.66856366", "0.6682933", "0.6650261", "0.6648993", "0.66052616", "0.65856373", "0.65268576", "0.65190536", "0.64986885", "0.64949405", "0.64949405", "0.64949405", "0.64949405", "0.64949405", "0.64949405", "0.64949405", "0.64949405", "0.64949405", "0.64949405", "0.64949405", "0.64949405", "0.64949405", "0.64949405", "0.64949405", "0.64949405", "0.64709216", "0.6438069", "0.6427578", "0.6416971", "0.64096737", "0.64096737", "0.64094156", "0.6388432", "0.6374482", "0.63614064", "0.63542366", "0.63429326", "0.633085", "0.63118607", "0.63118607", "0.63089484", "0.630394", "0.6299691", "0.6295291", "0.62668365", "0.62503564", "0.6249472", "0.6248926", "0.6214084", "0.6211319", "0.6206738", "0.61996746", "0.6199652", "0.6192334", "0.61868083", "0.6178365", "0.61689806", "0.61561185", "0.61441356", "0.61326814", "0.61289865", "0.6126182", "0.61010814", "0.61004186", "0.6097309", "0.6095543", "0.60699886", "0.60687125", "0.606559", "0.6061958", "0.6050811", "0.6039372", "0.60365856", "0.60357475", "0.6035303", "0.6031232", "0.6026472", "0.6026178", "0.6022427" ]
0.0
-1
Add new values to select option
public function add($optionId, $data, $store = null) { /** @var $option Mage_Catalog_Model_Product_Option */ $option = $this->_prepareOption($optionId, $store); /** @var $optionValueModel Mage_Catalog_Model_Product_Option_Value */ $optionValueModel = Mage::getModel('catalog/product_option_value'); $optionValueModel->setOption($option); foreach ($data as &$optionValue) { foreach ($optionValue as &$value) { $value = Mage::helper('catalog')->stripTags($value); } } $optionValueModel->setValues($data); try { $optionValueModel->saveValues(); } catch (Exception $e) { $this->_fault('add_option_value_error', $e->getMessage()); } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _update_selected_values() {\n\t\t$this->selected = Array();\n\t\tforeach ($this->options as $value => $label) {\n\t\t\tif (isset($_POST[$this->name().'_'.$value])) {\n\t\t\t\t$this->selected [$this->name().'_'.$value] = true;\n\t\t\t}\n\t\t}\n\t}", "protected function adjustOptionsValues()\n {\n $this->init();\n $this->create();\n }", "public function select_values_for_form( EntryValueSelect $entry_value_select );", "public function addData($data) {\n foreach ($data as $value) {\n $this->add(new Option($value));\n }\n }", "function montar_select_perfilPaciente(&$select_perfis, $objPerfilPaciente, $objPerfilPacienteRN, &$objPaciente) {\n $selected = '';\n $arr_perfis = $objPerfilPacienteRN->listar($objPerfilPaciente);\n\n $select_perfis = '<select class=\"form-control selectpicker\" onchange=\"val()\" id=\"select-country idSel_perfil\"'\n . ' data-live-search=\"true\" name=\"sel_perfil\">'\n . '<option data-tokens=\"\" ></option>';\n\n foreach ($arr_perfis as $perfil) {\n $selected = '';\n if ($perfil->getIdPerfilPaciente() == $objPaciente->getIdPerfilPaciente_fk()) {\n $selected = 'selected';\n }\n\n $select_perfis .= '<option ' . $selected . ' value=\"' . $perfil->getIdPerfilPaciente() . '\" data-tokens=\"' . $perfil->getPerfil() . '\">' . $perfil->getPerfil() . '</option>';\n }\n $select_perfis .= '</select>';\n}", "function montar_select_sexo(&$select_sexos, $objSexoPaciente, $objSexoPacienteRN, &$objPaciente) {\n $selected = '';\n $arr_sexos = $objSexoPacienteRN->listar($objSexoPaciente);\n\n $select_sexos = '<select onfocus=\"this.selectedIndex=0;\" onchange=\"val_sexo()\" '\n . 'class=\"form-control selectpicker\" id=\"select-country idSexo\" data-live-search=\"true\" '\n . 'name=\"sel_sexo\">'\n . '<option data-tokens=\"\"></option>';\n\n foreach ($arr_sexos as $sexo) {\n $selected = '';\n if ($sexo->getIdSexo() == $objPaciente->getIdSexo_fk()) {\n $selected = 'selected';\n }\n $select_sexos .= '<option ' . $selected . ' value=\"' . $sexo->getIdSexo() . '\" data-tokens=\"' . $sexo->getSexo() . '\">' . $sexo->getSexo() . '</option>';\n }\n $select_sexos .= '</select>';\n}", "public function set_location_select_options() {\n\t\t\t$this->locations_select_options[] = '<option value=\"\">' . esc_html__( 'Select a location', 'yoast-local-seo' ) . '--</option>';\n\t\t\tif ( ! empty( $this->locations ) ) {\n\t\t\t\t$this->locations_select_options['all'] = '<option value=\"all\">' . esc_html__( 'All locations', 'yoast-local-seo' ) . '</option>';\n\n\t\t\t\tforeach ( $this->locations as $location_id ) {\n\t\t\t\t\t$this->locations_select_options[ $location_id ] = '<option value=\"' . esc_attr( $location_id ) . '\">' . esc_html( get_the_title( $location_id ) ) . '</option>';\n\t\t\t\t}\n\t\t\t}\n\t\t}", "function add(){\n global $wpdb;\n global $DOPBSP;\n \n $field_id = $_POST['field_id'];\n $position = $_POST['position'];\n $language = $_POST['language'];\n \n $wpdb->insert($DOPBSP->tables->forms_fields_options, array('field_id' => $field_id,\n 'position' => $position,\n 'translation' => $DOPBSP->classes->translation->encodeJSON('FORMS_FORM_FIELD_SELECT_ADD_OPTION_LABEL')));\n $id = $wpdb->insert_id;\n $select_option = $wpdb->get_row($wpdb->prepare('SELECT * FROM '.$DOPBSP->tables->forms_fields_options.' WHERE id=%d',\n $id));\n \n $DOPBSP->views->backend_form_field_select_option->template(array('select_option' => $select_option,\n 'language' => $language));\n \n die();\n }", "private function addValueToSelectedItems($value){\n if(strlen($value) > 0) {\n $this->selectedItems[] = $value;\n }\n }", "private function setCountriesFromDB()\n {\n /** @var Country $item */\n foreach (app(Languages::class)->all() as $item) {\n $this->valueOptions[] = new Option($item->id, $item->name, ['data-country' => $item->code]);\n }\n }", "function add_option_without_languages($value,$text,$selected=false)\r\n\t{\r\n\t\t$options_field = array(\"value\"=>$value, \"text\"=>$text, \"selected\"=> $selected);\r\n\t\tarray_push($this->m_array_options,$options_field);\r\n\t}", "function add_allowed_options($new_options, $options = '')\n {\n }", "public function getNewChildSelectOptions()\n {\n return array('value' => $this->getType(),\n 'label' => Mage::helper('bronto_reminder')->__('SKU'));\n }", "public function insertOption($data);", "public function AddCategorieToSelect($data){\n \n for ($i = 0; $i < sizeof($data); $i++) {\n $this->categorie_select->addMultiOption($data[$i]['Nome'], $data[$i]['Nome']);\n }\n\n }", "function _options_push($option , $new_data, $group = null) {\n \n // si existe lo pone al dia\n if(_options_exist($option)){\n //echo \"$option \" ;\n _options_update($option , $new_data);\n \n \n }else{ // si no lo crea\n _options_add($option, $new_data, $group);\n\n }\n \n}", "function setValue($value) {\n $values = (array) $value;\n foreach ($values as $onevalue) {\n if (($this->tags || $this->ajax) &&\n (!$this->optionExists($onevalue)) &&\n ($onevalue !== '_qf__force_multiselect_submission')) {\n $this->addOption($onevalue, $onevalue);\n }\n }\n return parent::setValue($value);\n }", "final protected function addOption($option) {\n $this->selectedOptions[$option] = 1;\n }", "public function addOption($name, $id, $label, $value){\n if(empty($this->items[$name]))\n return;\n if(!empty($this->items[$name]['options'][$id]))\n return;\n $this->items[$name]['options'][$id]['id']=$id;\n $this->items[$name]['options'][$id]['label']=$label;\n $this->items[$name]['options'][$id]['value']=$value;\n }", "protected function createUserAndGroupListForSelectOptions() {}", "function wppb_save_multiple_select_value( $field, $user_id, $request_data, $form_location ){\r\n\tif( $field['field'] == 'Select (Multiple)' ){\r\n\t\t$selected_values = wppb_process_multipl_select_value( $field, $request_data );\r\n\t\tupdate_user_meta( $user_id, $field['meta-name'], trim( $selected_values, ',' ) );\r\n\t}\r\n}", "function caldol_add_options_members_filter(){\n\techo '<option value=\"TomChoice\">doggie</option>';\n\t\t\n}", "function awm_select_options()\n {\n return array(\n 'options' => array(\n 'label' => __('Options', 'extend-wp'),\n 'case' => 'repeater',\n 'include' => array(\n 'option' => array(\n 'label' => __('Value', 'extend-wp'),\n 'case' => 'input',\n 'type' => 'text',\n ),\n 'label' => array(\n 'label' => __('Label', 'extend-wp'),\n 'case' => 'input',\n 'type' => 'text',\n ),\n ),\n ),\n );\n }", "public function AddCategorieToSelect($data)\n {\n for ($i = 0; $i < sizeof($data); $i++) {\n $this->categorie_select->addMultiOption($data[$i]['id_categoria'], $data[$i]['nome']);\n }\n }", "public function updateOptionsWithPost() {\n if (isset($_POST[$this->selectedProviderOptName])) {\n $selected = (string)$_POST[$this->selectedProviderOptName];\n $this->setSelectedProvider($selected);\n }\n if (isset($_POST[$this->updateUrlOverrideOptName])) {\n $url = (string)$_POST[$this->updateUrlOverrideOptName];\n $this->setUpdateUrlOverride($url);\n }\n }", "function update_option($name, $current, $value, $text=\"\") {\n $r = '<option value=\"' . $value . '\"';\n // Check for stickiness\n if ($current = $value )\n $r .= 'selected=\"selected\"';\n if ($text=\"\")\n $r .= $value;\n else\n $r .= $text;\n $r .= \"/>\";\n return $r;\n}", "public function addOption()\n {\n try {\n $this->validate();\n DB::beginTransaction();\n if ($this->option !== \"\") {\n $this->assessment->options()->create([\n 'option' => $this->option,\n ]);\n }\n $this->option = \"\";\n } catch (\\Throwable $th) {\n DB::rollback();\n session()->flash('error', $th->getMessage());\n }\n DB::commit();\n $this->emitSelf('render');\n }", "function LUPE_option_combo_vet($Vet, $NomeCombo, $PreSelect, $LinhaFixa = ' ', $JS = '', $Style = '')\r\n{\r\n\r\n $numrows = count($Vet);\r\n\r\n $html = \"<select id='$NomeCombo' name='$NomeCombo' $JS style='$Style'>\\n\";\r\n\r\n\tif ($LinhaFixa != '')\r\n\t\t$html .= \"<option value=''>$LinhaFixa</option>\\n\";\r\n\r\n if ($numrows == 0) {\r\n\t\t$html .= \"<option value=''>Não há informação no sistema</option>\\n\";\r\n } else {\r\n\t ForEach($Vet as $Chave => $Valor ){\r\n \t\t $html .= \"<option value='$Chave'\";\r\n\r\n\t\t if ($PreSelect == $Chave)\r\n\t\t\t$html .= 'selected >';\r\n \t\t else\r\n\t\t\t$html .= '>';\r\n\r\n\t \t $html .= \"$Valor</option>\\n\";\r\n }\r\n }\r\n\r\n $html .= '</select>';\r\n\r\n return $html;\r\n}", "function hundope_select_field_render() { \n\t\n}", "function _field_select($fval) \n {\n\n // if need be, copy the current vals for safety + reset()\n $postedvals = (is_array($fval))? $fval : array();\n\n $res = sprintf(\"<select size=\\\"1\\\" name=\\\"%s\\\" id=\\\"%s\\\" class=\\\"%s\\\" %s>\",\n $this->fname, \n $this->fname, \n (isset($this->attribs['class']))? $this->attribs['class'] : $this->element_class,\n $this->extra_attribs);\n\n if (empty($fval) and isset($this->attribs['top_value'])) {\n $res .= \"<option value=\\\"\\\">\". $this->attribs['top_value'] .\"</option>\"; \n } \n\n $opts = $this->opts; # $this->_array_stringify($this->opts);\n foreach ($opts as $optkey => $optval) { \n $res .= sprintf(\"<option value=\\\"%s\\\"%s>%s</option>\",\n $this->_htmlentities($optkey),\n ((in_array($optkey, $postedvals) || $optkey == $fval) and !empty($fval))? \" selected\" : \"\",\n $this->_htmlentities($optval));\n }\n $res .= \"</select>\";\n return $res;\n }", "public function newOption($content, $selected = 0){ \n\t\t$option[]\t= new Form_Select_Option($content, $selected);\n\n \t\tif(count($this->group) < 1){\n \t\t\t$this->menu[]\t= array(\n \t\t\t\tcount($this->option)-1, \n \t\t\t\tcount($this->group)-1\n \t\t\t);\n \t\t} // End If\n\n \t}", "function _option_merge_callback($option_name, $current_value, $new_value) {\t\t\t\t\r\r\n\t\t// This is to make sure that active_modules['payment'] doesn't contain the default options incase user deletes disables any one of them.\r\r\n\t\t// issue#: 526\r\r\n\t\tswitch($option_name){\r\r\n\t\t\t// active modules\r\r\n\t\t\tcase 'active_modules':\r\r\n\t\t\t\t// to copy options array as it is:\r\r\n\t\t\t\tif( isset($new_value['payment']) ) {\r\r\n\t\t\t\t\t$current_value['payment'] = array(); \r\r\n\t\t\t\t}\t\r\r\n\t\t\tbreak;\r\r\n\t\t\tcase 'setting':\r\r\n\t\t\t\t// check array keys\r\r\n\t\t\t\tif( isset($new_value['rest_output_formats']) && isset($new_value['rest_input_methods'])) {\r\r\n\t\t\t\t\t// reset\r\r\n\t\t\t\t\t$current_value['rest_output_formats'] = $current_value['rest_input_methods'] = array(); \r\r\n\t\t\t\t}\r\r\n\t\t\t\t// purchase options links\r\r\n\t\t\t\tif( isset($new_value['guest_content_purchase_options_links']) ) {\r\r\n\t\t\t\t\t// reset\r\r\n\t\t\t\t\t$current_value['guest_content_purchase_options_links'] = array(); \r\r\n\t\t\t\t}\t\t\t\r\r\n\t\t\tbreak;\t\t\t\r\r\n\t\t}\r\r\n\t\t// update class var\r\r\n\t\t$this->{$option_name} = mgm_array_merge_recursive_unique($current_value,$new_value);\t\t\r\r\n\t}", "public function addOptions(Request $request) {\n $data['options'] = \\App\\Option::where('group_id', $request->get('groupId'))->get();\n $data['selected'] = $request->get('ids') ? $request->get('ids') : array();\n $data['groupId'] = $request->get('groupId');\n $returnHTML = view('vendor.voyager.products.group-options', compact('data'))->render();\n \n return response()->json(array(\n 'success' => true,\n 'html' => $returnHTML));\n }", "function setLocalOption($name,$value)\n\t{\n\t\t$this->_options[$name] = $value;\n\t}", "function addSelectList2($name, $option_list, $header = NULL, $attr_ar = array(),$OBJ,$slted = NULL) { \n $str = \"<select name=\\\"$name\\\" id=\\\"$name\\\" \"; \n if ($attr_ar) { \n $str .= addAttributes( $attr_ar ); \n } \n $str .= \">\\n\"; \n if ( isset($header) ) { \n $str .= \" <option value=\\\"\\\">$header</option>\\n\"; \n } \n foreach ( $option_list as $val => $text ) { \n $str .= \"<option value=\\\"$val\\\" \"; \n if ( isset($_POST[$name]) && ( trim($_POST[$name]) === trim($val) || trim($_POST[$name]) === trim($text) ) || trim($slted) === trim($val) ) { \n $str .= ' selected '; \n } \n $str .= \">$text</option>\\n\"; \n } \n $str .= \"</select>\"; \n\t\t$OBJ->assign('_'.$name,$str);\n return $str; \n }", "public function addOptions($options)\n {\n foreach ($options as $key => $value) {\n $this->options[$key] = $value;\n }\n }", "function addAllOptionToDropDownList (array $fieldData)\n {\n array_unshift ($fieldData['options'], ['id' => '', $fieldData['showNodes'][0] => trans ('HCTranslations::core.all')]);\n\n return $fieldData;\n }", "protected function setOptions()\n {\n if (in_array('options', $this->with)) {\n $options = Arr::get($this->field, 'options', []);\n\n if(!$options) {\n $newOptions = Arr::get($this->field, 'settings.advanced_options', []);\n\n if(\n !$newOptions\n && Arr::get($this->field,'element') == 'multi_payment_component'\n && Arr::get($this->field,'attributes.type') != 'single'\n ) {\n $pricingOptions = Arr::get($this->field, 'settings.pricing_options', []);\n foreach ($pricingOptions as $pricingOption) {\n $newOptions[] = [\n 'value' => $pricingOption['label'],\n 'label' => $pricingOption['label']\n ];\n }\n }\n\n $options = [];\n if($newOptions) {\n foreach ($newOptions as $option) {\n $value = sanitize_text_field($option['value']);\n $options[$value] = sanitize_text_field($option['label']);\n }\n }\n }\n $this->result[$this->attribute]['options'] = $options;\n }\n return $this;\n }", "public function set_value($value) {\n\n // Is the select multiple?\n $multiple = $this->field->hasAttribute('multiple');\n $singleselect = ($this->field->hasClass('singleselect') || $this->field->hasClass('urlselect'));\n\n // Here we select the option(s).\n if ($multiple) {\n // Split and decode values. Comma separated list of values allowed. With valuable commas escaped with backslash.\n $options = preg_replace('/\\\\\\,/', ',', preg_split('/(?<!\\\\\\),/', trim($value)));\n // This is a multiple select, let's pass the multiple flag after first option.\n $afterfirstoption = false;\n foreach ($options as $option) {\n $this->field->selectOption(trim($option), $afterfirstoption);\n $afterfirstoption = true;\n }\n } else {\n // By default, assume the passed value is a non-multiple option.\n $this->field->selectOption(trim($value));\n }\n\n // Wait for all the possible AJAX requests that have been\n // already triggered by selectOption() to be finished.\n if ($this->running_javascript()) {\n // Trigger change event and click on first skip link, as some OS/browsers (Phantomjs, Mac-FF),\n // don't close select option field and trigger event.\n if (!$singleselect) {\n $dialoguexpath = \"//div[contains(concat(' ', normalize-space(@class), ' '), ' moodle-dialogue-focused ')]\";\n if (!$node = $this->session->getDriver()->find($dialoguexpath)) {\n $script = \"Syn.trigger('change', {}, {{ELEMENT}})\";\n try {\n $driver = $this->session->getDriver();\n if ($driver instanceof \\Moodle\\BehatExtension\\Driver\\MoodleSelenium2Driver) {\n $driver->triggerSynScript($this->field->getXpath(), $script);\n }\n $driver->click('//body//div[@class=\"skiplinks\"]');\n } catch (\\Exception $e) {\n return;\n }\n } else {\n try {\n $this->session->getDriver()->click($dialoguexpath);\n } catch (\\Exception $e) {\n return;\n }\n }\n }\n $this->session->wait(behat_base::get_timeout() * 1000, behat_base::PAGE_READY_JS);\n }\n }", "private function _output_options_select($arr) {\n\t\t$output = '';\n\t\tforeach ($arr as $val => $opt) :\n\t\t\t$output .= '\n\t\t\t\t\t\t<option value=\"' . $val . '\">' . $opt . '</option>';\n\t\tendforeach;\n\t\treturn $output;\n\t}", "public function setValuesOption($values)\n {\n $this->values = $values;\n }", "function okrs_related_to_select($value)\n{\n\n $selected = '';\n if($value == 'okrs'){\n $selected = 'selected';\n }\n echo \"<option value='okrs' \".$selected.\">\".\n _l('okrs').\"\n </option>\";\n\n}", "public static function edit_selectbox($name,$value,$i,$arry_select = array(),$field_value = 'id', $field_label='name',$size = 1,$multi = 0,$class=''){\n\t\t$class = $class? $class:'chosen-select';\n if(!$multi){\n\t\t\t$html_sized = $size > 1 ? \"size=$size\":\"\" ;\n\t\t\t$html = '<select class=\"form-control chosen-select\" name=\"'.$name.'_'.$i.'\" id=\"'.$name.'_'.$i.'\" '.$html_sized.'>';\n\t\t\t$compare = 0;\n\t\t\tif(@$value)\n\t\t\t\t$compare = $value;\n\t\t\t$j = 0;\n\t\t\tif(count($arry_select) && $arry_select){\n\t\t\t\tif(is_object(end($arry_select))){\n\t\t\t\t\tforeach ($arry_select as $select_item) {\n\t\t\t\t\t\t$checked = \"\";\n\t\t\t\t\t\tif(!$compare && !$j){\n\t\t\t\t\t\t\t$checked = \"selected=\\\"selected\\\"\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif($compare === ($select_item->$field_value))\n\t\t\t\t\t\t\t\t$checked = \"selected=\\\"selected\\\"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$html .= '<option value=\"'.$select_item->$field_value.'\" '. $checked.'>'.$select_item -> $field_label.'</option>';\t\n\t\t\t\t\t\t$j ++;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tforeach ($arry_select as $key => $name) {\n\t\t\t\t\t\t$checked = \"\";\n\t\t\t\t\t\tif(!$compare && !$j){\n\t\t\t\t\t\t\t$checked = \"selected=\\\"selected\\\"\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif($compare == $key)\n\t\t\t\t\t\t\t\t$checked = \"selected=\\\"selected\\\"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$html .= '<option value=\"'.$key.'\" '. $checked.'>'.$name.'</option>';\t\n\t\t\t\t\t\t$j ++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$html .= '</select>';\n\t\t\t$html .= '<input type=\"hidden\" name=\"'.$name.'_'.$i.'_original'.'\" value=\"'.$value.'\"/>';\n\t\t} else {\n\t\t\t$html_sized = $size > 1 ? \"size=$size\":\"\" ;\n\t\t\t$html = '<select class=\"form-control chosen-select-no-results\" name=\"'.$name.'_'.$i.'[]\" id=\"'.$name.'_'.$i.'\" '.$html_sized.' multiple=\"multiple\">';\n\t\t\t$array_value = isset($value)?explode(',',$value):array();\n\t\t\t$j = 0;\n\t\t\tif(count($arry_select)){\n\t\t\t\tif(is_object(end($arry_select))){\n\t\t\tforeach ($arry_select as $select_item) {\n\t\t\t\t$checked = \"\";\n\t\t\t\t\t\tif(in_array($select_item->$field_value,$array_value))\n\t\t\t\t\t$checked = \"selected=\\\"selected\\\"\";\n\t\t\t\t\t$html .= '<option value=\"'.$select_item->$field_value.'\" '. $checked.'>'.$select_item -> $field_label.'</option>';\t\n\t\t\t\t\t\t$j ++;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tforeach ($arry_select as $key => $name) {\n\t\t\t\t\t\tif(in_array($name,$array_value))\n\t\t\t\t\t\t$checked = \"selected=\\\"selected\\\"\";\n\t\t\t\t\n\t\t\t\t\t\t$html .= '<option value=\"'.$key.'\" '. $checked.'>'.$name.'</option>';\t\n\t\t\t\t$j ++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$html .= '</select>';\n\t\t\t$html .= '<input type=\"hidden\" name=\"'.$name.'_'.$i.'_original'.'\" value=\"'.$value.'\"/>';\n\t\t}\n\t\t\n\t\treturn $html;\n\t}", "public function setOptions()\n\t{\n\t\tupdate_option($this->optionVar, serialize($this->options));\n\t}", "public static function set_options() {\r\n\t\tself::add_option(\"my_option\", \"foo\");\r\n\t}", "public function addOption(string $key, string $value): CustomField\n {\n $this->options[] = [\n 'key' => $key,\n 'value' => $value,\n 'selected' => false\n ];\n\n return $this;\n }", "private function getSelectOptions() {\n $result = \"\";\n if($this->pleaseSelectEnabled) {\n $result .= '<option value=\"null\"> -- Please Select --</option>';\n }\n foreach($this->itemList as $key => $val) {\n $selectedText = \"\";\n if(in_array($key, $this->selectedItems)) {\n $selectedText = 'selected=\"selected\"';\n }\n $result .= '<option value=\"'.$key.'\" '.$selectedText.'>'.$val.'</option>'.\"\\n \\t\";\n }\n return $result;\n }", "function LUPE_criar_combo_vet($Vet, $NomeCombo, $PreSelect, $LinhaFixa = ' ', $JS = '', $Style = '')\r\n{\r\n\r\n $numrows = count($Vet);\r\n\r\n echo \"<select id='$NomeCombo' name='$NomeCombo' $JS style='$Style'>\\n\";\r\n\r\n\tif ($LinhaFixa != '')\r\n\t\techo \"<option value=''>$LinhaFixa</option>\\n\";\r\n\r\n if ($numrows == 0) {\r\n\t\techo \"<option value=''>Não há informação no sistema</option>\\n\";\r\n } else {\r\n\t ForEach($Vet as $Chave => $Valor ){\r\n \t\t echo \"<option value='$Chave'\";\r\n\r\n\t\t if ($PreSelect == $Chave)\r\n\t\t\techo 'selected >';\r\n \t\t else\r\n\t\t\techo '>';\r\n\r\n\t \t echo \"$Valor</option>\\n\";\r\n }\r\n }\r\n\r\n echo '</select>';\r\n\r\n return 0;\r\n}", "public function getNewChildSelectOptions()\n {\n $hlr = Mage::helper('amsegments');\n \n $conditions = array(\n array(\n 'label' => $hlr->__(Amasty_Segments_Model_Segment_Condition_Customer_Subscriber::getDefaultLabel()),\n 'value' => 'amsegments/segment_condition_customer_subscriber',\n ),\n array(\n 'label' => $hlr->__(Amasty_Segments_Model_Segment_Condition_Customer_Days_Visit::getDefaultLabel()),\n 'value' => 'amsegments/segment_condition_customer_days_visit',\n ),\n array(\n 'label' => $hlr->__(Amasty_Segments_Model_Segment_Condition_Customer_Days_Registration::getDefaultLabel()),\n 'value' => 'amsegments/segment_condition_customer_days_registration',\n ),\n array(\n 'label' => $hlr->__(Amasty_Segments_Model_Segment_Condition_Customer_Days_Birthday::getDefaultLabel()),\n 'value' => 'amsegments/segment_condition_customer_days_birthday',\n )\n );\n \n \n $prefix = 'amsegments/segment_condition_customer_';\n $conditions = array_merge_recursive($conditions, Mage::getModel($prefix.'attributes')->getNewChildSelectOptions());\n\n return array(\n 'value' => $conditions,\n 'label'=>Mage::helper('amsegments')->__('Registered Customers')\n );\n }", "private function addLongOption($name, $value)\n {\n $this->options[$name] = $value;\n }", "function add_site_option($option, $value)\n {\n }", "protected function applyValueToOptions()\n {\n $value = Collection::make($this->value);\n\n if ( ! $this->hasAttribute('multiple'))\n $value = $value->take(1);\n\n return $this->setNewChildren(\n static::applyValueToElements($value, $this->getChildren())\n );\n }", "function select_option()\r\n{}", "function populate_options(array $options = array())\n {\n }", "public static function add_option() {\n\t\tFrmAppHelper::permission_check('frm_edit_forms');\n check_ajax_referer( 'frm_ajax', 'nonce' );\n\n\t\t$id = FrmAppHelper::get_post_param( 'field_id', 0, 'absint' );\n\t\t$opt_type = FrmAppHelper::get_post_param( 'opt_type', '', 'sanitize_text_field' );\n\t\t$opt_key = FrmAppHelper::get_post_param( 'opt_key', 0, 'absint' );\n\n $field = FrmField::getOne($id);\n\n if ( 'other' == $opt_type ) {\n\t\t\t$opt = __( 'Other', 'formidable' );\n $other_val = '';\n $opt_key = 'other_' . $opt_key;\n } else {\n\t\t\t$opt = __( 'New Option', 'formidable' );\n }\n $field_val = $opt;\n\n $field_data = $field;\n\t\t$field = (array) $field;\n\t\t$field['separate_value'] = isset( $field_data->field_options['separate_value'] ) ? $field_data->field_options['separate_value'] : 0;\n\t\tunset( $field_data );\n\n\t\t$field_name = 'item_meta[' . $id . ']';\n\t\t$html_id = FrmFieldsHelper::get_html_id( $field );\n $checked = '';\n\n if ( 'other' == $opt_type ) {\n\t\t\tinclude( FrmAppHelper::plugin_path() . '/pro/classes/views/frmpro-fields/other-option.php' );\n } else {\n\t\t\trequire( FrmAppHelper::plugin_path() . '/classes/views/frm-fields/single-option.php' );\n }\n wp_die();\n }", "public function resultat_option()\n {\n $resultat = $this->m_feuille_controle->resultat_liste_option();\n $results = json_decode(json_encode($resultat), true);\n\n echo \"<option value='' selected='selected'>(choisissez)</option>\";\n foreach ($results as $row) {\n echo \"<option value='\" . $row['id'] . \"'>\" . $row['value'] . \"</option>\";\n }\n }", "private function setAdditionalOptions(): void\n\t{\n\t\tforeach ( $this->configuration->getAdditionalOptions() as $additionalOptionIdentifier => $additionalOptionValue )\n\t\t{\n\t\t\tif ( true === in_array( $additionalOptionIdentifier, static::EXCLUDED_ADDITIONAL_OPTIONS, true ) )\n\t\t\t{\n\t\t\t\tldap_set_option( $this->ldapHandle, $additionalOptionIdentifier, $additionalOptionValue );\n\t\t\t}\n\t\t}\n\t}", "function createSelectOptions($startValue, $endValue, $selectedValue) {\n $ret = array_pad(array(), ($endValue - $startValue + 1), null);\n for($i = $startValue; $i < $endValue + 1; ++$i) {\n if ($i == $selectedValue) {\n # Use a \"selected\" <option> tag if it is the selected value\n $ret[$i - $startValue] = \"<option value='$i' selected>$i</option>\";\n } else {\n # Use a normal <option> tag\n $ret[$i - $startValue] = \"<option value='$i'>$i</option>\";\n }\n }\n return join(\"\", $ret);\n}", "function fg_write_stato($id_stato=0)\n{\n echo \"<select class=\\\"form_field_enabled\\\" id=\\\"select_stato\\\" name=\\\"id_stato\\\">\";\n\n $yes_selected = \"selected=\\\"selected\\\"\";\n $no_selected = \"\";\n\n $ss = DB::newSelect(\"location_stati\");\n $ss->add(\"id_stato\");\n $ss->add(\"nome\");\n $ss->addOrdering(\"nome\");\n\n $result = $ss->exec();\n $selected = $id_stato>0 ? $no_selected : $yes_selected;\n echo \"<option value=\\\"-1\\\" \".$selected.\">(Seleziona uno stato)</option>\\n\";\n while ($row = mysql_fetch_assoc($result))\n {\n if ($row['id_stato']==$id_stato)\n $selected = $yes_selected;\n else\n $selected = $no_selected;\n echo \"<option value=\\\"\".$row['id_stato'].\"\\\" $selected>\".$row['nome'].\"</option>\\n\";\n }\n mysql_free_result($result);\n\n echo \"</select>\";\n}", "function add_option($option, $value = '', $deprecated = '', $autoload = 'yes')\n {\n }", "function _field_select_multiple($fval) \n {\n // if need be, copy the current vals for safety + reset()\n $postedvals = (is_array($fval))? $fval : array();\n\n $res = sprintf(\"<select size=\\\"%d\\\"id=\\\"%s\\\" name=\\\"%s\\\" class=\\\"%s\\\" multiple %s >\",\n $this->_get_field_size(),\n $this->fname,\n $this->fname . '[]', // add magic brakets\n (isset($this->attribs['class']))? $this->attribs['class'] : $this->element_class,\n $this->extra_attribs);\n\n $opts = $this->opts; # $this->_array_stringify($this->opts);\n foreach ($opts as $optkey => $optval) { \n $res .= sprintf(\"<option value=\\\"%s\\\"%s>%s</option>\",\n $this->_htmlentities($optkey),\n (in_array($optkey, $postedvals) || $optkey == $fval)? \" selected\" : \"\",\n $this->_htmlentities($optval));\n }\n $res .= \"</select>\";\n $res .= sprintf('<br /><span class=\"%s\">%s</span>', \n $this->element_class,\n (isset($this->attribs['help_text']))? $this->attribs['help_text'] : 'Hold down [Ctrl] or [Cmd] to select multiple');\n return $res;\n }", "function populate_select($distance)\r\n{\r\n\r\n\tif (!strcmp($distance,\"0\")) {\r\n\t\t$selected = \"selected\";\r\n\t} else {\r\n\t\t$selected = \"\";\r\n\t}\r\n\techo \"<option Value=\\\"0\\\" $selected>Not Run</option>\\n\";\r\n\r\n\tif (!strcmp($distance,\"111\")) {\r\n\t\t$selected = \"selected\";\r\n\t} else {\r\n\t\t$selected = \"\";\r\n\t}\r\n\techo \"<option Value=\\\"111\\\" $selected>111 meters</option>\\n\";\r\n\r\n\r\n\tif (!strcmp($distance,\"222\")) {\r\n\t\t$selected = \"selected\";\r\n\t} else {\r\n\t\t$selected = \"\";\r\n\t}\r\n\techo \"<option Value=\\\"222\\\" $selected>222 meters</option>\\n\";\r\n\r\n\r\n\tif (!strcmp($distance, \"333\")) {\r\n\t\t$selected = \"selected\";\r\n\t} else {\r\n\t\t$selected = \"\";\r\n\t}\r\n\techo \"<option Value=\\\"333\\\" $selected>333 meters</option>\\n\";\r\n\r\n\tif (!strcmp($distance, \"444\")) {\r\n\t\t$selected = \"selected\";\r\n\t} else {\r\n\t\t$selected = \"\";\r\n\t}\r\n\techo \"<option Value=\\\"444\\\" $selected>444 meters</option>\\n\";\r\n\r\n\tif (!strcmp($distance, \"500\")) {\r\n\t\t$selected = \"selected\";\r\n\t} else {\r\n\t\t$selected = \"\";\r\n\t}\r\n\techo \"<option Value=\\\"500\\\" $selected>500 meters</option>\\n\";\r\n\t\r\n\tif (!strcmp($distance,\"611\")) {\r\n\t\t$selected = \"selected\";\r\n\t} else {\r\n\t\t$selected = \"\";\r\n\t}\r\n\techo \"<option Value=\\\"611\\\" $selected>611 meters</option>\\n\";\r\n\r\n\r\n\tif (!strcmp($distance,\"777\")) {\r\n\t\t$selected = \"selected\";\r\n\t} else {\r\n\t\t$selected = \"\";\r\n\t}\r\n\techo \"<option Value=\\\"777\\\" $selected>777 meters</option>\\n\";\r\n\r\n\tif (!strcmp($distance,\"1000\")) {\r\n\t\t$selected = \"selected\";\r\n\t} else {\r\n\t\t$selected = \"\";\r\n\t}\r\n\techo \"<option Value=\\\"1000\\\" $selected>1000 meters</option>\\n\";\r\n\r\n\r\n\tif (!strcmp($distance,\"1500\")) {\r\n\t\t$selected = \"selected\";\r\n\t} else {\r\n\t\t$selected = \"\";\r\n\t}\r\n\techo \"<option Value=\\\"1500\\\" $selected>1500 meters</option>\\n\";\r\n\r\n\r\n\tif (!strcmp($distance,\"3000\")) {\r\n\t\t$selected = \"selected\";\r\n\t} else {\r\n\t\t$selected = \"\";\r\n\t}\r\n\techo \"<option Value=\\\"3000\\\" $selected>3000 meters</option>\\n\";\r\n\r\n\r\n\r\n\tif (!strcmp($distance,\"999\")) {\r\n\t\t$selected = \"selected\";\r\n\t} else {\r\n\t\t$selected = \"\";\r\n\t}\r\n\techo \"<option Value=\\\"9999\\\" $selected>ice cut</option>\\n\";\r\n}", "function addSelectList4($name, $option_list, $header = NULL, $attr_ar = array(),$OBJ,$slted = NULL) { \n $str = \"<select name=\\\"$name\\\" id=\\\"$name\\\" \"; \n if ($attr_ar) { \n $str .= addAttributes( $attr_ar ); \n } \n $str .= \">\\n\"; \n if ( isset($header) ) { \n $str .= \" <option value=\\\"\\\">$header</option>\\n\"; \n } \n foreach ( $option_list as $val => $text ) { \n $str .= \"<option value=\\\"$val\\\" \"; \n if ( isset($_POST[$name]) && ( trim($_POST[$name]) === trim($val) || trim($_POST[$name]) === trim($text) ) || trim($slted) === trim($val) ) { \n $str .= ' selected '; \n } \n\t\t\tif (is_array($text[1])){\n\t\t\t\tforeach($text[1] as $keyext => $valext){\t\t\t\n\t\t\t\t\t\t$str .= ' item'.$keyext.' = \"'.$valext.'\" '; \n\t\t\t\t}\n\t\t\t}\n\t\t\t\n $str .= \" >\".$text[0].\"</option>\\n\"; \n } \n $str .= \"</select>\"; \n\t\t$OBJ->assign('_'.$name,$str);\n return $str; \n }", "public function addForSelect() {\n\n\t\t//Prevent users from accessing it directly.\n\t\tif (!$this->request->is('ajax')) {\n\t\t\treturn $this->redirect(['action' => 'index']);\n\t\t}\n\t\t$this->City->create();\n\t\tif (!$this->City->save($this->request->data)) {\n\t\t\tthrow new Exception('The city could not be saved');\n\t\t}\n\t\t$cities = $this->City->findByStateId('list', $this->request->data('City.state_id'));\n\t\t$this->set(compact('cities'));\n\t}", "function addSelectList5($name, $option_list, $header = NULL, $attr_ar = array(),$OBJ,$slted = NULL) { \n $str = \"<select name=\\\"$name\\\" id=\\\"$name\\\" \"; \n if ($attr_ar) { \n $str .= addAttributes( $attr_ar ); \n } \n $str .= \">\\n\"; \n if ( isset($header) ) { \n $str .= \" <option value=\\\"\\\">$header</option>\\n\"; \n } \n foreach ( $option_list as $val => $text ) { \n\t\t\t$arvl = array_values($text);\n $str .= \"<option value=\\\"$val\\\" \"; \n if ( isset($_POST[$name]) && ( trim($_POST[$name]) === trim($val) || trim($_POST[$name]) === trim($text) ) || trim($slted) === trim($val) ) { \n $str .= ' selected '; \n } \n $str .= \">$arvl[0]</option>\\n\"; \n } \n $str .= \"</select>\"; \n\t\t$OBJ->assign('_'.$name,$str);\n return $str; \n }", "function pre_update_option($value, $option, $old_value)\n {\n }", "public function setOptionsWithValues($options){\n\t\tif(is_array($options)){\n\t\t\tforeach($options as $key => $optionText){\n\t\t\t\t$opt = new Element(\"option\");\n\t\t\t\t$opt->setAttribute(\"value\", $key);\n\t\t\t\t$opt->setInnerText($optionText);\n\t\t\t\t$this->options[$key] = $opt;\n\t\t\t}\n\t\t}\n\t}", "function get_select_options($select_data_array, $value_field, $display_field, $selected, $show_instr='Y', $instr_txt='Select')\n{\t\n\t$drop_HTML = \"\";\n\t#Determine whether to show the instruction option\n\tif($show_instr == 'Y'){\n\t\t$drop_HTML = \"<option value='' \";\n\t\t# Select by default if there is no selected option\n\t\tif($selected == '')\n\t\t{\n\t\t\t$drop_HTML .= \" selected\";\n\t\t}\n\t\n\t\t$drop_HTML .= \">- \".$instr_txt.\" -</option>\";\n\t}\n\t\n\tforeach($select_data_array AS $data_row)\n\t{\n\t\t$drop_HTML .= \" <option value='\".addslashes($data_row[$value_field]).\"' \";\n\t\t\n\t\t# Show as selected if value matches the passed value\n\t\t#check if passed value is an array\t\t\n if(is_array($selected)){\n \tif(in_array($data_row[$value_field], $selected)) $drop_HTML .= \" selected\";\n \n\t\t}elseif(!is_array($selected)){\n \tif($selected == $data_row[$value_field]) $drop_HTML .= \" selected\";\n }\t\t\n\t\t\t\t\n\t\t$display_array = array();\n\t\t# Display all data given based on whether what is passed is an array\n\t\tif(is_array($display_field))\n\t\t{\n\t\t\t$drop_HTML .= \">\";\n\t\t\t\n\t\t\tforeach($display_field AS $display)\n\t\t\t{\n\t\t\t\tarray_push($display_array, $data_row[$display]);\n\t\t\t}\n\t\t\t\n\t\t\t$drop_HTML .= implode(' - ', $display_array).\"</option>\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$drop_HTML .= \">\".$data_row[$display_field].\"</option>\";\n\t\t}\n\t}\n\t\n\treturn $drop_HTML;\n}", "function print_select($value){\n\t\techo $this->before_option_title.$value['name'].$this->after_option_title;\n\t\t$input_value = $this->get_field_value($value['id']);\n\t\t\t\n\t\techo '<select class=\"option-select'.((isset($value['conditional']) && $value['conditional'])?' option-conditional':'').'\" name=\"'.$value['id'].'\" id=\"'.$value['id'].'\">';\n\t\t\n\t\tforeach ($value['options'] as $option) {\n\t\t\t$attr='';\t\n\t\t\t if ( get_option( $value['id'] ) == $option['id']) {\n\t\t\t\t$attr = ' selected=\"selected\"';\n\t\t\t }\n\t\t \t if ( $option['id'] == 'disabled') {\n\t\t\t\t$attr.= ' disabled=\"disabled\"';\n\t\t\t }\n\t\t\t if($option['class']){\n\t\t\t\t$attr.=' class=\"'.$option['class'].'\"';\t\t\t \t\n\t\t\t }\n\t\t\techo '<option '.$attr.' value=\"'.$option['id'].'\">'.$option['name'].'</option>'; \n\t\t} \n\t\n\t\techo '</select>';\n\t\t$this->close_option($value);\n\t}", "public function setOptionsAttribute($value)\n {\n $this->attributes['options'] = json_encode($value);\n }", "function addSelectList3($name, $option_list, $header = NULL, $attr_ar = array(),$OBJ,$slted = NULL) { \n $str = \"<select name=\\\"$name\\\" id=\\\"$name\\\" \"; \n if ($attr_ar) { \n $str .= addAttributes( $attr_ar ); \n } \n $str .= \">\\n\"; \n if ( isset($header) ) { \n $str .= \" <option value=\\\"\\\">$header</option>\\n\"; \n } \n foreach ( $option_list as $val => $text ) { \n $str .= \"<option value=\\\"$val\\\" \"; \n if ( isset($_POST[$name]) && ( trim($_POST[$name]) === trim($val) || trim($_POST[$name]) === trim($text) ) || trim($slted) === trim($val) ) { \n $str .= ' selected '; \n } \n\t\t\t\n\t\t\tforeach($text as $keyext => $valext){\n\t\t\t\tif ($keyext>0){\n\t\t\t\t\t$str .= ' item'.$keyext.' = \"'.$valext.'\" '; \n\t\t\t\t}\n\t\t\t}\n\t\t\t\n $str .= \" >\".$text[0].\"</option>\\n\"; \n } \n $str .= \"</select>\"; \n\t\t$OBJ->assign('_'.$name,$str);\n return $str; \n }", "function select02($nombreSelect,$arrayOpciones){\n\t$i = '0';\n\t$arrayResultado[$i++] = \"<select name=\\\"$nombreSelect\\\">\";\n\tforeach( $arrayOpciones as $key => $value ){\n\t\tif( $i == '1' ){\n\t\t\t$arrayResultado[$i++] = \"<option value=\\\"\".$key.\"\\\" selected=\\\"selected\\\">\".$value.\"</option>\";\n\t\t} else {\n\t\t\t$arrayResultado[$i++] = \"<option value=\\\"\".$key.\"\\\">\".$value.\"</option>\";\n\t\t}\n\t}\n\t$arrayResultado[$i++] = \"</select>\";\n\treturn $arrayResultado;\n/*\nforeach( $arrayResultado as $value){\n\techo $value.\"<br />\\n\";\n}\n*/\n}", "function toHtml(){\n global $PAGE;\n\n // Enhance the select with javascript.\n $this->_generateId();\n $id = $this->getAttribute('id');\n\n if (!$this->isFrozen()) {\n $PAGE->requires->js_call_amd('core/form-autocomplete', 'enhance', $params = array('#' . $id, $this->tags, $this->ajax,\n $this->placeholder, $this->casesensitive, $this->showsuggestions, $this->noselectionstring));\n }\n\n $html = parent::toHTML();\n\n // Hacky bodge to add in the HTML code to the option tag. There is a nicer\n // version of this code in the new template version (see export_for_template).\n if ($this->valuehtmlcallback) {\n $html = preg_replace_callback('~value=\"([^\"]+)\"~', function($matches) {\n $value = html_entity_decode($matches[1]);\n $htmlvalue = call_user_func($this->valuehtmlcallback, $value);\n if ($htmlvalue !== false) {\n return $matches[0] . ' data-html=\"' . s($htmlvalue) . '\"';\n } else {\n return $matches[0];\n }\n }, $html);\n }\n\n return $html;\n }", "function options_for_select(array $options, $selected = null, $disabled = null)\r\n{\r\n return implode('', array_map_with_keys($options, function($value, $key) use($selected, $disabled){\r\n $attributes = array();\r\n\r\n $attributes['selected'] = !is_null($selected) && in_array($key, (array) $selected);\r\n $attributes['disabled'] = !is_null($disabled) && in_array($key, (array) $disabled);\r\n $attributes['value'] = $key;\r\n\r\n return tag('option', $attributes, $value);\r\n }));\r\n}", "public function llenarCombo()\n {\n\n \n \t$area_destino = $_POST[\"dir\"];\n\n \t$options=\"\";\n \t\n \t$deptos = $this ->Modelo_direccion->obtenerCorreoDepto($area_destino);\n\n \tforeach ($deptos as $row){\n \t\t$options= '\n \t\t<option value='.$row->email.'>'.$row->email.'</option>\n \t\t'; \n \t\techo $options; \n \t}\n \t\n\n }", "public function ov_select($name, array $list, $value = ''){\n $args = func_get_args(); array_shift($args); array_shift($args); array_shift($args);\n $dlist = array();\n $p = $this->get_element_attributes('select', $name, $value, $dlist, $args);\n \n $element = new fe_select($p);\n $element->setList($list);\n if( isset($this->openForm) && is_array($this->openForm) ) $this->openForm['fields'][] = $element;\n \n if( !$this->echoOff ) echo $element;\n return $element;\n }", "function addSelectList($name, $option_list, $header = NULL, $attr_ar = array(),$OBJ) { \n $str = \"<select name=\\\"$name\\\" id=\\\"$name\\\" \"; \n if ($attr_ar) { \n $str .= addAttributes( $attr_ar ); \n } \n $str .= \">\\n\"; \n if ( isset($header) ) { \n $str .= \" <option value=\\\"\\\">$header</option>\\n\"; \n } \n foreach ( $option_list as $val => $text ) { \n $str .= \"<option value=\\\"$val\\\"\"; \n if ( isset($_POST[$name]) && ( trim($_POST[$name]) === trim($val) || trim($_POST[$name]) === trim($text) ) ) { \n $str .= ' selected '; \n } \n $str .= \">$text</option>\\n\"; \n } \n $str .= \"</select>\"; \n\t\t$OBJ->assign('_'.$name,$str);\n return $str; \n }", "function fillSelectWithSymbols(){\n try{\n // Query against the database to retrieve all symbols\n $sql = \"select * from stockMarket\";\n echo '<select name=\"symbols\" id=\"symbollist\">';\n foreach (DAOConstants::$pdo->query($sql) as $row) {\n if ($row['symbol'] === \"Symbol\") {\n // Outputs the first option as blank\n echo '<option value=\"\"> </option>';\n } else {\n // Append symbols as options in the select tag along with the company\n // name\n echo '<option value=' . $row['symbol'] .\n ' name=\"symbol\">' . $row['symbol'] .\n ' - ' . $row['name'] . '</option>';\n }\n }\n echo '</select>';\n echo '<br><input type=\"submit\" value=\"Submit\" name=\"submit\" id=\"submit\">';\n } catch(PDOException $e){\n echo $e->getMessage();\n exit;\n }\n }", "public function setOptions($v)\n { return $this->set('options', $v); }", "public function addForSelect() {\n\t\t$this->Business->create();\n\t\tif (!$this->Business->save($this->request->data)) {\n\t\t\tthrow new NotFoundException(__('Invalid business'));\n\t\t}\n\t\t$businesses = $this->Business->find('list');\n\t\t$this->set(compact('businesses'));\n\t}", "function uds_pricing_render_general_options_select($key, $value)\n{\n\tglobal $uds_pricing_general_options;\n\t$field = $uds_pricing_general_options[$key];\n\t$default = $value;\n\t\n\t$options = '';\n\tforeach($field['options'] as $name => $value) {\n\t\t$selected = $name == $default ? 'selected=\"selected\"' : '';\n\t\t$options .= \"<option value='$name' $selected>$value</option>\";\n\t}\n\t\n\t$out = \"\n\t\t<div>\n\t\t\t<label>{$field['label']}</label>\n\t\t\t<select name='uds-pricing-$key'>\n\t\t\t\t$options\n\t\t\t</select>\n\t\t</div>\n\t\";\n\treturn $out;\n}", "function _select($name,$options){\n\t\t$selectAtts = \"name='$name' \";\n\t\t$optionFields = '';\n\t\tif ($options['multiple']) {\n\t\t\t$selectAtts.=\"multiple='multiple' \";\n\t\t}\n\t\tforeach ($options['options'] as $key => $label) {\n\t\t\t$optionAtts = \"value = \\\"$key\\\" \";\n\t\t\tif ($key == $options['value']) {\n\t\t\t\t$optionAtts.= \"selected='selected' \";\n\t\t\t}\n\t\t\t$optionFields.=sprintf($this->inputTags['option'],$label,$optionAtts);\n\t\t}\n\t\t\n\t\treturn sprintf($this->inputTags['select'],$optionFields,$selectAtts);\t\t\n\t}", "function yaz_set_option($id, $name, $value)\n{\n}", "function civiq_ballots_ajax_add_more_options($form, $form_state) {\r\n return $form['options'];\r\n}", "function addSelectListArrays($name, $val_list, $txt_list, $selected_value = NULL, $header = NULL, $attr_ar = array() ) { \n $option_list = array_combine( $val_list, $txt_list ); \n $str = $this->addSelectList($name, $option_list, true, $selected_value, $header, $attr_ar ); \n return $str; \n }", "public function setValueByArray($a_value) {\n\t\tforeach ((array) $this->select_inputs as $postvar => $values)\n\t\t\t$this->select_inputs[$postvar][\"selected\"] = $a_value[$postvar];\n\t}", "function makeList($listName, $listOptions, $selectOption ,$addAny) {\r\n\t$output = \"<select name = \\\"$listName\\\" id =\\\"$listName\\\">\\n\";\r\n\t// check if the option was for search or for adding and editing\r\n\tif ($addAny==\"addAny\") {\r\n\t\t$output .= \"<option selected=\\\"true\\\" value=\\\"any\\\">ANY</option>\";\r\n\t}\r\n\t// foreach statment to fill the options with the value and the text\r\n\tforeach ($listOptions as $key=>$value) {\r\n\t\tif ($selectOption == $value) {\r\n\t// check wich choice would be selected\r\n\t\t\t$output .= \"<option selected=\\\"true\\\" value=\\\"$key\\\">$value</option>\\n\";\r\n\t\t}\r\n\t\telse{\r\n\t// add options\r\n\t\t\t$output .= \"<option value=\\\"$key\\\">$value</option>\\n\";\r\n\t\t}\r\n\t}\r\n\t// close the select box\r\n\t$output .= \"</select>\\n\";\r\n\techo $output;\r\n}", "public function setOption($name, $value);", "public function setOption($name, $value);", "public function setOption($name, $value);", "public function setOption($name, $value);", "function cmdSinceS($name, $caption) {\n $optsinceS = array\n (\n array(\"\", \"\"),\n array(\"Delivery Order\", \"1\"),\n array(\"Sales Invoice\", \"2\"),\n );\n ?>\n <tr>\n <td>Hari</td>\n <td>\n <select class=\"easyui-combobox\"\n id=\"<?php echo $name; ?>\"\n name=\"<?php echo $name; ?>\"\n style=\"width:120px;\"\n data-options=\"panelHeight:100,editable:false,width:120\"\n disabled=true\n >\n <?php\n foreach ($optsinceS as $val) {\n echo '<option value=\"' . $val[1] . '\">' . $val[0] . '</option>';\n }\n ?>\n </select>\n </td>\n </tr>\n <?php\n}", "public function it_shows_select_input_with_options()\n {\n // configure\n $inputs = [\n [\n 'type' => 'select',\n 'name' => 'country',\n 'options' => ['IN' => 'India']\n ]\n ];\n\n $this->configureInputs($inputs);\n\n // assert\n $this->get('/settings')\n ->assertStatus(200)\n ->assertSee('select')\n ->assertSee('IN');\n }", "function get_select_options($select_data_array, $value_field, $display_field, $selected, $show_instr='Y', $instr_txt='Select One')\n{\n $drop_HTML = \"\";\n #Determine whether to show the instruction option\n if($show_instr == 'Y'){\n $drop_HTML = \"<option value='' \";\n # Select by default if there is no selected option\n if($selected == '')\n {\n $drop_HTML .= \" selected\";\n }\n\n $drop_HTML .= \">- \".$instr_txt.\" -</option>\";\n }\n\n foreach($select_data_array AS $data_row)\n {\n $drop_HTML .= \" <option value='\".addslashes($data_row[$value_field]).\"' \";\n\n # Show as selected if value matches the passed value\n #check if passed value is an array\n if(is_array($selected)){\n if(in_array($data_row[$value_field], $selected)) $drop_HTML .= \" selected\";\n\n }elseif(!is_array($selected)){\n if($selected == $data_row[$value_field]) $drop_HTML .= \" selected\";\n }\n\n $display_array = array();\n # Display all data given based on whether what is passed is an array\n if(is_array($display_field))\n {\n $drop_HTML .= \">\";\n\n foreach($display_field AS $display)\n {\n array_push($display_array, $data_row[$display]);\n }\n\n $drop_HTML .= implode(' - ', $display_array).\"</option>\";\n }\n else\n {\n $drop_HTML .= \">\".$data_row[$display_field].\"</option>\";\n }\n }\n\n return $drop_HTML;\n}", "function update_array_option($option, $value) {\r\n\t\t$options = get_option('foliamaptool');\r\n\t\t$options[$option] = $value;\r\n\t\tupdate_option('foliamaptool', $options);\r\n\t}", "function html_selectbox($name, $values, $selected=NULL, $attributes=array())\n{\n $attr_html = '';\n if(is_array($attributes) && !empty($attributes))\n {\n foreach ($attributes as $k=>$v)\n {\n $attr_html .= ' '.$k.'=\"'.$v.'\"';\n }\n }\n $output = '<select name=\"'.$name.'\" id=\"'.$name.'\"'.$attr_html.'>'.\"\\n\";\n if(is_array($values) && !empty($values))\n {\n foreach ($values as $key=>$value)\n {\n if(is_array($value))\n {\n $output .= '<optgroup label=\"'.$key.'\">'.\"\\n\";\n foreach ($value as $k=>$v)\n {\n $sel = $selected == $k ? ' selected=\"selected\"' : '';\n $output .= '<option value=\"'.$k.'\"'.$sel.'>'.$v.'</option>'.\"\\n\";\n }\n $output .= '</optgroup>'.\"\\n\";\n }\n else\n {\n $sel = $selected == $key ? ' selected=\"selected\"' : '';\n $output .= '<option value=\"'.$key.'\"'.$sel.'>'.$value.'</option>'.\"\\n\";\n }\n }\n }\n $output .= \"</select>\\n\";\n\n return $output;\n}", "public function mergeOld()\n\t{\n\t\t$AWD_options = $this->wpdb->get_results(\"SELECT option_name,option_value FROM \".$this->wpdb->options.\" WHERE option_name LIKE '%\".$this->prefix.\"%'\",'OBJECT');\n\t\t$new_options = array();\n\t\t//if we got options here, we need to transfert it in a new array and store it with new way\n\t\tif(count($AWD_options) > 0){\n\t\t\tforeach($AWD_options as $options=>$object){\n\t\t\t\t$option_name = str_ireplace($this->prefix,\"\",$object->option_name);\n\t\t\t\t$new_options[$option_name] = $object->option_value;\n\t\t\t\t//remove all old options form the table options\n\t\t\t\tdelete_option($object->option_name);\n\t\t\t}\n\t\t\tupdate_option($this->filterName,$new_options);\n\t\t}\n\t}", "protected function setOptionDataForm($where = array()){\r\n parent::setOptionDataForm($where);\r\n \n\t\t$this->load->model('role_model','fk_role_id');\n\t\t/* adjust second parameter on function dropdown with your column name to show in dropdown */\n\t\t$dataFk_role_id = $this->fk_role_id->dropdown('id','id');\n\t\t$this->form['role_id']['options'] = $dataFk_role_id;\n\t\t$this->load->model('user_model','fk_user_id');\n\t\t/* adjust second parameter on function dropdown with your column name to show in dropdown */\n\t\t$dataFk_user_id = $this->fk_user_id->dropdown('id','id');\n\t\t$this->form['user_id']['options'] = $dataFk_user_id;\r\n }", "function allan_change_city_to_dropdown( $fields ) {\n\n\t$city_args = wp_parse_args( array(\n\t\t'type' => 'select',\n\t\t'options' => array(\n\t\t\t'Seleccione' => 'Seleccione'\n\t\t),\n\t), $fields['shipping']['shipping_city'] );\n\n\t$fields['shipping']['shipping_city'] = $city_args;\n\t$fields['billing']['billing_city'] = $city_args; \n\t$fields['billing']['billing_city']['priority'] = 80;\n\n\treturn $fields;\n\n}", "public function updateOptions(array $options);", "function _select ($name, $id, $attribs, $options, $value)\n\t{\n\t\t$xhtml = '<div class=\"select\"><select'\n\t\t. ' name=\"' . $this->view->escape($name) . '\"'\n\t\t. ' id=\"' . $this->view->escape($id) . '\"'\n\t\t. $this->_htmlAttribs($attribs)\n\t\t. \">\";\n\n\t\t// build the list of options\n\t\t$list = array();\n\t\t$translator = $this->getTranslator();\n\t\tforeach ((array) $options as $opt_value => $opt_label) {\n\t\t\tif (is_array($opt_label)) {\n if (null !== $translator) {\n $opt_value = $translator->translate($opt_value);\n }\n \n $list[] = '<optgroup'\n . ' label=\"' . $this->view->escape($opt_value) .'\">';\n foreach ($opt_label as $val => $lab) {\n $list[] = $this->_build($val, $lab, $value, false);\n }\n $list[] = '</optgroup>';\n } else {\n\t\t\t\t$list[] = $this->_build($opt_value, $opt_label, $value, false);\n }\n\t\t}\n\n\t\t// add the options to the xhtml and close the select\n\t\t$xhtml .= implode(\"\", $list) . \"</select> <a href=\\\"#\\\" class=\\\"remove\\\">-</a></div>\";\n\n\t\treturn $xhtml;\n\t}" ]
[ "0.62398833", "0.62143314", "0.6133242", "0.60723305", "0.60415757", "0.59451175", "0.5846824", "0.5843812", "0.5821081", "0.5770401", "0.57556033", "0.57293034", "0.56842977", "0.5597456", "0.559586", "0.5572637", "0.55342585", "0.54906327", "0.54776996", "0.5447891", "0.5430031", "0.54262716", "0.5423287", "0.5414708", "0.53649086", "0.53590924", "0.53582084", "0.534102", "0.53386843", "0.53363377", "0.5318967", "0.5316336", "0.5313907", "0.5306491", "0.52927226", "0.5288275", "0.5284621", "0.5283637", "0.5281598", "0.52726734", "0.52629906", "0.52384996", "0.52381176", "0.5231494", "0.5227227", "0.5223872", "0.5210728", "0.52048904", "0.52015996", "0.51958483", "0.5193919", "0.518139", "0.5163954", "0.5161674", "0.5160834", "0.51501685", "0.51491994", "0.5138127", "0.5137015", "0.5127322", "0.5124562", "0.5119821", "0.51137316", "0.5100313", "0.5099499", "0.5098873", "0.509857", "0.50971687", "0.5095954", "0.5092543", "0.508756", "0.50693065", "0.5068594", "0.5064188", "0.50561816", "0.50487435", "0.5046806", "0.5040333", "0.5037836", "0.50326717", "0.5031156", "0.50288993", "0.5020075", "0.50195855", "0.50127363", "0.50098234", "0.5007177", "0.50016874", "0.50016874", "0.50016874", "0.50016874", "0.5001617", "0.49958602", "0.49953902", "0.49885815", "0.49866608", "0.49767476", "0.49764907", "0.49745658", "0.4970363", "0.4970213" ]
0.0
-1
Update value to select option
public function update($valueId, $data, $store = null) { /** @var $productOptionValue Mage_Catalog_Model_Product_Option_Value */ $productOptionValue = Mage::getModel('catalog/product_option_value')->load($valueId); if (!$productOptionValue->getId()) { $this->_fault('value_not_exists'); } /** @var $option Mage_Catalog_Model_Product_Option */ $option = $this->_prepareOption($productOptionValue->getOptionId(), $store); if (!$option->getId()) { $this->_fault('option_not_exists'); } $productOptionValue->setOption($option); // Sanitize data foreach ($data as $key => $value) { $data[$key] = Mage::helper('catalog')->stripTags($value); } if (!isset($data['title']) OR empty($data['title'])) { $this->_fault('option_value_title_required'); } $data['option_type_id'] = $valueId; $data['store_id'] = $this->_getStoreId($store); $productOptionValue->addValue($data); $productOptionValue->setData($data); try { $productOptionValue->save()->saveValues(); } catch (Exception $e) { $this->_fault('update_option_value_error', $e->getMessage()); } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set_value($value) {\n\n // Is the select multiple?\n $multiple = $this->field->hasAttribute('multiple');\n $singleselect = ($this->field->hasClass('singleselect') || $this->field->hasClass('urlselect'));\n\n // Here we select the option(s).\n if ($multiple) {\n // Split and decode values. Comma separated list of values allowed. With valuable commas escaped with backslash.\n $options = preg_replace('/\\\\\\,/', ',', preg_split('/(?<!\\\\\\),/', trim($value)));\n // This is a multiple select, let's pass the multiple flag after first option.\n $afterfirstoption = false;\n foreach ($options as $option) {\n $this->field->selectOption(trim($option), $afterfirstoption);\n $afterfirstoption = true;\n }\n } else {\n // By default, assume the passed value is a non-multiple option.\n $this->field->selectOption(trim($value));\n }\n\n // Wait for all the possible AJAX requests that have been\n // already triggered by selectOption() to be finished.\n if ($this->running_javascript()) {\n // Trigger change event and click on first skip link, as some OS/browsers (Phantomjs, Mac-FF),\n // don't close select option field and trigger event.\n if (!$singleselect) {\n $dialoguexpath = \"//div[contains(concat(' ', normalize-space(@class), ' '), ' moodle-dialogue-focused ')]\";\n if (!$node = $this->session->getDriver()->find($dialoguexpath)) {\n $script = \"Syn.trigger('change', {}, {{ELEMENT}})\";\n try {\n $driver = $this->session->getDriver();\n if ($driver instanceof \\Moodle\\BehatExtension\\Driver\\MoodleSelenium2Driver) {\n $driver->triggerSynScript($this->field->getXpath(), $script);\n }\n $driver->click('//body//div[@class=\"skiplinks\"]');\n } catch (\\Exception $e) {\n return;\n }\n } else {\n try {\n $this->session->getDriver()->click($dialoguexpath);\n } catch (\\Exception $e) {\n return;\n }\n }\n }\n $this->session->wait(behat_base::get_timeout() * 1000, behat_base::PAGE_READY_JS);\n }\n }", "function update_option($option_key, $option_value) {\n\t\tupdate_option( $option_key, $option_value );\n }", "function update_option($option, $value, $autoload = \\null)\n {\n }", "public function update_option($key, $value = null) {\n $options = $this->get_options();\n $options[$key] = $value;\n update_option($this->get_domain(), $options);\n $this->options = $options;\n }", "function update_option($name, $current, $value, $text=\"\") {\n $r = '<option value=\"' . $value . '\"';\n // Check for stickiness\n if ($current = $value )\n $r .= 'selected=\"selected\"';\n if ($text=\"\")\n $r .= $value;\n else\n $r .= $text;\n $r .= \"/>\";\n return $r;\n}", "function update_site_option($option, $value)\n {\n }", "protected function update_option( $option, $value ) {\n\t\t\t$this->options[$option] = $value;\n\t\t\tupdate_option( 'better-related', $this->options );\n\t\t}", "function wpjsfsp_update_option( $key = '', $value = false ) {\n\treturn \\WPJSFSP\\Options::update( $key, $value );\n}", "function cjpopups_update_option($option_name, $option_value){\n\tglobal $wpdb;\n\t$options_table = cjpopups_item_info('options_table');\n\tif(is_array($option_value)){\n\t\t$option_value = serialize($option_value);\n\t}else{\n\t\t$option_value = $option_value;\n\t}\n\t$update_option_data = array(\n\t\t'option_name' => $option_name,\n\t\t'option_value' => $option_value,\n\t);\n\t$option_info = $wpdb->get_row(\"SELECT * FROM $options_table WHERE option_name = '{$option_name}'\");\n\tif(!is_null($option_info)){\n\t\tcjpopups_update($options_table, $update_option_data, 'option_id', $option_info->option_id);\n\t}\n}", "function update_option( $key = false, $value = false ) {\n\t\t\t\t// Prepare variables\n\t\t\t\t$settings = get_option( $this->option );\n\t\t\t\t$new_settings = array( );\n\t\t\t\t// Prepare data\n\t\t\t\tforeach ( $settings as $id => $val )\n\t\t\t\t\t$new_settings[$id] = ( $id == $key ) ? $value : $val;\n\t\t\t\t// Update option and return operation result\n\t\t\t\treturn update_option( $this->option, $new_settings );\n\t\t\t}", "function pre_update_option($value, $option, $old_value)\n {\n }", "function updateOption($caption,$value,$type,$db) {\r\n//\t$res=mysql_query($sql,$db);\r\n\r\n}", "function bf_update_option($name, $value, $commit = true) {\r\n\tglobal $bf_options;\r\n\t$bf_options->get_options();\r\n\t\r\n\t$bf_options->$name = $value;\r\n\t\r\n\tif ($commit) {\r\n\t\tbf_update_options();\r\n\t\tbf_flush_options();\r\n\t}\r\n}", "function update_module_option($mod_name, $key, $value) {\n $this->modules->$mod_name->options->$key = $value;\n $new_options = $this->modules->$mod_name->options;\n $result = update_option($this->clientele_prefix . $mod_name . '_options', (array) $new_options);\n $this->$mod_name->module = $this->modules->$mod_name;\n return $result;\n }", "protected function updateOption($option, $value)\n\t{\n\t\treturn update_option($option,$value);\n\t}", "public function setSelectedValue($value);", "protected function _update_selected_values() {\n\t\t$this->selected = Array();\n\t\tforeach ($this->options as $value => $label) {\n\t\t\tif (isset($_POST[$this->name().'_'.$value])) {\n\t\t\t\t$this->selected [$this->name().'_'.$value] = true;\n\t\t\t}\n\t\t}\n\t}", "public function set( $option, $value );", "function setLocalOption($name,$value)\n\t{\n\t\t$this->_options[$name] = $value;\n\t}", "public function\r\n set_value($value)\r\n {\r\n #print_r($this->options);\r\n \r\n if (array_key_exists($value, $this->options)) {\r\n foreach (array_keys($this->options) as $key) {\r\n $this->options[$key]->remove_attribute('selected');\r\n }\r\n \r\n $this->options[$value]->set_attribute_str('selected');\r\n } else {\r\n throw new HTMLTags_ValueNotSetInSelectException(\r\n $value\r\n );\r\n }\r\n }", "public function updateOptionsWithPost() {\n if (isset($_POST[$this->selectedProviderOptName])) {\n $selected = (string)$_POST[$this->selectedProviderOptName];\n $this->setSelectedProvider($selected);\n }\n if (isset($_POST[$this->updateUrlOverrideOptName])) {\n $url = (string)$_POST[$this->updateUrlOverrideOptName];\n $this->setUpdateUrlOverride($url);\n }\n }", "public function setOption($name, $value);", "public function setOption($name, $value);", "public function setOption($name, $value);", "public function setOption($name, $value);", "function montar_select_perfilPaciente(&$select_perfis, $objPerfilPaciente, $objPerfilPacienteRN, &$objPaciente) {\n $selected = '';\n $arr_perfis = $objPerfilPacienteRN->listar($objPerfilPaciente);\n\n $select_perfis = '<select class=\"form-control selectpicker\" onchange=\"val()\" id=\"select-country idSel_perfil\"'\n . ' data-live-search=\"true\" name=\"sel_perfil\">'\n . '<option data-tokens=\"\" ></option>';\n\n foreach ($arr_perfis as $perfil) {\n $selected = '';\n if ($perfil->getIdPerfilPaciente() == $objPaciente->getIdPerfilPaciente_fk()) {\n $selected = 'selected';\n }\n\n $select_perfis .= '<option ' . $selected . ' value=\"' . $perfil->getIdPerfilPaciente() . '\" data-tokens=\"' . $perfil->getPerfil() . '\">' . $perfil->getPerfil() . '</option>';\n }\n $select_perfis .= '</select>';\n}", "public function update_option($name,$value,$flush=false)\n\t{\n\t\t$this->options[$name] = $value;\n\t\tif($flush === true)\n\t\t\t$this->save();\n\t}", "public function setOption($option, $value);", "function update_array_option($option, $value) {\r\n\t\t$options = get_option('foliamaptool');\r\n\t\t$options[$option] = $value;\r\n\t\tupdate_option('foliamaptool', $options);\r\n\t}", "public function select_values_for_form( EntryValueSelect $entry_value_select );", "public function select_option($id, $value)\n\t{\n\t\t$this->connection()->post(\"element/$id/selected\", array('value' => $value));\n\t}", "function option_update(string $key, $value, array $meta = [])\n {\n return Options::update($key, $value, $meta);\n }", "function scs_update_option($data)\n\t{\n\t\treturn update_option(basename(dirname(__FILE__)), $data);\n\t}", "public function editOption($name, $value)\n {\n $this->runWpCliCommand('option', 'update', [$name, $value]);\n }", "function acf_update_option($option = '', $value = '', $autoload = \\null)\n{\n}", "public function set_option($option, $value) {\n $this->options[$option] = $value;\n \n }", "function okrs_related_to_select($value)\n{\n\n $selected = '';\n if($value == 'okrs'){\n $selected = 'selected';\n }\n echo \"<option value='okrs' \".$selected.\">\".\n _l('okrs').\"\n </option>\";\n\n}", "function select_option()\r\n{}", "function c5_set_option( $option_id, $option_value ) {\n $options_id = ot_options_id();\n\n // Get the options array.\n $options = get_option( $options_id );\n\n // Update the options array.\n if ( isset( $options[$option_id] ) ) {\n $options[$option_id] = $option_value;\n update_option( $options_id, $options );\n }\n}", "public function setOption($key, $value);", "function setValue($value) {\n $values = (array) $value;\n foreach ($values as $onevalue) {\n if (($this->tags || $this->ajax) &&\n (!$this->optionExists($onevalue)) &&\n ($onevalue !== '_qf__force_multiselect_submission')) {\n $this->addOption($onevalue, $onevalue);\n }\n }\n return parent::setValue($value);\n }", "function update_user_option($user_id, $option_name, $newvalue, $is_global = \\false)\n {\n }", "public function setValueByArray($a_value) {\n\t\tforeach ((array) $this->select_inputs as $postvar => $values)\n\t\t\t$this->select_inputs[$postvar][\"selected\"] = $a_value[$postvar];\n\t}", "function changeSelectOptionSelected($name,$value,$selected,$html,$pattern='<option value=\"__value__\">') {\n\t\tif (preg_match('/<(select*)\\\\b name=\"'.$name.'\"[^>]*>(.*?)<\\/\\\\1>/sim', $html, $regs)) {\n\t\t\t$selectHtml=$regs[0];\n\t\t\t\n\t\t\t$pattern=str_replace('__value__',$value,$pattern);\n\t\t\tif ($selected==true)\n\t\t\t\t$patternNew=str_replace('>',' selected=\"selected\" >',$pattern);\n\t\t\t\n\t\t\t\n\t\t\t$selectNewHtml=str_replace($pattern,$patternNew,$selectHtml);\n\t\t\t$html=str_replace($selectHtml,$selectNewHtml,$html);\n\t\t\treturn $html;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "protected function adjustOptionsValues()\n {\n $this->init();\n $this->create();\n }", "function yaz_set_option($id, $name, $value)\n{\n}", "public function updateOption($data, $optionId);", "private function set_option($option, $value) {\n\n }", "public function setSelect2Option($name, $value)\n {\n $options = isset($this->controlPrototype->attrs['data-widget-select2-options'])\n ? json_decode($this->controlPrototype->attrs['data-widget-select2-options']) : array();\n $options->$name = $value;\n $this->controlPrototype->attrs['data-widget-select2-options'] = json_encode($options);\n return $this;\n }", "public function save_option() {\n\t\tupdate_option( self::OPTION_NAME, $this->ryte_option );\n\t}", "public function setOption(string $name, $value);", "public function setOption(string $name, $value);", "public function Lista_DepartamentoUpdate()//FUNCION PARA LLAMAR LA LISTA DE DEPARTAMENTOS\n {\n include('conexion.php');\n $Consulta_Departamento = \"SELECT * FROM p_departamento ORDER BY dep_nombre\";\n\t\t\t $Resultado_Consulta_Departamento = $conexion->prepare($Consulta_Departamento);\n $Resultado_Consulta_Departamento->execute();\n\t\t\t\t\t while ($f = $Resultado_Consulta_Departamento->fetch())\t\n {\n\t\t\t\t\t\t echo '<option value=\"'.$f[dep_codigo].'\">'.$f[dep_nombre].'</option>';\n }\n }", "function setOption($name, $value)\n {\n $this->options[$name] = $value;\n }", "public static function edit_selectbox($name,$value,$i,$arry_select = array(),$field_value = 'id', $field_label='name',$size = 1,$multi = 0,$class=''){\n\t\t$class = $class? $class:'chosen-select';\n if(!$multi){\n\t\t\t$html_sized = $size > 1 ? \"size=$size\":\"\" ;\n\t\t\t$html = '<select class=\"form-control chosen-select\" name=\"'.$name.'_'.$i.'\" id=\"'.$name.'_'.$i.'\" '.$html_sized.'>';\n\t\t\t$compare = 0;\n\t\t\tif(@$value)\n\t\t\t\t$compare = $value;\n\t\t\t$j = 0;\n\t\t\tif(count($arry_select) && $arry_select){\n\t\t\t\tif(is_object(end($arry_select))){\n\t\t\t\t\tforeach ($arry_select as $select_item) {\n\t\t\t\t\t\t$checked = \"\";\n\t\t\t\t\t\tif(!$compare && !$j){\n\t\t\t\t\t\t\t$checked = \"selected=\\\"selected\\\"\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif($compare === ($select_item->$field_value))\n\t\t\t\t\t\t\t\t$checked = \"selected=\\\"selected\\\"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$html .= '<option value=\"'.$select_item->$field_value.'\" '. $checked.'>'.$select_item -> $field_label.'</option>';\t\n\t\t\t\t\t\t$j ++;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tforeach ($arry_select as $key => $name) {\n\t\t\t\t\t\t$checked = \"\";\n\t\t\t\t\t\tif(!$compare && !$j){\n\t\t\t\t\t\t\t$checked = \"selected=\\\"selected\\\"\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif($compare == $key)\n\t\t\t\t\t\t\t\t$checked = \"selected=\\\"selected\\\"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$html .= '<option value=\"'.$key.'\" '. $checked.'>'.$name.'</option>';\t\n\t\t\t\t\t\t$j ++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$html .= '</select>';\n\t\t\t$html .= '<input type=\"hidden\" name=\"'.$name.'_'.$i.'_original'.'\" value=\"'.$value.'\"/>';\n\t\t} else {\n\t\t\t$html_sized = $size > 1 ? \"size=$size\":\"\" ;\n\t\t\t$html = '<select class=\"form-control chosen-select-no-results\" name=\"'.$name.'_'.$i.'[]\" id=\"'.$name.'_'.$i.'\" '.$html_sized.' multiple=\"multiple\">';\n\t\t\t$array_value = isset($value)?explode(',',$value):array();\n\t\t\t$j = 0;\n\t\t\tif(count($arry_select)){\n\t\t\t\tif(is_object(end($arry_select))){\n\t\t\tforeach ($arry_select as $select_item) {\n\t\t\t\t$checked = \"\";\n\t\t\t\t\t\tif(in_array($select_item->$field_value,$array_value))\n\t\t\t\t\t$checked = \"selected=\\\"selected\\\"\";\n\t\t\t\t\t$html .= '<option value=\"'.$select_item->$field_value.'\" '. $checked.'>'.$select_item -> $field_label.'</option>';\t\n\t\t\t\t\t\t$j ++;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tforeach ($arry_select as $key => $name) {\n\t\t\t\t\t\tif(in_array($name,$array_value))\n\t\t\t\t\t\t$checked = \"selected=\\\"selected\\\"\";\n\t\t\t\t\n\t\t\t\t\t\t$html .= '<option value=\"'.$key.'\" '. $checked.'>'.$name.'</option>';\t\n\t\t\t\t$j ++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$html .= '</select>';\n\t\t\t$html .= '<input type=\"hidden\" name=\"'.$name.'_'.$i.'_original'.'\" value=\"'.$value.'\"/>';\n\t\t}\n\t\t\n\t\treturn $html;\n\t}", "function montar_select_sexo(&$select_sexos, $objSexoPaciente, $objSexoPacienteRN, &$objPaciente) {\n $selected = '';\n $arr_sexos = $objSexoPacienteRN->listar($objSexoPaciente);\n\n $select_sexos = '<select onfocus=\"this.selectedIndex=0;\" onchange=\"val_sexo()\" '\n . 'class=\"form-control selectpicker\" id=\"select-country idSexo\" data-live-search=\"true\" '\n . 'name=\"sel_sexo\">'\n . '<option data-tokens=\"\"></option>';\n\n foreach ($arr_sexos as $sexo) {\n $selected = '';\n if ($sexo->getIdSexo() == $objPaciente->getIdSexo_fk()) {\n $selected = 'selected';\n }\n $select_sexos .= '<option ' . $selected . ' value=\"' . $sexo->getIdSexo() . '\" data-tokens=\"' . $sexo->getSexo() . '\">' . $sexo->getSexo() . '</option>';\n }\n $select_sexos .= '</select>';\n}", "private function update_widget_options( $name, $value ) {\n\t\tupdate_option( 'widget_' . $name, $value );\n\t}", "function fg_write_stato($id_stato=0)\n{\n echo \"<select class=\\\"form_field_enabled\\\" id=\\\"select_stato\\\" name=\\\"id_stato\\\">\";\n\n $yes_selected = \"selected=\\\"selected\\\"\";\n $no_selected = \"\";\n\n $ss = DB::newSelect(\"location_stati\");\n $ss->add(\"id_stato\");\n $ss->add(\"nome\");\n $ss->addOrdering(\"nome\");\n\n $result = $ss->exec();\n $selected = $id_stato>0 ? $no_selected : $yes_selected;\n echo \"<option value=\\\"-1\\\" \".$selected.\">(Seleziona uno stato)</option>\\n\";\n while ($row = mysql_fetch_assoc($result))\n {\n if ($row['id_stato']==$id_stato)\n $selected = $yes_selected;\n else\n $selected = $no_selected;\n echo \"<option value=\\\"\".$row['id_stato'].\"\\\" $selected>\".$row['nome'].\"</option>\\n\";\n }\n mysql_free_result($result);\n\n echo \"</select>\";\n}", "public function set_license_option($option_key, $value) {\r\n\treturn update_site_option( $this->plugin_config['plugin_prefix'].'_'.$option_key, trim($value) );\r\n}", "function update_options() {\n\t\tif ( get_current_blog_id() !== $this->options_blog_id ) {\n\t\t\treturn;\n\t\t}\n\n\t\tupdate_option( $this->option_name, $this->options );\n\t}", "function update_blog_option($id, $option, $value, $deprecated = \\null)\n {\n }", "function update_network_option($network_id, $option, $value)\n {\n }", "public function setSelectedItem($name,$value) {\n $this->addHiddenField('on0',$name);\n $this->addHiddenField('os0',$value);\n }", "public function setValue($v){\n $this->value = $v;\n }", "public function setOption($key, $value)\n {\n $this->options[$key] = $value;\n }", "public function setOption($key, $value)\n {\n $this->_options[$key] = $value;\n }", "public function set( $name, $value )\n\t\t{\n\t\t\t$this->_options[$name] = $value;\n\t\t\t$this->_dirty = TRUE;\n\t\t}", "public function setSelect2Value($originalId, $value, $multiSelect = false)\n {\n $select2selector = '#s2id_' . $originalId;\n\n // Wait for select2 to appear\n $select2link = $this->tc->wd->wait()->until(\n WebDriverExpectedCondition::presenceOfElementLocated(\n WebDriverBy::cssSelector($select2selector . ' ' . ($multiSelect ? 'input' : 'a'))\n )\n );\n\n // Click on element to open dropdown - to copy users behavior\n $select2link->click();\n\n $this->log('Sending keys to select2: %s', $value);\n\n // Insert searched term into s2 generated input\n $this->tc->wd\n ->findElement(WebDriverBy::cssSelector($multiSelect ? $select2selector . ' input' : '#select2-drop input'))\n ->sendKeys($value);\n\n // Wait until result are rendered (or maybe loaded with ajax)\n $firstResult = $this->tc->wd->wait()->until(\n WebDriverExpectedCondition::presenceOfElementLocated(\n WebDriverBy::cssSelector('.select2-drop .select2-result.select2-highlighted')\n )\n );\n\n $this->log('Dropdown detected, selecting the first result: %s', $firstResult->getText());\n\n // Select first item in results\n $firstResult->click();\n }", "function edit(){\n global $wpdb;\n global $DOPBSP;\n \n $id = $_POST['id'];\n $field = $_POST['field'];\n $value = $_POST['value'];\n $language = $_POST['language'];\n \n if ($field == 'label'){\n $value = str_replace(\"\\n\", '<<new-line>>', $value);\n $value = str_replace(\"\\'\", '<<single-quote>>', $value);\n $value = utf8_encode($value);\n \n $field_data = $wpdb->get_row($wpdb->prepare('SELECT * FROM '.$DOPBSP->tables->forms_fields_options.' WHERE id=%d',\n $id));\n \n $translation = json_decode($field_data->translation);\n $translation->$language = $value;\n \n $value = json_encode($translation);\n $field = 'translation';\n }\n \n $select_option = $wpdb->get_row($wpdb->prepare('SELECT * FROM '.$DOPBSP->tables->forms_fields_options.' WHERE id=%d',\n $id));\n $wpdb->update($DOPBSP->tables->forms_fields_options, array($field => $value), \n array('id' => $_POST['id']));\n \n echo $select_option->field_id;\n \n die();\n }", "function setOption($option, $val)\n {\n $this->_options[$option] = $val;\n }", "protected function getSelectedValue() {}", "function update_option($input) {\r\n if ( $_REQUEST['confirm-reset-options'] ) {\r\n delete_option($this->optionsName);\r\n wp_redirect(admin_url('options-general.php?page=' . $this->menuName . '&tab=' . $_POST['active_tab'] . '&reset=true'));\r\n exit();\r\n } else {\r\n wp_redirect(admin_url('options-general.php?page=' . $this->menuName . '&tab=' . $_POST['active_tab'] . '&updated=true'));\r\n exit();\r\n }\r\n }", "public function set(string $option, $value): self;", "static public function update_option( $key, $value ) {\n\n\t\tif ( empty( $key ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Load the options\n\t\t$plugin_options = get_option( 'plugin_name_settings', array() );\n\n\t\t// Update the specified value in the array\n\t\t$plugin_options[ $key ] = $value;\n\n\t\t// Save the options back to the DB\n\t\treturn update_option( 'plugin_name_settings', $plugin_options );\n\t}", "function bf_update_options() {\r\n\tglobal $bf_options;\r\n\tupdate_option(THEME_ID . '_options', maybe_serialize($bf_options));\r\n}", "function setValue($value){\r\n\t\t$this->value = $value;\r\n\t}", "function initlab_field_mailman_version_cb($args) {\n // Get the value of the setting we've registered with register_setting()\n $options = get_option('initlab_options', []);\n ?>\n <select id=\"<?php echo esc_attr($args['label_for']); ?>\" name=\"initlab_options[<?php echo esc_attr($args['label_for']); ?>]\">\n <?php\n foreach ($args['options'] as $value => $label) {\n ?>\n <option value=\"<?php echo esc_attr($value)?>\" <?php echo array_key_exists($args['label_for'], $options) ? selected($options[$args['label_for']], $value, false) : ''; ?>>\n <?php esc_html_e($label, 'initlab-addons'); ?>\n </option>\n <?php\n }\n ?>\n </select>\n <?php\n}", "public function setOption($index, $value)\n {\n $this->optionManager->set($index, $value);\n }", "public function save()\n {\n update_option($this->optionKey, $this->fields);\n }", "function update_option($name, $value)\n{\n $CI =& get_instance();\n $CI->db->where('name', $name);\n $CI->db->update('options', array(\n 'value' => $value\n ));\n \n if ($CI->db->affected_rows() > 0) {\n return true;\n }\n\n return false;\n}", "public function updatedOptIn()\n {\n $this->updateValue(\n 'opt_in',\n $this->optIn,\n \"You have updated the customer's marketing email subscription.\"\n );\n }", "function setValue($value) {\n $this->value = $value;\n }", "function uds_pricing_render_general_options_select($key, $value)\n{\n\tglobal $uds_pricing_general_options;\n\t$field = $uds_pricing_general_options[$key];\n\t$default = $value;\n\t\n\t$options = '';\n\tforeach($field['options'] as $name => $value) {\n\t\t$selected = $name == $default ? 'selected=\"selected\"' : '';\n\t\t$options .= \"<option value='$name' $selected>$value</option>\";\n\t}\n\t\n\t$out = \"\n\t\t<div>\n\t\t\t<label>{$field['label']}</label>\n\t\t\t<select name='uds-pricing-$key'>\n\t\t\t\t$options\n\t\t\t</select>\n\t\t</div>\n\t\";\n\treturn $out;\n}", "function hundope_select_field_render() { \n\t\n}", "public function update_option( $key = '', $value = '' ) {\n\n\t\tif ( ! $key ) {\n\t\t\t$this->_doing_it_wrong( __METHOD__, 'No option key has been specified.', '2.9.0' );\n\t\t\treturn false;\n\t\t}\n\n\t\treturn $this->update_settings( [ $key => $value ] );\n\t}", "public function setOption($name, $value = null);", "public static function setOption($key, $value) {\n // TODO\n }", "function set_option($name, $value)\n{\n $db = get_db();\n $sql = \"REPLACE INTO {$db->Option} (name, value) VALUES (?, ?)\";\n $db->query($sql, array($name, $value));\n\n // Update the options cache.\n $bootstrap = Zend_Registry::get('bootstrap');\n $options = $bootstrap->getResource('Options');\n $options[$name] = $value;\n $bootstrap->getContainer()->options = $options;\n}", "public function setValue($value){\n $this->_value = $value;\n }", "function _field_select($fval) \n {\n\n // if need be, copy the current vals for safety + reset()\n $postedvals = (is_array($fval))? $fval : array();\n\n $res = sprintf(\"<select size=\\\"1\\\" name=\\\"%s\\\" id=\\\"%s\\\" class=\\\"%s\\\" %s>\",\n $this->fname, \n $this->fname, \n (isset($this->attribs['class']))? $this->attribs['class'] : $this->element_class,\n $this->extra_attribs);\n\n if (empty($fval) and isset($this->attribs['top_value'])) {\n $res .= \"<option value=\\\"\\\">\". $this->attribs['top_value'] .\"</option>\"; \n } \n\n $opts = $this->opts; # $this->_array_stringify($this->opts);\n foreach ($opts as $optkey => $optval) { \n $res .= sprintf(\"<option value=\\\"%s\\\"%s>%s</option>\",\n $this->_htmlentities($optkey),\n ((in_array($optkey, $postedvals) || $optkey == $fval) and !empty($fval))? \" selected\" : \"\",\n $this->_htmlentities($optval));\n }\n $res .= \"</select>\";\n return $res;\n }", "public function setOptions()\n\t{\n\t\tupdate_option($this->optionVar, serialize($this->options));\n\t}", "public function updateOptions(array $options);", "function print_select($value){\n\t\techo $this->before_option_title.$value['name'].$this->after_option_title;\n\t\t$input_value = $this->get_field_value($value['id']);\n\t\t\t\n\t\techo '<select class=\"option-select'.((isset($value['conditional']) && $value['conditional'])?' option-conditional':'').'\" name=\"'.$value['id'].'\" id=\"'.$value['id'].'\">';\n\t\t\n\t\tforeach ($value['options'] as $option) {\n\t\t\t$attr='';\t\n\t\t\t if ( get_option( $value['id'] ) == $option['id']) {\n\t\t\t\t$attr = ' selected=\"selected\"';\n\t\t\t }\n\t\t \t if ( $option['id'] == 'disabled') {\n\t\t\t\t$attr.= ' disabled=\"disabled\"';\n\t\t\t }\n\t\t\t if($option['class']){\n\t\t\t\t$attr.=' class=\"'.$option['class'].'\"';\t\t\t \t\n\t\t\t }\n\t\t\techo '<option '.$attr.' value=\"'.$option['id'].'\">'.$option['name'].'</option>'; \n\t\t} \n\t\n\t\techo '</select>';\n\t\t$this->close_option($value);\n\t}", "public function resultat_option()\n {\n $resultat = $this->m_feuille_controle->resultat_liste_option();\n $results = json_decode(json_encode($resultat), true);\n\n echo \"<option value='' selected='selected'>(choisissez)</option>\";\n foreach ($results as $row) {\n echo \"<option value='\" . $row['id'] . \"'>\" . $row['value'] . \"</option>\";\n }\n }", "public function set_option( $option, $value ) {\n\t\t$this->options[ $option ] = $value;\n\t}", "public function setOption($key, $value): void\n {\n $this->options[$key] = $value;\n }", "function store(){\n update_option( $this->option_name, $this->settings );\n }", "final protected function setOption($option, $value = null) {\n if (is_null($value)) {\n $this->selectedOptions = [ $option => 1 ];\n } else {\n $this->valueOptions[$option] = $value;\n }\n }", "public function setValue($value) {\n $this->value = $value->value;\n }", "public function Lista_CiudadesUpdate()//FUNCION PARA LLAMAR LA LISTA DE DEPARTAMENTOS\n {\n \n include('conexion.php');\n \n\n $Consulta_Ciudad = \"SELECT * FROM p_ciudad ORDER BY ciud_nombre\";\n\t\t\t $Resultado_Consulta_Ciudad = $conexion->prepare($Consulta_Ciudad);\n $Resultado_Consulta_Ciudad->execute();\n\t\t\t\t\t while ($f = $Resultado_Consulta_Ciudad->fetch())\t\n {\n\t\t\t\t\t\t echo '<option value=\"'.$f[ciud_codigo].'\">'.$f[ciud_nombre].'</option>';\n }\n \n }", "function option_helper($post, $value, $label) {\n $selected = $post->post_status == $value ? 'selected' : '';\n return \"<option value='{$value}' {$selected}>{$label}</option>\";\n }" ]
[ "0.6442171", "0.6270854", "0.6229125", "0.62089556", "0.6166007", "0.6159803", "0.611192", "0.61053884", "0.6094624", "0.6059941", "0.59657633", "0.5955231", "0.5927763", "0.5921988", "0.59145087", "0.58787674", "0.58776337", "0.57906127", "0.57829636", "0.5740512", "0.5712233", "0.57041067", "0.57041067", "0.57041067", "0.57041067", "0.56942594", "0.5673633", "0.56726706", "0.56651044", "0.5664687", "0.56556207", "0.564783", "0.56381434", "0.5627763", "0.56218237", "0.56197995", "0.56169355", "0.55804765", "0.556711", "0.55636215", "0.5557694", "0.5556618", "0.55033743", "0.55012774", "0.5487328", "0.5477422", "0.547244", "0.54619294", "0.5452582", "0.54471123", "0.54390705", "0.54390705", "0.5394942", "0.53867656", "0.53841126", "0.5350405", "0.53472304", "0.53287184", "0.53238493", "0.53115016", "0.5311483", "0.5306608", "0.53062814", "0.5288276", "0.52852803", "0.5282942", "0.52803725", "0.5268879", "0.5266076", "0.52655214", "0.5248582", "0.5247618", "0.524682", "0.5243384", "0.5241208", "0.52387446", "0.52261657", "0.5224664", "0.52208805", "0.52153957", "0.52057785", "0.51993364", "0.519628", "0.51961493", "0.51953405", "0.5186437", "0.51824987", "0.5182067", "0.51709914", "0.5168421", "0.51653737", "0.516069", "0.51539826", "0.51527286", "0.5147248", "0.5144599", "0.5142026", "0.5140415", "0.51363444", "0.5134488", "0.5130136" ]
0.0
-1
Delete value from select option
public function remove($valueId) { /** @var $optionValue Mage_Catalog_Model_Product_Option_Value */ $optionValue = Mage::getModel('catalog/product_option_value')->load($valueId); if (!$optionValue->getId()) { $this->_fault('value_not_exists'); } // check values count if(count($this->items($optionValue->getOptionId())) <= 1){ $this->_fault('cant_delete_last_value'); } try { $optionValue->delete(); } catch (Mage_Core_Exception $e) { $this->_fault('not_deleted', $e->getMessage()); } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function removeOption($name);", "function delete_option($option)\n {\n }", "function wpjsfsp_delete_option( $key = '' ) {\n\treturn \\WPJSFSP\\Options::delete( $key );\n}", "public function delete()\n {\n delete_option($this->optionName);\n }", "public function remove_option($option)\n {\n }", "public function delOption($key)\n {\n $old_value = $this->getOption($key);\n unset($this->options[$key]);\n return $old_value;\n }", "function delete(){\n global $wpdb;\n global $DOPBSP;\n \n $id = $_POST['id'];\n \n $select_option = $wpdb->get_row($wpdb->prepare('SELECT * FROM '.$DOPBSP->tables->forms_fields_options.' WHERE id=%d',\n $id));\n $wpdb->delete($DOPBSP->tables->forms_fields_options, array('id' => $id));\n \n echo $select_option->field_id;\n \n die();\n }", "public function deleteSelect()\n {\n $selected=$this->getSelectedFiles();\n if ($selected[0]['type']=='folder')\n {\n $texttoshow=\"LA CARPETA\";\n }\n else\n {\n $texttoshow=\"EL ARCHIVO\";\n }\n $this->showConfirm(\"error\",\"¿SEGURO QUE DESEA ELIMINAR \".$texttoshow.\" \".$selected[0]['filename'].($selected[0]['type']=='folder'?\"\":\".\".$selected[0]['extension']).\"?\",\"BORRAR \".$texttoshow,\"deleteselectaction\",\"close\", null);\n }", "public function remove_options()\n {\n }", "function option_remove(string $key)\n {\n return Options::remove($key);\n }", "public function deleteSelected()\n {\n PatientRecord::whereIn('id', $this->selectedKeys())->delete();\n }", "function delete_site_option($option)\n {\n }", "public function removeOption($optionValue) {\n if(is_array($this->options)) {\n foreach ($this->options as $key => $option) {\n if($option['optionValue'] == $optionValue) {\n unset($this->options[$key]);\n break;\n }\n }\n }\n }", "public function invalidate_selected_users() {\n $this->selected = null;\n }", "function rmOption($id){\t\t\t\t\t\t\t//This is a function to remove options\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t//accepts 1 parameters, the option ID value\r\n\t\t$query= \"DELETE FROM `tbl_option` WHERE `option_id` = $id LIMIT 1\";\r\n\t\t$result = $this->mdb2->query($query) or die('An unknown error occurred while updating the data'); \r\n\t\tif(MDB2::isError($result)){\t\t\t\t\t\t\t//check weather query succeeded\r\n\t\t\treturn false;\r\n\t\t}else{\r\n\t\t\treturn true;\r\n\t\t}\t\r\n\t}", "function delete_option($name)\n{\n $db = get_db();\n $sql = \"DELETE FROM {$db->Option} WHERE `name` = ?\";\n $db->query($sql, array($name));\n\n // Update the options cache.\n $bootstrap = Zend_Registry::get('bootstrap');\n $options = $bootstrap->getResource('Options');\n if (isset($options[$name])) {\n unset($options[$name]);\n }\n $bootstrap->getContainer()->options = $options;\n}", "function remove_allowed_options($del_options, $options = '')\n {\n }", "public function devis_option($id = 0)\n {\n //if (! $this->input->is_ajax_request()) die('');\n $resultat = $this->m_feuille_controle->liste_option_devis_by_client($id);\n $results = json_decode(json_encode($resultat), true);\n\n echo \"<option value='' selected='selected'>(choisissez)</option>\";\n echo \"<option value=-1 >aucun</option>\";\n foreach ($results as $row) {\n echo \"<option value='\" . $row['id'] . \"'>\" . $row['value'] . \"</option>\";\n }\n }", "public function deleteSelected(): void\n {\n $this->emit('userMultipleDelete', $this->selectedKeys());\n }", "public function delete( $option );", "public function unsetSelectionUidValues(): void\n {\n $this->selectionUidValues = [];\n }", "function hello_world_remove() {\ndelete_option('ernaehrungsnews_anzahl');\ndelete_option('ernaehrungsnews_trimmer');\ndelete_option('ernaehrungsnews_kategorieId');\n\n}", "function action_remove() {\n\t\t\t$data = UTIL::get_post('data');\n\t\t\t$id = (int)$data['rem_id'];\n\t\t\t$table = $data['rem_table'];\n\t\t\t\n\t\t\t$choosen = $this->SESS->get('objbrowser', 'choosen');\n\t\t\tunset($choosen[$table][$id]);\n\t\t\tif (count($choosen[$table]) == 0) unset($choosen[$table]);\n\t\t\t\n\t\t\t$this->SESS->set('objbrowser', 'choosen', $choosen);\n\t\t}", "public function delete_options($optionid){\n $this->db->where('form_option_id',$optionid);\n $this->db->delete('form_options');\n }", "protected function cms_delete_option($in_option_key) ///< The name of the option\n {\n // phpcs:enable PSR1.Methods.CamelCapsMethodName.NotCamelCaps\n if (function_exists('delete_option')) {\n $ret = delete_option($in_option_key);\n } else {\n echo \"<!-- BMLTPlugin ERROR (cms_delete_option)! No delete_option()! -->\";\n }\n }", "function deleteValue() {\r\n $val_id = JRequest::getVar('val_id', '', '', 'array');\r\n $value = & JTable::getInstance('cpvalue', 'Table');\r\n foreach ($val_id as $value_id) {\r\n $value->load($value_id);\r\n $value->delete();\r\n }\r\n }", "public function clearSelection();", "public function clearOptions()\n {\n $this->_options = array();\n }", "public function deleteSelected(Request $request){\n if(!$request->input('select')){\n return back();\n }\n client::destroy($request->input('select'));\n return back()->with(['success'=>'تم حذف العميل / الزبون بنجاح']);\n }", "public function deletePostSelection(){\n if(!empty($_POST['dg_item']))\n return $this->CI->db\n ->from($this->tbl_name)\n ->where_in($this->pk_col,$_POST['dg_item'])\n ->delete();\n }", "function projectpentagon_remove() {\n\ndelete_option('projectpentagon_title');\n\ndelete_option('projectpentagon_name1');\n\ndelete_option('projectpentagon_name2');\n\ndelete_option('projectpentagon_name3');\n\ndelete_option('projectpentagon_name4');\n\ndelete_option('projectpentagon_name5');\n\ndelete_option('projectpentagon_color1');\n\ndelete_option('projectpentagon_color2');\n\ndelete_option('projectpentagon_color3');\n\ndelete_option('projectpentagon_color4');\n\ndelete_option('projectpentagon_color5');\n\ndelete_option('projectpentagon_category');\ndelete_option('projectpentagon-titleonpages');\n\n}", "public function remove($value);", "function wpfifc_remove_option() {\r\n\r\n\t\treturn;\r\n\t}", "function cmh_delete_plugin_options() {\r\n\tdelete_option('cmh_options');\r\n}", "public function destroy( $value = NULL, $field = 'id' );", "public function unset()\n {\n unset($this->value);\n }", "public function actionRemove()\n {\n $delete_record = new DeleteRecord();\n $result = Yii::$app->request->post('selection');\n\n if (!$delete_record->isOkPermission(ACTION_DELETE)\n || !$delete_record->isOkSelection($result)\n ) {\n return $this->redirect([ACTION_INDEX]);\n }\n\n $nro_selections = sizeof($result);\n $status = [];\n for ($counter = 0; $counter < $nro_selections; $counter++) {\n try {\n $primary_key = $result[$counter];\n $model = Permission::findOne($primary_key);\n $item = $delete_record->remove($model, 0);\n $status[$item] .= $primary_key . ',';\n } catch (Exception $exception) {\n $bitacora = new Bitacora();\n $bitacora->registerAndFlash(\n $exception,\n 'actionRemove',\n MSG_ERROR\n );\n }\n }\n\n $delete_record->summaryDisplay($status);\n return $this->redirect([ACTION_INDEX]);\n }", "public function delete( $value = NULL, $field = 'id' );", "public function uninstall() {\n\t\tdelete_option( $this->options_key );\n\t}", "function remove($options='')\n {\n\t\t$sql = array();\n\n\t\treturn $this->_remove($sql,$options);\n }", "public function remove_field( $id ) {\n\n\t\t$fields = $this->options;\n\n\t\tif ( isset( $fields[ $id ] ) ) {\n\t\t\tunset( $fields[ $id ] );\n\t\t}\n\n\t\t$this->options = $fields;\n\n\t}", "public function delete()\n {\n return delete_option($this->hash);\n }", "public function delete()\n\t{\n\t\t$selection = $this->input->post('selection');\n\t\t$ignore = implode('|', array_diff($this->ignore_list, $selection));\n\t\t$this->member->ignore_list = $ignore;\n\t\t$this->member->save();\n\n\t\tee()->functions->redirect(ee('CP/URL')->make($this->index_url, $this->query_string));\n\t}", "public function deleteOption($name)\n {\n $this->runWpCliCommand('option', 'delete', [$name]);\n }", "public function getuncheckCinemaadOptions(Request $request)\n {\n $displayoptions = json_decode($request['displayoptions']);\n $datta = array();\n foreach($displayoptions as $options){\n $datta[] = strtolower(str_replace(' ', '_', $options));\n \n }\n $count = Cinemasprice::where([\n ['cinemas_id', '=', $request['id']],\n ['price_key', '=', $request['price_key']],\n ])->count();\n if($count > 0){\n Cinemas::where('id', $request['id'])->update([$request['option'] => serialize($datta)]);\n $cinemas = Cinemasprice::where([\n ['cinemas_id', '=', $request['id']],\n ['price_key', '=', $request['price_key']],\n ])->first();\n $cinemas->delete();\n \n return response(['msg' => 'price deleted'], 200);\n }else{\n \n return response(['msg' => 'Value not present in db!'], 200);\n }\n }", "function convertizer_remove() {\ndelete_option('convertizer_data');\n}", "function delete_blog_option($id, $option)\n {\n }", "static public function delete_option( $key ) {\n\n\t\tif ( empty( $key ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Load the options\n\t\t$plugin_options = get_option( 'plugin_name_settings', array() );\n\n\t\t// Delete the specified key\n\t\tunset($plugin_options[ $key ]);\n\n\t\t// Save the options back to the DB\n\t\treturn update_option( 'plugin_name_settings', $plugin_options );\n\t}", "public function removeAllowedValue(string $value) : OptionMetadataInterface\n {\n if (in_array($value, $this->allowedValues)) {\n unset($this->allowedValues[array_search($value, $this->allowedValues)]);\n }\n\n return $this;\n }", "public function remove_license_option($option_key) {\r\n\treturn delete_site_option($this->plugin_config['plugin_prefix'].'_'.$option_key);\r\n}", "function _delete_option_fresh_site()\n {\n }", "public function offsetUnset($key): void\n {\n $this->selection->offsetUnset($key);\n }", "public static function Delete()\r\n {\r\n return delete_option(self::OPT_SETTINGS);\r\n }", "public function delete($value, $searchField = null);", "function top10_remove() {\r\n//delete_option('omekafeedpull_omekaroot');\r\n}", "public function removeOption($name, $prefix = '')\n\t{\n\t\tif (array_key_exists($prefix . $name, $this->_options)) {\n\t\t\tunset($this->_options[$prefix . $name]);\n\t\t}\n\t}", "public function delete()\n {\n return $this->getValue()->delete();\n }", "function myplugin_deactivate_options( $options )\n{\n\tforeach ($options as $option => $default_value) {\n\t\tdelete_option( $option );\n\t}\n\n\tdelete_option( MYPLUGIN_NAME );\n\n}", "function delete_array_option($option) {\r\n\t\t$options = get_option('foliamaptool');\r\n\t\tif (isset($options[$option])) {\r\n\t\t\tunset ($options[$option]);\r\n\t\t\tupdate_option('foliamaptool', $options);\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "public function deleteValue($key) {\n\t\t$this->config->deleteKey($key);\n\t}", "function removeSelectedUser(){\n if($_SESSION['selectedUser']){\n unset($_SESSION['selectedUser']);\n }\n}", "public function actionDeleteSelection($id)\n\t{\n\t\t$this->loadModelSelection($id)->delete();\n\n\t}", "public function dontSeeOptionInDatabase($key, $value = null)\n {\n $tableName = $this->grabPrefixedTableNameFor('options');\n $criteria['option_name'] = $key;\n if (!empty($value)) {\n $criteria['option_value'] = $value;\n }\n $this->dontSeeInDatabase($tableName, $criteria);\n }", "function action_clear() {\n\t\t\t$this->SESS->remove('objbrowser', 'choosen');\n\t\t}", "function delete_network_option($network_id, $option)\n {\n }", "public function dontHaveOptionInDatabase($key, $value = null)\n {\n $tableName = $this->grabPrefixedTableNameFor('options');\n $criteria['option_name'] = $key;\n if (!empty($value)) {\n $criteria['option_value'] = $value;\n }\n $this->dontHaveInDatabase($tableName, $criteria);\n }", "public function unsetOption($key)\n {\n array_forget($this->options, $key);\n\n return $this;\n }", "protected function removeOption($option)\n\t{\n\t\treturn delete_option($option);\n\t}", "public function remove_license_data() {\r\n\t$license_data = $this->get_license_options();\r\n\tforeach($license_data as $key => $value) {\r\n\t\t//delete_site_option($this->plugin_config['plugin_prefix'].'_'.$key);\r\n\t\t$this->remove_license_option($key);\r\n\t}\r\n}", "function do_delete(){\n\t\t// remove from fieldset:\n\t\t$fieldset = jcf_fieldsets_get( $this->fieldset_id );\n\t\tif( isset($fieldset['fields'][$this->id]) )\n\t\t\tunset($fieldset['fields'][$this->id]);\n\t\tjcf_fieldsets_update( $this->fieldset_id, $fieldset );\n\t\t\n\t\t// remove from fields array\n\t\tjcf_field_settings_update($this->id, NULL);\n\t}", "protected function _purgeValue($value) {}", "public function uncheck_option($option) {\n $option = $this->fixStepArgument($option);\n $this->getSession()->getPage()->uncheckField($option);\n }", "public function getRemoveOriginalValue();", "public function offsetUnset($option)\n {\n return $this->removeOption($option);\n }", "public function deleteOption($optionId);", "public function removeMultiValue($strName, $value)\r\n {\r\n // TODO: remove the value from the multi-value array\r\n }", "public function delete() {\n $this->load->auto('localisation/orderstatus');\n if (($this->request->server['REQUEST_METHOD'] == 'POST')) {\n foreach ($this->request->post['selected'] as $id) {\n $this->modelOrderstatus->delete($id);\n }\n } else {\n $this->modelOrderstatus->delete($_GET['id']);\n }\n }", "function delete_user_option($user_id, $option_name, $is_global = \\false)\n {\n }", "public function removeValue($element);", "static public function clearField($name) {\n $self = self::_getInstance();\n if ($self->_hasField($name)) {\n COption::RemoveOption(self::MODULE_NAME, $name);\n }\n }", "function update_option($input) {\r\n if ( $_REQUEST['confirm-reset-options'] ) {\r\n delete_option($this->optionsName);\r\n wp_redirect(admin_url('options-general.php?page=' . $this->menuName . '&tab=' . $_POST['active_tab'] . '&reset=true'));\r\n exit();\r\n } else {\r\n wp_redirect(admin_url('options-general.php?page=' . $this->menuName . '&tab=' . $_POST['active_tab'] . '&updated=true'));\r\n exit();\r\n }\r\n }", "public function actionDelete($id = '') {\n //$option = new Option();\n $this->findModel($id)->delete();\n Options::deleteAll(['qid' => $id]);\n return $this->redirect(['index']);\n }", "function Delete(){\n return $this->DeleteBy([\"ID_AVAL = \".$this->idAval]);\n }", "function DeleteSelectedContact() {\n $this->AddressBook->deleteContact($this->input->post('master_id'));\n\t\t\t\n\t\t//Update the dropdown Select options so that removes the one just deleted\n\t\t//Select all contacts in the addressbook\n\t\t\t \n\t\t$data['display_block'] = $this->AddressBook->selectContacts();\n\n\t\t//Render the DeleteEntry View with the new list to delete\n\t\t$this->load->view('DeleteEntry', $data);\n\t}", "function dbplus_unselect($relation)\n{\n}", "public function remove_value(string $value)\n {\n if(gettype($this -> value) === \"string\"){\n if($this -> value === $value) $this -> value = null;\n }else{\n if (($key = array_search($value, $this -> value)) !== false) {\n #unset($this -> value[$key]);\n array_splice($this -> value, $key, 1);\n }\n }\n }", "function add_option_without_languages($value,$text,$selected=false)\r\n\t{\r\n\t\t$options_field = array(\"value\"=>$value, \"text\"=>$text, \"selected\"=> $selected);\r\n\t\tarray_push($this->m_array_options,$options_field);\r\n\t}", "function delete_adstrue_vendor_province($form,&$form_state,$value) {\n $form = array();\n $form['header'] = array(\n '#type' => 'item',\n '#markup' => '<h4>Vui lòng xác nhận để xóa tỉnh thành</h4>',\n );\n $form['province_id'] = array(\n '#type' => 'hidden',\n '#value' => $value,\n );\n return confirm_form($form,'Vui lòng xác nhận để xóa tỉnh thành','province',t(''),t('Xác nhận'),t('Hủy bỏ'));\n}", "public function Delete($value){\n $this->RetrieveData();\n foreach($this->movieList as $key =>$movie){\n if($movie->getNombre() == $value){\n unset($this->movieList[$key]);\n break;\n }\n }\n $this->SaveData();\n }", "function driver_delete($keyword, $option = array());", "protected function cms_delete_option($in_option_key) ///< The name of the option\n {\n // phpcs:enable PSR1.Methods.CamelCapsMethodName.NotCamelCaps\n $ret = false;\n \n session_start();\n \n if (isset($_SESSION ['bmlt_settings'])) {\n $row = unserialize($_SESSION ['bmlt_settings']);\n \n if ($in_option_key != self::$admin2OptionsName) {\n $index = max(1, intval(str_replace(self::$adminOptionsName.'_', '', $in_option_key)));\n \n unset($row[$index - 1]);\n \n $_SESSION ['bmlt_settings'] = serialize($row);\n \n $ret = true;\n }\n }\n \n return $ret;\n }", "public function actionDeletelookupoptions() {\n\t\tif (\\Yii::$app->SessionCheck->isLogged () == true) \t\t// checking logged session\n\t\t{\n\t\t\t$post = \\Yii::$app->request->post ();\n\t\t\t\n\t\t\tif (! empty ( $post ['id'] )) {\n\t\t\t\t\n\t\t\t\t$id = $post ['id'];\n\t\t\t\t\n\t\t\t\t$transaction = \\Yii::$app->db->beginTransaction (); // begining the transaction\n\t\t\t\ttry {\n\t\t\t\t\t$model = TblAcaLookupOptions::lookupuniquedetails ( $id ); // checking for particular id\n\t\t\t\t\tif (! empty ( $id )) {\n\t\t\t\t\t\t$modelfindsectionid = TblAcaLookupOptions::lookupfindsectionid ( $id ); // finding the usage of option\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (empty ( $modelfindsectionid )) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(TblAcaLookupOptions::findOne ( $id )->delete ()){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\techo 'success'; // sending response to ajax\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$transaction->commit (); // commit the transaction\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} // model query for deleting option\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} \n\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\techo 'fail'; // sending response to ajax\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch ( Exception $e ) { // catching the exception\n\t\t\t\t\t\n\t\t\t\t\t$msg = $e->getMessage ();\n\t\t\t\t\t\\Yii::$app->session->setFlash ( 'error', $msg );\n\t\t\t\t\t\n\t\t\t\t\t$transaction->rollback (); //if exception occurs transaction rollbacks\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t\\Yii::$app->SessionCheck->adminlogout (); // redirects if session expired\n\t\t\t\n\t\t\treturn $this->goHome ();\n\t\t}\n\t}", "function select_option()\r\n{}", "public function eliminar()\n\t{\n\t\t$idestado = $_POST['idestado'];\n\t\t//en viamos por parametro el id del estado a eliminar\n\t\tEstado::delete($idestado);\n\t}", "public function removeOption($id, $unit = 1) \n\t{\n\t\t$index = $this->indexOf($id);\n\n\t\tif ($index != -1)\n\t\t{\n\t\t\t$res = $this->options[$index]->remove($unit);\n\t\t\t\n\t\t\tif ($this->isEmpty())\n\t\t\t{\n\t\t\t\t$this->emptyOptions();\n\t\t\t}\n\n\t\t\treturn $res;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "function actionIndexNone($option)\n\t{\n\t\treturn \\Form::select('doAction', array('delete' => 'Delete'), 'active',array('class' => 'form-control input-sm'));\n\t}", "public function deleteOption($option)\n {\n if ($option != '') {\n \n if (parent::$db->query(\n \"DELETE `\" . OPTIONS . \"` \n WHERE `option_name` = '\" . $option . \"';\"\n )) {\n return true;\n }\n }\n \n return false;\n }", "function civiq_ballots_ajax_remove_more_options($form, $form_state) {\r\n return $form['options'];\r\n}", "public function unset(): void\n\t{\n\t\t$this->_value = $this->_allowNull ? null : self::setType('', gettype($this->_value));\n\t}", "public function removeOption(ChoiceQuestion $question, Option $option) {\n\t\t$questionObj = $this->find($question->getId());\n $questionObj->removeOption($option);\n\t}", "function update_menu_item_deselect_details($data)\n\t{\n\t\t$mydata = array(\n\t\t\t'vDayMenu' => '0000-00-00'\n\t\t);\n\t\t$this->db->where('iItemId', $data['iItemId']);\n \t$query = $this->db->update(\"r_menu_item\", $mydata);\n \t\treturn $query;\n\t}" ]
[ "0.6639542", "0.6597171", "0.6592239", "0.65650785", "0.6460628", "0.6327675", "0.63184994", "0.62928295", "0.6199229", "0.616022", "0.61306846", "0.61262226", "0.6084605", "0.6034188", "0.5938598", "0.5910596", "0.5899201", "0.5870194", "0.5822053", "0.57611185", "0.57406545", "0.5736483", "0.5723209", "0.5712226", "0.56837344", "0.5657061", "0.56474483", "0.5646311", "0.564108", "0.5618023", "0.5610206", "0.5576243", "0.5558321", "0.5552683", "0.554094", "0.55372", "0.5534039", "0.55216616", "0.54839855", "0.5474911", "0.54723644", "0.547051", "0.5458013", "0.5451425", "0.5449", "0.5437633", "0.54266876", "0.54240876", "0.5410297", "0.5404519", "0.53934", "0.53872263", "0.5376735", "0.5373376", "0.5368445", "0.53526276", "0.5347665", "0.5343033", "0.5325277", "0.5321509", "0.5317961", "0.5315188", "0.53109586", "0.53051496", "0.529822", "0.52832645", "0.52595496", "0.5255541", "0.5251587", "0.5240701", "0.52391136", "0.5225431", "0.52148336", "0.5214564", "0.52103084", "0.52052903", "0.51931226", "0.5188958", "0.5186789", "0.51835984", "0.5173502", "0.5164185", "0.5155361", "0.5154944", "0.5150737", "0.51490045", "0.51324576", "0.5109251", "0.5103162", "0.51011074", "0.5100078", "0.5073133", "0.5071055", "0.50675106", "0.50546575", "0.504928", "0.50460386", "0.5043104", "0.50407773", "0.50398326", "0.502372" ]
0.0
-1
Load option by id and store
protected function _prepareOption($optionId, $store = null) { /** @var $option Mage_Catalog_Model_Product_Option */ $option = Mage::getModel('catalog/product_option'); if (is_string($store) || is_integer($store)) { $storeId = $this->_getStoreId($store); $option->setStoreId($storeId); } $option->load($optionId); if (isset($storeId)) { $option->setData('store_id', $storeId); } if (!$option->getId()) { $this->_fault('option_not_exists'); } if ($option->getGroupByType() != Mage_Catalog_Model_Product_Option::OPTION_GROUP_SELECT) { $this->_fault('invalid_option_type'); } return $option; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function load($id, $options = array());", "public function load()\n {\n $this->settings = get_option($this->optionName);\n }", "private function load_options()\n\t\t{\n\t\t\t$options = NULL;\n\n\t\t\t// load from persistent store\n\t\t\tif ( NULL !== $this->option_name ) {\n\t\t\t\t// reading from database\n\t\t\t\t$options = get_option( $this->option_name, $this->defaults );\n\t\t\t} else if ( NULL !== $this->filename ) {\n\t\t\t\t// reading from filesystem\n\t\t\t\tif ( file_exists( $this->filename ) ) {\n\t\t\t\t\t$data = file_get_contents( $this->filename );\n\t\t\t\t\t$options = json_decode( $data, TRUE );\n\t\t\t\t}\n\t\t\t}\n\t\t\t// TODO: add capability to store in DS specific table\n\n\t\t\t// this ensures we have *something*, even if it's an empty array\n\t\t\tif ( NULL === $options )\n\t\t\t\t$options = $this->defaults;\n\n\t\t\t$this->_options = array_merge( $this->defaults, $options );\n\t\t}", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "public function load($id);", "function store(){\n update_option( $this->option_name, $this->settings );\n }", "public function loadDataFromId(){\r\n\t\t\t$this -> loadFromId();\r\n\t }", "public function loadById($id);", "public function loadById($id);", "public function findOptionById($optionId);", "public static function retrieve($id, $options = null);", "public function options_load();", "function yaz_set_option($id, $options)\n{\n}", "public static function load(int $id);", "private function load_selected()\r\n {\r\n $this->arSelected[\"ctx\"] = $this->get_by_id($this->idSelected);\r\n if($this->arSelected[\"ctx\"])\r\n $this->arSelected[\"ctx\"] = $this->arSelected[\"ctx\"][array_keys($this->arSelected[\"ctx\"])[0]];\r\n\r\n $this->arSelected[\"noconfig\"] = $this->get_noconfig_by(\"id\",$this->idSelected);\r\n //pr($this->arSelected,\"arSelected\");\r\n }", "public function load($id)\n\t\t{\n\n\t\t\t$this->id = $id;\n\n\t\t}", "public function actionLoad($id = false,$site_id){\n\t\t$remoteComboFields = array();\n\t\t\n\t\t$model = $this->_loadModel($site_id,$id);\n\t\t\n\t\tif(!empty($model->content_id))\n\t\t\t$remoteComboFields['content_id']=$model->content->title;\n\t\t\n\t\techo $this->renderForm($model,$remoteComboFields);\n\t}", "public function load($id)\n {\n return;\n }", "public function getById($id)\n\t{\n\t\treturn $this->model->with('add_on_options')->find($id);\n\t}", "public static function loadById(?int $id);", "function load() {\n\t\tglobal $mysql;\n //if(!$this->exists()) return;\n \t$id \t\t= $mysql->escape($this->id);\n \t$tablename \t= $this->class_name();\n \t$this->data = $mysql->executeSql(\"SELECT * FROM \".$tablename.\" WHERE id=$id;\");\n \t$this->id\t= $this->data['id'];\n \tunset($this->data['id']);\n }", "private function settings_option($option){\n $models = new Models('settings');\n $where = array(\n 'type' => strval($option['type']),\n 'meta_key' => strval($option['meta_key'])\n );\n $exists = $models->check_row_exists($where);\n if($exists){\n $this->update_settings($models, $option);\n }else{\n $this->insert_settings($models, $option);\n }\n }", "function yaz_set_option($id, $name, $value)\n{\n}", "public function load($product, $productAttribute, $options, $data);", "public function loadByStore($id)\n {\n\t\t$this->_getResource()->loadByStore($this, $id);\n $this->_afterLoad();\n $this->setOrigData();\n return $this;\n }", "public function optionAction() \n {\n $result = array();\n \n $productIdOrSku = $this->getRequest()->getParam('product');\n $attributeOptionId = $this->getRequest()->getParam('id');\n\n try {\n \n $model = $this->getModel();\n $model->loadOptions($productIdOrSku, $attributeOptionId);\n $options = $model->getApiOptions(); \n \n $result = $options;\n \n \n } catch (Exception $e) {\n \n $result['error'] = true;\n $result['data'] = $e->getMessage();\n } \n \n $this->getResponse()->clearHeaders()->setHeader('Content-type','application/json',true)->setBody(Mage::helper('core')->jsonEncode($result));\n \n }", "public function show($id, $options = []);", "function initialiserId()\n {\n if(empty($this->m_idOption))\n {\n $requete = 'SELECT idOption FROM optionHotel WHERE libelleOption=? AND prixOption=?';\n $tabParametres = array($this->m_libelleOption, $this->m_prixOption);\n $tabResultat = $this->m_bdd->selection($requete, $tabParametres);\n $this->m_idOption = $tabResultat[0]['idOption']; \n }\n }", "function load($id) {\n\t\t$db = & JFactory::getDBO();\n\n\t\t$this->id = intval($id);\n\t\t$query = 'SELECT * FROM `#__xmap_sitemap` where id='.$this->id;\n\t\t$db->setQuery( $query );\n\t\tif( !$res = $db->loadAssocList( )) {\n\t\t\treturn false;\t// defaults are still set, though\n\t\t}\n\t\t$this->bind($res[0]);\n\t\t$this->_items = NULL;\n\t\treturn true;\n\t}", "public function get(string $option);", "public function get(string $option);", "private function loadSiteId() {\r\n\t\tif (function_exists ( 'get_option' ) && get_option ( $this->const_option_fraxion_site_id ) != false) {\r\n\t\t\t$this->fraxion_site_id = get_option ( $this->const_option_fraxion_site_id );\r\n\t\t} else {\r\n\t\t\t$this->fraxion_site_id = NULL;\r\n\t\t}\r\n\t}", "public function loadFromContentID( $id=null );", "public function loadAction() {\n \t// set no render\n \t$this->_helper->getHelper('viewRenderer')->setNoRender();\n \t// If you use layout, disable it\n \t$this->_helper->layout()->disableLayout();\n \n \t// Get the id from request\n \t$id = $_POST['id'];\n \tif($id != 0){\n\t \t// Query from database\n\t \t$data = Khcn_Api::_()->getDbTable('bo_mon','default')->getBoMonByDonViAssoc($id);\n\t \t$result = '';\n\t \tforeach ($data as $k=>$v)\n\t \t{\n\t \t\t$result .= '<option value=' . $k . '>' . $v .'</option>';\n\t \t}\n\t \techo $result;\n \t}else{\n \t\techo '<option value=\"0\">===== Chọn bộ môn =====</option>';\n \t}\n }", "public function get( $option );", "function smartchoice_get_choice($choiceid) {\n global $DB;\n\n if ($choice = $DB->get_record('smartchoice', array('id' => $choiceid))) {\n if ($options = $DB->get_records('smartchoice_options', array('choiceid' => $choiceid), 'id')) {\n foreach ($options as $option) {\n $choice->option[$option->id] = $option->text;\n }\n\n return $choice;\n }\n }\n\n return false;\n}", "public function load($id){\n\n /*\n * select from the database\n */\n $query = $this->db->get_where($this::DB_TABLE, array($this::DB_TABLE_PK => $id));\n\n /**\n * Populate to an object\n */\n if(!empty($query->row())){\n $this->populate($query->row());\n return true;\n } else {\n return false;\n }\n }", "public function set( $id ) {\n\t\treturn $this->options->set( self::OPTION, $id );\n\t}", "function animo_get_post_opt( $option, $id = '' ) {\n global $post;\n if (!empty($id)) {\n $local_id = $id;\n } else {\n if(!isset($post->ID)) {\n return null;\n }\n $local_id = get_the_ID();\n\n }\n\n //echo $option;\n if(function_exists('redux_post_meta')) {\n $options = redux_post_meta(REDUX_OPT_NAME, $local_id);\n } else {\n $options = get_post_meta( $local_id, REDUX_OPT_NAME, true );\n }\n\n if( isset( $options[$option] ) ) {\n return $options[$option];\n } else {\n return null;\n }\n}", "function load_option()\n {\n $op = array();\n \t// $query = $this->db->get('option');\n $query = $this->db->query('SELECT `var`,`value` FROM `option`');\n foreach ( $query->result_array() as $o )\n {\n \t$op[$o['var']] = $o['value'];\n }\n \n return $op;\n \n }", "public function it_can_populate_options_from_database_dynamically()\n {\n $this->configureInputs([\n [\n 'name' => 'app_migrations',\n 'label' => 'App Migration',\n 'type' => 'select',\n 'options' => function () {\n return DB::table('migrations')->pluck('migration', 'id')->toArray();\n }\n ]\n ]);\n\n // assert\n $this->get('/settings')\n ->assertStatus(200)\n ->assertSee('select')\n ->assertSee('2014_10_00_000000_create_settings_table');\n }", "public function load($id)\n {\n $this->data = $this->db->query('SELECT ' . $this->db->fieldName('id') . ', ' . $this->db->fieldName('voting_id') . ', ' . $this->db->fieldName('player_id') . ', ' . $this->db->fieldName('type') . ', ' . $this->db->fieldName('comment') . ' FROM ' . $this->db->tableName('p_democracy_votes') . ' WHERE ' . $this->db->fieldName('id') . ' = ' . (int) $id)->fetch();\n }", "public function load($id){\n\t\t$sql = 'SELECT * FROM contentstore_videouploadconfig WHERE id = ?';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\t$sqlQuery->setNumber($id);\n\t\treturn $this->getRow($sqlQuery);\n\t}", "public \tfunction\tretrieveOptions() {\n\t\t\t//For each option category.\n\t\t\tforeach($this -> options as $category => $k) {\n\t\t\t\t//For each option. \n\t\t\t\tforeach ($this -> options[$category] as $key => $value) {\n\t\t\t\t\t//Set the option. \n\t\t\t\t\t$this -> options[$category][$key]\t\t=\tget_option($key);\n\t\t\t\t\t\n\t\t\t\t\t//If the option is serialized.\n\t\t\t\t\tif (is_serialized($this -> options[$category][$key])) {\n\t\t\t\t\t\t//Unserialize the option.\n\t\t\t\t\t\t$this -> options[$category][$key]\t=\t \n\t\t\t\t\t\tunserialize($this -> options[$category][$key]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public function loadItem($id){\n\t\tif($id){\n\n\t\t\t//$this->firephp->info($id);\n\t\t\t\n\t\t\t//get some db credentials\n\t\t\t$session = new Session();\n\t\t\t\n\t\t\tif(!$session->get('dbcreds')){\n\t\t\t\t$dbcreds = xmlToArray::getArray(CONFIG.'/'.Constants::config,'config-root','config','database');\n\t\t\t\t//$session->set('dbcreds',$dbcreds);\n\t\t\t} else {\n\t\t\t\t$dbcreds = $session->get('dbcreds');\n\t\t\t}\n\t\t\t\n\t\t\t//load from db\n\t\t\t$mode = QueryBuilder::QUERYSELECT;\n\t\t\t$query = new QueryBuilder($mode);\n\t\t\t$query->setTable($this->table);\t\n\t\t\t$query->setKey($id);\n\t\t\t$query->setKeyName($this->keyName);\t\n\t\t\t$query_str = $query->parse();\n\t\t\t//$this->firephp->info($query_str);\n\n\t\t\t$this->wrapper = DBConn::getInstance();\n\t\t\t$this->wrapper->query($query_str);\n\n\t\t\t\n\t\t\tif($this->wrapper->getNumrows() == 0) {\n\t\t\t\tLogger::logError('WARNING - ' . $this->wrapper->getError() . \" (QUERY:$query_str)\");\n\t\t\t\tthrow new yafException($this->wrapper->getError(),yafException::WARNING);\n\t\t\t}\n\t\t\n\t\t\t$this->attributes = $this->wrapper->fetch_assoc_row();\t\t\t\n\n\t\t}\n\t\t\n\t\t\n\t}", "public function show($store_id, $id)\n {\n return OptionCategory::findOrFail($id)->toJson();\n }", "public function loadById($id){\n\t\t$sql = new Sql();\n\n\t\t$results = $sql->select(\"SELECT * FROM TB_USUARIOS WHERE IDUSUARIO = :ID\",array(':ID'=>$id));\n\t\t\n\t\tif (isset($results[0])) {\n\n\t\t\t$this->setData($results[0]);\n\t\t}\n\t}", "private function _load($id) {\n\t\t$id = abs(intval($id));\n\t\t$db = Denkmal_Db::get();\n\t\t$sql = 'SELECT id, text, active\n\t\t\t\tFROM promotion\n\t\t\t\tWHERE id=?';\n\t\t$this->_data = $db->fetchRow($sql, $id);\n\n\t\tif (!$this->_data) {\n\t\t\tthrow new Denkmal_Exception(\"Promotion doesn't exist (\" . $id . \")\");\n\t\t}\n\t}", "public function getProductOptionId();", "function load($p_id='') {\n global $DB;\n\n parent::load($p_id);\n $this->ifaddrs = $this->getIfaddrsDB();\n $this->ports = $this->getPortsDB();\n\n $query = \"SELECT `ID`\n FROM `glpi_plugin_fusioninventory_networking`\n WHERE `FK_networking` = '\".$this->getValue('ID').\"';\";\n if ($result = $DB->query($query)) {\n if ($DB->numrows($result) != 0) {\n $fusioninventory = $DB->fetch_assoc($result);\n $this->oFusionInventory_networking->load($fusioninventory['ID']);\n $this->ptcdLinkedObjects[]=$this->oFusionInventory_networking;\n }\n }\n }", "public function load($attribute, $product, $valueId);", "public function insertOption($data);", "protected function loadData($id)\n\t{\n\t\t$id = (int)$id;\n\t\t\n\t\tif ($id > 0)\n\t\t{\n\t\t\t//set our id first.\n\t\t\t$this->id = $id;\n\t\t\t\n\t\t\t//try our cache.. if it works, then we're good.\n\t\t\tif (!$this->loadCacheData())\n\t\t\t{\n\t\t\t\t$this->lookupData();\n\n\t\t\t\tif ($this->useObjectCaching)\n\t\t\t\t\t$this->setCache();\n\t\t\t}\n\t\t}\n\t}", "public function load_options( $options = array() ) {}", "public function selectById($id);", "public function selectById($id);", "function _options_option($option) {\n global $db ;\n $data = null ;\n $req = $db->prepare(\"SELECT `data` FROM `_options` WHERE `option` = :option \") ;\n $req->execute(array(\n \"option\" => $option\n )) ;\n $data = $req->fetch() ;\n return (isset($data['data'])) ? $data['data'] : false ;\n}", "public function loadFromId(){\r\n\t\t$id = $this -> getUserId();\r\n\t\tif(is_numeric($id))\r\n\t\t\t$this -> loadFromQuery(\"select * from UserTab where UserId=\".$id);\r\n\t }", "function Load($id){\n\t\t\t$query = \"SELECT * FROM `host` where ID = '$id'\";\n\t\t\t$EppDatabase = new EppDatabase();\n\t\t\t$result = $EppDatabase->EppDatabaseQuery($query);\n\t\t\t$this->Name = mysql_result($result,0,\"Name\");\n\t\t\t$this->DomainID = mysql_result($result,0,\"DomainID\");\n\t\t\t$this->ID = $id;\n\t}", "function _options_field_id($field, $id) {\n global $db;\n $data = null;\n $req = $db->prepare(\"SELECT $field FROM _options WHERE id= ?\");\n $req->execute(array($id));\n $data = $req->fetch();\n //return $data[0];\n return (isset($data[0]))? $data[0] : false;\n}", "public function get($id)\n {\n if (isset($this->data[$id])) {\n return $this->data[$id];\n } else if (isset($this->longOptions[$id])) {\n return $this->longOptions[$id];\n } else if (isset($this->shortOptions[$id])) {\n return $this->shortOptions[$id];\n }\n }", "public function load(): ConfigStoreInterface;", "public function load($l1Id, $optionL2Id){\r\n\t\t$sql = 'SELECT * FROM learnable_language_options WHERE l1_id = ? AND option_l2_id = ? ';\r\n\t\t$sqlQuery = new SqlQuery2($sql);\r\n\t\t$sqlQuery->setNumber($l1Id);\r\n\t\t$sqlQuery->setNumber($optionL2Id);\r\n\r\n\t\treturn $this->getRow($sqlQuery);\r\n\t}", "function loadData()\n\t{\n\t\tstatic $data;\n\t\t\n\t\tif(!$data)\n\t\t\t$data=self::getData();\n\n\t\tif(isset($data[$this->id]))\n\t\t\t$this->setValues((array)$data[$this->id]);\t\t\t\n\t}", "public function setStoreId($id);", "public function fetchById($id,$options=array()) {\n\t\treturn $this->fetch(array('id' => $id));\n\t}", "private function load($id = null) {\n\n if (!is_null($id)) {\n\n return $this->search->getProduct($id);\n\n }\n\n return $this->search->getProducts($this->filters);\n\n }", "public function getOptions($storeId)\n {\n $this->getSelect()\n ->joinLeft(array('default_option_price' => $this->getTable('productoptions/product_option_price')), '`default_option_price`.option_id=`main_table`.option_id AND ' . $this->getConnection()->quoteInto('`default_option_price`.store_id=?', 0), array('default_price' => 'price', 'default_price_type' => 'price_type'))\n ->joinLeft(array('store_option_price' => $this->getTable('productoptions/product_option_price')), '`store_option_price`.option_id=`main_table`.option_id AND ' . $this->getConnection()->quoteInto('`store_option_price`.store_id=?', $store_id), array('store_price' => 'price', 'store_price_type' => 'price_type',\n 'price' => new Zend_Db_Expr('IFNULL(`store_option_price`.price,`default_option_price`.price)'),\n 'price_type' => new Zend_Db_Expr('IFNULL(`store_option_price`.price_type,`default_option_price`.price_type)')))\n ->join(array('default_option_title' => $this->getTable('productoptions/product_option_title')), '`default_option_title`.option_id=`main_table`.option_id', array('default_title' => 'title'))\n ->joinLeft(array('store_option_title' => $this->getTable('productoptions/product_option_title')), '`store_option_title`.option_id=`main_table`.option_id AND ' . $this->getConnection()->quoteInto('`store_option_title`.store_id=?', $store_id), array('store_title' => 'title',\n 'title' => new Zend_Db_Expr('IFNULL(`store_option_title`.title,`default_option_title`.title)')))\n ->where('`default_option_title`.store_id=?', 0);\n\n return $this;\n }", "public function get_setting($id)\n {\n }", "public function loadValueOptions()\n {\n $this->setValueOption(Mage::getSingleton('adminhtml/system_store')->getStoreOptionHash());\n return $this;\n }", "public function setOption($id)\r\n {\r\n $query = \"EXEC [dbo].[srv_GetVMfromENVID] @EnvID = $id\";\r\n $table = $this->db->getParams($query);\r\n if (isset($table)) {\r\n return $table;\r\n }\r\n return;\r\n }", "function load($id){\n\t\t$id = (int) $id;\n\t\tif( !($id>0) )\treturn false;\n\t\t$query = \"SELECT * FROM \".$this->tablename.\" WHERE id='\".$id.\"' LIMIT 1\";\n\t\t$result = mysql_query($query);\n\t\tif($row = mysql_fetch_assoc($result)){\n\t\t\t$this->buildFromRow($row,true);\n\t\t\t$this->id = $row['id'];\n\t\t\t$this->onload();\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "public function load($id){\n\t\t$sql = 'SELECT * FROM course_modes_coursemode WHERE id = ?';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\t$sqlQuery->setNumber($id);\n\t\treturn $this->getRow($sqlQuery);\n\t}", "function get_options() {\t\t\r\n\t\t$saved_options = unserialize(get_option(THEME_ID . '_options'));\r\n\t\tif (!empty($saved_options) && is_object($saved_options)) {\r\n\t\t\tforeach($saved_options as $name => $value) {\r\n\t\t\t\t$this->$name = $value;\r\n\t\t\t}\t\r\n\t\t}\r\n\t}", "public function loadId($id){\n\t\t$model=new Model();\n\t\t$resultado=$model->select(\"SELECT * FROM tb_usuarios WHERE idusuario = :ID\",array(\":ID\"=>$id));\n\t\tif (count($resultado)>0) {\n\t\t\t$this->setData($resultado[0]);\n\t\t}\n\t}" ]
[ "0.71431756", "0.6415668", "0.6385699", "0.6328156", "0.6328156", "0.6328156", "0.6328156", "0.6328156", "0.6328156", "0.6328156", "0.6328156", "0.6328156", "0.6328156", "0.6328156", "0.6328156", "0.6328156", "0.6328156", "0.6328156", "0.6328156", "0.6328156", "0.6328156", "0.6328156", "0.6328156", "0.6328156", "0.6328156", "0.6328156", "0.6328156", "0.6328156", "0.6328156", "0.6328156", "0.6328156", "0.6259719", "0.6236096", "0.6189744", "0.6189744", "0.61778253", "0.60908836", "0.6022156", "0.5900538", "0.5893103", "0.5850221", "0.58217293", "0.5763122", "0.57297057", "0.5626095", "0.56260425", "0.5614511", "0.5608051", "0.5558322", "0.554509", "0.5534012", "0.5531412", "0.5518155", "0.55108297", "0.5509752", "0.548694", "0.548694", "0.54814684", "0.5473871", "0.5462017", "0.54585445", "0.5411518", "0.5404702", "0.5403377", "0.5398303", "0.53881097", "0.53812283", "0.53552085", "0.5348781", "0.5345005", "0.53442055", "0.5343311", "0.5313034", "0.5298577", "0.5297805", "0.5297093", "0.5283389", "0.52819705", "0.52773553", "0.5273698", "0.5268592", "0.5268592", "0.5258786", "0.5253148", "0.52513653", "0.5236428", "0.5232264", "0.523134", "0.5223219", "0.52188164", "0.5214765", "0.5213836", "0.5208767", "0.5192506", "0.518547", "0.5184586", "0.51750994", "0.5168774", "0.51686317", "0.51554704", "0.5152657" ]
0.0
-1
Display the module welcome screen
public function welcome() { return view("Participant::welcome"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function welcome() {\r\n\r\n return $this->render('welcome', array());\r\n }", "protected function _welcome()\n {\n $this->out('\n __ ____ _ _______ __\n / |/ (_)_________(_)___ ____ _ / ____(_) /__ _____\n / /|_/ / / ___/ ___/ / __ \\/ __ `/ / /_ / / / _ \\/ ___/\n / / / / (__ |__ ) / / / / /_/ / / __/ / / / __(__ )\n/_/ /_/_/____/____/_/_/ /_/\\__, / /_/ /_/_/\\___/____/\n /____/ ');\n }", "public function index() {\n $this->registry->template->module = 'welcome';\n \n /*** load the index template ***/\n $this->registry->template->show('index');\n }", "static function welcome()\n\t{\n\t\techo 'wellcome to our project';\n\t}", "public static function welcome() {\n\t}", "public function welcomeMessage()\n {\n $this->info('');\n $this->info('Welcome to Nigels Coffee Shop Robot Controller Simulator!');\n }", "protected function welcome() {\n echo \"*****************\" . PHP_EOL .\n \"*** TicTacToe ***\" . PHP_EOL .\n \"*****************\" . PHP_EOL;\n $this->drawBoard(array(), true);\n echo \"[\" . self::QUIT_BUTTON . \"] - End game\" . PHP_EOL . PHP_EOL;\n }", "protected function welcome()\n\t{\n\t\t$welcome = ' __ __ _ ' . PHP_EOL;\n\t\t$welcome .= ' | \\/ | __ _| | _____ ' . PHP_EOL;\n\t\t$welcome .= ' | |\\/| |/ _` | |/ / _ \\ ' . PHP_EOL;\n\t\t$welcome .= ' | | | | (_| | < (_) |' . PHP_EOL;\n\t\t$welcome .= ' |_| |_|\\__,_|_|\\_\\___/ (' . MAKO_VERSION . ')' . PHP_EOL;\n\n\t\t$welcome .= PHP_EOL . PHP_EOL;\n\n\t\t$welcome .= 'Welcome to the ' . $this->cli->color('Mako', 'green') . ' interactive console!' . PHP_EOL;\n\n\t\t$welcome .= PHP_EOL;\n\n\t\t$welcome .= 'Type ' . $this->cli->color('exit', 'yellow') . ' or ' . $this->cli->color('quit', 'yellow') . ' to exit.' . PHP_EOL;\n\n\t\t$this->cli->stdout($welcome);\n\t}", "public function sendWelcomeMsg()\n\t{\n\t}", "public function index () {\n $view = new WelcomeIndex();\n $view->display();\n }", "function welcome()\n{\n outputString(PHP_EOL.'To set up your Craft install, from your project directory, run:', Console::FG_YELLOW);\n $script = './craft setup';\n outputString(PHP_EOL.' '.$script, Console::FG_GREEN);\n outputString(PHP_EOL.'Then to set up custom settings, run:', Console::FG_YELLOW);\n $script = './marlo';\n outputString(PHP_EOL.' '.$script, Console::FG_GREEN);\n outputString(PHP_EOL.'Your setup is not complete until you run these two commands.', Console::FG_YELLOW);\n}", "public function index() {\n\t\t$data = $this->load_module_info ();\n\t\t\n\t\t$this->layout->display_admin ( $this->folder . $this->module . \"-list\", $data );\n\t}", "public function showWelcome()\n\t{\n\t\t$this->layout->content = View::make('home');\n\t}", "public function indexAction()\n {\n $arr = [\n 'title' => 'Welcome',\n 'data' => [\n 'name' => 'PHP FRAMEWORK',\n ]\n ];\n View::renderTemplate('Welcome/index.html', $arr);\n }", "public function index()\n\t{\n\t\t$this->twig->display('welcome/index.html', []);\n\t}", "public function actionIndex()\n {\n $this->stdout(\"\\n Example Module Base Command: \" . date('d.m.y h:i:s') . \" Done!\\n\");\n }", "public function showWelcome()\n\t{\n\t\treturn View::make('hello');\n\t}", "public function showWelcome()\n\t{\n\t\treturn View::make('hello');\n\t}", "public function showWelcome()\n\t{\n\t\treturn View::make('hello');\n\t}", "public function showWelcome()\n\t{\n\t\treturn View::make('hello');\n\t}", "public function showWelcome()\n\t{\n\t\treturn View::make('hello');\n\t}", "public function showWelcome()\n\t{\n\t\treturn View::make('hello');\n\t}", "public function showWelcome()\n\t{\n\t\treturn View::make('hello');\n\t}", "public function showWelcome()\n\t{\n\t\treturn View::make('hello');\n\t}", "public function showWelcome()\n\t{\n\t\treturn View::make('hello');\n\t}", "public function showWelcome()\n\t{\n\t\treturn View::make('hello');\n\t}", "public function index()\n {\n require_once 'view/welcome.php';\n }", "protected function _welcome(){\n\t}", "public function showWelcome()\n\t{\n\t\treturn View::make('home.index');\n\t}", "function index(){\n\t\techo 'welcome';\n\t}", "public function showWelcome()\n\t{\n\t\treturn View::make('welcome.form');\n\t}", "public function run()\n {\n $this->welcome();\n }", "public function Index() {\n $modules = new CMModules();\n $controllers = $modules->AvailableControllers();\n $allModules = $modules->ReadAndAnalyse();\n $this->views->SetTitle('Manage Modules')\n ->AddInclude(__DIR__ . '/index.tpl.php', array('controllers'=>$controllers), 'primary')\n ->AddInclude(__DIR__ . '/sidebar.tpl.php', array('modules'=>$allModules), 'sidebar');\n }", "public function showWelcome()\n\t{\n \n\t\treturn View::make('home');\n\t}", "function index() {\n \n parent::index();\n\n\t\t$data['user_id'] = $this->tank_auth->get_user_id();\n\t\t$data['username'] = $this->tank_auth->get_username();\n\t\t$data['main_content_view'] = $this->load->view('welcome', $data, true);\n $this->render_template($data);\n\t}", "public function winespace_welcome_getting_started() {\n\t\trequire_once( get_template_directory() . '/inc/admin/welcome-screen/sections/getting-started.php' );\n\t}", "public function index()\n\t{\n\t\t// Modules in \"modules\" folder\n\t\t$found_modules = Modules()->get_modules();\n\n\t\t// ionize Modules config\n\t\t$modules = array();\n\t\tinclude APPPATH . 'config/modules.php';\n\n\t\t// Get all modules from folders\n\t\tforeach($found_modules as $folder => &$module)\n\t\t{\n\t\t\t// Does the module install tables in DB ?\n\t\t\t$module['uses_database'] = FALSE;\n\t\t\t$module['installed'] = FALSE;\n\t\t\t$module['uri_user_segment'] = $module['uri'];\n\n\t\t\tif (in_array($folder, $modules))\n\t\t\t{\n\t\t\t\t// Set installed to true\n\t\t\t\t$module['installed'] = TRUE;\n\n\t\t\t\t// Get the user segment\n\t\t\t\tforeach($modules as $segment => $f)\n\t\t\t\t{\n\t\t\t\t\tif ($f == $folder)\n\t\t\t\t\t\t$module['uri_user_segment'] = $segment;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$this->template['modules'] = $found_modules;\n\n\t\t$this->output('modules/index');\n\t}", "public function action_index()\r\n\t{\r\n\t\t$this->title = 'Welcome';\r\n\t\t$this->template->content = View::factory('index');\r\n\t}", "public function show_welcome($output_method = 'echo')\n {\n return $this->call_method(\"show/welcome\",\n array('output_method' => $output_method,\n )\n );\n }", "public function welcome()\n {\n return view(\"PlayerMatch::welcome\");\n }", "public function run()\n {\n $this->render('modules');\n }", "public function showWelcome()\n\t{\n\n\t\t$mensaje = Session::get('message', null);\n\n\t\t$tipos = $this->getTipos();\n\t\t$estados = $this->getEstados();\n\n\t\treturn View::make('index', array('tipos' => $tipos, 'estados' => $estados, 'mensaje' => $mensaje));\n\t}", "public function index()\n\t{\t\n\n\t\t$this->load->view('welcome_message');\n\t}", "public function indexAction ()\n {\n $this->_pageTitle = ['Admin Console'];\n }", "private function _reload_welcome()\r\n\t{\r\n\t\t$this->callback[] = array(\r\n\t\t\t'fn' => 'ION.HTML',\r\n\t\t\t'args' => array(\r\n\t\t\t\t'item/welcome',\r\n\t\t\t\t'',\r\n\t\t\t\tarray('update' => 'splitPanel_mainPanel_pad')\r\n\t\t\t)\r\n\t\t);\r\n\t}", "public function index()\n\t{\n\t\t$this->load->view('welcome');\n\t}", "public static function welcomeMessage() : void\n {\n if (!file_exists(__DIR__ . '/../../.env.php')) {\n echo \"Heya, we think you are new. Let us spin up the frame work for you!..\";\n $request = self::requestInput('Do you want to continue?', ['(Y)es', '(N)o']);\n if ($request == 'yes' || $request == 'y') {\n $start = new \\Framework\\Commands\\Start\\Start;\n $start->start();\n exit();\n }\n echo \"=====================================\\n\";\n }\n echo \"Welcome to the command environment. Choose what you want to do, you have the following options: \\n\";\n foreach (self::$options as $option) {\n echo \"- $option \\n\";\n }\n }", "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "public function index() {\n $this->getView('navigation', array('pagename' => 'Welcome'));\n $this->getView('welcome');\n $this->getView('footer');\n }", "public function showWelcome() {\n return View::make('hello');\n }", "public function showWelcome(){\n\t\treturn View::make('hello');\n\t}", "public function action_hello()\n\t{\n\t\treturn Response::forge(Presenter::forge('welcome/hello'));\n\t}", "public function action_hello()\r\n\t{\r\n\t\treturn Response::forge(Presenter::forge('welcome/hello'));\r\n\t}", "public function index() {\r\n\t\t$this->show_login_page();\r\n\t}", "public function welcome()\n {\n $data['nextRoute'] = array_key_first(config('installer.routes'));\n return view('vendor.installer.index', $data);\n }", "protected function _welcome() {\n\n }", "public function welcome()\n {\n return $this->getView();\n }", "function displayStartup()\n\t{\n\t\t$this->tpl->addBlockFile(\"CONTENT\",\"content\",\"tpl.clientsetup.html\", \"setup\");\n\n\t\t$this->tpl->setVariable(\"TXT_INFO\",$this->lng->txt(\"info_text_first_client\"));\n\t\t$this->tpl->setVariable(\"TXT_HEADER\",$this->lng->txt(\"setup_first_client\"));\n\n\t\t$this->displayProcessPanel();\n\n\t\t$this->setButtonNext(\"ini\");\n\t}", "function sloodle_print_header()\n {\n global $CFG;\n\n // Offer the user an 'update' button if they are allowed to edit the module\n $editbuttons = '';\n if ($this->canedit) {\n $editbuttons = update_module_button($this->cm->id, $this->course->id, get_string('modulename', 'sloodle'));\n }\n // Display the header\n $navigation = \"<a href=\\\"index.php?id={$this->course->id}\\\">\".get_string('modulenameplural','sloodle').\"</a> ->\";\n sloodle_print_header_simple(format_string($this->sloodle->name), \"&nbsp;\", \"{$navigation} \".format_string($this->sloodle->name), \"\", \"\", true, $editbuttons, navmenu($this->course, $this->cm));\n\n // Display the module name\n $img = '<img src=\"'.$CFG->wwwroot.'/mod/sloodle/icon.gif\" width=\"16\" height=\"16\" alt=\"\"/> ';\n sloodle_print_heading($img.$this->sloodle->name, 'center');\n \n // Display the module type and description\n $fulltypename = get_string(\"moduletype:{$this->sloodle->type}\", 'sloodle');\n echo '<h4 style=\"text-align:center;\">'.get_string('moduletype', 'sloodle').': '.$fulltypename;\n echo sloodle_helpbutton(\"moduletype_{$this->sloodle->type}\", $fulltypename, 'sloodle', true, false, '', true).'</h4>';\n // We'll apply a general introduction to all Controllers, since they seem to confuse lots of people!\n $intro = $this->sloodle->intro;\n if ($this->sloodle->type == SLOODLE_TYPE_CTRL) $intro = '<p style=\"font-style:italic;\">'.get_string('controllerinfo','sloodle').'</p>' . $this->sloodle->intro;\n\t\t// Display the intro in a box, if we have an intro\n\t\tif (!empty($intro)) sloodle_print_box($intro, 'generalbox', 'intro');\n \n }", "public function index()\n {\n $this->load->view('welcome_message');\n }", "public function index()\n {\n $this->load->view('welcome_message');\n }", "public function indexAction()\n {\n $active = Pi::registry('modulelist')->read('active');\n $inactive = Pi::registry('modulelist')->read('inactive');\n\n $modules = array_merge($active, $inactive);\n foreach ($modules as $name => &$data) {\n $meta = Pi::service('module')->loadMeta(\n $data['directory'],\n 'meta'\n );\n $author = Pi::service('module')->loadMeta(\n $data['directory'],\n 'author'\n );\n $data['description'] = $meta['description'];\n $data['author'] = $author;\n $data['active'] = isset($active[$name]) ? true : false;\n if (empty($meta['logo'])) {\n $data['logo'] = Pi::url('static/image/module.png');\n } elseif (empty($data['active'])) {\n $data['logo'] = Pi::url('script/browse.php') . '?' . sprintf(\n 'module/%s/asset/%s',\n $data['directory'],\n $meta['logo']\n );\n } else {\n $data['logo'] = Pi::service('asset')->getModuleAsset(\n $meta['logo'],\n $data['name']\n );\n }\n if (empty($data['update'])) {\n $data['update'] = __('Never updated.');\n } else {\n $data['update'] = _date($data['update']);\n }\n }\n $this->view()->assign('modules', $modules);\n //$this->view()->setTemplate('module-list');\n $this->view()->assign('title', __('Installed modules'));\n }", "public function indexAction() {\n $this->view->title = 'Hello World !';\n $this->view->headTitle('Hello World !');\n }", "public function indexAction() {\r\n $this->view->title = 'Hello World !';\r\n $this->view->headTitle('Hello World !');\r\n }", "public function showWelcome()\n {\n $user = Auth::user();\n return view('index')->with('user', $user);\n }", "public function index() {\n\t\t$adm_uid = $this->session->userdata('adm_uid') ?: 0;\n\t\tif ($adm_uid) {\n\t\t\t$this->load->view('header');\n\t\t\t$this->load->view('welcome_message');\n\t\t\t$this->load->view('footer');\n\n\t\t} else {\n\t\t\tredirect(HOSTDOMAIN . '/welcome/login');\n\n\t\t}\n\n\t}", "public function index() \n\t{\n\t\t$this->_render_hod_view('home');\n\t}", "function vgt_ui_welcome_page()\r\n\t{\r\n\r\n\t\t\r\n\t\techo '\r\n\t\t\t<div id=\"vgt_main_page\" class=\"container\">\r\n\t\t\t\t<div id=\"thankyou\">\r\n\t\t\t\t\t<h2>Thanks for using WP Lead Plus</h2>\r\n\t\t\t\t\t<p>We hope you enjoy the plugin. If you have any suggestion, request, please click the support icon at the top right of your screen to send us messages.</p>\r\n\t\t\t\t\t<p>We will get back to you soon</p>\r\n\t\t\t\t\t<p>The best way to get support is to check out the video tutorials, which are available <a target= \"_blank\" href=\"http://www.youtube.com/playlist?list=PL6rw2AEN42Eoyq6_ht0TA-SM55jUWU8m5\"><strong>here</strong></a></p>\r\n\t\t\t\t</div>\r\n\t\t\t</div>';\r\n\t\t\r\n\t\t//include common code into the page\r\n\t\t\r\n\t\tinclude_once 'code/common.txt';\r\n\t}", "public function welcome()\n {\n $user = User::find(auth()->user()->id);\n return view('front.welcome', compact('user'));\n }", "public function actionIndex()\r\n\t{\r\n\t\t$modules = ModuleModel::instance()->find();\r\n\t\t$this->render('index', array('modules' => $modules));\r\n\t}", "public function showWelcome()\n\t{\n\t\treturn View::make('events.soon');\n\t}", "public static function Index(){\n Output::SetNamespace(\"helloworld\");\n Output::UseSmarty();\n Output::SetTemplate(Storage::Join(\"app.helloworld.shell.tpl\", \"index.tpl\"));\n Output::AppendCSS(Storage::Join(\"app.helloworld.shell.css\", \"index.css\"));\n Output::Send();\n }", "function _page_welcome_block() {\n global $user;\n \n return array(array(\n 'id' => 'welcome',\n 'title' => 'Welcome',\n 'content' => 'You are logged in as <strong>' . htmlspecialchars($user['uid'], ENT_QUOTES, 'UTF-8') . '</strong> (<strong>' . htmlspecialchars($user['identity'], ENT_QUOTES, 'UTF-8') . '</strong>).'\n ));\n}", "public function home()\n\t{\n\t\t$header = $this->loaded_module(0);\n\t\t$footer = $this->loaded_module(1);\n\t\t\n\t\t$data = $this->settings();\n\t\t\n\t\t$product = $this->loaded_module(7);\n\t\t$data[\"product_special\"] = $product->special_product_list(8);\n\t\t$data[\"latest_product\"] = $product->latest_product_list(6);\n\t\t$data[\"latest_product2\"] = $product->latest_product_list(6);\n\t\t$data[\"latest_product3\"] = $product->latest_product_list(6);\n\t\t\n\t\t$banner = $this->loaded_module_admin(7)->get_active_banner();\n\t\t$data[\"banner\"] = $banner;\n\t\t\n\t\t$header->header_view();\n\t\t$this->load->view(\"Home_v\", $data);\n\t\t$footer->footer_view();\n\t}", "public function actionIndex()\n\t{\n\t $this->pageTitle = 'Get Started';\n\t\t$this->render('index');\n\t}", "public function index()\n {\n return view('modules.home');\n }", "function showWelcome(){\n\t\n\t//get the user\n\t$user = getUser();\n\tif($user !== false && is_array($user) && count($user) > 0){\n\t\t$output = 'Hello '. $user['userEmail'] .'<br>';\n\t\t$output .= 'Your account has '. ($user['activated'] == false ? 'not ' : '') .'been activated.<br>';\n\t\t$output .= 'Your last activity was: '. $user['lastActivity'];\n\t\treturn $output;\n\t}\n\telse{\n\t\treturn \"Welcome to the site. Your account could not be retreived at this time.\";\n\t}\n\t\n}", "public function index()\n\t{\n\t\treturn view(\"welcome\");\n\t}", "public function showHome()\n {\n //user authentication\n $user = UserAccountController::getCurrentUser();\n if ($user === null) {\n return;\n }\n $view = new View(\"userHome\");\n $view->addData(\"userName\", $user->getNickName());\n echo $view->render();\n }", "public function welcomeAction() {\n $user_session = new Container('user');\n $username = $user_session->username; // $username now contains 'Andy0708'\n }", "public function indexAction(){\n \t\t\n \t\tif(!$this->_acl->isAllowed('skip_maintenance'))\n \t\t header('Location: /index.php/lynx/login');\n \t\telse\n \t\t $this->_template->content = 'Welcome!';\n \t\t \n \t\t$this->_template->title('Admin');\n \t}", "public function welcome_register_menu() {\n\t\t\t\t$action_count = get_option('swing_plugin_installed_notif');\n\t\t\t\t$title = $action_count > 0 ? esc_html($this->strings['welcome_menu_text']) . '<span class=\"badge pending-tasks\">' . esc_html( $action_count ) . '</span>' : esc_html($this->strings['welcome_menu_text']);\n\t\t\t\tadd_theme_page( esc_html($this->strings['welcome_menu_text']), $title , 'edit_theme_options', 'vmagazine-lite-welcome', array( $this, 'welcome_screen' ));\n\t\t\t}", "public function welcome()\n {\n return view('welcome', ['check' => Auth::check()]);\n }", "public function showWelcome()\n {\n // each time we load the welcome page a different featured\n // listing is highlighted\n $listing = Listing::orderByRaw('RAND()')->first();\n $this->viewData['listing'] = $listing;\n return View::make('main', $this->viewData);\n }", "public function actionIndex()\n\t{\n\t\techo 'Hello World';\n\t}", "public function index(){\n \t$this->head = $this->fetch('head'); \n \t$this->foot = $this->fetch('foot');\n \t\n \t\n \tif(isset($_SESSION['user_id']))\n \t{\n \t\t\n \t}\n \telse\t\n \t{\n \t\t$this->whetherLogin = \"<div id=\\\"wb_login_btn\\\"></div>\";\n \t}\n \t\n \t$this->display(); \n \t\n }", "function print_home() {\n\techo '\n\t<p class=\"alert alert-info\">\n\t\tWelcome <b>'.$_SESSION['username']. '</b> you can\n\t\t<a href=\"play_trivia.php\">play trivia</a> or <a href=\"insert_question.php\">insert questions</a>. \n\t\tUse the main menu above to select additional options or to logout.\n\t</p>\n\t';\t\n}", "public function winespace_welcome_who() {\n\t\trequire_once( get_template_directory() . '/inc/admin/welcome-screen/sections/who.php' );\n\t}" ]
[ "0.7321612", "0.73205566", "0.7317806", "0.7316023", "0.7207841", "0.7196249", "0.7039225", "0.6951818", "0.68444747", "0.68342555", "0.67771435", "0.6739362", "0.67309403", "0.6639759", "0.6634302", "0.663418", "0.6622472", "0.6622472", "0.6622472", "0.6622472", "0.6622472", "0.6622472", "0.6622472", "0.6622472", "0.6622472", "0.6622472", "0.66136146", "0.66057867", "0.6589185", "0.65883744", "0.6577074", "0.65475816", "0.6524002", "0.65122586", "0.65112615", "0.6503544", "0.65000993", "0.6491924", "0.64703035", "0.64557356", "0.6453153", "0.6440989", "0.64214677", "0.6406839", "0.6378097", "0.6373926", "0.6372515", "0.63633823", "0.63633823", "0.63633823", "0.63633823", "0.63633823", "0.63633823", "0.63633823", "0.63633823", "0.63633823", "0.63633823", "0.63633823", "0.63633823", "0.63633823", "0.6345694", "0.6333727", "0.63131607", "0.6288298", "0.6287045", "0.6280073", "0.6278219", "0.62719405", "0.6262709", "0.62571454", "0.62334013", "0.62306786", "0.62306786", "0.6227269", "0.6225928", "0.6216595", "0.62114507", "0.6201101", "0.61799854", "0.6170269", "0.61697423", "0.61683816", "0.6150575", "0.61265785", "0.6122474", "0.6122017", "0.6121272", "0.611859", "0.6118239", "0.6108988", "0.6103861", "0.60942656", "0.6074309", "0.60658085", "0.6054235", "0.60422945", "0.6041786", "0.6036728", "0.60180044", "0.6007645" ]
0.6329143
62
Searching vehicle by name.
public function search(Request $request) { $data = $request->only([ 'value', 'type' ]); try { $result = $this->vehicleService->getVehicleService($data); } catch (Exception $e) { return $this->sendError($e->getMessage()); } return $this->sendResponse(null, $result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function search($name)\n {\n return DB::table('pokemon')\n ->where('name', 'like', '%' . $name . '%')\n ->orderBy('name', $request->dir ?? 'ASC')\n ->paginate(10);\n }", "public function search($name)\n {\n //\n $objects = Object::where('name','LIKE',\"%$name%\")->get(['id','name']);\n return response()->json( $objects );\n }", "public function findByName(String $name);", "public function searchByName($query);", "public function actionSearch($name)\n {\n \t$name = isset($name) ? $name : '';\n \t$list = array();\n \t$name = trim($name); \n \tif($name != '')\n \t{\n \t\t$query = JobpositionBase::find()->select(['id', 'title', 'status'])->where(['status' => 1])->andWhere(['like' , 'title', $name])\n \t\t->orderBy(['title' => SORT_ASC]);\n \t\t//echo $query->createCommand()->sql; exit;\n \t\t$list = $query->all();\n \t}\n \telse {\n \t\techo 'no name!';\n \t}\n \t \n \tif(count($list) == 0)\n \t{\n \t\techo Yii::t('app', 'keine Ergebnisse');\n \t\texit;\n \t}\n \t \n \tforeach ($list as $item)\n \t{\n \t\techo '<li data-id=\"' . $item->id . '\">' . $item->title . '</li>';\n \t}\n \texit;\n }", "public function searchCarByName(string $name)\n {\n $query = $this->createQueryBuilder('car')\n ->leftJoin('car.imageLogo', 'image_logo')\n ->select('car.name', 'car.id', 'car.slug')\n ->addSelect('image_logo.id as imageId', 'image_logo.providerReference')\n ->where('car.name LIKE :name')\n ->setParameter('name', '%' . $name . '%')\n ->getQuery();\n\n return $query->getResult();\n }", "public function search($name)\n {\n return Item::where('title', 'like','%' .$name. '%')->orWhere('sku', 'like','%' .$name. '%')->orWhere('ebay_item_id', 'like','%' .$name. '%')->get();\n\n \n }", "public function search(){}", "public static function search($name)\n\t{\n\t\tthrow new Exception('stop');\n\t}", "public function findByName($name);", "public function findByName($name);", "public function findByName($name);", "public function search();", "public function search();", "public function car_lookup($car_name)\n {\n \n }", "public function _search($name)\n {\n $result = $this->like('nama_pelanggan', $name)\n ->select('nama_pelanggan')\n ->limit(10)\n ->get()\n ->getResult();\n return $result;\n }", "public static function find($name);", "public static function find($name);", "public function search($input)\r\n {\r\n return $this->db->table(self::TABLE)->ilike('name', '%' . $input . '%')->asc('name')->findAll();\r\n }", "public function ov_search($name, $value = ''){\n $args = func_get_args(); array_shift($args); array_shift($args);\n return $this->generate_input('search', $name, $value, true, $args);\n }", "public function search($keyword)\n {\n $sql = \"SELECT * FROM cars WHERE name = '$keyword' OR author = '$keyword';\";\n $stmt = $this->conn->query($sql);\n $result = $stmt->fetch();\n return new Car($result['id'], $result['name'], $result['author'], $result['price']);\n }", "public function seachByName($query)\n {\n return $this->model->where('name', 'like', \"%\" . $query . \"%\");\n }", "function search() {}", "public function searchByName($params) {\n\t\t$name = gv($params, 'name');\n\t\t$array_of_name = explode(' ', $name);\n\t\t$first_name = gv($array_of_name, 0);\n\t\t$middle_name = (str_word_count($name) > 2) ? gv($array_of_name, 1) : '';\n\t\t$last_name = gv($array_of_name, (str_word_count($name) > 2) ? 2 : 1);\n\n\t\t$page_length = gv($params, 'page_length', config('config.page_length'));\n\n\t\treturn $this->employee->with('employeeTerms', 'employeeDesignations', 'employeeDesignations.designation', 'employeeDesignations.designation.employeeCategory')->filterByFirstName($first_name)->filterByMiddleName($middle_name)->filterByLastName($last_name)->orderBy('first_name', 'asc')->orderBy('last_name', 'asc')->paginate($page_length);\n\t}", "public function search($input)\n {\n return $this->db->table(self::TABLE)->ilike('name', '%'.$input.'%')->asc('name')->findAll();\n }", "public function setNameSearch($name = NULL){\n\t\t$this->nameSearch = $name ? $name : \"Procurar \".$this->name;\n\t}", "public function search() {\r\n //retrieve query terms from search form\r\n $query_terms = trim($_GET['query-terms']);\r\n\r\n //if search term is empty, list all vacations\r\n if ($query_terms == \"\") {\r\n $this->index();\r\n }\r\n\r\n //search the database for matching movies\r\n $vacations = $this->vacation_model->search_vacation($query_terms);\r\n\r\n if ($vacations === false) {\r\n //handle error\r\n $message = \"An error has occurred.\";\r\n $this->error($message);\r\n return;\r\n }\r\n //display matched movies\r\n $search = new VacationSearch();\r\n $search->display($query_terms, $vacations);\r\n }", "public function search($name)\n {\n // Get the authenticated user\n $user = auth()->user();\n\n return Contact::\n where('name', 'like', '%'.$name.'%')->\n where('user_id', $user->id)->\n get();\n }", "public function findByName( $name ){\n\t\t\t$name = mysqli_escape_string( $this->connection, $name );\n\t\t\t$sql = \"SELECT * FROM thanh_vien WHERE name = '$name' \";\n\t\t\t$rs = mysqli_query( $this->connection, $sql );\n\t\t\t$thanhVienArr = array();\n\t\t\twhile( $thanhVien = mysqli_fetch_object( $rs ) ){\n\t\t\t\t$thanhVienArr[] = $thanhVien;\n\t\t\t}\n\t\t\treturn $thanhVienArr;\n\n\t\t}", "public function search(Request $request)\n\t{\n\t\tif ($request->input(\"action\")==\"person_name\")\n\t\t{\t\n\t\t\t$name=PersonInfo::where('nationalid','LIKE', '%' . $request->input(\"person_name\"). '%')->orWhere('name','LIKE', '%' . $request->input(\"person_name\"). '%')->get();\n\t\n\t\t\treturn $name;\n\t\t}\n\t}", "public static function search() {\n\n $string = Input::get('string');\n\n $results = Genre::Where('name_de', 'like', \"$string%\")->get();\n\n return ($results->toArray());\n }", "public function search($city);", "function search()\n\t{}", "function search()\n\t{}", "public function search($params = []);", "public function search($keyword)\n {\n }", "public function search_video( $name, $order_by = \"title\" )\r\n\t\t{\r\n\t\t\t// initialize variables\r\n\t\t\t$result = false;\r\n\t\t\t$fields = array();\r\n\t\t\t\r\n\t\t\t// determine field info to include\r\n\t\t\t$fields[] = \"associated_images\";\r\n\t\t\t$fields[] = \"mediafiles\";\r\n\t\t\t$fields[] = \"captions\";\r\n\t\t\t\r\n\t\t\t// get results\r\n\t\t\t$code = $this->make_request( self::ENDPOINT . \"?filter_title=\" . $name . \"&fields=\" . implode( \",\", $fields ) . \"&filter_availability_status=Available&order_by={$order_by}\" );\r\n\t\t\tif ( $code )\r\n\t\t\t\t$result = json_decode( $code );\r\n\t\t\t\r\n\t\t\treturn $result;\r\n\t\t}", "public function searchUserByName($name){\r\n $result = $this->DB->fetchAll('select * from user where name like ?',array(\"%{$name}%\"));\r\n return $this->formatResult($result);\r\n }", "public function search()\n\t{\n\t\t\n\t}", "public function search()\n {\n $vereinRepository = new VereinRepository();\n $searchTerm = $_GET['searchTerm'];\n $view = new View('verein_index');\n $view->heading = 'Suchbegriff: '. $searchTerm;\n $view->title = 'Vereine';\n $view->vereine = $vereinRepository->search($searchTerm);\n\n $view->display();\n }", "public function SearchByName(Request $request)\n\t{\n\t\t$searchString = trim(Input::get('searchString'));\n\t\t$negative = false;\n\t\t$primary = false;\n\t\t$secondary = false;\n\t\t$searchClassifier = null;\n\t\t\n\t\t//Pull the negative out\n\t\tif ($searchString[0] == \"-\")\n\t\t{\n\t\t\t$negative = true;\n\t\t\t$searchString = trim(substr($searchString, 1));\n\t\t}\n\t\t\n\t\t//Pull primary and secondary out\n\t\t$flag_marker = strpos($searchString, ':');\n\t\tif ($flag_marker !== false)\n\t\t{\n\t\t\t$flag = strtolower(substr($searchString, 0, $flag_marker));\n\t\t\t\n\t\t\tif ($flag == \"primary\")\n\t\t\t{\n\t\t\t\t$primary = true;\n\t\t\t\t$searchString = trim(substr($searchString, $flag_marker + 1));\n\t\t\t}\n\t\t\telse if ($flag == \"secondary\")\n\t\t\t{\n\t\t\t\t$secondary = true;\n\t\t\t\t$searchString = trim(substr($searchString, $flag_marker + 1));\n\t\t\t}\n\t\t}\n\t\t\t\n\t\t//Pull targeting out\n\t\t$flag_marker = strpos($searchString, ':');\n\t\tif ($flag_marker !== false)\n\t\t{\n\t\t\t//Get the contents before the \":\" to check for search clarifiers\n\t\t\t$searchClassifier = strtolower(substr($searchString, 0, $flag_marker));\n\t\t\t$searchString = trim(substr($searchString, $flag_marker + 1));\n\t\t}\n\t\t\n\t\t$values = array();\n\t\tif ($searchClassifier == \"artist\")\n\t\t{\n\t\t\t$values = SearchLookupHelper::ArtistLookupHelper($searchString);\n\t\t\tforeach ($values as $value)\n\t\t\t{\n\t\t\t\t$returnString = self::BuildTypeAheadString($value['value'], \"artist:\", $primary, $secondary, $negative);\n\t\t\t\t\n\t\t\t\t$value['value'] = $returnString;\n\t\t\t\t$value['label'] = $returnString;\n\t\t\t}\n\t\t}\n\t\telse if ($searchClassifier == \"character\")\n\t\t{\n\t\t\t$values = SearchLookupHelper::CharacterLookupHelper($searchString);\n\t\t\tforeach ($values as $value)\n\t\t\t{\n\t\t\t\t$returnString = self::BuildTypeAheadString($value['value'], \"character:\", $primary, $secondary, $negative);\n\t\t\t\t\n\t\t\t\t$value['value'] = $returnString;\n\t\t\t\t$value['label'] = $returnString;\n\t\t\t}\n\t\t}\n\t\telse if ($searchClassifier == \"scanalator\")\n\t\t{\n\t\t\t$values = SearchLookupHelper::ScanalatorLookupHelper($searchString);\n\t\t\tforeach ($values as $value)\n\t\t\t{\n\t\t\t\t$returnString = self::BuildTypeAheadString($value['value'], \"scanalator:\", $primary, $secondary, $negative);\n\t\t\t\t\n\t\t\t\t$value['value'] = $returnString;\n\t\t\t\t$value['label'] = $returnString;\n\t\t\t}\n\t\t}\n\t\telse if ($searchClassifier == \"series\")\n\t\t{\n\t\t\t$values = SearchLookupHelper::SeriesLookupHelper($searchString);\n\t\t\tforeach ($values as $value)\n\t\t\t{\n\t\t\t\t$returnString = self::BuildTypeAheadString($value['value'], \"series:\", $primary, $secondary, $negative);\n\t\t\t\t\n\t\t\t\t$value['value'] = $returnString;\n\t\t\t\t$value['label'] = $returnString;\n\t\t\t}\n\t\t}\n\t\telse if ($searchClassifier == \"tag\")\n\t\t{\n\t\t\t$values = SearchLookupHelper::TagLookupHelper($searchString);\n\t\t\tforeach ($values as $value)\n\t\t\t{\n\t\t\t\t$returnString = self::BuildTypeAheadString($value['value'], \"tag:\", $primary, $secondary, $negative);\n\t\t\t\t\n\t\t\t\t$value['value'] = $returnString;\n\t\t\t\t$value['label'] = $returnString;\n\t\t\t}\n\t\t}\n\t\telse if ($searchClassifier == \"language\")\n\t\t{\n\t\t\t$languages = Language::where('languages.name', 'like', '%' . $searchString . '%')->leftjoin('collections', 'languages.id', '=', 'collections.language_id')->select('languages.*', DB::raw('count(*) as total'))->groupBy('id')->orderBy('total', 'desc')->take(5)->pluck('name');\n\t\t\t\n\t\t\tforeach ($languages as $language)\n\t\t\t{\n\t\t\t\t$returnString = self::BuildTypeAheadString($language, \"language:\", false, false, $negative);\n\t\t\t\tarray_push($values, ['value' => $returnString, 'label' => $returnString]);\n\t\t\t}\n\t\t}\n\t\telse if ($searchClassifier == \"rating\")\n\t\t{\n\t\t\t$ratings = Rating::where('ratings.name', 'like', '%' . $searchString . '%')->leftjoin('collections', 'ratings.id', '=', 'collections.rating_id')->select('ratings.*', DB::raw('count(*) as total'))->groupBy('id')->orderBy('total', 'desc')->take(5)->pluck('name');\n\t\t\t\n\t\t\tforeach ($ratings as $rating)\n\t\t\t{\n\t\t\t\t$returnString = self::BuildTypeAheadString($rating, \"rating:\", false, false, $negative);\n\t\t\t\tarray_push($values, ['value' => $returnString, 'label' => $returnString]);\n\t\t\t}\n\t\t}\n\t\telse if ($searchClassifier == \"status\")\n\t\t{\n\t\t\t$statuses = Status::where('statuses.name', 'like', '%' . $searchString . '%')->leftjoin('collections', 'statuses.id', '=', 'collections.status_id')->select('statuses.*', DB::raw('count(*) as total'))->groupBy('id')->orderBy('total', 'desc')->take(5)->pluck('name');\n\t\t\t\n\t\t\tforeach ($statuses as $status)\n\t\t\t{\n\t\t\t\t$returnString = self::BuildTypeAheadString($status, \"status:\", false, false, $negative);\n\t\t\t\tarray_push($values, ['value' => $returnString, 'label' => $returnString]);\n\t\t\t}\n\t\t}\n\t\telse \n\t\t{\t\n\t\t\t//Get artists with total\n\t\t\t$artists = Artist::where('artists.name', 'like', '%' . $searchString . '%')->leftjoin('artist_collection', 'artists.id', '=', 'artist_collection.artist_id')->select('artists.*', DB::raw('count(*) as total'))->groupBy('name')->orderBy('total', 'desc')->take(5)->get();\n\t\t\t\n\t\t\t$artists = $artists->map(function ($item) use ($primary, $secondary, $negative){\n\t\t\t\t$buildString = self::BuildTypeAheadString($item->name, \"artist:\", $primary, $secondary, $negative);\n\t\t\t\treturn ['name' => $buildString, 'total' => $item->total];\n\t\t\t});\n\t\t\t\n\t\t\t//Get global artist aliases with total\n\t\t\t$global_artist_aliases = ArtistAlias::where('user_id', '=', null)->where('alias', 'like', '%' . $searchString . '%')->leftjoin('artists', 'artists.id', '=', 'artist_alias.artist_id')->leftjoin('artist_collection', 'artists.id', '=', 'artist_collection.artist_id')->select('artist_alias.*', DB::raw('count(*) as total'))->groupBy('id')->orderBy('total', 'desc')->take(5)->get();\n\t\t\t\n\t\t\t$global_artist_aliases = $global_artist_aliases->map(function ($item) use ($primary, $secondary, $negative){\n\t\t\t\t$buildString = self::BuildTypeAheadString($item->alias, \"artist:\", $primary, $secondary, $negative);\n\t\t\t\treturn ['name' => $buildString, 'total' => $item->total];\n\t\t\t});\n\t\t\t\n\t\t\t//Get characters with total\n\t\t\t$characters = Character::where('characters.name', 'like', '%' . $searchString . '%')->leftjoin('character_collection', 'characters.id', '=', 'character_collection.character_id')->select('characters.*', DB::raw('count(*) as total'))->groupBy('name')->orderBy('total', 'desc')->take(5)->get();\n\t\t\t\n\t\t\t$characters = $characters->map(function ($item) use ($primary, $secondary, $negative){\n\t\t\t\t$buildString = self::BuildTypeAheadString($item->name, \"character:\", $primary, $secondary, $negative);\n\t\t\t\treturn ['name' => $buildString, 'total' => $item->total];\n\t\t\t});\n\t\t\n\t\t\t//Get global character aliases with total\n\t\t\t$global_character_aliases = CharacterAlias::where('user_id', '=', null)->where('alias', 'like', '%' . $searchString . '%')->leftjoin('characters', 'characters.id', '=', 'character_alias.character_id')->leftjoin('character_collection', 'characters.id', '=', 'character_collection.character_id')->select('character_alias.*', DB::raw('count(*) as total'))->groupBy('id')->orderBy('total', 'desc')->take(5)->get();\n\t\t\n\t\t\t$global_character_aliases = $global_character_aliases->map(function ($item) use ($primary, $secondary, $negative){\n\t\t\t\t$buildString = self::BuildTypeAheadString($item->alias, \"character:\", $primary, $secondary, $negative);\n\t\t\t\treturn ['name' => $buildString, 'total' => $item->total];\n\t\t\t});\n\t\t\n\t\t\t//Get scanalators with total\n\t\t\t$scanalators = Scanalator::where('scanalators.name', 'like', '%' . $searchString . '%')->leftjoin('chapter_scanalator', 'scanalators.id', '=', 'chapter_scanalator.scanalator_id')->select('scanalators.*', DB::raw('count(*) as total'))->groupBy('name')->orderBy('total', 'desc')->take(5)->get();\n\t\t\n\t\t\t$scanalators = $scanalators->map(function ($item) use ($primary, $secondary, $negative){\n\t\t\t\t$buildString = self::BuildTypeAheadString($item->name, \"scanalator:\", $primary, $secondary, $negative);\n\t\t\t\treturn ['name' => $buildString, 'total' => $item->total];\n\t\t\t});\n\t\t\t\n\t\t\t//Get global scanalator aliases with total\n\t\t\t$global_scanalator_aliases = ScanalatorAlias::where('user_id', '=', null)->where('alias', 'like', '%' . $searchString . '%')->leftjoin('scanalators', 'scanalators.id', '=', 'scanalator_alias.scanalator_id')->leftjoin('chapter_scanalator', 'scanalators.id', '=', 'chapter_scanalator.scanalator_id')->select('scanalator_alias.*', DB::raw('count(*) as total'))->groupBy('id')->orderBy('total', 'desc')->take(5)->get();\n\t\t\t\n\t\t\t$global_scanalator_aliases = $global_scanalator_aliases->map(function ($item) use ($primary, $secondary, $negative){\n\t\t\t\t$buildString = self::BuildTypeAheadString($item->alias, \"scanalator:\", $primary, $secondary, $negative);\n\t\t\t\treturn ['name' => $buildString, 'total' => $item->total];\n\t\t\t});\n\t\t\t\n\t\t\t//Get series with total\n\t\t\t$series = Series::where('series.name', 'like', '%' . $searchString . '%')->leftjoin('collection_series', 'series.id', '=', 'collection_series.series_id')->select('series.*', DB::raw('count(*) as total'))->groupBy('name')->orderBy('total', 'desc')->take(5)->get();\n\t\t\n\t\t\t$series = $series->map(function ($item) use ($primary, $secondary, $negative){\n\t\t\t\t$buildString = self::BuildTypeAheadString($item->name, \"series:\", $primary, $secondary, $negative);\n\t\t\t\treturn ['name' => $buildString, 'total' => $item->total];\n\t\t\t});\n\t\t\t\n\t\t\t//Get global series aliases with total\n\t\t\t$global_series_aliases = SeriesAlias::where('user_id', '=', null)->where('alias', 'like', '%' . $searchString . '%')->leftjoin('series', 'series.id', '=', 'series_alias.series_id')->leftjoin('collection_series', 'series.id', '=', 'collection_series.series_id')->select('series_alias.*', DB::raw('count(*) as total'))->groupBy('id')->orderBy('total', 'desc')->take(5)->get();\n\t\t\t\n\t\t\t$global_series_aliases = $global_series_aliases->map(function ($item) use ($primary, $secondary, $negative){\n\t\t\t\t$buildString = self::BuildTypeAheadString($item->alias, \"series:\", $primary, $secondary, $negative);\n\t\t\t\treturn ['name' => $buildString, 'total' => $item->total];\n\t\t\t});\n\n\t\t\t//Get global tags with total\n\t\t\t$tags = Tag::where('tags.name', 'like', '%' . $searchString . '%')->leftjoin('collection_tag', 'tags.id', '=', 'collection_tag.tag_id')->select('tags.*', DB::raw('count(*) as total'))->groupBy('name')->orderBy('total', 'desc')->take(5)->get();\n\t\t\n\t\t\t$tags = $tags->map(function ($item) use ($primary, $secondary, $negative){\n\t\t\t\t$buildString = self::BuildTypeAheadString($item->name, \"tag:\", $primary, $secondary, $negative);\n\t\t\t\treturn ['name' => $buildString, 'total' => $item->total];\n\t\t\t});\n\t\t\t\n\t\t\t//Get global tag aliases with total\n\t\t\t$global_tag_aliases = TagAlias::where('user_id', '=', null)->where('alias', 'like', '%' . $searchString . '%')->leftjoin('tags', 'tags.id', '=', 'tag_alias.tag_id')->leftjoin('collection_tag', 'tags.id', '=', 'collection_tag.tag_id')->select('tag_alias.*', DB::raw('count(*) as total'))->groupBy('id')->orderBy('total', 'desc')->take(5)->get();\n\t\t\t\n\t\t\t$global_tag_aliases = $global_tag_aliases->map(function ($item) use ($primary, $secondary, $negative){\n\t\t\t\t$buildString = self::BuildTypeAheadString($item->alias, \"tag:\", $primary, $secondary, $negative);\n\t\t\t\treturn ['name' => $buildString, 'total' => $item->total];\n\t\t\t});\n\t\t\t\n\t\t\t$languages = Language::where('languages.name', 'like', '%' . $searchString . '%')->leftjoin('collections', 'languages.id', '=', 'collections.language_id')->select('languages.*', DB::raw('count(*) as total'))->groupBy('id')->orderBy('total', 'desc')->take(5)->get();\n\t\t\t\n\t\t\t$languages = $languages->map(function ($item) use ($negative){\n\t\t\t\t$buildString = self::BuildTypeAheadString($item->name, \"language:\", false, false, $negative);\n\t\t\t\treturn ['name' => $buildString, 'total' => $item->total];\n\t\t\t});\n\t\t\t\n\t\t\t$ratings = Rating::where('ratings.name', 'like', '%' . $searchString . '%')->leftjoin('collections', 'ratings.id', '=', 'collections.rating_id')->select('ratings.*', DB::raw('count(*) as total'))->groupBy('id')->orderBy('total', 'desc')->take(5)->get();\n\t\t\t\n\t\t\t$ratings = $ratings->map(function ($item) use ($negative){\n\t\t\t\t$buildString = self::BuildTypeAheadString($item->name, \"rating:\", false, false, $negative);\n\t\t\t\treturn ['name' => $buildString, 'total' => $item->total];\n\t\t\t});\n\t\t\t\n\t\t\t$statuses = Status::where('statuses.name', 'like', '%' . $searchString . '%')->leftjoin('collections', 'statuses.id', '=', 'collections.status_id')->select('statuses.*', DB::raw('count(*) as total'))->groupBy('id')->orderBy('total', 'desc')->take(5)->get();\n\t\t\t\n\t\t\t$statuses = $statuses->map(function ($item) use ($negative){\n\t\t\t\t$buildString = self::BuildTypeAheadString($item->name, \"status:\", false, false, $negative);\n\t\t\t\treturn ['name' => $buildString, 'total' => $item->total];\n\t\t\t});\n\t\t\t\n\t\t\t$matches = collect();\n\t\t\t$matches->push($artists);\n\t\t\t$matches->push($global_artist_aliases);\n\t\t\t$matches->push($characters);\n\t\t\t$matches->push($global_character_aliases);\n\t\t\t$matches->push($scanalators);\n\t\t\t$matches->push($global_scanalator_aliases);\n\t\t\t$matches->push($series);\n\t\t\t$matches->push($global_series_aliases);\n\t\t\t$matches->push($tags);\n\t\t\t$matches->push($global_tag_aliases);\n\t\t\t$matches->push($languages);\n\t\t\t$matches->push($ratings);\n\t\t\t$matches->push($statuses);\t\t\t\n\t\t\n\t\t\t$matches = $matches->flatten(1);\n\t\t\t$matches = $matches->sortByDesc('total');\n\t\t\t$typeAheadCollection = $matches->take(5)->pluck('name');\n\t\t\n\t\t\t$typeAheadCollection = $typeAheadCollection->sort();\n\t\t\t\n\t\t\tforeach ($typeAheadCollection as $typeAhead)\n\t\t\t{\n\t\t\t\tarray_push($values, ['value' => $typeAhead, 'label' => $typeAhead]);\n\t\t\t}\t \n\t\t}\n\t\t\n\t\treturn $values;\n\t}", "function search( \n\t $name, $title = null, $value = null, \n\t $required = false, \n\t $attributes = null\n\t){\n return $this->input(\n\t $name, \n\t Form::TYPE_SEARCH,\n\t $title, \n\t $value, \n\t $required, \n\t $attributes,\n\t null,\n\t Form::DATA_STRING\n );\n\t}", "function searchInventory ($searchValue) {\n global $db;\n \n \n //$stmt = $db->prepare(\"SELECT * FROM schools WHERE $column LIKE :search\");\n\n \n \n $results = [];\n $stmt = $db->prepare(\"SELECT idItem, `name`, amount, unitPrice, salesPrice, parAmount FROM inventory WHERE name LIKE :search\");\n $search = '%'.$searchValue.'%';\n $binds = array(\n \":search\" => $search\n );\n\n if ( $stmt->execute($binds) && $stmt->rowCount() > 0 ) {\n $results = $stmt->fetchAll(PDO::FETCH_ASSOC);\n\n }\n\n return ($results);\n }", "public function findByName() { \n\n $term = Request::input('term');\n $cities = []; \n if (($term) && ($term !== '')) {\n $search_term = Helpers::accentToRegex($term);\n $query_term = '/.*' . $search_term . '*/i';\n $cities = Cities::where('properties.nome_municipio', 'regexp', $query_term)->\n orderBy('properties.nome_municipio')->\n get(array('properties.geo_codigo', 'properties.nome_municipio', 'properties.sigla')); \n }\n\n return Response::json($cities); \n }", "public function searchByName($name){\n $projections=$this->getAllProjectionsGroup();\n $arrayFinded = array();\n foreach ($projections as $value) {\n $movie=$value->getMovie();\n if (stripos($movie->getTitle(),$name)!==false)\n {\n array_push($arrayFinded,$value);\n }\n }\n return $arrayFinded; \n }", "public function search($search);", "public function searchBook(string $bookName)\n {\n }", "public function searchnameAction() {\n\t\t$name = $this->params()->fromRoute('name', null);\n\n\t\tif ($name !== null) {\n\t\t\t$donorData = $this->_donorsTable->searchName($name);\n\n\t\t\tif ($donorData !== null && !empty($donorData)) {\n\t\t\t\treturn new JsonModel($donorData);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new \\Exception('No entries found', 404);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthrow new \\Exception('Missing API parameter', 502);\n\t\t}\n\t}", "public function searchCarte()\n {\n $this->utils->Restreindre($this->userConnecter->admin, $this->utils->Est_autoriser(40, $this->userConnecter->profil));\n $data['lang'] = $this->lang->getLangFile($this->getSession()->getAttribut('lang'));\n $params = array('view' => 'compte/search-carte');\n $this->view($params, $data);\n }", "public function Search($objeto);", "public function searchOrthancPatientName($name)\n {\n $url = $this->url.\"/tools/find\";\n\n $searchQuery = array(\n \"Level\"=>\"Patient\",\n \"Query\"=>array(\"PatientName\"=>$name),\n );\n\n $searchStr = json_encode($searchQuery);\n\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_HEADER, false);\n curl_setopt($ch, CURLOPT_POSTFIELDS,$searchStr);\n $data = curl_exec($ch);\n // curl_close($ch);\n \n if (curl_errno($ch)) {\n \t\n $er = curl_errno($ch);\n curl_close($ch);\n return array(\"status\"=>false,\"result\"=>curl_strerror($er));\n }else{\n $result = json_decode($data,true);\n\n $patientData = array();\n\n foreach ($result as $pID){\n $res = $this->getPatientData($pID);\n if (!$res[\"status\"]){\n return $res;\n }else{\n $patientData[] = $this->resultData($res);\n }\n }\n curl_close($ch);\n return $this->resultStatus(true, $patientData);\n }\n\n\n\n return $patientData;\n }", "public function find($name)\n {\n\t\t$this->load($name);\n }", "function searchRecipe($text=false){\n\t\t$filter=false;\n\t\tif($text!=false){\n\t\t\t$filter=\"Name like '%$text%'\";\n\t\t}\n\t\t\n\t\treturn $this->getRecipe($filter);\n\t}", "public function search(string $name): JsonResponse\n {\n try {\n $products = Product::query()->where('name', 'like', '%'.$name.'%')->get();\n\n return response()->json([\n 'data' => $products,\n 'success' => true\n ]);\n } catch (Throwable $error) {\n return response()->json([\n 'data' => null,\n 'success' => false,\n 'message' => $error->getMessage()\n ]);\n }\n }", "public function search($term = null);", "public function search($race)\n {\n //\n return Cat::where('name', 'like', '%'.$race.'%')->get();\n }", "public function search($param)\n {\n $query = $this->createQueryBuilder('s')\n ->where('s.name LIKE :param')\n ->orWhere('s.resume LIKE :param')\n ->setParameter('param',\"%$param%\")\n ->getQuery();\n\n return $query->getResult();\n }", "public function filterByName($name)\n {\n $name = (string) $name;\n if ($name !== '') {\n $this->query->andWhere($this->query->expr()->like('b.name', $this->query->createNamedParameter('%' . addcslashes($name, '%_\\\\') . '%')));\n }\n }", "function nameSearch($conn, $search_term)\n {\n $query = \"SELECT DISTINCT whwp_Advert.advert_id FROM whwp_Advert \"\n . \"WHERE advert_bookname = :search_term \"\n . \"ORDER BY whwp_Advert.advert_price DESC\";\n $conn->prepQuery($query);\n $conn->bind('search_term', $search_term);\n $advert = $conn->resultset();\n return $advert;\n }", "function partialNameSearch($conn, $keyword)\n {\n $query = \"SELECT DISTINCT whwp_Advert.advert_id FROM whwp_Advert \"\n . \"WHERE advert_bookname LIKE :keyword \"\n . \"ORDER BY whwp_Advert.advert_price DESC\";\n\n $conn->prepQuery($query);\n $conn->bind('keyword', \"%\".$keyword.\"%\");\n $advert = $conn->resultset();\n return $advert;\n }", "public function searchUser(){\n $this->validate(request(),[\n 'name' => 'required'\n ]);\n $users =User::where('name',request('name'))->orWhere('name', 'like', '%' . request('name') . '%')->get();\n return response()->json($users);\n }", "public function whereName($value) {\n return $this->addSearchParam('searchFor', $value);\n }", "public function getSearch(Request $req, $name){\n if($this->itemRepo->exists($name)){\n $item = $this->itemRepo->getItemByName($name);\n return view('marketItem.showItem', [\n 'item' => $item,\n ]);\n }\n else{\n return redirect('/')->with('status', 'Hakukohdetta ei löytynyt');\n }\n }", "public function search($q);", "public function fuzzySearchName($name) {\n $con = mysqli_connect('localhost', 'root', 'root', 'HexDatabase');\n //TODO: Add firstname and surname support\n $query = 'SELECT * FROM User WHERE firstName LIKE \\'%'.$name.'%\\';';\n $results = mysqli_query($con, $query);\n if ($results) {\n return $this->getResultAsJson($results);\n } else {\n return json_encode(null);\n }\n }", "public function Search($criteria);", "public function search($name) {\n return $this->db->query(\"SELECT * FROM `user` WHERE `firstname` ='$name' or `lastname`='$name'\")->result();\n //return $this->db->last_query();\n //return $query->result(); \n }", "public function byName($name, $companyId = null);", "public function search() {\n // Get CDbCriteria instance\n $dbCriteria = new CDbCriteria;\n // Search for client name\n $dbCriteria->compare('name', Yii::app()->request->getQuery('name', ''), true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $dbCriteria,\n 'pagination' => array(\n 'pageSize' => 10,\n ),\n ));\n }", "public function findByPlayer($name);", "public function search($searchText){\n\n $sql = $this->db->select()\n ->from(\"job\")\n ->join(array(\"c\"=>\"categories\"), \"job.category_id=c.category_id\")\n ->join(array(\"com\"=>\"company\"), \"job.user_id=com.user_id\")\n ->join(array(\"ci\"=>\"city\"), \"job.city_id=ci.city_id\")\n ->where(\"job_name LIKE '%$searchText%' OR com_name LIKE '%$searchText%' or city_name LIKE '%$searchText%'\")\n// ->where(\" job_close_date > NOW() \")\n ;\n\n return $this->executeQuery($sql)->toArray();\n }", "public function getSearch();", "public function searchRecipe(String $name)\n {\n $builder = $this->db->table('recipes');\n $builder->like(\"recipe_name\", \"%\" . $name . \"%\");\n $query = $builder->get();\n return $query->getResult();\n }", "public function search()\n {\n\n }", "public function search()\n {\n\n }", "function findByName($name) {\n \t$str_len = strlen($name);\n \ttrim($name);\n \t$name = str_replace('category', '', strtolower($name));\n \t\n\t\t$conn = Doctrine_Manager::connection();\n\t\t// query for check if location exists\n\t\t$unique_query = \"SELECT id FROM commoditycategory WHERE LOWER(name) LIKE LOWER('%\".$name.\"%') OR LOWER(name) LIKE LOWER('%\".$name.\"%') OR LOWER(name) LIKE LOWER('%\".$name.\"%') \";\n\t\t$result = $conn->fetchOne($unique_query);\n\t\t// debugMessage($unique_query);\n\t\t// debugMessage($result);\n\t\treturn $result; \n\t}", "public function findName($name)\n {\n return $this->model->where('name', $name)->first();\n }", "public function findByName($search) {\n $connection = $this->connect();\n\n if (!$connection) {\n return false;\n }\n\n try {\n $sql = \"SELECT * FROM `entry` WHERE `name` LIKE :search\";\n\n $query = $connection->prepare($sql); \n $query->execute(['search' => \"%$search%\"]);\n\n $result = $query->fetchAll(PDO::FETCH_ASSOC);\n\n return $result;\n\n } catch(PDOException $e) {\n echo \"Error: \" . $e->getMessage();\n }\n }", "public function search()\n {\n $data = [];\n if ($this->request->is('ajax')) {\n $term = $this->request->getQuery('term');\n $this->loadModel('Airobjects');\n $data = $this->Airobjects\n ->find('all')\n ->where(\n [\n 'OR' => [ \n \"code LIKE\" => $term . '%', \n \"city_name LIKE\" => $term . '%', \n \"airport_name LIKE\" => $term . '%', \n ],\n 'AND' => [\n \"code <> \\\"\\\"\" \n ]\n ]\n )\n ->limit(10)\n ->order('code')\n ->toArray(); \n }\n\n $this->set(compact('data'));\n $this->set('_serialize', 'data');\n }", "public static function search($name, $options = array(), $css_options = array()) {\n\n\t\tif (self::_hasAdapter(get_class(), __FUNCTION__))\n\t\t\treturn self::_callAdapter(get_class(), __FUNCTION__, $name, $options, $css_options);\n\n\t\t$filtered = self::_applyFilter(get_class(), __FUNCTION__, array(\n\t\t\t'name' => $name,\n\t\t\t'options' => $options,\n\t\t\t'css_options' => $css_options\n\t\t), array('event' => 'args'));\n\t\t\n\t\t$name = $filtered['name'];\n\t\t$options = $filtered['options'];\n\t\t$css_options = $filtered['css_options'];\n\n\t\t$css_defaults = array('class' => 'form-search');\n\t\t$css_options += $css_defaults;\n\n\t\t$input = self::input($name, 'search', $options, $css_options);\n\t\tself::_notify(get_class() . '::' . __FUNCTION__, $input, $name, $options, $css_options);\n\t\t$input = self::_applyFilter(get_class(), __FUNCTION__, $input, array('event' => 'return'));\n\n\t\treturn $input;\n\t}", "public function setName(string $name): ISearchOption;", "public function search()\n\t{\n\t\tif(isset($_GET['term']))\n\t\t{\n\t\t\t$result = $this->Busca_Model->pesquisar($_GET['term']);\n\t\t\tif(count($result) > 0) {\n\t\t\tforeach ($result as $pr)$arr_result[] = $pr->nome;\n\t\t\t\techo json_encode($arr_result);\n\t\t\t}\n\t\t}\n\t}", "public function byName($name)\n {\n $pdo = DB::getPdo();\n\n $sql = \"SELECT `clients`.`name`, `clients`.`uid`, `currencys`.`alias` AS `currency`, `clients`.`country`, \n `actions`.`alias` AS `action`, (`logs`.`value` / 100) AS `sum_value`, `logs`.`action_date`,\n IF(`rate`.`date` IS NOT NULL, ((`logs`.`value` / `rate`.`value`)), null) AS `curs`\n FROM `logs` \n LEFT JOIN `clients` ON `logs`.`client_id` = `clients`.`id`\n LEFT JOIN `wallets` ON `logs`.`client_id` = `wallets`.`client_id`\n LEFT JOIN `actions` ON `logs`.`action_id` = `actions`.`id`\n LEFT JOIN `currencys` ON `wallets`.`currency_id` = `currencys`.`id`\n LEFT JOIN `exchange_rates_to_usd` AS `rate` ON `currencys`.`id` IN(`rate`.`currency_id`)\n AND `rate`.`date` = CURDATE()\n WHERE `clients`.`name` LIKE :name\";\n\n $stmt = $pdo->prepare($sql, [PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true]);\n $stmt->bindParam(':name', $name, PDO::PARAM_STR);\n $stmt->execute();\n $result = $stmt->fetchAll(PDO::FETCH_ASSOC);\n\n if ($result === false) {\n throw new Exception('Error, not execute search client');\n }\n\n return $result;\n }", "public static function search() {\n\n $string = Input::get('string');\n\n $results = Artist::Where('name', 'like', \"$string%\")->get();\n\n return ($results->toArray());\n }", "public function getOneByName(string $name)\n {\n $starship = DB::table($this->tableName)->where('name',$name)->first();\n if ($starship) {\n return new VehicleEntity(get_object_vars($starship));\n }\n throw new Exception('No records for the passed name');\n }", "public function test_searchName() {\n\t\t$this->testAction('/disease/search/Acute%20tubular%20necrosis', array('method' => 'get'));\n\t\t$returnedDisease = $this->vars['diseases']['Disease'];\n\n\t\t$this->assertEquals(1, count($this->vars['diseases']));\n\t}", "public function searching(){\n\t\t\t$cari = $this->input->post('cari');\n\t\t\t$data['cari'] = $cari;\n\t\t\t$data['searching'] = $this->Artikel_model->searching($cari);\n\t\t\t$this->load->view('front/proses/searching',$data);\n\t\t}", "public function actionSearch() {\n //return Yii::$app->request->get('name');\n $keyword = Yii::$app->request->get(); // strongly recommended used more than $_GET function;\n if (!empty($keyword)) {\n $model = new $this->modelClass;\n foreach ($keyword as $key => $value) {\n if (!$model->hasAttribute($key)) {\n throw new HttpException(404, 'Invalid attribute:' . $key);\n }\n }\n try {\n $provider = new ActiveDataProvider([\n 'query' => $model->find()->where($keyword),\n 'pagination' => false\n ]);\n } catch (Exception $ex) {\n throw new HttpException(500, 'Internal server error');\n }\n\n if ($provider->getCount() <= 0) {\n throw new HttpException(404, 'No entries found with this query string');\n } else {\n return $provider;\n }\n } else {\n throw new HttpException(400, 'There are no query string');\n }\n }", "public function search($query);", "function _search($field, $key)\n\t{\n\t\tswitch ($field)\n\t\t{\n\t\t\tcase 'name':\n\t\t\t{\n\t\t\t\t$this->db->where('MATCH(tag.name) AGAINST(\\'\"'.$this->db->escape_str($key).'\"\\' IN BOOLEAN MODE)');\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "function get_search($search)\n\t{\n\t\treturn $this->name . \" LIKE '%\" . $search. \"%'\";\n\t}", "public static function search($name) {\n return DB::table('users AS u')\n ->where('u.fullname', 'LIKE', '%'.$name.'%')\n ->orWhere('u.username', 'LIKE', '%'.$name.'%')\n ->selectRaw('u.id, u.fullname, u.profile_image')\n ->get();\n }", "public function searchRutasbyPlaces(Request $r){\n $data = DB::table('consulta_ruta')\n ->where('lugar_destino','like','%'.strtoupper($r->name).'%')\n ->get();\n if ($data!='[]') {\n return response()->json([\"RES\"=>$data]);\n } else {\n return response()->json([\"RES\"=>false]);\n }\n }", "function search() {\n // ...\n }", "public function name ($name) {\n return (!$this->requestAllData($name)) ? $this->builder->where('name', 'like', '%'.$name.'%') : null;\n }", "public function search(Request $request)\n {\n $name = $request->input('name');\n // return $name;\n // $search = TRUE;\n if ($name) {\n //primeira é a coluna a segunda é a condição, terceira é o parametro \n //se eu tive outro where só colocar antes do ->get(), ->where(); \n $categories = Categoria::where('Categoria', 'like', '%' . $name . '%')->get();\n }\n //return $categories;\n // return view('category.index', compact('categories','search'));\n }", "public static function search() {\r\n $result = lC_Default::find($_GET['q']);\r\n\r\n echo $result;\r\n }", "abstract public function search($keyword, array $searchOptions = []);", "public function search(Request $request)\n {\n $name = $request->search;\n $data = customer::where('Customer_Name', 'LIKE', '%'. $name .'%')->get();\n return view('ManageAccount.CustomerListInterface', compact(\"data\"));\n }", "public function search($breedName)\n {\n // match exact\n //return Breed::where('breed_name', $breedName)->get();\n\n return Breed::where('breed_name', 'like', '%'.$breedName.'%')->get();\n }" ]
[ "0.6647996", "0.6602255", "0.6584983", "0.65133244", "0.6461889", "0.6374803", "0.635019", "0.63425994", "0.6328572", "0.63053155", "0.63053155", "0.63053155", "0.6262384", "0.6262384", "0.62401956", "0.62352043", "0.6172687", "0.6172687", "0.61021674", "0.6094919", "0.6083135", "0.60817903", "0.6074654", "0.6057508", "0.60247713", "0.60027575", "0.5945184", "0.5926983", "0.5917015", "0.5881707", "0.58698183", "0.5868641", "0.5861471", "0.5861471", "0.58593106", "0.5858296", "0.58464134", "0.58355707", "0.58235437", "0.580837", "0.5804796", "0.58024514", "0.5785038", "0.578032", "0.5772787", "0.5764215", "0.5749533", "0.5745368", "0.57256955", "0.57241064", "0.5714976", "0.5707954", "0.56995666", "0.5696892", "0.5676412", "0.56736195", "0.5662698", "0.5652275", "0.56397885", "0.56277823", "0.5622587", "0.5613333", "0.5590221", "0.5576184", "0.5571591", "0.556143", "0.5561106", "0.55518645", "0.5549491", "0.554513", "0.55428606", "0.5541965", "0.5541145", "0.5538677", "0.5538677", "0.5538602", "0.5536062", "0.55305094", "0.5511197", "0.5507899", "0.55077016", "0.5504947", "0.5503413", "0.5485095", "0.54791915", "0.54487085", "0.5439597", "0.54361737", "0.54337275", "0.5430283", "0.5425603", "0.5423382", "0.54212046", "0.5410279", "0.5405449", "0.53993535", "0.5394849", "0.5387423", "0.5370945", "0.53699666" ]
0.6038752
24
get 10 vehicle by name.
public function getTenVehicle(Request $request) { try { $result = $this->vehicleService->getTenVehicleService(); } catch (Exception $e) { return $this->sendError($e->getMessage()); } return $this->sendResponse(null, $result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findByName( $name ){\n\t\t\t$name = mysqli_escape_string( $this->connection, $name );\n\t\t\t$sql = \"SELECT * FROM thanh_vien WHERE name = '$name' \";\n\t\t\t$rs = mysqli_query( $this->connection, $sql );\n\t\t\t$thanhVienArr = array();\n\t\t\twhile( $thanhVien = mysqli_fetch_object( $rs ) ){\n\t\t\t\t$thanhVienArr[] = $thanhVien;\n\t\t\t}\n\t\t\treturn $thanhVienArr;\n\n\t\t}", "public function index()\n {\n $vehicles = $this->swapi->getVehicles();\n return response($vehicles);\n }", "public function getOneByName(string $name)\n {\n $starship = DB::table($this->tableName)->where('name',$name)->first();\n if ($starship) {\n return new VehicleEntity(get_object_vars($starship));\n }\n throw new Exception('No records for the passed name');\n }", "public function getVehicles()\n {\n //call getVehicles method from TravelWarrantRepository to get vehicles\n $vehicles = $this->repo->getVehicles();\n\n //if response status = '0' show error page\n if ($vehicles['status'] == 0)\n {\n return view('errors.500');\n }\n\n return view('app.travelWarrants.vehicles.list', ['vehicles' => $vehicles['data']]);\n }", "public function getTrackByName($name='')\n {\n $name = \\Illuminate\\Support\\Facades\\Input::get('name');\n //Get Tracks\n if(!empty($name)){\n $tracks = Tracks::where('title', 'like', '%' . $name . '%');\n }\n else{\n $tracks = Tracks::latest();\n }\n \n $count = $tracks->count();\n $all_tracks = $tracks->paginate($count);\n //Return collection of tracks as resource\n return $all_tracks;\n }", "public function getByName($name) {\n return $this->getBy($name, \"name\");\n }", "public function show(vehicle $vehicle)\n {\n //\n }", "function get_vehicles_by_price() {\n global $db;\n $query = 'SELECT * FROM vehicles\n ORDER BY price DESC';\n $statement = $db->prepare($query);\n $statement->execute();\n $vehicles = $statement->fetchAll();\n $statement->closeCursor();\n return $vehicles;\n }", "public function getTwoWheelerVehicle()\n { \n //creating new twoWheelerVehicle object\n $twoWheelVehicle = new twoWheelerVehicle(); \n $twoWheelVehicle = $twoWheelVehicle->getTwoWheelerVehicle(); // calling getMenus function of VegRestaurant class on vegRestaurant object\n echo \"Here are the two wheeler vechicles which you are looking for\\n \";\n }", "public function index()\n {\n return new VehicleResourceCollection($this->vehicleService->getVehicleRepository()->getAll());\n }", "function print_Vehicles(){\n $result = $this->query(\"SELECT * FROM VEHICLES\");\n while($row = mysqli_fetch_array($result)) {\n echo $row['TAG'] . \" \" . $row['MODEL'] . \" \" . $row['EMPLOYEE'];\n echo \"<br>\";\n }\n \n $result->close();\n }", "public function vehicle();", "public function getByName($name)\n {\n $params = array('term' => $name);\n return $this->curl->get('products/find', $params);\n }", "function getVehicles(){\n\t$db = phpmotorsConnect();\n\t$sql = 'SELECT invId, invMake, invModel FROM inventory';\n\t$stmt = $db->prepare($sql);\n\t$stmt->execute();\n\t$invInfo = $stmt->fetchAll(PDO::FETCH_ASSOC);\n\t$stmt->closeCursor();\n\treturn $invInfo;\n}", "public function index()\n {\n $vehicles = Vehicle::paginate(10);\n return view('vehicles', ['title'=>'Vehicle Inventory', 'addnew'=>'Vehicle', 'rows'=>$vehicles, 'table'=>'vehicles']);\n }", "public function getCarItemByName(string $name)\n {\n $query = $this->createQueryBuilder('car')\n ->where('car.name =:name')\n ->setParameter('name', $name)\n ->getQuery();\n\n return $query->getOneOrNullResult();\n }", "public static function Get($name);", "public function show(Vehicle $vehicle)\n {\n //\n }", "public function show($id)\n {\n $vehicle = $this->swapi->getVehicles($id);\n return response($vehicle);\n }", "public function index()\n {\n try {\n return $this->successResponse(VehicleResource::collection(Vehicle::all()), 'Vehicle list', 200);\n } catch (\\Exception $exception) {\n return $this->errorResponse($exception->getMessage(), 404);\n }\n }", "function getVehicleIdVehicleNameDetailVehicel($account_id_local1,$vehicle_display_option1,$options_value2,$DbConnection)\n {\n $query=\"SELECT vehicle_id,vehicle_name FROM vehicle WHERE account_id='$account_id_local1' AND $vehicle_display_option1='$options_value2' AND status='1'\";\n\t//echo \"query=\".$query;\n\t$result=mysql_query($query,$DbConnection);\n\t$flag=0;\n\t$vehicle_cnt=0;\n\twhile($row=mysql_fetch_object($result))\n\t{\n\t /*$vehicle_id=$row->vehicle_id; \n $vehicle_name=$row->vehicle_name;*/ \t\t\n $data[]=array('vehicle_id'=>$row->vehicle_id,'vehicle_name'=>$row->vehicle_name);\n\t}\n\treturn $data;\n }", "public static function getItem($name = '') {\n\n // Recommended: Secure Way to Write SQL in Yii \n $sql = 'SELECT id ,concat_ws(\" : \",name,unit_price) AS text \n FROM item \n WHERE (name LIKE :name or item_number=:item_number)';\n $name = '%' . $name . '%';\n $item_number = $name;\n return Yii::app()->db->createCommand($sql)->queryAll(true, array(':name' => $name, ':item_number'=>$item_number));\n \n }", "public function search($name)\n {\n //\n $objects = Object::where('name','LIKE',\"%$name%\")->get(['id','name']);\n return response()->json( $objects );\n }", "public function get($name = NULL);", "public static function searchToTen($keyword) {\n\n\t\t$data = Doctrine_Query::create()->select('c.cityName as name, c.name as airport,')\n\t\t\t\t->from(\"Airport c\")->where('c.deleted=0')\n\t\t\t\t->andWhere(\"c.cityName LIKE ?\", \"$keyword%\")->orderBy(\"c.cityName ASC\")\n\t\t\t\t->limit(20)->fetchArray();\n\t\treturn $data;\n\t}", "public function getBedByName() {\n $term = Request::input('term', '');\n\n $results = array();\n $queries = Bed::where('name', 'LIKE', '%'.$term.'%')\n ->take(10)->get();\n foreach ($queries as $query)\n $results[] = ['id' => $query->id,\n 'value' => $query->representation()];\n return response()->json($results);\n }", "public function vehicles(Request $request) {\n\n try {\n $modelYear = 'undefined';\n $make = 'undefined';\n $model = 'undefined';\n if ($request->input('modelYear')) {\n $modelYear = $request->input('modelYear');\n }\n if ($request->input('manufacturer')) {\n $make = $request->input('manufacturer');\n }\n if ($request->input('model')) {\n $model = $request->input('model');\n }\n\n $client = new Client();\n $res = $client->request('GET', 'https://one.nhtsa.gov/webapi/api/SafetyRatings/modelyear/' . $modelYear . '/make/' . $make . '/model/' . $model);\n\n $vehicles = $res->getBody();\n\n return $vehicles;\n } catch (\\Exception $e) {\n\n return array(\n 'Count' => 0,\n 'Message' => 'No results found for this request',\n 'Results' => array()\n );\n }\n }", "public function showbyname(Request $request) {\n $input = $request->all();\n $name = $input['name'];\n $results = DB::select('select * from restos where name = :name', ['name' => $name]);\n if ($results == null)\n return response()->json(['error'=> \"Restaurant Not Found\"], 404);\n else\n return new RestoResource(Resto::find($results[0]->id));\n }", "public function car_lookup($car_name)\n {\n \n }", "function get_car_detailbyclm_name($clm_name,$clm_value)\n {\n try{\n return $this->db->get_where('car_detail',array($clm_name=>$clm_value))->row_array();\n } catch (Exception $ex) {\n throw new Exception('Car_detail_model Madel : Error in get_car_detailbyclm_name function - ' . $ex);\n } \n }", "public function getCars()\n {\n $automoviles = Automovil::get();\n \n return $this->sendResponse($automoviles, 'Completado Correctamente.');\n }", "public function searchCarByName(string $name)\n {\n $query = $this->createQueryBuilder('car')\n ->leftJoin('car.imageLogo', 'image_logo')\n ->select('car.name', 'car.id', 'car.slug')\n ->addSelect('image_logo.id as imageId', 'image_logo.providerReference')\n ->where('car.name LIKE :name')\n ->setParameter('name', '%' . $name . '%')\n ->getQuery();\n\n return $query->getResult();\n }", "public function index()\n {\n return VehicleType::latest()->paginate(7);\n /*return DB::table('tblmotorvehiclelist')\n ->select('PlateNumber','DriverName','OperatorName','EngineNumber','SerialNumber')\n ->orderBy('id', 'desc')\n ->paginate(7);*/\n }", "public function get( $name );", "public function test_getAllVehicleTest()\n {\n $response = $this->get('/api/inventory/vehicles/search');\n\n $response->assertStatus(200);\n $response->assertJson ([\n 'data'=>[[\n \"name\"=>$response['data'][0]['name'],\n \"model\"=>$response['data'][0]['model'],\n \"manufacturer\"=> $response['data'][0]['count'],\n \"cost_in_credits\" =>$response['data'][0]['cost_in_credits'],\n \"length\"=>$response['data'][0]['length'],\n \"max_atmosphering_speed\"=> $response['data'][0]['max_atmosphering_speed'],\n \"crew\"=> $response['data'][0]['crew'],\n \"passengers\"=>$response['data'][0]['passengers'],\n \"cargo_capacity\"=>$response['data'][0]['cargo_capacity'],\n \"consumables\"=> $response['data'][0]['consumables'],\n \"vehicle_class\"=>$response['data'][0]['vehicle_class'],\n \"pilots\"=>$response['data'][0]['pilots'],\n \"films\"=>$response['data'][0]['films'],\n \"created\"=> $response['data'][0]['created'],\n \"edited\"=> $response['data'][0]['edited'],\n \"url\"=> $response['data'][0]['url'],\n \"count\"=> $response['data'][0]['count']\n ]]\n\n\n\n ]);\n }", "public function getByName($name = '')\n {\n \ttry {\n \t\tif($name === ''){\n \t\t\treturn ResponseHelper::armyResponse(false, 200, \"Error\", \"Error: no se recibio el parametro de busqueda.\") ;\n \t\t}\n\t\t\t// Cargo los entrenamientos.\n\t\t\t$training = Training::with('distance','level','duration')->where('name' , '=', $name)->first();\n\n\t\t\tif( $training !== null )\n\t\t\t{\n\t\t\t\t// Recorro los entrnamientos para cargar los stage.\n\t\t\t\t$training->stage;\n\t\t\t\tforeach ($training->stage as $key => $stage) {\n\t\t\t\t\t$training->stage[$key]->checkpoint;\n\t\t\t\t}\n\t\t\t}\t\t\t\n \t} catch (\\Exception $e) {\n \t\treturn ResponseHelper::armyResponse(false, 400, \"Internal Error\", \"Error: \" . $e->getMessage()) ;\n \t}\n \treturn ResponseHelper::armyResponse(true, 200, $training, '');\n }", "function getAllCars(){\n\t\t\t$query=\"select * from cars\";\n\t\t\t$result = pg_query($query);\n\n\t\t\t$data = [];\n\n\t\t\twhile ($record = pg_fetch_assoc($result)) {\n\t\t\t\t$car = new Car($record['id'],$record['model_name'], $record['model_type'], $record['model_brand'], $record['model_year'], $record['model_date_added'], $record['model_date_modified'] );\n\t\t\t\tarray_push($data, $car);\n\t\t\t}\n\n\t\t\treturn $data;\n\n\t\t}", "public function getVehicleById(int $id)\n {\n $vehicule;\n $takeBdd = $this->_bdd->prepare('SELECT * FROM vehicles WHERE id = :id');\n $takeBdd->bindValue(':id', $id, PDO::PARAM_INT);\n $takeBdd->execute();\n $takeAllBdd = $takeBdd->fetchAll();\n foreach ($takeAllBdd as $oneVehicule) {\n if ($oneVehicule['type'] == 'Camion') {\n $vehicule = new Truck($oneVehicule);\n } elseif ($oneVehicule['type'] == 'Voiture') {\n $vehicule = new Car($oneVehicule);\n } elseif ($oneVehicule['type'] == 'Moto') {\n $vehicule = new Motorbike($oneVehicule);\n }\n }\n return $vehicule;\n }", "public function get($name);", "public function get($name);", "public function get($name);", "public function get($name);", "public function get($name);", "public function get($name);", "public function get($name);", "public function get($name);", "public function get($name);", "public function get($name);", "public function get($name);", "public function get($name);", "public function getVehicles($id)\n {\n $sql = \"SELECT `vehicle_info`.`idvendorprofile`, `vehicle_info`.`driver_id`, `vehicle_info`.`vehicle_no`, `vehicle_info`.`make`,`vehicle_info`.`capacity`, `vehicle_info`.`basetype`, `vehicle_info`.`kmreading`, `vehicle_info`.`vendor_userid`, `vehicle_info`.`price_time`, `vehicle_info`.`price_km`, `vehicle_info`.`lattitude`, `vehicle_info`.`longitude`, `vehicle_info`.`status`, `vehicle_info`.`model`, `vehicle_info`.`make`, `vehicle_info`.`photo`,`vehicle_info`.`basefare`,`vehicle_info`.`km_multiplier`,`vehicle_info`.`time_multiplier`,`vehicle_info`.`min_hrs`,`vehicle_info`.`country`,`vehicle_basetype`.`basetype` AS `basetype_name` ,`vehicle_basetype`.`isdeleted`,`vehicle_info`.`revenue` FROM `vehicle_info` LEFT JOIN `vehicle_basetype` ON `vehicle_info`.`basetype` = `vehicle_basetype`.`base_type_id` WHERE 1 AND `vehicle_info`.`idvendorprofile`='\" . $id . \"'\";\n //echo $sql;\n $query = $this->db->query($sql);\n if ($query->num_rows() > 0) {\n $rowRes = $query->row();\n $vehicles = array(\"idvendorprofile\" => $rowRes->idvendorprofile, \"driver_id\" => $rowRes->driver_id, \"vehicle_no\" => $rowRes->vehicle_no, \"capacity\" => $rowRes->capacity, \"basetype\" => $rowRes->basetype, \"kmreading\" => $rowRes->kmreading, \"vendor_userid\" => $rowRes->vendor_userid, \"price_time\" => $rowRes->revenue, \"price_km\" => $rowRes->revenue, \"model\" => $rowRes->model, \"photo\" => $rowRes->photo, \"basetype_name\" => $rowRes->basetype_name, \"make\" => $rowRes->make, \"isdeleted\" => $rowRes->isdeleted,\"basefare\"=>$rowRes->basefare,\"km_multiplier\"=>$rowRes->km_multiplier,\"time_multiplier\"=>$rowRes->time_multiplier,\"min_hrs\"=>$rowRes->min_hrs,\"country\"=>$rowRes->country);\n return $vehicles;\n } else {\n return 0;\n }\n }", "public function getServiceByName() {\n $term = Request::input('term', '');\n\n $results = array();\n $queries = Service::where('name', 'LIKE', '%'.$term.'%')\n ->take(10)->get();\n foreach ($queries as $query)\n $results[] = ['id' => $query->id,\n 'value' => $query->name];\n return response()->json($results);\n }", "public function index()\n {\n return VehicleRate::latest()->paginate(7);\n /*return DB::table('tblmotorvehiclelist')\n ->select('PlateNumber','DriverName','OperatorName','EngineNumber','SerialNumber')\n ->orderBy('id', 'desc')\n ->paginate(7);*/\n }", "public function showByName($name);", "function get_from_name ($name='') {\n\t\t\n\t\t$ret = new tours('');\n\t\t$this->connection = $GLOBALS['connection'];\n\t\tif ( (isset($name) && strcmp($name,'')!=0) ) {\n\t\t\t$sql = \"SELECT * from `tours` WHERE `name`='\".addslashes('$name').\"' LIMIT 1\";\n\t\t\t\n\t\t\t$result = $this->connection->send_query($sql);\n\t\t\tif (!((!$result) || mysql_num_rows($result) == 0)){\n\t\t\t\t$row = mysql_fetch_assoc($result);\n\n\t\t\t\t$ret->id = $row['id'];\n\t\t\t\t$ret->name = $row['name'];\n\t\t\t\t$ret->duration = $row['duration'];\n\t\t\t\t$ret->description = $row['description'];\n\t\t\t\t$ret->tcid = $row['tcid'];\n\t\t\t\t$ret->_new = false;\n\t\t\t}\n\t\t}\n\t\treturn $ret;\n\t}", "public static function traerReq($name) {\n\n return Requisito::nombre($name)->orderBy('id','desc')->get();\n }", "function get($name) {\r\n\t\treturn $this->_send(array('cmd'=>'get', 'name'=>$name));\r\n\t}", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "function get_all_car_detail($params = array())\n {\n try{\n $this->db->order_by('car_id', 'desc');\n if(isset($params) && !empty($params)){\n $this->db->limit($params['limit'], $params['offset']);\n }\n return $this->db->get('car_detail')->result_array();\n } catch (Exception $ex) {\n throw new Exception('Car_detail_model model : Error in get_all_car_detail function - ' . $ex);\n } \n }", "public function show(Drivervehicle $drivervehicle)\n {\n\n }", "function get_t_techno_by_name($name)\n {\n return $this->db->get_where('t_techno',array('name'=>$name))->row_array();\n }", "public function get(string $name);", "public function get($name) {}", "public function get($name = null);", "public function get($parametros){\n //echo var_dump($parametros);\n $this->vigilaModel = new VigilaModel();\n if(!empty($parametros[0])){\n switch($parametros[0]){\n\n case 'getAllVigila':\n return $this->vigilaModel->getAllVigila();\n break;\n\n default:\n return [ \"error\"=>\"No hay parámetros para buscar una solicitud\"];\n break;\n }\n }\n }", "public function get()\n {\n $response = Vehicle::all();\n if(count($response) > 0){\n return response()->json([\"message\" => \"Veículos encontrados com sucesso\", \"data\" => $response]);\n }else{\n\n return response()->json([\"message\" => \"Nenhum Veículo encontrado\", \"data\" => $response]);\n }\n }", "public function index()\n {\n //\n $transmissions = VehicleTransmission::with('vehicles')->orderBy('name')->paginate(100);\n return compact('transmissions');\n }", "function return_listClientByName($nom = null)\n{\n return getClients(\"cli_nom\", \"asc\", ['cli_nom'=>$nom], true);\n}", "public function byName($name)\n {\n $pdo = DB::getPdo();\n\n $sql = \"SELECT `clients`.`name`, `clients`.`uid`, `currencys`.`alias` AS `currency`, `clients`.`country`, \n `actions`.`alias` AS `action`, (`logs`.`value` / 100) AS `sum_value`, `logs`.`action_date`,\n IF(`rate`.`date` IS NOT NULL, ((`logs`.`value` / `rate`.`value`)), null) AS `curs`\n FROM `logs` \n LEFT JOIN `clients` ON `logs`.`client_id` = `clients`.`id`\n LEFT JOIN `wallets` ON `logs`.`client_id` = `wallets`.`client_id`\n LEFT JOIN `actions` ON `logs`.`action_id` = `actions`.`id`\n LEFT JOIN `currencys` ON `wallets`.`currency_id` = `currencys`.`id`\n LEFT JOIN `exchange_rates_to_usd` AS `rate` ON `currencys`.`id` IN(`rate`.`currency_id`)\n AND `rate`.`date` = CURDATE()\n WHERE `clients`.`name` LIKE :name\";\n\n $stmt = $pdo->prepare($sql, [PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true]);\n $stmt->bindParam(':name', $name, PDO::PARAM_STR);\n $stmt->execute();\n $result = $stmt->fetchAll(PDO::FETCH_ASSOC);\n\n if ($result === false) {\n throw new Exception('Error, not execute search client');\n }\n\n return $result;\n }", "public function search($name)\n {\n return DB::table('pokemon')\n ->where('name', 'like', '%' . $name . '%')\n ->orderBy('name', $request->dir ?? 'ASC')\n ->paginate(10);\n }", "public function index()\n {\n $car = Vehicle::orderBy('id','desc')->get();\n return response()->json($car);\n }", "public function index()\n {\n //$allCar = Car::select('car_name', 'car_type', 'plate_number', 'fuel', 'taken')->get();\n $allCar = Car::all();\n return $allCar;\n \n }", "public function get($id,$name)\n\t{\n\t\t// echo \"get\";\n\t}", "public function get($id,$name)\n\t{\n\t\t// echo \"get\";\n\t}", "public function get($id,$name)\n\t{\n\t\t// echo \"get\";\n\t}", "public function get($id,$name)\n\t{\n\t\t// echo \"get\";\n\t}", "public function getVehicleList(Request $request)\n {\n if ( empty($request->customer_id)) {\n \n return response()->json([\n 'data' => null,\n 'status' => Config::get('appconstants.error'),\n 'message' => Config::get('appconstants.param_missing')\n ]);\n }\n \n\n //pagination logic\n $page = 1;\n $limit = Config::get('appconstants.defualt_page_size');\n\n if(!empty($request->page)){\n $page = $request->page;\n }\n\n if(!empty($request->limit)){\n $limit = $request->limit;\n }\n\n $offset = ($page - 1) * $limit;\n\n\n $allData = VehicleModel::where('customer_id',$request->customer_id)->where('isActive','true')->offset($offset)->limit($limit)->get();\n\n if($allData){\n return response()->json([\n 'data' => $allData,\n 'status' => Config::get('appconstants.success'),\n 'message' => Config::get('appconstants.get_vehicle_success')\n ]);\n }\n else\n {\n return response()->json([\n 'data' => [],\n 'status' => Config::get('appconstants.success'),\n 'message' => Config::get('appconstants.get_vehicle_success')\n ]);\n }\n\n }", "public function showbyname( $name)\n {\n $hiking= Hiking::where('name',$name)->first();\n if($hiking){\n return response($hiking,200);\n }else{\n return response($hiking,404);\n }\n }", "public function index()\n {\n // return Car::all();\n\n $skip = request()->input('skip', 0);\n $take = request()->input('take', Car::get()->count());\n\n return Car::skip($skip)->take($take)->get();\n }", "public function get($id, $name)\n\t{\n\t\t// echo \"get\";\n\t}", "public function index(Request $request)\n {\n //\n $vehicles = Vehicle::with('model', 'model.manufacturer', 'owner');\n\n if($request->input('manufacturer')) {\n $manufacturer = VehicleManufacturer::findOrFail($request->input('manufacturer'));\n $vehicles = $vehicles->whereManufacturer($manufacturer);\n }\n\n if($request->input('model')) {\n $model = VehicleModel::findOrFail($request->input('model'));\n $vehicles = $vehicles->whereModel($model);\n }\n\n if($request->input('colour')) {\n $colour = VehicleColour::findOrFail($request->input('colour'));\n $vehicles = $vehicles->whereColour($colour);\n }\n\n if($request->input('transmission')) {\n $transmission = VehicleTransmission::findOrFail($request->input('transmission'));\n $vehicles = $vehicles->whereTransmission($transmission);\n }\n\n if($request->input('type')) {\n $type = VehicleType::findOrFail($request->input('type'));\n $vehicles = $vehicles->whereType($type);\n }\n\n if($request->input('fuel')) {\n $fuel = FuelType::findOrFail($request->input('fuel'));\n $vehicles = $vehicles->whereFuelType($fuel);\n }\n\n if($request->input('owner')) {\n $owner = Owner::findOrFail($request->input('owner'));\n $vehicles = $vehicles->whereOwner($owner);\n }\n\n $vehicles = $vehicles->paginate(100);\n return $vehicles;\n }", "public function show(Vehicle $vechile)\n {\n //\n }", "function getDetailAllVehicleVG($account_id,$DbConnection)\n{\n\t$query=\"SELECT vehicle.vehicle_id,vehicle.vehicle_name FROM vehicle INNER JOIN \".\n \" vehicle_grouping USE INDEX(vg_accountid_status) ON vehicle_grouping.vehicle_id = vehicle.vehicle_id\".\n \" AND vehicle_grouping.account_id='$account_id' AND vehicle.status='1' \";\n \t$result=mysql_query($query,$DbConnection);\t\n\twhile($row=mysql_fetch_object($result))\n\t{\t\t\n\t\t/*$vehicle_id=$row->vehicle_id;\t\n\t\t$vehicle_name=$row->vehicle_name;*/\n\t\t$data[]=array('vehicle_id'=>$row->vehicle_id,'vehicle_name'=>$row->vehicle_name);\t\n\t}\n\treturn $data;\t\n\t\n}", "public function results($name);", "function get_price($name)\r\n{\r\n //Read data from DB table\r\n\r\n $servername = \"localhost\";\r\n $dbname = \"webservices\";\r\n $username = \"root\";\r\n $password = \"\";\r\n\r\n\r\n // Create connection\r\n $conn = new mysqli($servername, $username, $password, $dbname);\r\n // Check connection\r\n if ($conn->connect_error) {\r\n die(\"Connection failed: \" . $conn->connect_error);\r\n } \r\n\t\r\n\r\n \r\n $sql = \"SELECT price, make, model, year FROM vehicles_pinefalls where make ='$name' order by price asc limit 1\";\r\n $result = $conn->query($sql);\r\n\r\n $info=mysqli_fetch_array($result,MYSQLI_ASSOC);\r\n\r\n return $info;\r\n}", "public function getByName(Request $request, $car_type, $name)\n {\n $field = $request->get('node');\n $data = StockRepo::filterByName($car_type, $name);\n return $field\n ? [$field => $data]\n : $data;\n }", "public function get_list_of( $name ) {\n\t\t$data = [];\n\t\tswitch ( $name ) {\n\t\t\tcase 'volume':\n\t\t\t\tforeach ( $this->data as $datum ) {\n\t\t\t\t\t$data[] = [\n\t\t\t\t\t\t'id' => $datum['id'],\n\t\t\t\t\t\t'name' => $datum['name'],\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'devices':\n\t\t\tcase 'device':\n\t\t\t\t$data = $this->get_devices();\n\t\t\t\tbreak;\n\t\t\tcase 'products':\n\t\t\t\t$data = $this->get_products();\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn apply_filters( 'THESPA_data_list_of', $data, $name );\n\t}", "public function getRemainingServicesByName() {\n $term = Request::input('term', '');\n $ids = Request::input('ids', '');\n $services_id = ($ids ? array_map('intval', explode(',', $ids)) : []);\n\n $results = array();\n $queries = Service::where('name', 'LIKE', '%'.$term.'%')\n ->whereNotIn('id', $services_id)\n ->take(10)->get();\n foreach ($queries as $query)\n $results[] = ['id' => $query->id,\n 'value' => $query->name,\n 'price' => $query->price];\n return response()->json($results);\n }", "public function get( $limit = 10 );", "public function retrieve($name = false);", "function getFourWheelerVechicle()\n {\n //creating new fourWheelerVechicle object\n $FourWheelVechicle =new fourWheelerVechicle(); \n // calling getMenus function of fourWheelerVechicle class on fourWheelerVechicle object\n $FourWheelVechicle = $FourWheelVechicle->getTwoWheelerVehicle(); \n echo \"Here are the four wheeler vechicles which you are looking for \\n \";\n }", "public function index()\n {\n $vehicle=vehicle::orderBy('created_at','ASC');\n return response()->json(\n [ 'status'=>'ok',\n 'message'=>'', \n 'data'=>$vehicle\n ]\n );\n }", "public function getImmunizationDetailsByName($name = '') {\n $query = \"select * from $this->_name where vaccine_name like '%$name%' LIMIT 10\";\n $select = $this->getAdapter()->fetchAll($query);\n return $select;\n }", "public function index()\n {\n $result = Vehicles::all();\n return response()->json($result);\n }", "public static function getByName($name)\n {\n $customer = new Vip_Customer();\n $customer->setName($name);\n return $customer->findOne();\n }", "public static function getByName($name) {\n\t\treturn self::getByField('name', $name);\n\t}", "public function get_available_vehicles($condition = array()) {\n $data = array();\n $k = 0;\n foreach ($condition as $key => $value) {\n $data[$k] = MongoID($value);\n $k++;\n }\n \n $this->mongo_db->select(array('vehicle_type'));\n $this->mongo_db->where(array('status' => 'Active'));\n $this->mongo_db->where_in('_id', $data);\n $res = $this->mongo_db->get(VEHICLES);\n return $res;\n }", "public function getByName($name) {\n $query = \"SELECT * FROM \" . self::$TABLE . \" WHERE name = '$name' LIMIT 1\";\n $resultSet = parent::executeQuery($query);\n \n $array = $this->getRecordAsArray($resultSet);\n return $this->arrayToObject($array);\n }", "public function getVcl($name) {\n return $this->execute('vcl.show ' . $name);\n }", "function get($name){ \n \t return $this->result[$name]; \n \t}" ]
[ "0.5780298", "0.5757503", "0.5748299", "0.57420015", "0.56322104", "0.5627382", "0.55663085", "0.5564762", "0.5546003", "0.5518915", "0.5517205", "0.55121756", "0.5507923", "0.5503044", "0.5490622", "0.5483118", "0.5481976", "0.54732025", "0.54706293", "0.5456633", "0.545217", "0.544154", "0.5430948", "0.54244167", "0.5423423", "0.54187715", "0.5415662", "0.5414173", "0.53965956", "0.5391432", "0.53808695", "0.53760433", "0.53710544", "0.537021", "0.5355062", "0.53523993", "0.53487897", "0.5347658", "0.53415906", "0.53415906", "0.53415906", "0.53415906", "0.53415906", "0.53415906", "0.53415906", "0.53415906", "0.53415906", "0.53415906", "0.53415906", "0.53415906", "0.5337623", "0.53356105", "0.53341126", "0.53327113", "0.5328404", "0.5319358", "0.53169", "0.531346", "0.5312682", "0.53081965", "0.52976817", "0.5281989", "0.527502", "0.5275008", "0.5273452", "0.52631277", "0.5261469", "0.5248556", "0.5242273", "0.52415943", "0.52385163", "0.5238161", "0.52366495", "0.52366495", "0.52366495", "0.52366495", "0.52219653", "0.5206579", "0.5206078", "0.5202573", "0.51918316", "0.51868695", "0.5181254", "0.5176577", "0.51618856", "0.51410025", "0.51277804", "0.5121448", "0.511529", "0.51125395", "0.51111966", "0.5110444", "0.5106978", "0.5105385", "0.5091655", "0.50910515", "0.50899017", "0.5084463", "0.508371", "0.50654215" ]
0.6165317
0
Run the database seeds.
public function run() { Subject::factory()->times(count(SubjectFactory::$subjects))->create(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n factory(App\\Editeur::class, 40) ->create();\n factory(App\\Auteur::class, 40) ->create();\n factory(App\\Livre::class, 80) ->create();\n\n for ($i = 1; $i < 41; $i++) {\n $number = rand(2, 8);\n for ($j = 1; $j <= $number; $j++) {\n DB::table('auteur_livre')->insert([\n 'livre_id' => rand(1, 40),\n 'auteur_id' => $i\n ]);\n }\n }\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n // Let's truncate our existing records to start from scratch.\n Assignation::truncate();\n\n $faker = \\Faker\\Factory::create();\n \n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 40; $i++) {\n Assignation::create([\n 'ad_id' => $faker->numberBetween(1,20),\n 'buyer_id' => $faker->numberBetween(1,6),\n 'seller_id' => $faker->numberBetween(6,11),\n 'state' => NULL,\n ]);\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n \t$faker = Faker::create();\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$post = new Post;\n \t\t$post->title = $faker->sentence();\n \t\t$post->body = $faker->paragraph();\n \t\t$post->category_id = rand(1, 5);\n \t\t$post->save();\n \t}\n\n \t$list = ['General', 'Technology', 'News', 'Internet', 'Mobile'];\n \tforeach($list as $name) {\n \t\t$category = new Category;\n \t\t$category->name = $name;\n \t\t$category->save();\n \t}\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$comment = new Comment;\n \t\t$comment->comment = $faker->paragraph();\n \t\t$comment->post_id = rand(1,20);\n \t\t$comment->save();\n \t}\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call(RoleTableSeeder::class);\n $this->call(UserTableSeeder::class);\n \n factory('App\\Cat', 5)->create();\n $tags = factory('App\\Tag', 8)->create();\n\n factory(Post::class, 15)->create()->each(function($post) use ($tags){\n $post->comments()->save(factory(Comment::class)->make());\n $post->tags()->attach( $tags->random(mt_rand(1,4))->pluck('id')->toArray() );\n });\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('post')->insert(\n [\n 'title' => 'Test Post1',\n 'desc' => str_random(100).\" post1\",\n 'alias' => 'test1',\n 'keywords' => 'test1',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post2',\n 'desc' => str_random(100).\" post2\",\n 'alias' => 'test2',\n 'keywords' => 'test2',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post3',\n 'desc' => str_random(100).\" post3\",\n 'alias' => 'test3',\n 'keywords' => 'test3',\n ]\n );\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n \t$faker = Factory::create();\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\tDepartment::create([\n \t\t\t'name' => $department\n \t\t]);\n \t}\n \tforeach ($this->collections as $key => $collection) {\n \t\tCollection::create([\n \t\t\t'name' => $collection\n \t\t]);\n \t}\n \t\n \t\n \tfor ($i=0; $i < 40; $i++) {\n \t\tUser::create([\n \t\t\t'name' \t=>\t$faker->name,\n \t\t\t'email' \t=>\t$faker->email,\n \t\t\t'password' \t=>\tbcrypt('123456'),\n \t\t]);\n \t} \n \t\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\t//echo ($key + 1) . PHP_EOL;\n \t\t\n \t\tfor ($i=0; $i < 10; $i++) { \n \t\t\techo $faker->name . PHP_EOL;\n\n \t\t\tArt::create([\n \t\t\t\t'name'\t\t\t=> $faker->sentence(2),\n \t\t\t\t'img'\t\t\t=> $this->filenames[$i],\n \t\t\t\t'medium'\t\t=> 'canvas',\n \t\t\t\t'department_id'\t=> $key + 1,\n \t\t\t\t'user_id'\t\t=> $this->userIndex,\n \t\t\t\t'dimension'\t\t=> '18.0 x 24.0',\n\t\t\t\t]);\n \t\t\t\t\n \t\t\t\t$this->userIndex ++;\n \t\t}\n \t}\n \t\n \tdd(\"END\");\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->dataCategory();\n factory(App\\Model\\Category::class, 70)->create();\n factory(App\\Model\\Producer::class, rand(5,10))->create();\n factory(App\\Model\\Provider::class, rand(5,10))->create();\n factory(App\\Model\\Product::class, 100)->create();\n factory(App\\Model\\Album::class, 300)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n\n factory('App\\User', 10 )->create();\n\n $users= \\App\\User::all();\n $users->each(function($user){ factory('App\\Category', 1)->create(['user_id'=>$user->id]); });\n $users->each(function($user){ factory('App\\Tag', 3)->create(['user_id'=>$user->id]); });\n\n\n $users->each(function($user){\n factory('App\\Post', 10)->create([\n 'user_id'=>$user->id,\n 'category_id'=>rand(1,20)\n ]\n );\n });\n\n $posts= \\App\\Post::all();\n $posts->each(function ($post){\n\n $post->tags()->attach(array_unique([rand(1,20),rand(1,20),rand(1,20)]));\n });\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $types = factory(\\App\\Models\\Type::class, 5)->create();\n\n $cities = factory(\\App\\Models\\City::class, 10)->create();\n\n $cities->each(function ($city) {\n $districts = factory(\\App\\Models\\District::class, rand(2, 5))->create([\n 'city_id' => $city->id,\n ]);\n\n $districts->each(function ($district) {\n $properties = factory(\\App\\Models\\Property::class, rand(2, 5))->create([\n 'type_id' => rand(1, 5),\n 'district_id' => $district->id\n ]);\n\n $properties->each(function ($property) {\n $galleries = factory(\\App\\Models\\Gallery::class, rand(3, 10))->create([\n 'property_id' => $property->id\n ]);\n });\n });\n });\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n\n $categories = factory(App\\Models\\Category::class, 10)->create();\n\n $categories->each(function ($category) {\n $category\n ->posts()\n ->saveMany(\n factory(App\\Models\\Post::class, 3)->make()\n );\n });\n }", "public function run()\n {\n $this->call(CategoriesTableSeeder::class);\n\n $users = factory(App\\User::class, 5)->create();\n $recipes = factory(App\\Recipe::class, 30)->create();\n $preparations = factory(App\\Preparation::class, 70)->create();\n $photos = factory(App\\Photo::class, 90)->create();\n $comments = factory(App\\Comment::class, 200)->create();\n $flavours = factory(App\\Flavour::class, 25)->create();\n $flavour_recipe = factory(App\\FlavourRecipe::class, 50)->create();\n $tags = factory(App\\Tag::class, 25)->create();\n $recipe_tag = factory(App\\RecipeTag::class, 50)->create();\n $ingredients = factory(App\\Ingredient::class, 25)->create();\n $ingredient_preparation = factory(App\\IngredientPreparation::class, 300)->create();\n \n \n \n DB::table('users')->insert(['name' => 'SimpleUtilisateur', 'email' => 'simpleadressemail@mail.com', 'password' => bcrypt('SimpleMotDePasse')]);\n \n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n // Sample::truncate();\n // TestItem::truncate();\n // UOM::truncate();\n Role::truncate();\n User::truncate();\n\n // factory(Role::class, 4)->create();\n Role::create([\n 'name'=> 'Director',\n 'description'=> 'Director type'\n ]);\n\n Role::create([\n 'name'=> 'Admin',\n 'description'=> 'Admin type'\n ]);\n Role::create([\n 'name'=> 'Employee',\n 'description'=> 'Employee type'\n ]);\n Role::create([\n 'name'=> 'Technician',\n 'description'=> 'Technician type'\n ]);\n \n factory(User::class, 20)->create()->each(\n function ($user){\n $roles = \\App\\Role::all()->random(mt_rand(1, 2))->pluck('id');\n $user->roles()->attach($roles);\n }\n );\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n UsersLevel::create([\n 'name' => 'Administrator'\n ]);\n\n UsersLevel::create([\n 'name' => 'User'\n ]);\n\n User::create([\n 'username' => 'admin',\n 'password' => bcrypt('admin123'),\n 'level_id' => 1,\n 'fullname' => \"Super Admin\",\n 'email'=> \"admin@admin.com\"\n ]);\n\n\n \\App\\CategoryPosts::create([\n 'name' =>'Paket Trip'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' =>'Destinasi Kuliner'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Event'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Profil'\n ]);\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Admin',\n 'email' => 'admin@petstore.com',\n 'avatar' => \"avatar\",\n 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',\n ]);\n $this->call(CategorySeeder::class);\n // \\App\\Models\\Admin::factory(1)->create();\n \\App\\Models\\User::factory(10)->create();\n // \\App\\Models\\Category::factory(50)->create();\n \\App\\Models\\PetComment::factory(50)->create();\n $pets = \\App\\Models\\Pet::factory(50)->create();\n foreach ($pets as $pet) {\n \\App\\Models\\PetTag::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\PetPhotoUrl::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\Order::factory(1)->create(['pet_id' => $pet->id]);\n };\n }", "public function run()\n { \n\n $this->call(RoleSeeder::class);\n \n $this->call(UserSeeder::class);\n\n Storage::deleteDirectory('socials-icon');\n Storage::makeDirectory('socials-icon');\n $socials = Social::factory(7)->create();\n\n Storage::deleteDirectory('countries-flag');\n Storage::deleteDirectory('countries-firm');\n Storage::makeDirectory('countries-flag');\n Storage::makeDirectory('countries-firm');\n $countries = Country::factory(18)->create();\n\n // Se llenan datos de la tabla muchos a muchos - social_country\n foreach ($countries as $country) {\n foreach ($socials as $social) {\n\n $country->socials()->attach($social->id, [\n 'link' => 'https://www.facebook.com/ministeriopalabrayespiritu/'\n ]);\n }\n }\n\n Person::factory(50)->create();\n\n Category::factory(7)->create();\n\n Video::factory(25)->create(); \n\n $this->call(PostSeeder::class);\n\n Storage::deleteDirectory('documents');\n Storage::makeDirectory('documents');\n Document::factory(25)->create();\n\n }", "public function run()\n {\n $faker = Faker::create('id_ID');\n /**\n * Generate fake author data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('author')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Generate fake publisher data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('publisher')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Seeding payment method\n */\n DB::table('payment')->insert([\n ['name' => 'Mandiri'],\n ['name' => 'BCA'],\n ['name' => 'BRI'],\n ['name' => 'BNI'],\n ['name' => 'Pos Indonesia'],\n ['name' => 'BTN'],\n ['name' => 'Indomaret'],\n ['name' => 'Alfamart'],\n ['name' => 'OVO'],\n ['name' => 'Cash On Delivery']\n ]);\n }", "public function run()\n {\n DatabaseSeeder::seedLearningStylesProbs();\n DatabaseSeeder::seedCampusProbs();\n DatabaseSeeder::seedGenderProbs();\n DatabaseSeeder::seedTypeStudentProbs();\n DatabaseSeeder::seedTypeProfessorProbs();\n DatabaseSeeder::seedNetworkProbs();\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n // MyList::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 3; $i++) {\n MyList::create([\n 'title' => 'List-'.($i+1),\n 'color' => $faker->sentence,\n 'icon' => $faker->randomDigitNotNull,\n 'index' => $faker->randomDigitNotNull,\n 'user_id' => 1,\n ]);\n }\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Products::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few products in our database:\n for ($i = 0; $i < 50; $i++) {\n Products::create([\n 'name' => $faker->word,\n 'sku' => $faker->randomNumber(7, false),\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n User::create([\n 'name' => 'Pablo Rosales',\n 'email' => 'prosales@researchmobile.co',\n 'password' => bcrypt('admin'),\n 'status' => 1,\n 'role_id' => 1,\n 'movil' => 0\n ]);\n\n User::create([\n 'name' => 'Usuario Movil',\n 'email' => 'movil@researchmobile.co',\n 'password' => bcrypt('secret'),\n 'status' => 1,\n 'role_id' => 3,\n 'movil' => 1\n ]);\n\n Roles::create([\n 'name' => 'Administrador'\n ]);\n Roles::create([\n 'name' => 'Operaciones'\n ]);\n Roles::create([\n 'name' => 'Comercial'\n ]);\n Roles::create([\n 'name' => 'Aseguramiento'\n ]);\n Roles::create([\n 'name' => 'Facturación'\n ]);\n Roles::create([\n 'name' => 'Creditos y Cobros'\n ]);\n\n factory(App\\Customers::class, 100)->create();\n }", "public function run()\n {\n // php artisan db:seed --class=StoreTableSeeder\n\n foreach(range(1,20) as $i){\n $faker = Faker::create();\n Store::create([\n 'name' => $faker->name,\n 'desc' => $faker->text,\n 'tags' => $faker->word,\n 'address' => $faker->address,\n 'longitude' => $faker->longitude($min = -180, $max = 180),\n 'latitude' => $faker->latitude($min = -90, $max = 90),\n 'created_by' => '1'\n ]);\n }\n\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name'=>\"test\",\n 'password' => Hash::make('123'),\n 'email'=>'test@yandex.ru'\n ]);\n DB::table('tags')->insert(['name'=>'tags']);\n $this->call(UserSeed::class);\n $this->call(CategoriesSeed::class);\n $this->call(TopicsSeed::class);\n $this->call(CommentariesSeed::class);\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n echo 'seeding permission...', PHP_EOL;\n $permissions = [\n 'role-list',\n 'role-create',\n 'role-edit',\n 'role-delete',\n 'formation-list',\n 'formation-create',\n 'formation-edit',\n 'formation-delete',\n 'user-list',\n 'user-create',\n 'user-edit',\n 'user-delete'\n ];\n foreach ($permissions as $permission) {\n Permission::create(['name' => $permission]);\n }\n echo 'seeding users...', PHP_EOL;\n\n $user= User::create(\n [\n 'name' => 'Mr. admin',\n 'email' => 'admin@yahoo.com',\n 'password' => bcrypt('admin'),\n 'remember_token' => null,\n ]\n );\n echo 'Create Roles...', PHP_EOL;\n Role::create(['name' => 'former']);\n Role::create(['name' => 'learner']);\n Role::create(['name' => 'admin']);\n Role::create(['name' => 'manager']);\n Role::create(['name' => 'user']);\n\n echo 'seeding Role User...', PHP_EOL;\n $user->assignRole('admin');\n $role = $user->assignRole('admin');\n $role->givepermissionTo(Permission::all());\n\n \\DB::table('languages')->insert(['name' => 'English', 'code' => 'en']);\n \\DB::table('languages')->insert(['name' => 'Français', 'code' => 'fr']);\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(PermissionsSeeder::class);\n $this->call(RolesSeeder::class);\n $this->call(ThemeSeeder::class);\n\n //\n\n DB::table('paypal_info')->insert([\n 'client_id' => '',\n 'client_secret' => '',\n 'currency' => '',\n ]);\n DB::table('contact_us')->insert([\n 'content' => '',\n ]);\n DB::table('setting')->insert([\n 'site_name' => ' ',\n ]);\n DB::table('terms_and_conditions')->insert(['terms_and_condition' => 'text']);\n }", "public function run()\n {\n $this->call([\n UserSeeder::class,\n ]);\n\n User::factory(20)->create();\n Author::factory(20)->create();\n Book::factory(60)->create();\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UserSeeder::class);\n $this->call(RolePermissionSeeder::class);\n $this->call(AppmodeSeeder::class);\n\n // \\App\\Models\\Appmode::factory(3)->create();\n \\App\\Models\\Doctor::factory(100)->create();\n \\App\\Models\\Unit::factory(50)->create();\n \\App\\Models\\Broker::factory(100)->create();\n \\App\\Models\\Patient::factory(100)->create();\n \\App\\Models\\Expence::factory(100)->create();\n \\App\\Models\\Testcategory::factory(100)->create();\n \\App\\Models\\Test::factory(50)->create();\n \\App\\Models\\Parameter::factory(50)->create();\n \\App\\Models\\Sale::factory(50)->create();\n \\App\\Models\\SaleItem::factory(100)->create();\n \\App\\Models\\Goption::factory(1)->create();\n \\App\\Models\\Pararesult::factory(50)->create();\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // DB::table('roles')->insert(\n // [\n // ['name' => 'admin', 'description' => 'Administrator'],\n // ['name' => 'student', 'description' => 'Student'],\n // ['name' => 'lab_tech', 'description' => 'Lab Tech'],\n // ['name' => 'it_staff', 'description' => 'IT Staff Member'],\n // ['name' => 'it_manager', 'description' => 'IT Manager'],\n // ['name' => 'lab_manager', 'description' => 'Lab Manager'],\n // ]\n // );\n\n // DB::table('users')->insert(\n // [\n // 'username' => 'admin', \n // 'password' => Hash::make('password'), \n // 'active' => 1,\n // 'name' => 'Administrator',\n // 'email' => 'programmerlemar@gmail.com',\n // 'role_id' => \\App\\Role::where('name', 'admin')->first()->id\n // ]\n // );\n\n DB::table('status')->insert([\n // ['name' => 'Active'],\n // ['name' => 'Cancel'],\n // ['name' => 'Disable'],\n // ['name' => 'Open'],\n // ['name' => 'Closed'],\n // ['name' => 'Resolved'],\n ['name' => 'Used'],\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create([\n 'name' => 'Qwerty',\n 'email' => 'qwerty@gmail.com',\n 'password' => bcrypt('secretpassw'),\n ]);\n\n factory(User::class, 59)->create([\n 'password' => bcrypt('secretpassw'),\n ]);\n\n for ($i = 1; $i < 11; $i++) {\n factory(Category::class)->create([\n 'name' => 'Category ' . $i,\n ]);\n }\n\n for ($i = 1; $i < 101; $i++) {\n factory(Product::class)->create([\n 'name' => 'Product ' . $i,\n ]);\n }\n }", "public function run()\n {\n\n \t// Making main admin role\n \tDB::table('roles')->insert([\n 'name' => 'Admin',\n ]);\n\n // Making main category\n \tDB::table('categories')->insert([\n 'name' => 'Other',\n ]);\n\n \t// Making main admin account for testing\n \tDB::table('users')->insert([\n 'name' \t\t=> 'Admin',\n 'email' \t=> 'admin@example.com',\n 'password' => bcrypt('12345'),\n 'role_id' => 1,\n 'created_at' => date('Y-m-d H:i:s' ,time()),\n 'updated_at' => date('Y-m-d H:i:s' ,time())\n ]);\n\n \t// Making random users and posts\n factory(App\\User::class, 10)->create();\n factory(App\\Post::class, 35)->create();\n }", "public function run()\n {\n $faker = Faker::create();\n\n \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Chef',\n 'salario' => '15000.00'\n ));\n\n\t\t \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Mesonero',\n 'salario' => '12000.00'\n ));\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = \\Faker\\Factory::create();\n\n foreach (range(1,5) as $index) {\n Lista::create([\n 'name' => $faker->sentence(2),\n 'description' => $faker->sentence(10), \n ]);\n } \n\n foreach (range(1,20) as $index) {\n $n = $faker->sentence(2);\n \tTarea::create([\n \t\t'name' => $n,\n \t\t'description' => $faker->sentence(10),\n 'lista_id' => $faker->numberBetween(1,5),\n 'slug' => Str::slug($n),\n \t\t]);\n } \n }", "public function run()\n {\n $faker = Faker::create('lt_LT');\n\n DB::table('users')->insert([\n 'name' => 'user',\n 'email' => 'briedis@aa.bb',\n 'password' => Hash::make('123')\n ]);\n DB::table('users')->insert([\n 'name' => 'user2',\n 'email' => 'briedis2@aa.bb',\n 'password' => Hash::make('123')\n ]);\n\n foreach (range(1,100) as $val)\n DB::table('authors')->insert([\n 'name' => $faker->firstName(),\n 'surname' => $faker->lastName(),\n \n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UsersTableSeeder::class);\n\n // DB::table('users')->insert([\n // 'name' => 'User1',\n // 'email' => 'admin@admin.com',\n // 'password' => bcrypt('password'),\n // ]);\n\n\n $faker = Faker::create();\n \n foreach (range(1,10) as $index){\n DB::table('companies')->insert([\n 'name' => $faker->company(),\n 'email' => $faker->email(10).'@gmail.com',\n 'logo' => $faker->image($dir = '/tmp', $width = 640, $height = 480),\n 'webiste' => $faker->domainName(),\n \n ]);\n }\n \n \n foreach (range(1,10) as $index){\n DB::table('employees')->insert([\n 'first_name' => $faker->firstName(),\n 'last_name' => $faker->lastName(),\n 'company' => $faker->company(),\n 'email' => $faker->str_random(10).'@gmail.com',\n 'phone' => $faker->e164PhoneNumber(),\n \n ]);\n }\n\n\n\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Flight::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 100; $i++) {\n\n\n Flight::create([\n 'flightNumber' => $faker->randomNumber(5),\n 'depAirport' => $faker->city,\n 'destAirport' => $faker->city,\n 'reservedWeight' => $faker->numberBetween(1000 - 10000),\n 'deptTime' => $faker->dateTime('now'),\n 'arrivalTime' => $faker->dateTime('now'),\n 'reservedVolume' => $faker->numberBetween(1000 - 10000),\n 'airlineName' => $faker->colorName,\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->truncteTables([\n 'users',\n 'products'\n ]);\n\n $this->call(UsersSeeder::class);\n $this->call(ProductsSeeder::class);\n\n }", "public function run()\n {\n /**\n * Dummy seeds\n */\n DB::table('metas')->truncate();\n $faker = Faker::create();\n\n for ($i=0; $i < 10; $i++) { \n DB::table('metas')->insert([\n 'id_rel' => $faker->randomNumber(),\n 'titulo' => $faker->sentence,\n 'descricao' => $faker->paragraph,\n 'justificativa' => $faker->paragraph,\n 'valor_inicial' => $faker->numberBetween(0,100),\n 'valor_atual' => $faker->numberBetween(0,100),\n 'valor_final' => $faker->numberBetween(0,10),\n 'regras' => json_encode([$i => [\"values\" => $faker->words(3)]]),\n 'types' => json_encode([$i => [\"values\" => $faker->words(2)]]),\n 'categorias' => json_encode([$i => [\"values\" => $faker->words(4)]]),\n 'tags' => json_encode([$i => [\"values\" => $faker->words(5)]]),\n 'active' => true,\n ]);\n }\n\n\n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n\n $faker = Faker::create();\n\n $lessonIds = Lesson::lists('id')->all(); // An array of ID's in that table [1, 2, 3, 4, 5, 7]\n $tagIds = Tag::lists('id')->all();\n\n foreach(range(1, 30) as $index)\n {\n // a real lesson id\n // a real tag id\n DB::table('lesson_tag')->insert([\n 'lesson_id' => $faker->randomElement($lessonIds),\n 'tag_id' => $faker->randomElement($tagIds),\n ]);\n }\n }", "public function run()\n {\n $this->call(CategoriasTableSeeder::class);\n $this->call(UfsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(UserTiposTableSeeder::class);\n factory(App\\User::class, 2)->create();\n/* factory(App\\Models\\Categoria::class, 20)->create();*/\n/* factory(App\\Models\\Anuncio::class, 50)->create();*/\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n Language::truncate();\n Reason::truncate();\n Report::truncate();\n Category::truncate();\n Position::truncate();\n\n $languageQuantity = 10;\n $reasonQuantity = 10;\n $reportQuantity = 10;\n $categoryQuantity = 10;\n $positionQuantity = 10;\n\n factory(Language::class,$languageQuantity)->create();\n factory(Reason::class,$reasonQuantity)->create();\n \n factory(Report::class,$reportQuantity)->create();\n \n factory(Category::class,$categoryQuantity)->create();\n \n factory(Position::class,$positionQuantity)->create();\n\n }", "public function run()\n {\n // \\DB::statement('SET_FOREIGN_KEY_CHECKS=0');\n \\DB::table('users')->truncate();\n \\DB::table('posts')->truncate();\n // \\DB::table('category')->truncate();\n \\DB::table('photos')->truncate();\n \\DB::table('comments')->truncate();\n \\DB::table('comment_replies')->truncate();\n\n \\App\\Models\\User::factory()->times(10)->hasPosts(1)->create();\n \\App\\Models\\Role::factory()->times(10)->create();\n \\App\\Models\\Category::factory()->times(10)->create();\n \\App\\Models\\Comment::factory()->times(10)->hasReplies(1)->create();\n \\App\\Models\\Photo::factory()->times(10)->create();\n\n \n // \\App\\Models\\User::factory(10)->create([\n // 'role_id'=>2,\n // 'is_active'=>1\n // ]);\n\n // factory(App\\Models\\Post::class, 10)->create();\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call([\n ArticleSeeder::class, \n TagSeeder::class,\n Arttagrel::class\n ]);\n // \\App\\Models\\User::factory(10)->create();\n \\App\\Models\\Article::factory()->count(7)->create();\n \\App\\Models\\Tag::factory()->count(15)->create(); \n \\App\\Models\\Arttagrel::factory()->count(15)->create(); \n }", "public function run()\n {\n $this->call(ArticulosTableSeeder::class);\n /*DB::table('articulos')->insert([\n 'titulo' => str_random(50),\n 'cuerpo' => str_random(200),\n ]);*/\n }", "public function run()\n {\n $this->call(CategoryTableSeeder::class);\n $this->call(ProductTableSeeder::class);\n\n \t\t\n\t\t\tDB::table('users')->insert([\n 'first_name' => 'Ignacio',\n 'last_name' => 'Garcia',\n 'email' => 'ignacio@dh.com',\n 'password' => bcrypt('123456'),\n 'role' => '1',\n 'avatar' => 'CGnABxNYYn8N23RWlvTTP6C2nRjOLTf8IJcbLqRP.jpeg',\n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(RoleSeeder::class);\n $this->call(UserSeeder::class);\n\n Medicamento::factory(50)->create();\n Reporte::factory(5)->create();\n Cliente::factory(200)->create();\n Asigna_valor::factory(200)->create();\n Carga::factory(200)->create();\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n TicketSeeder::class\n ]);\n\n DB::table('departments')->insert([\n 'abbr' => 'IT',\n 'name' => 'Information Technologies',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => 'admin@gmail.com',\n 'email_verified_at' => Carbon::now(),\n 'password' => Hash::make('admin'),\n 'department_id' => 1,\n 'avatar' => 'default.png',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('role_user')->insert([\n 'role_id' => 1,\n 'user_id' => 1\n ]);\n }", "public function run()\n {\n \\App\\Models\\Article::factory(20)->create();\n \\App\\Models\\Category::factory(5)->create();\n \\App\\Models\\Comment::factory(40)->create();\n\n \\App\\Models\\User::create([\n \"name\"=>\"Alice\",\n \"email\"=>'alice@gmail.com',\n 'password' => Hash::make('password'),\n ]);\n \\App\\Models\\User::create([\n \"name\"=>\"Bob\",\n \"email\"=>'bob@gmail.com',\n 'password' => Hash::make('password'),\n ]);\n }", "public function run()\n {\n /** \n * Note: You must add these lines to your .env file for this Seeder to work (replace the values, obviously):\n SEEDER_USER_FIRST_NAME = 'Firstname'\n SEEDER_USER_LAST_NAME = 'Lastname'\n\t\tSEEDER_USER_DISPLAY_NAME = 'Firstname Lastname'\n\t\tSEEDER_USER_EMAIL = your.email@domain.com\n SEEDER_USER_PASSWORD = yourpassword\n */\n\t\tDB::table('users')->insert([\n 'user_first_name' => env('SEEDER_USER_FIRST_NAME'),\n 'user_last_name' => env('SEEDER_USER_LAST_NAME'),\n 'user_name' => env('SEEDER_USER_DISPLAY_NAME'),\n\t\t\t'user_email' => env('SEEDER_USER_EMAIL'),\n 'user_status' => 1,\n \t'password' => Hash::make((env('SEEDER_USER_PASSWORD'))),\n 'permission_fk' => 1,\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class,3)->create()->each(\n \tfunction($user)\n \t{\n \t\t$user->questions()\n \t\t->saveMany(\n \t\t\tfactory(App\\Question::class, rand(2,6))->make()\n \t\t)\n ->each(function ($q) {\n $q->answers()->saveMany(factory(App\\Answer::class, rand(1,5))->make());\n })\n \t}\n );\n }\n}", "public function run()\n {\n $faker = Faker::create();\n\n // $this->call(UsersTableSeeder::class);\n\n DB::table('posts')->insert([\n 'id'=>str_random(1),\n 'user_id'=> str_random(1),\n 'title' => $faker->name,\n 'body' => $faker->safeEmail,\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s'),\n ]);\n }", "public function run()\n\t{\n\t\tDB::table(self::TABLE_NAME)->delete();\n\n\t\tforeach (seed(self::TABLE_NAME) as $row)\n\t\t\t$records[] = [\n\t\t\t\t'id'\t\t\t\t=> $row->id,\n\t\t\t\t'created_at'\t\t=> $row->created_at ?? Carbon::now(),\n\t\t\t\t'updated_at'\t\t=> $row->updated_at ?? Carbon::now(),\n\n\t\t\t\t'sport_id'\t\t\t=> $row->sport_id,\n\t\t\t\t'gender_id'\t\t\t=> $row->gender_id,\n\t\t\t\t'tournamenttype_id'\t=> $row->tournamenttype_id ?? null,\n\n\t\t\t\t'name'\t\t\t\t=> $row->name,\n\t\t\t\t'external_id'\t\t=> $row->external_id ?? null,\n\t\t\t\t'is_top'\t\t\t=> $row->is_top ?? null,\n\t\t\t\t'logo'\t\t\t\t=> $row->logo ?? null,\n\t\t\t\t'position'\t\t\t=> $row->position ?? null,\n\t\t\t];\n\n\t\tinsert(self::TABLE_NAME, $records ?? []);\n\t}", "public function run()\n\t{\n\t\tDB::table('libros')->truncate();\n\n\t\t$faker = Faker\\Factory::create();\n\n\t\tfor ($i=0; $i < 10; $i++) { \n\t\t\tLibro::create([\n\n\t\t\t\t'titulo'\t\t=> $faker->text(40),\n\t\t\t\t'isbn'\t\t\t=> $faker->numberBetween(100,999),\n\t\t\t\t'precio'\t\t=> $faker->randomFloat(2,3,150),\n\t\t\t\t'publicado'\t\t=> $faker->numberBetween(0,1),\n\t\t\t\t'descripcion'\t=> $faker->text(400),\n\t\t\t\t'autor_id'\t\t=> $faker->numberBetween(1,3),\n\t\t\t\t'categoria_id'\t=> $faker->numberBetween(1,3)\n\n\t\t\t]);\n\t\t}\n\n\t\t// Uncomment the below to run the seeder\n\t\t// DB::table('libros')->insert($libros);\n\t}", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 10)->create()->each(function ($user) {\n // Seed the relation with 5 purchases\n // $videos = factory(App\\Video::class, 5)->make();\n // $user->videos()->saveMany($videos);\n // $user->videos()->each(function ($video){\n // \t$video->videometa()->save(factory(App\\VideoMeta::class)->make());\n // \t// :( \n // });\n factory(App\\User::class, 10)->create()->each(function ($user) {\n\t\t\t factory(App\\Video::class, 5)->create(['user_id' => $user->id])->each(function ($video) {\n\t\t\t \tfactory(App\\VideoMeta::class, 1)->create(['video_id' => $video->id]);\n\t\t\t // $video->videometa()->save(factory(App\\VideoMeta::class)->create(['video_id' => $video->id]));\n\t\t\t });\n\t\t\t});\n\n });\n }", "public function run()\n {\n // for($i=1;$i<11;$i++){\n // DB::table('post')->insert(\n // ['title' => 'Title'.$i,\n // 'post' => 'Post'.$i,\n // 'slug' => 'Slug'.$i]\n // );\n // }\n $faker = Faker\\Factory::create();\n \n for($i=1;$i<20;$i++){\n $dname = $faker->name;\n DB::table('post')->insert(\n ['title' => $dname,\n 'post' => $faker->text($maxNbChars = 200),\n 'slug' => str_slug($dname)]\n );\n }\n }", "public function run()\n {\n $this->call([\n CountryTableSeeder::class,\n ProvinceTableSeeder::class,\n TagTableSeeder::class\n ]);\n\n User::factory()->count(10)->create();\n Category::factory()->count(5)->create();\n Product::factory()->count(20)->create();\n Section::factory()->count(5)->create();\n Bundle::factory()->count(20)->create();\n\n $bundles = Bundle::all();\n // populate bundle-product table (morph many-to-many)\n Product::all()->each(function ($product) use ($bundles) {\n $product->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray(),\n ['default_quantity' => rand(1, 10)]\n );\n });\n // populate bundle-tags table (morph many-to-many)\n Tag::all()->each(function ($tag) use ($bundles) {\n $tag->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray()\n );\n });\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Contract::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Contract::create([\n 'serialnumbers' => $faker->numberBetween($min = 1000000, $max = 2000000),\n 'address' => $faker->address,\n 'landholder' => $faker->lastName,\n 'renter' => $faker->lastName,\n 'price' => $faker->numberBetween($min = 10000, $max = 50000),\n 'rent_start' => $faker->date($format = 'Y-m-d', $max = 'now'),\n 'rent_end' => $faker->date($format = 'Y-m-d', $max = 'now'),\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker=Faker\\Factory::create();\n\n for($i=0;$i<100;$i++){\n \tApp\\Blog::create([\n \t\t'title' => $faker->catchPhrase,\n 'description' => $faker->text,\n 'showns' =>true\n \t\t]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // TO PREVENT CHECKS FOR foreien key in seeding\n\n User::truncate();\n Category::truncate();\n Product::truncate();\n Transaction::truncate();\n\n DB::table('category_product')->truncate();\n\n User::flushEventListeners();\n Category::flushEventListeners();\n Product::flushEventListeners();\n Transaction::flushEventListeners();\n\n $usersQuantities = 1000;\n $categoriesQuantities = 30;\n $productsQuantities = 1000;\n $transactionsQuantities = 1000;\n\n factory(User::class, $usersQuantities)->create();\n factory(Category::class, $categoriesQuantities)->create();\n\n factory(Product::class, $productsQuantities)->create()->each(\n function ($product) {\n $categories = Category::all()->random(mt_rand(1, 5))->pluck('id');\n $product->categories()->attach($categories);\n });\n\n factory(Transaction::class, $transactionsQuantities)->create();\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n\n $this->call(BusinessTableSeeder::class);\n $this->call(PrinterTableSeeder::class);\n factory(App\\Tag::class,10)->create();\n factory(App\\Category::class,10)->create();\n factory(App\\Subcategory::class,50)->create();\n factory(App\\Provider::class,10)->create();\n factory(App\\Product::class,24)->create()->each(function($product){\n\n $product->images()->saveMany(factory(App\\Image::class, 4)->make());\n\n });\n\n\n factory(App\\Client::class,10)->create();\n }", "public function run()\n {\n Article::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Article::create([\n 'name' => $faker->sentence,\n 'sku' => $faker->paragraph,\n 'price' => $faker->number,\n ]);\n }\n }", "public function run()\n {\n Storage::deleteDirectory('public/products');\n Storage::makeDirectory('public/products');\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n $this->call(ProductSeeder::class);\n Order::factory(4)->create();\n Order_Detail::factory(4)->create();\n Size::factory(100)->create();\n }", "public function run()\n {\n $this->call(RolSeeder::class);\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n Doctor::factory(25)->create();\n Patient::factory(50)->create();\n Status::factory(3)->create();\n Appointment::factory(100)->create();\n }", "public function run()\n\t{\n\t\t\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n\t\t$faker = \\Faker\\Factory::create();\n\n\t\tTodolist::truncate();\n\n\t\tforeach(range(1, 50) as $index)\n\t\t{\n\n\t\t\t$user = User::create([\n\t\t\t\t'name' => $faker->name,\n\t\t\t\t'email' => $faker->email,\n\t\t\t\t'password' => 'password',\n\t\t\t\t'confirmation_code' => mt_rand(0, 9),\n\t\t\t\t'confirmation' => rand(0,1) == 1\n\t\t\t]);\n\n\t\t\t$list = Todolist::create([\n\t\t\t\t'name' => $faker->sentence(2),\n\t\t\t\t'description' => $faker->sentence(4),\n\t\t\t]);\n\n\t\t\t// BUILD SOME TASKS FOR EACH LIST ITEM\n\t\t\tforeach(range(1, 10) as $index) \n\t\t\t{\n\t\t\t\t$task = new Task;\n\t\t\t\t$task->name = $faker->sentence(2);\n\t\t\t\t$task->description = $faker->sentence(4);\n\t\t\t\t$list->tasks()->save($task);\n\t\t\t}\n\n\t\t}\n\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 1'); \n\n\t}", "public function run()\n {\n Campus::truncate();\n Canteen::truncate();\n Dorm::truncate();\n\n $faker = Faker\\Factory::create();\n $schools = School::all();\n foreach ($schools as $school) {\n \tforeach (range(1, 2) as $index) {\n\t \t$campus = Campus::create([\n\t \t\t'school_id' => $school->id,\n\t \t\t'name' => $faker->word . '校区',\n\t \t\t]);\n\n \t$campus->canteens()->saveMany(factory(Canteen::class, mt_rand(2,3))->make());\n $campus->dorms()->saveMany(factory(Dorm::class, mt_rand(2,3))->make());\n\n }\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => 'admin@gmail.com',\n 'password' => bcrypt('admin'),\n 'seq_q'=>'1',\n 'seq_a'=>'admin'\n ]);\n\n // DB::table('bloods')->insert([\n // ['name' => 'A+'],\n // ['name' => 'A-'],\n // ['name' => 'B+'],\n // ['name' => 'B-'],\n // ['name' => 'AB+'],\n // ['name' => 'AB-'],\n // ['name' => 'O+'],\n // ['name' => 'O-'],\n // ]);\n\n \n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n \\App\\User::create([\n 'name'=>'PAPE SAMBA NDOUR',\n 'email'=>'papesambandour@hotmail.com',\n 'password'=>bcrypt('Admin1122'),\n ]);\n\n $faker = Faker::create();\n\n for ($i = 0; $i < 100 ; $i++)\n {\n $firstName = $faker->firstName;\n $lastName = $faker->lastName;\n $niveau = \\App\\Niveau::inRandomOrder()->first();\n \\App\\Etudiant::create([\n 'prenom'=>$firstName,\n 'nom'=>$lastName,\n 'niveau_id'=>$niveau->id\n ]);\n }\n\n\n }", "public function run()\n {\n //\n DB::table('foods')->delete();\n\n Foods::create(array(\n 'name' => 'Chicken Wing',\n 'author' => 'Bambang',\n 'overview' => 'a deep-fried chicken wing, not in spicy sauce'\n ));\n\n Foods::create(array(\n 'name' => 'Beef ribs',\n 'author' => 'Frank',\n 'overview' => 'Slow baked beef ribs rubbed in spices'\n ));\n\n Foods::create(array(\n 'name' => 'Ice cream',\n 'author' => 'Lou',\n 'overview' => ' A sweetened frozen food typically eaten as a snack or dessert.'\n ));\n\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n News::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 10; $i++) {\n News::create([\n 'title' => $faker->sentence,\n 'summary' => $faker->sentence,\n 'content' => $faker->paragraph,\n 'imagePath' => '/img/exclamation_mark.png'\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 3)->create();\n factory(App\\Models\\Category::class, 3)\n ->create()\n ->each(function ($u) {\n $u->courses()->saveMany(factory(App\\Models\\Course::class,3)->make())->each(function ($c){\n $c->exams()->saveMany(factory(\\App\\Models\\Exam::class,3)->make())->each(function ($e){\n $e->questions()->saveMany(factory(\\App\\Models\\Question::class,4)->make())->each(function ($q){\n $q->answers()->saveMany(factory(\\App\\Models\\Answer::class,4)->make())->each(function ($a){\n $a->correctAnswer()->save(factory(\\App\\Models\\Correct_answer::class)->make());\n });\n });\n });\n });\n\n });\n\n }", "public function run()\n {\n \\DB::table('employees')->delete();\n\n $faker = \\Faker\\Factory::create('ja_JP');\n\n $role_id = ['1','2','3'];\n\n for ($i = 0; $i < 10; $i++) {\n \\App\\Models\\Employee::create([\n 'last_name' =>$faker->lastName() ,\n 'first_name' => $faker->firstName(),\n 'mail' => $faker->email(),\n 'password' => Hash::make( \"password.$i\"),\n 'birthday' => $faker->date($format='Y-m-d',$max='now'),\n 'role_id' => $faker->randomElement($role_id)\n ]);\n }\n }", "public function run()\n {\n\n DB::table('clients')->delete();\n DB::table('trips')->delete();\n error_log('empty tables done.');\n\n $random_cities = City::inRandomOrder()->select('ar_name')->limit(5)->get();\n $GLOBALS[\"random_cities\"] = $random_cities->pluck('ar_name')->toArray();\n\n $random_airlines = Airline::inRandomOrder()->select('code')->limit(5)->get();\n $GLOBALS[\"random_airlines\"] = $random_airlines->pluck('code')->toArray();\n\n factory(App\\Client::class, 5)->create();\n error_log('Client seed done.');\n\n\n factory(App\\Trip::class, 50)->create();\n error_log('Trip seed done.');\n\n\n factory(App\\Quicksearch::class, 10)->create();\n error_log('Quicksearch seed done.');\n }", "public function run()\n {\n // Admins\n User::factory()->create([\n 'name' => 'Zaiman Noris',\n 'username' => 'rognales',\n 'email' => 'rognales@gmail.com',\n 'active' => true,\n ]);\n\n User::factory()->create([\n 'name' => 'Affiq Rashid',\n 'username' => 'affiqr',\n 'email' => 'sonic21danger@gmail.com',\n 'active' => true,\n ]);\n\n // Only seed test data in non-prod\n if (! app()->isProduction()) {\n Member::factory()->count(1000)->create();\n Staff::factory()->count(1000)->create();\n\n Participant::factory()\n ->addSpouse()\n ->addChildren()\n ->addInfant()\n ->addOthers()\n ->count(500)\n ->hasUploads(2)\n ->create();\n }\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n UserSeeder::class,\n ]);\n\n \\App\\Models\\Category::factory(4)->create();\n \\App\\Models\\View::factory(6)->create();\n \\App\\Models\\Room::factory(8)->create();\n \n $rooms = \\App\\Models\\Room::all();\n // \\App\\Models\\User::all()->each(function ($user) use ($rooms) { \n // $user->rooms()->attach(\n // $rooms->random(rand(1, \\App\\Models\\Room::max('id')))->pluck('id')->toArray()\n // ); \n // });\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n Employee::factory()->create(['email' => 'sovon.kucse@gmail.com']);\n Brand::factory()->count(3)->create();\n $this->call([\n TagSeeder::class,\n AttributeSeeder::class,\n AttributeValueSeeder::class,\n ProductSeeder::class,\n ]);\n }", "public function run()\n {\n $this->call(RolesTableSeeder::class); // crée les rôles\n $this->call(PermissionsTableSeeder::class); // crée les permissions\n\n factory(Employee::class,3)->create();\n factory(Provider::class,1)->create();\n\n $user = User::create([\n 'name'=>'Alioune Bada Ndoye',\n 'email'=>'abada@gmail.com',\n 'phone'=>'773012470',\n 'password'=>bcrypt('123'),\n ]);\n Employee::create([\n 'job'=>'Informaticien',\n 'user_id'=>User::where('email','abada@gmail.com')->first()->id,\n 'point_id'=>Point::find(1)->id,\n ]);\n $user->assignRole('admin');\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(User::class, 1)\n \t->create(['email' => 'eddyjaair@gmail.com']);\n\n factory(Category::class, 5)->create();\n }", "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n $this->call(rootSeed::class);\n factory(App\\Models\\Egresado::class,'hombre',15)->create();\n factory(App\\Models\\Egresado::class,'mujer',15)->create();\n factory(App\\Models\\Administrador::class,5)->create();\n factory(App\\Models\\Notificacion::class,'post',10)->create();\n factory(App\\Models\\Notificacion::class,'mensaje',5)->create();\n factory(App\\Models\\Egresado::class,'bajaM',5)->create();\n factory(App\\Models\\Egresado::class,'bajaF',5)->create();\n factory(App\\Models\\Egresado::class,'suscritam',5)->create();\n factory(App\\Models\\Egresado::class,'suscritaf',5)->create();\n }", "public function run()\n {\n \n User::factory(1)->create([\n 'rol'=>'EPS'\n ]);\n Person::factory(10)->create();\n $this->call(EPSSeeder::class);\n $this->call(OfficialSeeder::class);\n $this->call(VVCSeeder::class);\n $this->call(VaccineSeeder::class);\n }", "public function run()\n {\n // $faker=Faker::create();\n // foreach(range(1,100) as $index)\n // {\n // DB::table('products')->insert([\n // 'name' => $faker->name,\n // 'price' => rand(10,100000)/100\n // ]);\n // }\n }", "public function run()\n {\n $this->call([\n LanguagesTableSeeder::class,\n ListingAvailabilitiesTableSeeder::class,\n ListingTypesTableSeeder::class,\n RoomTypesTableSeeder::class,\n AmenitiesTableSeeder::class,\n UsersTableSeeder::class,\n UserLanguagesTableSeeder::class,\n ListingsTableSeeder::class,\n WishlistsTableSeeder::class,\n StaysTableSeeder::class,\n GuestsTableSeeder::class,\n TripsTableSeeder::class,\n ReviewsTableSeeder::class,\n RatingsTableSeeder::class,\n PopularDestinationsTableSeeder::class,\n ImagesTableSeeder::class,\n ]);\n\n // factory(App\\User::class, 5)->states('host')->create();\n // factory(App\\User::class, 10)->states('hostee')->create();\n\n // factory(App\\User::class, 10)->create();\n // factory(App\\Models\\Listing::class, 30)->create();\n }", "public function run()\n {\n Schema::disableForeignKeyConstraints();\n Grade::truncate();\n Schema::enableForeignKeyConstraints();\n\n $faker = \\Faker\\Factory::create();\n\n for ($i = 0; $i < 10; $i++) {\n Grade::create([\n 'letter' => $faker->randomElement(['а', 'б', 'в']),\n 'school_id' => $faker->unique()->numberBetween(1, School::count()),\n 'level' => 1\n ]);\n }\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(App\\User::class,5)->create();//5 User created\n factory(App\\Model\\Genre::class,5)->create();//5 genres\n factory(App\\Model\\Film::class,6)->create();//6 films\n factory(App\\Model\\Comment::class, 20)->create();// 20 comments\n }", "public function run()\n {\n\n $this->call(UserSeeder::class);\n factory(Empresa::class,10)->create();\n factory(Empleado::class,50)->create();\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n User::create([\n 'name' => 'jose luis',\n 'email' => 'barbozagonzalesjose@gmail.com',\n 'password' => bcrypt('xxxxxx'),\n 'role' => 'admin',\n ]);\n\n Category::create([\n 'name' => 'inpods',\n 'description' => 'auriculares inalambricos que funcionan con blouthue genial'\n ]);\n\n Category::create([\n 'name' => 'other',\n 'description' => 'otra cosa diferente a un inpods'\n ]);\n\n\n /* Create 10 products */\n Product::factory(10)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(User::class)->create([\n 'email' => 'russell@gmail.com',\n 'name' => 'Russell'\n ]);\n\n factory(User::class)->create([\n 'email' => 'bitfumes@gmail.com',\n 'name' => 'Bitfumes'\n ]);\n\n factory(User::class)->create([\n 'email' => 'paul@gmail.com',\n 'name' => 'Paul'\n ]);\n }", "public function run()\n {\n $user_ids = [1,2,3];\n $faker = app(\\Faker\\Generator::class);\n $posts = factory(\\App\\Post::class)->times(50)->make()->each(function($post) use ($user_ids,$faker){\n $post->user_id = $faker->randomElement($user_ids);\n });\n \\App\\Post::insert($posts->toArray());\n }", "public function run()\n {\n // Vaciar la tabla.\n Favorite::truncate();\n $faker = \\Faker\\Factory::create();\n // Crear artículos ficticios en la tabla\n\n // factory(App\\Models\\User::class, 2)->create()->each(function ($user) {\n // $user->users()->saveMany(factory(App\\Models\\User::class, 25)->make());\n //});\n }", "public function run()\n\t{\n\t\t$this->call(ProductsTableSeeder::class);\n\t\t$this->call(CategoriesTableSeeder::class);\n\t\t$this->call(BrandsTableSeeder::class);\n\t\t$this->call(ColorsTableSeeder::class);\n\n\t\t$products = \\App\\Product::all();\n \t$categories = \\App\\Category::all();\n \t$brands = \\App\\Brand::all();\n \t$colors = \\App\\Color::all();\n\n\t\tforeach ($products as $product) {\n\t\t\t$product->colors()->sync($colors->random(3));\n\n\t\t\t$product->category()->associate($categories->random(1)->first());\n\t\t\t$product->brand()->associate($brands->random(1)->first());\n\n\t\t\t$product->save();\n\t\t}\n\n\t\t// for ($i = 0; $i < count($products); $i++) {\n\t\t// \t$cat = $categories[rand(0,5)];\n\t\t// \t$bra = $brands[rand(0,7)];\n\t\t// \t$cat->products()->save($products[$i]);\n\t\t// \t$bra->products()->save($products[$i]);\n\t\t// }\n\n\t\t// $products = factory(App\\Product::class)->times(20)->create();\n\t\t// $categories = factory(App\\Category::class)->times(6)->create();\n\t\t// $brands = factory(App\\Brand::class)->times(8)->create();\n\t\t// $colors = factory(App\\Color::class)->times(15)->create();\n\t}", "public function run()\n {\n /*$this->call(UsersTableSeeder::class);\n $this->call(GroupsTableSeeder::class);\n $this->call(TopicsTableSeeder::class);\n $this->call(CommentsTableSeeder::class);*/\n DB::table('users')->insert([\n 'name' => 'pkw',\n 'email' => 'pkw@pkw.com',\n 'password' => bcrypt('secret'),\n 'type' => '1'\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker::create();\n foreach (range(1,200) as $index) {\n DB::table('users')->insert([\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'phone' => $faker->randomDigitNotNull,\n 'address'=> $faker->streetAddress,\n 'password' => bcrypt('secret'),\n ]);\n }\n }", "public function run()\n {\n $this->call(UsersSeeder::class);\n User::factory(2)->create();\n Company::factory(2)->create();\n\n }", "public function run()\n {\n echo PHP_EOL , 'seeding roles...';\n\n Role::create(\n [\n 'name' => 'Admin',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Principal',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Teacher',\n 'deletable' => false,\n ]\n );\n\n Role::create(\n [\n 'name' => 'Student',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Parents',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Accountant',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Librarian',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Receptionist',\n 'deletable' => false,\n ]\n );\n\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->call(QuestionTableSeed::class);\n\n $this->call([\n QuestionTableSeed::class,\n AlternativeTableSeed::class,\n ScheduleActionTableSeeder::class,\n UserTableSeeder::class,\n CompanyClassificationTableSeed::class,\n ]);\n // DB::table('clients')->insert([\n // 'name' => 'Empresa-02',\n // 'email' => 'empresa02@gmail.com',\n // 'password' => bcrypt('07.052.477/0001-60'),\n // ]);\n }", "public function run()\n {\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 5; $i++) {\n Runner::create([\n 'external_id' => $faker->uuid,\n 'name' => $faker->name,\n 'race_id' =>rand(1,5),\n 'age' => rand(30, 45),\n 'sex' => $faker->randomElement(['male', 'female']),\n 'color' => $faker->randomElement(['#ecbcb4', '#d1a3a4']),\n ]);\n }\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n User::factory()->create([\n 'name' => 'Carlos',\n 'email' => 'carlos@email.com',\n 'email_verified_at' => now(),\n 'password' => bcrypt('123456'), // password\n 'remember_token' => Str::random(10),\n ]);\n \n $this->call([PostsTableSeeder::class]);\n $this->call([TagTableSeeder::class]);\n\n }", "public function run()\n {\n $this->call(AlumnoSeeder::class);\n //Alumnos::factory()->count(30)->create();\n //DB::table('alumnos')->insert([\n // 'dni_al' => '13189079',\n // 'nom_al' => 'Jose',\n // 'ape_al' => 'Araujo',\n // 'rep_al' => 'Principal',\n // 'esp_al' => 'Tecnologia',\n // 'lnac_al' => 'Valencia'\n //]);\n }", "public function run()\n {\n Eloquent::unguard();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n // $this->call([\n // CountriesTableSeeder::class,\n // ]);\n\n factory(App\\User::class, 100)->create();\n factory(App\\Type::class, 10)->create();\n factory(App\\Item::class, 100)->create();\n factory(App\\Order::class, 1000)->create();\n\n $items = App\\Item::all();\n\n App\\Order::all()->each(function($order) use ($items) {\n\n $n = rand(1, 10);\n\n $order->items()->attach(\n $items->random($n)->pluck('id')->toArray()\n , ['quantity' => $n]);\n\n $order->total = $order->items->sum(function($item) {\n return $item->price * $item->pivot->quantity;\n });\n\n $order->save();\n\n });\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create(\n [\n 'email'=>'izzanniroshlei@gmail.com',\n 'name'=>'izzanni',\n \n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'aina@gmail.com',\n 'name'=>'aina',\n\n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'sab@gmail.com',\n 'name'=>'sab',\n\n ]\n );\n }", "public function run()\n {\n\n factory('App\\Models\\Pessoa', 60)->create();\n factory('App\\Models\\Profissional', 10)->create();\n factory('App\\Models\\Paciente', 50)->create();\n $this->call(UsersTableSeeder::class);\n $this->call(ProcedimentoTableSeeder::class);\n // $this->call(PessoaTableSeeder::class);\n // $this->call(ProfissionalTableSeeder::class);\n // $this->call(PacienteTableSeeder::class);\n // $this->call(AgendaProfissionalTableSeeder::class);\n }", "public function run()\n {\n //Acá se define lo que el seeder va a hacer.\n //insert() para insertar datos.\n //Array asociativo. La llave es el nombre de la columna.\n// DB::table('users')->insert([\n// //Para un solo usuario.\n// 'name' => 'Pedrito Perez',\n// 'email' => 'pedrito@juase.com',\n// 'password' => bcrypt('123456')\n// ]);//Se indica el nombre de la tabla.\n\n //Crea 50 usuarios (sin probar)\n// factory(App\\User::class, 50)->create()->each(function($u) {\n// $u->posts()->save(factory(App\\Post::class)->make());\n// });\n\n factory(App\\User::class, 10)->create(); //Así se ejecuta el model factory creado en ModelFactory.php\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //nhập liệu mẫu cho bảng users\n DB::table('users')->insert([\n \t['id'=>'1001', 'name'=>'Phan Thị Hiền', 'email'=>'hienphan18112015@gmail.com', 'password'=>'123456', 'isadmin'=>1],\n \t['id'=>'1002', 'name'=>'Phan Thị Hà', 'email'=>'haphan@gmail.com', 'password'=>'111111', 'isadmin'=>0]\n ]);\n\n\n //nhập liệu mẫu cho bảng suppliers\n DB::table('suppliers')->insert([\n \t['name'=>'FPT', 'address'=>'151 Hùng Vương, TP. Đà Nẵng', 'phonenum'=>'0971455395'],\n \t['name'=>'Điện Máy Xanh', 'address'=>'169 Phan Châu Trinh, TP. Đà Nẵng', 'phonenum'=>'0379456011']\n ]);\n\n\n //Bảng phiếu bảo hành\n }", "public function run()\n {\n \t// DB::table('categories')->truncate();\n // factory(App\\Models\\Category::class, 10)->create();\n Schema::disableForeignKeyConstraints();\n Category::truncate();\n $faker = Faker\\Factory::create();\n\n $categories = ['SAMSUNG','NOKIA','APPLE','BLACK BERRY'];\n foreach ($categories as $key => $value) {\n Category::create([\n 'name'=>$value,\n 'description'=> 'This is '.$value,\n 'markup'=> rand(10,100),\n 'category_id'=> null,\n 'UUID' => $faker->uuid,\n ]);\n }\n }" ]
[ "0.8013876", "0.79804534", "0.7976992", "0.79542726", "0.79511505", "0.7949612", "0.794459", "0.7942486", "0.7938189", "0.79368967", "0.79337025", "0.78924936", "0.78811055", "0.78790957", "0.78787595", "0.787547", "0.7871811", "0.78701615", "0.7851422", "0.7850352", "0.7841468", "0.7834583", "0.7827792", "0.7819104", "0.78088796", "0.7802872", "0.7802348", "0.78006834", "0.77989215", "0.7795819", "0.77903426", "0.77884805", "0.77862066", "0.7778816", "0.7777486", "0.7765202", "0.7762492", "0.77623445", "0.77621746", "0.7761383", "0.77606887", "0.77596676", "0.7757001", "0.7753607", "0.7749522", "0.7749292", "0.77466977", "0.7729947", "0.77289546", "0.772796", "0.77167094", "0.7714503", "0.77140456", "0.77132195", "0.771243", "0.77122366", "0.7711113", "0.77109736", "0.7710777", "0.7710086", "0.7705484", "0.770464", "0.7704354", "0.7704061", "0.77027386", "0.77020216", "0.77008796", "0.7698617", "0.76985973", "0.76973504", "0.7696405", "0.7694293", "0.7692694", "0.7691264", "0.7690576", "0.76882726", "0.7687433", "0.7686844", "0.7686498", "0.7685065", "0.7683827", "0.7679184", "0.7678287", "0.76776296", "0.76767945", "0.76726556", "0.76708084", "0.76690495", "0.766872", "0.76686716", "0.7666299", "0.76625943", "0.7662227", "0.76613766", "0.7659881", "0.7656644", "0.76539344", "0.76535016", "0.7652375", "0.7652313", "0.7652022" ]
0.0
-1
Description was discarded in 2008 void setDescription (final String description) String getDescription ()
public function __construct($resource, $copy=true) { parent::__construct($resource, $copy); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDescription($description);", "public function setDescription($description);", "public function setDescription($description);", "public function setDescription($description);", "public function setDescription($description);", "public function setDescription($description);", "public function setDescription(/*string*/ $description);", "function setDescription($description) {\n\t\t$this->description = $description;\n\t}", "public function setDescription($description)\n {\n $this->_description = $description;\n }", "function setDescription( $value )\r\n {\r\n $this->Description = $value;\r\n }", "function setDescription( $value )\r\n {\r\n $this->Description = $value;\r\n }", "public function setDescription( $description )\r\n\t{\r\n\t\t$this->description = $description;\r\n\t}", "public function setDescription($description) \n\t{\n \n $this->description = empty($description) ? \"\" : $description;\t\n\t}", "public function setDescription($value) {\n\t\tif($value == \"\") { $value = \"None\"; }\n\t\tself::$_description = $value;\n\t}", "protected function setDescription($description) {\r\n $this->description = $description;\r\n }", "public function setDescription($description)\n\t{\n\t\t$this->_description = $description;\n\t}", "public function setDescription($description){\n\t\t$this->description = $description;\n\t}", "public function setDescription($description)\r\n {\r\n $this->description = $description;\r\n }", "public function setDescription($description)\n {\n $this->_description = $description;\n }", "public function setDescription(string $description)\n {\n $this->description = $description;\n }", "public function setDescription($description) {\n\t\t$this->description = $description;\n\t}", "public function setDescription($value);", "public function setDescription($description) {\n $this->_description = $description;\n }", "public function setDescription($description) {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDesciption($description);", "public function setDescription($description)\n {\n parent::setDescription($this->replaceType($description));\n }", "public function setDescription($desc) {\n\t\t$this->description = $desc;\n\t}", "public function setDescription(DescriptionDescriptor $description): void;", "public function setDescription(string $description)\n {\n $this->description = $description;\n }", "public function setDescription($desc)\n {\n $this->description = $desc;\n }", "public function testAssignDescription()\n {\n $this->markTestIncomplete(\n 'This test has not been implemented yet.'\n );\n }", "function setDescription( &$value )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n $this->Description = $value;\n }", "public function setDescription($desc, $encoding = 'UTF-8') {}", "protected function setDescription() {\r\n\t\t$descriptionCrop = intval($this->settings['news']['semantic']['general']['description']['crop']);\r\n\t\t$descriptionAction = $this->settings['news']['semantic']['general']['description']['action'];\r\n\t\t$descriptionText = $this->newsItem->getTeaser();\r\n\t\tif (empty($descriptionText)) {\r\n\t\t\t$descriptionText = $this->newsItem->getBodytext();\r\n\t\t}\r\n\t\tif (!empty($descriptionText) && !empty($descriptionAction)) {\r\n\t\t\tif (!empty($GLOBALS['TSFE']->page['description'])) {\r\n\t\t\t\tswitch ($descriptionAction) {\r\n\t\t\t\t\tcase 'prepend':\r\n\t\t\t\t\t\t$descriptionText .= ': ' . $GLOBALS['TSFE']->page['description'];\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 'append':\r\n\t\t\t\t\t\t$descriptionText = $GLOBALS['TSFE']->page['description'] . ': ' . $descriptionText;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$this->description = $this->contentObject->crop($descriptionText, $descriptionCrop . '|...|' . TRUE);\r\n\t\t}\r\n\t}", "public function setDescription(?string $description): void\n {\n $this->description = $description;\n }", "public function setDescription($newDescription)\n {\n $this->description = $newDescription;\n }", "function setDescription($description) {\n $this->checkChange();\n\n $this->description = $description;\n return $this;\n }", "static public function setDescription($new_description) {\n\t\tself::$page_description = (string)$new_description;\n\t}", "function set_description($description)\r\n {\r\n $this->set_default_property(self :: PROPERTY_DESCRIPTION, $description);\r\n }", "public function setDescription($description) {\n\t\t$this->addChannelTag('description', $description);\n\t}", "public function set_description ($description) {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->feedbackFields['description'] = $description;\n }", "function setDescriptionA($descriptionA) {\r\r\n\t\t$this->descriptionA = $descriptionA;\r\r\n\t}", "function set_description($description)\n {\n $this->set_default_property(self :: PROPERTY_DESCRIPTION, $description);\n }", "public function setDescription($description) {\n\t\tTemplate::setSiteMetaDescription($description);\n\t}", "public function setDescription($description)\n {\n $this->description = $description;\n \n return $this;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n }", "protected function assignDescription()\n {\n $this->description = '';\n }", "public function setDescription(?string $value): void {\n $this->getBackingStore()->set('description', $value);\n }", "public function setDescription(?string $value): void {\n $this->getBackingStore()->set('description', $value);\n }", "public function setDescription(?string $value): void {\n $this->getBackingStore()->set('description', $value);\n }", "public function setDescription(?string $value): void {\n $this->getBackingStore()->set('description', $value);\n }", "public function setDescription(?string $value): void {\n $this->getBackingStore()->set('description', $value);\n }", "public function setDescription(?string $value): void {\n $this->getBackingStore()->set('description', $value);\n }", "public function setDescription(?string $value): void {\n $this->getBackingStore()->set('description', $value);\n }", "public function setDescription(?string $value): void {\n $this->getBackingStore()->set('description', $value);\n }", "public function setDescription($description)\n\t{\n\t\t$this->description = $description;\n\n\t\tif($this->pageInitialized)\n\t\t\t$this->setMetaTag('description', $this->description);\n\t}", "function setDescription($desc)\n {\n if (strlen($desc) > 1024) {\n throw new InvalidArgumentException('Input must be 1024 characters or less\n in length!');\n }\n $this->_description = $desc;\n }", "function setDescriptionB($descriptionB) {\r\r\n\t\t$this->descriptionB = $descriptionB;\r\r\n\t}", "public function setDescription($value)\n {\n return $this->set('Description', $value);\n }", "public function setDescription($value)\n {\n return $this->set('Description', $value);\n }", "public function setDescription($value)\n {\n return $this->set('Description', $value);\n }", "public function setDescription($value)\n {\n return $this->set('Description', $value);\n }", "public function setDescription($value)\n {\n return $this->set('Description', $value);\n }", "public function setDescription($value)\n {\n return $this->set('Description', $value);\n }", "public function setDescription($value)\n {\n return $this->set('Description', $value);\n }", "public function setDescription($value)\n {\n return $this->set('Description', $value);\n }", "public function setDescription($value)\n {\n return $this->set('Description', $value);\n }", "public function setDescription($value)\n {\n return $this->set('Description', $value);\n }", "public function setDescription($value)\n {\n return $this->set('Description', $value);\n }", "public function set_description($desciption){\n\t\t$this->set_channel_element('description', $desciption);\n\t}", "public function setDescription(?string $description): void\n {\n $this->description['value'] = $description;\n }", "public function setDescription($desciption)\n {\n $this->setChannelElement('description', $desciption);\n }", "public function setSetDescription($description) {\r\n\t\t$this -> setdescription = $description;\r\n\t}", "public function setDescription($value)\n {\n $this->setItemValue('description', (string)$value);\n }", "public function setDescription($description){\n $this->description = $description;\n return $this;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n\n return $this;\n }", "public function setDescription($description)\r\n {\r\n $this->description = $description;\r\n\r\n return $this;\r\n }", "public function setDescription(string $description = null) {\n $this->description = $description;\n return $this;\n }", "public function setDescription($description) {\n $this->_description = $description;\n return $this;\n }", "public function setDescription($description)\n {\n \n $this->__set(self::FIELD_DESCRIPTION,$description);\n \n return $this;\n }", "public function description()\r\n {\r\n }", "public function set_description($description) \n\t{\n\t\t$tag = ($this->version == ATOM)? 'summary' : 'description'; \n\t\t$this->add_element($tag, $description);\n\t}", "public function setDescription($description)\n\t{\n\t\t$this->description = $description;\n\t\treturn $this;\n\t}", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }", "public function setDescription($var)\n {\n GPBUtil::checkString($var, True);\n $this->description = $var;\n\n return $this;\n }" ]
[ "0.83873844", "0.83873844", "0.83873844", "0.83873844", "0.83873844", "0.83873844", "0.82223773", "0.81596583", "0.81213766", "0.80526406", "0.80526406", "0.804496", "0.80434835", "0.80372447", "0.80249417", "0.7984783", "0.79839885", "0.7967444", "0.79543394", "0.7942403", "0.7927888", "0.78801906", "0.78722626", "0.78639877", "0.78512895", "0.78512895", "0.78512895", "0.78512895", "0.78512895", "0.78512895", "0.78512895", "0.78512895", "0.78512895", "0.78512895", "0.78512895", "0.78512895", "0.78512895", "0.7846239", "0.775618", "0.7727916", "0.7714286", "0.7626419", "0.76162046", "0.7578897", "0.75453335", "0.7542594", "0.752497", "0.7511162", "0.7488652", "0.7463126", "0.7457396", "0.745272", "0.7430659", "0.74146837", "0.73811376", "0.7368475", "0.73512685", "0.73506737", "0.733037", "0.72959596", "0.7287336", "0.72474056", "0.72474056", "0.72474056", "0.72474056", "0.72474056", "0.72474056", "0.72474056", "0.72474056", "0.71988213", "0.71974987", "0.71956176", "0.7181345", "0.7181345", "0.7181345", "0.7181345", "0.7181345", "0.71796244", "0.71796244", "0.71796244", "0.71796244", "0.71796244", "0.71796244", "0.71753746", "0.71673435", "0.7165099", "0.71512324", "0.7133576", "0.71278304", "0.711511", "0.7107161", "0.7094792", "0.7057983", "0.7054883", "0.7048456", "0.7035213", "0.70325947", "0.7023823", "0.7023823", "0.7023823", "0.7023823" ]
0.0
-1
Get widget cache key prefix.
public function getCachePrefix($widgetName) { return Widget::CACHE_PREFIX . $widgetName . '-'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract function get_cache_prefix(): string;", "public function getPrefix()\n\t{\n\t\treturn $this->royalcms['config']['cache.prefix'];\n\t}", "public function getPrefix(): string\n {\n if (is_null($this->prefixCache)) {\n $prefix = Config::get('database-encryption.prefix', null);\n $prefix = ! empty($prefix) && is_string($prefix) ? $prefix : self::getPrefixDefault();\n\n $this->prefixCache = $this->isVersioning() ?\n str_replace('%VERSION%', $this->getVersionForPrefix(), $prefix) :\n $prefix;\n }\n\n return $this->prefixCache;\n }", "public function getPrefixKey()\n {\n return $this->getNamespace();\n }", "public function getCachePrefix(): string\n {\n if ($this->cachePrefix === null) {\n $this->cachePrefix = hash('md4', $this->connection->getHost().'-'.$this->connection->getPort().'-'.$this->connection->getDatabase().'-'.$this->connection->getDriver()->getName());\n }\n\n return $this->cachePrefix;\n }", "private function getCacheKey(): string\n {\n return $this->webserviceId.$this->cacheKey;\n }", "public function cacheKey(): string {\n return self::CACHE_PREFIX . $this->id\n . ($this->revisionId ? '_r' . $this->revisionId : '');\n }", "protected function getCacheKey() {\n $plugin_id = hash('sha256', $this->getPluginId());\n $uri = $this->config('uri');\n\n return $plugin_id . ':' . $uri;\n }", "public function getKeyPrefix()\n\t{\n\t\treturn $this->_redisKeyPrefix;\n\t}", "public static function keyPrefix()\n {\n return Inflector::camel2id(StringHelper::basename(get_called_class()), '_');\n }", "protected function cacheKey() : string\n {\n return $this->cacheKey ?? $this->cacheKeyHash();\n }", "public function getJsCachePrefix()\n {\n return Mage::helper('core/url')->getCurrentBase64Url();\n }", "protected function getPrefix()\n {\n $prefix = '';\n return $prefix;\n }", "public function getPrefix()\n\t{\n\t\treturn (strlen($this->prefix) > 0) ? $this->prefix.'_' : '';\n\t}", "protected function getPrefix() {\n\t\t$prefix = (string) $this->viewHelperVariableContainer->get('TYPO3\\\\CMS\\\\Fluid\\\\ViewHelpers\\\\FormViewHelper', 'fieldNamePrefix');\n\n\t\tif (!empty($this->prefix)) {\n\t\t\t$prefix = sprintf('%s[%s]', $prefix, $this->prefix);\n\t\t}\n\t\treturn $prefix;\n\t}", "protected function getCacheVersionKey(): string\n {\n return $this->prefix.'.version';\n }", "protected function getHashKey()\n {\n if (!isset($this->options['prefix'])) {\n return $this->getId();\n }\n\n return $this->options['prefix'] . ':' . $this->getId();\n }", "public function getPrefix()\n {\n return $this->wpdb->prefix . $this->config['namespace'];\n }", "public function getCacheKey(): string\n {\n $customerGroupId = 0;\n\n if ($this->hasCustomerGroupId()) {\n $customerGroupId = $this->getCustomerGroupId();\n }\n\n return sprintf('%d-%d-%d', $this->getWebsiteId(), $customerGroupId, $this->getStoreId());\n }", "protected function getKey()\n {\n return self::$lockPrefix . $this->name;\n }", "public function getCacheKey() {\n return $this->_cacheKey;\n }", "public function getCacheKey()\n {\n return $this->cacheKey;\n }", "protected function getStateKeyPrefix()\n\t{\n\t\treturn get_class($this) . '_' . sha1($this->authUrl) . '_';\n\t}", "public function getCacheKeyInfo()\n {\n $baseCacheKeyInfo = parent::getCacheKeyInfo();\n\n array_push($baseCacheKeyInfo, self::WIDGET_TYPE, $this->_getWidgetParams(true));\n\n return $baseCacheKeyInfo;\n }", "protected function getCacheKey()\r\n {\r\n if (null == $this->cacheKey) {\r\n $this->cacheKey = get_class($this)\r\n . $this->getParent()->getEnvironment()\r\n . $this->getHttpHost();\r\n }\r\n return $this->cacheKey;\r\n }", "public function getPrefix(): string\n {\n return $this->prefix;\n }", "public function getPrefix()\n {\n $connector_parameters = $this->getConnectorParameters();\n \n foreach( $connector_parameters as $param )\n {\n if( $param->getName() == self::PREFIX )\n {\n return $param->getValue();\n }\n }\n }", "public function getActualCacheKey($key)\n {\n \t$key = strval($key);\n $prefix = $this->getPrefix();\n\n if (false === strpos($key, $prefix)) {\n $key = $prefix . $key;\n }\n\n return $key;\n }", "public function getPrefix()\n {\n return $this->__get(self::FIELD_PREFIX);\n }", "public function getPrefix()\n {\n return $this->prefix ?? '';\n }", "public function GetPrefix() {\n\n return $this->\n config['prefix'];\n }", "public function key($key) {\n return $this->options['prefix'] . $key;\n }", "public function getCacheKey()\n {\n return $this->CacheKey;\n }", "public static function getPrefix()\n\t\t{\n\t\t\treturn substr(self::get(), 0, 2);\n\t\t}", "public function prefixKey($prefix);", "public function getPrefix() {}", "public static function get_cache_prefix( $group ) {\n\t\t$prefix = wp_cache_get( 'evf_' . $group . '_cache_prefix', $group );\n\n\t\tif ( false === $prefix ) {\n\t\t\t$prefix = 1;\n\t\t\twp_cache_set( 'evf_' . $group . '_cache_prefix', $prefix, $group );\n\t\t}\n\n\t\treturn 'evf_cache_' . $prefix . '_';\n\t}", "private function getCacheId($prefix = 'minify') {\n $md5 = md5($this->filepath);\n return \"{$prefix}_less_{$md5}\";\n }", "public function getConfigCacheKey() \n {\n return (string) $this->configCacheKey;\n }", "public function getPrefix(): string\n {\n return config('linky.db.prefix');\n }", "public function getPrefix(): string\n {\n return (string) $this->prefix;\n }", "public function getCacheKey(Request $request): string;", "public function getPrefix()\n {\n return $this->_prefix;\n }", "Public Function getPrefix() { Return $this->prefix; }", "public function getPrefix()\n {\n return $this->prefix;\n }", "public function getPrefix()\n {\n return $this->prefix;\n }", "public function getPrefix()\n {\n return $this->prefix;\n }", "public function getPrefix()\n {\n return $this->prefix;\n }", "public function getPrefix()\n {\n return $this->prefix;\n }", "public function getPrefix()\n {\n return $this->prefix;\n }", "public function getPrefix()\n {\n return $this->prefix;\n }", "public function getPrefix()\n {\n return $this->prefix;\n }", "public function getPrefix() {\n return $this->_prefix;\n }", "protected function getCacheKey($dataCacheTableKeyPrefix = ''){\n $cacheKey = null;\n\n // set a model unique cache key if the model is saved\n if( $this->id > 0){\n $cacheKey = $this->getTableCacheKey();\n\n // check if there is a given key prefix\n // -> if not, use the standard key.\n // this is useful for caching multiple data sets according to one row entry\n if( !empty($dataCacheTableKeyPrefix) ){\n $cacheKey .= '.' . $dataCacheTableKeyPrefix . '_';\n }else{\n $cacheKey .= '.ID_';\n }\n $cacheKey .= (string) $this->_id;\n }\n\n return $cacheKey;\n }", "protected static function _getCacheId($prefix = 'minify')\n {\n return (self::$_cacheId ? self::$_cacheId : md5(serialize(array(\n Minify_Source::getDigest(self::$_controller->sources)\n ,self::$_options['minifiers']\n ,self::$_options['minifierOptions']\n ,self::$_options['postprocessor']\n ,self::$_options['bubbleCssImports']\n ,self::$_options['processCssImports']\n ))));\n }", "protected function get_cache_id() {\n\t\treturn wponion_hash_string( $this->module() . '_' . $this->unique() );\n\t}", "public function getPrefix() {\n return $this->sPrefix;\n }", "public function getPrefix()\n\t{\n\t\treturn $this->prefix;\n\t}", "public function getPrefix()\n\t{\n\t\treturn $this->prefix;\n\t}", "public function getPrefix()\n\t{\n\t\treturn $this->prefix;\n\t}", "public function getPrefix()\n\t{\n\t\treturn $this->prefix;\n\t}", "private function getTableCacheKey(){\n return $this->dataCacheKeyPrefix .'.' . strtoupper($this->table);\n }", "protected function getPrefix(): string\n\t{\n\t\treturn $this->arParams['PREFIX'] !== '' ? $this->arParams['PREFIX'] : $this->getDefaultPrefix();\n\t}", "public function get_key() {\n\t\treturn WC_Checkout_Add_Ons::PLUGIN_PREFIX . $this->id;\n\t}", "public function getCacheKeyInfo()\n {\n return array(\n 'VES_PRODUCTCAROUSEL4_BLOCK_WIDGET_TAB',\n $this->getNameInLayout(),\n Mage::app()->getStore()->getId(),\n Mage::getDesign()->getPackageName(),\n Mage::getDesign()->getTheme('template'),\n Mage::getSingleton('customer/session')->getCustomerGroupId(),\n 'template' => $this->getTemplate(),\n );\n }", "private function get_cache_id() {\n $handlername = get_class($this);\n if($this->id)\n $cache_id = '_cache_' . $handlername . '_' . $this->id;\n else \n $cache_id = '_cache_' . $handlername . '_all'; \n return $cache_id;\n\t}", "public static function getPlaceholderPrefix()\r\n {\r\n return self::$placeholderPrefix;\r\n }", "private function cacheKey()\n {\n return sprintf('contact-permissons-%s', $this->client->patientContactId);\n }", "public function getIdPrefix()\n {\n return $this->idPrefix;\n }", "public function prefix() {\n return $this->db['prefix'];\n }", "public function getImagePrefix()\n {\n $value = $this->_config->get('dataprocessing/images/image_prefix');\n\n if ($value === null) {\n $value = '';\n }\n\n return $value;\n }", "function getCacheId() {\n return get_class($this).\"_\".$this->id;\n }", "public function getPrefix();", "public function getPrefix();", "function cacheKey( $key )\n\t{\n\t\treturn $key.\"_\".MANUFACTURER_ID.getFirstSubDomain();\n\t}", "public function getHeaderPrefix(): string\n {\n if (is_null($this->headerPrefixCache)) {\n $characters = $this->getControlCharacters();\n\n $this->headerPrefixCache = $characters['header']['start']['string'].\n $characters['prefix']['start']['string'].\n $this->getPrefix().\n $characters['prefix']['stop']['string'];\n }\n\n return $this->headerPrefixCache;\n }", "private function key() {\n return sprintf('form_%s_%d', $this->module->name, $this->module->id);\n }", "public function getPrefix()\n {\n return '';\n }", "public function getPrefix() {\n return $this->_prefix;\n }", "protected function getInitKey()\n {\n return $this->prefix . ':' . $this->getRankingName() . '_' . 'init';\n }", "public function getCacheKeyInfo()\n {\n return [\n 'REWARDS_NOTIFICATION_RULE_LIST_WIDGET',\n $this->_storeManager->getStore()->getId(),\n $this->_design->getDesignTheme()->getId(),\n $this->httpContext->getValue(\\Magento\\Customer\\Model\\Context::CONTEXT_GROUP),\n serialize($this->getRequest()->getParams())\n ];\n }", "static public function wpdb_prefix(){\n\t\tglobal $wpdb;\n\t\treturn $wpdb->prefix;\n\t}", "protected function GetCacheKey()\n\t{\n\t\treturn (isset($this->params['hashbase']) ? $this->params['hashbase'] : '') . '|' . (isset($this->params['hash']) ? $this->params['hash'] : '') . '|' . (isset($this->params['file']) ? sha1($this->params['file']) : '');\n\t}", "public function getCacheKey()\n {\n return md5('SprainCurrencyConverter_' . $this->getName() . $this->baseCurrency . $this->targetCurrency);\n }", "public function getCacheId()\n {\n return 'wsdl_config_global_' . md5($this->getServiceUrl('*/*/*'));\n }", "public function getCacheKey($key)\r\n {\r\n\t\treturn self::CACHE_KEY_PREFIX .\r\n\t\t\tstrtolower($this->getName()) . '_' . $key;\r\n }", "public function getLabelPrefix(): string\n {\n return $this->labelPrefix;\n }", "public function getPrefix(): string\n {\n }", "protected function calculateCacheKey()\n {\n if ($this->_cacheKey === null) {\n $key = [__CLASS__, Yii::$app->requestedRoute];\n if (is_array($this->variations)) {\n foreach ($this->variations as $value) {\n $key[] = $value;\n }\n }\n $this->_cacheKey = $key;\n }\n \n return $this->_cacheKey;\n }", "private function getCacheId()\n\t{\n\t\treturn self::CACHE_ID_PREFIX . '_' . $this->exportId . '_' . $this->type;\n\t}", "public static function getCacheKeyPrefix($className = null)\n {\n $separator = \":\";\n $keyPrefix = (!empty($className)) ? static::$cacheKeyPrefix . $separator . $className : static::$cacheKeyPrefix;\n return $keyPrefix . $separator;\n }", "protected function _getActualKey($cacheName, $key = NULL)\n\t{\n\t\t$return = $this->_prefix . '_' . $cacheName;\n\n\t\t!is_null($key) && $return .= '_' . md5($key);\n\n\t\treturn $return;\n\t}", "protected function prefix($key = null)\n {\n if (null === $key) {\n return $this->namespace;\n }\n return $this->namespace . '.' . $key;\n }", "public function getPrefix()\n {\n // TODO: Implement getPrefix() method.\n }", "protected function prefix($key)\n {\n return $this->resque->prefix($key);\n }", "protected function GetCacheKey()\n\t{\n\t\treturn $this->params['page'];\n\t}", "public function ElementCacheKey()\n {\n $fragments = [\n 'elemental_block',\n $this->owner->ID,\n $this->owner->LastEdited\n ];\n return implode('-_-', $fragments);\n }", "public function getUrlPrefix()\n {\n return Mage::getStoreConfig('catalog/dailydeal/url_prefix');\n }", "public function cacheKey() {\n $params = $this->getParameters();\n $ret = '';\n $this->make_cache_key($params, $ret);\n\n return md5($ret);\n }", "private function getKey() {\n\t\tif ( !$this->key )\n\t\t\t$this->key = \"mvn-maillists-\" . sanitize_key( $this->getName() );\n\n\t\treturn $this->key;\n\t}" ]
[ "0.76017576", "0.75324696", "0.7300421", "0.719371", "0.7122789", "0.7121323", "0.709956", "0.6957061", "0.69314015", "0.6786952", "0.6782509", "0.6761", "0.6758869", "0.675474", "0.6734475", "0.6731084", "0.67037964", "0.6699642", "0.66858476", "0.6682701", "0.6673084", "0.66590035", "0.66547525", "0.6640165", "0.6626313", "0.6617156", "0.66129994", "0.66073376", "0.6599016", "0.659052", "0.6511856", "0.6504158", "0.64903855", "0.6455663", "0.64553124", "0.6451149", "0.64458245", "0.6435772", "0.6405103", "0.6387326", "0.63817173", "0.63612807", "0.6359467", "0.63455117", "0.6339555", "0.6339555", "0.6339555", "0.6339555", "0.6339555", "0.6339555", "0.6339555", "0.6339555", "0.63306785", "0.6329713", "0.630632", "0.63047147", "0.63011247", "0.6281416", "0.6281416", "0.6281416", "0.6281416", "0.6273168", "0.62549895", "0.6247444", "0.62377787", "0.62358296", "0.6231808", "0.6230298", "0.62292576", "0.62268513", "0.6217877", "0.62060636", "0.6205213", "0.6205213", "0.61947113", "0.6193699", "0.6193351", "0.6188842", "0.61535394", "0.61516166", "0.61454666", "0.6141772", "0.6130617", "0.6130392", "0.6129847", "0.61075026", "0.6099354", "0.6091121", "0.6083561", "0.6080975", "0.6076424", "0.60707986", "0.60611224", "0.6060372", "0.60595876", "0.6056288", "0.6054524", "0.6053019", "0.6049539", "0.6009116" ]
0.74462384
2
Render widget $widget = widgetName $widget = [ 'widget' => 'menu', 'controller' => 'controller', 'action' => 'index' ] $options = [ 'cacheKey' => 'widgetkey', 'renderView' => 'index', 'cache' => true ]
public function render($widget, $params = null, $options = null) { $controllerName = 'controller'; $action = 'index'; if (is_array($widget)) { $widgetName = $widget['widget']; if (isset($widget['controller'])) { $controllerName = $widget['controller']; } if (isset($widget['action'])) { $action = $widget['action']; } } else { $widgetName = $widget; } $viewName = $action; if (strpos($controllerName, 'admin') === 0 && !isset($widget['action'])) { $viewName = "admin-$action"; } if (isset($options['view'])) { $viewName = $options['view']; } $layout = null; if (isset($options['layout'])) { $layout = $options['layout']; } // Render widget only if is active if (!Package::isActiveWidget($widgetName)) { $this->logger->debug("Widget is not active and won't be rendered; widget: $widgetName"); return null; } $controllerName = Text::camelize($controllerName); $controllerClass = "\Widget\\$widgetName\Controllers\\$controllerName"; if (!class_exists($controllerClass)) { $this->logger->debug("Widget class does not exist; widget: $widgetName, class: $controllerClass"); return null; } /** @var \Engine\Widget\Controller $controller */ $controller = new $controllerClass(); // if ($options !== null && isset($options['cache']) && !empty($options['cache'])) { // if (!isset($params['cacheKey'])) { // $options['cacheKey'] = $this->createCacheKey($widget, $params, $widgetName); // } // if ($controller->cache->exists($options['cacheKey'], $options['cache'])) { // return $controller->cache->get($options['cacheKey']); // } // } if ($params !== null) { $controller->setParams($params); } if ($options !== null && isset($options['renderView'])) { $controller->setRenderView($options['renderView']); } // initialize the controller with the necessary settings // $controller->initialize(); $viewWidget = clone $this->di->get('viewWidget'); $controller->viewWidget = $this->di->get('viewWidget'); $isBackend = (substr($controllerName, 0, 5) === "Admin"); if ($isBackend) { // get params before calling the controller to have the necessary data for admin form $this->getAdminParams($controller); } $controller->{"{$action}Action"}(); $html = null; if ($controller->getRenderView()) { if ($isBackend) { $controller->viewWidget->setViewsDir(APP_PATH . "widgets/$widgetName/Views"); $controller->viewWidget->pick($viewName); $controller->viewWidget->setRenderLevel(View::LEVEL_ACTION_VIEW); } else { $this->getWidgetDefaults($controller, $widgetName, $viewName, $layout); $controller->viewWidget->setVar('params', $params); } $html = $controller->viewWidget->getRender($controllerName, $action); } $this->di->set('viewWidget', $viewWidget); // if ($html != null && $options !== null && isset($options['cache']) && !empty($options['cache'])) { // $controller->cache->save($options['cacheKey'], $html, $options['cache']); // } return $html; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function render_widget() {\n\n return Widget::render($this->settings);\n\n }", "public function indexAction()\n {\n $this->view->widget = $this->_getWidget();\n }", "public function frontend_render()\n {\n $user_selected_language = get_user_lang();\n $widget_saved_values = $this->get_settings();\n\n $widget_title = $widget_saved_values['widget_title_' . $user_selected_language] ?? '';\n\n $output = $this->widget_before(); //render widget before content\n\n if (!empty($widget_title)) {\n $output .= '<h4 class=\"widget-title\">' . purify_html($widget_title) . '</h4>';\n }\n $output .='<div class=\"widget widget_search\">\n <form action=\"'.route('frontend.blog.search').'\" method=\"get\" class=\"search-form\">\n <div class=\"form-group\">\n <input type=\"text\" class=\"form-control\" name=\"search\" placeholder=\"'.__('Write your keyword...').'\">\n </div>\n <button class=\"submit-btn\" type=\"submit\"><i class=\"fa fa-search\"></i></button>\n </form>\n </div>';\n\n $output .= $this->widget_after(); // render widget after content\n\n return $output;\n }", "public function widget(&$route, &$data) {\n $appId = $this->that->config->get(\"koraki_client_id\");\n $status = $this->that->config->get(\"koraki_status\");\n if(!empty($appId) && $status) {\n $data[\"modules\"][] = \"<script>window.sparkleSettings = { app_id: \\\"$appId\\\" }; !function(){function t(){var t=a.createElement(\\\"script\\\"); t.type=\\\"text/javascript\\\", t.async=!0,t.src=\\\"//api.koraki.io//widget/v1.0/js\\\"; var e=a.getElementsByTagName(\\\"script\\\")[0];e.parentNode.insertBefore(t,e)} var e=window,a=document;e.attachEvent?e.attachEvent(\\\"onload\\\",t):e.addEventListener(\\\"load\\\",t,!1)}();</script>\";\n }\n }", "public function view() {\n \n // Get the user's plan\n $user_plan = get_user_option( 'plan', $this->CI->user_id );\n \n // Get plan end\n $plan_end = get_user_option( 'plan_end', $this->CI->user_id );\n \n // Get plan data\n $plan_data = $this->CI->plans->get_plan( $user_plan );\n \n // Set widgets\n $widgets = array();\n \n // Get default widgets\n $default_widgets = array();\n \n if ( get_option('app_dashboard_left_side_position') && get_option('app_dashboard_enable_default_widgets') ) {\n\n $full_size = 'col-xl-5';\n\n $plan_data[0]['size'] = 6;\n\n } else {\n\n $full_size = 'col-xl-12';\n\n $plan_data[0]['size'] = 3;\n\n } \n\n if ( get_option('app_dashboard_enable_default_widgets') ) {\n \n foreach ( glob(MIDRUB_DASHBOARD_APP_PATH . '/widgets/*.php') as $filename ) {\n\n $className = str_replace( array( MIDRUB_DASHBOARD_APP_PATH . '/widgets/', '.php' ), '', $filename );\n\n // Create an array\n $array = array(\n 'MidrubApps',\n 'Collection',\n 'Dashboard',\n 'Widgets',\n ucfirst($className)\n ); \n\n // Implode the array above\n $cl = implode('\\\\',$array);\n\n // Instantiate the class\n $response = (new $cl())->display_widget( $this->CI->user_id, $plan_end, $plan_data );\n\n // Add widget to $default_widgets array\n $default_widgets[$response['order']] = $response['widget'];\n\n }\n\n arsort($default_widgets);\n \n if ( $default_widgets ) {\n \n $widgets[0] = '<div class=\"' . $full_size . ' col-lg-12 col-md-12 stats\">'\n . '<div class=\"row\">';\n\n $i = 0;\n \n foreach ( $default_widgets as $widget ) {\n \n if ( get_option('app_dashboard_left_side_position') && $i % 1 ) {\n \n $widgets[0] .= '</div><div class=\"row\">';\n \n }\n \n $widgets[0] .= $widget;\n \n $i++;\n \n }\n \n $widgets[0] .= '</div>'\n . '</div>';\n \n }\n \n }\n \n $apps_widgets = array();\n \n foreach ( glob( MIDRUB_APPS_PATH . '/collection/*') as $directory ) {\n\n $dir = str_replace( MIDRUB_APPS_PATH . '/collection/', '', $directory );\n \n if ( !get_option('app_' . $dir . '_enable') || !plan_feature('app_' . $dir) ) {\n continue;\n }\n\n if ( $dir === 'dashboard' ) {\n \n continue;\n \n } else {\n \n // Create an array\n $array = array(\n 'MidrubApps',\n 'Collection',\n ucfirst($dir),\n 'Main'\n ); \n\n // Implode the array above\n $cl = implode('\\\\',$array);\n\n // Instantiate the class\n $response = (new $cl())->widgets( $this->CI->user_id, $plan_end, $plan_data );\n \n foreach ( $response as $key => $value ) {\n \n // Add widget to $apps_widgets array\n $apps_widgets[$key] = $value;\n \n }\n \n }\n\n }\n\n if ( $apps_widgets ) {\n \n arsort($apps_widgets);\n \n $e = 0;\n \n foreach ( $apps_widgets as $key_w => $value_w ) {\n\n if ( $full_size === 'col-xl-5' && $e === 0 ) {\n\n if ( !isset($widgets[0]) ) {\n $widgets[0] = '';\n }\n \n $widgets[0] .= str_replace( '[xl]', '7', $value_w['widget'] );\n \n } else {\n \n $widgets[$key_w] = str_replace( '[xl]', '12', $value_w['widget'] );\n \n }\n \n if ( $value_w['styles_url'] && !in_array( $value_w['styles_url'], $this->css_urls_widgets ) ) {\n $this->css_urls_widgets[] = $value_w['styles_url'];\n }\n \n if ( $value_w['js_url'] && !in_array( $value_w['js_url'], $this->js_urls_widgets ) ) {\n $this->js_urls_widgets[] = $value_w['js_url'];\n } \n \n $e++;\n \n }\n \n }\n \n $this->CI->user_header = user_header();\n \n $this->CI->user_header['app'] = 'dashboard';\n \n $expired = 0;\n \n $expires_soon = 0;\n \n if ( $plan_end ) {\n \n if ( strtotime($plan_end) < time() ) {\n \n $this->CI->plans->delete_user_plan($this->CI->user_id);\n redirect('user/app/dashboard');\n \n } elseif ( strtotime($plan_end) < time() + 432000 ) {\n \n $expires_soon = 1;\n \n }\n \n }\n \n // Making temlate and send data to view.\n $this->CI->template['header'] = $this->CI->load->view('user/layout/header', array('app_styles' => $this->assets_css(), 'title' => $this->CI->lang->line('dashboard')), true);\n $this->CI->template['left'] = $this->CI->load->view('user/layout/left', $this->CI->user_header, true);\n $this->CI->template['body'] = $this->CI->load->ext_view( MIDRUB_DASHBOARD_APP_PATH . '/views', 'main', array('widgets' => $widgets, 'expired' => $expired, 'expires_soon' => $expires_soon), true);\n $this->CI->template['footer'] = $this->CI->load->view('user/layout/footer', array('app_scripts' => $this->assets_js()), true);\n $this->CI->load->ext_view( MIDRUB_DASHBOARD_APP_PATH . '/views/layout', 'index', $this->CI->template);\n \n }", "private function _render()\n {\n $content = '';\n\n if (is_array($this->widgets)) {\n // clean path vars\n self::_clean_paths();\n\n foreach ($this->widgets as $parts) {\n\n $content = '';\n\n $type = (array_key_exists('type', $parts)) ? $parts['type'] : '';\n $src = (array_key_exists('src', $parts)) ? $parts['src'] : '';\n $title = (array_key_exists('title', $parts)) ? $parts['title'] : '';\n $alt = (array_key_exists('alt', $parts)) ? $parts['alt'] : 1;\n $cols = (array_key_exists('cols', $parts)) ? $parts['cols'] : 1;\n\n // process action commands (these don't follow the convention of standard widgets)\n switch ($type) {\n case 'clear':\n // push content directly into dashboard array\n $content = \"<div style='clear:both'></div>\";\n $this->_dashboard[] = $content;\n continue 2;\n break;\n }\n\n // check if individual keys supplied instead of an array of values\n if (array_key_exists('src', $parts)) {\n\n // individual keys supplied so construct appropriate array\n $parts = array(array('type'=>$type, 'src'=>$src, 'alt'=>$alt));\n }\n\n // process each part\n foreach ($parts as $part) {\n\n if (! is_array($part)) continue;\n\n // add any part-specific sub-headings as <H3>\n $content .= (array_key_exists('title', $part)) ? \"<\".$this->widget_subheading.\">\".$part['title'].\"</\".$this->widget_subheading.\">\" : '';\n\n switch ($part['type']) {\n //======================================\n case 'oop':\n //======================================\n\n // run an external controller to produce widget contents\n if ($this->oop_alt) {\n // alternative location will be:\n // [oop_path]/[dashboard_folder]/[dashboard_name]/[controller_name].[ext]\n // eg. [application/controllers]/[dashboard]/[safety]/[test_dash].[php]\n $file_name = $this->_makepath($this->oop_path, $this->dash_fldr, $this->dash).$part['src'].EXT;\n\n } else {\n\n // normal location will be\n // [oop_path]/[dashboard_name]/[dashboard_folder]/[controller_name].[ext]\n // eg. [application/controllers]/[safety]/[dashboard]/[test_dash].[php]\n $file_name = $this->_makepath($this->oop_path, $this->dash, $this->dash_fldr).$part['src'].EXT;\n }\n\n if (file_exists($file_name)) {\n\n include_once $file_name;\n\n // create an instance of the controller so we can run it\n $cname = ucfirst($part['src']);\n $c = new $cname;\n\n // always run the index() method to build content\n $content .= $c->index();\n\n } else {\n\n $content .= 'WARNING: Unable to find controller: '.$file_name;\n }\n\n break;\n\n //======================================\n case 'html':\n //======================================\n\n // html or text content being directly supplied from controller\n $content .= $part['src'];\n\n break;\n\n //======================================\n case 'curl':\n //======================================\n\n // html or text content being directly supplied from controller\n $content .= $this->_curl_response($part['src']);\n\n break;\n\n //======================================\n case 'img':\n //======================================\n\n // create an <img> tag widget referencing an external image file\n // $img_file = (array_key_exists('src', $part)) ? $this->_makepath($this->asset_path, $this->img_path.PS.$this->dash.PS.$this->dash_fldr.PS.$part['src'] : '';\n $img_file = (array_key_exists('src', $part)) ? $this->_makepath($this->asset_path, $this->img_path, $this->dash, $this->dash_fldr).$part['src'] : '';\n $img_alt = (array_key_exists('alt', $part)) ? $part['alt'] : '';\n\n if (file_exists(FCPATH.$img_file)) {\n\n $content .= \"<img src='\".$img_file.\"' width='100%' alt='{$img_alt}' title='{$img_alt}' class='modalview' type='image' />\";\n\n } else {\n\n $content = 'WARNING: Unable to find img: '.FCPATH.$img_file;\n }\n\n break;\n\n //======================================\n case 'file':\n //======================================\n\n // pull widget contents directly from an external file\n $file_name = (array_key_exists('src', $part)) ? $this->_makepath(FCPATH.$this->asset_path, $this->file_path, $this->dash, $this->dash_fldr).$part['src'] : '';\n\n if (file_exists($file_name)) {\n $content .= file_get_contents($file_name);\n\n } else {\n\n $content .= 'WARNING: Unable to find file: '.$file_name;\n }\n\n break;\n }\n }\n\n // add this widget to dashboard\n $this->_dashboard[] = $this->_widget($title, $content, $cols);\n }\n }\n\n return $content;\n }", "function wp_render_widget($widget_id, $sidebar_id)\n {\n }", "function wp_render_widget_control($id)\n {\n }", "public function render_widget() {\n\t\t$this->get_db_values();\n\t\tif ( wponion_is_callable( $this->option( 'callback' ) ) ) {\n\t\t\techo wponion_callback( $this->option( 'callback' ), array( $this->get_db_values(), $this ) );\n\t\t}\n\t}", "function spyropress_builder_render_widgets() {\n global $wp_registered_widgets;\n $content = '';\n\n // Sorting\n $sort = $wp_registered_widgets;\n usort( $sort, 'builder_module_name_sort' );\n $done = array();\n\n foreach ( $sort as $widget ) {\n $callback = $widget['callback'];\n if ( in_array( $callback, $done, true ) )\n continue;\n\n $done[] = $callback;\n $widget_obj = $callback[0];\n $class = get_class( $widget_obj );\n\n if( $class=='WP_Widget_Media_Image' || $class=='WP_Widget_Media_Gallery' || $class=='WP_Widget_Media_Audio' || $class=='WP_Widget_Media_Video')\n continue;\n /** Generate HTML **/\n $content .= sprintf( '\n <li class=\"module-item\">\n <a class=\"builder-module-insert\" href=\"#\" data-module-type=\"%1$s\">\n <span class=\"module-icon-widget\"></span>\n <span class=\"module-item-body\">\n <strong class=\"module-item-title\">%2$s</strong>\n <span class=\"module-item-description\">%3$s</span>\n </span>\n </a>\n </li>', $class, $widget_obj->name, esc_html( $widget_obj->\n widget_options['description'] ) );\n }\n\n echo tomato_html( $content );\n}", "public function getWidgetMenu(){\n $layout = $this->getLayout();\n $widgetType = Yii::app()->controller instanceof TopicsController ?\n 'topics' : 'recordView';\n $layoutName = $widgetType.'WidgetLayout';\n $recordViewWidgetLayout = $this->$layoutName;\n\n $hiddenRecordViewWidgetMenu = '';\n foreach ($recordViewWidgetLayout as $widgetClass => $settings) {\n if ($settings['hidden']) {\n $hiddenRecordViewWidgetMenu .=\n '<li>\n <span class=\"x2-hidden-widgets-menu-item '.$widgetType.'-widget\" \n id=\"'.$widgetClass.'\">'.\n CHtml::encode ($settings['label']).\n '</span>\n </li>';\n }\n }\n\n // used to determine where section dividers should be placed\n $hiddenCenter = $hiddenRecordViewWidgetMenu !== '';\n $hiddenRight = !empty ($layout['hiddenRight']);\n\n $menu = '<div id=\"x2-hidden-widgets-menu\">';\n $menu .= '<ul id=\"x2-hidden-recordView-widgets-menu\" \n class=\"x2-hidden-widgets-menu-section\">';\n $menu .= $hiddenRecordViewWidgetMenu;\n $menu .= '</ul>';\n $menu .= '<ul id=\"x2-hidden-right-widgets-menu\" class=\"x2-hidden-widgets-menu-section\">';\n $menu .= '<li '.(($hiddenCenter && $hiddenRight) ? '' : 'style=\"display: none;\"').\n 'class=\"x2-hidden-widgets-menu-divider\"></li>';\n foreach($layout['hiddenRight'] as $name => $widget){\n $menu .= '<li><span class=\"x2-hidden-widgets-menu-item widget-right\" id=\"'.$name.'\">'.\n $widget['title'].'</span></li>';\n }\n $menu .= '</ul>';\n $menu .= '</div>';\n\n return $menu;\n }", "public function index()\n {\n $widgetsFrontend = Widgets::frontend()->all();\n $widgetsBackend = Widgets::backend()->all();\n\n return view_backend('widget.index', compact('widgetsFrontend', 'widgetsBackend'));\n }", "function widget( $args, $instance ) {\n\n\t\t\textract( $args );\n\n\t\t\tstatic $counters = array();\n\n\t\t\t$label = $instance['type'].'-'.$instance['rsr-id'];\n\n\n\n\t\t\t/* reset offset counter if rsr-id or type has changed */\n\t\t\tif (!isset($counters[$label])) {\n \t\t\t$counters[$label] = 0;\n \t\t}\n\n\n\n \t\tif(!isset($instance['type-text'])){\n \t\t\t$instance['type-text'] = '';\n \t\t}\n\n \t\t$instance['offset'] = $counters[$label];\n\n \t\t/* get the ajax url for the card widget */\n \t\t$akvo_card_obj = new Akvo_Card;\n \t\t$url = $akvo_card_obj->get_ajax_url('akvo_card', $instance, array('panels_info'));\n\n\n \t\techo \"<div data-behaviour='reload-html' data-url='\".$url.\"'></div>\";\n\n \t\t$counters[$label]++;\n\t\t}", "public function setWidget($widget);", "public function widgets(){\n\t\t//register_widget(\"sampleWidget\");\n\t}", "public function widgets(){\n\t\t//register_widget(\"sampleWidget\");\n\t}", "function comanche_widget($name,$args = null) {\n\t$a = get_app();\n\t$func = 'widget_' . trim($name);\n\tif(function_exists($func))\n\t\treturn $func($args);\n}", "public function widget( $args, $instance ){}", "public static function tcb_before_widget_render( $widget ) {\n\t\tif ( in_array( $widget->option_name, static::get_cached_widget_keys() ) ) {\n\t\t\t$widget->flush_widget_cache();\n\t\t}\n\t}", "function widget( $args, $instance ) {\n\n\t\t$cache = wp_cache_get( $this->plugin_name, 'widget' );\n\n\t\tif ( ! is_array( $cache ) ) {\n\n\t\t\t$cache = array();\n\n\t\t}\n\n\t\tif ( ! isset ( $args['widget_id'] ) ) {\n\n\t\t\t$args['widget_id'] = $this->plugin_name;\n\n\t\t}\n\n\t\tif ( isset ( $cache[ $args['widget_id'] ] ) ) {\n\n\t\t\treturn print $cache[ $args['widget_id'] ];\n\n\t\t}\n\n\t\textract( $args, EXTR_SKIP );\n\n\t\t$widget_string = $before_widget;\n\n\t\t// Manipulate widget's values based on their input fields here\n\n\t\tob_start();\n\n\t\tinclude( plugin_dir_path( __FILE__ ) . 'partials/job-search-display-widget.php' );\n\n\t\t$widget_string .= ob_get_clean();\n\t\t$widget_string .= $after_widget;\n\n\t\t$cache[ $args['widget_id'] ] = $widget_string;\n\n\t\twp_cache_set( $this->plugin_name, $cache, 'widget' );\n\n\t\tprint $widget_string;\n\n\t}", "public static function widget() {\n require_once( 'includes/widget.php' );\n }", "public static function widget() {\n\t\t$username = self::get_dashboard_widget_option(self::wid, 'username');\n\t\t$apikey = self::get_dashboard_widget_option(self::wid, 'apikey');\n\t\t$project_id = self::get_dashboard_widget_option(self::wid, 'project_id');\n\t\t$ref_url = 'http://go.endcore.64905.digistore24.com/';\n\t\t$check = ($username && $apikey && $project_id ? true : false);\n \n\t\tif(!$check) {\n\t\t\techo '<h4 style=\"text-align:right; padding-right: 40px; padding-top: 10px\">' . __( 'Bitte prüfe die Einstellungen &and;', 'affiliatetheme-backend' ) . '</h4>&nbsp;';\n ?>\n <div class=\"rankalyst-text\">\n <a href=\"<?php echo $ref_url; ?>\" target=\"_blank\"><img src=\"<?php echo get_template_directory_uri(); ?>/_/img/rankalyst.png\"></a>\n <p><?php printf(__('Mit <a href=\"%s\" target=\"_blank\">Rankalyst</a> kannst du 10 Keywords kostenlos tracken!', 'affiliatetheme-backend'), $ref_url); ?></p>\n <a href=\"<?php echo $ref_url; ?>\" target=\"_blank\" class=\"button button-primary\"><?php _e('Kostenlos starten', 'affiliatetheme-backend'); ?></a>\n </div>\n <?php\n\t\t}\n\t\t\n\t\t/* @TODO Rankingchange <span class=\"plus\">+</span> bzw Minus ausgeben, jenachdem ob Change positiv oder negativ. */\n\n ?>\n <div class=\"rankalyst-data\">\n <ul class=\"rankalyst-tabs\">\n <li><a href=\"#\" data-type=\"organic\" class=\"active\"><?php _e('Organic', 'affiliatetheme-backend'); ?></a></li>\n <li><a href=\"#\" data-type=\"mobile\"><?php _e('Mobile', 'affiliatetheme-backend'); ?></a></li>\n <li><a href=\"#\" data-type=\"local\"><?php _e('Local', 'affiliatetheme-backend'); ?></a></li>\n </ul>\n\n <div class=\"rankalyst-tab active\" data-type=\"organic\">\n <?php\n $rankalyst = new AT_Rankalyst_API($username, $apikey, $project_id, 1);\n if($rankalyst) {\n\t $response = $rankalyst->data();\n\t if($response) {\n\t\t if ( $response->status != 'success' ) {\n\t\t\t echo '<div class=\"rankalyst-text\"><p style=\"color: #c01313; margin-top: 10px\">' . $response->message . '</p></div>';\n\t\t } else {\n\t\t\t if ( $response->data ) {\n\t\t\t\t $data = $response->data->items;\n\t\t\t\t $rankalyst->output( $data );\n\t\t\t }\n\t\t }\n\t }\n }\n ?>\n </div>\n\n <div class=\"rankalyst-tab\" data-type=\"mobile\">\n <?php\n $rankalyst = new AT_Rankalyst_API($username, $apikey, $project_id, 2);\n if($rankalyst) {\n\t $response = $rankalyst->data();\n\t if($response) {\n\t\t if ( $response->status != 'success' ) {\n\t\t\t echo '<div class=\"rankalyst-text\"><p style=\"color: #c01313; margin-top: 10px\">' . $response->message . '</p></div>';\n\t\t } else {\n\t\t\t if ( $response->data ) {\n\t\t\t\t $data = $response->data->items;\n\t\t\t\t $rankalyst->output( $data );\n\t\t\t }\n\t\t }\n\t }\n }\n ?>\n </div>\n\n <div class=\"rankalyst-tab\" data-type=\"local\">\n <?php\n $rankalyst = new AT_Rankalyst_API($username, $apikey, $project_id, 3);\n if($rankalyst) {\n\t $response = $rankalyst->data();\n\t if($response) {\n\t\t if ( $response->status != 'success' ) {\n\t\t\t echo '<div class=\"rankalyst-text\"><p style=\"color: #c01313; margin-top: 10px\">' . $response->message . '</p></div>';\n\t\t } else {\n\t\t\t if ( $response->data ) {\n\t\t\t\t $data = $response->data->items;\n\t\t\t\t $rankalyst->output( $data );\n\t\t\t }\n\t\t }\n\t }\n }\n ?>\n </div>\n </div>\n <?php\n }", "public function loadwidgetsAction() {\n\t\t$this->_helper->getHelper('layout')->disableLayout();\n\t\tif($this->getRequest()->isPost()) {\n\t\t\tif(!($widgetsData = $this->_helper->cache->load('widgetsData', 'wd_'))) {\n\t\t\t\t$widgetsData = Tools_Widgets_Tools::getAllowedOptions();\n\t\t\t\t$this->_helper->cache->save('widgetsData', $widgetsData, 'wd_', array(), Helpers_Action_Cache::CACHE_LONG);\n\t\t\t}\n\t\t\t$this->getResponse()->setBody(json_encode($widgetsData))->sendResponse();\n\t\t}\n\t\texit;\n\t}", "public function indexAction()\n {\n $contentTypes = $this->contentTypes();\n $model = $this->getModel('widget');\n $rowset = $model->select(array('type' => array_keys($contentTypes)));\n $widgets = array();\n foreach ($rowset as $row) {\n $widgets[$row->block] = $row->toArray();\n }\n if ($widgets) {\n $blocks = Pi::model('block_root')\n ->select(array('id' => array_keys($widgets)))->toArray();\n foreach ($blocks as $block) {\n $widgets[$block['id']]['block'] = $block;\n }\n }\n\n $data = array(\n 'widgets' => array_values($widgets)\n );\n\n $this->view()->assign('data', $data);\n $this->view()->setTemplate('ng');\n }", "public function index()\n\t{\n $widget = Widget::first();\n\n\t\treturn view('admin.widget', compact('widget'));\n\t}", "function widget($args, $inst)\n {\n// $title = apply_filters( 'widget_title', $instance['title'] );\n// $title_color = apply_filters( 'widget_title', $instance['title_color'] );\n $image_about = $this->getVal( $inst, 'image_about' );\n $title_color = $this->getVal( $inst, 'title_color' );\n $title = $this->getVal( $inst, 'title' );\n $desc = $this->getVal( $inst, 'desc' );\n ?>\n <section class=\"ftco-section services-section\" id=\"about\">\n <div class=\"container\">\n <div class=\"row no-gutters\">\n <div class=\"col-md-6 p-md-5 img img-2 d-flex justify-content-center align-items-center\" style=\"background-image: url(<?php echo $image_about; ?>);\">\n </div>\n <div class=\"col-md-6 wrap-about py-md-5 ftco-animate\">\n <div class=\"heading-section mb-5 pl-md-5\">\n <span class=\"subheading\"><?php echo $title_color; ?></span>\n <h2 class=\"mb-4\"><?php echo $title; ?></h2>\n <p><?php echo $desc; ?></p>\n </div>\n </div>\n </div>\n </div>\n </section>\n<?php\n }", "private function getWidgets()\n {\n /* Config: menu widget,metodo getGonfig\n * $this->widget\n *\n * Content: array(widget,metodo,);\n */\n\n /*\n * 'config' => $this->widget('menu', 'getConfig', array('perfil-img')),\n * ** array('perfil-img') == array de la posicion y la visibilidad **\n */\n\n /*\n * 'content' => array('menu', 'getMenu', array('perfil-img', 'perfil-img')),\n * ** array('perfil-img', 'perfil-img') ==\n */\n $db = new Database(DB_HOST, DB_NAME, DB_USER, DB_PASS, DB_CHAR);\n $query = $db->query(\"SELECT * FROM \" . DB_PREFIJO . \"widgets\");\n $widget = $query->fetchAll(PDO::FETCH_OBJ);\n $widgets = array();\n foreach ($widget as $key => $valor) {\n $widgets[$valor->nombre] = array('config' => $this->widget('menu', 'getConfig', array($valor->nombre)), 'content' => array('menu', 'getMenu', array($valor->nombre, $valor->view)),);\n }\n $positions = $this->getLayoutPositions();\n $keys = array_keys($widgets);\n foreach ($keys as $k) {\n /* verificar si la posicion del widget esta presente */\n if (isset($positions[$widgets[$k]['config']['position']])) {\n /* verificar si esta deshabilitado para la vista */\n if (!isset($widgets[$k]['config']['hide']) || !in_array(self::$_item, $widgets[$k]['config']['hide'])) {\n /* verificar si esta habilitado para la vista */\n if ($widgets[$k]['config']['show'] === 'all' || in_array(self::$_item, $widgets[$k]['config']['show'])) {\n if (isset($this->_widget[$k])) {\n $widgets[$k]['content'][2] = $this->_widget[$k];\n }\n /* llenar la posicion del layout */\n $positions[$widgets[$k]['config']['position']][] = $this->getWidgetContent($widgets[$k]['content']);\n\n }\n }\n }\n }\n return $positions;\n }", "public static function widget() {\n \n\t\t$start = self::get_dashboard_widget_option(self::wid, 'starting_conversion');\n\t\t$remaining_days = self::get_dashboard_widget_option(self::wid, 'starting_conversion');\n\t\t\n\t\t// Display Dashboard widget\n\t\trequire_once( 'red-flag-parking-display.php' );\n }", "function widget( $args, $instance ) {\n\n \textract($args);\n \t$title = apply_filters('widget_title', $instance['title'] );\n \t$num_articles = $instance['num_articles'];\n \t$display_image = $instance['display_image'];\n\n \t$options = get_option('pgnyt_articles');\n \t$pgnyt_results = $options['pgnyt_results'];\n\n \trequire ('inc/front-end.php');\n }", "public function tally_rendered_widgets($widget)\n {\n }", "function wf_template_widget($retData=false) {\n\t\tglobal $post;\n\t\t\n\t\t$error = 'Error while adding the widget, please report to <a href=\"http://blog.wanderfly.com/wordpress-plugin/\">http://blog.wanderfly.com/wordpress-plugin/</a>.';\n\t\t$widgetHTML = false;\n\t\t\n\t\tif($post) {\n\t\t\t//Get the Destination ID from the post's metas,\n\t\t\t$wf_meta = get_post_meta($post->ID, \"wf_destination\", true);\n\t\t\t\n\t\t\t//Display the wanderfly widget,\n\t\t\tif($wf_meta) {\n\t\t\t\t$wf_metas = explode(':', $wf_meta);\n\t\t\t\t$widgetHTML = wf_widget($wf_metas[0]);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t//Echo the widget,\n\t\tif($widgetHTML !== false) {\n\t\t\tif($retData) { return $widgetHTML; }\n\t\t\telse { echo $widgetHTML; }\n\t\t}\n\t\t//Return the widget's HTML,\n\t\telse {\n\t\t\tif($retData) { return $widgetHTML; }\n\t\t\telse { echo $error; }\n\t\t}\n\t\t\n\t}", "public function widget($args, $instance) {\n extract( $args );\n\n?>\n <div class=\"an-catlinks-container\">\n <div class=\"an-catlinks-element\">\n <img src=\"<?php _e($instance['image1']); ?>\" />\n <a href=\"<?php _e(get_category_link($instance['cat1'])); ?>\">\n <?php _e(get_cat_name($instance['cat1'])); ?>\n </a>\n </div>\n\n <div class=\"an-catlinks-element\">\n <img src=\"<?php _e($instance['image2']); ?>\" />\n <a href=\"<?php _e(get_category_link($instance['cat2'])); ?>\">\n <?php _e(get_cat_name($instance['cat2'])); ?>\n </a>\n </div>\n\n <div class=\"an-catlinks-element\">\n <img src=\"<?php _e($instance['image3']); ?>\" />\n <a href=\"<?php _e(get_category_link($instance['cat3'])); ?>\">\n <?php _e(get_cat_name($instance['cat3'])); ?>\n </a>\n </div>\n </div>\n\n<?php\n }", "public function actionIndex()\n {\n return $this->render('@gilek/gtreetable/views/widget', ['options'=>[\n 'manyroots' => true,\n 'draggable' => true\n ]]);\n }", "public function form(){\n \t \tif($this->layoutWidgetInfo){\n \t\t$setting = json_decode($this->layoutWidgetInfo->setting, true);\n \t}\n\n \t//default option(type[text], cols[3-9], rows[1], label[$key], name[$key], value[$setting[$k]])\n \t//add option(class, id, stype, styleRow, required, placeholder, attr, [options, code])\n \t$settingForm = array(\n \t\t'layout_widget_id' \t=> array('type' => 'hidden', 'value' => $this->layoutWidgetInfo->layoutWidgetId),\n \t\t'widget_controller' => array('type' => 'hidden', 'value' => $this->widgetController),\n \t\t'header' \t=> array('type' => 'custom', 'value' => \"<h4 class='widget_header col-md-12'>{$this->widgetController}</h4>\", 'label' => ''),\n\n \t\t'title' => array(),\n \t\t'class'\t=> array(),\n 'bg_color'\t=> array('label' => 'Màu nền', 'class' => 'ColorPickerSliders',\n 'addElement' => '<a href=\"index.php?r=admin/help/view&helpId=4\" target=\"_blank\">Xem thêm</a>'),\n \t\t'category_id'\t=> array('type' => 'select_category', 'label' => 'Category', 'required' => true,\n \t\t\t\t'options' => CategoryExt::getCategoryList()),\n \t\t'style'\t=> array('type' => 'select', 'options' => $this->settingDefault['style']),\n \t\t'order_by' => array('type' => 'select', 'options' => $this->settingDefault['order_by']),\n \t\t'order_direction' => array('type' => 'select', 'options' => $this->settingDefault['order_direction']),\n \t);\n\n \t$settingAll = array(\n \t\t'cols' => '3-9'\n \t);\n\n \t//render setting from\n \tTemplateHelper::renderForm($settingForm, $setting, $settingAll);\n TemplateHelper::getTemplate('layout/_extra/add_setting.php', $setting);\n TemplateHelper::getTemplate('layout/_extra/color_picker.php');\n \t}", "public function widget( $args, $instance )\n {\n\n //extract( $args );\n /** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */\n $settings = get_option( $option = 'hades_settings' );\n $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base );\n\n\n echo $args['before_widget'];\n if( $title )\n {\n echo $args['before_title'] . $title . $args['after_title'];\n }\n ?>\n\n <form action=\"<?php echo home_url( '/' ); ?>\">\n <!-- Ici on affiche le champ « s »\n mais nous aurions pu également en faire \n un champ de type hidden avec une valeur vide-->\n <div class=\"hades-search-block\" >\n <label for=\"s\">Rechercher</label>\n <input type=\"text\" name=\"s\" placeholder=\"Mots-clés...\" value=\"<?php the_search_query(); ?>\" id=\"s\">\n </div>\n\n\n <?php\n if( $instance['themeslist'] == 'on' )\n {\n ?>\n <div class=\"hades-search-block\" >\n <label for=\"themes\"><?php echo $instance['themes_title']; ?></label>\n <?php\n \n $args_thm = array (\n 'show_option_all' => __( 'Pas de préférence' ),\n 'orderby' => 'name',\n 'order' => 'ASC',\n 'show_count' => 1,\n 'hide_empty' => 1,\n 'echo' => 0,\n 'name' => 'selection',\n 'id' => 'selection',\n 'hierarchical' => FALSE,\n 'depth' => 1,\n 'taxonomy' => HADES_TAXO_SEL,\n 'hide_if_empty' => true,\n 'value_field' => 'slug',\n );\n \n if($instance['themeslimit'] != '' ){\n $limit= explode( ',', $instance['themeslimit'] ) ;\n $limit=array_filter($limit);\n if(count($limit)>0){\n $args_thm['include']=$limit;\n }\n }\n\n // Y-a-t'il un thème actuellement sélectionné ?\n if( get_query_var( 'selection' ) && ( $t = term_exists( get_query_var( 'selection' ), HADES_TAXO_SEL ) ) )\n {\n $args_thm['selected'] = get_query_var( 'selection' );\n }\n\n $listsel = wp_dropdown_categories( $args_thm );\n\n // Afficher la liste s'il existe des thèmes associés à des contenus\n if( $listsel )\n {\n echo $listsel;\n }\n ?>\n </div>\n <?php } ?>\n\n\n\n <?php\n if( $instance['categorieslist'] == 'on' )\n {\n ?> \n\n <div class=\"hades-search-block\" >\n <label for=\"categorie\"><?php echo $instance['categories_title']; ?></label>\n <?php\n $hades_cat_id = $settings['hades_category_parent'];\n\n if( $instance['categoriesroot'] )\n {\n $hades_cat_id = get_category_by_slug( $instance['categoriesroot'] )->term_id;\n }\n\n $args_cat = array (\n 'show_option_none' => __( 'Toutes les catégories' ),\n 'option_none_value' => get_category( $hades_cat_id )->slug,\n 'orderby' => 'name',\n 'order' => 'ASC',\n 'show_count' => 1,\n 'hide_empty' => 1,\n 'child_of' => $hades_cat_id,\n 'echo' => 0,\n 'name' => 'category_name',\n 'id' => 'category_name',\n 'hierarchical' => TRUE,\n 'depth' => 1,\n 'taxonomy' => 'category',\n 'hide_if_empty' => true,\n 'value_field' => 'slug',\n );\n\n // Y-a-t'il une catégorie actuellement sélectionnée ?\n if( get_query_var( 'category_name' ) && ( $t = term_exists( get_query_var( 'category_name' ), 'category' ) ) )\n {\n $args_cat['selected'] = get_query_var( 'category_name' );\n }\n\n $listcat = wp_dropdown_categories( $args_cat );\n\n // Afficher la liste s'il existe des catégories associées à des contenus\n if( $listcat )\n {\n echo $listcat;\n }\n ?>\n\n </div>\n <?php } ?>\n\n\n <?php\n if( $instance['communeslist'] == 'on' )\n {\n ?> \n\n <div class=\"hades-search-block\" >\n <label for=\"commune\"><?php echo $instance['communes_title']; ?></label>\n <?php\n $args_com = array (\n 'show_option_all' => __( 'Toutes les communes' ),\n 'orderby' => 'name',\n 'order' => 'ASC',\n 'show_count' => 1,\n 'hide_empty' => 1,\n 'echo' => 0,\n 'name' => 'commune',\n 'id' => 'commune',\n 'hierarchical' => FALSE,\n 'depth' => 1,\n 'taxonomy' => HADES_TAXO_COM,\n 'hide_if_empty' => true,\n 'value_field' => 'slug',\n );\n\n // Y-a-t'il une ville actuellement sélectionnée ?\n if( get_query_var( 'commune' ) && ( $t = term_exists( get_query_var( 'commune' ), HADES_TAXO_COM ) ) )\n {\n $args_com['selected'] = get_query_var( 'commune' );\n }\n\n $listcom = wp_dropdown_categories( $args_com );\n\n // Afficher la liste s'il existe des villes associées à des contenus\n if( $listcom )\n {\n echo $listcom;\n }\n ?>\n </div>\n <?php } ?>\n\n\n\n <?php\n if( $instance['localiteslist'] == 'on' )\n {\n ?> \n\n <div class=\"hades-search-block\" >\n <label for=\"localite\"><?php echo $instance['localites_title']; ?></label>\n <?php\n if( $instance['localitesdrop'] == 'on' )\n {\n // Y-a-t'il une ville actuellement sélectionnée ?\n if( get_query_var( 'localite' ) && ( $t = term_exists( get_query_var( 'localite' ), HADES_TAXO_LOC ) ) )\n {\n $args_loc['selected'] = get_query_var( 'localite' );\n }\n ?>\n\n <input type=\"text\" id=\"searchloc\" autocomplete=\"off\" name=\"\" value=\"<?php echo get_query_var( 'localite' ); ?>\" style=\"width:50%;\" />\n <!--<input name=\"action\" value=\"search_loc_hades\" type=\"hidden\">-->\n <div id=\"searchloc_list\" style=\"display:none\"></div>\n <script >\n jQuery('#searchloc').on(\"keyup\", function () {\n send_loc_ajax(this.value);\n });\n\n </script>\n\n <input type=\"hidden\" name=\"localite<?php echo $instance['localitesrayon'] == 'on' ? \"_ray\" : \"\"; ?>\" id=\"searchloc_localite\" value=\"<?php echo get_query_var( 'localite' ); ?>\" />\n\n\n <?php\n }\n else\n {\n $args_loc = array (\n 'show_option_all' => __( 'Toutes les Localités' ),\n 'orderby' => 'name',\n 'order' => 'ASC',\n 'show_count' => 1,\n 'hide_empty' => 1,\n 'echo' => 0,\n 'name' => 'localite' . ($instance['localitesrayon'] == 'on' ? \"_ray\" : \"\"),\n 'id' => 'localite',\n 'hierarchical' => FALSE,\n 'depth' => 1,\n 'taxonomy' => HADES_TAXO_LOC,\n 'hide_if_empty' => true,\n 'value_field' => 'slug',\n );\n\n // Y-a-t'il une ville actuellement sélectionnée ?\n if( get_query_var( 'localite' ) && ( $t = term_exists( get_query_var( 'localite' ), HADES_TAXO_LOC ) ) )\n {\n $args_loc['selected'] = get_query_var( 'localite' );\n }\n\n $listloc = wp_dropdown_categories( $args_loc );\n\n // Afficher la liste s'il existe des villes associées à des contenus\n if( $listloc )\n {\n echo $listloc;\n }\n ?>\n </div>\n\n\n <?php\n }\n if( $instance['localitesrayon'] == 'on' )\n {\n ?>\n\n Rayon : <input type=\"number\" name=\"loc_rayon\" id=\"localitesrayon\" style=\"width:20%;\"\n value=\"<?php echo get_query_var( 'localitesrayon' ) ? get_query_var( 'localitesrayon' ) : \"10\"; ?>\" />Km \n\n <?php }\n }\n ?>\n\n\n\n <?php\n if( $instance['tempolist'] == 'on' )\n {\n ?>\n <div class=\"hades-search-block\" >\n <label for=\"themes\"><?php echo $instance['tempo_title']; ?></label>\n <select id=\"hades_agenda\" name=\"hades_agenda\" >\n <option value=\"<?php echo date( \"Ymd\", time() ) . date( \"Ymd\", time() + (3600 * 24 * 365) ) ?>\" >Pas de préférence</option>\n <option value=\"<?php echo date( \"Ymd\", time() ) ?>\" >Aujourd'hui</option>\n <option value=\"<?php echo date( \"Ymd\", time() + (3600 * 24) ) ?>\" >Demain</option>\n\n <option value=\"<?php\n $datedep = time();\n while( date( 'N', $datedep ) < 5 )\n {\n $datedep+=(3600 * 24);\n }\n $n = date( 'N', $datedep );\n echo date( \"Ymd\", $datedep ) . date( \"Ymd\", $datedep + (3600 * 24) * (7 - $n) );\n ?>\" >Ce week-end</option>\n <option value=\"<?php echo date( \"Ymd\", time() ) . date( \"Ymd\", time() + (3600 * 24 * 7) ) ?>\" >Les 7 prochains jours</option>\n <option value=\"<?php echo date( \"Ymd\", time() ) . date( \"Ymd\", time() + (3600 * 24 * 30) ) ?>\" >Les 30 prochains jours</option>\n\n </select>\n </div>\n <?php } ?>\n\n <button class=\"search-submit\" type=\"submit\" style=\"position:static\"> </button>\n </form>\n <?php\n echo $args['after_widget'];\n }", "function cm_load_widget_r() {\n\tregister_widget( 'cm_widget_r' );\n}", "public function renderWidgets()\r\n {\r\n foreach ($this->_widgets as $widget)\r\n {\r\n echo current($widget);\r\n }\r\n\r\n }", "function ssl_widget() {\r\n $widget_ops = array('classname' => 'ssl_widget', 'description' => __('widget that display a slideshow from all attachments','ssl-plugin') ); \r\n $this->WP_Widget('ssl_widget', __('Siteshow Widget','ssl-plugin'), $widget_ops);\r\n }", "protected function renderWidget(array $arr)\n {\n $content = file_get_contents($this->widgetTpl);\n $widgetName = $arr['name'];\n $dashWidgetName = CaseTool::toDash($widgetName);\n $widgetDescription = $arr['description'];\n $screenShotList = $this->renderScreenshotList($widgetName);\n $widgetVarsDescriptionList = $this->renderWidgetVariablesDescriptionList($arr['vars']);\n\n\n $widgetExample = $arr['example'] ?? \"\";\n if (is_array($widgetExample)) {\n $widgetExample = implode(', ', $widgetExample);\n }\n $templates = [];\n $skins = [];\n $presets = [];\n //--------------------------------------------\n // WIDGET DIR\n //--------------------------------------------\n $widgetDir = $this->widgetsBaseDir . \"/\" . $widgetName;\n if (is_dir($widgetDir)) {\n $cssDir = $widgetDir . '/css';\n $templatesDir = $widgetDir . '/templates';\n $presetsDir = $widgetDir . '/presets';\n\n if (is_dir($cssDir)) {\n $skins = YorgDirScannerTool::getFilesWithExtension($cssDir, [\"css\", \"css.php\"], false, true, true);\n }\n\n if (is_dir($templatesDir)) {\n $templates = YorgDirScannerTool::getFilesWithExtension($templatesDir, \"php\", false, true, true);\n }\n\n if (is_dir($presetsDir)) {\n $presets = YorgDirScannerTool::getFilesWithExtension($presetsDir, \"byml\", false, true, true);\n }\n }\n $sTemplates = implode(', ', $templates);\n $sSkins = implode(', ', $skins);\n $sPresets = implode(', ', $presets);\n\n\n $widgetVars = $arr['vars'];\n return str_replace([\n '${dashWidgetName}',\n '${widgetName}',\n '${widgetDescription}',\n '${screenshotList}',\n '${widgetVarsDescriptionList}',\n '${widgetExample}',\n '${templates}',\n '${skins}',\n '${presets}',\n ], [\n $dashWidgetName,\n $widgetName,\n $widgetDescription,\n $screenShotList,\n $widgetVarsDescriptionList,\n $widgetExample,\n $sTemplates,\n $sSkins,\n $sPresets,\n ], $content);\n }", "public function widget( $args, $instance ) {\n\t\techo $args['before_widget'];\n\t\tif ( ! empty( $instance['title'] ) ) {\n\t\t\techo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ). $args['after_title'];\n\t\t}\n\t\tif(!empty($instance['careerbuilder_developerkey'])){\n $querystring = \"DeveloperKey=\".$instance['careerbuilder_developerkey'].\n \t\t\t\t\"&CountryCode=\".$instance['careerbuilder_countrycode'].\n \t\t\t\t\"&PerPage=\".$instance['careerbuilder_joblimit'].\n \t\t\t\t\"&Category=\".$instance['careerbuilder_category'].\n \t\t\t\t\"&EmpType=\".$instance['careerbuilder_emptype'];\n $xml = simplexml_load_file(\"http://api.careerbuilder.com/V1/jobsearch?\".$querystring);\n $careerbuilderjobs = array();\n foreach($xml->Results->JobSearchResult AS $xmljob){\n $job = array();\n $job['CompanyImageURL'] = $xmljob->CompanyImageURL;\n $job['CompanyDetailsURL'] = $xmljob->CompanyDetailsURL;\n $job['Company'] = $xmljob->Company;\n $job['DescriptionTeaser'] = $xmljob->DescriptionTeaser;\n $job['EmploymentType'] = $xmljob->EmploymentType;\n $job['EducationRequired'] = $xmljob->EducationRequired;\n $job['ExperienceRequired'] = $xmljob->ExperienceRequired;\n $job['JobDetailsURL'] = $xmljob->JobDetailsURL;\n $job['Location'] = $xmljob->Location;\n $job['PostedDate'] = $xmljob->PostedDate;\n $job['SimilarJobsURL'] = $xmljob->SimilarJobsURL;\n $job['JobTitle'] = $xmljob->JobTitle;\n $careerbuilderjobs[] = $job;\n }\n\t\t} \n if(isset($careerbuilderjobs) && !empty($careerbuilderjobs)){\n \tforeach($careerbuilderjobs AS $job){\n \t\t$html = '<div class=\"zijcb_job_wrapper\">\n \t\t\t\t\t<div class=\"zijcb_job_title\"><a href=\"'.$job['JobDetailsURL'].'\" target=\"_blank\" >'.$job['JobTitle'].'</a></div>\n \t\t\t\t\t<div class=\"zijcb_field_wrapper\">\n \t\t\t\t\t\t<div class=\"zijcb_title\">'.__('Company','zij-careerbuilder-jobs').'</div>\n \t\t\t\t\t\t<div class=\"zijcb_value\">'.$job['Company'].'</div>\n \t\t\t\t\t</div>\n \t\t\t\t\t<div class=\"zijcb_field_wrapper\">\n \t\t\t\t\t\t<div class=\"zijcb_title\">'.__('Job Type','zij-careerbuilder-jobs').'</div>\n \t\t\t\t\t\t<div class=\"zijcb_value\">'.$job['EmploymentType'].'</div>\n \t\t\t\t\t</div>\n \t\t\t\t\t<div class=\"zijcb_field_wrapper\">\n \t\t\t\t\t\t<div class=\"zijcb_title\">'.__('Posted','zij-careerbuilder-jobs').'</div>\n \t\t\t\t\t\t<div class=\"zijcb_value\">'.$job['PostedDate'].'</div>\n \t\t\t\t\t</div>\n \t\t\t\t\t<div class=\"zijcb_field_wrapper\">\n \t\t\t\t\t\t<div class=\"zijcb_title\">'.__('Location','zij-careerbuilder-jobs').'</div>\n \t\t\t\t\t\t<div class=\"zijcb_value\">'.$job['Location'].'</div>\n \t\t\t\t\t</div>\n \t\t\t\t\t<div class=\"zijcb_field_wrapper\">\n \t\t\t\t\t\t<div class=\"zijcb_title\">'.__('Snippet','zij-careerbuilder-jobs').'</div>\n \t\t\t\t\t\t<div class=\"zijcb_snippet\">'.$job['DescriptionTeaser'].'</div>\n \t\t\t\t\t</div>\n \t\t\t\t</div>';\n\t\t\t\techo $html;\n \t}\n }else{\n \techo '<h1>'.__('Please check your widget setting and make sure you have entered valid API(developer) key provided by career builder.','zij-careerbuilder-jobs').'</h1>';\n }\n\t\techo $args['after_widget'];\n\t}", "function widget($args, $instance) {\n extract( $args, EXTR_SKIP );\n //echo $before_widget;\n include(plugin_dir_path(__FILE__) . '/views/'. $instance['display'] .'.php' );\n// echo $after_widget;\n}", "function widget( $args, $instance ) {\r\n extract( $args );\r\n /* Our variables from the widget settings. */\r\n $title = apply_filters('widget_name', $instance['title'] );\r\n $type = $instance['type'];\r\n $style = $instance['style'];\r\n $limit = $instance['limit'];\r\n echo $before_widget;\r\n echo $this->showWidget($title, $type, $style, $limit);\r\n echo $after_widget;\r\n }", "protected function widget($widget = ''){\n $url = explode('/',$widget);\n $widget_name = $url[count($url) - 1];\n //Check if $widget is available\n if(!empty($widget) && is_string($widget)){\n $widget_path = APP_ROOT . 'widgets/' . $widget . '.php';\n if(file_exists($widget_path)){\n include_once $widget_path;\n return new $widget_name();\n }\n\n error([\n 'title' => 'Widget Not Found',\n 'description' => 'Ops! It seems the widget <strong>' . ucwords($model) . '</strong> does not exist<br>Please Create It first'\n ]);\n }\n }", "public function indexAction() {\r\n if (isset($_POST['params']))\r\n $params = ($_POST['params']);\r\n $this->view->is_ajax = $is_ajax = isset($_POST['is_ajax']) ? true : false;\r\n $page = isset($_POST['page']) ? $_POST['page'] : 1;\r\n $this->view->identityForWidget = isset($_POST['identity']) ? $_POST['identity'] : '';\r\n $this->view->defaultOptionsArray = $defaultOptionsArray = $this->_getParam('search_type',array('recentlySPcreated','mostSPviewed','mostSPliked','mostSPcommented','mostSPrated','mostSPfavourite','hot','featured','sponsored'));\r\n $this->view->loadOptionData = $loadOptionData = isset($params['pagging']) ? $params['pagging'] : $this->_getParam('pagging', 'auto_load');\r\n $this->view->widgetType = 'tabbed';\r\n if (!$is_ajax && is_array($defaultOptionsArray)) {\r\n $defaultOptions = $arrayOptions = array();\r\n foreach ($defaultOptionsArray as $key => $defaultValue) {\r\n if ($this->_getParam($defaultValue . '_order'))\r\n $order = $this->_getParam($defaultValue . '_order') . '||' . $defaultValue;\r\n else\r\n $order = (1000 + $key).'||'.$defaultValue;\r\n if ($this->_getParam($defaultValue.'_label'))\r\n $valueLabel = $this->_getParam($defaultValue.'_label');\r\n else {\r\n if ($defaultValue == 'recentlySPcreated')\r\n $valueLabel = 'Recently Created';\r\n else if ($defaultValue == 'mostSPviewed')\r\n $valueLabel = 'Most Viewed';\r\n else if ($defaultValue == 'mostSPliked')\r\n $valueLabel = 'Most Liked';\r\n else if ($defaultValue == 'mostSPcommented')\r\n $valueLabel = 'Most Commented';\r\n else if ($defaultValue == 'mostSPrated')\r\n $valueLabel = 'Most Rated';\r\n else if ($defaultValue == 'mostSPfavourite')\r\n $valueLabel = 'Most Favourite';\r\n else if ($defaultValue == 'hot')\r\n $valueLabel = 'Hot';\r\n else if ($defaultValue == 'featured')\r\n $valueLabel = 'Featured';\r\n else if ($defaultValue == 'sponsored')\r\n $valueLabel = 'Sponsored';\r\n }\r\n $arrayOptions[$order] = $valueLabel;\r\n }\r\n ksort($arrayOptions);\r\n $counter = 0;\r\n foreach ($arrayOptions as $key => $valueOption) {\r\n $key = explode('||',$key);\r\n if ($counter == 0)\r\n $this->view->defaultOpenTab = $defaultOpenTab = $key[1];\r\n $defaultOptions[$key[1]] = $valueOption;\r\n $counter++;\r\n }\r\n $this->view->defaultOptions = $defaultOptions;\r\n }\r\n if (isset($_GET['openTab']) || $is_ajax) {\r\n $this->view->defaultOpenTab = $defaultOpenTab = (isset($_GET['openTab']) ? str_replace('_', 'SP', $_GET['openTab']) : ($this->_getParam('openTab') != NULL ? $this->_getParam('openTab') : (isset($params['openTab']) ? $params['openTab'] : '' )));\r\n }\r\n $this->view->height_list = $defaultHeightList = isset($params['height_list']) ? $params['height_list'] : $this->_getParam('height_list','160');\r\n $this->view->width_list = $defaultWidthList = isset($params['width_list']) ? $params['width_list'] : $this->_getParam('width_list','140');\r\n\t\t$this->view->height_grid = $defaultHeightGrid = isset($params['height_grid']) ? $params['height_grid'] : $this->_getParam('height_grid','160');\r\n $this->view->width_grid = $defaultWidthGrid = isset($params['width_grid']) ? $params['width_grid'] : $this->_getParam('width_grid','140');\r\n\t\t$this->view->width_pinboard = $defaultWidthPinboard = isset($params['width_pinboard']) ? $params['width_pinboard'] : $this->_getParam('width_pinboard','300');\r\n $this->view->title_truncation_list = $title_truncation_list = isset($params['title_truncation_list']) ? $params['title_truncation_list'] : $this->_getParam('title_truncation_list', '100');\r\n $this->view->title_truncation_grid = $title_truncation_grid = isset($params['title_truncation_grid']) ? $params['title_truncation_grid'] : $this->_getParam('title_truncation_grid', '100');\r\n\t\t$this->view->title_truncation_pinboard = $title_truncation_pinboard = isset($params['title_truncation_pinboard']) ? $params['title_truncation_pinboard'] : $this->_getParam('title_truncation_pinboard', '100');\r\n $this->view->description_truncation_list = $description_truncation_list = isset($params['description_truncation_list']) ? $params['description_truncation_list'] : $this->_getParam('description_truncation_list', '100');\r\n\t\t$this->view->description_truncation_grid = $description_truncation_grid = isset($params['description_truncation_grid']) ? $params['description_truncation_grid'] : $this->_getParam('description_truncation_grid', '100');\r\n\t\t$this->view->description_truncation_pinboard = $description_truncation_pinboard = isset($params['description_truncation_pinboard']) ? $params['description_truncation_pinboard'] : $this->_getParam('description_truncation_pinboard', '100');\r\n $show_criterias = isset($params['show_criterias']) ? $params['show_criterias'] : $this->_getParam('show_criteria', array('like', 'comment', 'rating', 'by', 'title', 'featuredLabel', 'sponsoredLabel', 'watchLater', 'category', 'description_list','description_grid','description_pinboard', 'duration', 'hotLabel', 'favouriteButton', 'playlistAdd', 'likeButton', 'socialSharing', 'view'));\r\n if(is_array($show_criterias)){\r\n\t\t\tforeach ($show_criterias as $show_criteria)\r\n \t$this->view->{$show_criteria . 'Active'} = $show_criteria;\r\n\t\t}\r\n\t\t$this->view->bothViewEnable = false;\r\n if (!$is_ajax) {\r\n $this->view->optionsEnable = $optionsEnable = $this->_getParam('enableTabs', array('list', 'grid', 'pinboard'));\r\n $view_type = $this->_getParam('openViewType', 'list');\r\n if (count($optionsEnable) > 1) {\r\n $this->view->bothViewEnable = true;\r\n }\r\n }\r\n\t\t $this->view->limit_data_pinboard = $limit_data_pinboard = isset($params['limit_data_pinboard']) ? $params['limit_data_pinboard'] : $this->_getParam('limit_data_pinboard', '10');\r\n\t\t$this->view->limit_data_grid = $limit_data_grid = isset($params['limit_data_grid']) ? $params['limit_data_grid'] : $this->_getParam('limit_data_grid', '10');\r\n\t\t$this->view->limit_data_list = $limit_data_list = isset($params['limit_data_list']) ? $params['limit_data_list'] : $this->_getParam('limit_data_list', '10');\r\n $this->view->view_type = $view_type = (isset($_POST['type']) ? $_POST['type'] : (isset($params['view_type']) ? $params['view_type'] : $view_type));\r\n\t\t$this->view->viewTypeStyle = $viewTypeStyle = (isset($_POST['viewTypeStyle']) ? $_POST['viewTypeStyle'] : (isset($params['viewTypeStyle']) ? $params['viewTypeStyle'] : $this->_getParam('viewTypeStyle','fixed')));\r\n\t\t$limit_data = $this->view->{'limit_data_'.$view_type};\r\n\t\t$show_limited_data = isset($params['show_limited_data']) ? $params['show_limited_data'] :$this->_getParam('show_limited_data', 'no');\r\n\t\tif($show_limited_data == 'yes')\r\n\t\t\t$this->view->show_limited_data = true;\r\n $params = $this->view->params = array('height_list' => $defaultHeightList, 'width_list' => $defaultWidthList,'height_grid' => $defaultHeightGrid, 'width_grid' => $defaultWidthGrid,'width_pinboard' => $defaultWidthPinboard,'limit_data_pinboard' => $limit_data_pinboard,'limit_data_list'=>$limit_data_list,'limit_data_grid'=>$limit_data_grid, 'openTab' => $defaultOpenTab, 'pagging' => $loadOptionData, 'show_criterias' => $show_criterias, 'view_type' => $view_type, 'description_truncation_list' => $description_truncation_list, 'title_truncation_list' => $title_truncation_list, 'title_truncation_grid' => $title_truncation_grid,'title_truncation_pinboard'=>$title_truncation_pinboard,'description_truncation_grid'=>$description_truncation_grid,'description_truncation_pinboard'=>$description_truncation_pinboard,'show_limited_data'=>$show_limited_data,'viewTypeStyle' =>$viewTypeStyle);\r\n $this->view->loadMoreLink = $this->_getParam('openTab') != NULL ? true : false;\r\n // custom list grid view options\r\n $options = array('tabbed' => true, 'paggindData' => true);\r\n $this->view->optionsListGrid = $options;\r\n $this->view->widgetName = 'tabbed-widget-video';\r\n $this->view->showTabType = $this->_getParam('showTabType', '1');\r\n // initialize type variable type\r\n $type = '';\r\n switch (@$defaultOpenTab) {\r\n case 'recentlySPcreated':\r\n $popularCol = 'creation_date';\r\n $type = 'creation';\r\n break;\r\n case 'mostSPviewed':\r\n $popularCol = 'view_count';\r\n $type = 'view';\r\n break;\r\n case 'mostSPliked':\r\n $popularCol = 'like_count';\r\n $type = 'like';\r\n break;\r\n case 'mostSPcommented':\r\n $popularCol = 'comment_count';\r\n $type = 'comment';\r\n break;\r\n case 'mostSPrated':\r\n $popularCol = 'rating';\r\n $type = 'rating';\r\n break;\r\n case 'mostSPfavourite':\r\n $popularCol = 'favourite_count';\r\n $type = 'favourite';\r\n break;\r\n case 'hot':\r\n $popularCol = 'is_hot';\r\n $type = 'is_hot';\r\n $fixedData = 'is_hot';\r\n break;\r\n case 'featured':\r\n $popularCol = 'is_featured';\r\n $type = 'is_featured';\r\n $fixedData = 'is_featured';\r\n break;\r\n case 'sponsored':\r\n $popularCol = 'is_sponsored';\r\n $type = 'is_sponsored';\r\n $fixedData = 'is_sponsored';\r\n break;\r\n }\r\n $this->view->type = $type;\r\n $value['popularCol'] = isset($popularCol) ? $popularCol : '';\r\n $value['fixedData'] = isset($fixedData) ? $fixedData : '';\r\n $value['status'] = 1;\r\n $value['search'] = 1;\r\n $value['watchLater'] = true;\r\n $this->view->tabbed_widget = true;\r\n $paginator = Engine_Api::_()->getDbTable('videos', 'sesvideo')->getVideo($value);\r\n $this->view->paginator = $paginator;\r\n // Set item count per page and current page number\r\n $paginator->setItemCountPerPage($limit_data);\r\n $this->view->page = $page;\r\n $paginator->setCurrentPageNumber($page);\r\n if ($is_ajax)\r\n $this->getElement()->removeDecorator('Container');\r\n else {\r\n // Do not render if nothing to show\r\n if ($paginator->getTotalItemCount() <= 0) {\r\n $checkVideoCount = Engine_Api::_()->getDbTable('videos', 'sesvideo')->countVideos();\r\n if ($checkVideoCount->getTotalItemCount() <= 0) {\r\n return $this->setNoRender();\r\n }\r\n }\r\n }\r\n }", "public function loadWidgetData(){\n\t\tswitch($this->input->get('widget_id')){\n\t\t\tcase 3:\n\t\t\t\t$data = array(\n\t\t\t\t\t'color' => 'blue_green',\n\t\t\t\t\t'icon' => 'fa-check-square-o',\n\t\t\t\t\t'value1' => 'Bloog Glucose',\n\t\t\t\t\t'value2' => '223',\n\t\t\t\t);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$data = array(\n\t\t\t\t\t'color' => 'blue_green',\n\t\t\t\t\t'icon' => 'fa-check-square-o',\n\t\t\t\t\t'value1' => 'Unknown widget',\n\t\t\t\t\t'value2' => '?',\n\t\t\t\t);\n\t\t\t\tbreak;\n\t\t}\n\t\t$this->ajaxResponse($data);\n\t}", "abstract public function widget_markup( $args, $instance );", "public function indexAction()\r\n {\r\n\t\tif(isset($_POST['params']))\r\n\t\t\t$params = json_decode($_POST['params'],true);\r\n\t\tif(isset($_POST['searchParams']) && $_POST['searchParams'])\r\n\t\t\tparse_str($_POST['searchParams'], $searchArray);\r\n\t\t$this->view->is_ajax = $is_ajax = isset($_POST['is_ajax']) ? true : false;\r\n\t\t$page = isset($_POST['page']) ? $_POST['page'] : 1 ;\r\n\t\t$this->view->identityForWidget = isset($_POST['identity']) ? $_POST['identity'] : '';\r\n\t\t$this->view->defaultOptionsArray = $defaultOptionsArray = $this->_getParam('search_type');\r\n\t\t$this->view->loadOptionData = $loadOptionData = isset($params['pagging']) ? $params['pagging'] : $this->_getParam('pagging', 'auto_load');\r\n\t\tif(!$is_ajax){\r\n\t\t\t//order tabs\r\n\t\t\tif(count($defaultOptionsArray) == 0)\r\n\t\t\t\t\treturn $this->setNoRender();\r\n\t\t\t$defaultOptions = $arrayOptions = array();\r\n\t\t\tforeach($defaultOptionsArray as $key=>$defaultValue){\r\n\t\t\t\tif( $this->_getParam($defaultValue.'_order'))\r\n\t\t\t\t\t$order = $this->_getParam($defaultValue.'_order').'||'.$defaultValue;\r\n\t\t\t\telse\r\n\t\t\t\t\t$order = (999+$key).'||'.$defaultValue;\r\n\t\t\t\tif( $this->_getParam($defaultValue.'_label'))\r\n\t\t\t\t\t\t$valueLabel = $this->_getParam($defaultValue.'_label');\r\n\t\t\t\telse{\r\n\t\t\t\t\tif($defaultValue == 'recentlySPcreated')\r\n\t\t\t\t\t\t$valueLabel ='Recently Created';\r\n\t\t\t\t\telse if($defaultValue == 'mostSPviewed')\r\n\t\t\t\t\t\t$valueLabel = 'Most Viewed';\r\n\t\t\t\t\telse if($defaultValue == 'mostSPliked')\r\n\t\t\t\t\t\t$valueLabel = 'Most Liked';\r\n\t\t\t\t\telse if($defaultValue == 'mostSPcommented')\r\n\t\t\t\t\t\t$valueLabel = 'Most Commented';\r\n\t\t\t\t\telse if($defaultValue == 'mostSPrated')\r\n\t\t\t\t\t\t$valueLabel = 'Most Rated';\r\n\t\t\t\t\telse if($defaultValue == 'mostSPfavourite')\r\n\t\t\t\t\t\t$valueLabel = 'Most Favourite';\r\n\t\t\t\t\telse if($defaultValue == 'mostSPdownloaded')\r\n\t\t\t\t\t\t$valueLabel = 'Most Downloaded';\r\n\t\t\t\t\telse if($defaultValue == 'featured')\r\n\t\t\t\t\t\t$valueLabel = 'Featured';\r\n\t\t\t\t\telse if($defaultValue == 'sponsored')\r\n\t\t\t\t\t\t$valueLabel = 'Sponsored';\r\n\t\t\t\t}\r\n\t\t\t\t$arrayOptions[$order] = $valueLabel;\r\n\t\t\t}\r\n\t\t\tksort($arrayOptions);\r\n\t\t\t$counter = 0;\r\n\t\t\tforeach($arrayOptions as $key => $valueOption){\r\n\t\t\t\t$key = explode('||',$key);\r\n\t\t\tif($counter == 0)\r\n\t\t\t\t$this->view->defaultOpenTab = $defaultOpenTab = $key[1];\r\n\t\t\t\t$defaultOptions[$key[1]]=$valueOption;\r\n\t\t\t\t$counter++;\r\n\t\t\t}\t\t\t\t\r\n\t\t\t$this->view->defaultOptions = $defaultOptions;\r\n\t\t\t$this->view->tab_option = $this->_getParam('tab_option','filter');\r\n\t\t}\r\n\t\t//default params\r\n\t\tif(isset($_GET['openTab']) || $is_ajax){\r\n\t\t $this->view->defaultOpenTab = $defaultOpenTab = !empty($searchArray['sort']) ? $searchArray['sort'] : (!empty($_GET['openTab']) ? $_GET['openTab'] : ($this->_getParam('openTab',false) ? $this->_getParam('openTab') : (!empty($params['openTab']) ? $params['openTab'] : '' )));\r\n\t\t}\r\n\t\t$defaultOptions =isset($params['defaultOptions']) ? $params['defaultOptions'] : $defaultOptions;\r\n\t\t$this->view->height = $defaultHeight =isset($params['height']) ? $params['height'] : $this->_getParam('height', '160px');\r\n\t\t$this->view->width = $defaultWidth= isset($params['width']) ? $params['width'] :$this->_getParam('width', '140px');\r\n\t\t$this->view->hide_row = $hide_row= isset($params['hide_row']) ? $params['hide_row'] :$this->_getParam('hide_row', '1');\r\n\t\t$this->view->limit_data = $limit_data = isset($params['limit_data']) ? $params['limit_data'] :$this->_getParam('limit_data', '9');\r\n\t\t$this->view->show_limited_data = $show_limited_data = isset($params['show_limited_data']) ? $params['show_limited_data'] :$this->_getParam('show_limited_data', 'no');\r\n \t $this->view->limit = ($page-1)*$limit_data;\r\n\t\t$this->view->title_truncation = $title_truncation = isset($params['title_truncation']) ? $params['title_truncation'] :$this->_getParam('title_truncation', '45');\r\n\t\t$show_criterias = isset($params['show_criterias']) ? $params['show_criterias'] : $this->_getParam('show_criteria',array('like','comment','rating','by','title','socialSharing','view','photoCount','favouriteCount','featured','sponsored','favouriteButton','likeButton','downloadCount'));\r\n\t\t$this->view->fixHover = $fixHover = isset($params['fixHover']) ? $params['fixHover'] :$this->_getParam('fixHover', 'fix');\r\n\t\t$this->view->insideOutside = $insideOutside = isset($params['insideOutside']) ? $params['insideOutside'] : $this->_getParam('insideOutside', 'inside');\r\n\t\tforeach($show_criterias as $show_criteria)\r\n\t\t\t$this->view->$show_criteria = $show_criteria;\r\n\t\t$this->view->view_type = $view_type = isset($params['view_type']) ? $params['view_type'] : $this->_getParam('view_type', 'masonry');\r\n\t\t$value['category_id'] = isset($searchArray['category_id']) ? $searchArray['category_id'] : (isset($_GET['category_id']) ? $_GET['category_id'] : (isset($params['category_id']) ? $params['category_id'] : '')) ;\r\n\t\t$value['subcat_id'] = isset($searchArray['subcat_id']) ? $searchArray['subcat_id'] : (isset($_GET['subcat_id']) ? $_GET['subcat_id'] : (isset($params['subcat_id']) ? $params['subcat_id'] : '')) ;\r\n\t\t$value['subsubcat_id'] = isset($searchArray['subsubcat_id']) ? $searchArray['subsubcat_id'] : (isset($_GET['subsubcat_id']) ? $_GET['subsubcat_id'] : (isset($params['subsubcat_id']) ? $params['subsubcat_id'] : '')) ;\r\n\t\t$value['sort'] = isset($searchArray['sort']) ? $searchArray['sort'] : (isset($_GET['sort']) ? $_GET['sort'] : (isset($params['sort']) ? $params['sort'] : '')) ;\r\n\t\t$value['search'] = isset($searchArray['search']) ? $searchArray['search'] : (isset($_GET['search']) ? $_GET['search'] : (isset($params['search']) ? $params['search'] : '')) ;\r\n\t\t$value['location'] = isset($searchArray['location']) ? $searchArray['location'] : (isset($_GET['location']) ? $_GET['location'] : (isset($params['location']) ? $params['location'] : ''));\r\n\t\t$value['lat'] = isset($searchArray['lat']) ? $searchArray['lat'] : (isset($searchArray['lat']) ? $_GET['lat'] : (isset($params['lat']) ? $params['lat'] : ''));\r\n\t\t$value['lng'] = isset($searchArray['lng']) ? $searchArray['lng'] : (isset($searchArray['lng']) ? $_GET['lng'] : (isset($params['lng']) ? $params['lng'] : ''));\r\n\t\t$value['miles'] = isset($searchArray['miles']) ? $searchArray['miles'] : (isset($_GET['miles']) ? $_GET['miles'] : (isset($params['miles']) ? $params['miles'] : ''));\t\t\r\n\t\t$value['show'] = isset($searchArray['show']) ? $searchArray['show'] : (isset($_GET['show']) ? $_GET['show'] : (isset($params['show']) ? $params['show'] : ''));\r\n\t $this->view->albumPhotoOption = $albumPhotoOption = isset($params['albumPhotoOption']) ? $params['albumPhotoOption'] : $this->_getParam('photo_album', 'photo');\r\n\t\t$this->view->description_truncation = $description_truncation = isset($params['description_truncation']) ? $params['description_truncation'] : $this->_getParam('description_truncation', '80');\r\n\t\t$this->view->view_type = $view_type = isset($params['view_type']) ? $params['view_type'] : $this->_getParam('view_type', 'masonry');\r\n\t\t$params = $this->view->params = array('height'=>$defaultHeight,'width' => $defaultWidth,'limit_data' => $limit_data,'albumPhotoOption' =>$albumPhotoOption,'openTab'=>$defaultOpenTab,'pagging'=>$loadOptionData,'show_criterias'=>$show_criterias,'view_type'=>$view_type,'title_truncation' =>$title_truncation,'insideOutside' =>$insideOutside,'fixHover'=>$fixHover,'defaultOptions'=>$defaultOptions,'sort'=>$value['sort'],'search'=>$value['search'],'category_id'=>$value['category_id'],'subcat_id'=>$value['subcat_id'],'subsubcat_id'=>$value['subsubcat_id'],'lat'=>$value['lat'],'lng'=>$value['lng'],'location'=>$value['location'],'miles'=>$value['miles'],'show_limited_data'=>$show_limited_data,'show'=>$value['show'],'description_truncation'=>$description_truncation);\r\n\t\t$this->view->loadMoreLink = $this->_getParam('openTab') != NULL ? true : false;\r\n\t\t// initialize type variable type\r\n\t\t$type = '';\r\n\t\tif(!$is_ajax){\r\n\t\t\t$defaultOpenTab = (isset($_GET['sort']) && $_GET['sort'] ? $_GET['sort'] : $defaultOpenTab);\t\r\n\t\t}\r\n\t\tswitch($defaultOpenTab){\r\n\t\t\tcase 'recentlySPcreated':\r\n\t\t\t\t$popularCol = 'creation_date';\r\n\t\t\t\t$type = 'creation';\r\n\t\t\tbreak;\r\n\t\t\tcase 'mostSPviewed':\r\n\t\t\t\t$popularCol = 'view_count';\r\n\t\t\t\t$type = 'view';\r\n\t\t\tbreak;\r\n\t\t\tcase 'mostSPliked':\r\n\t\t\t\t$popularCol = 'like_count';\r\n\t\t\t\t$type = 'like';\r\n\t\t\tbreak;\r\n\t\t\tcase 'mostSPcommented':\r\n\t\t\t\t$popularCol = 'comment_count';\r\n\t\t\t\t$type = 'comment';\r\n\t\t\tbreak;\r\n\t\t\tcase 'mostSPrated':\r\n\t\t\t\t$popularCol = 'rating';\r\n\t\t\t\t$type = 'rating';\r\n\t\t\tbreak;\r\n\t\t\tcase 'featured':\r\n\t\t\t\t$popularCol = 'is_featured';\r\n\t\t\t\t$type = 'is_featured';\r\n\t\t\t\t$fixedData = 'is_featured';\r\n\t\t\tbreak;\r\n\t\t\tcase 'sponsored':\r\n\t\t\t\t$popularCol = 'is_sponsored';\r\n\t\t\t\t$type = 'is_sponsored';\r\n\t\t\t\t$fixedData = 'is_sponsored';\r\n\t\t\tbreak;\r\n\t\t\tcase 'mostSPfavourite':\r\n\t\t\t\t$popularCol = 'favourite_count';\r\n\t\t\t\t$type = 'favourite';\r\n\t\t\tbreak;\r\n\t\t\tcase 'mostSPdownloaded':\r\n\t\t\t\t$popularCol = 'download_count';\r\n\t\t\t\t$type = 'download';\r\n\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\treturn $this->setNoRender();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t$this->view->type = $type;\r\n\t\t$this->view->itemOrigTitle = isset($defaultOptions[$defaultOpenTab]) ? $defaultOptions[$defaultOpenTab] : 'items';\r\n\t\t$value['popularCol'] = isset($popularCol) ? $popularCol : 'creation_date';\r\n\t\t$value['fixedData'] = \tisset($fixedData) ? $fixedData : ''; \r\n\t\t//fetch data\r\n\r\n\t\tif($albumPhotoOption == 'photo'){\r\n\t\t$paginator = Engine_Api::_()->getDbTable('photos', 'sesalbum')->tabWidgetPhotos($value);\r\n\t\t}else{\r\n\t\t\t$paginator = Engine_Api::_()->getDbTable('albums', 'sesalbum')->tabWidgetAlbums($value);\r\n\t\t}\r\n $this->view->paginator = $paginator ;\r\n // Set item count per page and current page number\r\n $paginator->setItemCountPerPage($this->_getParam('itemCountPerPage',$limit_data));\r\n\t\t$this->view->page = $page ;\r\n $paginator->setCurrentPageNumber($page);\r\n\t\t$this->view->canCreate = Engine_Api::_()->authorization()->isAllowed('album', null, 'create');\r\n\t\tif($is_ajax)\r\n\t\t\t$this->getElement()->removeDecorator('Container');\r\n\t\telse{\r\n\t\t\t// Do not render if nothing to show\r\n\t\t\tif( $paginator->getTotalItemCount() <= 0 ) {\r\n\t\t\t\t$nameFunction = 'count'.ucfirst($albumPhotoOption).'s';\r\n\t\t\t\t$checkAlbumCount = Engine_Api::_()->getDbTable($albumPhotoOption.'s', 'sesalbum')->$nameFunction();\r\n\t\t\t\tif( $checkAlbumCount <= 0 ) {\r\n\t\t\t\t\treturn $this->setNoRender();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n }", "public function widget_instance($params) {\n if ($params['widget'] == 'admindelegation' && $this->_userCanViewWidget('admindelegation')) {\n include_once 'AdminDelegation_UserWidget.class.php';\n $params['instance'] = new AdminDelegation_UserWidget($this);\n }\n if ($params['widget'] == 'admindelegation_projects' && $this->_userCanViewWidget('admindelegation_projects')) {\n include_once 'AdminDelegation_ShowProjectWidget.class.php';\n $params['instance'] = new AdminDelegation_ShowProjectWidget($this);\n }\n \n }", "function arphabet_widgets_init() {\n\n register_sidebar( array(\n 'name' => 'Widget oben rechts',\n 'id' => 'widget_top_right',\n 'before_widget' => '<div>',\n 'after_widget' => '</div>',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>',\n ) );\n\n register_sidebar( array(\n 'name' => 'Widget mitte rechts',\n 'id' => 'widget_center_right',\n 'before_widget' => '<div>',\n 'after_widget' => '</div>',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>',\n ) );\n\n register_sidebar( array(\n 'name' => 'Widget unten rechts',\n 'id' => 'widget_bottom_right',\n 'before_widget' => '<div>',\n 'after_widget' => '</div>',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>',\n ) );\n\n register_sidebar( array(\n 'name' => 'Newsletter Widget',\n 'id' => 'newsletter_widget',\n 'before_widget' => '<div>',\n 'after_widget' => '</div>',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>',\n ) );\n\n register_sidebar( array(\n 'name' => 'Custom Footer Widget',\n 'id' => 'footer_widget',\n 'before_widget' => '<div>',\n 'after_widget' => '</div>',\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => '</h3>',\n ) );\n\n\n}", "function dashboard_widget() {\n\t\tif(!empty($this->options['stats_last_cache'])):\n\t\t\t$last_cache = '<em>Last Updated ' . date(\"m/d/y @ h:i:s\", $this->options['stats_last_cache']) . '</em>';\n\t\telse:\n\t\t\t$last_cache = '';\n\t\tendif;\n\t\twp_add_dashboard_widget('escalate_network_stats', 'Escalate Network Stats'.$last_cache, array($this,'dashboard_widget_display'));\t\n\t}", "public function getWidget();", "function dl_widget_init() {\n\n\tregister_sidebar( array(\n\t\t'name'\t\t\t=> 'Página de Contacto',\n\t\t'id'\t\t\t=> 'contact-widget',\n\t\t'before_widget'\t=> '',\n\t\t'after_widget'\t=> '',\n\t\t'before_title'\t=> '',\n\t\t'after_title'\t=> '',\n\t));\n\tregister_sidebar( array(\n\t\t'name'\t\t\t=> 'Barra Lateral',\n\t\t'id'\t\t\t=> 'sidebar-widget',\n\t\t'before_widget'\t=> '',\n\t\t'after_widget'\t=> '',\n\t\t'before_title'\t=> '',\n\t\t'after_title'\t=> '',\n\t));\n\tregister_sidebar( array(\n\t\t'name'\t\t\t=> 'Search Menu',\n\t\t'id'\t\t\t=> 'menu-widget',\n\t\t'before_widget'\t=> '',\n\t\t'after_widget'\t=> '',\n\t\t'before_title'\t=> '',\n\t\t'after_title'\t=> '',\n\t));\n\n}", "function widget($args, $instance) {\n\t\t$cache = wp_cache_get('widget_recent_posts_html5', 'widget');\n\n\t\tif ( !is_array($cache) )\n\t\t\t$cache = array();\n\n\t\tif ( ! isset( $args['widget_id'] ) )\n\t\t\t$args['widget_id'] = $this->id;\n\n\t\tif ( isset( $cache[ $args['widget_id'] ] ) ) {\n\t\t\techo $cache[ $args['widget_id'] ];\n\t\t\treturn;\n\t\t}\n\n\t\tob_start();\n\t\textract($args);\n\t\t\n\t\t// extract widget config options. \n // $title has a special filter applied because it is the title of the widget which WordPress recognizes.\n $widget_title = apply_filters('widget_title', empty($instance['widget_title']) ? '&nbsp;' : $instance['widget_title']);\n $recent_number = empty($instance['recent_number']) ? '5' : $instance['recent_number'];\n $include_author = (isset($instance['include_author']) && $instance['include_author']) ? true : false;\n $recent_title = empty($instance['recent_title']) ? '&nbsp;' : $instance['recent_title'];\n \n \n # Before the widget\n echo $before_widget;\n \n # The title\n if ( $widget_title ){\n echo $before_title . $widget_title . $after_title;\n } \n \n // Get posts \n $query = new WP_Query(array('posts_per_page' => $recent_number, 'no_found_rows' => true, 'post_status' => 'publish', 'ignore_sticky_posts' => true));\n \n \n // Gather post output\n $output = \"<ul class='recent-posts-html5'>\";\n while ($query->have_posts()){\n $query->the_post();\n \n $permalink = get_permalink();\n $post_title = esc_attr(get_the_title() ? get_the_title() : $recent_title);\n\n \n $output .= \"<li><a href='$permalink'>\";\n $output .= \"<cite>$post_title</cite>\";\n if( $include_author ){\n $author = get_the_author();\n $output .= \"<dt>$author</dt>\";\n } \n $output .= \"</a></li>\";\n \n }\n $output .= \"</ul>\";\n echo $output;\n \n \n # After the widget\n echo $after_widget; \n \n // Reset the global $the_post as this query will have stomped on it\n\t\twp_reset_postdata(); \n\t\t$cache[$args['widget_id']] = ob_get_flush();\n\t\twp_cache_set('widget_recent_posts', $cache, 'widget'); \n }", "function minimeta_widget_display($optionsetname='',$args) {\r\n\t\tglobal $ulopen,$stylegeneralul,$classgeneralul;\r\n\t\tif (is_array($args))\r\n\t\t\textract( $args, EXTR_SKIP );\r\n\t\t\t\r\n\t\t//Overwrite vars if Seidbar Widget\r\n\t\tif ($type==\"PHP\") {\r\n\t\t\t$title = $options['general']['php']['title'];\r\n\t\t\t$before_title = $options['general']['php']['before_title'];\r\n\t\t\t$after_title = $options['general']['php']['after_title'];\t\t\t\t\r\n\t\t\t$before_widget = $options['general']['php']['before_widget'];\r\n\t\t\t$after_widget = $options['general']['php']['after_widget'];\r\n\t\t}\r\n\r\n\t\t//load options\r\n\t\t$optionset = get_option('minimeta_widget_options');\r\n\t\tif (!isset($optionset[$optionsetname])) { //find out option exists and load\r\n\t\t\t//def options\r\n\t\t\t$options['general']['php']['title']=__('Meta');\r\n\t\t\t$options['general']['php']['before_title']='<h2>';\r\n\t\t\t$options['general']['php']['after_title']='</h2>';\r\n\t\t\t$options['general']['php']['before_widget']='<div class=\"MiniMetaWidgetSiedbar\">';\r\n\t\t\t$options['general']['php']['after_widget']='</div>';\r\n\t\t\t$options['in'][0]['part']='title';\r\n\t\t\t$options['in'][0]['args']['title']=$title;\r\n\t\t\t$options['in'][0]['args']['before_title']=$before_title;\r\n\t\t\t$options['in'][0]['args']['after_title']=$after_title;\r\n\t\t\t$options['in'][1]['part']='linkseiteadmin';\r\n\t\t\t$options['in'][2]['part']='linkloginlogout';\r\n\t\t\t$options['in'][3]['part']='linkrss';\r\n\t\t\t$options['in'][4]['part']='linkcommentrss';\r\n\t\t\t$options['in'][5]['part']='linkwordpress';\r\n\t\t\t$options['in'][6]['part']='actionwpmeta';\r\n\t\t\t$options['out'][0]['part']='title';\r\n\t\t\t$options['out'][1]['part']='linkregister';\r\n\t\t\t$options['out'][2]['part']='linkloginlogout';\r\n\t\t\t$options['out'][3]['part']='linkrss';\r\n\t\t\t$options['out'][4]['part']='linkcommentrss';\r\n\t\t\t$options['out'][5]['part']='linkwordpress';\r\n\t\t\t$options['out'][6]['part']='actionwpmeta';\r\n\t\t\t$options['general']['pagesnot']['notselected']=true;\r\n\t\t} else {\r\n\t\t\t$options=$optionset[$optionsetname];\r\n\t\t\tfor ($i=0;$i<=sizeof($options['in']);$i++) {\r\n\t\t\t\tif ($options['in'][$i]['part']=='title') {\r\n\t\t\t\t\t$options['in'][$i]['args']['title']=$title;\r\n\t\t\t\t\t$options['in'][$i]['args']['before_title']=$before_title;\r\n\t\t\t\t\t$options['in'][$i]['args']['after_title']=$after_title;\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor ($i=0;$i<=sizeof($options['out']);$i++) {\r\n\t\t\t\tif ($options['out'][$i]['part']=='title') {\r\n\t\t\t\t\t$options['out'][$i]['args']['title']=$title;\r\n\t\t\t\t\t$options['out'][$i]['args']['before_title']=$before_title;\r\n\t\t\t\t\t$options['out'][$i]['args']['after_title']=$after_title;\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Overwrite vars if Seidbar Widget\r\n\t\tif ($type==\"PHP\") {\r\n\t\t\tfor ($i=0;$i<=sizeof($options['in']);$i++) {\r\n\t\t\t\tif ($options['in'][$i]['part']=='title') {\r\n\t\t\t\t\t$options['in'][$i]['args']['title']=$options['general']['php']['title'];\r\n\t\t\t\t\t$options['in'][$i]['args']['before_title']=$options['general']['php']['before_title'];\r\n\t\t\t\t\t$options['in'][$i]['args']['after_title']=$options['general']['php']['after_title'];\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor ($i=0;$i<=sizeof($options['out']);$i++) {\r\n\t\t\t\tif ($options['out'][$i]['part']=='title') {\r\n\t\t\t\t\t$options['out'][$i]['args']['title']=$options['general']['php']['title'];\r\n\t\t\t\t\t$options['out'][$i]['args']['before_title']=$options['general']['php']['before_title'];\r\n\t\t\t\t\t$options['out'][$i]['args']['after_title']=$options['general']['php']['after_title'];\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$before_widget = $options['general']['php']['before_widget'];\r\n\t\t\t$after_widget = $options['general']['php']['after_widget'];\r\n\t\t}\r\n\t\t\r\n\t\t//Not display Widget\r\n\t\tif(is_user_logged_in()) {\r\n\t\t\tif (sizeof($options['in'])<1) return; //Disolay widget only if parts are active\r\n\t\t\t$diplay=false;\r\n\t\t\tif (is_home() and $options['general']['pagesnot']['in']['home']) $diplay=true;\r\n\t\t\tif (is_single() and $options['general']['pagesnot']['in']['singlepost']) $diplay=true;\r\n\t\t\tif (is_search() and $options['general']['pagesnot']['in']['search']) $diplay=true;\r\n\t\t\tif (is_404() and $options['general']['pagesnot']['in']['errorpages']) $diplay=true;\r\n\t\t\tif (is_page($options['general']['pagesnot']['in']['pages']) and !empty($options['general']['pagesnot']['in']['pages'])) $diplay=true;\r\n\t\t\tif ($diplay==false and !$options['general']['pagesnot']['notselected']) return;\r\n\t\t\tif ($diplay==true and $options['general']['pagesnot']['notselected']) return;\r\n\t\t} else {\r\n\t\t\tif (sizeof($options['out'])<1) return; //Disolay widget only if parts are active\r\n\t\t\t$diplay=false;\r\n\t\t\tif (is_home() and $options['general']['pagesnot']['out']['home']) $diplay=true;\r\n\t\t\tif (is_single() and $options['general']['pagesnot']['out']['singlepost']) $diplay=true;\r\n\t\t\tif (is_search() and $options['general']['pagesnot']['out']['search']) $diplay=true;\r\n\t\t\tif (is_404() and $options['general']['pagesnot']['out']['errorpages']) $diplay=true;\r\n\t\t\tif (is_page($options['general']['pagesnot']['out']['pages']) and !empty($options['general']['pagesnot']['out']['pages'])) $diplay=true;\r\n\t\t\tif ($diplay==false and !$options['general']['pagesnot']['notselected']) return;\r\n\t\t\tif ($diplay==true and $options['general']['pagesnot']['notselected']) return;\r\n\t\t}\r\n\t\t\r\n\t\t$parts=MiniMetaWidgetParts::parts();\r\n\t\t$stylegeneralul=$options['general']['php']['style']['ul'];\r\n\t\t$classgeneralul=$options['general']['php']['class']['ul'];\r\n\t\t\r\n\t\t//Shown part of Widget\r\n\t\techo $before_widget;\r\n\t\t\r\n\t\t$ulopen=false;\r\n\t\t\r\n if(is_user_logged_in()) { //if loggt in or out\r\n\t\t\t$inorout=\"in\";\r\n\t\t\t$fuctionplace=3;\r\n\t\t} else {\r\n\t\t\t$inorout=\"out\";\r\n\t\t\t$fuctionplace=4;\r\n\t\t}\r\n\t\t\r\n\t\tforeach ($options[$inorout] as $partsettings) {\r\n\t\t\tif ($parts[$partsettings['part']][$fuctionplace]) {\r\n\t\t\t\t$partsettings['args']['stylegeneralli']=$options['general']['php']['style']['li'];\r\n\t\t\t\t$partsettings['args']['classgeneralli']=$options['general']['php']['class']['li'];\r\n\t\t\t\tcall_user_func($parts[$partsettings['part']][1], $partsettings['args'] );\r\n\t\t\t}\t\t\t\t\r\n\t\t}\t\t\r\n\t\t\r\n\t\tif ($ulopen)\r\n\t\t\techo '</ul>';\r\n\t\t\t\r\n\t\techo $after_widget;\t\t\r\n\t}", "function register_widget($widget)\n {\n }", "public function widget($args, $instance)\r\n {\r\n $picture = esc_attr(get_option('profile_picture'));\r\n $firstName = esc_attr(get_option('first_name'));\r\n $lastName = esc_attr(get_option('last_name'));\r\n $full_name = $firstName . ' ' . $lastName;\r\n $description = esc_attr(get_option('description'));\r\n\r\n $facebook = esc_attr(get_option('face_book'));\r\n $twitter = esc_attr(get_option('twitter'));\r\n $instagram = esc_attr(get_option('insta_gram'));\r\n\r\n echo $args['before_widget'];\r\n ?>\r\n <!-- <div class=\"preview-wrapper\"> -->\r\n <!-- <p style=\"text-align: center;\"><i>Preview</i></p> -->\r\n <!-- <div class=\"sunset-sidebar-preview\"> -->\r\n <div class=\"text-center\">\r\n <div class=\"image-container\">\r\n <div id=\"profile-picture-prev\" class=\"profile-picture\" style=\"background-image: url('<?php echo $picture; ?>');\"></div>\r\n </div>\r\n <h1 class=\"sunset-username\"><?php echo $full_name; ?></h1>\r\n <h2 class=\"sunset-description\"><?php echo $description; ?></h2>\r\n <div class=\"icons-wrapper\">\r\n\r\n <?php\r\n\r\n wp_nav_menu(array(\r\n 'menu' => 'sidebar',\r\n 'container' =>false,\r\n 'theme_location' => 'sidebar',\r\n 'menu_class' => 'social-media'\r\n\r\n ))\r\n\r\n\r\n\r\n ?>\r\n\r\n\r\n\r\n <!-- <ul class=\"social-media\"> -->\r\n <?php\r\n // if(!empty($facebook)){ ?>\r\n <!-- <li><a target=\"_blank\" href=\"https://www.facebook.com/ --><?php //echo $facebook ;?><!-- \"><i class=\"fab fa-facebook\"></i></a></li> -->\r\n <?php //} ?>\r\n <!-- <li><a href=\"#\" ><i class=\"fab fa-twitter\"></i></a></li>\r\n <li><a href=\"#\" ><i class=\"fab fa-instagram\"></i></a></li>\r\n </ul>\r\n </div> -->\r\n </div>\r\n <!-- </div>\r\n </div> -->\r\n\r\n <?php\r\n echo $args['after_widget'];\r\n }", "public function dashboard_widget() {\n global $wpdb;\n\n // Get the date/time format that is saved in the options table\n $date_format = get_option('date_format');\n $time_format = get_option('time_format');\n\n $widgets = get_option('swpm_dashboard_widget_options');\n $total_items = isset($widgets['swpm_dashboard_recent_entries']) && isset($widgets['swpm_dashboard_recent_entries']['items']) ?\n absint($widgets['swpm_dashboard_recent_entries']['items']) : 5;\n\n $forms = $wpdb->get_var(\"SELECT COUNT(*) FROM {$this->form_table_name}\");\n\n if (!$forms) :\n echo sprintf(\n '<p>%1$s <a href=\"%2$s\">%3$s</a></p>', __('You currently do not have any forms.', 'swpm-form-builder'), esc_url(admin_url('admin.php?page=swpm-add-new')), __('Get started!', 'swpm-form-builder')\n );\n\n return;\n endif;\n\n $entries = $wpdb->get_results($wpdb->prepare(\"SELECT forms.form_title, entries.entries_id, entries.form_id, \"\n . \"entries.sender_name, entries.sender_email, entries.date_submitted FROM $this->form_table_name \"\n . \"AS forms INNER JOIN $this->entries_table_name AS entries ON entries.form_id = forms.form_id ORDER BY \"\n . \"entries.date_submitted DESC LIMIT %d\", $total_items));\n\n if (!$entries) :\n echo sprintf('<p>%1$s</p>', __('You currently do not have any entries.', 'swpm-form-builder'));\n else :\n\n $content = '';\n\n foreach ($entries as $entry) :\n\n $content .= sprintf(\n '<li><a href=\"%1$s\">%4$s</a> via <a href=\"%2$s\">%5$s</a> <span class=\"rss-date\">%6$s</span><cite>%3$s</cite></li>', esc_url(add_query_arg(array('action' => 'view', 'entry' => absint($entry->entries_id)), admin_url('admin.php?page=swpm-entries'))), esc_url(add_query_arg('form-filter', absint($entry->form_id), admin_url('admin.php?page=swpm-entries'))), esc_html($entry->sender_name), esc_html($entry->sender_email), esc_html($entry->form_title), date(\"$date_format $time_format\", strtotime($entry->date_submitted))\n );\n\n endforeach;\n\n echo \"<div class='rss-widget'><ul>$content</ul></div>\";\n\n endif;\n }", "public function run()\n {\n $categories = \\App\\Models\\Category::with('categories')->where('id_parent', 0)->where('status', 1)->orderBy('sort')->get();\n\n return view(\"widgets.catalog_widget\", [\n 'config' => $this->config, 'categories' => $categories\n ]);\n }", "function acfwidget($name, $widgetid) {\n if (get_field($name, 'widget_'.$widgetid)) {\n $afcfield = get_field($name, 'widget_'.$widgetid);\n //print_r($afcfield);\n\n if ( !empty( $afcfield ) ) {\n foreach ($afcfield as $field) {\n $layout = $field['acf_fc_layout'];\n\n try {\n Timber::render($layout . '.twig', $field);\n } catch (Exception $e) {\n echo 'Could not find a twig file for layout type: ' . $layout;\n }\n }\n }\n }\n return;\n}", "function edit_widget($widget, $return, $instance)\n {\n }", "public function eventRmcommonDashboardRightWidgets(){\n global $xtAssembler, $xtFunctions;\n\n if (!isset($GLOBALS['xtAssembler']))\n $xtAssembler = new XtAssembler();\n\n if ( !$xtAssembler->isSupported() )\n return;\n\n $theme = $xtAssembler->theme();\n\n RMTemplate::get()->add_style('rmc-dashboard.css', 'xthemes');\n\n ?>\n <div class=\"cu-box\">\n <div class=\"box-header\">\n <span class=\"fa fa-caret-up box-handler\"></span>\n <h3><?php _e('Appearance','rmcommon'); ?></h3>\n </div>\n <div class=\"box-content collapsable\" id=\"xthemes-options\">\n <img src=\"<?php echo XOOPS_THEME_URL; ?>/<?php echo $theme->getInfo('dir'); ?>/<?php echo $theme->getInfo('screenshot'); ?>\" class=\"img-thumbnail\">\n <ul class=\"nav nav-pills nav-justified nav-options\">\n <li>\n <a href=\"<?php echo XOOPS_URL; ?>/modules/xthemes/themes.php\" title=\"<?php _e('Manage Themes', 'xthemes'); ?>\" rel=\"tooltip\">\n <span class=\"fa fa-th-large\"></span>\n </a>\n </li>\n <?php if(method_exists($theme, 'controlPanel')): ?>\n <li>\n <a rel=\"tooltip\" href=\"<?php echo XOOPS_URL; ?>/modules/xthemes/theme.php\" title=\"<?php echo sprintf(__('%s Control Panel', 'xthemes'), $theme->getInfo('name')); ?>\">\n <span class=\"fa fa-dashboard\"></span>\n </a>\n </li>\n <?php endif; ?>\n <?php if($xtAssembler->rootMenus()): ?>\n <li>\n <a href=\"<?php echo XOOPS_URL; ?>/modules/xthemes/navigation.php\" title=\"<?php _e('Menu Maker', 'xthemes'); ?>\" rel=\"tooltip\">\n <span class=\"fa fa-bars\"></span>\n </a>\n </li>\n <?php endif; ?>\n <?php if($theme->options()): ?>\n <li>\n <a href=\"<?php echo XOOPS_URL; ?>/modules/xthemes/settings.php\" title=\"<?php _E('Theme Settings', 'xthemes'); ?>\" rel=\"tooltip\">\n <span class=\"fa fa-wrench\"></span>\n </a>\n </li>\n <?php endif; ?>\n </ul>\n <small><?php echo $theme->getInfo('description'); ?></small>\n <?php if( $theme->getInfo('social') ): ?>\n <hr>\n <ul class=\"nav nav-pills xthemes-social\">\n <?php foreach( $theme->getInfo('social') as $type => $link ): ?>\n <li>\n <a href=\"<?php echo $link; ?>\" target=\"_blank\">\n <?php echo $xtFunctions->social_icon( $type ); ?>\n </a>\n </li>\n <?php endforeach; ?>\n </ul>\n <?php endif; ?>\n </div>\n </div>\n <?php\n }", "protected function retrieve_widgets()\n {\n }", "protected function retrieve_widgets()\n {\n }", "public static function widget() {\n //require_once( 'widget.php' );\n require_once get_stylesheet_directory() . '/inc/templates/statistics_widget.php';\n }", "public function widgets()\n {\n return view('pages.widgets');\n }", "public function get_widget_control($args)\n {\n }", "public function renderWidget($widgetName)\r\n {\r\n echo $this->getWidget($widgetName);\r\n }", "public static function widget($key) {\n\t\t\tif (isset(self::$widgets[$key])) {\n\t\t\t\treturn self::$widgets[$key];\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}", "public function html()\n {\n $random_quote = $this->randomQuote();\n $cp_path = CP_ROUTE;\n return $this->view('widget', compact('random_quote','cp_path'))->render();\n }", "public function dashboard_widget() {\n\t\tglobal $wpdb;\n\n\t\t// Get the date/time format that is saved in the options table\n\t\t$date_format = get_option( 'date_format' );\n\t\t$time_format = get_option( 'time_format' );\n\n\t\t$widgets = get_option( 'vfb_dashboard_widget_options' );\n\t\t$total_items = isset( $widgets['vfb_dashboard_recent_entries'] ) && isset( $widgets['vfb_dashboard_recent_entries']['items'] ) ? absint( $widgets['vfb_dashboard_recent_entries']['items'] ) : 5;\n\n\t\t$forms = $wpdb->get_var( \"SELECT COUNT(*) FROM {$this->form_table_name}\" );\n\n\t\tif ( !$forms ) :\n\t\t\techo sprintf(\n\t\t\t\t'<p>%1$s <a href=\"%2$s\">%3$s</a></p>',\n\t\t\t\t__( 'You currently do not have any forms.', 'visual-form-builder-pro' ),\n\t\t\t\tesc_url( admin_url( 'admin.php?page=vfb-add-new' ) ),\n\t\t\t\t__( 'Get started!', 'visual-form-builder-pro' )\n\t\t\t);\n\n\t\t\treturn;\n\t\tendif;\n\n\t\t$entries = $wpdb->get_results( $wpdb->prepare( \"SELECT forms.form_title, entries.entries_id, entries.form_id, entries.sender_name, entries.sender_email, entries.date_submitted FROM $this->form_table_name AS forms INNER JOIN $this->entries_table_name AS entries ON entries.form_id = forms.form_id ORDER BY entries.date_submitted DESC LIMIT %d\", $total_items ) );\n\n\t\tif ( current_user_can( 'vfb_edit_entries' ) )\n\t\t\t$action = 'edit';\n\t\telseif ( current_user_can( 'vfb_view_entries' ) )\n\t\t\t$action = 'view';\n\n\t\tif ( !$entries ) :\n\t\t\techo sprintf( '<p>%1$s</p>', __( 'You currently do not have any entries.', 'visual-form-builder-pro' ) );\n\t\telse :\n\n\t\t\t$content = '';\n\n\t\t\tforeach ( $entries as $entry ) :\n\n\t\t\t\t$content .= sprintf(\n\t\t\t\t\t'<li><a href=\"%1$s\">%4$s</a> via <a href=\"%2$s\">%5$s</a> <span class=\"rss-date\">%6$s</span><cite>%3$s</cite></li>',\n\t\t\t\t\tesc_url( add_query_arg( array( 'action' => $action, 'entry' => absint( $entry->entries_id ) ), admin_url( 'admin.php?page=vfb-entries' ) ) ),\n\t\t\t\t\tesc_url( add_query_arg( 'form-filter', absint( $entry->form_id ), admin_url( 'admin.php?page=vfb-entries' ) ) ),\n\t\t\t\t\tesc_html( $entry->sender_name ),\n\t\t\t\t\tesc_html( $entry->sender_email ),\n\t\t\t\t\tesc_html( $entry->form_title ),\n\t\t\t\t\tdate( \"$date_format $time_format\", strtotime( $entry->date_submitted ) )\n\t\t\t\t);\n\n\t\t\tendforeach;\n\n\t\t\techo \"<div class='rss-widget'><ul>$content</ul></div>\";\n\n\t\tendif;\n\t}", "public function widget( $args, $instance ) {\r\n\t$title = apply_filters( 'widget_title', $instance['title'] );\r\n\t// before and after widget arguments are defined by themes\r\n\techo $args['before_widget']; ?>\r\n\t\r\n\t\t<p><img src=\"/app/uploads/2016/10/logo-alt.png\"/></p>\r\n\t\t<p><img src=\"/app/uploads/2016/10/oaklins-blue.png\"/></p>\r\n\t\t<ul>\r\n\t\t\t<li class=\"address\">\r\n\t\t\t\tMain Office 475 Park Avenue South, 22nd Floor<br />\r\n\t\t\t\tNew York, NY 10016\r\n\t\t\t</li>\r\n\t\t\t<li class=\"phone\">212.686.9700</li>\t\r\n\t\t\t<li class=\"mail\"><a href=\"/contact\">Email Us</a></li>\r\n\t\t</ul>\t\r\n\t\t<?php gravity_form( 3, true, false, false, '', false ); ?>\r\n\t<?php echo $args['after_widget'];\r\n}", "public function widget( $args, $instance ) {\r\n \r\n $obj = new BlossomThemes_Toolkit_Functions();\r\n $title = ! empty( $instance['title'] ) ? $instance['title'] : '' ; \r\n $content = ! empty( $instance['content'] ) ? $instance['content'] : '';\r\n $icon = ! empty( $instance['icon'] ) ? $instance['icon'] : '';\r\n $image = ! empty( $instance['image'] ) ? $instance['image'] : '';\r\n $link = ! empty( $instance['link'] ) ? $instance['link'] : '';\r\n $more_text = ! empty( $instance['more_text'] ) ? $instance['more_text'] : '';\r\n $target = 'target=\"_blank\"';\r\n if( isset($instance['target']) && $instance['target']!='' )\r\n {\r\n $target = 'target=\"_self\"';\r\n }\r\n\r\n if( $image ){\r\n /** Added to work for demo content compatible */\r\n $attachment_id = $image;\r\n if ( !filter_var( $image, FILTER_VALIDATE_URL ) === false ) {\r\n $attachment_id = $obj->bttk_get_attachment_id( $image );\r\n }\r\n $icon_img_size = apply_filters( 'bttk_icon_img_size', 'thumbnail' );\r\n }\r\n \r\n echo $args['before_widget'];\r\n ob_start(); \r\n ?>\r\n \r\n <div class=\"rtc-itw-holder\">\r\n <div class=\"rtc-itw-inner-holder\">\r\n <div class=\"text-holder\">\r\n <?php \r\n if( $title ) echo $args['before_title'] . apply_filters( 'widget_title', $title, $instance, $this->id_base ) . $args['after_title']; \r\n if( $content ) echo '<div class=\"content\">'.wpautop( wp_kses_post( $content ) ).'</div>';\r\n if( isset( $link ) && $link!='' && isset( $more_text ) && $more_text!='' ){\r\n echo '<a '.$target.' class=\"btn-readmore\" href=\"'.esc_url($link).'\">'.esc_attr($more_text).'</a>';\r\n }\r\n ?> \r\n </div>\r\n <?php if( $image ){ ?>\r\n <div class=\"icon-holder\">\r\n <?php echo wp_get_attachment_image( $attachment_id, $icon_img_size, false, \r\n array( 'alt' => esc_attr( $title )));?>\r\n </div>\r\n <?php }elseif( $icon ){ ?>\r\n <div class=\"icon-holder\">\r\n <span class=\"<?php echo esc_attr( $icon ); ?>\"></span>\r\n </div>\r\n <?php }?>\r\n </div>\r\n </div>\r\n <?php \r\n $html = ob_get_clean();\r\n echo apply_filters( 'blossom_icontext_widget_filter', $html, $args, $instance ); \r\n echo $args['after_widget'];\r\n }", "function widget_init() {\n if ( function_exists('register_sidebar') )\n \n register_sidebar(\n array(\n 'name' => 'Footer',\n 'before_widget' => '<div class = \"footer\">',\n 'after_widget' => '</div>',\n 'before_title' => '',\n 'after_title' => '',\n ));\n\n register_sidebar(\n array(\n 'name' => 'Event Navigation',\n 'before_widget' => '<div class=\"custom-widget top-round card slight-shadow card_container flex-column-reverse\">',\n 'after_widget' => '</div>',\n 'before_title' => '<div class=\"card_title\">',\n 'after_title' => '</div>',\n ));\n\n register_sidebar(\n array(\n 'name' => 'Frontpage News',\n 'before_widget' => '<div class=\"custom-widget card top-round slight-shadow card_container flex-column-reverse\">',\n 'after_widget' => '</div>',\n 'before_title' => '<div class=\"card_title\">',\n 'after_title' => '</div>',\n ));\n\n }", "public static function init() {\n //Register widget settings...\n self::update_dashboard_widget_options(\n self::wid, //The widget id\n array( //Associative array of options & default values\n 'username' => '',\n\t\t\t\t'apikey' => '',\n\t\t\t\t'project_id' => '',\n ),\n true //Add only (will not update existing options)\n );\n\n //Register the widget...\n wp_add_dashboard_widget(\n self::wid, //A unique slug/ID\n __( 'Rankalyst Statistik', 'affiliatetheme-backend' ),//Visible name for the widget\n array('AT_Rankalyst_Widget','widget'), //Callback for the main widget content\n array('AT_Rankalyst_Widget','config') //Optional callback for widget configuration content\n );\n }", "function widget_init() {\r\n if ( !function_exists('wp_register_sidebar_widget') || !function_exists('register_widget_control') ) return;\r\n function widget($args) {\r\n extract($args);\r\n $wpca_settings = get_option('wpcareers');\r\n echo $before_widget;\r\n echo $before_title . $wpca_settings['widget_title'] . $after_title;\r\n\r\n $fieldsPre=\"wpc_\";\r\n $before_tag=stripslashes(get_option($fieldsPre.'before_Tag'));\r\n $after_tag=stripslashes(get_option($fieldsPre.'after_Tag'));\r\n echo '<p><ul>' . widget_display($wpca_settings['widget_format']) . '</ul></p>'; \r\n }\r\n\r\n function widget_control() {\r\n $wpca_settings = $newoptions = get_option('wpcareers');\r\n if ( $_POST[\"wpCareers-submit\"] ) {\r\n $newoptions['widget_title'] = strip_tags(stripslashes($_POST['widget_title']));\r\n $newoptions['widget_format'] = $_POST['widget_format'];\r\n if ( empty($newoptions['widget_title']) ) $newoptions['widget_title'] = 'Last Classifieds Ads';\r\n }\r\n if ( $wpca_settings != $newoptions ) {\r\n $wpca_settings = $newoptions;\r\n update_option('wpcareers', $wpca_settings);\r\n }\r\n $title = htmlspecialchars($wpca_settings['widget_title'], ENT_QUOTES);\r\n if ( empty($newoptions['widget_title']) ) $newoptions['widget_title'] = 'Last Careers Posts';\r\n if ( empty($newoptions['widget_format']) ) $newoptions['widget_format'] = 'y';\r\n ?>\r\n <label for=\"wpCareers-widget_title\"><?php _e('Title:'); ?><input style=\"width: 200px;\" id=\"widget_title\" name=\"widget_title\" type=\"text\" value=\"<?php echo htmlspecialchars($wpca_settings['widget_title']); ?>\" /></label></p>\r\n <br />\r\n <label for=\"wpCareers-widget_format\">\r\n <input class=\"checkbox\" id=\"widget_format\" name=\"widget_format\" type=\"checkbox\" value=\"y\"<?php echo ($wpca_settings['widget_format']=='y')?\" checked\":\"\";?>>Small Format Output</label><br />\r\n <input type=\"hidden\" id=\"wpCareers-submit\" name=\"wpCareers-submit\" value=\"1\" />\r\n <?php\r\n }\r\n \r\n function widget_display() {\r\n $wpca_settings = get_option('wpcareers');\r\n //$out = wpcaLastPosts($wpca_settings['widget_format']);\r\n return $out;\r\n }\r\n \r\n wp_register_sidebar_widget('wpCareers', 'widget', null, 'wpCareers');\r\n register_widget_control('wpCareers', 'widget_control');\r\n }", "public function renderWidget()\n {\n $id = $this->attr['id'];\n $name = $this->attr['name'];\n $contents = '';\n $values = $this->getValue();\n foreach ( $this->params['choices'] as $key => $label )\n {\n $options = $this->params;\n $options['attr'] = $this->attr;\n $options['attr']['id'] = $id . \"_$key\";\n $options['attr']['name'] = $name . \"[$key]\";\n $options['attr']['value'] = $key;\n if ( isset( $values[$key] ) && $values[$key] )\n {\n $options['attr']['checked'] = 'checked';\n }\n $widget = new InputCheckboxWidget( $options );\n $contents .= HtmlToolkit::buildTag( 'label', array(), false, $widget->render() . ' ' . $label );\n }\n\n return $contents;\n }", "public static function a_widget_init() {\n\t\t\treturn register_widget(__CLASS__);\n\t\t}", "public function setInit()\n {\n $container = strtoupper($this->getCurrentWidget()->getPlugin());\n $NameAction = strtolower($this->getCurrentWidget()->getAction());\n $method = \":\"; \n $xmlConfig = $this->getCurrentWidget()->getConfigXml(); \n // if the configXml field of the widget isn't configured correctly.\n try {\n $xmlConfig = new \\Zend_Config_Xml($xmlConfig);\n } catch (\\Exception $e) {\n return \" \\n\";\n } \n // we add all css files.\n if ( $xmlConfig->widgets->get('css') ){\n \tif (is_object($xmlConfig->widgets->css)) {\n \t\t$all_css = $xmlConfig->widgets->css->toArray();\n \t\t$this->script['init'][$container.$NameAction.$method.'css'] = \"{% initWidget('css:\".json_encode($all_css, JSON_UNESCAPED_UNICODE).\"') %}\";\n \t} elseif (is_string($xmlConfig->widgets->css)) {\n \t\t$this->script['init'][$container.$NameAction.$method.'css'] = \"{% initWidget('css:\".json_encode(array($xmlConfig->widgets->css), JSON_UNESCAPED_UNICODE).\"') %}\";\n \t}\n }\n // we add all js files.\n if ( $xmlConfig->widgets->get('js') ){\n \tif (is_object($xmlConfig->widgets->js)) {\n \t\t$all_js = $xmlConfig->widgets->js->toArray();\n \t\t$this->script['init'][$container.$NameAction.$method.'js'] = \"{% initWidget('js:\".json_encode($all_js, JSON_UNESCAPED_UNICODE).\"') %}\";\n \t} elseif (is_string($xmlConfig->widgets->js)) {\n \t\t$this->script['init'][$container.$NameAction.$method.'js'] = \"{% initWidget('js:\".json_encode(array($xmlConfig->widgets->js), JSON_UNESCAPED_UNICODE).\"') %}\";\n \t}\n }\n // we apply init methods of the applyed service.\n if ( $xmlConfig->widgets->get('gedmo') && $xmlConfig->widgets->gedmo->get('controller') ) {\n $controller = $xmlConfig->widgets->gedmo->controller;\n $values = explode(':', $controller);\n $entity = strtolower($values[1]);\n $method .= strtolower($values[2]);\n $this->script['init'][$container.$NameAction.$method] = \"{% initWidget('\". $container . \":\" . $NameAction . $method .\"') %}\";\n }elseif ( $xmlConfig->widgets->get('content') && $xmlConfig->widgets->content->get('controller') ) {\n $controller = $xmlConfig->widgets->content->controller;\n str_replace(':', ':', $controller, $count);\n if ($count == 1) {\n $this->script['init'][$container.$NameAction.$method] = \"{% initWidget('\". $container . \":\" . $NameAction . \":\" . $controller .\"') %}\";\n }\n }elseif ( $xmlConfig->widgets->get('search') && $xmlConfig->widgets->search->get('controller') ) {\n $controller = $xmlConfig->widgets->search->controller;\n str_replace(':', ':', $controller, $count);\n if ($count == 1) {\n $this->script['init'][$container.$NameAction.$method] = \"{% initWidget('\". $container . \":\" . $NameAction . \":\" . $controller .\"') %}\";\n }\n } else {\n $this->script['init'][$container.$NameAction.$method] = \"{% initWidget('\". $container . \":\" . $NameAction . $method .\"') %}\";\n }\n }", "protected function get_widgets()\n {\n }", "public function widget( $args, $instance ) {\n\t$title = apply_filters( 'widget_title', $instance['title'] );\n\t// before and after widget arguments are defined by themes\n\t\techo $args['before_widget'];\n\t\t\tif ( ! empty( $title ) )\n\t\t\t\techo $args['before_title'] . $title . $args['after_title'];\n\t// This is where you run the code and display the output\n\t\t\t\techo '<div class=\"schemabiz\" itemscope itemtype=\"https://schema.org/LocalBusiness\">';\n//Business image \nif (get_theme_mod('diz-nav-logo')) {\n echo '<figure itemprop=\"image\" itemscope itemtype=\"http://schema.org/ImageObject\"><img src=\"';\n echo get_theme_mod('diz-nav-logo');\n echo '\" alt=\"';\n if (get_theme_mod( 'ds_busname_setting', '' )) {\n echo get_theme_mod( 'ds_busname_setting', '' );\n } else { \n echo wp_title();\n }\n echo '\" itemprop=\"url\"/></figure>';\n }\n//Business name\nif (get_theme_mod('ds_busname_setting')) {\n echo '<h3 class=\"s-name\" itemprop=\"name\">';\n echo get_theme_mod( 'ds_busname_setting', '' );\n echo '</h3>';\n} else {\n echo '<h3 class=\"s-name\" itemprop=\"name\">';\n echo wp_title();\n echo '</h3>';\n}\n echo '<ul>';\n//Business address\nif (get_theme_mod('ds_busadd_setting')) {\n echo '<li itemprop=\"address\"><i class=\"fas fa-map-marker-alt prelo\"></i> <address>';\n if (get_theme_mod('ds_busadd_map_setting')) {\n echo '<a href=\"';\n echo get_theme_mod( 'ds_busadd_map_setting', '' );\n echo '\">';\n echo get_theme_mod( 'ds_busadd_setting', '' );\n echo '</a>';\n } else {\n echo get_theme_mod( 'ds_busadd_setting', '' );\n }\n echo '</address></li>';\n}\n//Hours\nif (get_theme_mod('ds_bushours_setting')) {\n echo '<li itemprop=\"openingHours\" datetime=\"';\n echo get_theme_mod( 'ds_bushours_setting', '' );\n echo '\"><i class=\"fas fa-clock prelo\"></i>';\n echo get_theme_mod( 'ds_bushours_setting', '' );\n echo '</li>';\n}\n//Phone\nif (get_theme_mod('ds_busphone_setting')) {\n echo '<li itemprop=\"telephone\"><i class=\"fas fa-mobile-alt prelo\"></i> <a href=\"tel:';\n echo get_theme_mod( 'ds_busphone_setting', '' );\n echo '\">';\n echo get_theme_mod( 'ds_busphone_setting', '' );\n echo '</a></li>';\n}\n//FAX\nif (get_theme_mod('ds_busfax_setting')) {\n echo '<li itemprop=\"faxNumber\"><i class=\"fas fa-fax prelo\"></i> ';\n echo get_theme_mod( 'ds_busfax_setting', '' );\n echo '</li>';\n}\n//Email\nif (get_theme_mod('ds_busemail_setting')) {\n echo '<li itemprop=\"email\"><i class=\"far fa-envelope-open prelo\"></i> <a href=\"mailto:';\n echo get_theme_mod( 'ds_busemail_setting', '' );\n echo '\">Email ';\n if (get_theme_mod('ds_busname_setting')) {\n echo get_theme_mod( 'ds_busname_setting', '' );\n } else {\n echo wp_title();\n }\n echo '</a></li>';\n}\n//Social networks\n echo '<li class=\"sch-social\"><h3>Connect On Social Media</h3>';\n echo do_shortcode(\"[dizzy-social]\");\n echo '</li></ul></div>';\n\techo $args['after_widget'];\n}", "function widget($args, $instance) \r\n\t{\r\n extract( $args ); // Don't worry about this\r\n // Get our variables\r\n $title = apply_filters( 'widget_title', $instance['title'] );\r\n\t\t$icon_size = $instance['icon_size'];\r\n\t\t$icon_theme = $instance['icon_theme'];\r\n\t\t$icon_align = $instance['icon_align'];\r\n // This is defined when you register a sidebar\r\n echo $before_widget;\r\n // If our title isn't empty then show it\r\n if ( $title ) \r\n\t\t{\r\n echo $before_title . $title . $after_title;\r\n }\r\n\t\techo \"<style>\\n\";\r\n\t\techo \".\" . $this->get_field_id('widget') . \" img \\n{\\n\";\r\n\t\techo \"width:\" . $icon_size . \"px; \\n } \\n\";\r\n\t\techo \"</style>\";\r\n\t\techo \"<div id='acurax_si_widget_simple' class='acx_smw_float_fix \" . $this->get_field_id('widget') . \"'\";\r\n\t\tif($icon_align != \"\") { echo \" style='text-align:\" . $icon_align . \";'>\"; } else { echo \" style='text-align:center;'>\"; }\r\n\t\tacurax_si_widget_simple($icon_theme);\r\n\t\techo \"</div>\";\r\n // This is defined when you register a sidebar\r\n echo $after_widget;\r\n }", "function smarty_function_guiwidget($params, &$smarty) {\n\n\tif (isset($params['guiwidget'])) {\n\t\t$control = $params['guiwidget'];\n\t} else {\n\t\t$type = $params['type'];\n\t\t$name = (isset($params['name'])) ? $params['name'] : null;\n\t\t$control = GuiWidget::get($type, $name);\n\t}\n\t\n\t$echo = (isset($params['echo'])) ? $params['echo'] : false;\n\t\n\tforeach ($params as $key => $value) {\n\t\tif ($key[0] != '_') {\n\t\t\t$control->setParam($key, $value);\n\t\t} else {\n\t\t\t$keys = explode('_', $key);\n\t\t\tarray_shift($keys);\n\t\t\t$tmpkeys = $keys;\n\t\t\t$tmpval = $value;\n\t\t\t\n\t\t\twhile (!empty($tmpkeys)) {\n\t\t\t\t$tmpval = array(array_pop($tmpkeys) => $tmpval);\n\t\t\t}\n\n\t\t\tif (isset($specialParams)) {\n\t\t\t\t$specialParams = array_merge_recursive($specialParams, $tmpval);\n\t\t\t} else {\n\t\t\t\t$specialParams = $tmpval;\n\t\t\t}\n\t\t}\n\t}\n\t\n\tif (isset($specialParams)) {\n\t\t$control->setParams($specialParams);\n\t}\n\n\treturn $control->renderWidget($echo);\n}", "function SetWidget() {\n\t\t\n\t\t\tif ( !function_exists('register_sidebar_widget') ) \n\t\t\treturn;\n\t\t\t\n\t\t\t// This registers our widget so it appears with the other available\n\t\t\t// widgets and can be dragged and dropped into any active sidebars.\n\t\t\tregister_sidebar_widget(array('3B Meteo', 'widgets'), array(\"TreBiMeteo\",'WidgetMeteo'));\n\t\t\n\t\t\t// This registers our optional widget control form.\n\t\t\tregister_widget_control(array('3B Meteo', 'widgets'), array(\"TreBiMeteo\",'WidgetMeteoControl'), 450, 325);\n\t\t}", "function widget($args, $instance) {\n extract($args, EXTR_SKIP);\n \n $itemsNumber = $instance['itemsQuantity'];\n $catId = $instance['catId'];\n \n $title = apply_filters('widget_title', $instance['title']);\n \n $widget_id = $args['widget_id'];\n \n do_action( 'TB_RenderWidget',$before_widget,$after_widget,$title,$itemsNumber,$catId,$before_title,\n $after_title,$instance['displayMode'],$instance['disableCommentCount'],$instance['barsLocation']);\n \n }", "public function actionIndex()\n {\n $searchModel = new WidgetMenuSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function render() {\n\t\t//$masthead->loggedIn = $this->loggedIn;\n\t\t//$masthead->username = $this->username;\n\t\t////$masthead->google = $this->google->render();\n\t\t//return $masthead->render('Template_Widget_Masthead.php');\n\t\t\n\t\t$this->isLoggedIn = $this->_session->login_check($this->mysqli);\n\t\t\n\t\tif(!$this->isLoggedIn)\n\t\t{\n\t\t\t//throw new Exception_Permission(\"Not logged in.\");\n\t\t\treturn \"widget requires you be logged in\";\n\t\t}else{\n\t\t\t$this->permissions = $this->_session->getPermissions($this->mysqli);\n\t\t\t$isAdmin = in_array(\"admin\",$this->permissions); // need to be more strict? bool for that\n\t\t\tif(!$isAdmin)\n\t\t\t{\n\t\t\t\t//throw new Exception_Permission(\"Not authorized.\");\n\t\t\t\treturn \"not authorized for this widget\";\n\t\t\t}else{\n\t\t\t\n\t\t\t\tif ($result = $this->mysqli->query(\"SELECT m.id, m.username, m.email FROM members m\")) {\n\t\t\t\t\t$rows = array();\n\t\t\t\t\t\n\t\t\t\t\twhile($row = $result->fetch_row())\n\t\t\t\t\t{\n\t\t\t\t\t\t$rows[]=$row;\n\t\t\t\t\t}\n\t\t\t\t\t$result->close();\n\t\t\t\t\t\n\t\t\t\t\t$template = new Template();\n\t\t\t\t\t$template->userdata = $rows;\n\t\t\t\t\treturn $template->render('Template_Widget_AdminUsersPanel.php');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "function wpb_load_widget() {\n register_widget( 'lrq_widget' );\n }", "static function register_widget() {\n\t\t\t$classname = get_called_class();\n\t\t\tregister_widget( $classname );\n\t\t}", "function widget($args, $instance) {\n\n extract($args, EXTR_SKIP);\n\n //Retrieve Options\n if( isset($instance['title']) ){\n $title = $instance['title'];\n } else {\n $title = '';\n }\n\n if( isset($instance['email']) ){\n $email = $instance['email'];\n } else {\n $email = '';\n }\n\n if( isset($instance['size']) ){\n $size = $instance['size'];\n } else {\n $size = '';\n }\n\n if( isset($instance['description']) ){\n $description = $instance['description'];\n } else {\n $description = '';\n }\n\n if( isset($instance['link-text']) ){\n $link_text = $instance['link-text'];\n } else {\n $link_text = '';\n }\n\n if( isset($instance['link-url']) ){\n $link_url= $instance['link-url'];\n } else {\n $link_url = '';\n }\n\n echo $before_widget;\n\n if($title) {\n echo $before_title . $title . $after_title;\n }\n\n echo '<div class=\"themeblvd-author\">';\n\n if($email){\n echo '<div class=\"frame alignleft\">';\n echo get_avatar( $email, $size );\n echo '</div>';\n }\n\n if($description){\n echo '<p>'.$description.'<p>';\n }\n\n if(isset($link_text)) {\n echo '<a href=\"'.$link_url.'\" title=\"'.$link_text.'\">'.$link_text.'</a>';\n }\n\n echo '</div><!-- .themeblvd-author (end) -->';\n\n echo $after_widget;\n\n }", "function widget( $one, $two ) {\n ?>\n <?php echo $one['before_widget'];?>\n <?php echo $one['before_title'];?><?php echo $two['title'];?><?php echo $one['after_title']; ?>\n\n <ul class=\"list-unstyled footer-contact-list\">\n <li>\n <i class=\"fa fa-map-marker fa-lg\"></i>\n <p><a href=\"https://www.google.com\"><?php echo $two['location'];?></a></p>\n </li>\n <li>\n <i class=\"fa fa-phone fa-lg\"></i>\n <p><a href=\"tel:+1-202-555-0100\"><?php echo $two['contactno'];?></a></p>\n </li>\n <li>\n <i class=\"fa fa-envelope-o fa-lg\"></i>\n <p><a href=\"<?php bloginfo('admin_email'); ?>\"><?php echo $two['email'];?></a></p>\n </li>\n </ul> \n <?php echo $one['after_widget'];?> \n<?php\n }", "public function widget($args, $instance)\n {\n $title = apply_filters('widget_title', $instance['title']);\n// before and after widget arguments are defined by themes\n echo $args['before_widget'];\n if (!empty($title))\n echo $args['before_title'] . $title . $args['after_title'];\n?>\n <style>\n h4.ad-header-box{\n font-size: 14px;\n line-height: 30px;\n font-family: \"Helvetica\";\n color: #000000;\n border-bottom: none !important;\n text-align: center;\n font-weight: bold !important;\n }\n .widget-ad{\n text-align: center;\n }\n .clear{\n clear: both;\n }\n .title-box{\n line-height: 30px;\n }\n .title-box a{\n font-size: 17px;\n font-weight: bold;\n }\n .price{\n line-height: 20px;\n font-size: 15px;\n color: #e54d45 !important;\n }\n </style>\n <?php if(is_home()){ ?>\n <h4 class=\"ad-header-box\"><?php _e('Smart Box Gia Đình', 'mvp-text'); ?></h4>\n <div class=\"widget-ad\">\n <?php\n $f_api = \"https://nhacon.com/api/boxTemplate?nested=true&filter=[{'property':'root_category_id','value':8}]&ctime=1412737314465\";\n $family_box_data = $this->get_data_from_api($f_api);\n $f_box = $this->array_random($family_box_data->data->bundleTemplate);\n ?>\n <div class=\"image-box\">\n <img src=\"<?php echo $f_box->images[0]->image_url ?>\" />\n </div>\n <div class=\"clear\"></div>\n <div class=\"title-box\">\n <a target=\"_blank\" href=\"https://nhacon.com/boxdetail.html?id=<?php echo $f_box->id; ?>\">\n <?php echo $f_box->name; ?>\n </a>\n </div>\n <div class=\"clear\"></div>\n <div class=\"price\"><?php echo number_format($f_box->price,0,'.','.'); ?> VNĐ </div>\n </div><!--widget-ad-->\n <div class=\"clear\"></div>\n <h4 class=\"ad-header-box\"><?php _e('Smart Box Em Bé', 'mvp-text'); ?></h4>\n <div class=\"widget-ad\">\n <?php\n $b_api = \"https://nhacon.com/api/boxTemplate?nested=true&filter=[{'property':'root_category_id','value':1}]&ctime=1412737314465\";\n $baby_box_data = $this->get_data_from_api($b_api);\n $b_box = $this->array_random($baby_box_data->data->bundleTemplate);\n ?>\n <div class=\"image-box\">\n <img src=\"<?php echo $b_box->images[0]->image_url ?>\" />\n </div>\n <div class=\"clear\"></div>\n <div class=\"title-box\">\n <a target=\"_blank\" href=\"https://nhacon.com/boxdetail.html?id=<?php echo $b_box->id; ?>\">\n <?php echo $b_box->name; ?>\n </a>\n </div>\n <div class=\"clear\"></div>\n <div class=\"price\"><?php echo number_format($b_box->price,0,'.','.'); ?> VNĐ </div>\n </div>\n <div class=\"clear\"></div>\n <!--widget-ad-->\n <h4 class=\"ad-header-box\"><?php _e('Smart Box Làm Đẹp', 'mvp-text'); ?></h4>\n <div class=\"widget-ad\">\n <?php\n $m_api = \"https://nhacon.com/api/boxTemplate?nested=true&filter=[{'property':'root_category_id','value':2}]&ctime=1412737314465\";\n $beauty_box_data = $this->get_data_from_api($m_api);\n $m_box = $this->array_random($beauty_box_data->data->bundleTemplate);\n ?>\n <div class=\"image-box\">\n <img src=\"<?php echo $m_box->images[0]->image_url ?>\" />\n </div>\n <div class=\"clear\"></div>\n <div class=\"title-box\">\n <a target=\"_blank\" href=\"https://nhacon.com/boxdetail.html?id=<?php echo $m_box->id; ?>\">\n <?php echo $m_box->name; ?>\n </a>\n </div>\n <div class=\"clear\"></div>\n <div class=\"price\"><?php echo number_format($m_box->price,0,'.','.'); ?> VNĐ </div>\n </div><!--widget-ad-->\n <?php }else{ ?>\n <?php\n $category = get_the_category();\n if(empty($category[0]->parent)){\n $root_cat = $category[0];\n }else{\n $root_cat = $category[1];\n }\n ?>\n <?php if($root_cat->slug == 'em-be'){ ?>\n <h4 class=\"ad-header-box\"><?php _e('Smart Box Em Bé', 'mvp-text'); ?></h4>\n <div class=\"widget-ad\">\n <?php\n $b_api = \"https://nhacon.com/api/boxTemplate?nested=true&filter=[{'property':'root_category_id','value':1}]&ctime=1412737314465\";\n $baby_box_data = $this->get_data_from_api($b_api);\n $b_box = $this->array_random($baby_box_data->data->bundleTemplate);\n ?>\n <div class=\"image-box\">\n <img src=\"<?php echo $b_box->images[0]->image_url ?>\" />\n </div>\n <div class=\"clear\"></div>\n <div class=\"title-box\">\n <a target=\"_blank\" href=\"https://nhacon.com/boxdetail.html?id=<?php echo $b_box->id; ?>\">\n <?php echo $b_box->name; ?>\n </a>\n </div>\n <div class=\"clear\"></div>\n <div class=\"price\"><?php echo number_format($b_box->price,0,'.','.'); ?> VNĐ </div>\n </div>\n <?php } ?>\n <?php if($root_cat->slug == 'gia-dinh'){ ?>\n <h4 class=\"ad-header-box\"><?php _e('Smart Box Gia đình', 'mvp-text'); ?></h4>\n <div class=\"widget-ad\">\n <?php\n $f_api = \"https://nhacon.com/api/boxTemplate?nested=true&filter=[{'property':'root_category_id','value':8}]&ctime=1412737314465\";\n $family_box_data = $this->get_data_from_api($f_api);\n $f_box = $this->array_random($family_box_data->data->bundleTemplate);\n ?>\n <div class=\"image-box\">\n <img src=\"<?php echo $f_box->images[0]->image_url ?>\" />\n </div>\n <div class=\"clear\"></div>\n <div class=\"title-box\">\n <a target=\"_blank\" href=\"https://nhacon.com/boxdetail.html?id=<?php echo $f_box->id; ?>\">\n <?php echo $f_box->name; ?>\n </a>\n </div>\n <div class=\"clear\"></div>\n <div class=\"price\"><?php echo number_format($f_box->price,0,'.','.'); ?> VNĐ</div>\n </div>\n <?php } ?>\n <?php if($root_cat->slug == 'lam-dep'){ ?>\n <h4 class=\"ad-header-box\"><?php _e('Smart Box Làm đẹp', 'mvp-text'); ?></h4>\n <div class=\"widget-ad\">\n <?php\n $m_api = \"https://nhacon.com/api/boxTemplate?nested=true&filter=[{'property':'root_category_id','value':2}]&ctime=1412737314465\";\n $beauty_box_data = $this->get_data_from_api($m_api);\n $m_box = $this->array_random($beauty_box_data->data->bundleTemplate);\n ?>\n <div class=\"image-box\">\n <img src=\"<?php echo $m_box->images[0]->image_url ?>\" />\n </div>\n <div class=\"clear\"></div>\n <div class=\"title-box\">\n <a target=\"_blank\" href=\"https://nhacon.com/boxdetail.html?id=<?php echo $m_box->id; ?>\">\n <?php echo $m_box->name; ?>\n </a>\n </div>\n <div class=\"clear\"></div>\n <div class=\"price\"><?php echo number_format($m_box->price,0,'.','.'); ?> VNĐ </div>\n </div>\n <?php } ?>\n <?php } ?>\n <?php\n// This is where you run the code and display the output\n// echo __('Hello, World!', 'wpb_widget_domain');\n echo $args['after_widget'];\n }", "public function render()\n {\n return view('components.lecturer-widget-tiles');\n }", "function aidtransparency_widgets_init() {\r\n\r\n $widgetDefaults = array(\r\n 'before_widget' => '<aside id=\"%1$s\" class=\"widget %2$s\">',\r\n 'after_widget' => \"</aside>\",\r\n 'before_title' => '<h3 class=\"widget-title\">',\r\n 'after_title' => '</h3>'\r\n );\r\n\r\n\r\n register_sidebar(\r\n array_merge(\r\n $widgetDefaults,\r\n array(\r\n 'name' => __( 'Home Page Sidebar', 'aidtransparency' ),\r\n 'id' => 'sidebar-3',\r\n 'description' => __( 'The Home Page widgetized area', 'aidtransparency')\r\n )\r\n )\r\n );\r\n\r\n register_sidebar(\r\n array_merge(\r\n $widgetDefaults,\r\n array(\r\n 'name' => __( 'Page Sidebar', 'aidtransparency' ),\r\n 'id' => 'sidebar-1',\r\n 'description' => __( 'The Sidebar widgetized area', 'aidtransparency')\r\n )\r\n )\r\n );\r\n\r\n register_sidebar(\r\n array_merge(\r\n $widgetDefaults,\r\n array(\r\n 'name' => __( 'Blog Sidebar', 'aidtransparency' ),\r\n 'id' => 'sidebar-2',\r\n 'description' => __( 'The Blog Sidebar widgetized area', 'aidtransparency')\r\n )\r\n )\r\n );\r\n\r\n register_sidebar(\r\n array_merge(\r\n $widgetDefaults,\r\n array(\r\n 'name' => __( 'Footer', 'aidtransparency' ),\r\n 'id' => 'footer-1',\r\n 'description' => __( 'The Footer widgetized area', 'aidtransparency' )\r\n )\r\n )\r\n );\r\n}", "function abc_load_widget()\n{\n register_widget('awesome_bmi_widget');\n}", "function widget_wrap()\n{\n\tregister_widget('ag_pag_familie_w');\n\tregister_widget('ag_social_widget_container');\n\tregister_widget('ag_agenda_widget');\n}", "public function widget( $args, $instance ) {\n\t\t// outputs the content of the widget\n \n \n \n if(isset($instance['widgettitle']))\n {\n $widgettitle=esc_attr($instance['widgettitle']); \n }\n else\n {\n $widgettitle='Subscribe For Newsletter';\n }\n \n if(isset($instance['uniquelist']))\n {\n $uniquelist=esc_attr($instance['uniquelist']);\n }\n else\n {\n $uniquelist='';\n }\n if(isset($instance[thankyoupage]))\n {\n $thankyoupage=esc_attr($instance[thankyoupage]);\n }\n else\n {\n $thankyoupage='';\n }\n $widgetbgcolor=esc_attr($instance['widgetbgcolor']);\n $widgetfontcolor=esc_attr($instance['widgetfontcolor']);\n $widgetbtncolor=esc_attr($instance['widgetbtncolor']);\n \n ?>\n <style>\n .rf_widget_container input[type=\"submit\"]\n {\n background-color:<?php echo $widgetbtncolor ?>;\n }\n .rf_widget_container input[type=\"submit\"]:hover\n {\n background-color:#999;\n }\n </style> \n\n <div class=\"rf_widget_container\" style=\"background-color:<?php echo $widgetbgcolor ?>;color:<?php echo $widgetfontcolor ?> \">\n <span><?php echo $widgettitle ?></span><br/>\n <div class=\"rf_widget_form_container\">\n <form method=\"post\" action=\"https://www.aweber.com/scripts/addlead.pl\">\n <input type=\"hidden\" name=\"listname\" value=\"<?php echo $uniquelist ?>\" />\n <input type=\"hidden\" name=\"redirect\" value=\"<?php echo $thankyoupage ?>\" />\n <input type=\"hidden\" name=\"meta_adtracking\" value=\"custom form\" />\n <input type=\"hidden\" name=\"meta_message\" value=\"1\" /> \n <input type=\"hidden\" name=\"meta_required\" value=\"name,email\" /> \n <input type=\"hidden\" name=\"meta_forward_vars\" value=\"1\" /> \n <span>User Name</span><br/>\n <input type=\"text\" placeholder=\"john\"><br/>\n <span>Email</span><br/>\n <input type=\"text\" placeholder=\"abc@abc.com\"><br/>\n <input type=\"submit\" class=\"rf_sbrb_btn\" name=\"submit\" value=\"Subscribe\" /> \n </form>\n </div>\n \n </div> \n\n\n <?php\n \n\t}", "function pts_widget_init() {\n\n register_sidebar( array(\n\t\t'name' => 'Top Widget',\n\t\t'id' => 'top_widget',\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"%2$s top-widgs\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '',\n\t\t'after_title' => '',\n\t) );\n\n register_sidebar( array(\n\t\t'name' => 'Sidebar Widget',\n\t\t'id' => 'sidebar_widget',\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"%2$s sidebar-widgs\">',\n\t\t'after_widget' => '</div></div>',\n\t\t'before_title' => '<div class=\"widget_title_wrapper\"><h5 class=\"widgets_titles_sidebar\">',\n\t\t'after_title' => '</h5></div><div class=\"wca\">',\n\t) );\n\n register_sidebar( array(\n\t\t'name' => 'Single Post Widget',\n\t\t'id' => 'single_post_widget',\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"%2$s sidebar-widgs\">',\n\t\t'after_widget' => '</div></div>',\n\t\t'before_title' => '<div class=\"widget_title_wrapper\"><h5 class=\"widgets_titles_sidebar\">',\n\t\t'after_title' => '</h5></div><div class=\"wca\">',\n\t) );\n\n register_sidebar( array(\n\t\t'name' => 'First Footer Widget',\n\t\t'id' => 'first_footer_widget',\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"footer-widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h5 class=\"widgets_titles\">',\n\t\t'after_title' => '</h5>',\n\t) );\n\n\tregister_sidebar( array(\n\t\t'name' => 'Second Footer Widget',\n\t\t'id' => 'second_footer_widget',\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"footer-widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h5 class=\"widgets_titles\">',\n\t\t'after_title' => '</h5>',\n\t) );\n\n register_sidebar( array(\n\t\t'name' => 'Third Footer Widget',\n\t\t'id' => 'third_footer_widget',\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"footer-widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h5 class=\"widgets_titles\">',\n\t\t'after_title' => '</h5>',\n\t) );\n\n register_sidebar( array(\n\t\t'name' => 'Fourth Footer Widget',\n\t\t'id' => 'fourth_footer_widget',\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"footer-widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h5 class=\"widgets_titles\">',\n\t\t'after_title' => '</h5>',\n\t) );\n\n register_sidebar( array(\n\t\t'name' => 'Footer Right',\n\t\t'id' => 'footer_right',\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"%2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '',\n\t\t'after_title' => '',\n\t) );\n}", "function control_widgets( $instance , $whichfield = 'widget' )\n\t{\n\t\t$sidebars_widgets = wp_get_sidebars_widgets();\n\t\t$list = '';\n\t\tforeach( (array) $sidebars_widgets['wijax-area'] as $item )\n\t\t{\n\t\t\tif( $number == $this->number )\n\t\t\t\tcontinue;\n\n\t\t\t$list .= '<option value=\"'. $item .'\" '. selected( $instance[ $whichfield ] , $item , FALSE ) .'>'. $item .'</option>';\n\t\t}\n\t\t$list .= '<option value=\"custom\" '. selected( $instance[ $whichfield ] , 'custom' , FALSE ) .'>Custom widget</option>';\n\n\t\treturn '<p><label for=\"'. $this->get_field_id( $whichfield ) .'\">Widget</label><select name=\"'. $this->get_field_name( $whichfield ) .'\" id=\"'. $this->get_field_id( $whichfield ) .'\" class=\"widefat\">'. $list . '</select></p><p><label for=\"'. $this->get_field_id( $whichfield .'-custom' ) .'\">Custom Widget Name</label><input name=\"'. $this->get_field_name( $whichfield .'-custom' ) .'\" id=\"'. $this->get_field_id( $whichfield .'-custom' ) .'\" class=\"widefat\" type=\"text\" value=\"'. sanitize_title( $instance[ $whichfield .'-custom' ] ).'\"></p>';\n\t}", "public function widget($args, $instance){\n $this->coreWidget->renderWidget($args, $instance);\n }", "function skcw_widget_descriptions() {\n\t$templates = get_option('skcw_templates_list');\n\tinclude(SKCW_DIR.'views/widget-page-view.php');\n}" ]
[ "0.65342295", "0.65196496", "0.6497884", "0.6407105", "0.6380592", "0.6329686", "0.6305509", "0.6244059", "0.6146636", "0.6098631", "0.6097766", "0.6067424", "0.6064918", "0.6016018", "0.60047215", "0.60047215", "0.599959", "0.5991364", "0.5990999", "0.5990306", "0.5961395", "0.5953506", "0.59426135", "0.59146625", "0.589721", "0.58939385", "0.58846164", "0.58728", "0.586327", "0.58408916", "0.5814746", "0.57857054", "0.57841396", "0.57674766", "0.57648647", "0.57617265", "0.57566255", "0.5756042", "0.5748621", "0.57406986", "0.57370347", "0.5720153", "0.5717826", "0.57176286", "0.5717423", "0.5716534", "0.57108957", "0.570922", "0.5705064", "0.57031447", "0.5694609", "0.56940573", "0.56917375", "0.5681167", "0.56623584", "0.56601125", "0.5656866", "0.56556875", "0.56535935", "0.5653297", "0.56527674", "0.56513256", "0.56513256", "0.5651023", "0.56500465", "0.564619", "0.56397694", "0.5629593", "0.5621402", "0.5619126", "0.5617965", "0.5617035", "0.56125987", "0.560766", "0.5602577", "0.559216", "0.5587745", "0.5584331", "0.55831003", "0.5580318", "0.5568212", "0.5567336", "0.5562971", "0.5561929", "0.555565", "0.55544424", "0.5552269", "0.55520713", "0.55511934", "0.55433774", "0.5537233", "0.5535778", "0.55319816", "0.55243254", "0.5518529", "0.5506267", "0.5505701", "0.5503684", "0.5492641", "0.54925376" ]
0.67990226
0
Render a widget view using viewSimple $widget = [ 'widget' => 'carousel', 'view' => 'adminindexscripts' ]
public function renderSimple($widget) { try { return $this->viewSimple->render(WIDGETS_PATH . $widget['widget'] . "/Views/" . $widget['view']); } catch (Exception $e) { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function view() {\n \n // Get the user's plan\n $user_plan = get_user_option( 'plan', $this->CI->user_id );\n \n // Get plan end\n $plan_end = get_user_option( 'plan_end', $this->CI->user_id );\n \n // Get plan data\n $plan_data = $this->CI->plans->get_plan( $user_plan );\n \n // Set widgets\n $widgets = array();\n \n // Get default widgets\n $default_widgets = array();\n \n if ( get_option('app_dashboard_left_side_position') && get_option('app_dashboard_enable_default_widgets') ) {\n\n $full_size = 'col-xl-5';\n\n $plan_data[0]['size'] = 6;\n\n } else {\n\n $full_size = 'col-xl-12';\n\n $plan_data[0]['size'] = 3;\n\n } \n\n if ( get_option('app_dashboard_enable_default_widgets') ) {\n \n foreach ( glob(MIDRUB_DASHBOARD_APP_PATH . '/widgets/*.php') as $filename ) {\n\n $className = str_replace( array( MIDRUB_DASHBOARD_APP_PATH . '/widgets/', '.php' ), '', $filename );\n\n // Create an array\n $array = array(\n 'MidrubApps',\n 'Collection',\n 'Dashboard',\n 'Widgets',\n ucfirst($className)\n ); \n\n // Implode the array above\n $cl = implode('\\\\',$array);\n\n // Instantiate the class\n $response = (new $cl())->display_widget( $this->CI->user_id, $plan_end, $plan_data );\n\n // Add widget to $default_widgets array\n $default_widgets[$response['order']] = $response['widget'];\n\n }\n\n arsort($default_widgets);\n \n if ( $default_widgets ) {\n \n $widgets[0] = '<div class=\"' . $full_size . ' col-lg-12 col-md-12 stats\">'\n . '<div class=\"row\">';\n\n $i = 0;\n \n foreach ( $default_widgets as $widget ) {\n \n if ( get_option('app_dashboard_left_side_position') && $i % 1 ) {\n \n $widgets[0] .= '</div><div class=\"row\">';\n \n }\n \n $widgets[0] .= $widget;\n \n $i++;\n \n }\n \n $widgets[0] .= '</div>'\n . '</div>';\n \n }\n \n }\n \n $apps_widgets = array();\n \n foreach ( glob( MIDRUB_APPS_PATH . '/collection/*') as $directory ) {\n\n $dir = str_replace( MIDRUB_APPS_PATH . '/collection/', '', $directory );\n \n if ( !get_option('app_' . $dir . '_enable') || !plan_feature('app_' . $dir) ) {\n continue;\n }\n\n if ( $dir === 'dashboard' ) {\n \n continue;\n \n } else {\n \n // Create an array\n $array = array(\n 'MidrubApps',\n 'Collection',\n ucfirst($dir),\n 'Main'\n ); \n\n // Implode the array above\n $cl = implode('\\\\',$array);\n\n // Instantiate the class\n $response = (new $cl())->widgets( $this->CI->user_id, $plan_end, $plan_data );\n \n foreach ( $response as $key => $value ) {\n \n // Add widget to $apps_widgets array\n $apps_widgets[$key] = $value;\n \n }\n \n }\n\n }\n\n if ( $apps_widgets ) {\n \n arsort($apps_widgets);\n \n $e = 0;\n \n foreach ( $apps_widgets as $key_w => $value_w ) {\n\n if ( $full_size === 'col-xl-5' && $e === 0 ) {\n\n if ( !isset($widgets[0]) ) {\n $widgets[0] = '';\n }\n \n $widgets[0] .= str_replace( '[xl]', '7', $value_w['widget'] );\n \n } else {\n \n $widgets[$key_w] = str_replace( '[xl]', '12', $value_w['widget'] );\n \n }\n \n if ( $value_w['styles_url'] && !in_array( $value_w['styles_url'], $this->css_urls_widgets ) ) {\n $this->css_urls_widgets[] = $value_w['styles_url'];\n }\n \n if ( $value_w['js_url'] && !in_array( $value_w['js_url'], $this->js_urls_widgets ) ) {\n $this->js_urls_widgets[] = $value_w['js_url'];\n } \n \n $e++;\n \n }\n \n }\n \n $this->CI->user_header = user_header();\n \n $this->CI->user_header['app'] = 'dashboard';\n \n $expired = 0;\n \n $expires_soon = 0;\n \n if ( $plan_end ) {\n \n if ( strtotime($plan_end) < time() ) {\n \n $this->CI->plans->delete_user_plan($this->CI->user_id);\n redirect('user/app/dashboard');\n \n } elseif ( strtotime($plan_end) < time() + 432000 ) {\n \n $expires_soon = 1;\n \n }\n \n }\n \n // Making temlate and send data to view.\n $this->CI->template['header'] = $this->CI->load->view('user/layout/header', array('app_styles' => $this->assets_css(), 'title' => $this->CI->lang->line('dashboard')), true);\n $this->CI->template['left'] = $this->CI->load->view('user/layout/left', $this->CI->user_header, true);\n $this->CI->template['body'] = $this->CI->load->ext_view( MIDRUB_DASHBOARD_APP_PATH . '/views', 'main', array('widgets' => $widgets, 'expired' => $expired, 'expires_soon' => $expires_soon), true);\n $this->CI->template['footer'] = $this->CI->load->view('user/layout/footer', array('app_scripts' => $this->assets_js()), true);\n $this->CI->load->ext_view( MIDRUB_DASHBOARD_APP_PATH . '/views/layout', 'index', $this->CI->template);\n \n }", "public function render()\n {\n return view('components.covid-widget');\n }", "public function setWidget($widget);", "public function render_widget() {\n\n return Widget::render($this->settings);\n\n }", "public function run()\n {\n $categories = \\App\\Models\\Category::with('categories')->where('id_parent', 0)->where('status', 1)->orderBy('sort')->get();\n\n return view(\"widgets.catalog_widget\", [\n 'config' => $this->config, 'categories' => $categories\n ]);\n }", "public function indexAction()\n {\n $this->view->widget = $this->_getWidget();\n }", "private function _render()\n {\n $content = '';\n\n if (is_array($this->widgets)) {\n // clean path vars\n self::_clean_paths();\n\n foreach ($this->widgets as $parts) {\n\n $content = '';\n\n $type = (array_key_exists('type', $parts)) ? $parts['type'] : '';\n $src = (array_key_exists('src', $parts)) ? $parts['src'] : '';\n $title = (array_key_exists('title', $parts)) ? $parts['title'] : '';\n $alt = (array_key_exists('alt', $parts)) ? $parts['alt'] : 1;\n $cols = (array_key_exists('cols', $parts)) ? $parts['cols'] : 1;\n\n // process action commands (these don't follow the convention of standard widgets)\n switch ($type) {\n case 'clear':\n // push content directly into dashboard array\n $content = \"<div style='clear:both'></div>\";\n $this->_dashboard[] = $content;\n continue 2;\n break;\n }\n\n // check if individual keys supplied instead of an array of values\n if (array_key_exists('src', $parts)) {\n\n // individual keys supplied so construct appropriate array\n $parts = array(array('type'=>$type, 'src'=>$src, 'alt'=>$alt));\n }\n\n // process each part\n foreach ($parts as $part) {\n\n if (! is_array($part)) continue;\n\n // add any part-specific sub-headings as <H3>\n $content .= (array_key_exists('title', $part)) ? \"<\".$this->widget_subheading.\">\".$part['title'].\"</\".$this->widget_subheading.\">\" : '';\n\n switch ($part['type']) {\n //======================================\n case 'oop':\n //======================================\n\n // run an external controller to produce widget contents\n if ($this->oop_alt) {\n // alternative location will be:\n // [oop_path]/[dashboard_folder]/[dashboard_name]/[controller_name].[ext]\n // eg. [application/controllers]/[dashboard]/[safety]/[test_dash].[php]\n $file_name = $this->_makepath($this->oop_path, $this->dash_fldr, $this->dash).$part['src'].EXT;\n\n } else {\n\n // normal location will be\n // [oop_path]/[dashboard_name]/[dashboard_folder]/[controller_name].[ext]\n // eg. [application/controllers]/[safety]/[dashboard]/[test_dash].[php]\n $file_name = $this->_makepath($this->oop_path, $this->dash, $this->dash_fldr).$part['src'].EXT;\n }\n\n if (file_exists($file_name)) {\n\n include_once $file_name;\n\n // create an instance of the controller so we can run it\n $cname = ucfirst($part['src']);\n $c = new $cname;\n\n // always run the index() method to build content\n $content .= $c->index();\n\n } else {\n\n $content .= 'WARNING: Unable to find controller: '.$file_name;\n }\n\n break;\n\n //======================================\n case 'html':\n //======================================\n\n // html or text content being directly supplied from controller\n $content .= $part['src'];\n\n break;\n\n //======================================\n case 'curl':\n //======================================\n\n // html or text content being directly supplied from controller\n $content .= $this->_curl_response($part['src']);\n\n break;\n\n //======================================\n case 'img':\n //======================================\n\n // create an <img> tag widget referencing an external image file\n // $img_file = (array_key_exists('src', $part)) ? $this->_makepath($this->asset_path, $this->img_path.PS.$this->dash.PS.$this->dash_fldr.PS.$part['src'] : '';\n $img_file = (array_key_exists('src', $part)) ? $this->_makepath($this->asset_path, $this->img_path, $this->dash, $this->dash_fldr).$part['src'] : '';\n $img_alt = (array_key_exists('alt', $part)) ? $part['alt'] : '';\n\n if (file_exists(FCPATH.$img_file)) {\n\n $content .= \"<img src='\".$img_file.\"' width='100%' alt='{$img_alt}' title='{$img_alt}' class='modalview' type='image' />\";\n\n } else {\n\n $content = 'WARNING: Unable to find img: '.FCPATH.$img_file;\n }\n\n break;\n\n //======================================\n case 'file':\n //======================================\n\n // pull widget contents directly from an external file\n $file_name = (array_key_exists('src', $part)) ? $this->_makepath(FCPATH.$this->asset_path, $this->file_path, $this->dash, $this->dash_fldr).$part['src'] : '';\n\n if (file_exists($file_name)) {\n $content .= file_get_contents($file_name);\n\n } else {\n\n $content .= 'WARNING: Unable to find file: '.$file_name;\n }\n\n break;\n }\n }\n\n // add this widget to dashboard\n $this->_dashboard[] = $this->_widget($title, $content, $cols);\n }\n }\n\n return $content;\n }", "public static function widget() {\n require_once( 'includes/widget.php' );\n }", "public function tally_rendered_widgets($widget)\n {\n }", "function ssl_widget() {\r\n $widget_ops = array('classname' => 'ssl_widget', 'description' => __('widget that display a slideshow from all attachments','ssl-plugin') ); \r\n $this->WP_Widget('ssl_widget', __('Siteshow Widget','ssl-plugin'), $widget_ops);\r\n }", "public function widgets(){\n\t\t//register_widget(\"sampleWidget\");\n\t}", "public function widgets(){\n\t\t//register_widget(\"sampleWidget\");\n\t}", "public function widgets()\n {\n return view('pages.widgets');\n }", "public function index()\n\t{\n $widget = Widget::first();\n\n\t\treturn view('admin.widget', compact('widget'));\n\t}", "public function index()\n {\n $widgetsFrontend = Widgets::frontend()->all();\n $widgetsBackend = Widgets::backend()->all();\n\n return view_backend('widget.index', compact('widgetsFrontend', 'widgetsBackend'));\n }", "public function html()\n {\n $random_quote = $this->randomQuote();\n $cp_path = CP_ROUTE;\n return $this->view('widget', compact('random_quote','cp_path'))->render();\n }", "public function render_widget() {\n\t\t$this->get_db_values();\n\t\tif ( wponion_is_callable( $this->option( 'callback' ) ) ) {\n\t\t\techo wponion_callback( $this->option( 'callback' ), array( $this->get_db_values(), $this ) );\n\t\t}\n\t}", "function spyropress_builder_render_widgets() {\n global $wp_registered_widgets;\n $content = '';\n\n // Sorting\n $sort = $wp_registered_widgets;\n usort( $sort, 'builder_module_name_sort' );\n $done = array();\n\n foreach ( $sort as $widget ) {\n $callback = $widget['callback'];\n if ( in_array( $callback, $done, true ) )\n continue;\n\n $done[] = $callback;\n $widget_obj = $callback[0];\n $class = get_class( $widget_obj );\n\n if( $class=='WP_Widget_Media_Image' || $class=='WP_Widget_Media_Gallery' || $class=='WP_Widget_Media_Audio' || $class=='WP_Widget_Media_Video')\n continue;\n /** Generate HTML **/\n $content .= sprintf( '\n <li class=\"module-item\">\n <a class=\"builder-module-insert\" href=\"#\" data-module-type=\"%1$s\">\n <span class=\"module-icon-widget\"></span>\n <span class=\"module-item-body\">\n <strong class=\"module-item-title\">%2$s</strong>\n <span class=\"module-item-description\">%3$s</span>\n </span>\n </a>\n </li>', $class, $widget_obj->name, esc_html( $widget_obj->\n widget_options['description'] ) );\n }\n\n echo tomato_html( $content );\n}", "function wp_render_widget_control($id)\n {\n }", "public function render($widget, $params = null, $options = null)\n {\n $controllerName = 'controller';\n $action = 'index';\n\n if (is_array($widget)) {\n $widgetName = $widget['widget'];\n if (isset($widget['controller'])) {\n $controllerName = $widget['controller'];\n }\n if (isset($widget['action'])) {\n $action = $widget['action'];\n }\n } else {\n $widgetName = $widget;\n }\n\n $viewName = $action;\n if (strpos($controllerName, 'admin') === 0 && !isset($widget['action'])) {\n $viewName = \"admin-$action\";\n }\n\n if (isset($options['view'])) {\n $viewName = $options['view'];\n }\n\n $layout = null;\n if (isset($options['layout'])) {\n $layout = $options['layout'];\n }\n\n // Render widget only if is active\n if (!Package::isActiveWidget($widgetName)) {\n $this->logger->debug(\"Widget is not active and won't be rendered; widget: $widgetName\");\n return null;\n }\n\n $controllerName = Text::camelize($controllerName);\n\n $controllerClass = \"\\Widget\\\\$widgetName\\Controllers\\\\$controllerName\";\n if (!class_exists($controllerClass)) {\n $this->logger->debug(\"Widget class does not exist; widget: $widgetName, class: $controllerClass\");\n return null;\n }\n\n /** @var \\Engine\\Widget\\Controller $controller */\n $controller = new $controllerClass();\n// if ($options !== null && isset($options['cache']) && !empty($options['cache'])) {\n// if (!isset($params['cacheKey'])) {\n// $options['cacheKey'] = $this->createCacheKey($widget, $params, $widgetName);\n// }\n// if ($controller->cache->exists($options['cacheKey'], $options['cache'])) {\n// return $controller->cache->get($options['cacheKey']);\n// }\n// }\n\n if ($params !== null) {\n $controller->setParams($params);\n }\n if ($options !== null && isset($options['renderView'])) {\n $controller->setRenderView($options['renderView']);\n }\n // initialize the controller with the necessary settings\n// $controller->initialize();\n\n $viewWidget = clone $this->di->get('viewWidget');\n $controller->viewWidget = $this->di->get('viewWidget');\n\n $isBackend = (substr($controllerName, 0, 5) === \"Admin\");\n if ($isBackend) {\n // get params before calling the controller to have the necessary data for admin form\n $this->getAdminParams($controller);\n }\n\n $controller->{\"{$action}Action\"}();\n $html = null;\n if ($controller->getRenderView()) {\n if ($isBackend) {\n $controller->viewWidget->setViewsDir(APP_PATH . \"widgets/$widgetName/Views\");\n $controller->viewWidget->pick($viewName);\n $controller->viewWidget->setRenderLevel(View::LEVEL_ACTION_VIEW);\n } else {\n $this->getWidgetDefaults($controller, $widgetName, $viewName, $layout);\n $controller->viewWidget->setVar('params', $params);\n }\n $html = $controller->viewWidget->getRender($controllerName, $action);\n }\n $this->di->set('viewWidget', $viewWidget);\n\n// if ($html != null && $options !== null && isset($options['cache']) && !empty($options['cache'])) {\n// $controller->cache->save($options['cacheKey'], $html, $options['cache']);\n// }\n return $html;\n }", "protected function widget($widget = ''){\n $url = explode('/',$widget);\n $widget_name = $url[count($url) - 1];\n //Check if $widget is available\n if(!empty($widget) && is_string($widget)){\n $widget_path = APP_ROOT . 'widgets/' . $widget . '.php';\n if(file_exists($widget_path)){\n include_once $widget_path;\n return new $widget_name();\n }\n\n error([\n 'title' => 'Widget Not Found',\n 'description' => 'Ops! It seems the widget <strong>' . ucwords($model) . '</strong> does not exist<br>Please Create It first'\n ]);\n }\n }", "public function widget(&$route, &$data) {\n $appId = $this->that->config->get(\"koraki_client_id\");\n $status = $this->that->config->get(\"koraki_status\");\n if(!empty($appId) && $status) {\n $data[\"modules\"][] = \"<script>window.sparkleSettings = { app_id: \\\"$appId\\\" }; !function(){function t(){var t=a.createElement(\\\"script\\\"); t.type=\\\"text/javascript\\\", t.async=!0,t.src=\\\"//api.koraki.io//widget/v1.0/js\\\"; var e=a.getElementsByTagName(\\\"script\\\")[0];e.parentNode.insertBefore(t,e)} var e=window,a=document;e.attachEvent?e.attachEvent(\\\"onload\\\",t):e.addEventListener(\\\"load\\\",t,!1)}();</script>\";\n }\n }", "function wp_render_widget($widget_id, $sidebar_id)\n {\n }", "public function frontend_render()\n {\n $user_selected_language = get_user_lang();\n $widget_saved_values = $this->get_settings();\n\n $widget_title = $widget_saved_values['widget_title_' . $user_selected_language] ?? '';\n\n $output = $this->widget_before(); //render widget before content\n\n if (!empty($widget_title)) {\n $output .= '<h4 class=\"widget-title\">' . purify_html($widget_title) . '</h4>';\n }\n $output .='<div class=\"widget widget_search\">\n <form action=\"'.route('frontend.blog.search').'\" method=\"get\" class=\"search-form\">\n <div class=\"form-group\">\n <input type=\"text\" class=\"form-control\" name=\"search\" placeholder=\"'.__('Write your keyword...').'\">\n </div>\n <button class=\"submit-btn\" type=\"submit\"><i class=\"fa fa-search\"></i></button>\n </form>\n </div>';\n\n $output .= $this->widget_after(); // render widget after content\n\n return $output;\n }", "public static function widget() {\n //require_once( 'widget.php' );\n require_once get_stylesheet_directory() . '/inc/templates/statistics_widget.php';\n }", "public function renderWidgets()\r\n {\r\n foreach ($this->_widgets as $widget)\r\n {\r\n echo current($widget);\r\n }\r\n\r\n }", "public function widgetContents($array);", "public function indexAction()\n {\n $contentTypes = $this->contentTypes();\n $model = $this->getModel('widget');\n $rowset = $model->select(array('type' => array_keys($contentTypes)));\n $widgets = array();\n foreach ($rowset as $row) {\n $widgets[$row->block] = $row->toArray();\n }\n if ($widgets) {\n $blocks = Pi::model('block_root')\n ->select(array('id' => array_keys($widgets)))->toArray();\n foreach ($blocks as $block) {\n $widgets[$block['id']]['block'] = $block;\n }\n }\n\n $data = array(\n 'widgets' => array_values($widgets)\n );\n\n $this->view()->assign('data', $data);\n $this->view()->setTemplate('ng');\n }", "function wpb_carousel_widget() {\n\t register_widget( 'wpb_widget' );\n\t}", "public function renderWidget($widgetName)\r\n {\r\n echo $this->getWidget($widgetName);\r\n }", "function suhv_widgets()\n{\n register_widget( 'Suhv_Widgets' );\n}", "function widget($args, $inst)\n {\n// $title = apply_filters( 'widget_title', $instance['title'] );\n// $title_color = apply_filters( 'widget_title', $instance['title_color'] );\n $image_about = $this->getVal( $inst, 'image_about' );\n $title_color = $this->getVal( $inst, 'title_color' );\n $title = $this->getVal( $inst, 'title' );\n $desc = $this->getVal( $inst, 'desc' );\n ?>\n <section class=\"ftco-section services-section\" id=\"about\">\n <div class=\"container\">\n <div class=\"row no-gutters\">\n <div class=\"col-md-6 p-md-5 img img-2 d-flex justify-content-center align-items-center\" style=\"background-image: url(<?php echo $image_about; ?>);\">\n </div>\n <div class=\"col-md-6 wrap-about py-md-5 ftco-animate\">\n <div class=\"heading-section mb-5 pl-md-5\">\n <span class=\"subheading\"><?php echo $title_color; ?></span>\n <h2 class=\"mb-4\"><?php echo $title; ?></h2>\n <p><?php echo $desc; ?></p>\n </div>\n </div>\n </div>\n </div>\n </section>\n<?php\n }", "public function render()\n {\n return view('components.lecturer-widget-tiles');\n }", "public static function widget() {\n \n\t\t$start = self::get_dashboard_widget_option(self::wid, 'starting_conversion');\n\t\t$remaining_days = self::get_dashboard_widget_option(self::wid, 'starting_conversion');\n\t\t\n\t\t// Display Dashboard widget\n\t\trequire_once( 'red-flag-parking-display.php' );\n }", "function abc_load_widget()\n{\n register_widget('awesome_bmi_widget');\n}", "public function render()\n {\n return view('gallery::components.slider.'.$this->theme);\n }", "function comanche_widget($name,$args = null) {\n\t$a = get_app();\n\t$func = 'widget_' . trim($name);\n\tif(function_exists($func))\n\t\treturn $func($args);\n}", "function widget($args, $widgetData) {\n\n //=======> widget body\n\n echo $before_widget;\n\n\n\t\t\n\t\t$curlHandler = curl_init();\n\n\t\t$userName = 'integracao-mooc';\n\n\t\t$password = '123';\n\n\t\tcurl_setopt_array($curlHandler, [\n\n\t\t CURLOPT_URL => 'http://troia.cefor.cefetes.br:8082/mooc-api/buscar-cursos-inscricoes-abertas',\n\n\t\t CURLOPT_RETURNTRANSFER => true,\n\n\t\t CURLOPT_HTTPAUTH => CURLAUTH_BASIC,\n\n\t\t CURLOPT_USERPWD => $userName . ':' . $password,\n\n\t\t]);\n\n\t\t$response = curl_exec($curlHandler);\n;\n\n\t\t$json_str = $response;\n\t\t$jsonObj = json_decode($json_str);\n\t\t$cursos = $jsonObj->cursos;\n\n\t\t?>\n\n<div class=\"container-fluid\" id=\"cursos\">\n <div class=\"container\">\n <div class=\"top-section\"> \n <h2 class=\"titulo-section2\">Nossos Cursos</h2>\n </div>\n \n <div class=\"row\"> \n\n\n \t<?php\n\t\t \n\t\t//navega pelos elementos do array, imprimindo cada empregado\n\t\t/*foreach ( $cursos as $curso)\n\t\t {\n\t\t echo \"<div class='card-curso'>\n\n\t\t \t\t<img class='img-curso' src='/images/cursos/vitrine_FerramentaGravacaoVideo.jpg' alt='$curso->nome'>\n\t\t \t\t<div class='descricao'>\n\t\t \t\t\t<h6> $curso->nome</h6>\n\t\t \t\t\t<a href='$curso->link' target='_blank' class='btn2'>Acessar curso</a>\n\t\t \t \t</div>\n\t\t \t </div>\"; \n echo \"<br>\";\n\t\t }*/\n\n\n $args = array(\n 'post_type' => 'cursos_post_type'\n ); \n // the query\n $the_query = new WP_Query( $args );\n\n \n \n \n if ( $the_query->have_posts() ) {\n \n\n \n $lista_post_curso = [];\n\n while ( $the_query->have_posts() ) {\n $the_query->the_post();\n \n $titulo = get_the_title();\n $resumo = get_the_excerpt();\n echo \"<div class='card-curso'>\";\n\n if ( has_post_thumbnail() ) {\n the_post_thumbnail('medium', array('class' => 'img-curso'));\n } \n\n echo\"\n <div class='descricao'>\n <h6> $titulo</h6>\n $resumo\n <a href='$meta' target='_blank' class='btn2'>Acessar curso</a>\n </div>\n </div>\"; \n echo \"<br>\"; \n\n \n array_push($lista_post_curso, $titulo); \n \n \n \n \n }\n }\n\n\n wp_reset_postdata();\n \n /* $lista_moodle_curso = []; \n\n foreach ($cursos as $curso){\n\n $nome = $curso->nome;\n\n array_push($lista_moodle_curso, $nome); \n\n\n }\n\n print_r($lista_post_curso);\n echo \"<BR>\";\n print_r($lista_moodle_curso);\n $testar = in_array($lista_post_curso, $cursos); \n\n\t\tcurl_close($curlHandler);*/\n\t\t?>\n\n \n\n\n\n\t\t</div>\n\t</div>\n</div>\n\n<?php\n\t echo $after_widget;\n\n }", "public function render()\n {\n\n return view('components.carousel');\n }", "function widget($args, $instance) {\n extract( $args, EXTR_SKIP );\n //echo $before_widget;\n include(plugin_dir_path(__FILE__) . '/views/'. $instance['display'] .'.php' );\n// echo $after_widget;\n}", "protected function _staticPage($name){\n $content= View::make(\"back_end.widgets.{$name}\");\n \n return View::make('back_end.general',compact('content'));\n }", "protected function renderWidget(array $arr)\n {\n $content = file_get_contents($this->widgetTpl);\n $widgetName = $arr['name'];\n $dashWidgetName = CaseTool::toDash($widgetName);\n $widgetDescription = $arr['description'];\n $screenShotList = $this->renderScreenshotList($widgetName);\n $widgetVarsDescriptionList = $this->renderWidgetVariablesDescriptionList($arr['vars']);\n\n\n $widgetExample = $arr['example'] ?? \"\";\n if (is_array($widgetExample)) {\n $widgetExample = implode(', ', $widgetExample);\n }\n $templates = [];\n $skins = [];\n $presets = [];\n //--------------------------------------------\n // WIDGET DIR\n //--------------------------------------------\n $widgetDir = $this->widgetsBaseDir . \"/\" . $widgetName;\n if (is_dir($widgetDir)) {\n $cssDir = $widgetDir . '/css';\n $templatesDir = $widgetDir . '/templates';\n $presetsDir = $widgetDir . '/presets';\n\n if (is_dir($cssDir)) {\n $skins = YorgDirScannerTool::getFilesWithExtension($cssDir, [\"css\", \"css.php\"], false, true, true);\n }\n\n if (is_dir($templatesDir)) {\n $templates = YorgDirScannerTool::getFilesWithExtension($templatesDir, \"php\", false, true, true);\n }\n\n if (is_dir($presetsDir)) {\n $presets = YorgDirScannerTool::getFilesWithExtension($presetsDir, \"byml\", false, true, true);\n }\n }\n $sTemplates = implode(', ', $templates);\n $sSkins = implode(', ', $skins);\n $sPresets = implode(', ', $presets);\n\n\n $widgetVars = $arr['vars'];\n return str_replace([\n '${dashWidgetName}',\n '${widgetName}',\n '${widgetDescription}',\n '${screenshotList}',\n '${widgetVarsDescriptionList}',\n '${widgetExample}',\n '${templates}',\n '${skins}',\n '${presets}',\n ], [\n $dashWidgetName,\n $widgetName,\n $widgetDescription,\n $screenShotList,\n $widgetVarsDescriptionList,\n $widgetExample,\n $sTemplates,\n $sSkins,\n $sPresets,\n ], $content);\n }", "public function getWidget();", "function SetWidget() {\n\t\t\n\t\t\tif ( !function_exists('register_sidebar_widget') ) \n\t\t\treturn;\n\t\t\t\n\t\t\t// This registers our widget so it appears with the other available\n\t\t\t// widgets and can be dragged and dropped into any active sidebars.\n\t\t\tregister_sidebar_widget(array('3B Meteo', 'widgets'), array(\"TreBiMeteo\",'WidgetMeteo'));\n\t\t\n\t\t\t// This registers our optional widget control form.\n\t\t\tregister_widget_control(array('3B Meteo', 'widgets'), array(\"TreBiMeteo\",'WidgetMeteoControl'), 450, 325);\n\t\t}", "function widget_wrap()\n{\n\tregister_widget('ag_pag_familie_w');\n\tregister_widget('ag_social_widget_container');\n\tregister_widget('ag_agenda_widget');\n}", "public function widget($args, $instance) {\n extract( $args );\n\n?>\n <div class=\"an-catlinks-container\">\n <div class=\"an-catlinks-element\">\n <img src=\"<?php _e($instance['image1']); ?>\" />\n <a href=\"<?php _e(get_category_link($instance['cat1'])); ?>\">\n <?php _e(get_cat_name($instance['cat1'])); ?>\n </a>\n </div>\n\n <div class=\"an-catlinks-element\">\n <img src=\"<?php _e($instance['image2']); ?>\" />\n <a href=\"<?php _e(get_category_link($instance['cat2'])); ?>\">\n <?php _e(get_cat_name($instance['cat2'])); ?>\n </a>\n </div>\n\n <div class=\"an-catlinks-element\">\n <img src=\"<?php _e($instance['image3']); ?>\" />\n <a href=\"<?php _e(get_category_link($instance['cat3'])); ?>\">\n <?php _e(get_cat_name($instance['cat3'])); ?>\n </a>\n </div>\n </div>\n\n<?php\n }", "function __construct() {\n\t\t$this->frontend_styles = array(\n\t\t\tarray('pisol-logo-carosel', PISOL_SITEO_WIDGET_URL.'css/slick-theam.css'),\n\t\t\tarray('slick', PISOL_SITEO_WIDGET_URL.'css/slick.css'),\n\t\t\tarray('pisol-logo-carosel-style', PISOL_SITEO_WIDGET_URL.'pisol-widget/pisol-logo-carosel/assets/style.css'),\n\t\t);\n\t\n\t\t$this->frontend_scripts = array(\n\t\t\tarray('slick', PISOL_SITEO_WIDGET_URL .'js/slick.min.js'),\n\t\t\tarray('pisol-logo-carosel', PISOL_SITEO_WIDGET_URL .'pisol-widget/pisol-logo-carosel/assets/custom.js'),\n\t\t);\n\t\t//Call the parent constructor with the required arguments.\n\t\tparent::__construct(\n\t\t\t// The unique id for your widget.\n\t\t\t'pisol-logo-carosel',\n\t\n\t\t\t// The name of the widget for display purposes.\n\t\t\t__('Logo Carosel', 'pisol-siteorigin-widget'),\n\t\n\t\t\t// The $widget_options array, which is passed through to WP_Widget.\n\t\t\t// It has a couple of extras like the optional help URL, which should link to your sites help or support page.\n\t\t\tarray(\n\t\t\t\t'description' => __('Logo Carosel', 'pisol-siteorigin-widget'),\n 'help' => 'http://100dollarswebsites.com',\n\t\t\t\t'panels_icon' => 'dashicons dashicons-dashboard',\n\t\t\t\t'panels_groups' => array('pisol-widget')\n\t\t\t),\n\n\t\t\tarray(\n\t\t\t),\n\t\n\t\t\t//The $control_options array, which is passed through to WP_Widget\n\t\t\tarray(\n\t\t\t\t'pisol-widget-title' => array(\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t'label' => __( 'Module Title', 'pisol-siteorigin-widget' )\n\t\t\t\t),\n\t\t\t\t'pisol-widget-subtitle' => array(\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t'label' => __( 'Module Description', 'pisol-siteorigin-widget' )\n\t\t\t\t),\n\t\t\t\t'pisol-logo'=>array(\n\t\t\t\t\t'type' => 'repeater',\n\t\t\t\t\t'label' => __( 'Slides' , 'pisol-siteorigin-widget' ),\n\t\t\t\t\t'item_name' => __( 'Slide', 'siteorigin-widgets' ),\n\t\t\t\t\t'fields' =>array(\n\t\t\t\t\t\t'image'=>array(\n\t\t\t\t\t\t\t'type' => 'media',\n\t\t\t\t\t\t\t'label' => __( 'Logo image', 'pisol-siteorigin-widget' ),\n\t\t\t\t\t\t\t'choose' => __( 'Choose image', 'pisol-siteorigin-widget' ),\n\t\t\t\t\t\t\t'update' => __( 'Set image', 'pisol-siteorigin-widget' ),\n\t\t\t\t\t\t\t'library' => 'image',\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'link'=>array(\n\t\t\t\t\t\t\t'type' => 'link',\n\t\t\t\t\t\t\t'label' => __( 'Link', 'pisol-siteorigin-widget' )\n\t\t\t\t\t\t)\n\t\t\t\t\t)),\n\n\t\t\t\t\t\"infinite\" => array(\n\t\t\t\t\t\t'type' => 'radio',\n\t\t\t\t\t\t'label' => __( 'Infinite scroll', 'pisol-siteorigin-widget' ),\n\t\t\t\t\t\t'default' => \"true\",\n\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t\"true\" => __( 'Yes', 'pisol-siteorigin-widget' ),\n\t\t\t\t\t\t\t\"false\" => __( 'No', 'pisol-siteorigin-widget' ),\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\n\t\t\t\t\t\"to-show\"=>array(\n\t\t\t\t\t\t'type' => 'number',\n\t\t\t\t\t\t'label' => __( 'Slides to show', 'pisol-siteorigin-widget' ),\n\t\t\t\t\t\t'default' => 3,\n\t\t\t\t\t),\n\n\t\t\t\t\t\"to-scroll\"=>array(\n\t\t\t\t\t\t'type' => 'number',\n\t\t\t\t\t\t'label' => __( 'Slides to scroll', 'pisol-siteorigin-widget' ),\n\t\t\t\t\t\t'default' => 1,\n\t\t\t\t\t),\n\n\t\t\t\t\t\"arrow\"=>array(\n\t\t\t\t\t\t'type' => 'radio',\n\t\t\t\t\t\t'label' => __( 'Arrow navigation', 'pisol-siteorigin-widget' ),\n\t\t\t\t\t\t'default' => \"true\",\n\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t\"true\" => __( 'Yes', 'pisol-siteorigin-widget' ),\n\t\t\t\t\t\t\t\"false\" => __( 'No', 'pisol-siteorigin-widget' ),\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\n\t\t\t\t\t\"dot\"=>array(\n\t\t\t\t\t\t'type' => 'radio',\n\t\t\t\t\t\t'label' => __( 'Dot navigation', 'pisol-siteorigin-widget' ),\n\t\t\t\t\t\t'default' => \"true\",\n\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t\"true\" => __( 'Yes', 'pisol-siteorigin-widget' ),\n\t\t\t\t\t\t\t\"false\" => __( 'No', 'pisol-siteorigin-widget' ),\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\n\t\t\t\t\t\"auto\"=>array(\n\t\t\t\t\t\t'type' => 'radio',\n\t\t\t\t\t\t'label' => __( 'Auto play', 'pisol-siteorigin-widget' ),\n\t\t\t\t\t\t'default' => \"true\",\n\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t\"true\" => __( 'Yes', 'pisol-siteorigin-widget' ),\n\t\t\t\t\t\t\t\"false\" => __( 'No', 'pisol-siteorigin-widget' ),\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\t\t\t\t\t\n\t\t\t\t\t\"to-show-768\"=>array(\n\t\t\t\t\t\t'type' => 'number',\n\t\t\t\t\t\t'default' => 2,\n\t\t\t\t\t\t'label' => __( 'Slides to show below 768px', 'pisol-siteorigin-widget' ),\n\t\t\t\t\t),\n\n\t\t\t\t\t\"to-scroll-768\"=>array(\n\t\t\t\t\t\t'type' => 'number',\n\t\t\t\t\t\t'default' => 1,\n\t\t\t\t\t\t'label' => __( 'Slides to scroll below 768px', 'pisol-siteorigin-widget' ),\n\t\t\t\t\t),\n\n\t\t\t\t\t\"arrow-768\"=>array(\n\t\t\t\t\t\t'type' => 'radio',\n\t\t\t\t\t\t'label' => __( 'Arrow navigation below 768px', 'pisol-siteorigin-widget' ),\n\t\t\t\t\t\t'default' => \"false\",\n\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t\"true\" => __( 'Yes', 'pisol-siteorigin-widget' ),\n\t\t\t\t\t\t\t\"false\" => __( 'No', 'pisol-siteorigin-widget' ),\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\t\t\t),\n\t\n\t\t\t//The $form_options array, which describes the form fields used to configure SiteOrigin widgets. We'll explain these in more detail later.\n\t\t\t\n\t\t\t\n\t\t\t\n\t\n\t\t\t//The $base_folder path string.\n\t\t\tplugin_dir_path(__FILE__)\n\t\t);\n\t}", "function wpzh_load_widget() {\n register_widget( 'sliderHTML2' ); \n}", "function register_widget($widget)\n {\n }", "function acfwidget($name, $widgetid) {\n if (get_field($name, 'widget_'.$widgetid)) {\n $afcfield = get_field($name, 'widget_'.$widgetid);\n //print_r($afcfield);\n\n if ( !empty( $afcfield ) ) {\n foreach ($afcfield as $field) {\n $layout = $field['acf_fc_layout'];\n\n try {\n Timber::render($layout . '.twig', $field);\n } catch (Exception $e) {\n echo 'Could not find a twig file for layout type: ' . $layout;\n }\n }\n }\n }\n return;\n}", "public function _render($view)\n {\n $this->data['admin'] = false;\n\n $data = $this->data;\n $data['css'] = $this->css;\n $data['js'] = $this->js;\n $data['bower_components'] = $this->bower_components;\n\n $data['title'] = $this->title;\n $data['description'] = $this->description;\n $data['keywords'] = $this->keywords;\n $data['author'] = $this->author;\n\n $data['head'] = $this->load->view('templates/head', $data, true);\n if (isset($data['user'])) {\n $data['nav'] = $this->load->view('templates/logged/nav', $data, true);\n } else {\n $data['nav'] = $this->load->view('templates/nav', $data, true);\n }\n $data['scripts'] = $this->load->view('templates/scripts', $data, true);\n $data['footer'] = $this->load->view('templates/footer', $data, true);\n\n $data['content'] = $this->load->view($view, $data, true);\n\n $this->load->view('templates/skeleton', $data);\n }", "public function renderView(){\n $current_slider = get_the_author_meta( $this->model->getOptionName(), $this->user->data->ID );\n if($current_slider)\n $this->model->import($current_slider);\n else\n $this->model->import(null);\n\n $args = array(\n 'elements' => array(\n array(\n 'type' => 'header',\n 'title' => __('Halo8 Full Screen Slider Options', $this->plugin_slug)\n ),\n array(\n 'type' => 'nonce',\n 'nonce_phrase' => $this->nonce_phrase,\n 'prefix' => $this->prefix\n ),\n array(\n 'type' => 'select',\n 'id' => 'slider',\n 'prefix' => $this->prefix,\n 'name' => $this->model->getOptionName(),\n 'label' => __('Slider', $this->plugin_slug),\n 'elements' => $this->generateSlidersSelectElements(array('sliders' => $this->model->getSliders(), 'current' => $this->model->getSlider())),\n 'message' => __('Select the slider for this user.', $this->plugin_slug),\n 'enabled' => true\n ),\n array(\n 'type' => 'footer'\n )\n )\n );\n $this->view->render($args);\n }", "function skcw_widget_descriptions() {\n\t$templates = get_option('skcw_templates_list');\n\tinclude(SKCW_DIR.'views/widget-page-view.php');\n}", "public function actionIndex()\n {\n return $this->render('@gilek/gtreetable/views/widget', ['options'=>[\n 'manyroots' => true,\n 'draggable' => true\n ]]);\n }", "protected function registerWidget()\n {\n\t\t$id = $this->options['id'];\n $gridSelector = $this->gridSelector;\n\t\t\n\t\t$view = $this->getView();\n\t\t\n IsotopeAsset::register($view);\n $js = [];\n \n $options = Json::encode($this->clientOptions);\n $js[] = \"var isotopeContainer$id = $('$gridSelector');\";\n $js[] = \"var isotope$id = isotopeContainer$id.isotope($options);\";\n\n $view->registerJs(implode(\"\\n\", $js),$view::POS_READY);\n\t\t\n\t\tif (!empty($this->cssFile)) {\n\t\t\tcall_user_func_array([$view, \"registerCssFile\"], $this->cssFile);\n\t\t} \t\t\n }", "function itstar_widget() {\n register_widget( 'last_video_widget' );\n register_widget( 'last_posts_by_cat_widget' );\n register_widget( 'simple_button_widget' );\n}", "function sosq_flickr_widget() {\n\t\n$widget_ops = array(\n\t\t\t'classname' => 'sosq_flickr_widget',\n\t\t\t'description' => __('You can display your Flickr images by using this widget.', 'sosthemes')\n\t);\n\t\n#\n# \tWidget control window settings\n#\n\t$widget_window = array(\n\t\t\t'width' => 400,\n\t\t\t'height' => 360,\n\t\t\t'id_base' => 'sosq_flickr_widget'\n\t);\n#\n# \tWidget main function\n#\n\t$this->WP_Widget( 'sosq_flickr_widget', __('SOS Flickr Widget', 'sosthemes'), $widget_ops, $widget_window );\n\t\n}", "function wpb_load_widget()\n{\n register_widget('wpb_widget');\n}", "function cxense_recommend_widget($id, $width, $height, $template=false, $resize_content=true) {\n static $num_widgets = 1;\n ?>\n <div id=\"cxense-widget-<?php echo $num_widgets ?>\"></div>\n <script>\n var cX = cX || {}; cX.callQueue = cX.callQueue || [];\n cX.callQueue.push(['insertWidget',{\n widgetId: '<?php echo $id ?>',\n insertBeforeElementId: 'cxense-widget-<?php echo $num_widgets ?>',\n renderTemplateUrl: '<?php echo $template ? $template : CXENSE_PLUGIN_URL.'/templates/recommend-widgets/default-widget.html' ?>',\n resizeToContentSize : <?php echo $resize_content ? 'true':'false' ?>,\n width: <?php echo $width ?>,\n height: <?php echo $height ?>\n }]);\n </script>\n <?php\n $num_widgets++;\n}", "function FM_WebCam_Widget(){\r\n $widget_ops = array('classname' => 'FM_WebCam_Widget', 'description' => __( \"Show WebCam in Sidebar\") );\r\n $control_ops = array('width' => 300, 'height' => 300);\r\n $this->WP_Widget('FM_WebCam', __('FM_WebCam'), $widget_ops, $control_ops);\r\n }", "public function run() {\r\n\t\t\\Yii::trace(__METHOD__.'()', 'sweelix.yii1.admin.core.widgets');\r\n\t\t$contents=ob_get_contents();\r\n\t\tob_end_clean();\r\n\t\tif($this->activeDataProvider === null) {\r\n\t\t\techo $contents;\r\n\t\t} else {\r\n\t\t\tif(($this->hideOnEmpty === true) && ($this->activeDataProvider->totalItemCount == 0)) {\r\n\t\t\t\techo $contents;\r\n\t\t\t} else {\r\n\t\t\t\t$this->render('TableWidget', array(\r\n\t\t\t\t\t'activeDataProvider' => $this->activeDataProvider,\r\n\t\t\t\t\t'fields' => $this->getFields(),\r\n\t\t\t\t\t'title' => $this->title,\r\n\t\t\t\t\t'pagination' => $this->enablePagination,\r\n\t\t\t\t\t'catalog' => $this->getCatalog(),\r\n\t\t\t\t\t'htmlOptions' => $this->htmlOptions,\r\n\t\t\t\t));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function box_widget(){\n\t$CI=& get_instance();\n\treturn $CI->parser->parse('layout/ddi/box_widget.html', $CI->data,true);\n}", "function ApontadorWidget() {\n $widget_ops = array('classname' => 'apontador_widget', 'description' => __( \"Display your reviews from Apontador\", \"wp-apontador\") );\n $control_ops = array('width' => 300, 'height' => 300);\n $this->WP_Widget('apontador', __('Apontador Reviews', \"wp-apontador\"), $widget_ops, $control_ops);\n\n }", "public function getView() {}", "public function getView() {}", "public function register_widget() {\n register_widget( 'WPP_Widget' );\n }", "public function getView();", "public function widget_instance($params) {\n if ($params['widget'] == 'admindelegation' && $this->_userCanViewWidget('admindelegation')) {\n include_once 'AdminDelegation_UserWidget.class.php';\n $params['instance'] = new AdminDelegation_UserWidget($this);\n }\n if ($params['widget'] == 'admindelegation_projects' && $this->_userCanViewWidget('admindelegation_projects')) {\n include_once 'AdminDelegation_ShowProjectWidget.class.php';\n $params['instance'] = new AdminDelegation_ShowProjectWidget($this);\n }\n \n }", "function docuemtation_dashboard_widget_function() {\n\t// Display whatever it is you want to show\n\techo 'Make sure you watch the videos in 720p resolution.<br/>\n<a href=\"http://youtu.be/vA3fXuhbmjg\" target=\"_blank\">Welcome and Workflow</a> (1:32)<br/>\n<a href=\"http://youtu.be/1EYJ2xuJOB4\" target=\"_blank\">Resize Images</a> (3:55)<br/>\n<a href=\"http://youtu.be/KVGK5FKm-Ng\" target=\"_blank\">Upload Images to Dropbox</a> (1:10)<br/>\n<a href=\"http://youtu.be/g_XfK9iLv7s\" target=\"_blank\">The Dashboard</a> (3:53)<br/>\n<a href=\"http://youtu.be/ZntfnFEocn8\" target=\"_blank\">Writing and Saving a Draft</a> (6:10)<br/>\n<a href=\"http://youtu.be/vSx0xOQms78\" target=\"_blank\">Changing Post Status</a> (0:34)<br/>\n<a href=\"http://youtu.be/GZvMRQlP-9c\" target=\"_blank\">Upload to and Crop Images on Website</a> (5:46)<br/>\n<a href=\"http://youtu.be/zrBjk92WQB4\" target=\"_blank\">Publish Cat Profile</a> (1:12)<br/>\nCreate a PDF of profile (later, I have to make a few modifications first)';\n}", "function dd_testimonials_widget() {\r\n\r\n\t\t/* Widget settings. */\r\n\t\t$widget_ops = array( 'classname' => 'dd_testimonials_widget', 'description' => __('A widget that displays testimonials.', 'localization') );\r\n\r\n\t\t/* Widget control settings. */\r\n\t\t$control_ops = array( 'width' => 300, 'height' => 350, 'id_base' => 'dd_testimonials_widget' );\r\n\r\n\t\t/* Create the widget. */\r\n\t\t$this->WP_Widget( 'dd_testimonials_widget', __('DD Testimonials Widget', 'localization'), $widget_ops, $control_ops );\r\n\t}", "public function getView(){ }", "function mts_ad_300_Widget() {\n\n\t// Widget settings\n\t$widget_ops = array(\n\t\t'classname' => 'mts_ad_300_widget',\n\t\t'description' => __('A widget for 300 x 250 ad (Single banner)', 'framework')\n\t);\n\n\t// Widget control settings\n\t$control_ops = array(\n\t\t'width' => 300,\n\t\t'height' => 350,\n\t\t'id_base' => 'mts_ad_300_widget'\n\t);\n\n\t// Create the widget\n\t$this->WP_Widget( 'mts_ad_300_widget', __('MyThemeShop: 300x250 Ad', 'framework'), $widget_ops, $control_ops );\n\t\n}", "public function widget()\n {\n # Load view\n $view = View::make('admin.files_library.grid');\n\n # Fetch all files\n $files = FileLibrary::select('*')->withLanguage(LANG);\n\n # Filtration\n if (Input::has('yearmonth')) {\n $files->whereRaw('DATE_FORMAT(uploaded_date, \"%y%m\") = ?', [Input::get('yearmonth')]);\n }\n\n # Ordering\n $files->orderBy('uploaded_date', 'desc');\n\n # Pagination\n $per_page = 12;\n $records = $files->paginate($per_page);\n\n $view->with('files', $records);\n\n # Get files archive\n $view->with('archives', FileLibrary::archiveList());\n\n return $view;\n }", "function ois_load_widgets() {\r\n register_widget( 'OptinSkin_Widget' );\r\n}", "function itstar_widget() {\n// register_widget( 'last_products_widget' );\n// register_widget( 'last_projects_widget' );\n register_widget( 'last_posts_by_cat_widget' );\n register_widget( 'contact_info_widget' );\n// register_widget( 'social_widget' );\n}", "abstract protected function getView();", "public function widgets() {\r\n\t\t// Make sure the user has capability.\r\n\t\tif ( Permission::user_can( 'analytics' ) || ! is_admin() ) {\r\n\t\t\t// Most popular contents.\r\n\t\t\tregister_widget( Widgets\\Popular::instance() );\r\n\t\t}\r\n\t}", "static function register_widget() {\n\t\t\t$classname = get_called_class();\n\t\t\tregister_widget( $classname );\n\t\t}", "public function widget( $args, $instance ){}", "function custom_register_widget()\n{\n register_widget('oferta_widget');\n register_widget('events_widget');\n register_widget('group_list_widget');\n}", "function wpb_load_widget() {\r\n\tregister_widget( 'wpb_widget' );\r\n}", "function wpb_load_widget() {\n register_widget( 'wpb_widget' );\n}", "function wpb_load_widget() {\n register_widget( 'wpb_widget' );\n}", "public function widget($widget, $config = [])\n {\n return $this->resolveAndCall($widget, 'widget', [\n $config,\n ]);\n }", "public function run()\n {\n $this->render('search-triple-widget');\n }", "public static function a_widget_init() {\n\t\t\treturn register_widget(__CLASS__);\n\t\t}", "function msdlab_homepage_widgets(){\n\tprint '<div id=\"homepage-widgets\" class=\"widget-area\">';\n\tprint '<div class=\"wrap\"><div class=\"row\">';\n dynamic_sidebar('homepage-widgets');\n \tprint '</div></div>';\n\tprint '</div>';\n}", "function cm_load_widget_r() {\n\tregister_widget( 'cm_widget_r' );\n}", "abstract protected function renderView();", "function rs_load_widget()\n{\n\tregister_widget('rs_Widget_Agenda');\n}", "public function setInit()\n {\n $container = strtoupper($this->getCurrentWidget()->getPlugin());\n $NameAction = strtolower($this->getCurrentWidget()->getAction());\n $method = \":\"; \n $xmlConfig = $this->getCurrentWidget()->getConfigXml(); \n // if the configXml field of the widget isn't configured correctly.\n try {\n $xmlConfig = new \\Zend_Config_Xml($xmlConfig);\n } catch (\\Exception $e) {\n return \" \\n\";\n } \n // we add all css files.\n if ( $xmlConfig->widgets->get('css') ){\n \tif (is_object($xmlConfig->widgets->css)) {\n \t\t$all_css = $xmlConfig->widgets->css->toArray();\n \t\t$this->script['init'][$container.$NameAction.$method.'css'] = \"{% initWidget('css:\".json_encode($all_css, JSON_UNESCAPED_UNICODE).\"') %}\";\n \t} elseif (is_string($xmlConfig->widgets->css)) {\n \t\t$this->script['init'][$container.$NameAction.$method.'css'] = \"{% initWidget('css:\".json_encode(array($xmlConfig->widgets->css), JSON_UNESCAPED_UNICODE).\"') %}\";\n \t}\n }\n // we add all js files.\n if ( $xmlConfig->widgets->get('js') ){\n \tif (is_object($xmlConfig->widgets->js)) {\n \t\t$all_js = $xmlConfig->widgets->js->toArray();\n \t\t$this->script['init'][$container.$NameAction.$method.'js'] = \"{% initWidget('js:\".json_encode($all_js, JSON_UNESCAPED_UNICODE).\"') %}\";\n \t} elseif (is_string($xmlConfig->widgets->js)) {\n \t\t$this->script['init'][$container.$NameAction.$method.'js'] = \"{% initWidget('js:\".json_encode(array($xmlConfig->widgets->js), JSON_UNESCAPED_UNICODE).\"') %}\";\n \t}\n }\n // we apply init methods of the applyed service.\n if ( $xmlConfig->widgets->get('gedmo') && $xmlConfig->widgets->gedmo->get('controller') ) {\n $controller = $xmlConfig->widgets->gedmo->controller;\n $values = explode(':', $controller);\n $entity = strtolower($values[1]);\n $method .= strtolower($values[2]);\n $this->script['init'][$container.$NameAction.$method] = \"{% initWidget('\". $container . \":\" . $NameAction . $method .\"') %}\";\n }elseif ( $xmlConfig->widgets->get('content') && $xmlConfig->widgets->content->get('controller') ) {\n $controller = $xmlConfig->widgets->content->controller;\n str_replace(':', ':', $controller, $count);\n if ($count == 1) {\n $this->script['init'][$container.$NameAction.$method] = \"{% initWidget('\". $container . \":\" . $NameAction . \":\" . $controller .\"') %}\";\n }\n }elseif ( $xmlConfig->widgets->get('search') && $xmlConfig->widgets->search->get('controller') ) {\n $controller = $xmlConfig->widgets->search->controller;\n str_replace(':', ':', $controller, $count);\n if ($count == 1) {\n $this->script['init'][$container.$NameAction.$method] = \"{% initWidget('\". $container . \":\" . $NameAction . \":\" . $controller .\"') %}\";\n }\n } else {\n $this->script['init'][$container.$NameAction.$method] = \"{% initWidget('\". $container . \":\" . $NameAction . $method .\"') %}\";\n }\n }", "public function renderWidget($node)\r\n\t{\r\n\t\t$heading = str_replace('{heading}', $node->heading, Yii::app()->cms->widgetHeadingTemplate);\r\n\t\t$content = $this->renderHeading($heading, $node->body);\r\n\t\t$content = $this->renderURLs($content);\r\n\t\t$content = $this->renderLinks($content);\r\n\t\t$content = $this->renderEmails($content);\r\n\t\t$content = $this->renderImages($content);\r\n\t\t$content = $this->renderAttachments($content);\r\n\t\t$content = $this->removeNodes($content); // widgets do not render inline nodes\r\n\t\treturn $content;\r\n\t}", "static function widgets($widgets = array( )) {\n\t\t$path = '';\n\t\tif ( !empty( $widgets ) ) {\n\t\t\tforeach ( $widgets as $widget ) {\n\t\t\t\t// 1. include the class based on $widget, throw an error if not exists\n\t\t\t\t// any other way than via create_function?\n\t\t\t\tadd_action( 'widgets_init', create_function( '', 'register_widget( \"' . $widget . '\" );' ) );\n\t\t\t}\n\t\t}\n\t}", "function whichet_load_widget() {\n\tregister_widget( 'WHICHet_widget' );\n\tadd_action( 'wp_enqueue_script', 'WHICHet_scripts' );\n}", "public function render()\n {\n return view('components.slider-home', [\n // 'slider' => Slider::where('active', true)->orderBy('seq_no')->get()\n 'sliders' => WpRevsliderSlide::orderBy('slide_order')->get()\n ]);\n }", "public function run()\n {\n $userLinks = $this->getLinksCreatedByUser();\n\n return view('export-link::widgets.export_with_link_widget', [\n 'config' => $this->config,\n 'domain' => $this->config['domain'],\n 'module' => $this->config['module'],\n 'user' => $this->config['user'],\n 'userLinks' => $userLinks,\n ]);\n }", "public function output_widget_control_templates()\n {\n }", "function wpb_load_widget() {\n\t\tregister_widget( 'dmv_widget' );\n\t}", "function widget( $args, $instance ) {\n\n \textract($args);\n \t$title = apply_filters('widget_title', $instance['title'] );\n \t$num_articles = $instance['num_articles'];\n \t$display_image = $instance['display_image'];\n\n \t$options = get_option('pgnyt_articles');\n \t$pgnyt_results = $options['pgnyt_results'];\n\n \trequire ('inc/front-end.php');\n }", "function gardenia_load_widget() {\n\tregister_widget( 'gardenia_widget' );\n}" ]
[ "0.6711811", "0.65239656", "0.63599604", "0.6331781", "0.62933594", "0.6291836", "0.6262531", "0.6262086", "0.6259385", "0.62564486", "0.6214252", "0.6214252", "0.6206233", "0.62037337", "0.6199408", "0.60810983", "0.6030457", "0.6028391", "0.60109574", "0.59622276", "0.595554", "0.593844", "0.58859533", "0.5883622", "0.5869275", "0.58675355", "0.5831166", "0.58186877", "0.5814873", "0.5813", "0.57813764", "0.5774501", "0.5732289", "0.57301044", "0.5721143", "0.56887424", "0.5688341", "0.56837326", "0.56831104", "0.567482", "0.56674576", "0.56531376", "0.565307", "0.564818", "0.5625688", "0.5595734", "0.55888766", "0.55866265", "0.55847365", "0.55665696", "0.5551649", "0.5551504", "0.5546908", "0.55358785", "0.5534582", "0.5524758", "0.5524582", "0.552457", "0.5523259", "0.55212706", "0.55137426", "0.5511223", "0.55104667", "0.55076253", "0.55076253", "0.5505813", "0.5500328", "0.54978067", "0.54968613", "0.549524", "0.54904044", "0.5489995", "0.54886585", "0.5475868", "0.5474673", "0.547465", "0.5471086", "0.54706615", "0.54681015", "0.54665697", "0.5452599", "0.5450927", "0.5450927", "0.54449564", "0.54397327", "0.54283714", "0.5424695", "0.5423951", "0.54230285", "0.54022264", "0.5396868", "0.5376244", "0.5372713", "0.53707373", "0.53684336", "0.5366639", "0.5348038", "0.53393435", "0.53387946", "0.533605" ]
0.5790043
30
/ Description: The code for the registration form (Ratsit). Ajax api, db table for zip codes, SOAP call to ratsit.se Author: Kristian Erendi Author URI: Date: 20121206 License: GNU General Public License version 3.0 License URI: Version: 1.0 Enqueue some java scripts
function ratsit_scripts() { wp_deregister_script('jquery'); wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js'); wp_enqueue_script('jquery'); //wp_register_script('validate', 'http://jzaefferer.github.com/jquery-validation/jquery.validate.js'); wp_register_script('validate', 'http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.js'); //wp_register_script('validate', 'https://raw.github.com/jzaefferer/jquery-validation/master/jquery.validate.js'); //wp_register_script('validate_additional', 'https://raw.github.com/jzaefferer/jquery-validation/master/additional-methods.js'); wp_enqueue_script('validate'); //wp_enqueue_script('validate_additional'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function registrationPage() {\n\t\t $display = &new jzDisplay();\n\t\t $be = new jzBackend();\n\t\t $display->preHeader('Register',$this->width,$this->align);\n\t\t $urla = array();\n\n\t\t if (isset($_POST['field5'])) {\n\t\t $user = new jzUser(false);\n\t\t if (strlen($_POST['field1']) == 0 ||\n\t\t\t\t\tstrlen($_POST['field2']) == 0 ||\n\t\t\t\t\tstrlen($_POST['field3']) == 0 ||\n\t\t\t\t\tstrlen($_POST['field4']) == 0 ||\n\t\t\t\t\tstrlen($_POST['field5']) == 0) {\n\t\t echo \"All fields are required.<br>\";\n\t\t }\n\t\t else if ($_POST['field2'] != $_POST['field3']) {\n\t\t echo \"The passwords do not match.<br>\";\n\t\t }\n\t\t else if (($id = $user->addUser($_POST['field1'],$_POST['field2'])) === false) {\n\t\t echo \"Sorry, this username already exists.<br>\";\n\t\t } else {\n\t\t // success!\n\t\t $stuff = $be->loadData('registration');\n\t\t $classes = $be->loadData('userclasses');\n\t\t $settings = $classes[$stuff['classname']];\n\n\t\t $settings['fullname'] = $_POST['field4'];\n\t\t $settings['email'] = $_POST['field5'];\n\t\t $un = $_POST['field1'];\n\t\t $settings['home_dir'] = str_replace('USERNAME',$un,$settings['home_dir']);\n\t\t $user->setSettings($settings,$id);\n\n\t\t echo \"Your account has been created. Click <a href=\\\"\" . urlize($urla);\n\t\t echo \"\\\">here</a> to login.\";\n\t\t $this->footer();\n\t\t return;\n\t\t }\n\t\t }\n\n\t\t ?>\n\t\t\t<form method=\"POST\" action=\"<?php echo urlize($urla); ?>\">\n\t\t\t<input type=\"hidden\" name=\"<?php echo jz_encode('action'); ?>\" value=\"<?php echo jz_encode('login'); ?>\">\n\t\t\t<input type=\"hidden\" name=\"<?php echo jz_encode('self_register'); ?>\" value=\"<?php echo jz_encode('true'); ?>\">\n\t\t\t<table width=\"100%\" cellpadding=\"5\" style=\"padding:5px;\" cellspacing=\"0\" border=\"0\">\n\t\t\t<tr>\n\t\t\t<td width=\"50%\" align=\"right\"><font size=\"2\">\n\t\t\t<?php echo word(\"Username\"); ?>\n\t\t\t</font></td><td width=\"50%\">\n\t\t\t<input type=\"text\" class=\"jz_input\" name=\"field1\" value=\"<?php echo $_POST['field1']; ?>\">\n\t\t\t</td></tr>\n\t\t\t<tr><td width=\"50%\" align=\"right\"><font size=\"2\">\n\t\t\t<?php echo word(\"Password\"); ?>\n\t\t\t</font></td>\n\t\t\t<td width=\"50%\">\n\t\t\t<input type=\"password\" class=\"jz_input\" name=\"field2\" value=\"<?php echo $_POST['field2']; ?>\"></td></tr>\n\t\t\t <tr><td width=\"50%\" align=\"right\"><font size=\"2\">\n\t\t\t &nbsp;\n\t\t\t</td>\n\t\t\t<td width=\"50%\">\n\t\t\t<input type=\"password\" class=\"jz_input\" name=\"field3\" value=\"<?php echo $_POST['field3']; ?>\"></td></tr>\n\t\t\t<tr><td width=\"50%\" align=\"right\"><font size=\"2\">\n\t\t\t<?php echo word(\"Full name\"); ?>\n\t\t\t</font></td><td width=\"50%\">\n\t\t\t<input type=\"text\" class=\"jz_input\" name=\"field4\" value=\"<?php echo $_POST['field4']; ?>\">\n\t\t\t</td></tr>\n\t\t\t<tr><td width=\"50%\" align=\"right\"><font size=\"2\">\n\t\t\t<?php echo word(\"Email\"); ?>\n\t\t\t</font></td><td width=\"50%\">\n\t\t\t<input type=\"text\" class=\"jz_input\" name=\"field5\" value=\"<?php echo $_POST['field5']; ?>\">\n\t\t\t</td></tr>\n\t\t\t<tr><td width=\"100%\" colspan=\"2\" align=\"center\">\n\t\t\t<input class=\"jz_submit\" type=\"submit\" name=\"<?php echo jz_encode('submit_login'); ?>\" value=\"<?php echo word(\"Register\"); ?>\">\n\t\t\t</td></tr></table><br>\n\t\t\t</form>\n\t\t\t<?php\n\t\t $this->footer();\n\t }", "private function _registerForm()\n\t{\n\t\tglobal $MySmartBB;\n\t\t\n\t\t$MySmartBB->func->showHeader( $MySmartBB->lang[ 'template' ][ 'registering' ] );\n\t\t\n\t\t$MySmartBB->plugin->runHooks( 'register_main' );\n\t\t\n\t\t$MySmartBB->template->display( 'register' );\n\t}", "private function genRegistration()\n {\n ob_start(); ?>\n <form name=\"login\" action=\"./\" method=\"post\">\n <fieldset class=\"uk-fieldset\">\n <legend class=\"uk-legend\">[[legend]]</legend>\n <div class=\"uk-margin\">\n <div class=\"uk-margin-small-bottom\">\n <div class=\"uk-inline\">\n <span class=\"uk-form-icon\" uk-icon=\"icon: user\"></span>\n <input class=\"uk-input\" type=\"text\" name=\"username\" value=\"[[value_username]]\"\n placeholder=\"[[placaholder_username]]\">\n </div>\n </div>\n <div class=\"uk-margin-small-bottom\">\n <div class=\"uk-inline\">\n <span class=\"uk-form-icon\" uk-icon=\"icon: mail\"></span>\n <input class=\"uk-input\" type=\"email\" name=\"email\" value=\"[[value_email]]\"\n placeholder=\"[[placaholder_email]]\">\n </div>\n </div>\n <div class=\"uk-margin-small-bottom\">\n <div class=\"uk-inline\">\n <span class=\"uk-form-icon\" uk-icon=\"icon: lock\"></span>\n <input class=\"uk-input\" type=\"password\" name=\"password\" placeholder=\"[[placaholder_password]]\">\n </div>\n </div>\n <div class=\"uk-margin-small-bottom\">\n <div class=\"uk-inline\">\n <span class=\"uk-form-icon\" uk-icon=\"icon: lock\"></span>\n <input class=\"uk-input\" type=\"password\" name=\"confirm\" placeholder=\"[[placaholder_confirm]]\">\n </div>\n </div>\n <p>[[terms_and_conditions_text]] <a href=\"../privacy-policy/\">[[terms_and_conditions_link]]</a></p>\n <div class=\"uk-margin-bottom\">\n <input type=\"hidden\" name=\"action\" value=\"registration\">\n <button class=\"uk-button uk-button-default\">[[submit_text]]</button>\n </div>\n </div>\n <p>[[login_text]] <span uk-icon=\"icon: link\"></span> <a href=\"../login/\">[[login_link]]</a></p>\n </fieldset>\n </form>\n <?php return ob_get_clean();\n }", "function TrialSignupForm(){\n\t $cardType = array(\n\t \t\"visa\"=>\"<img src='themes/attwiz/images/visa.png' height=30px></img>\",\n\t \t\"mc\"=>\"<img src='themes/attwiz/images/mastercard.jpeg' height=30px></img>\",\n\t \t\"amex\"=>\"<img src='themes/attwiz/images/ae.jpeg' height=30px></img>\",\n\t \t\"discover\"=>\"<img src='themes/attwiz/images/discover.jpeg' height=30px></img>\"\n\t );\n\t $monthArray = array();\n\t for($i =1;$i <=12; $i++){\n\t \t$monthArray[$i]=date('F',mktime(0,0,0,$i));\n\t }\n\t\t$yearArray = array();\n\t $currentYear = date('Y');\n\t\tfor($i =0;$i <=10; $i++){\n\t \t$yearArray[$currentYear+$i]=$currentYear+$i;\n\t }\n\t $trialExpiryDate = date('F-j-Y',mktime(0,0,0,date('n')+1,date('j'),date('Y')));\n\t $subscriptionInfo = \"<div id='SubscriptionInfo'><h2>Post-Trial Subscription Selection</h2>\n\t <p>Your 10 heatmaps will expire on $trialExpiryDate, at which time your account \n\t will be replenished with a new allocation of heatmap credits according to the \n\t subscription level you choose below. You may cancel your subscription any time \n\t before your trial period ends and your credit card will only be charged 1 dollar.</p></div>\";\n\t $subscriptionType = array(\n\t \t\t\"1\"=>\"Bronze - (10 heatmaps for $27.00 / month)\",\n\t \t\t\"2\"=>\"Silver - (50 heatmaps for $97.00 / month)\",\n\t \t\t\"3\"=>\"Gold - (200 heatmaps for $197.00 / month)\"\n\t );\n\t\t$whatsThis = '<span id=\"WhatsThis\"><a id=\"WhatsThisImage\" href=\"themes/attwiz/images/cvv.jpg\" title=\"What\\'s this?\">What\\'s this?</a></span>';\n\t\t$fields = new FieldList(\n\t\t\tnew TextField('FirstName', 'First Name'),\n\t\t\tnew TextField('LastName', 'Last Name'),\n\t\t\tnew TextField('Company', 'Company(optional)'),\n\t\t\tnew TextField('StreetAddress1', 'Street Address1'),\n\t\t\tnew TextField('StreetAddress2', 'Street Address2(optional)'),\n\t\t\tnew TextField('City', 'City'),\n\t\t\tnew TextField('State', 'State/Province'),\n\t\t\tnew TextField('PostalCode', 'Zip/Poatal Code'),\n\t\t\tnew CountryDropdownField('Country'),\n\t\t\tnew OptionsetField('CreditCardType','Credit Card Type',$cardType,'visa'),\n\t\t\tnew TextField('NameOnCard', 'Name On Card'),\n\t\t\tnew NumericField('CreditCardNumber', 'Credit Card Number'),\n\t\t\tnew PasswordField('CVVCode', 'Security/CVV Code'),\n\t\t\tnew LiteralField('WhatIsThis', $whatsThis),\n\t\t\tnew DropdownField('ExpirationMonth','Expiration Date',$monthArray),\n\t\t\tnew DropdownField('ExpirationYear','',$yearArray),\n\t\t\tnew LiteralField('SubscriptionInfo', $subscriptionInfo),\n\t\t\tnew OptionsetField('SubscriptionType','',$subscriptionType,'1'),\n\t\t\tnew CheckboxField('Agreement',' I understand that this is a recurring subscription and I will be billed monthly unless I cancel.')\n\t\t);\n\t // Create action\n\t $actions = new FieldList(\n\t\t\t$submit = new FormAction('doSignup','Start Trial')\n\t );\n\t $submit->setAttribute('src', 'themes/attwiz/images/button_startmytrialnow.gif');\n\t\t// Create action\n\t\t$validator = new RequiredFields(\n\t\t\t\t\t\t\t'FirstName',\n\t\t\t\t\t\t\t'LastName',\n\t\t\t\t\t\t\t'StreetAddress1',\n\t\t\t\t\t\t\t'City',\n\t\t\t\t\t\t\t'State',\n\t\t\t\t\t\t\t'PoatalCode',\n\t\t\t\t\t\t\t'Country',\n\t\t\t\t\t\t\t'CreditCardType',\n\t\t\t\t\t\t\t'NameOnCard',\n\t\t\t\t\t\t\t'CreditCardNumber',\n\t\t\t\t\t\t\t'CVVCode',\n\t\t\t\t\t\t\t'ExpirationMonth',\n\t\t\t\t\t\t\t'ExpirationYear',\n\t\t\t\t\t\t\t'SubscriptionInfo',\n\t\t\t\t\t\t\t'SubscriptionType'\n\t\t);\n\t\t\n\t\t$validator = null;\n\t \t$form = new Form($this, 'TrialSignupForm', $fields, $actions, $validator);\n\t \t$data = Session::get(\"FormInfo.Form_TrialSignupForm.data\"); \n\t\tif(is_array($data)) \n\t\t $form->loadDataFrom($data);\n\t\treturn $form;\t\t\n\t}", "function m_dspSignupForm()\n\t{\n\t\t#INTIALIZING TEMPLATES\n\t\t$this->ObTpl=new template();\n\t\t$this->ObTpl->set_file(\"TPL_USER_FILE\", $this->userTemplate);\n\t\t$this->ObTpl->set_var(\"GRAPHICSMAINPATH\",GRAPHICS_PATH);\t\n\t\t$this->ObTpl->set_var(\"TPL_VAR_SITEURL\",SITE_URL);\n\t\t$this->ObTpl->set_block(\"TPL_USER_FILE\",\"TPL_NEWSLETTER_BLK\",\"news_blk\");\n\t//\t$this->ObTpl->set_block(\"TPL_USER_FILE\",\"DSPMSG_BLK\", \"msg_blk\");\n\t\t$this->ObTpl->set_block(\"TPL_USER_FILE\",\"TPL_CAPTCHA_BLK\",\"captcha_blk\");\n\t\t$this->ObTpl->set_var(\"captcha_blk\",\"\");\n\t\t$this->ObTpl->set_block(\"TPL_USER_FILE\",\"countryblk\",\"countryblks\");\n\t\t$this->ObTpl->set_block(\"TPL_USER_FILE\",\"BillCountry\",\"nBillCountry\");\n\t\t$this->ObTpl->set_block(\"TPL_USER_FILE\",\"stateblk\",\"stateblks\");\n\t\t$this->ObTpl->set_var(\"TPL_USERURL\",SITE_URL.\"user/\");\n\t\t$this->ObTpl->set_var(\"TPL_VAR_CPASS\",\"\");\n\t\t$this->ObTpl->set_var(\"news_blk\",\"\");\n\t\t$this->ObTpl->set_var(\"TPL_VAR_MSG\",\"\");\n\t\t$this->ObTpl->set_var(\"TPL_VAR_CHECK1\",\"\");\n\t\t$this->ObTpl->set_var(\"TPL_VAR_CHECK2\",\"\");\n\t\t$this->ObTpl->set_var(\"TPL_VAR_CHECK3\",\"\");\n\n\t\t#INTIALIZING\n\t\t$row_customer[0]->vFirstName = \"\";\n\t\t$row_customer[0]->vLastName =\"\";\n\t\t$row_customer[0]->vEmail = \"\";\n\t\t$row_customer[0]->vPassword = \"\";\n\t\t$row_customer[0]->vPhone = \"\";\n\t\t$row_customer[0]->vCompany = \"\";\n\t\t$row_customer[0]->vAddress1 = \"\";\n\t\t$row_customer[0]->vAddress2 = \"\";\n\t\t$row_customer[0]->vState =\"\";\n\t\t$row_customer[0]->vStateName=\"\";\n\t\t$row_customer[0]->vCity = \"\";\n\t\t$row_customer[0]->vCountry = \"\";\t\n\t\t$row_customer[0]->vZip = \"\";\t\n\t\t$row_customer[0]->vHomePage = \"\";\t\n\t\t$row_customer[0]->fMemberPoints = \"\";\n\t\t$row_customer[0]->iMailList = \"1\";\n\t\t$row_customer[0]->iStatus = \"1\";\n\n\n\t\t/*CHECKING FOR POST VARIABLES\n\t\tIF VARIABLES ARE SET THEN ASSIGNING THEIR VALUE TO VARIABLE SAMEVARIABLE\n\t\tAS USED WHEN RETURNED FROM DATABASE\n\t\tTHIS THING IS USED TO REMOVE REDUNDANCY AND USE SAME FORM FOR EDIT AND INSERT*/\n\n\t\tif(count($_POST) > 0)\n\t\t{\n\t\t\tif(isset($this->request[\"first_name\"]))\n\t\t\t\t$row_customer[0]->vFirstName = $this->request[\"first_name\"];\n\t\t\tif(isset($this->request[\"password\"]))\n\t\t\t\t$row_customer[0]->vPassword = $this->request[\"password\"];\n\t\t\t$this->ObTpl->set_var(\"TPL_VAR_CPASS\", $this->libFunc->m_displayContent($this->request[\"verify_pw\"]));\n\t\t\tif(isset($this->request[\"last_name\"]))\n\t\t\t\t$row_customer[0]->vLastName = $this->request[\"last_name\"];\n\t\n\t\t\tif(isset($this->request[\"company\"]))\n\t\t\t\t$row_customer[0]->vCompany = $this->request[\"company\"];\n\t\t\tif(isset($this->request[\"txtemail\"]))\n\t\t\t\t$row_customer[0]->vEmail = $this->request[\"txtemail\"];\n\t\t\tif(isset($this->request[\"address1\"]))\n\t\t\t\t$row_customer[0]->vAddress1 = $this->request[\"address1\"];\n\t\t\tif(isset($this->request[\"address2\"]))\n\t\t\t\t$row_customer[0]->vAddress2 = $this->request[\"address2\"];\n\t\t\tif(isset($this->request[\"city\"]))\n\t\t\t\t$row_customer[0]->vCity = $this->request[\"city\"];\n\t\t\tif(isset($this->request[\"bill_state_id\"]))\n\t\t\t\t$row_customer[0]->vState = $this->request[\"bill_state_id\"];\t\n\t\t\tif(isset($this->request[\"bill_state\"]))\n\t\t\t\t$row_customer[0]->vStateName = $this->request[\"bill_state\"];\t\n\t\t\tif(isset($this->request[\"zip\"]))\n\t\t\t\t$row_customer[0]->vZip = $this->request[\"zip\"];\t\n\t\t\tif(isset($this->request[\"bill_country_id\"]))\n\t\t\t\t$row_customer[0]->vCountry = $this->request[\"bill_country_id\"];\t\n\t\t\tif(isset($this->request[\"phone\"]))\n\t\t\t\t$row_customer[0]->vPhone = $this->request[\"phone\"];\t\n\t\t\tif(isset($this->request[\"homepage\"]))\n\t\t\t\t$row_customer[0]->vHomePage = $this->request[\"homepage\"];\t\n\t\t\tif(isset($this->request[\"mail_list\"]))\n\t\t\t\t$row_customer[0]->iMailList = $this->request[\"mail_list\"];\t\n\t\t\tif(isset($this->request[\"member_points\"]))\n\t\t\t\t$row_customer[0]->fMemberPoints = $this->request[\"member_points\"];\t\n\t\t\tif(isset($this->request[\"iStatus\"]))\n\t\t\t\t$row_customer[0]->iStatus = $this->request[\"status\"];\t\n\t\t\telse\n\t\t\t\t$row_customer[0]->iStatus = \"\";\n\t\t}\n\t\n\t\t#DISPLAYING MESSAGES\n\t\tif($this->err==1)\n\t\t{\n\t\t\t$this->ObTpl->set_var(\"TPL_VAR_MSG\",$this->errMsg);\n\t\t}\n\n\n\t\t#IF EDIT MODE SELECTED\n\n\t\t#ASSIGNING FORM ACTION\t\t\t\t\t\t\n\t\t$this->ObTpl->set_var(\"FORM_URL\", SITE_URL.\"user/adminindex.php?action=user.updateUser\");\n\t\t\n\t\t$this->obDb->query = \"SELECT iStateId_PK, vStateName FROM \".STATES.\" ORDER BY vStateName\";\n\t\t$row_state = $this->obDb->fetchQuery();\n\t\t$row_state_count = $this->obDb->record_count;\n\t\t\n\t\t$this->obDb->query = \"SELECT iCountryId_PK, vCountryName, vShortName FROM \".COUNTRY.\" ORDER BY iSortFlag,vCountryName\";\n\t\t$row_country = $this->obDb->fetchQuery();\n\t\t$row_country_count = $this->obDb->record_count;\n\n\t\t# Loading billing country list\t\t\n\t\tfor($i=0;$i<$row_country_count;$i++)\n\t\t{\n\t\t\t$this->ObTpl->set_var(\"k\", $row_country[$i]->iCountryId_PK);\n\t\t\t$this->ObTpl->parse('countryblks','countryblk',true);\n\t\t\t$this->ObTpl->set_var(\"TPL_COUNTRY_VALUE\", $row_country[$i]->iCountryId_PK);\n\t\t\t\n\t\t\t\n\t\t\tif($row_customer[0]->vCountry> 0)\n\t\t\t{\n\t\t\t\tif($row_customer[0]->vCountry == $row_country[$i]->iCountryId_PK)\n\t\t\t\t\t$this->ObTpl->set_var(\"BILL_COUNTRY_SELECT\", \"selected=\\\"selected\\\"\");\n\t\t\t\telse\n\t\t\t\t\t$this->ObTpl->set_var(\"BILL_COUNTRY_SELECT\", \"\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t\t$row_customer[0]->vCountry = SELECTED_COUNTRY;\n\t\t\t\t\t//echo SELECTED_COUNTRY;\n\n\t\t\t\t\tif($row_country[$i]->iCountryId_PK==$row_customer[0]->vCountry)\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->ObTpl->set_var(\"BILL_COUNTRY_SELECT\",\"selected=\\\"selected\\\"\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->ObTpl->set_var(\"BILL_COUNTRY_SELECT\", \"\");\n\t\t\t\t\t}\n\t\t\t}\t\n\n\t\t\t$this->ObTpl->set_var(\"TPL_COUNTRY_NAME\",$this->libFunc->m_displayContent($row_country[$i]->vCountryName));\n\t\t\t$this->ObTpl->parse(\"nBillCountry\",\"BillCountry\",true);\n\t\t}\n\t\t\n\t\tif(isset($row_customer[0]->vCountry) && $row_customer[0]->vCountry != '')\t\n\t\t\t$this->ObTpl->set_var('selbillcountid',$row_customer[0]->vCountry);\n\t\telse\n\t\t\t$this->ObTpl->set_var('selbillcountid',\"251\");\n\n\n\t\tif(isset($row_customer[0]->vState) && $row_customer[0]->vState != '')\n\t\t\t$this->ObTpl->set_var('selbillstateid',$row_customer[0]->vState);\n\t\telse\n\t\t\t$this->ObTpl->set_var('selbillstateid',0);\n\t\t\n\t\t\t\n\t\t\n\t\t# Loading the state list here\n\t\t$this->obDb->query = \"SELECT C.iCountryId_PK as cid,S.iStateId_PK as sid,S.vStateName as statename FROM \".COUNTRY.\" C,\".STATES.\" S WHERE S.iCountryId_FK=C.iCountryId_PK ORDER BY C.vCountryName,S.vStateName\";\n\t\t$cRes = $this->obDb->fetchQuery();\n\t\t$country_count = $this->obDb->record_count;\n\n\t\tif($country_count == 0)\n\t\t{\n\t\t\t$this->ObTpl->set_var(\"countryblks\", \"\");\n\t\t\t$this->ObTpl->set_var(\"stateblks\", \"\");\n\t\t}\n\t\telse\n\t\t{\n\t\t$loopid=0;\n\t\t\tfor($i=0;$i<$country_count;$i++)\n\t\t\t{\n\t\t\t\tif($cRes[$i]->cid==$loopid)\n\t\t\t\t{\n\t\t\t\t\t$stateCnt++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$loopid=$cRes[$i]->cid;\n\t\t\t\t\t$stateCnt=0;\n\t\t\t\t}\n\t\t\t\t$this->ObTpl->set_var(\"i\", $cRes[$i]->cid);\n\t\t\t\t$this->ObTpl->set_var(\"j\", $stateCnt);\n\t\t\t\t$this->ObTpl->set_var(\"stateName\",$cRes[$i]->statename);\n\t\t\t\t$this->ObTpl->set_var(\"stateVal\",$cRes[$i]->sid);\n\t\t\t\t$this->ObTpl->parse('stateblks','stateblk',true);\n\t\t\t}\n\t\t}\n\n\n\t\t#ASSIGNING FORM VARAIABLES\n\n\t\t$this->ObTpl->set_var(\"TPL_VAR_FNAME\", $this->libFunc->m_displayContent($row_customer[0]->vFirstName));\n\t\t$this->ObTpl->set_var(\"TPL_VAR_LNAME\", $this->libFunc->m_displayContent($row_customer[0]->vLastName));\n\t\t$this->ObTpl->set_var(\"TPL_VAR_EMAIL\", $this->libFunc->m_displayContent($row_customer[0]->vEmail));\n\t\t$this->ObTpl->set_var(\"TPL_VAR_PASS\", $this->libFunc->m_displayContent($row_customer[0]->vPassword));\n\t\t$this->ObTpl->set_var(\"TPL_VAR_ADDRESS1\", $this->libFunc->m_displayContent($row_customer[0]->vAddress1 ));\n\t\t$this->ObTpl->set_var(\"TPL_VAR_ADDRESS2\", $this->libFunc->m_displayContent($row_customer[0]->vAddress2 ));\n\t\t$this->ObTpl->set_var(\"TPL_VAR_CITY\", $this->libFunc->m_displayContent($row_customer[0]->vCity));\n\n\t\t$this->ObTpl->set_var(\"TPL_VAR_STATE\",\n\t\t\t$this->libFunc->m_displayContent($row_customer[0]->vState ));\n\t\tif($row_customer[0]->vState>1)\n\t\t\t{\n\t\t\t\t$this->ObTpl->set_var(\"BILL_STATE\",\"\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->ObTpl->set_var(\"BILL_STATE\",\n\t\t\t\t$this->libFunc->m_displayContent($row_customer[0]->vStateName));\n\t\t\t}\n\t\t$this->ObTpl->set_var(\"TPL_VAR_COUNTRY\",\n\t\t\t$this->libFunc->m_displayContent($row_customer[0]->vCountry ));\n\t\t$this->ObTpl->set_var(\"TPL_VAR_ZIP\",\n\t\t\t$this->libFunc->m_displayContent($row_customer[0]->vZip));\n\t\t$this->ObTpl->set_var(\"TPL_VAR_COMPANY\",\n\t\t\t$this->libFunc->m_displayContent($row_customer[0]->vCompany));\n\t\t$this->ObTpl->set_var(\"TPL_VAR_PHONE\",\n\t\t\t$this->libFunc->m_displayContent($row_customer[0]->vPhone));\n\t\t$this->ObTpl->set_var(\"TPL_VAR_HOMEPAGE\",\n\t\t\t$this->libFunc->m_displayContent($row_customer[0]->vHomePage));\n\t\t\n\t\tif(CAPTCHA_REGISTRATION){\n\t\t\t$this->ObTpl->parse(\"captcha_blk\",\"TPL_CAPTCHA_BLK\",true);\n\t\t}\n\n\t\tif(MAIL_LIST==1)\n\t\t{\n\t\t\tif($row_customer[0]->iMailList==1)\n\t\t\t{\n\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_CHECK1\",\"selected=\\\"selected\\\"\");\n\t\t\t}\n\t\t\telseif($row_customer[0]->iMailList==2)\n\t\t\t{\n\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_CHECK2\",\"selected=\\\"selected\\\"\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_CHECK3\",\"selected=\\\"selected\\\"\");\n\t\t\t}\n\t\t\t$this->ObTpl->parse('news_blk','TPL_NEWSLETTER_BLK');\n\t\t}\n\t\t\n\t\treturn $this->ObTpl->parse(\"return\",\"TPL_USER_FILE\");\n\t}", "public function registerFormCust()\n {\n $error = array();\n if (!empty($_GET['error']))\n {\n $error_string = urldecode($_GET['error']);\n $error = explode(',', $error_string);\n }\n\n require_once('views/FormError.class.php');\n require_once('views/RegistrationForm.class.php');\n $site = new SiteContainer($this->db);\n $error_page = new FormError();\n $form = new RegistrationForm();\n $site->printHeader();\n $site->printNav(\"reg\");\n\n $error_page->printHtml($error);\n $form->printHtml();\n $site->printFooter();\n }", "public function registerAction()\n {\n Lb_Points_Helper_Data::debug_log(\"Registration request sent to LB\", true);\n $txtName = $_POST['txtName'];\n $txtEmail = $_POST['txtEmail'];\n $txtPhoneNumber = $_POST['txtPhoneNumber'];\n $result = Lb_Points_Helper_Data::registerUser($txtName,$txtEmail,$txtPhoneNumber);\n echo json_encode($result);\n }", "public function ulogiraj_registiraj()\r\n\t{\r\n\t\tif(isset($_POST['ulogiraj']))\r\n\t\t{\r\n\t\t\t$this->registry->template->title = 'Login';\r\n\t\t\t$this->registry->template->show( 'login' );\r\n\t\t}\r\n\t\tif(isset($_POST['registriraj']))\r\n\t\t{\r\n\t\t\t$this->registry->template->title = 'Registriraj se';\r\n\t\t\t$this->registry->template->show( 'register' );\r\n\t\t}\r\n\r\n\t}", "public function showRegistrationForm()\n {\n $api = new meta(); \n \n eval(str_rot13(gzinflate(str_rot13(base64_decode('LUnHEuy4DfyarV3flFQqn5TTjGW+uJRmzvptRn7WgQUCYAOkwAaXbbj/2fojXu+hXP4Zh28hsP/My5TMyz/50Ef5/f/J3+pCTotR5CyJ+wuxbNjjMRtW7UMr0BsiBSI0lr8QHZjwJYe/F4lb7IzEVM+mr+5tFMjigVEi4Rhy4QqPaKSMbxQAnV3W6FfsYLm9RzI1123YaArcUu0E/Vyictop3OIs9iWW7zYvS2GP/qgRoeZBqTCXE9GJcRtefAWf+G46MWBcxr3D0rfnF7Q0PvzUUimJleX6jN+m2a9vg+SOcYtZUf1TRwxTKYEn7fG2Q4RaG9oeyCsaEjBpX+4HeWvaUWA2WL9nD+zwyCOmh0pOEymg5TpviAc5l5HIUaEkFAuglHRYcLl5FjxHO/HTs79sT9hS7SXN8eNYjdnT6kZiJ6YWmxqDgLp0YQQmw/SkYdD2T0OWFAd2HALxp+GcxyEcPHclfu0Xvc6fEIB/wBbtmwryi05ShVfZmBm57RyK01QrImpVQWlRPnPxhCMM3xh+Vk9Ox6R4uUSnZYVKWYrW2JjCgWEH9LUKPkIYHkix54yvs/qFK/Js6Cvbs/hx1uurfL0l+1L5Lkp2WvOxZl7XUK6OEfFLE5pX4dy8Omm3cgj90M5w+nZQ9xtz1cp04y9OnfEGCWJcQCGLOQnyTHUzjnE887PNdHafDy5TYaYpoAphi0PMy440gZdQxb7ilSSr+957hKwKgz9lYTgR9G/tRUcburAQ6tZF/8AGuaD3qYu/IJCeTMMzmZsIKw9XGTryCE7+iGW3MA04ZGFl/VpR2TTU6XMdmxho56wS1ulvVxm1hW3DGEELHggN4DonxYaF/krlulPDm68gOVfP1vAppDvO0WiPMnWm6H4vKIf+IV3R6SSiN6WuzFxG1R6yq0K4Oluh3ZjhFcm4OcvofbL6rS/3mzn0jteDiEdwXT2hjHYuId8JqqUWFsL7dBmmmMliyXVAjOTKWvReRnEW/VkoGBE1668gvPUuwS7Y+VVqFLaIA4knPjslnfgAG9NFlwkjtTeysT/lxtRBZDkw8pwhXhM/tCLlfXo138/MXMnAbVyucix6WO5kD54udNlOxdxsCMxeWal1MaWGnIaem12tmkeLHFZE5+zn1Eod9lvj5MZw5k6+n+neWnmlm8Jd7S7HkkhKU87PkgZhKO1EXMqD2XEPFkWcoBQHiRYrFZSeJLrHFLrORoDA98WKH9wNXLrsUMwMulDI2CdJDIG0v063jgK7zrCiisYogr9xq8aR/MiQ9droJ/s8BLjLO/wL7a11uytd5lh0KgbClsOls/05MwxFFOnJ75NUKhIN/5XG7ECN3TJMioaBBbI6eUdRAPTXDiXRmLO6oIitjfUy8bLSd9tD2r2O1SmGnlIEDXLgbeDfgAgshqzLkrpk/qE761J1lQOdAOSHo6EWdENRROjli8Qm1DXJ+UZ1aa+Amc9ItvY7+eBlK08wjl9u+4aWcr7grHEhywW8cl+nExYoZbioJElCnrxHZQi3cce4Pj+Yniq96dprjOVVqEzzddZk4JkjcTNPEJ11Gvl9K8StWXcWwplEC9aPVwlLCQXgTgiYVdfztd7750p1k5lOz/GptrJ7OWWE2lKSzn5GZszO4l5dh0PkNJsb2NUR2yNOtL7jd0lnkIz9CsjM047EOx6XxAFM32OTqB98opYvZJcZUmh6u2Dn/TS4d+LlTFJEbl/Jrvc0v15w3n7OYSqoUIT2qyN8TFvEm+vU96AyLpFN2uilVJd76U9jdzf2vXK5nUfuW5++etyGy8Fmnj2Pwkb0yoCwo27pHNO3A+byO9qJnLHtdlhup5ep0RRiABipKR/SFF8mTY+afNKehHL4/IhYxs7W7jdeIgfESlnYdZwZYzqE+iK+i03xWPWZJ8jUMBv4PSn+Rp0iTRwXr6pCoU3qvBrdWwK5eW9YuqYyKztcW2U+VqQqe8LqWGC5xcVdOBDTQcVYknIwEoQG+5YQIxcSIzZlL0XilwKNFBDm0lu8kAzGtdtkR/GDs1TmqNOjJ0+8sBRu/bUEpXN29ot7SC+1HzQeyxmAIVj9W9ZJb2TyTM9GypnmjT7tDBjPJQPob2V9zF4wb8tYuoiJmVXxID95VLfS8rWwUuDZWYg584jvbInTYA5cLvV6Hi5k1gSwSVcbwA+yIYwvDAND1FShSiokfPWsKImdWgn0dBTNAfu94P6Q+byDS0U6p7yj7ZB18+DHHfdkxN276U3jCsf4b9S6/W0Pd3hrnreI/Ga+/bLjivg5dUo/HKMzn/xgcMLdAvdAY/MCDm2Uj8ZXtqKPK+81cf15e4kHgWil7QsncY4Mz7vYK9J+ONHWuMlE/XrvcKYa1iDmpRquS05LNZJyJD7a3NFPtHTEqhiqlo3g3C8JnESaPRQkpchX+VUvKwU+CPKzOlBl26T6BbpwXEHI7vEv+Fcu9KTa25em2QZw5iaOQW/7yHOGjV0dFI5xIXBhiq3Zg8YFIRvCradTVlp6bOnPJN6Aq7aQISqv98ZjuNTHC/Y3j2tvbt5x62WseCqkhl6Q7R903iSX5wJyWBVPLBd/a9YdKLvREH46dG7j0+NwExm7/3ZtYgNsogkBtD4YVIgRtq6HSnWgvfxHzwqtDdPP43ZJNwup0e/PChk/yLESJJSwj73FqdoQQvfRNR3lyapQPbxrHnN6MW7WCf/sm8LIadbOcGfBmb40ggPuVELqRY39kA+qtvT43vbqTN7LVpyAl5bxBG83mW0Uqc/7V/u9f/Ilr/eaWesfIRtfgXH//hf4/v1f')))));\n\n include'get_ip_info.php';\n return view('auth.register')\n ->with(array(\n 'plans' => plans::orderby('id', 'desc')->get(),\n 'user_country'=>$user_country,\n 'countries'=>$countries,\n 'title'=>'Register',\n 'settings'=>settings::where('id','1')->first(),\n ));\n }", "function pkalrp_reg_print_aweber_form() {\r\n?>\r\n\t<h4>B. REGISTER AS NEW USER</h4>\r\n\t<form method=\"post\" id=\"aweberform\" action=\"http://www.aweber.com/scripts/addlead.pl\" > \r\n\t\r\n <input type=\"hidden\" name=\"custom token\" value=\"\" id=\"token\"/>\r\n\t<input type=\"hidden\" name=\"meta_web_form_id\" value=\"1627425926\" />\r\n\t<input type=\"hidden\" name=\"meta_split_id\" value=\"\" />\r\n\t<input type=\"hidden\" name=\"listname\" value=\"seoalrp\" />\r\n\t<input type=\"hidden\" name=\"redirect\" value=\"<?php echo admin_url('admin.php?page=alrp&next=two&prev=new'); ?>\" id=\"redirect_37315ae94d40c865b5c31ed945729fe1\" />\r\n\t<input type=\"hidden\" name=\"meta_redirect_onlist\" value=\"<?php echo admin_url('admin.php?page=alrp&next=finish&prev=new'); ?>\" />\r\n\t<input type=\"hidden\" name=\"meta_adtracking\" value=\"SEO_ALRP\" />\r\n\t<input type=\"hidden\" name=\"meta_message\" value=\"1\" />\r\n\t<input type=\"hidden\" name=\"meta_required\" value=\"name,email,custom token\" /> \r\n\r\n <table class=\"alrp-regform\">\r\n\t <tr>\r\n\t \t<th><label for=\"name\">First Name:</label></th>\r\n\t \t<td><input id=\"name\" type=\"text\" name=\"name\" class=\"required name\" value=\"\" style=\"text-transform: capitalize;\"/></td>\r\n\t </tr>\r\n\t <tr>\r\n\t\t <th><label for=\"email\">Your Best Email:</label></th>\r\n\t\t <td><input class=\"required email\" id=\"email\" type=\"text\" name=\"email\" value=\"\" /></td>\r\n\t\t </tr>\r\n\t\t<tr>\r\n\t\t\t<th></th>\r\n\t\t\t<td>\r\n\t\t\t\t<input class=\"button-primary\" name=\"submit\" class=\"submit\" type=\"submit\" value=\"Submit\" />\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t</table>\r\n\r\n </form>\r\n<?php\r\n}", "private function _registerStart()\n\t{\n\t\tglobal $MySmartBB;\n\t\t\n\t\t$MySmartBB->func->showHeader( $MySmartBB->lang[ 'template' ][ 'registering' ] );\n\t\t\n\t\t$MySmartBB->_POST[ 'username' ] \t= \ttrim( $MySmartBB->_POST[ 'username' ] );\n\t\t$MySmartBB->_POST[ 'email' ] \t\t= \ttrim( $MySmartBB->_POST[ 'email' ] );\n\t\t\n\t\t// ... //\n\t\t\n\t\t// A long list of checks before registeration\n\t\t$this->__checkFieldsValidity();\n\t\t$this->__checkAlreadyUsed();\n\t\t$this->__checkBanned();\n\t\t$this->__checkConstraints();\n\t\t$this->__checkLength();\n \t\t\n \t$MySmartBB->_POST[ 'password' ] = md5( $MySmartBB->_POST[ 'password' ] );\n \t\n \t// ... //\n \t\n \t$MySmartBB->plugin->runHooks( 'register_start' );\n \t\n \t// ... //\n \t\n \t// Get the information of default group to set username style cache\n \t$MySmartBB->rec->table = $MySmartBB->table[ 'group' ];\n\t\t$MySmartBB->rec->filter = \"id='\" . $MySmartBB->_CONF[ 'info_row' ][ 'def_group' ] . \"'\";\n\t\t\n\t\t$GroupInfo = $MySmartBB->rec->getInfo();\n\t\t\n\t\t// ... //\n\t\t\n\t\t// Get the stylish username\n\t\t$style = $GroupInfo[ 'username_style' ];\n\t\t$username_style_cache = str_replace( '[username]', $MySmartBB->_POST['username'], $style );\n\t\t\n\t\t// ... //\n\t\t\n\t\t$MySmartBB->rec->table = $MySmartBB->table[ 'member' ];\n\t\t$MySmartBB->rec->fields = array(\t'username'\t\t=>\t$MySmartBB->_POST[ 'username' ],\n \t\t\t\t\t\t\t\t\t\t'password'\t\t=>\t$MySmartBB->_POST[ 'password' ],\n \t\t\t\t\t\t\t\t\t\t'email'\t\t\t=>\t$MySmartBB->_POST[ 'email' ],\n \t\t\t\t\t\t\t\t\t\t'usergroup'\t\t=>\t$MySmartBB->_CONF[ 'info_row']['def_group' ],\n \t\t\t\t\t\t\t\t\t\t'user_gender'\t=>\t$MySmartBB->_POST[ 'gender' ],\n \t\t\t\t\t\t\t\t\t\t'register_date'\t=>\t$MySmartBB->_CONF[ 'now' ],\n \t\t\t\t\t\t\t\t\t\t'user_title'\t=>\t$GroupInfo[ 'user_title' ],\n \t\t\t\t\t\t\t\t\t\t'style'\t\t\t=>\t$MySmartBB->_CONF[ 'info_row' ][ 'def_style' ],\n \t\t\t\t\t\t\t\t\t\t'username_style_cache'\t=>\t$username_style_cache);\n \t\n \t$MySmartBB->rec->get_id = true;\n \t\n \t$insert = $MySmartBB->rec->insert();\n \t\n \tif ( $insert )\n \t{\n \t\t// ... //\n \t\t\n \t\t// Update statistics\n \t\t$MySmartBB->cache->updateLastMember( $MySmartBB->_POST[ 'username' ], $MySmartBB->rec->id );\n \t\t\n \t\t// ... //\n \t\t\n \t\t$MySmartBB->plugin->runHooks( 'register_success' );\n \t\t\n \t\t// ... //\n \t\t\n \t\t// The default group requires an email activation from its members.\n \t\t// Therefore, We register a request and send the activation message to the member's email.\n \t\tif ( $MySmartBB->_CONF[ 'info_row' ][ 'def_group' ] == 5 )\n \t\t{\n \t\t\t$this->__sendActivationCode(); \t\t\t\n\t\t\t}\n\t\t\telse\n \t\t{\n \t\t\t$MySmartBB->func->msg( $MySmartBB->lang[ 'register_succeed' ] );\n \t\t\t$MySmartBB->func->move( 'index.php?page=login&amp;register_login=1&amp;username=' . $MySmartBB->_POST[ 'username' ] . '&amp;password=' . $MySmartBB->_POST[ 'password' ] );\n \t\t}\n \t}\n\t}", "function register_login(){\n echo '\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <link rel=\"stylesheet\" href=\"https://www.w3schools.com/w3css/4/w3.css\">\n\n <form class=\"w3-container w3-card-4\" action=\"\" method=\"POST\">\n\n <h2>Volunteer Application</h2>\n\n <p> \n <label><b>Email</b></label>\n <input class=\"w3-input w3-border w3-animate-input w3-animate-input\" style=\"width:30%\" name=\"email\" type=\"email\">\n </p>\n\n <p> \n <label><b>Full Names</b></label>\n <input class=\"w3-input w3-border w3-animate-input\" name=\"fullName\" type=\"text\" style=\"width:30%\">\n </p>\n\n <p> \n <label><b>Date Of Birth</b></label>\n <input class=\"w3-input w3-border w3-animate-input\" name=\"DOB\" type=\"date\" style=\"width:30%\">\n </p>\n\n <p> \n <label><b>Country</b></label>\n <select class=\"w3-select w3-border\" name=\"nationality\">\n <option value=\"kenya\">Kenya</option>\n <option value=\"tanzania\">Tanzania</option>\n <option value=\"uganda\">Uganda</option>\n </select> \n </p>\n\n <p> \n <label><b>Gender</b></label>\n <input class=\"w3-input w3-border w3-animate-input\" name=\"gender\" type=\"text\" style=\"width:30%\">\n </p>\n\n <p> \n <label><b>Password</b></label>\n <input class=\"w3-input w3-border w3-animate-input\" name=\"password_1\" type=\"password\" style=\"width:30%\">\n </p>\n\n <p> \n <label><b>Confirm Password</b></label>\n <input class=\"w3-input w3-border w3-animate-input\" name=\"password_2\" type=\"password\" style=\"width:30%\">\n </p>\n\n <p> \n <button class=\"w3-btn w3-yellow\" style=\"color: white\" name=\"register\">Register</button>\n </p>\n\n </form>\n ';\n }", "function FormRegister()\n\t{\n\t\t?>\n\t\t\t<!DOCTYPE html>\n\t\t\t<html>\n\t\t\t<head>\n\t\t\t\t<title>Register</title>\n\t\t\t</head>\n\t\t\t<body>\n\t\t\t\t<form method=\"post\" action=\"\">\n\t\t\t\t\t<input type=\"text\" name=\"id_pegawai\" placeholder=\"ID Pegawai\" required autofocus>\n\t\t\t\t\t<input type=\"text\" name=\"nama\" placeholder=\"Nama Pegawai\" required>\n\t\t\t\t\t<select name=\"jabatan\">\n\t\t\t\t\t\t<option value=\"manager\">Manager</option>\n\t\t\t\t\t</select>\n\t\t\t\t\t<input type=\"text\" name=\"username\" placeholder=\"Username\" required>\n\t\t\t\t\t<input type=\"password\" name=\"password\" placeholder=\"Password\" required>\n\t\t\t\t\t<input type=\"submit\" name=\"buat_akun\" value=\"Buat Akun\">\n\t\t\t\t</form>\n\t\t\t</body>\n\t\t\t</html>\n\t\t<?php\n\t}", "public static function onSubmitInfo(){\n\t\t\n\t\tif(System::Meta('BP_REGISTER_TYPE') > 0){\n\t\t\tif(@$_POST['TypeAccount'] == 1){\n\t\t\t\t//\n\t\t\t\t// Gestion des informations de type pro\n\t\t\t\t//\n\t\t\t\tif(empty($_POST['Company'])){\n\t\t\t\t\tBlogPress::SetError('Merci de saisir le nom de votre sociéte');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//\n\t\t// Vérification du Nom\n\t\t//\n\t\tif(empty($_POST['Name'])){\n\t\t\tBlogPress::SetError('Merci de saisir votre nom');\n\t\t}\n\t\t//\n\t\t// Vérification du Prénom\n\t\t//\n\t\tif(empty($_POST['FirstName'])){\n\t\t\tBlogPress::SetError('Merci de saisir votre prénom');\n\t\t}\n\t\t//\n\t\t// Vérification de l'adresse e-mail\n\t\t//\t\t\t\t\n\t\tif(empty($_POST['EMail'])){\n\t\t\tBlogPress::SetError('Merci de saisir une adresse e-mail valide');\n\t\t}else{\n\t\t\t$mail = preg_replace('/[_\\\\-]/', '', $_POST['EMail']);\n\t\t\t\n\t\t\tif(!preg_match_all(BlogPress::REG_EMAIL, $mail, $matches)){\n\t\t\t\tBlogPress::SetError('Veuillez saisir une adresse e-mail valide');\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!empty($_POST['ChangePassword'])){\n\t\t\tif(empty($_POST['OldPassword'])){\n\t\t\t\t\n\t\t\t\tBlogPress::SetError('Veuillez saisir votre ancien mot de passe');\n\t\t\t\t\n\t\t\t}elseif(User::PasswordEncrypt($_POST['OldPassword']) != User::Get()->Password){\n\t\t\t\t\n\t\t\t\tBlogPress::SetError('Votre ancien mot de passe est incorrect');\n\t\t\t}\n\t\t\t\n\t\t\tif(empty($_POST['NewPassword'])){\n\t\t\t\tBlogPress::SetError('Veuillez saisir votre nouveau mot de passe');\n\t\t\t}\n\t\t}\n\t\t//\n\t\t// Vérification de l'identifiant\n\t\t//\n\t\tif(empty($_POST['Login']) && !empty($_POST['LoginAlternate'])){\n\t\t\t$_POST['Login'] = $_POST['LoginAlternate'];\n\t\t}\n\t\t\n\t\tif(empty($_POST['Login']) && empty($_POST['LoginAlternate'])){\n\t\t\tBlogPress::SetError('Merci de saisir un pseudo pour votre compte');\n\t\t}\n\t\t//\n\t\t// Vérification du numéro de téléphone\n\t\t//\n\t\tif(System::Meta('BP_REGISTER_PHONE') && @$_POST['TypeAccount'] == 1){\n\t\t\tif(empty($_POST['Phone'])){\n\t\t\t\tBlogPress::SetError('Merci de saisir votre numéro de téléphone pour votre compte');\n\t\t\t}\n\t\t}\n\t\t//\n\t\t// Vérification de redondance d'informations\n\t\t//\t\n\t\t$user = User::ByMail($_POST['EMail']);\n\t\t\n\t\tif($user){\t\n\t\t\tif($user->User_ID != User::Get()->User_ID){\n\t\t\t\tBlogPress::SetError('Votre adresse e-mail existe déjà dans notre base de données. Merci de vous connecter avec votre adresse e-mail ou d\\'utiliser une autre adresse !');\n\t\t\t}\n\t\t}\n\t\t\n\t\t$user = User::ByLogin($_POST['Login']);\n\t\t\n\t\tif($user){\n\t\t\tif($user->User_ID != User::Get()->User_ID){\n\t\t\t\tBlogPress::SetError('Votre pseudo est déjà utilisé par un autre compte. Merci d\\'en choisir un autre.');\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!BlogPress::IsError()){\n\t\t\t\n\t\t\t$account = \t\t\t\tUser::Get();\n\t\t\t\n\t\t\t$account->extend($_POST);\n\t\t\tunset($account->cmd);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\tif(System::Meta('BP_REGISTER_TYPE') > 0){//création des métas pour les comptes de type pro\n\t\t\t\tif(@$_POST['TypeAccount'] == 1){\n\t\t\t\t\t$options = new stdClass();\n\t\t\t\t\t//\n\t\t\t\t\t//\n\t\t\t\t\t//\n\t\t\t\t\tif(!empty($_POST['Siret'])){\n\t\t\t\t\t\t$options->Siret = \t\tsubstr(@$_POST['Siret'], 0, min(14, strlen($_POST['Siret'])));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$options->Siret = '';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$options->Company = \tsubstr(@$_POST['Company'], 0, min(100, strlen($_POST['Company'])));\n\t\t\t\t\t\n\t\t\t\t\tif(!empty($_POST['LegalStatut'])){\n\t\t\t\t\t\t$options->LegalStatut = substr(@$_POST['LegalStatut'], 0, min(50, strlen($_POST['LegalStatut'])));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$options->LegalStatut = '';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(!empty($_POST['Service'])){\n\t\t\t\t\t\t$options->Service = \tsubstr(@$_POST['Service'], 0, min(100, strlen($_POST['Service'])));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$options->Service = '';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(!empty($_POST['Sector'])){\n\t\t\t\t\t\t$options->Sector = \tsubstr(@$_POST['Sector'], 0, min(100, strlen($_POST['Sector'])));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$options->Sector = '';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(!empty($_POST['Workforce'])){\n\t\t\t\t\t\t$options->Workforce = \tsubstr(@$_POST['Workforce'], 0, min(100, strlen($_POST['Workforce'])));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$options->Workforce = '';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$account->setMeta($options);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Gérer le changement de mot de passe\n\t\t\t\n\t\t\tif(!empty($_POST['ChangePassword'])){\n\t\t\t\t$account->Password = $_POST['NewPassword'];\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\t//$mdp =\t$account->Password;\n\t\t\t\n\t\t\tif(!$account->commit(false)){\n\t\t\t\tBlogPress::SetError('code001');\n\t\t\t}//else{\n\t\t\t\t//User::Set($account);\t\n\t\t\t//}\n\t\t}\n\t}", "function _renren_login_form() {\n global $RR_config, $user;\n //$backurl = url('user', array('absolute' => true));\n $xd_receiver = url(\"user/renren_receiver\", array('absolute' => true));\n return\n '<xn:login-button autologoutlink=\"true\"></xn:login-button>\n <script type=\"text/javascript\" src=\"http://static.connect.renren.com/js/v1.0/FeatureLoader.jsp\"></script>\n <script type=\"text/javascript\">\n XN_RequireFeatures([\"EXNML\"], function()\n {\n XN.Main.init(\"'.$RR_config->APIKey.'\", \"'.$xd_receiver.'\");\n });\n </script>';\n}", "public function registration() {\r\n \r\n if (isset($_GET[\"submitted\"])) {\r\n $this->registrationSubmit();\r\n } else {\r\n \r\n }\r\n }", "function nus_add_script() {\r\n if($_REQUEST['page'] == NUS_PAGE) {\r\n?>\r\n\t\t\t<script type=\"text/javascript\" language=\"JavaScript\">\r\n \r\n\t\t\tfunction nus_validate() {\r\n\t\t\t\tif(isBlank(jQuery(\"#nus_login input:nus_username\").val()) || isBlank(jQuery(\"#nus_login input:nus_password\").val())) {\r\n\t\t\t\t\talert(\"Enter you Feedburner username and password before submitting the form\");\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tjQuery(\"#nus_login\").submit();\r\n\t\t\t\t}\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfunction isBlank(s)\r\n\t\t\t{\r\n\t\t\t\tvar len,k,flg;\r\n\t\t\t\tflg=true;\r\n\t\t\t\tif(s!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tlen=s.length;\r\n\t\t\t\t\tfor(k=0;k<len;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(s.substring(k,k+1)!=\" \")\r\n\t\t\t\t\t\t\tflg=false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn flg;\r\n\t\t\t}\r\n\t\t</script>\r\n<?php\r\n }\r\n}", "public function registrationForm(){\n self::$signUpName = $_POST['signup-name'];\n self::$signUpEmail = $_POST['signup-email'];\n self::$signUpPassword = $_POST['signup-password'];\n\n self::sanitize();\n if(self::checkIfAvailable()){\n self::$signUpName =\"\";\n self::$signUpEmail = \"\";\n self::$signUpPassword = \"\";\n }\n }", "public function run()\n\t{\n\t\t$controller = $this->controller;\n\t\t\n\t\t$model = new GNRegisterByInformation;\n\t\tif(isset($_POST['GNRegisterByInformation']))\n\t\t{\n\t\t\t$model->attributes = $_POST['GNRegisterByInformation'];\n\t\t\t\t\n\t\t\t// Check your email registered and activated or not?\n\t\t\t$controller->attachbehavior('checkEmail', 'greennet.modules.registration.behaviors.GNCheckExistingEmailBehavior');\n\t\t\t$controller->checkEmail->run($model->email);\n\t\t\t\n\t\t\t// If the information is posted has been added to the user temporarily, send another activation code.\n\t\t\ttry {\n\t\t\t\t$validate = $model->validate();\n\t\t\t} catch (Exception $ex) {\n\t\t\t\tif ($controller->isJsonRequest) {\n\t\t\t\t\tajaxOut(array(\n\t\t\t\t\t\t'error'\t\t=> true,\n\t\t\t\t\t\t'message'\t=> $ex->getMessage(),\n\t\t\t\t\t\t'url'\t\t=> GNRouter::createUrl($this->validation_failure_uri)\n\t\t\t\t\t));\n\t\t\t\t} else {\n\t\t\t\t\tYii::app()->jlbd->dialog->notify(array(\n\t\t\t\t\t\t'error'\t\t=> true,\n\t\t\t\t\t\t'type' \t\t=> 'success',\n\t\t\t\t\t\t'autoHide'\t=> true,\n\t\t\t\t\t\t'message'\t=> $ex->getMessage(),\n\t\t\t\t\t));\n\t\t\t\t\n\t\t\t\t\t$controller->refresh();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif ($validate) {\n\t\t\t\ttry {\n\t\t\t\t\t$modelTmpUser = new GNTmpUser;\n\t\t\t\t\t\t\n\t\t\t\t\tif ($modelTmpUser->createUser($model->attributes)) {\n\t\t\t\t\t\t$validationCode = $modelTmpUser->createValidationCode();\n\n\t\t\t\t\t\t$strActiveUrl = GNRouter::createAbsoluteUrl($this->validation_uri, array('code' => $validationCode));\n\n\t\t\t\t\t\tYii::app()->mail->viewPath = $this->mailViewPath;\n\n\t\t\t\t\t\t//Notice was send activation information via email\n\t\t\t\t\t\t$message = Yii::t(\"greennet\", '<p>Congratulations!</p>\n\t\t\t\t\t\t\tYou’ve just completed the first step in registering as a GreenNet member.<br/>\n\t\t\t\t\t\t\tWe’ll now send a verification email to: <b>{email}</b><br/>\n\t\t\t\t\t\t\tWhen you receive it, just click on the appropriate link or button and that’s the process complete.<br/>\n\t\t\t\t\t\t\tWe’ll send the email immediately but it may take a little time to arrive in your inbox.', array('{email}'=>$model->email)\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tif ($controller->isJsonRequest) {\n\t\t\t\t\t\t\tajaxOut(array(\n\t\t\t\t\t\t\t\t'error'\t\t=> false,\n\t\t\t\t\t\t\t\t'type'\t\t=> 'success',\n\t\t\t\t\t\t\t\t'message'\t=> $message,\n\t\t\t\t\t\t\t\t'url'\t\t=> GNRouter::createUrl($this->validation_success_uri)\n\t\t\t\t\t\t\t), false);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Send activation code to email\n\t\t\t\t\t\t\t$sendMail = Yii::app()->mail->sendMailWithTemplate($modelTmpUser->email, Yii::t(\"greennet\", 'GreenNet membership confirmation'), 'sendMailActivationAccount',$data=array('strActiveUrl'=>$strActiveUrl, 'user'=>$modelTmpUser));\n\t\t\t\t\t\t\tif(!empty($validationCode) && $sendMail == false)\n\t\t\t\t\t\t\t$modelTmpUser->saveAttributes(array('has_sent_code'=>1));\n\t\t\t\t\t\t\texit;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Send activation code to email\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$sendMail = Yii::app()->mail->sendMailWithTemplate($modelTmpUser->email, Yii::t(\"greennet\", 'GreenNet membership confirmation'), 'sendMailActivationAccount',$data=array('strActiveUrl'=>$strActiveUrl, 'user'=>$modelTmpUser));\n\t\t\t\t\t\t\tif(!empty($validationCode) && $sendMail == false)\n\t\t\t\t\t\t\t$modelTmpUser->saveAttributes(array('has_sent_code'=>1));\n\n\t\t\t\t\t\t\tYii::app()->jlbd->dialog->notify(array(\n\t\t\t\t\t\t\t\t'error'\t\t=> false,\n\t\t\t\t\t\t\t\t'type'\t\t=> 'success',\n\t\t\t\t\t\t\t\t'autoHide'\t=> true,\n\t\t\t\t\t\t\t\t'message'\t=> $message\n\t\t\t\t\t\t\t));\n\t\t\t\t\t\t\t$controller->redirect('/');\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ($controller->isJsonRequest) {\n\t\t\t\t\t\t\tajaxOut(array(\n\t\t\t\t\t\t\t\t'error'\t\t=> true,\n\t\t\t\t\t\t\t\t'type'\t\t=> 'error',\n\t\t\t\t\t\t\t\t'message'\t=> Yii::t(\"greennet\", 'Cannot create user!'),\n\t\t\t\t\t\t\t\t'errors'\t=> $modelTmpUser->errors,\n\t\t\t\t\t\t\t));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tYii::app()->jlbd->dialog->notify(array(\n\t\t\t\t\t\t\t\t'error'\t\t=> true,\n\t\t\t\t\t\t\t\t'type'\t\t=> 'error',\n\t\t\t\t\t\t\t\t'autoHide'\t=> true,\n\t\t\t\t\t\t\t\t'message'\t=> Yii::t(\"greennet\", 'Cannot create user!')\n\t\t\t\t\t\t\t));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception $ex) {\n\t\t\t\t\tif ($controller->isJsonRequest) {\n\t\t\t\t\t\tajaxOut(array(\n\t\t\t\t\t\t\t'error'\t\t=> true,\n\t\t\t\t\t\t\t'message'\t=> $ex->getMessage(),\n\t\t\t\t\t\t));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tYii::app()->jlbd->dialog->notify(array(\n\t\t\t\t\t\t\t'error'\t\t=> true,\n\t\t\t\t\t\t\t'type' \t\t=> 'success',\n\t\t\t\t\t\t\t'autoHide'\t=> true,\n\t\t\t\t\t\t\t'message'\t=> $ex->getMessage(),\n\t\t\t\t\t\t));\n\t\t\t\t\t\t$controller->refresh();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$controller->render($this->viewFile, array('model'=>$model));\n\t}", "function registerOnEjabberd($mobile_no,$jaxlPassword){\n /*********************register with curl code start*****************************************/\n $ch = curl_init();\n $options = array(\n CURLOPT_URL => \"https://sociabile-test.m.in-app.io:5281/api/register\",\n //CURLOPT_HEADER => true,\n CURLOPT_POST => 1,\n // CURLOPT_HTTPHEADER => $headers,\n CURLOPT_POSTFIELDS => '[\"'.$mobile_no.'\",\"'.JAXL_HOST_NAME.'\",\"'.$jaxlPassword.'\"]',\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_RETURNTRANSFER => true\n ); // cURL options\n curl_setopt_array($ch, $options);\n $result = curl_exec($ch);\n curl_close($ch);\n if( strpos($result, \"successfully registered\") !== false || strpos($result, \"already registered\") !== false ){\n return array(\"jaxl_id\"=>$mobile_no.'@'.JAXL_HOST_NAME, \"jaxl_password\"=>$jaxlPassword);\n }else{\n Library::logging('error',\"API : registration : JAXL registration failed with error \".$result.\". \".$mobile_no);\n Library::output(false, '0', JAXL_REG_FAILED, null); \n \n }\n /*********************register with curl code end*****************************************/\n \n require 'components/JAXL3/jaxl.php';\n require 'components/JAXL3/register.php';\n $client = new JAXL(array(\n// 'jid' => JAXL_HOST_NAME,\n 'host' => JAXL_HOST_NAME,\n 'log_level' => JAXL_ERROR,\n \"port\"=>5281\n ));\n\n $client->require_xep(array(\n '0077'\t// InBand Registration\t\n ));\n $form=array( \"username\"=>$mobile_no, \"password\"=>$jaxlPassword );\n $client->add_cb('on_stream_features', function($stanza) {\n $client = $_SESSION[\"client\"];\n $client->xeps['0077']->get_form(JAXL_HOST_NAME);\n return \"wait_for_register_form\";\n });\n\n $client->add_cb('on_disconnect', function() {\n });\n $_SESSION[\"client\"] = $client;\n $_SESSION[\"form\"] = $form;\n // finally start configured xmpp stream\n $client->start();\n $form = $_SESSION[\"form\"];\n unset($_SESSION[\"client\"]);\n unset($_SESSION[\"form\"]);\n if( isset($form['type']) ) {\n if($form['type'] == 'result') { //if registered successfully\n return array(\"jaxl_id\"=>$form[\"username\"].'@'.JAXL_HOST_NAME, \"jaxl_password\"=>$jaxlPassword);\n }else{ //if not registered successfully with an error\n Library::logging('error',\"API : registration : JAXL registration failed with error \".$form['type'].\". \".$mobile_no);\n Library::output(false, '0', JAXL_REG_FAILED, null); \n }\n }else{ //if not registered successfully with unknown error\n Library::logging('error',\"API : registration : JAXL registration failed \".$mobile_no. var_export($form, true));\n Library::output(false, '0', JAXL_REG_FAILED, null);\n }\n }", "public function init()\n {\n /* get language from registry */\n $language = Zend_Registry::get(\"Zend_Translate\");\n /**\n *\n * Load Google reCaptcha version 2\n * vendor/cgsmith\n *\n */\n $this->addPrefixPath('Cgsmith\\\\Form\\\\Element', APPLICATION_PATH . '/../vendor/cgsmith/zf1-recaptcha-2/src/Cgsmith/Form/Element', Zend_Form::ELEMENT);\n \t\t$this->addElementPrefixPath('Cgsmith\\\\Validate\\\\', APPLICATION_PATH . '/../vendor/cgsmith/zf1-recaptcha-2/src/Cgsmith/Validate/', Zend_Form_Element::VALIDATE);\n $this->setMethod('post')->setAction(\"\")->setAttrib('class', 'form-horizontal');\n /*==============================================\n = generate register form =\n ==============================================*/\n \n $frm_email = $this->createElement('text', 'email');\n $frm_email ->setRequired(true)\n ->setAttrib('class', 'form-control')\n ->setLabel($language->_(\"Register_page_form_email\").\": \");\n $frm_username = $this->createElement('text', 'username');\n\t\t$frm_username ->addValidator('regex', false, array('/^[a-z]+/'))\n\t\t ->addValidator('stringLength', false, array(6, 20))\n\t\t ->setRequired(true)\n\t\t ->addFilter('StringToLower')\n\t\t ->setAttrib('class', 'form-control')\n\t\t ->setLabel($language->_(\"Register_page_form_username\").':');\n\t\t$frm_password = $this->createElement('password', 'password');\n\t\t$frm_password ->addValidator('StringLength', false, array(6))\n\t\t ->setRequired(true)\n\t\t \t ->setAttrib('class', 'form-control')\n\t\t ->setLabel($language->_(\"Register_page_form_password\").':');\n\t\t$frm_repassword = $this->createElement('password', 'repassword');\n\t\t$frm_repassword->addValidator('StringLength', false, array(6))\n\t\t ->setRequired(true)\n\t\t ->setAttrib('class', 'form-control')\n\t\t ->setLabel($language->_(\"Register_page_form_repassword\").':');\n\t\t$frm_register = $this->createElement('submit', 'register');\n\t\t$frm_register ->setLabel($language->_(\"Register_page_form_submit_btn\"))\n\t\t ->setAttrib('class', 'button');\n\t\t$this->addElement($frm_email)->addElement($frm_username)->addElement($frm_password)->addElement($frm_repassword);\n\t\t//get sitekey and secret key in config ini\n\t\t$config = new Zend_Config_Ini(APPLICATION_PATH.'/configs/application.ini', 'custom');\n \n\t\t$this->addElement('Recaptcha', 'g-recaptcha-response', [\n\t\t 'siteKey' => $config->recaptcha->sitekey,\n\t\t 'secretKey' => $config->recaptcha->secretkey,\n\t\t]);\n\t\t$this->addElement($frm_register);\n \n /*===== End of generate register form ======*/\n \n \n }", "public\n function DoRegister()\n {\n $username = filter_input(INPUT_POST, 'Username', FILTER_SANITIZE_STRING);\n $Voornaam = filter_input(INPUT_POST, 'Name', FILTER_SANITIZE_STRING);\n $Achternaam = filter_input(INPUT_POST, 'Surname', FILTER_SANITIZE_STRING);\n $Geboortedatum = filter_input(INPUT_POST, 'date', FILTER_SANITIZE_STRING);\n $Plaatsnaam = filter_input(INPUT_POST, 'City', FILTER_SANITIZE_STRING);\n $Adres = filter_input(INPUT_POST, 'address', FILTER_SANITIZE_STRING);\n $toevoegingen = filter_input(INPUT_POST, 'address2', FILTER_SANITIZE_STRING);\n $Postcode = filter_input(INPUT_POST, 'postalCode', FILTER_SANITIZE_STRING);\n $Land = filter_input(INPUT_POST, 'Country', FILTER_SANITIZE_STRING);\n $email = filter_var($_SESSION[\"MailboxRegister\"], FILTER_VALIDATE_EMAIL);\n $password = filter_input(INPUT_POST, 'password', FILTER_SANITIZE_STRING);\n $rePassword = filter_input(INPUT_POST, 're-password', FILTER_SANITIZE_STRING);\n $Question = filter_input(INPUT_POST, 'question', FILTER_SANITIZE_STRING);\n $Answer = filter_input(INPUT_POST, 'answer', FILTER_SANITIZE_STRING);\n\n $postdata = array_values($_POST);\n\n for ($index = 0; $index < count($postdata); $index++) {\n if (empty($postdata[$index]) && $index != 6 && $index != 11){\n return [false, \"Error! Je bent een of meerdere velden vergeten in te vullen.\"];\n }\n\n else if (strlen($postdata[$index]) > 35){\n return [false, \"Error! Elk veld mag maximaal 35 karakters bevatten.\"];\n }\n }\n\n if ( strtotime($Geboortedatum) > strtotime('now') ) {\n return [false, \"Datum is ongeldig!\"];\n }\n\n if (strlen($Postcode) > 7) {\n return [false, \"Postcode te lang!\"];\n }\n\n if (strlen($username) < 4) {\n return [false, \"Error! Je gebruikersnaam heeft minder dan 4 karakters.\"];\n }\n\n if (strlen($password) < 6 || strlen($rePassword) < 6) {\n return [false, \"Error! Je wachtwoord heeft minder dan 6 karakters.\"];\n } else if (empty($rePassword)) {\n return [false, \"Error! Geen wachtwoord ingevuld.\"];\n } else if ($password != $rePassword) {\n return [false, \"Error! Je wachtwoorden zijn niet hetzelfde.\"];\n } else if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {\n return [false, \"Error! e-mail is niet geldig.\"];\n }\n\n if ($email != $_SESSION[\"MailboxRegister\"]) {\n return [false, \"Error! Er ging iets niet goed, probeer het nog eens.\"];\n }\n\n if ($username) {\n $AuthenticationModel = $this->model('AuthenticationModel');\n $Check = $AuthenticationModel->getUser($username);\n\n if ($Check != null) {\n return [false, \"Error! Gebruikersnaam bestaat al.\"];\n }\n }\n\n\n\n require 'PHPMailer/src/Exception.php';\n require 'PHPMailer/src/PHPMailer.php';\n require 'PHPMailer/src/SMTP.php';\n $mail = new PHPMailer;\n $mail->SMTPDebug = 3;\n $mail->SMTPDebug = SMTP::DEBUG_OFF;\n $mail->isSMTP();\n $mail->Host = 'mail.ip.aimsites.nl';\n $mail->SMTPAuth = false;\n $mail->Port = 21018;\n $mail->setFrom('noreply@eenmaalandermaal.nl', 'EenmaalAndermaal');\n $mail->addAddress(''.$email.'');\n $mail->isHTML(true);\n $mail->Subject = 'Succesvolle registratie';\n $mail->Body = '<b>Beste '.$Voornaam.'</b>,<br><br> Je hebt je succesvol geregistreerd bij EenmaalAndermaal met de volgende gegevens:<br>E-mail: '.$email.'<br>Wachtwoord: opgegeven wachtwoord <br><br>Groetjes EenmaalAndermaal';\n $mail->AltBody = 'Beste '.$Voornaam.', Je hebt je succesvol geregistreerd bij EenmaalAndermaal met deze gegevens. E-mail: '.$email.' en Wachtwoord: opgegeven wachtwoord. Groetjes EenmaalAndermaal';\n $mail->send();\n\n $passwordhash = password_hash($password, PASSWORD_DEFAULT);\n $AuthenticationModel = $this->model('AuthenticationModel');\n $AuthenticationModel->CreateUser($username, $Voornaam, $Achternaam, $Geboortedatum, $Plaatsnaam, $Adres, $toevoegingen, $Postcode, $Land, $email, $passwordhash, $Question, $Answer);\n\n $email = null;\n\n session_unset();\n session_destroy();\n\n header('Location: /Login?NewUser');\n die;\n\n\n }", "public function doRegister(){\n\t\t\n\t\t$do = \"\";\n\t\t\n\t\t//User provides username and password\n\t\t$regName = $this->view->getRegName();\n\t\t$regPassword = $this->view->getRegPassword();\n\t\t$regRepeatPassword = $this->view->getRegRepeatPassword();\n\t\t\t\n\t\t$nameLengthOk = $this->model->checkNameLength($regName);\n\t\t$passLengthOk = $this->model->checkPassLength($regPassword);\n\t\t\t\n\t\t// if something is wrong, store message then show registry-page again\n\t\tif(!$nameLengthOk and $passLengthOk){\n\t\t\t$this->view->storeMessage(\"Användarnamnet har för få tecken. Minst 3 tecken\");\n\t\t\treturn $this->view->showRegisterPage();\n\t\t\t\n\t\t} elseif(!$passLengthOk and $nameLengthOk){\n\t\t\t$this->view->storeMessage(\"Lösenordet har för få tecken. Minst 6 tecken\");\n\t\t\treturn $this->view->showRegisterPage();\n\t\t\t\n\t\t} elseif(!$passLengthOk and !$nameLengthOk){\n\t\t\t$this->view->storeMessage(\"Användarnamnet har för få tecken. Minst 3 tecken och Lösenordet har för få tecken. Minst 6 tecken\");\n\t\t\treturn $this->view->showRegisterPage();\n\t\t}\n\t\t\n\t\tif($regPassword !== $regRepeatPassword){\n\t\t\t$this->view->storeMessage(\"Lösenorden matchar inte\");\n\t\t\treturn $this->view->showRegisterPage();\n\t\t}\n\t\t\n\t\t$badInput = $this->model->nameInputValidation($regName);\n\t\t\n\t\tif($badInput != null){\n\t\t\t$this->view->storeMessage(\"Användarnamnet innehåller felaktiga tecken\");\n\t\t\treturn $this->view->showRegisterPage();\n\t\t}\n\t\t\n\t\t$uniqueUser = $this->model->checkUniqueUser($regName);\n\t\t\n\t\tif(!$uniqueUser){\n\t\t\t$this->view->storeMessage(\"Användarnamnet är upptaget\");\n\t\t\treturn $this->view->showRegisterPage();\n\t\t}\n\t\n\t\t//If input is valid, system saves the credentials \n\t\t$this->model->insertUser($regName, $regPassword);\n\t\t\n\t\t//and presents a success message\n\t\t$this->view->storeMessage(\"Registreringen lyckades\");\n\t\treturn $this->view->showLogin(false);\n\t\n\t}", "public function registration(){\n\n\t\t\t$userData = $this->Common_model->selRowData(PREFIX.\"user\",\"\",\"emailId ='\".$_POST['email2'].\"'\");\n\t\t\t $topRatedFuncies= $this->Common_model->selTableData(\"fc_flyers\",\"GROUP_CONCAT(keywords) AS funcyName\",\"createdOn BETWEEN '\".date('Y-m-d',strtotime('-30 days')).\"' AND '\".date('Y-m-d').\"'\",\"viewCount DESC\",\"5\");\n\t\t\n\n\t\t\tif(isset($_POST[\"firstName\"]) && isset($_POST[\"email2\"]) && $userData ==\"\"){\n\t\t\t\n\t\t\t\t\n\t\t $insertData\t\t\t\t=\tarray();\n\n\t\t\t\t$insertData[\"firstName\"]=\tucfirst($_POST[\"firstName\"]);\n\t\t\t\t$insertData[\"lastName\"]\t=\tucfirst($_POST[\"lastName\"]);\n\t\t\t\t$insertData[\"emailId\"]\t=\ttrim(strtolower($_POST[\"email2\"]));\n\t\t\t\t$insertData[\"password\"]\t=\tmd5(trim($_POST[\"password1\"]));\n\t\t\t // $insertData[\"funcies\"]\t= $topRatedFuncies[0]->funcyName ;\n\t\t\t\t/*if ($_POST[\"txt_keyword\"]!=\"\") {\n\t\t\t\t\t$insertData[\"funcies\"]\t=\timplode(\",\",$_POST[\"txt_keyword\"]);\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\t $insertData[\"funcies\"]\t=$topRatedFuncies[0]->funcyName ;\n\t\t\t\t}*/\n\t\t\t\t\n\t\t\t\t/*$insertData[\"contactNumber\"]\t=\t$_POST[\"txt_contactNumber\"];\n\t\t\t\t$insertData[\"altContactNumber\"]\t=\t$_POST[\"txt_altContactNumber\"];\n\t\t\t\t//$insertData[\"password\"]\t=\t$_POST[\"txt_password\"];\n\t\t\t\t$insertData[\"city\"]\t=\t$_POST[\"txt_city\"];\n\t\t\t\t$insertData[\"status\"]\t=\t$_POST[\"txt_status\"];\n\t\t\t\t$insertData[\"address\"]\t=\t$_POST[\"txtarea_address\"];\n\t\t\t\t$insertData[\"zipcode\"]\t=\t$_POST[\"txt_zipcode\"];\t*/\n\t\t\t\t$insertedUserId\t\t\t\t\t=\t$this->Common_model->insert(PREFIX.\"user\",$insertData);\n\t\t\t\n\t\t\tif($insertedUserId){\n\t\t\t\t/*//send email URL to registered \n\t\t\t\t$settings = array();\n\t\t\t\t$settings[\"template\"] \t\t\t\t= \"welcome_to_funcano.html\";\n\t\t\t\t$settings[\"email\"] \t\t\t\t\t= trim($insertData['emailId']); \n\t\t\t\t$settings[\"subject\"] \t\t\t\t= \"Warm welcome from the Funcano\";\n\t\t\t\t$contentarr['[[[NAME]]]']\t\t\t=\ttrim($insertData[\"firstName\"]);\n\t\t\t\t$contentarr['[[[USERNAME]]]']\t\t=\t$insertData[\"emailId\"];\n\t\t\t\t$contentarr['[[[PASSWORD]]]']\t\t=\t$insertData[\"password\"];\n\t\t\t\t//$contentarr['[[[DASHURL]]]']\t\t=\tBASEURL.'/login';\n\t\t\t\t$settings[\"contentarr\"] \t= \t$contentarr;\n\t\t\t\t$this->common_lib->sendMail($settings);*/\n\t\t\t\t//insert into hr_verification\n\t\t\t\t$insertVeri['userId']\t\t=\t$insertedUserId;\n\t\t\t\t$insertVeri['verifyType']\t=\t1;\n\t\t\t\t$insertVeri['code']\t\t\t=\tgenerateStrongPassword(16,false,'lud');\t\t\t\t\t\t\n\t\t\t\t$insertStatus = $this->Common_model->insert(\"fc_verification\", $insertVeri);\n\t\t\t\tif($insertStatus){\n\t\t\t\t\t//Send verification email\n\t\t\t\t\t$settings = array();\n\t\t\t\t\t$settings[\"template\"] \t\t\t\t= \t\"verify_account.html\";\n\t\t\t\t\t$settings[\"email\"] \t\t\t\t\t= \t$insertData['emailId']; //\"darvatkarg@gmail.com\";\n\t\t\t\t\t$settings[\"subject\"] \t\t\t\t=\t\"Funcano - verify account\";\n\t\t\t\t\t$contentarr['[[[VERIFYURL]]]']\t\t=\tBASEURL.\"/home/verify-account/\".$insertVeri['code'];\n\t\t\t\t\t$settings[\"contentarr\"] \t\t\t= \t$contentarr;\n\t\t\t\t\t$this->common_lib->sendMail($settings);\t\n\t\t\t\t\t\n\t\t\t\t\t$outputData['result']\t=\t\"Success\";\n\t\t\t\t}\n\t\t\n\t\t\t}\n\t\t} else{\n\t\t\t$outputData['result']\t=\t\"Failed\";\n\t\t\t\n\t\t}\n\t\t$this->load->viewF('ajaxresult',$outputData);\n\t}", "public function regi_form() {\n $template = $this->loadView('registration_page');\n // $template->set('result', $error);\n $template->render();\n }", "public function registration_popup() {\n ?>\n <div style=\"display:none;\">\n <div id=\"popup_form_registration\" class=\"main\">\n <div class=\"col-main\" style=\"float: none;width:100%;\">\n <div class=\"page-title\">\n <h1>Connect with <?php echo Lb_Points_Helper_Data::$rewardProgrammeName;?></h1>\n </div>\n <div id=\"registerLB\">\n <form id=\"registrationForm\">\n <div class=\"fieldset\">\n <h2 class=\"legend\">Registration</h2>\n <p class=\"required\">* Required Fields</p>\n <div id=\"formRegisterSuccess\" ></div>\n <ul class=\"form-list\">\n <li class=\"fields\">\n <div class=\"field\">\n <label class=\"required\" for=\"name\"><em>*</em>Name</label>\n <div class=\"input-box\">\n <input type=\"text\" class=\"input-text required-entry\" value=\"\" title=\"Name\" id=\"name\" name=\"name\">\n </div>\n </div>\n <div class=\"field\">\n <label class=\"required\" for=\"email\"><em>*</em>Email Address</label>\n <div class=\"input-box\">\n <input type=\"email\" spellcheck=\"false\" autocorrect=\"off\" autocapitalize=\"off\" class=\"input-text required-entry validate-email\" value=\"\" title=\"Email\" id=\"email\" name=\"email\">\n </div>\n </div>\n </li>\n <li>\n <label class=\"required\" for=\"phonenumber\"><em>*</em>Phone number</label>\n <div class=\"input-box\">\n <input type=\"tel\" class=\"input-text required-entry validate-number IsValidCellNumber\" value=\"\" title=\"Phone number\" id=\"phonenumber\" name=\"phonenumber\">\n </div>\n </li>\n </ul>\n </div>\n <div class=\"buttons-set lb-btn-register\">\n <button class=\"button\" title=\"Submit\" type=\"submit\"><span><span>Submit</span></span></button>\n </div>\n <div class=\"lb-links\">\n <div >\n Or <a href=\"javascript:void(0);\" id=\"lnkLBLogin\" style=\"color:burlywood;\">login</a> if already registered.\n </div>\n <div>\n download our <a href=\"javascript:void(0);\" id=\"lnkDownloadApp\" style=\"color:burlywood;\">mobile application</a>\n </div>\n </div>\n </form>\n </div>\n <div style=\"display:none;\" id=\"loginLB\">\n <form id=\"loginForm\">\n <div class=\"fieldset\">\n <h2 class=\"legend\">Login</h2>\n <p class=\"required\">* Required Fields</p>\n <div id=\"formLoginLowestSuccess\" ></div>\n <ul class=\"form-list\">\n <li>\n <label class=\"required\" for=\"txtCardNumber\"><em>*</em>Card Number / Phone number / OTP</label>\n <div class=\"input-box\">\n <input type=\"tel\" class=\"input-text required-entry validate-number IsValidCartNumber\" value=\"\" title=\"Telephone\" id=\"txtCardNumber\" name=\"txtCardNumber\" >\n </div>\n </li>\n </ul>\n </div>\n <div class=\"buttons-set lb-btn-register\">\n <button class=\"button\" title=\"Submit\" type=\"submit\"><span><span>Submit</span></span></button>\n </div>\n <div class=\"lb-links\">\n <div>\n Or <a href=\"javascript:void(0);\" id=\"lnkLBRegister\" style=\"color:burlywood;\">click here</a> to register.\n </div>\n <div>\n download our <a href=\"javascript:void(0);\" id=\"lnkDownloadApp\" style=\"color:burlywood;\">mobile application</a>\n </div>\n </div>\n </form>\n </div>\n <span id=\"formLoader\" >\n <img src=\"<?php echo $this->getSkinUrl(\"images/opc-ajax-loader.gif\") ?>\">\n </span>\n </div>\n </div>\n </div>\n <style>\n .frm_error{\n color:red;\n font-size: 13px;\n margin: 5px 0 0;\n }\n .frm_success{\n color:green;\n font-size: 13px;\n margin: 5px 0 0;\n }\n #formLoader{\n display:none;\n }\n .lb-btn-register{\n margin-bottom: 5px;\n }\n .lb-btn-register::after {\n clear: none;\n content: \"\";\n display: table;\n }\n .lb-links{\n color: #636363;\n font-family: \"Helvetica Neue\",Verdana,Arial,sans-serif;\n font-size: 13px;\n line-height: 1.5;\n margin-top: -10px;\n }\n \n @media screen and (max-width: 479px) {\n .lb-btn-register::after {\n clear: both;\n content: \"\";\n display: table;\n }\n }\n #popup_form_registration {\n width: auto;\n }\n .connectlbbtn.lb-box {\n clear: both;\n padding:5px;\n }\n\n .registrationBtn h2 {\n font-size: 12px;\n font-weight: bold;\n margin: 0 0 5px;\n }\n \n #formRegisterSuccess{\n font-size: 13px;\n margin: 5px 0 0;\n color: green;\n }\n \n .dialog_content {\n background-color: #F4F4F4;\n color: #636363;\n font-family: Tahoma,Arial,sans-serif;\n font-size: 10px;\n overflow: auto;\n padding-bottom: 5px!important;\n }\n \n .redeem_lbpoints input {\n margin-bottom: 5px;\n }\n .lb-redeem-wrapper{\n margin-top: 5px;\n display: none;\n }\n <?php if(strpos($_SERVER['REQUEST_URI'], '/checkout/cart/') !== false){?>\n .registrationBtn{\n background-color: #f4f4f4;\n border: 1px solid #cccccc;\n padding: 10px;\n margin-bottom: 20px;\n }\n <?php }?>\n \n </style>\n <script type=\"text/javascript\">\n \n jQuery(\"#loginLB\").hide();\n jQuery(\"#lnkLBLogin\").click(function(){\n jQuery(\"#loginLB\").show();\n jQuery(\"#registerLB\").hide();\n jQuery(\".dialog_content\").css('height','auto');\n });\n\n jQuery(\"#lnkLBRegister\").click(function(){\n jQuery(\"#loginLB\").hide();\n jQuery(\"#registerLB\").show();\n jQuery(\".dialog_content\").css('height','auto');\n });\n \n Validation.add('IsValidCartNumber', 'Only 10 or 15 digits are allowed.', function(v) {\n return (v.length == 10 || v.length == 15); // || /^\\s+$/.test(v));\n }); \n \n Validation.add('IsValidCellNumber', 'Only 10 digits are allowed.', function(v) {\n return (v.length == 10); // || /^\\s+$/.test(v));\n }); \n \n \n //var dataForm = new VarienForm('lowest-form-validate', true);\n var formId = 'registrationForm';\n var myForm = new VarienForm(formId, true);\n var handleSubmit = true;\n function doAjax() {\n var postUrl = \"<?php echo Mage::getBaseUrl() . 'lb/index/register' ?>\";\n jQuery(\".dialog_content\").css('height','auto');\n if (myForm.validator.validate()) {\n var txtName = jQuery(\"#name\");\n var txtEmail = jQuery(\"#email\");\n var txtPhoneNumber = jQuery(\"#phonenumber\");\n var tips = jQuery(\"#formRegisterSuccess\");\n tips.text('');\n var data = {\n 'txtName': txtName.val(),\n 'txtEmail': txtEmail.val(),\n 'txtPhoneNumber': txtPhoneNumber.val()\n };\n if(handleSubmit){\n handleSubmit = false;\n jQuery(\"#formLoader\").show();\n jQuery.post(postUrl, data, function(response) {\n handleSubmit = true;\n if(response.status == '1'){\n jQuery(\"#formLoader\").hide();\n tips.text(response.message).addClass( \"frm_success\" );\n txtName.val('');\n txtEmail.val('');\n txtPhoneNumber.val('');\n jQuery(\".dialog_close\").trigger('click');\n window.location.reload();\n }\n else{\n tips.text(response.message).addClass( \"frm_error\" );\n jQuery(\"#formLoader\").hide();\n }\n },'JSON');\n }\n }\n }\n // REGISTRATION CALL BACK\n new Event.observe('registrationForm', 'submit', function(e){\n e.stop();\n doAjax();\n });\n \n \n // login js\n var loginFormId = 'loginForm';\n var loginForm = new VarienForm(loginFormId, true);\n jQuery(\"#loginForm button\").click(function(){\n var postUrl = \"<?php echo Mage::getBaseUrl() . 'lb/index/login' ?>\";\n var txtCardNumber = jQuery(\"#txtCardNumber\").val();\n jQuery(\".dialog_content\").css('height','auto');\n if (loginForm.validator.validate()) {\n jQuery(\"#formLoader\").show();\n jQuery.post(postUrl,{'txtCardNumber':txtCardNumber}, function(response) {\n if(response.status == '1'){\n jQuery(\"#formLoader\").hide();\n jQuery(\".dialog_close\").trigger('click');\n Element.show('formLoginLowestSuccess');\n jQuery(\"#formLoginLowestSuccess\").html(response.message).addClass( \"frm_success\" );\n jQuery(\".connectlbbtn\").html(response.replaceBtn);\n window.location.reload();\n }\n else{\n jQuery(\"#formLoader\").hide();\n Element.show('formLoginLowestSuccess');\n jQuery(\"#formLoginLowestSuccess\").html(response.message).addClass( \"frm_error\" );\n }\n },'JSON');\n }\n return false;\n });\n \n \n // Add connect with loyaltybox button to right side bar\n /*if(jQuery(\".cart-forms\").length == 1)\n {\n var btnHtml = jQuery(\".connectlbbtn\").html();\n jQuery(\".connectlbbtn\").html('');\n jQuery(\".cart-forms\").prepend(\"<div class='discount connectlbbtn'>\"+btnHtml+\"</div>\");\n\n }*/\n // End : Add connect with loyaltybox button to right side bar.\n \n // LOGOUT CALL BACK\n jQuery(\"#lbLogout\").click(function(){\n var postUrl = \"<?php echo Mage::getBaseUrl() . 'lb/index/logout' ?>\";\n jQuery.post(postUrl, function(response) {\n if(response.status == '1'){\n window.location.reload();\n }\n else{\n jQuery(\"lbMsg\").html(response.message).addClass( \"frm_error\" );\n }\n },'JSON');\n });\n // end of logout\n //end of javascript code\n <?php if(strpos($_SERVER['REQUEST_URI'], '/checkout/cart/') !== false){?>\n jQuery(\".connectlbbtn\").parent().addClass('cart-forms');\n <?php }else{?>\n var regBox = jQuery(\".connectlbbtn\");\n jQuery(\".add-to-cart\").append(regBox);\n jQuery(\".add-to-cart\").css(\"clear\",\"both\");\n <?php }?>\n </script>\n <?php \n }", "function register(){\n\n $cust=new Customer();\n \n //get each field from form\n $first_name=$_POST['first_name'];\n $last_name=$_POST['last_name'];\n $vehicle_number=$_POST['vehicle_number'];\n $address=$_POST['address'];\n $e_mail=$_POST['email'];\n $password=$_POST['password'];\n $mobile_tel_no=$_POST['mobile_tel_no'];\n $home_tel_no=$_POST['home_tel_no'];\n\n //hash the password\n //$hashed=md5($password);\n $hashed = sha1($password);\n\n //$hashed = password_hash($password,PASSWORD_BCRYPT);\n $vehicle_type=Vehicle_regex::validate($vehicle_number);\n //insert data\n $result=$cust->insert_record($first_name,$last_name,$vehicle_number,$address,$hashed,$e_mail,$mobile_tel_no,$home_tel_no,$vehicle_type);\n echo(\"resultstart\");\n echo($result);\n echo(\"resultend\");\n //ON SUCCESS, send an email to customer address\n $mail=new Mailer();\n\n $subject=\"Welcome to Cleancar Reservation System!\";\n $body=\"<strong>Dear Mr./Mrs. $last_name,</strong></br>Thank you for\n registering with Cleancar reservation System.\";\n\n //call function in class\n $mail->mailto($subject,$e_mail,$body);\n }", "function doSignup(){\n\t\t$data = $_POST;\n\t\t//Stop sign-up if the user does not check the chebox\n\t\tif(!isset($data['Agreement']))\n\t\t\treturn \"inlineMsg5\";\n\t\tif($this->isCCUsedForTrial(\"{$data['CreditCardNumber']}\") && ($data['SubscriptionType'] == 1))\n\t\t\treturn \"inlineMsg1\";\n\t\t$currentYear = date('Y');\n\t\t$currentMonth = date('n');\n\t\t//Stop sign-up when the credit card is expired\n\t\tif($data['ExpirationYear'] < $currentYear){\n\t\t\treturn \"inlineMsg4\";\n\t\t}\n\t\tif ($data['ExpirationYear'] == $currentYear){\n\t\t\tif($data['ExpirationMonth'] < $currentMonth)\n\t\t\t\treturn \"inlineMsg4\";\n\t\t}\n\t\t//Get InfusionSoft Api\n\t\t$app = $this->getInfusionSoftApi();\n\t\t//Get current date\n\t\t$curdate = $app->infuDate(date('j-n-Y'));\n\t\t//Get the registration form from session\n\t\t$regFormData = Session::get('RegistrationFormData');\n\t\t// Get country text from code\n\t\t$country = Geoip::countryCode2name($data['Country']);\n\t\t// Get InfusionSoft Contact ID\n\t\t$returnFields = array('Id','Leadsource');\n\t\t$conInfo = $app->findByEmail($regFormData['Email'], $returnFields);\n\t\tif(empty($conInfo)){\n\t\t\t// If IS contact doesn't exist create one\n\t\t\t$conDat = array(\n\t\t\t\t\t'FirstName' => $data['FirstName'],\n\t\t\t\t\t'LastName' => $data['LastName'],\n\t\t\t\t\t'Company' => $data['Company'],\n\t\t\t\t\t'StreetAddress1' => $data['StreetAddress1'],\n\t\t\t\t\t'StreetAddress2' => $data['StreetAddress2'],\n\t\t\t\t\t'City' => $data['City'],\n\t\t\t\t\t'State' => $data['State'],\n\t\t\t\t\t'PostalCode' => $data['PostalCode'],\n\t\t\t\t\t'Country' => $country,\n\t\t\t\t\t'Email' => $regFormData['Email']\n\t\t\t);\n\t\t\tif(empty($conInfo))\n\t\t\t\t$conDat['Leadsource'] = 'AttentionWizard';\n\t\t\t$isConID = $app->addCon($conDat);\n\t\t}else{\n\t\t\t$isConID = $conInfo[0]['Id'];\n\t\t}\n\t\t// Locate existing credit card\n\t\t$ccID = $app->locateCard($isConID,substr($data['CreditCardNumber'],-4,4));\n\t\t$creditCardType = $this->getISCreditCardType($data['CreditCardType']);\n\t\tif(!$ccID){\n\t\t\t//Validate the credit card\n\t\t\t$card = array(\n\t\t\t\t'CardType' => $creditCardType,\n\t\t\t\t'ContactId' => $isConID,\n\t\t\t\t'CardNumber' => $data['CreditCardNumber'],\n\t\t\t\t'ExpirationMonth' => sprintf(\"%02s\", $data['ExpirationMonth']),\n\t\t\t\t'ExpirationYear' => $data['ExpirationYear'],\n\t\t\t\t'CVV2' => $data['CVVCode']\n\t\t\t);\n\t\t\t$result = $app->validateCard($card);\n\t\t\tif($result['Valid'] == 'false')\n\t\t\t\treturn \"inlineMsg3\";\n\t\t\t$ccData = array(\n\t\t\t\t\t'ContactId' => $isConID,\n\t\t\t\t\t'FirstName' => $data['FirstName'],\n\t\t\t\t\t'LastName' => $data['LastName'],\n\t\t\t\t\t'BillAddress1' => $data['StreetAddress1'],\n\t\t\t\t\t'BillAddress2' => $data['StreetAddress2'],\n\t\t\t\t\t'BillCity' => $data['City'],\n\t\t\t\t\t'BillState' => $data['State'],\n\t\t\t\t\t'BillZip' => $data['PostalCode'],\n\t\t\t\t\t'BillCountry' => $country,\n\t\t\t\t\t'CardType' => $creditCardType,\n\t\t\t\t\t'NameOnCard' => $data['NameOnCard'],\n\t\t\t\t\t'CardNumber' => $data['CreditCardNumber'],\n\t\t\t\t\t'CVV2' => $data['CVVCode'],\n\t\t\t\t\t'ExpirationMonth' => sprintf(\"%02s\", $data['ExpirationMonth']),\n\t\t\t\t\t'ExpirationYear' => $data['ExpirationYear']\n\t\t\t);\n\t\t\t$ccID = $app->dsAdd(\"CreditCard\", $ccData);\n\t\t}\n\t\t// Create AttentionWizard member\n\t\t$member = new Member();\n\t\t$member->FirstName = $data['FirstName'];\n\t\t$member->Surname = $data['LastName'];\n\t\t$member->Email = $regFormData['Email'];\n\t\t$member->Password = $regFormData['Password']['_Password'];\n\t\t$member->ISContactID = $isConID;\n\t\t$memberID = $member->write();\n\t\t//Find or create the 'user' group and add the member to the group\n\t\tif(!$userGroup = DataObject::get_one('Group', \"Code = 'customers'\")){\n\t\t\t$userGroup = new Group();\n\t\t\t$userGroup->Code = \"customers\";\n\t\t\t$userGroup->Title = \"Customers\";\n\t\t\t$userGroup->Write();\n\t\t\t$userGroup->Members()->add($member);\n\t\t}else{\n\t\t\t$userGroup->Members()->add($member);\n\t\t}\n\t\t//Get product details\n\t\t$product = Product::get()->byID($data['SubscriptionType']);\n\t\t$credits = $product->Credits;\n\t\tif($data['SubscriptionType'] == 1){\n\t\t\t$orderAmount = $product->TrialPrice;\n\t\t\t$productName = \"30 days 1-dollar Trial\";\n\t\t\t$isProductID = 38;\n\t\t}else{\n\t\t\t$productName = $product->Name;\n\t\t\t$orderAmount = $product->RecurringPrice;\n\t\t\t$isProductID = $product->ISInitialProductID;\n\t\t}\n\t\t// Store credit card info\n\t\t$creditCard = new CreditCard();\n\t\t$creditCard->CreditCardType = $data['CreditCardType'];\n\t\t$creditCard->CreditCardNumber = $data['CreditCardNumber'];\n\t\t$creditCard->NameOnCard = $data['NameOnCard'];\n\t\t$creditCard->CreditCardCVV = $data['CVVCode'];\n\t\t$creditCard->ExpiryMonth = $data['ExpirationMonth'];\n\t\t$creditCard->ExpiryYear = $data['ExpirationYear'];\n\t\t$creditCard->Company = $data['Company'];\n\t\t$creditCard->StreetAddress1 = $data['StreetAddress1'];\n\t\t$creditCard->StreetAddress2 = $data['StreetAddress2'];\n\t\t$creditCard->City = $data['City'];\n\t\t$creditCard->State = $data['State'];\n\t\t$creditCard->PostalCode = $data['PostalCode'];\n\t\t$creditCard->Country = $data['Country'];\n\t\t$creditCard->Current = 1;\n\t\t$creditCard->ISCCID = $ccID;\n\t\t$creditCard->MemberID = $memberID;\n\t\t$creditCardID = $creditCard->write();\n\t\t// Create an order\n\t\t$order = new Order();\n\t\t$order->OrderStatus = 'P';\n\t\t$order->Amount = $orderAmount;\n\t\t$order->MemberID = $memberID;\n\t\t$order->ProductID = $data['SubscriptionType'];\n\t\t$order->CreditCardID = $creditCardID;\n\t\t$orderID = $order->write();\n\t\t//Create the Infusionsoft subscription\n\t\t$subscriptionID = $this->createISSubscription($isConID, $product->ISProductID, $product->RecurringPrice, $ccID, 30);\n\t\tif($subscriptionID && is_int($subscriptionID)){\n\t\t\t//Create an infusionsoft order\n\t\t\t$config = SiteConfig::current_site_config();\n\t\t\t$invoiceId = $app->blankOrder($isConID,$productName, $curdate, 0, 0);\n\t\t\t$orderItem = $app->addOrderItem($invoiceId, $isProductID, 9, floatval($orderAmount), 1, $productName, $productName);\n\t\t\t$result = $app->chargeInvoice($invoiceId,$productName,$ccID,$config->MerchantAccount,false);\n\t\t\tif($result['Successful']){\n\t\t\t\t// Create a Subscription record\n\t\t\t\t$nextBillDate = $this->getSubscriptionNextBillDate($subscriptionID);\n\t\t\t\t$expireDate= date('Y-m-d H:i:s', strtotime($nextBillDate));\n\t\t\t\t$startDate= date('Y-m-d H:i:s', strtotime($expireDate. \"-30 days\"));\n\t\t\t\t$subscription = new Subscription();\n\t\t\t\t$subscription->StartDate = $startDate;\n\t\t\t\t$subscription->ExpireDate = $expireDate;\n\t\t\t\t$subscription->MemberID = $memberID;\n\t\t\t\t$subscription->ProductID = $data['SubscriptionType'];\n\t\t\t\t$subscription->OrderID = $orderID;\n\t\t\t\t$subscription->Status = 1;\n\t\t\t\t$subscription->SubscriptionID = $subscriptionID;\n\t\t\t\t$subscription->write();\n\t\t\t\t// Create a MemberCredits record\n\t\t\t\t$memberCredits = new MemberCredits();\n\t\t\t\t$memberCredits->Credits = $credits;\n\t\t\t\t$memberCredits->ExpireDate = $expireDate;\n\t\t\t\t$memberCredits->MemberID = $memberID;\n\t\t\t\t$memberCredits->ProductID = $data['SubscriptionType'];\n\t\t\t\t$memberCredits->SubscriptionID = $subscription->ID;\n\t\t\t\t$memberCredits->write();\n\t\t\t\t// Update order\n\t\t\t\t$order->OrderStatus = 'c';\n\t\t\t\t$order->write();\n\t\t\t\t// If product selected is bronze do a trial signup\n\t\t\t\tif($data['SubscriptionType'] == 1){\n\t\t\t\t\t//Add the InfusionSoft tag\n\t\t\t\t\t$app->grpAssign($isConID, 2216);\n\t\t\t\t\t//Update the InfusionSoft contact details\n\t\t\t\t\t$conDat = array(\n\t\t\t\t\t\t\t'ContactType' => 'AW Customer',\n\t\t\t\t\t\t\t'_AWstartdate' => $curdate,\n\t\t\t\t\t\t\t'_AttentionWizard' => 'Free'\n\t\t\t\t\t);\n\t\t\t\t\t$app->updateCon($isConID, $conDat);\n\t\t\t\t\t// Update Subscription\n\t\t\t\t\t$subscription->IsTrial = 1;\n\t\t\t\t\t$subscription->SubscriptionCount = 0;\n\t\t\t\t\t$subscription->write();\n\t\t\t\t\t// Update Member\n\t\t\t\t\t$member->SignUpTrial = 1;\n\t\t\t\t\t$member->write();\n\t\t\t\t\t// Update Order\n\t\t\t\t\t$order->IsTrial = 1;\n\t\t\t\t\t$order->write();\n\t\t\t\t\t// Update credit card\n\t\t\t\t\t$creditCard->UsedForTrial = 1;\n\t\t\t\t\t$creditCard->write();\n\t\t\t\t}else{\n\t\t\t\t\t// Update Subscription\n\t\t\t\t\t$subscription->SubscriptionCount = 1;\n\t\t\t\t\t$subscription->write();\n\t\t\t\t\t// Add the InfusionSoft tag\n\t\t\t\t\t$isTagId = $this->getISTagIdByProduct($data['SubscriptionType']);\n\t\t\t\t\t$app->grpAssign($isConID, $isTagId);\n\t\t\t\t\t//Update the InfusionSoft contact details\n\t\t\t\t\t$returnFields = array('_AWofmonths');\n\t\t\t\t\t$conDat1 = $app->loadCon($isConID,$returnFields);\n\t\t\t\t\tif(!isset($conDat1['_AWofmonths']))\n\t\t\t\t\t\t$conDat1['_AWofmonths'] = 0;\n\t\t\t\t\t$conDat = array(\n\t\t\t\t\t\t\t'_AWofmonths' => $conDat1['_AWofmonths']+1,\n\t\t\t\t\t\t\t'ContactType' => 'AW Customer',\n\t\t\t\t\t\t\t'_AttentionWizard' => 'Paid and Current',\n\t\t\t\t\t\t\t'_AWstartdate' => $curdate\n\t\t\t\t\t);\n\t\t\t\t\t$app->updateCon($isConID, $conDat);\n\t\t\t\t\t//Add a note\n\t\t\t\t\t$conActionDat = array('ContactId' => $isConID,\n\t\t\t\t\t\t\t'ActionType' => 'UPDATE',\n\t\t\t\t\t\t\t'ActionDescription' => \"Payment made for AW service\",\n\t\t\t\t\t\t\t'CreationDate' => $curdate,\n\t\t\t\t\t\t\t'ActionDate' => $curdate,\n\t\t\t\t\t\t\t'CompletionDate' => $curdate,\n\t\t\t\t\t\t\t'CreationNotes' => \"{$product->Name} Subscription\",\n\t\t\t\t\t\t\t'UserID' => 1\n\t\t\t\t\t);\n\t\t\t\t\t$app->dsAdd(\"ContactAction\", $conActionDat);\n\t\t\t\t}\n\t\t\t\t$member->logIn();\n\t\t\t\t$this->setMessage('Success', 'You have signed-up & the Subscription is created successfully');\n\t\t\t\treturn 'url1';\n\t\t\t}else{\n\t\t\t\t//Set the subscription to Inactive\n\t\t\t\t$this->setSubscriptionStatus($subscriptionID, 'Inactive');\n\t\t\t\t//Update InfusionSoft contact\n\t\t\t\tif($data['SubscriptionType'] == 1){\n\t\t\t\t\t$aw = 'Unsuccessful trial sign-up';\n\t\t\t\t}else{\n\t\t\t\t\t$aw = 'Unsuccessful paid sign-up';\n\t\t\t\t}\n\t\t\t\t$conDat = array(\n\t\t\t\t\t\t'ContactType' => 'AW Prospect',\n\t\t\t\t\t\t'_AttentionWizard' => $aw\n\t\t\t\t);\n\t\t\t\t\n\t\t\t\t$app->updateCon($isConID, $conDat);\n\t\t\t\t// Add an AW prospect tag\n\t\t\t\t//$app->grpAssign($isConID, $this->getISTagIdByPaymentCode(strtoupper($result['Code'])));\n\t\t\t\t$app->grpAssign($isConID, $this->getISTagIdByPaymentCode('DECLINED'));\n\t\t\t\t// Add a note\n\t\t\t\t$conActionDat = array('ContactId' => $isConID,\n\t\t\t\t\t\t'ActionType' => 'UPDATE',\n\t\t\t\t\t\t'ActionDescription' => \"Unsuccessful attempt to sign-up for AW\",\n\t\t\t\t\t\t'CreationDate' => $curdate,\n\t\t\t\t\t\t'ActionDate' => $curdate,\n\t\t\t\t\t\t'CompletionDate' => $curdate,\n\t\t\t\t\t\t'UserID' => 1\n\t\t\t\t);\n\t\t\t\t$conActionID = $app->dsAdd(\"ContactAction\", $conActionDat);\n\t\t\t\t$member->logIn();\n\t\t\t\t$this->setMessage('Error', 'Sorry,the payment failed due to some reason.please update your credit card');\n\t\t\t\treturn \"url2\";\n\t\t\t}\n\t\t}else{\n\t\t\t$member->logIn();\n\t\t\t// Add an AW prospect tag\n\t\t\t$app->grpAssign($isConID, 3097);\n\t\t\t//Update InfusionSoft contact\n\t\t\tif($data['SubscriptionType'] == 1){\n\t\t\t\t$aw = 'Unsuccessful trial sign-up';\n\t\t\t}else{\n\t\t\t\t$aw = 'Unsuccessful paid sign-up';\n\t\t\t}\n\t\t\t$conDat = array(\n\t\t\t\t\t'ContactType' => 'AW Prospect',\n\t\t\t\t\t'_AttentionWizard' => $aw\n\t\t\t);\n\t\t\t$app->updateCon($isConID, $conDat);\n\t\t\t// Add a note\n\t\t\t$conActionDat = array('ContactId' => $isConID,\n\t\t\t\t\t'ActionType' => 'UPDATE',\n\t\t\t\t\t'ActionDescription' => \"Unsuccessful attempt to sign-up for AW\",\n\t\t\t\t\t'CreationDate' => $curdate,\n\t\t\t\t\t'ActionDate' => $curdate,\n\t\t\t\t\t'CompletionDate' => $curdate,\n\t\t\t\t\t'UserID' => 1\n\t\t\t);\n\t\t\t$conActionID = $app->dsAdd(\"ContactAction\", $conActionDat);\n\t\t\t$this->setMessage('Error', 'You have signed-up successfully but the Subscription is not created,please try again.');\n\t\t\treturn \"url3\";\n\t\t}\n\t}", "public function add_to_register_form() {\n\t\t$this->recaptcha->show_recaptcha( array( 'action' => ITSEC_Recaptcha::A_REGISTER ) );\n\t}", "function hrregistration( $atts ) {\n\t$data = shortcode_atts(\n\t\tarray(\n\t\t\t'cname' => 'foo',\n\t\t),\n\t\t$atts\n\t);\n\n\tif ( isset( $_GET['cnumber'] ) ) {\n\t\t$cnumber = intval( wp_unslash( $_GET['cnumber'] ) );\n\t} else {\n\t\t$cnumber = null;\n\t}\n\n\t$config = include plugin_dir_path( __FILE__ ) . 'config.php';\n\t$server_name = $config['server'];\n\t$connection_info = array(\n\t\t'Database' => $config['database'],\n\t\t'UID' => $config['user'],\n\t\t'PWD' => $config['password'],\n\t);\n\n\t$conn = sqlsrv_connect( $server_name, $connection_info );\n\n\tif ( isset( $_GET['action'] ) && isset( $_GET['cnumber'] ) ) {\n\n\t\tif ( ! isset( $_POST[ $config['wp_nonce_field'] ] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST[ $config['wp_nonce_field'] ] ) ), $config['wp_nonce_name'] ) ) {\n\t\t\tdie( 'FAIL!' );\n\t\t}\n\n\t\tif ( empty( $_POST['MUID'] ) ) {\n\t\t\t$muid = 000;\n\t\t} else {\n\t\t\t$muid = intval( wp_unslash( $_POST['MUID'] ) );\n\t\t}\n\n\t\tif ( empty( $_POST['FirstName'] ) || empty( $_POST['LastName'] ) || empty( $_POST['Department'] ) || empty( $_POST['Phone'] ) || empty( $_POST['email'] ) ) {\n\t\t\techo 'All of the fields on the previous page are required. Your registration has been halted because you did not complete all of the required fields. Please click the back button in your browser, and try again - making sure to complete all fields.<br />';\n\t\t\tdie();\n\t\t}\n\n\t\t$first_name = sanitize_text_field( wp_unslash( $_POST['FirstName'] ) );\n\t\t$last_name = sanitize_text_field( wp_unslash( $_POST['LastName'] ) );\n\t\t$department = sanitize_text_field( wp_unslash( $_POST['Department'] ) );\n\t\t$phone = sanitize_text_field( wp_unslash( $_POST['Phone'] ) );\n\t\t$email = sanitize_email( wp_unslash( $_POST['email'] ) );\n\n\t\t$check_sql = \"SELECT * FROM Registrations WHERE Email = '\" . $email . \"' AND CourseNo = '\" . $cnumber . \"'\";\n\t\t$check_stmt = sqlsrv_query( $conn, $check_sql, array(), array( 'Scrollable' => 'static' ) );\n\n\t\tif ( sqlsrv_num_rows( $check_stmt ) > 0 ) {\n\t\t\techo \"You've already successfully registered for this course.\";\n\t\t} else {\n\t\t\t$sql = 'INSERT INTO Registrations (MUID, FirstName, LastName, Department, OfficePhone, Email, RegDate, CourseNo) VALUES (?,?,?,?,?,?,?,?)';\n\t\t\t$params = array( $muid, $first_name, $last_name, $department, $phone, $email, date( 'Y-m-d H:i:s' ), $cnumber ); // phpcs:ignore\n\n\t\t\t$stmt = sqlsrv_query( $conn, $sql, $params );\n\n\t\t\t$course_sql = \"SELECT * FROM Courses WHERE CourseNo = '\" . $cnumber . \"';\";\n\n\t\t\t$course_stmt = sqlsrv_query( $conn, $course_sql );\n\n\t\t\twhile ( $row = sqlsrv_fetch_array( $course_stmt, SQLSRV_FETCH_ASSOC ) ) {\n\t\t\t\t$course_name = $row['CourseName'];\n\t\t\t\t$course_location = $row['Location'];\n\t\t\t\t$course_day = date_format( $row['Date'], 'F j' );\n\t\t\t\t$course_start_time = date_format( $row['StartTime'], 'g:ia' );\n\t\t\t\t$course_end_time = date_format( $row['EndTime'], 'g:ia' );\n\t\t\t\t$course_full_start = date_format( $row['Date'], 'Y-m-d' ) . 'T' . date_format( $row['StartTime'], 'H:i:s' );\n\t\t\t\t$course_full_start = date_format( $row['Date'], 'Y-m-d' ) . 'T' . date_format( $row['EndTime'], 'H:i:s' );\n\t\t\t}\n\n\t\t\tif ( ! $stmt ) {\n\t\t\t\techo 'Sorry there was an issue with your registration, please try again.';\n\t\t\t} else {\n\n\t\t\t\t$email_body = 'You have successfully registered for ' . $course_name . ' at ' . $course_location . ' on ' . $course_day . ' at ' . $course_start_time . ' - ' . $course_end_time;\n\t\t\t\t$email_body .= \".\\r\\r\";\n\t\t\t\t$email_body .= 'For any questions please contact Human Resources.';\n\n\t\t\t\t$headers = 'From: human-resources@marshall.edu';\n\t\t\t\tmail( $email, 'HR Training Registration', $email_body, $headers );\n\n\t\t\t\theader( 'Location: http://www.marshall.edu/human-resources/training-confirmation/' );\n\t\t\t\texit;\n\t\t\t}\n\t\t}\n\t}\n\n\t$class_sql = \"SELECT * FROM Courses WHERE CourseNo = '\" . esc_attr( $cnumber ) . \"'\";\n\t$class_stmt = sqlsrv_query( $conn, $class_sql, array(), array( 'Scrollable' => 'static' ) );\n\n\tif ( ! $class_stmt ) {\n\t\tdie( wp_kses_post( print_r( sqlsrv_errors(), true ) ) );\n\t}\n\n\twhile ( $row = sqlsrv_fetch_array( $class_stmt, SQLSRV_FETCH_ASSOC ) ) {\n\n\t\t$count_sql = \"SELECT * FROM Registrations WHERE CourseNo = '\" . esc_attr( $cnumber ) . \"'\";\n\t\t$count = sqlsrv_query( $conn, $count_sql, array(), array( 'Scrollable' => 'static' ) );\n\n\t\t$seats_left = $row['Seats'] - sqlsrv_num_rows( $count );\n\n\t\tif ( $seats_left < 0 ) {\n\t\t\t$seats_left = 0;\n\t\t}\n\n\t\tif ( $seats_left > 0 ) {\n\t\t\tif ( isset( $cnumber ) ) {\n\t\t\t\techo '<form method=\"POST\" action=\"/human-resources/training/course-registration/?action=y&cnumber=' . esc_attr( $cnumber ) . '\" name=\"hrtraining\">';\n\t\t\t\twp_nonce_field( $config['wp_nonce_name'], $config['wp_nonce_field'] );\n\t\t\t\techo '<div class=\"my-2\">';\n\t\t\t\techo '<label class=\"block vfb-desc\" for=\"MUID\">MUID Number</label>';\n\t\t\t\techo '<input type=\"text\" class=\"text-input\" name=\"MUID\" max=\"9\" min=\"9\" placeholder=\"901xxxxxx\" />';\n\t\t\t\techo '</div>';\n\t\t\t\techo '<div class=\"my-2\">';\n\t\t\t\techo '<label class=\"block vfb-desc\" for=\"FirstName\">First Name</label>';\n\t\t\t\techo '<input type=\"text\" class=\"text-input\" name=\"FirstName\" required />';\n\t\t\t\techo '</div>';\n\t\t\t\techo '<div class=\"my-2\">';\n\t\t\t\techo '<label class=\"block vfb-desc\" for=\"LastName\">Last Name</label>';\n\t\t\t\techo '<input type=\"text\" class=\"text-input\" name=\"LastName\" required />';\n\t\t\t\techo '</div>';\n\t\t\t\techo '<div class=\"my-2\">';\n\t\t\t\techo '<label class=\"block vfb-desc\" for=\"Department\">Department</label>';\n\t\t\t\techo '<input type=\"text\" class=\"text-input\" name=\"Department\" required />';\n\t\t\t\techo '</div>';\n\t\t\t\techo '<div class=\"my-2\">';\n\t\t\t\techo '<label class=\"block vfb-desc\" for=\"Phone\">Phone</label>';\n\t\t\t\techo '<input type=\"text\" class=\"text-input\" name=\"Phone\" required />';\n\t\t\t\techo '</div>';\n\t\t\t\techo '<div class=\"my-2\">';\n\t\t\t\techo '<label class=\"block vfb-desc\" for=\"email\">Email Address</label>';\n\t\t\t\techo '<input type=\"email\" class=\"text-input\" name=\"email\" required />';\n\t\t\t\techo '<input type=\"hidden\" name=\"CourseNo\" value=\"' . esc_attr( $cnumber ) . '\" class=\"text-input\">';\n\t\t\t\techo '</div>';\n\t\t\t\techo '<div class=\"mt-4\">';\n\t\t\t\techo '<input type=\"submit\" name=\"Submit\" value=\"Submit\" class=\"btn btn-green\">';\n\t\t\t\techo '</div>';\n\t\t\t\techo '</form>';\n\t\t\t} else {\n\t\t\t\techo 'Sorry, but this page may not be viewed directly.';\n\t\t\t}\n\t\t} else {\n\t\t\techo 'Sorry registration for this training is full.';\n\t\t}\n\t}\n}", "public function api_entry_signup() {\n\n parent::validateParams(array(\"username\", \"email\", \"password\", \"fullname\", \"church\", \"province\", \"city\", \"bday\"));\n\n $qbToken = $this->qbhelper->generateSession();\n\n if ($qbToken == null || $qbToken == \"\") parent::returnWithErr(\"Generating QB session has been failed.\");\n\n $qbSession = $this->qbhelper->signupUser(\n $qbToken,\n $_POST['username'],\n $_POST['email'],\n QB_DEFAULT_PASSWORD\n );\n /*\n\n */\n if ($qbSession == null)\n parent::returnWithErr($this->qbhelper->latestErr);\n\n $newUser = $this->Mdl_Users->signup(\n $_POST['username'],\n $_POST['email'],\n md5($_POST['password']),\n $_POST['fullname'],\n $_POST['church'],\n $_POST['province'],\n $_POST['city'],\n $_POST['bday'],\n $qbSession\n );\n\n if ($newUser == null) {\n parent::returnWithErr($this->qbhelper->latestErr);\n }\n\n $hash = hash('tiger192,3', $newUser['username'] . date(\"y-d-m-h-m-s\"));\n $baseurl = $this->config->base_url();\n\n $this->load->model('Mdl_Tokens');\n $this->Mdl_Tokens->create(array(\n \"token\" => $hash,\n \"user\" => $newUser['id']\n ));\n\n $content = '<html><head><base target=\"_blank\">\n <style type=\"text/css\">\n ::-webkit-scrollbar{ display: none; }\n </style>\n <style id=\"cloudAttachStyle\" type=\"text/css\">\n #divNeteaseBigAttach, #divNeteaseBigAttach_bak{display:none;}\n </style>\n <style type=\"text/css\">\n .ReadMsgBody{ width: 100%;} \n .ExternalClass {width: 100%;} \n .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;} \n p { margin: 1em 0;} \n table td { border-collapse: collapse;} \n _-ms-viewport{ width: device-width;}\n _media screen and (max-width: 480px) {\n html,body { width: 100%; overflow-x: hidden;}\n table[class=\"container\"] { width:320px !important; padding: 0 !important; }\n table[class=\"content\"] { width:100% !important; }\n td[class=\"mobile-center\"] { text-align: center !important; }\n td[class=\"content-center\"] { text-align: center !important; padding: 0 !important; }\n td[class=\"frame\"] {padding: 0 !important;}\n [class=\"mobile-hidden\"] {display:none !important;}\n table[class=\"cta\"]{width: 100% !important;}\n table[class=\"cta\"] td{display: block !important; text-align: center !important;}\n *[class=\"daWrap\"] {padding: 20px 15px !important;}\n }\n </style>\n\n\n </head><body><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n <tbody><tr><td class=\"frame\" bgcolor=\"#f3f3f3\">\n <table width=\"576\" border=\"0\" cellpadding=\"10\" cellspacing=\"0\" class=\"container\" align=\"center\">\n <tbody><tr><td style=\"padding-left:5px;border-bottom: solid 2px #dcdcdc;\" class=\"mobile-center\"><font face=\"Helvetica, Arial, sans-serif\" size=\"3\" color=\"black\" style=\"font-size: 16px;\">\n <font size=\"4\" color=\"#3db01a\" style=\"font-size:40px;\"><b>iPray</b></font>\n </td></tr>\n </tbody></table>\n </td></tr>\n <tr><td class=\"frame\" bgcolor=\"#f3f3f3\"><div align=\"center\">\n \n <table border=\"0\" cellpadding=\"40\" cellspacing=\"0\" width=\"576\" class=\"container\" align=\"center\"> \n <tbody><tr><td class=\"daWrap\">\n <table width=\"80%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\" class=\"content\">\n <tbody><tr>\n <td align=\"left\" valign=\"top\" style=\"padding-top:15px;\" class=\"content-center\"><font face=\"Helvetica, Arial, sans-serif\" size=\"3\" color=\"black\" style=\"font-size: 16px;\">\n <font size=\"4\" color=\"#3db01a\" style=\"font-size:22px;\"><b>You are almost verified.</b></font><br><br>\n People are looking for someone they can trust. With a verified email, you\"ll be instantly more approachable. Just click the link to finish up.</font>\n <br><br>\n <table cellspacing=\"0\" cellpadding=\"0\" align=\"left\" class=\"cta\">\n <tbody><tr><td style=\"font-size: 17px; color: white; background: #1a6599; background-image: -moz-linear-gradient(top, #2b88c8, #1a6599); background-image: -ms-linear-gradient(top, #2b88c8, #1a6599); background-image: -o-linear-gradient(top, #2b88c8, #1a6599); background-image: -webkit-gradient(linear, center top, center bottom, from(#2b88c8), to(#1a6599)); background-image: -webkit-linear-gradient(top, #2b88c8, #1a6599); background-image: linear-gradient(top, #2b88c8, #1a6599); text-decoration: none; font-weight: normal; display: inline-block; line-height: 25px; border-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px; padding: 10px 40px; \">\n <font face=\"Helvetica, Arial, sans-serif\"><a href=\"'. $baseurl .'AdminLogin/verify?token=' . $hash . '\" style=\"color: #FFFFFF; text-decoration: none; text-shadow: 0px -1px 2px #333333; letter-spacing: 1px; display: block;\">Verify Your Email</a></font>\n </td></tr>\n </tbody></table>\n </td></tr>\n </tbody></table>\n <table width=\"80%\" cellpadding=\"5\" cellspacing=\"0\" border=\"0\" align=\"center\" class=\"content\">\n <tbody><tr><td>&nbsp;</td></tr>\n <tr><td align=\"center\" style=\"border-bottom: solid 1px #dcdcdc;\"><font face=\"Helvetica, Arial, sans-serif\" size=\"2\" color=\"#777\" style=\"font-size: 13px;\">\n <b>Questions?</b> Take a look at our <a href=\"http://www.match.com/help/help.aspx?emailid=b8ba94ac-4dfc-4b5d-9cff-165003e5e85c\" target=\"_blank\" style=\"color:#488ac9;\">FAQs</a>, or contact<a href=\"http://www.match.com/help/help.aspx?emailid=b8ba94ac-4dfc-4b5d-9cff-165003e5e85c\" target=\"_blank\" style=\"color:#488ac9;\"> Customer Care</a>.</font>\n </td></tr>\n </tbody></table>\n </td></tr>\n <tr><td align=\"center\" style=\"padding:15px;\"><font face=\"Arial, sans-serif\" size=\"2\" color=\"#333333\" style=\"font-size:12px;\">\n <em>Please add <a href=\"mailto:mailer@connect.match.com\">mailer@connect.match.com</a> to your address book to ensure our emails reach your inbox.</em><br><br>\n Please do not reply to this email. Replies will not be received. If you have a question, or need assistance, please contact<a href=\"http://www.match.com/help/help.aspx?emailid=b8ba94ac-4dfc-4b5d-9cff-165003e5e85c\" target=\"_blank\" style=\"color:#8a8a8a;\"> Customer Service</a>.</font></td>\n </tr>\n </tbody></table>\n \n </div></td></tr>\n </tbody></table>\n\n <img src=\"http://www.match.com/email/open.aspx?EmailID=b8ba94ac-4dfc-4b5d-9cff-165003e5e85c&amp;SrcSystem=3\" width=\"1\" height=\"1\" border=\"0\">\n <span style=\"padding: 0px;\"></span>\n\n \n\n <style type=\"text/css\">\n body{font-size:14px;font-family:arial,verdana,sans-serif;line-height:1.666;padding:0;margin:0;overflow:auto;white-space:normal;word-wrap:break-word;min-height:100px}\n td, input, button, select, body{font-family:Helvetica, \"Microsoft Yahei\", verdana}\n pre {white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word;width:95%}\n th,td{font-family:arial,verdana,sans-serif;line-height:1.666}\n img{ border:0}\n header,footer,section,aside,article,nav,hgroup,figure,figcaption{display:block}\n </style>\n\n <style id=\"ntes_link_color\" type=\"text/css\">a,td a{color:#064977}</style>\n </body></html>';\n\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);\n curl_setopt($ch, CURLOPT_USERPWD, 'api:key-061710f7633b3b2e2971afade78b48ea');\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');\n curl_setopt($ch, CURLOPT_URL, \n 'https://api.mailgun.net/v3/sandboxa8b6f44a159048db93fd39fc8acbd3fa.mailgun.org/messages');\n curl_setopt($ch, CURLOPT_POSTFIELDS, \n array('from' => 'noreply@iPray1.com <postmaster@ipray1.com>',\n 'to' => $newUser['username'] . ' <' . $newUser['email'] . '>',\n 'subject' => \"Please verify your account.\",\n 'html' => $content));\n $result = curl_exec($ch);\n curl_close($ch);\n\n /*\n Now we should register qb user at first.....\n */\n parent::returnWithoutErr(\"User has been created successfully. Please verfiy your account from verification email.\", $newUser);\n }", "public function Register()\n\t{\n $this->redirectUserLoggedIn();\n\t\t$locations=$this->fetch->getInfo('locations');\n\t\t$services_nav=$this->fetch->getInfo('services',5);\n\t\t$web=$this->fetch->getWebProfile('webprofile');\n\t\t$this->load->view('header',['title'=>'Register',\n 'locations'=>$locations,\n 'services_nav'=>$services_nav,\n\t\t\t\t\t\t\t\t'web'=>$web\n\t\t\t\t\t\t]\n\t\t\t\t\t);\n\t\t$this->load->view('register');\n\t\t$this->load->view('footer');\n\t\t$this->load->view('custom_scripts');\n }", "private static function printRegForm() {\n\t\t\tinclude 'engine/values/site.values.php';\n\t\t\tif($site_reg_open){\n\t\t\techo \"<form action=\\\"?module=handler&action=registration\\\" method=\\\"post\\\">\n\t\t\t\t <div class=\\\"form_settings\\\">\n\t\t\t\t \t<center><h2>\".strip_tags($site_title).\" - Registration</h2></center>\n\t\t\t\t \t<br>\n\t\t\t\t <p><span>Email</span><input type=\\\"text\\\" name=\\\"email1\\\" tabindex=\\\"1\\\" class=\\\"contact\\\"/></p>\n\t\t\t\t <p><span>Confirm email</span><input type=\\\"text\\\" name=\\\"email2\\\" tabindex=\\\"2\\\" class=\\\"contact\\\"/></p>\n\t\t\t\t <p><span>Name</span><input type=\\\"text\\\" name=\\\"name\\\" tabindex=\\\"3\\\" class=\\\"contact\\\"/></p>\n\t\t\t\t <p><span>Password</span><input type=\\\"password\\\" name=\\\"password1\\\" tabindex=\\\"4\\\" class=\\\"contact\\\"/></p>\n\t\t\t\t <p><span>Confirm password</span><input type=\\\"password\\\" name=\\\"password2\\\" tabindex=\\\"5\\\" class=\\\"contact\\\"/></p>\n\t\t\t\t <p><span>User agreement</span><textarea class=\\\"contact textarea\\\" name=\\\"useragreement\\\" readonly=\\\"readonly\\\">\".file_get_contents('engine/values/user.agreement.txt').\"</textarea></p>\n\t\t\t\t <p>By pressing submit you agree to the user agreement above.</p>\n\t\t\t\t <p style=\\\"padding-top: 15px\\\"><span>&nbsp;</span><input class=\\\"submit\\\" type=\\\"submit\\\" tabindex=\\\"6\\\" name=\\\"contact_submitted\\\" value=\\\"Submit\\\" /></p>\n\t\t\t\t </div>\n\t\t\t\t</form>\";\n\t\t\t} else {\n\t\t\t\techo \"Registration is currently closed. For more information contact the administrators.\";\n\t\t\t}\n\t\t}", "public function main() {\n // No need to be able to register again if user is logged in already\n if (isset($_SESSION[\"logged_in\"])) {\n header('Location: ?page=user_main');\n return;\n }\n\n $data[\"title\"] = \"Register for Account\";\n $data[\"errors\"] = false;\n $data[\"added\"] = false;\n\n // Process registration submission\n if (isset($_POST['submit'])) {\n $username = $this->_user_model->clean($_POST[\"user_name\"]);\n $password = $this->_user_model->clean($_POST[\"password\"]);\n\n $errors = $this->checkEntry($username, $password);\n\n if (count($errors) != 0) {\n $data[\"errors\"] = $errors;\n } else {\n $data[\"added\"] = $this->_user_model->addUser($username, $password);\n }\n }\n\n $this->_header->main($data[\"title\"]);\n $this->_register_view->main($data);\n $this->_footer->main();\n }", "public function post_register() {\n try {\n $i = Input::post();\n $validation = \\Fuel\\Core\\Validation::forge();\n $validation->add('email', 'Email')\n ->add_rule('required')\n ->add_rule('valid_email');\n $validation->add('username', 'Username')\n ->add_rule('required')\n ->add_rule('min_length', 6)\n ->add_rule('max_length', 18);\n $validation->add('password', 'Password')\n ->add_rule('required')\n ->add_rule('min_length', 6)\n ->add_rule('max_length', 18);\n\n if ($validation->run()) {\n $email = $i['email'];\n if (\\Utils::isDisposableEmail($email)) throw new \\Craftpip\\Exception(\"$email is a disposable Email, please use a genuine Email-id to signup.\");\n\n $auth = new \\Craftpip\\OAuth\\Auth();\n\n $user = $auth->getByUsernameEmail($i['email']);\n if ($user) throw new \\Craftpip\\Exception('This Email-ID is already registered.');\n\n $user_id = $auth->create_user($i['username'], $i['password'], $i['email'], 1, array());\n $auth->setId($user_id);\n $auth->setAttr('verified', false);\n $auth->setAttr('project_limit', 2);\n\n\n $mail = new \\Craftpip\\Mail($user_id);\n $mail->template_signup();\n if (!$mail->send()) {\n $auth->removeUser($user_id);\n }\n }\n else {\n throw new \\Craftpip\\Exception('Something is not right. Please try again');\n }\n $response = array(\n 'status' => true\n );\n } catch (Exception $e) {\n $e = new \\Craftpip\\Exception($e->getMessage(), $e->getCode());\n $response = array(\n 'status' => false,\n 'reason' => $e->getMessage()\n );\n }\n\n echo json_encode($response);\n }", "function enews_signup_form_snippet( &$module, &$snippet, $parameters )\n{\n // Process form\n if ( $_SERVER['REQUEST_METHOD'] == 'POST' )\n {\n $is_xhr = array_ifnull( $_SERVER, 'HTTP_X_REQUESTED_WITH', '' ) == 'XMLHttpRequest';\n $errors = array();\n\n // Get data from form post\n $data = array();\n $data['locale'] = $module->kernel->request['locale'];\n $data['title'] = trim( substr(array_ifnull($_POST, 'title', ''), 0, 45) );\n $data['first_name'] = trim( substr(array_ifnull($_POST, 'first_name', ''), 0, 255) );\n $data['last_name'] = trim( substr(array_ifnull($_POST, 'last_name', ''), 0, 255) );\n $data['email'] = trim( substr(array_ifnull($_POST, 'email', ''), 0, 255) );\n $data['phone'] = trim( substr(array_ifnull($_POST, 'phone', ''), 0, 255) );\n $data['address'] = trim( substr(array_ifnull($_POST, 'address', ''), 0, 255) );\n $data['city'] = trim( substr(array_ifnull($_POST, 'city', ''), 0, 255) );\n $data['zip_code'] = trim( substr(array_ifnull($_POST, 'zip_code', ''), 0, 255) );\n $data['country'] = trim( substr(array_ifnull($_POST, 'country', ''), 0, 255) );\n $hcaptcha_response = array_ifnull($_POST, 'h-captcha-response', '' );\n\n // Cleanup and validate data\n $required_fields = array( 'title', 'first_name', 'last_name', 'email', 'country' );\n foreach ( $data as $field => $value )\n {\n if ( in_array($field, $required_fields) )\n {\n if ( $value === '' )\n {\n $errors[$field] = $parameters[\"ERROR_{$field}_blank\"];\n }\n else\n {\n if ( $field == 'title' && !array_key_exists($data['title'], $module->kernel->dict['SET_titles']) )\n {\n $errors['title'] = $parameters['ERROR_title_blank'];\n }\n if ( $field == 'email' && !filter_var($data['email'], FILTER_VALIDATE_EMAIL) )\n {\n $errors['email'] = $parameters['ERROR_email_invalid'];\n }\n if ( $field == 'country' )\n {\n $country = array_search( $data['country'], $module->kernel->dict['SET_countries'] );\n if ( $country === FALSE )\n {\n $errors[$field] = $parameters['ERROR_country_invalid'];\n }\n else\n {\n $data['country'] = $country;\n }\n }\n }\n }\n else if ( $value === '' )\n {\n $data[$field] = NULL;\n }\n }\n if ( $hcaptcha_response === '' )\n {\n $errors['h-captcha-response'] = $module->kernel->dict['ERROR_hcaptcha_response_blank'];\n }\n\n // Validate hCaptcha response\n if ( count($errors) == 0 )\n {\n $error = $module->validate_hcaptcha_response( $hcaptcha_response );\n if ( !is_null($error) )\n {\n $errors['h-captcha-response'] = 'hCaptcha Error: ' . $error;\n }\n }\n\n // Insert new subscription\n if ( count($errors) == 0 )\n {\n $values = array();\n foreach ( $data as $value )\n {\n $values[] = $module->kernel->db->escape( $value );\n }\n $sql = 'INSERT INTO subscriptions(' . implode( ', ', array_keys($data) ) . ', created_date, creator_id)';\n $sql .= ' VALUES(' . implode( ', ', $values ) . ', UTC_TIMESTAMP(), NULL)';\n $statement = $module->kernel->db->query( $sql );\n if ( !$statement )\n {\n $module->kernel->quit( 'DB Error: ' . array_pop($this->kernel->db->errorInfo()), $sql, __FILE__, __LINE__ );\n }\n $id = $module->kernel->db->lastInsertId();\n $module->kernel->log( 'message', \"Subscription $id <{$data['email']}> created\", __FILE__, __LINE__ );\n }\n\n // Set page content\n header( 'Content-Type: application/json' );\n echo json_encode( $errors );\n exit();\n }\n\n // Display form\n else\n {\n $module->kernel->smarty->assignByRef( 'snippet_data', $parameters );\n return $module->kernel->smarty->fetch( \"file/snippet/{$snippet['id']}/index.html\" );\n }\n}", "public function register_form()\r\r\r\n\t{\r\r\r\n\t\t/*====================================================\r\r\r\n\t\t\t1.\tDATA FOR ALL PAGE ( FROM api_controller )\r\r\r\n\t\t====================================================*/\r\r\r\n\t\t$data = $this->data_for_all_pages();\r\r\r\n\t\t\r\r\r\n\t\t/*====================================================\r\r\r\n\t\t\t2.\tVALIDATION\r\r\r\n\t\t====================================================*/\r\r\r\n\t\t$email_exist \t\t\t= false;\r\r\r\n\t\t$password_not_same \t= false;\r\r\r\n\t\t$accept_term_not_check\t= false;\r\r\r\n\r\r\r\n\t\tif( isset($_POST['submit_button']) ){\r\r\r\n\r\r\r\n\t\t\t$do_form_validation = true;\r\r\r\n\t\t\tif( !isset($_POST['accept_terms_and_condition']) ){\r\r\r\n\t\t\t\t$do_form_validation \t= false;\r\r\r\n\t\t\t\t$validation \t\t\t= false;\r\r\r\n\t\t\t\t$accept_term_not_check \t= true;\r\r\r\n\t\t\t}\r\r\r\n\r\r\r\n\t\t\t/*====================================================\r\r\r\n\t\t\t\t2.\tVALIDATION RULES\r\r\r\n\t\t\t====================================================*/\r\r\r\n\t\t\t$this->form_validation->set_rules('customer_fname', 'Nama Depan', 'required|min_length[5]|max_length[255]');\r\r\r\n\t\t\t$this->form_validation->set_rules('customer_lname', 'Nama Belakang', 'required|min_length[5]|max_length[255]');\r\r\r\n\t\t\t$this->form_validation->set_rules('customer_sex', 'Jenis Kelamin', 'required');\r\r\r\n\t\t\t$this->form_validation->set_rules('customer_birthday', 'Tanggal Lahir', 'required');\r\r\r\n\t\t\t$this->form_validation->set_rules('customer_email', 'Email', 'required');\r\r\r\n\t\t\t$this->form_validation->set_rules('customer_password', 'Password', 'required');\r\r\r\n\t\t\t$this->form_validation->set_rules('customer_password2', 'Re-Password', 'required');\r\r\r\n\r\r\r\n\t\t\tif ($this->form_validation->run() == TRUE)\r\r\r\n\t\t\t{\r\r\r\n\r\r\r\n\t\t\t\tif( $do_form_validation ){\r\r\r\n\r\r\r\n\t\t\t\t\t/*====================================================\r\r\r\n\t\t\t\t\t\t2.\tCHECK EMAIL\r\r\r\n\t\t\t\t\t====================================================*/\r\r\r\n\t\t\t\t\t$email \t\t= $this->input->post('customer_email');\r\r\r\n\t\t\t\t\t$cek_email\t= $this->model_utama->cek_data($email,'customer_email','customers');\r\r\r\n\r\r\r\n\r\r\r\n\t\t\t\t\tif(count($cek_email->result_array()) <= 0){\r\r\r\n\t\t\t\t\t\t\t\r\r\r\n\t\t\t\t\t\t/*====================================================\r\r\r\n\t\t\t\t\t\t\t3.\tCHECK PASSWORD MATCHES\r\r\r\n\t\t\t\t\t\t====================================================*/\r\r\r\n\t\t\t\t\t\t$password \t = \t$this->security->xss_clean($this->input->post('customer_password'));\r\r\r\n\t\t\t\t\t\t$re_password = \t$this->security->xss_clean($this->input->post('customer_password2')); \r\r\r\n\r\r\r\n\t\t\t\t\t\tif( $password == $re_password ){\r\r\r\n\r\r\r\n\t\t\t\t\t\t\t\t/*====================================================\r\r\r\n\t\t\t\t\t\t\t\t\t3.\tUPLOAD IMAGE\r\r\r\n\t\t\t\t\t\t\t\t====================================================*/\r\r\r\n\t\t\t\t\t\t\t\t$config['upload_path'] \t\t= './uploads/customer/';\r\r\r\n\t\t\t\t\t\t\t\t$config['allowed_types'] \t= 'gif|jpg|png|jpeg|doc|docx|xls|xlsx|rar|zip';\r\r\r\n\t\t\t\t\t\t\t\t\r\r\r\n\t\t\t\t\t\t\t\t$image_folder_path \t\t\t= 'uploads/customer/thumb';\r\r\r\n\t\t\t\t\t\t\t\t$file_dokumen \t\t\t\t= $this->upload_photo( \t$image_folder_path,\r\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$config );\r\r\r\n\r\r\r\n\t\t\t\t\t\t\t\t/*====================================================\r\r\r\n\t\t\t\t\t\t\t\t\t4.\tINSERT DATA \r\r\r\n\t\t\t\t\t\t\t\t====================================================*/\r\r\r\n\t\t\t\t\t\t\t\t$random_hash \t\t\t\t= md5(uniqid(rand(), true));\r\r\r\n\t\t\t\t\t\t\t\t$customer_account_status \t= '0';\r\r\r\n\t\t\t\t\t\t\t\t$customer_activation_key \t= $random_hash;\t\t\r\r\r\n\r\r\r\n\t\t\t\t\t\t\t\t$weleh = array (\r\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t'customer_fname' \t\t=> $this->security->xss_clean($this->input->post('customer_fname')),\r\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t'customer_photo' \t\t=> $this->security->xss_clean($file_dokumen),\r\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t'customer_lname' \t\t=> $this->security->xss_clean($this->input->post('customer_lname')),\r\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t'customer_sex' \t\t\t=> $this->security->xss_clean($this->input->post('customer_sex')),\r\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t'customer_birthday' \t=> $this->date_converter($this->security->xss_clean($this->input->post('customer_birthday')),'','1'),\r\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t'customer_email' \t\t=> $this->security->xss_clean($this->input->post('customer_email')),\r\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t'customer_password' \t\t\t\t=> md5($password),\r\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t'customer_account_status' \t\t\t=> $customer_account_status,\r\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t'customer_account_activation_key' \t=> $customer_activation_key,\r\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t'create_date'\t\t\t\t\t\t=> date('Y-m-d H:i:s')\r\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t);\r\r\r\n\r\r\r\n\t\t\t\t\t\t\t\t$query \t\t= $this->model_utama->insert_data('customers', $weleh);\r\r\r\n\t\t\t\t\t\t\t\t$insert_id \t= $this->db->insert_id();\r\r\r\n\r\r\r\n\t\t\t\t\t\t\t\tif( $query ){\r\r\r\n\r\r\r\n\t\t\t\t\t\t\t\t\t$sess_data = array(\r\r\r\n\t\t\t\t\t\t\t\t \t\t'resend_email_customer_id' => $insert_id\r\r\r\n\t\t\t\t\t\t\t \t\t);\r\r\r\n\t\t\t\t\t\t\t\t\t$this->session->set_userdata($sess_data);\r\r\r\n\r\r\r\n\t\t\t\t\t\t\t\t\t\r\r\r\n\t\t\t\t\t\t\t\t\t/*====================================\r\r\r\n\t\t\t\t\t\t\t\t\t\t5.\tSEND EMAIL CONFIRM REGISTER\r\r\r\n\t\t\t\t\t\t\t\t\t====================================*/\r\r\r\n\t\t\t\t\t\t\t\t\t$actions \t\t\t=\t'confirm_register';\r\r\r\n\t\t\t\t\t\t\t\t\t$recipient_email\t= \t$this->security->xss_clean($this->input->post('customer_email'));\t\t\t\r\r\r\n\t\t\t\t\t\t\t\t\t$result_send \t\t=\t$this->send_email_when( $actions,\r\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$recipient_email,\r\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$random_hash\r\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\r\r\n\t\t\t\t\t\t\t\t\tif( $result_send ){\r\r\r\n\t\t\t\t\t\t\t\t\t\t//$result['register_process'] = true;\r\r\r\n\t\t\t\t\t\t\t\t\t\t$sql = \"UPDATE customers SET email_terkirim='1' WHERE customer_id=\".$insert_id;\r\r\r\n\t\t\t\t\t\t\t\t\t\t$this->db->query($sql);\r\r\r\n\t\t\t\t\t\t\t\t\t}else{\r\r\r\n\t\t\t\t\t\t\t\t\t\t//$result['register_process'] = false;\r\r\r\n\t\t\t\t\t\t\t\t\t\t$sql = \"UPDATE customers SET email_terkirim='0' WHERE customer_id=\".$insert_id;\r\r\r\n\t\t\t\t\t\t\t\t\t\t$this->db->query($sql);\r\r\r\n\t\t\t\t\t\t\t\t\t}\r\r\r\n\r\r\r\n\t\t\t\t\t\t\t\t}\t\t\r\r\r\n\r\r\r\n\t\t\t\t\t\t\t/*====================================================\r\r\r\n\t\t\t\t\t\t\t\tSUCESS JSON RESPONSE\r\r\r\n\t\t\t\t\t\t\t====================================================*/\t\r\r\r\n\t\t\t\t\t\t\t$status \t= self::SUCCESS;\r\r\r\n\t\t\t\t\t\t\t$message \t= $this->_register_success_message;\r\r\r\n\t\t\t\t\t\t\t$validation = true;\t\r\r\r\n\t\t\t\t\t\t\t\r\r\r\n\t\t\t\t\t\t}else{ \r\r\r\n\t\t\t\t\t\t\t$validation \t\t= false;\r\r\r\n\t\t\t\t\t\t\t$password_not_same \t= true;\r\r\r\n\t\t\t\t\t\t\t\r\r\r\n\t\t\t\t\t\t} // if( $password == $re_password ){\r\r\r\n\r\r\r\n\r\r\r\n\t\t\t\t\t}else{ \r\r\r\n\r\r\r\n\t\t\t\t\t\t/*=============================================\r\r\r\n\t\t\t\t\t\t\t3.\tJSON DATA \r\r\r\n\t\t\t\t\t\t=============================================*/\r\r\r\n\t\t\t\t\t\t$validation \t= false;\r\r\r\n\t\t\t\t\t\t$email_exist \t= true;\r\r\r\n\r\r\r\n\t\t\t\t\t} // if(count($cek_email->result_array()) <= 0){\r\r\r\n\t\t\t\t\t\r\r\r\n\t\t\t\t}// if( $do_form_validation ){\r\r\r\n\t\t\t\t\r\r\r\n\r\r\r\n\t\t\t}else{ // if ($this->form_validation->run() == TRUE)\r\r\r\n\t\t\t\t$validation = false;\r\r\r\n\t\t\t}\r\r\r\n\r\r\r\n\t\t\tif( !$validation ){\r\r\r\n\t\t\t\t$status \t\t= self::ERROR;\r\r\r\n\t\t\t\t$message \t\t= $this->_validation_failed_message;\r\r\r\n\r\r\r\n\t\t\t\t$data['validation_error_message'] \t= $this->form_validation->error_array();\r\r\r\n\t\t\t\tif( $email_exist ){\r\r\r\n\t\t\t\t\t$data['validation_error_message']['email_exist'] \t\t= $this->_email_exist_message;\r\r\r\n\t\t\t\t}\r\r\r\n\t\t\t\tif( $password_not_same ){\r\r\r\n\t\t\t\t\t$data['validation_error_message']['password_not_same'] \t= $this->_password_not_same_message;\r\r\r\n\t\t\t\t}\r\r\r\n\t\t\t\tif( $accept_term_not_check ){\r\r\r\n\t\t\t\t\t$data['validation_error_message']['error_term_and_conditions'] \t= $this->_error_term_and_conditions;\r\r\r\n\t\t\t\t}\r\r\r\n\t\t\t}\r\r\r\n\r\r\r\n\t\t}else{\r\r\r\n\r\r\r\n\t\t\t/*=============================================\r\r\r\n\t\t\t\t3.\tJSON DATA \r\r\r\n\t\t\t=============================================*/\r\r\r\n\t\t\t$status \t\t= self::ERROR;\r\r\r\n\t\t\t$message \t\t= $this->_post_variable_not_complete_message;\r\r\r\n\t\t}\r\r\r\n\r\r\r\n\t\t/*=============================================\r\r\r\n\t\t\t3.\tRESPONSE JSON \r\r\r\n\t\t=============================================*/\r\r\r\n\t\t$this->jsonout(\t$status,\r\r\r\n\t\t\t\t\t\t$message, \r\r\r\n\t\t\t\t\t\t$data\r\r\r\n\t\t\t\t\t\t);\r\r\r\n\t\texit;\r\r\r\n\t}", "public function register() {\n\t\t\n\t\t// DB connection\n\t\t$db = Database::getInstance();\n \t$mysqli = $db->getConnection();\n\t\t\n $data = (\"INSERT INTO user (username,password,first_name,\n last_name,dob,address,postcode,email)\n VALUES ('{$this->_username}',\n '{$this->_sha1}',\n '{$this->_first_name}',\n '{$this->_last_name}',\n '{$this->_dob}',\n '{$this->_address}',\n '{$this->_postcode}',\n '{$this->_email}')\");\n\t\t\t\t\t\t \n\t\t\t$result = $mysqli->query($data);\n if ( $mysqli->affected_rows < 1)\n // checks if data has been succesfully inputed\n $this->_errors[] = 'could not process form';\n }", "public function init()\n {\n $this->setAction('/Authentification/registration')->setMethod('post');\n \n $ime = new Zend_Form_Element_Text('tbIme');\n $ime->setLabel('Ime:');\n // provera regularnim izrazima\n $ime->addValidator('regex', false, array(\n 'pattern' => '/^[A-Z][a-z]{2,20}$/'))\n ->addErrorMessage('Ime mora pocinjati velikim slovom i imati minimalno 3, a maksimalno 20 karaktera.');\n $ime->addFilter('StringTrim');\n $ime->setDescription('npr: Danijela');\n \n $prezime = new Zend_Form_Element_Text('tbPrezime');\n $prezime->setLabel('Prezime:');\n $prezime->addValidator('regex', false, array(\n 'pattern' => '/^[A-Z][a-z]{2,20}$/'))\n ->addErrorMessage('Prezime mora pocinjati velikim slovom i imati minimalno 3, a maksimalno 20 karaktera.');\n $prezime->setDescription('npr: Nikitin');\n $prezime->addFilter('StringTrim');\n \n $email = new Zend_Form_Element_Text('tbEmail');\n $email->setLabel('E-mail:');\n $email->setRequired(true);\n $email->addValidator('EmailAddress')->addErrorMessage('E-mail adresa nije ispravna.');\n $email->addFilter('StringTrim');\n $email->setDescription('npr: something@example.any');\n \n $lozinka = new Zend_Form_Element_Password('tbLozinka');\n $lozinka->setLabel('Lozinka:');\n $lozinka->setRequired(true);\n $lozinka->addValidator(new Zend_Validate_StringLength(6, 20))->addErrorMessage('Lozinka mora imati minimalno 6, a maksimalno 20 karaktera');\n $lozinka->addFilter('StringTrim');\n $lozinka->setDescription('Minimalno 6, a maksimalno 20 karaktera');\n \n $lozinkaPonovo = new Zend_Form_Element_Password('tbLozinkaPonovo');\n $lozinkaPonovo->setLabel('Ponovite lozinku:');\n $lozinkaPonovo->setRequired(true);\n $lozinkaPonovo->addValidator(new Zend_Validate_Identical('tbLozinka'))->addErrorMessage('Lozinke se ne poklapaju.'); // poklapanje unetih lozinki\n $lozinkaPonovo->addFilter('StringTrim');\n \n $adresa = new Zend_Form_Element_Text('tbAdresa');\n $adresa->setLabel('Adresa:');\n $adresa->setDescription('npr: Kumodraska 15, Ilije Popovica 24a..');\n $adresa->addValidator('regex',false, array('pattern'=>'/^[A-Z][a-z]+(\\s\\w+)*(\\d|\\w)+$/'))->addErrorMessage('Adresa mora pocinjati velikim slovom i zavrsavati se brojem zgrade.');\n $adresa->addFilter('StringTrim');\n \n $brojTelefona = new Zend_Form_Element_Text('tbBrojTelefona');\n $brojTelefona->setLabel('Broj telefona:');\n $brojTelefona->setDescription('npr: 065/345-67-89');\n $brojTelefona->addValidator('regex',false, array('pattern'=>'/^06\\d\\/\\d{3}(\\-\\d{2}){2}$/'))->addErrorMessage('Broj telefona nije ispravno unet.');\n \n $button = new Zend_Form_Element_Submit('btnRegister');\n $button->setLabel('Registruj se');\n $button->setAttrib('class', 'btn btn-default');\n \n $this->addElements(array($ime, $prezime, $email, $lozinka, $lozinkaPonovo, $adresa, $brojTelefona, $button));\n \n }", "function login_form_register()\n {\n }", "public function init()\n {\n $this->setMethod('post');\n\n // Add an email element\n $this->addElement('text', 'nom', array(\n 'label' => \"Nom de l'endroit:\",\n 'required' => true,\n 'filters' => array('StringTrim')\n ));\n\n // Add an email element\n $this->addElement('select', 'active', array(\n 'label' => \"État\",\n\t 'multiOptions' => array(0 => 'Proposition', 1 => 'ZAP en service')\n ));\n\n // And finally add some CSRF protection\n $this->addElement('hidden', 'latitude', array(\n ));\n\n // And finally add some CSRF protection\n $this->addElement('hidden', 'longitude', array(\n ));\n\n // And finally add some CSRF protection\n $this->addElement('hidden', 'id', array(\n ));\n \n // Add the submit button\n $this->addElement('submit', 'submit', array(\n 'ignore' => true,\n 'label' => 'Modifier',\n ));\n\n // And finally add some CSRF protection\n $this->addElement('hash', 'csrf', array(\n 'ignore' => true,\n ));\n }", "public function ajax_register() {\n $post = \\Input::all();\n //echo '<pre>'.print_r($post); die;\n if (isset($post) && count($post) > 0 && !is_null($post)) {\n \\DB::beginTransaction();\n $Stage = 1;\n try {//populate data array\n $msg = \"\";\n if(!isset($post['listid'])){\n die(\"There are no items in your cart\");\n }\n\n if( (!isset($post[\"cardid\"]) || !$post[\"cardid\"]) && isset($post[\"savecard\"]) && $post[\"savecard\"]){\n $creditinfo = array();\n foreach(array(\"cardnumber\" => \"card_number\", \"cardcvc\" => \"ccv\", \"cardmonth\" => \"expiry_month\", \"cardyear\" => \"expiry_year\") as $source => $destination){\n $creditinfo[$destination] = $post[$source];\n }\n \\App\\Http\\Models\\CreditCard::makenew($creditinfo);\n }\n $Stage=2;\n $post['name'] = $post['ordered_by'];\n $res['restaurant_id'] = $post['hidden_rest_id'];\n $res['user_id'] = $post['user_id'];\n $res['order_type'] = $post['order_type'];\n $res['order_time'] = date('Y-m-d H:i:s');\n $res['delivery_fee'] = $post['delivery_fee'];\n $res['res_id'] = $post['res_id'];\n $res['subtotal'] = $post['subtotal'];\n $res['g_total'] = $post['g_total'];\n $res['tax'] = $post['tax'];\n $res['listid'] = implode(',', $post['listid']);\n $res['prs'] = implode(',', $post['prs']);\n $res['qtys'] = implode(',', $post['qtys']);\n $res['extras'] = implode(',', $post['extras']);\n $res['menu_ids'] = implode(',', $post['menu_ids']);\n $res['restaurant_id'] = $post['res_id'];\n $res['order_till'] = $post['order_till'];\n if(isset($post['contact'])) {$res['contact'] = $post['contact'];}\n $Stage=3;\n if(isset($post[\"reservation_address_dropdown\"]) && $post[\"reservation_address_dropdown\"]){\n $Address = select_field(\"profiles_addresses\", \"id\", $post[\"reservation_address_dropdown\"]);\n $res['address2'] = $Address->address;\n $res['city'] = $Address->city;\n $res['province'] = $Address->province;\n $res['country'] = $Address->country;\n $res['postal_code'] = $Address->postal_code;\n } else {\n if (\\Input::has('address')) {\n $res['address2'] = $post['address'];\n }\n if ($post['added_address'] != '') {\n $res['address2'] = $post['added_address'];\n }\n if (\\Input::has('city')) {\n $res['city'] = $post['city'];\n }\n if (\\Input::has('province')) {\n $res['province'] = $post['province'];\n }\n if (\\Input::has('country')) {\n $res['country'] = $post['country'];\n }\n if (\\Input::has('postal_code')) {\n $res['postal_code'] = $post['postal_code'];\n }\n }\n //echo '<pre>';print_r($res); die;\n $Stage=4;\n \n $res['name'] = trim($post['ordered_by']);\n\n //if the user is not logged in and specified a password, make a new user\n if (!\\Session::has('session_id') && (isset($post['password']) && $post['password'] != '')) {\n if (\\App\\Http\\Models\\Profiles::where('email', $post['email'])->first()) {\n // echo '1yyb';\n die();\n } else {\n $uid = $this->registeruser(\"Users@ajax_register\", $post, 2, 0);\n $res['user_id'] = $uid->id;\n $msg = \"78\";\n \n }\n }\n $Stage=5;\n $ob2 = new \\App\\Http\\Models\\Reservations();\n $ob2->populate($res, \"guid\");\n $ob2->save();\n $oid = $ob2->id;\n $Stage=6;\n /*\n if($post['payment_type']=='cc')\n {\n \n if(isset($post[\"stripeToken\"]) && $post[\"stripeToken\"]){\n if (app('App\\Http\\Controllers\\CreditCardsController')->stripepayment($oid, $post[\"stripeToken\"], $ob2->guid, $post['g_total'])) {\n $this->success(\"Your order has been paid.\");\n // $data['order']->paid = 1;\n }else {\n $this->failure(\"Your order has <B>NOT</B> been paid.\");\n }\n }\n \n }*/\n\n $res['ordered_by'] = $post['ordered_by'];\n \n //$res_data = array('email' => $post['email'], /*'address2' => $post['address2'], 'city' => $post['city'], 'ordered_by' => $post['postal_code'],*/ 'remarks' => $post['remarks'], 'order_till' => $post['order_till'], 'contact' => $phone);\n $res1 = \\App\\Http\\Models\\Reservations::find($oid);\n $res1->populate($res);\n $res1->save();\n $Stage=7;\n\n //echo '<pre>';print_r($res); die;\n event(new \\App\\Events\\AppEvents($res, \"Order Created\"));\n\n if ($res1->user_id) {\n $u2 = \\App\\Http\\Models\\Profiles::find($res1->user_id);\n $userArray3 = $u2->toArray();\n } else {\n $userArray3[\"name\"] = $post[\"ordered_by\"];\n $userArray3[\"email\"] = $post[\"email\"];\n }\n $Stage=8;\n\n $userArray3['mail_subject'] = 'Your ' . DIDUEAT . ' order has been received!';\n $userArray3[\"guid\"] = $ob2->guid;\n $userArray3[\"orderid\"] = $oid;\n $userArray3[\"profile_type\"] = \"user\";\n\n $this->sendEMail(\"emails.receipt\", $userArray3);\n $Stage=9;\n\n $userArray3[\"profile_type\"] = \"restaurant\";\n $userArray3['mail_subject'] = '[' . $userArray3[\"name\"] . '] placed a new order. Please log in to ' . DIDUEAT. ' for more details. Thank you.';\n //notifystore($RestaurantID, $Message, $EmailParameters = [], $EmailTemplate = \"emails.newsletter\", $IncludeVan = false, $Emails = true, $Calls = true, $SMS = true) {\n $ret = app('App\\Http\\Controllers\\OrdersController')->notifystore($res1->restaurant_id, $userArray3['mail_subject'], $userArray3, \"emails.receipt\");\n //debugprint( var_export($ret, true) );\n $Stage=10;\n //CC\n if($post['payment_type']=='cc') {\n if(isset($post[\"stripeToken\"]) && $post[\"stripeToken\"]){\n if (app('App\\Http\\Controllers\\CreditCardsController')->stripepayment($oid, $post[\"stripeToken\"], $ob2->guid, $post['g_total'])) {\n // $this->success(\"Your order has been paid.\");\n //$data['order']->paid = 1;\n }else {\n // $this->failure(\"Your order has <B>NOT</B> been paid.\");\n }\n }\n \n }\n $Stage=11;\n echo '6';\n\n \\DB::commit();\n } catch(\\Illuminate\\Database\\QueryException $e) {\n \\DB::rollback();\n var_dump($e);\n echo handleexception($e, true);\n die();\n } catch(\\Exception $e) {\n \\DB::rollback();\n echo handleexception($e);\n die();\n }\n } else {\n echo \"Invalid request!\";\n }\n die();\n }", "public function beginRegister()\r\n {\r\n \r\n $msg = \"\";\r\n $success = FALSE;\r\n $is_login = $this->_is_login();\r\n //$is_activated = $this->_is_login(FALSE);\r\n \r\n #start register to push to database\r\n if ($is_login) \r\n {\r\n $msg = \"<span class='error'>Please logout and login again</span>\";\r\n //$this->_begin_logout();\r\n }\r\n else \r\n {\r\n # Get all of the parameters\r\n $CI = & get_instance();\r\n $CI->load->helper('url');\r\n $CI->load->library('session');\r\n $CI->load->config('tank_auth', TRUE);\r\n $display_name = $this->_get_posted_value('display_name');\r\n $email = $this->_get_posted_value('email');\r\n $password = $this->_get_posted_value('password');\r\n $repassword = $this->_get_posted_value('repassword');\r\n $country = $this->_get_posted_value('country');\r\n $area = $this->_get_posted_value('area');\r\n $phone = $this->_get_posted_value('phone');\r\n \r\n $term_condition = $this->_get_posted_value('term_condition');\r\n $cap = $this->_get_posted_value('captcha'); \r\n $use_username = $this->config->item('use_username');\r\n $email_activation = $this->config->item('email_activation');\r\n \r\n if(is_null($display_name) || $display_name === \"\")\r\n {\r\n $msg = \"<span class='error'> Display name cannot be empty.</span>\";\r\n }\r\n elseif(is_null($email) || !$this->_validate_email($email))\r\n {\r\n $msg = \"<span class='error'> Email is not a valid format.</span>\";\r\n \r\n }\r\n elseif((is_null($password) || is_null($repassword)) || ($password != $repassword))\r\n {\r\n $msg = \"<span class='error'>Password and confirmed password are not match</span>\";\r\n }\r\n elseif((is_null($password) || is_null($repassword)) || strlen($password) <= 0)\r\n {\r\n $msg = \"<span class='error'>Password cannot be empty</span>\";\r\n }\r\n elseif(strlen($password) < 6 || strlen($password) > 12)\r\n {\r\n $msg = \"<span class='error'>Password length must between 6 to 12 characters </span>\";\r\n }\r\n elseif(is_null($area) || !is_numeric($area))\r\n {\r\n $msg = \"<span class='error'>Area code must be number</span>\";\r\n }\r\n elseif(is_null($phone) || !is_numeric($phone))\r\n {\r\n $msg = \"<span class='error'>Phone must be number</span>\";\r\n }\r\n elseif(is_null($term_condition) || $term_condition != \"true\")\r\n {\r\n $msg = \"<span class='error'>Please understand and agree to the terms and conditions</span>\";\r\n }\r\n elseif(is_null($cap) || $this->_check_recaptcha($cap) === FALSE)\r\n {\r\n $msg = \"<span class='error'> Captcha checking fail, please retry</span>\";\r\n //$msg = $this->config->item('website_name');\r\n }\r\n else\r\n {\r\n //Perform registration\r\n $phone = $this->_getCorrectFormatPhone(\"($area)$phone\", $country);\r\n $Members_Info[\"username\"] = $use_username ? $email : ''; \r\n $Members_Info[\"display_name\"] = $display_name;\r\n $Members_Info[\"email\"] = $email;\r\n $Members_Info[\"password\"] = $password;\r\n $Members_Info[\"phone\"] = $phone;\r\n $Members_Info[\"country\"] = $country;\r\n $Members_Info[\"email_activation\"] = $this->config->item('email_activation');\r\n $val_return = GeneralFunc::CB_SendReceive_Service_Request(\"CB_Member:create_member\", json_encode($Members_Info));\r\n \r\n \r\n $return_data = json_decode($val_return, TRUE);\r\n if (!is_null($return_data[\"data\"][\"result\"]) && !array_key_exists(\"error\", $return_data[\"data\"][\"result\"])) \r\n {\r\n $data = $return_data[\"data\"][\"result\"];\r\n $data['site_name'] = $this->config->item('website_name');\r\n\r\n if ($email_activation) {\t\t\t\t\t\t\t\t\t// send \"activate\" email\r\n\t\t\t\t$data['activation_period'] = $this->config->item('email_activation_expire') / 3600;\r\n\t\t\t\t$this->_send_email('activate', $data['email'], $data);\r\n } else {\r\n\t\t\t\tif ($this->config->item('email_account_details')) {\t// send \"welcome\" email\r\n $this->_send_email('welcome', $data['email'], $data);\r\n\t\t\t\t}\r\n }\r\n $success = TRUE;\r\n \r\n }\r\n else \r\n {\r\n $errors = $return_data[\"data\"][\"result\"][\"error\"];\r\n if (isset($errors['phone'])) \r\n {\r\n $msg = \"<span class='error'>\" . $phone . \" is in used. Please try another phone</span>\";\r\n }\r\n elseif (isset($errors['displayname'])) \r\n {\r\n $msg = \"<span class='error'> Reserved keyword or non-alphabetic/numberic character is found in \" . $display_name . \" Please try another name</span>\";\r\n }\r\n elseif (isset($errors['username'])) \r\n {\r\n $msg = \"<span class='error'>\" . $email . \" is in used. Please try another email</span>\";\r\n }\r\n elseif (isset($errors['email'])) \r\n {\r\n $msg = \"<span class='error'>\" . $email . \" is in used. Please try another email</span>\";\r\n }\r\n elseif (isset($errors['banned'])) \r\n {\r\n $msg = \"<span class='error'>\" . $login . \" is banned from page.</span>\";\r\n } \r\n elseif (isset($errors['not_activated'])) \r\n {\t\t\t\t// not activated user\r\n $msg = \"<span class='error'>\" . $login . \" is not activated.</span>\";\r\n\r\n } \r\n else\r\n {\r\n $msg = \"<span class='error'> Fail to register user, please try again</span>\";\r\n }\r\n //$msg = \"<span class='error'> Fail to register user, please try again</span>\";\r\n $success = FALSE;\r\n }\r\n\r\n }\r\n \r\n \r\n }\r\n if ($success === FALSE)\r\n {\r\n $captcha_html = $this->_create_recaptcha();\r\n $data[\"captcha_html\"] = $captcha_html;\r\n $data[\"msg\"] = $msg;\r\n $this->_print(json_encode($data));\r\n }\r\n else\r\n {\r\n $data[\"msg\"] = \"Success\";\r\n $this->_print(json_encode($data));\r\n }\r\n }", "public function formRegister(){\n $this->view->registerForm();\n }", "function signup_wptc_server_wptc() {\r\n\r\n\tWPTC_Base_Factory::get('Wptc_App_Functions')->verify_ajax_requests();\r\n\r\n\t$config = WPTC_Factory::get('config');\r\n\r\n\t$email = trim($config->get_option('main_account_email', true));\r\n\t$emailhash = md5($email);\r\n\t$email_encoded = base64_encode($email);\r\n\r\n\t$pwd = trim($config->get_option('main_account_pwd', true));\r\n\t$pwd_encoded = base64_encode($pwd);\r\n\r\n\tif (empty($email) || empty($pwd)) {\r\n\t\treturn false;\r\n\t}\r\n\r\n\twptc_log($email, \"--------email--------\");\r\n\r\n\t$name = trim($config->get_option('main_account_name'));\r\n\t// $cron_url = site_url('wp-cron.php'); //wp cron commented because of new cron\r\n\t$cron_url = get_wptc_cron_url();\r\n\r\n\t$app_id = 0;\r\n\tif ($config->get_option('appID')) {\r\n\t\t$app_id = $config->get_option('appID');\r\n\t}\r\n\r\n\t//$post_string = \"name=\" . $name . \"&emailhash=\" . $emailhash . \"&cron_url=\" . $cron_url . \"&email=\" . $email_encoded . \"&pwd=\" . $pwd_encoded . \"&site_url=\" . home_url();\r\n\r\n\t$post_arr = array(\r\n\t\t'email' => $email_encoded,\r\n\t\t'pwd' => $pwd_encoded,\r\n\t\t'cron_url' => $cron_url,\r\n\t\t'site_url' => home_url(),\r\n\t\t'name' => $name,\r\n\t\t'emailhash' => $emailhash,\r\n\t\t'app_id' => $app_id,\r\n\t);\r\n\r\n\t$result = do_cron_call_wptc('signup', $post_arr);\r\n\r\n\t$resarr = json_decode($result);\r\n\r\n\twptc_log($resarr, \"--------resarr-node reply--------\");\r\n\r\n\tif (!empty($resarr) && $resarr->status == 'success') {\r\n\t\t$config->set_option('wptc_server_connected', true);\r\n\t\t$config->set_option('signup', 'done');\r\n\t\t$config->set_option('appID', $resarr->appID);\r\n\r\n\t\tinit_auto_backup_settings_wptc($config);\r\n\t\t$set = push_settings_wptc_server($resarr->appID, 'signup');\r\n\t\tif (WPTC_ENV !== 'production') {\r\n\t\t\t// echo $set;\r\n\t\t}\r\n\r\n\t\t$to_url = network_admin_url() . 'admin.php?page=wp-time-capsule';\r\n\t\treturn true;\r\n\t} else {\r\n\t\t$config->set_option('last_service_error', $result);\r\n\t\t$config->set_option('appID', false);\r\n\r\n\t\tif (WPTC_ENV !== 'production') {\r\n\t\t\techo \"Creating Cron service failed\";\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}\r\n}", "function ajax_register() {\n \n\t\t\t// First check the nonce, if it fails the function will break\n\t\t\tcheck_ajax_referer( 'ajax-register-nonce', 'securityregister', false );\n\t\t\t\t\n\t\t\t// Nonce is checked, get the POST data and sign user on\n\t\t\t$info = array();\n\t\t\t$info['user_nicename'] = $info['nickname'] = $info['display_name'] = $info['first_name'] = $info['user_login'] = sanitize_user($_POST['username']) ;\n\t\t\t$info['user_pass'] = sanitize_text_field($_POST['password']);\n\t\t\t$info['user_email'] = sanitize_email( $_POST['email']);\n\t\t\t\n\t\t\t// Register the user\n\t\t\t$user_register = wp_insert_user( $info );\n\t\t\t if ( is_wp_error($user_register) ){\t\n\t\t\t\t$error = $user_register->get_error_codes()\t;\n\t\t\t\t\n\t\t\t\tif(in_array('empty_user_login', $error))\n\t\t\t\t\techo json_encode(array('loggedin'=>false, 'message'=>__($user_register->get_error_message('empty_user_login'))));\n\t\t\t\telseif(in_array('existing_user_login',$error))\n\t\t\t\t\techo json_encode(array('loggedin'=>false, 'message'=>__('El nombre de usuario ya existe.', 'project045' )));\n\t\t\t\telseif(in_array('existing_user_email',$error))\n\t\t\t\techo json_encode(array('loggedin'=>false, 'message'=>__('La dirección de email ya existe.', 'project045' )));\n\t\t\t} else {\t\t\t\n\t\t\t \tself::auth_user_login($info['nickname'], $info['user_pass'], __( 'Registro', 'project045' ) ); \n\t\t\t}\n\t\t \n\t\t\tdie();\n\t\t}", "function registerUser()\n {\n $DBA = new DatabaseInterface();\n $fields = array(0 => 'title', 1 => 'first_name', 2 => 'last_name', 3 => 'contacttelephone', 4 => 'contactemail', 5 => 'password', 6 => 'username', 7 => 'dob', 8 => 'house', 9 => 'street', 10 => 'town', 11 => 'county', 12 => 'pcode', 13 => 'optout', 14 => 'newsletter', 15 => 'auth_level', 16 => 'store_owner');\n $fieldvals = array(0 => $this->Title, 1 => $this->FirstName, 2 => $this->LastName, 3 => $this->ContactTelephone, 4 => $this->ContactEmail, 5 => $this->Password, 6 => $this->Username, 7 => $this->DOB, 8 => $this->House, 9 => $this->Street, 10 => $this->Town, 11 => $this->County, 12 => $this->PCode, 13 => $this->Optout, 14 => $this->NewsletterSubscriber, 15 => $this->AuthLevel, 16 => 1);\n $rs = $DBA->insertQuery(DBUSERTABLE, $fields, $fieldvals);\n if ($rs == 1)\n {\n $this->RegistrationSuccess = 1;\n }\n if (isset($this->PCode))\n {\n $this->geoLocate();\n }\n }", "function renderRegistrationForm()\r\n{\r\n\tdebugStr(\"Entered renderRegForm()\");\r\n\t\r\n\techo '<h1>Please Register with the Portal</h1>';\r\n\tvalidateForm();\r\n\techo '<body>';\r\n\techo '<form onSubmit=\"checkForm();\" method=\"post\" name=\"registration\" action=\"index.php\" >';\r\n\t\r\n\techo '<table>';\r\n\techo '<tr><th>First Name*:</th><td><input name=\"fname\"></td></tr>';\r\n\techo '<tr><th>Last Name*:</th><td><input name=\"lname\"></td></tr>';\r\n\techo '<tr><th>Email*:</th><td><input name=\"email\"></td></tr>';\r\n\techo '<tr><th>Phone*:</th><td><input name=\"phone\"></td></tr>';\r\n\techo '<tr><td></td><td></td></tr>';\r\n\techo '<tr><td></td><td></td></tr>';\r\n\techo '<tr><td></td><td></td></tr>';\r\n\techo '<tr><td></td><td></td></tr>';\r\n\techo '<tr><th></th><td><img src=\"captcha.php\" width=\"120\" height=\"30\" border=\"1\" alt=\"CAPTCHA\"></td></tr>';\r\n\techo '<tr><th></th><td><input type=\"text\" size=\"6\" maxlength=\"5\" name=\"captcha\" value=\"\"></td></tr>';\r\n\techo '<tr><th></th><td><small>copy the digits from the image into this box</small></td></tr>';\r\n\techo '<tr><td></td><td></td></tr>';\r\n\techo '<tr><td></td><td></td></tr>';\r\n\techo '<tr><th></th><td><input type=\"submit\" value=\"Submit\"></td></tr>';\r\n\techo '</table>';\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\techo '</form>';\r\n\techo '</body>';\r\n\techo '</html>';\r\n\t\r\n\t\r\n\t\r\n\t\r\n\tdebugStr(\"Exited renderRegForm()\");\r\n}", "public function displayRegisterForm()\n {\n // charger le HTML de notre template\n require OPROFILE_TEMPLATES_DIR . 'register-form.php';\n }", "function register_dz40()\n\t\t{\n\t\t\tglobal $db,$bbspre,$registerinfo;\n\t\t\t$this->username\t\t=\t$registerinfo[user]\t;\n\t\t\t$this->password\t\t=\t$registerinfo[pass]\t;\n\n\t\t\t$this->userkind\t\t=\t'10'\t\t\t\t;\t//\tCHANGE BY YOUR BBS CONFIG\n\n\t\t\t$this->email\t\t=\t$email\t\t\t\t;\n\n\t\t\tif (!$db->num($db->query(\"select username from {$bbspre}members where username='\".$this->username.\"'\")))\n\t\t\t{\n\t\t\t\t$db->query(\"INSERT INTO {$bbspre}members\n\t\t\t\t\t(username,password,groupid,regip,regdate,email,timeoffset)\n\t\t\t\t\tVALUES\n\t\t\t\t\t('\".$this->username.\"','\".$this->password.\"','10','\".getenv(\"REMOTE_ADDR\").\"','\".time().\"','\".$this->email.\"','8')\");\n\t\t\t\t$uid = $db->query_id();\n\t\t\t\t$db->query(\"INSERT INTO {$bbspre}memberfields (uid, site, icq) VALUES ('$uid', '$site', '$icq')\");\n\t\t\t}\n\t\t}", "public function doRegister()\n {\n\n //check if all the fields are filled\n if (!Request::checkVars(Request::postData(), array('username', 'password'))) {\n echo json_encode(array(\"swal\" => array(\"title\" => \"Oops!\", \"text\" => \"Complete all the fields!\", \"type\" => \"error\")));\n exit;\n }\n\n //create the user entity based on filled data\n $userEntity = new User(Request::postData());\n\n //check if the user exists and get it as entity if exists\n if ($this->repository->findUser($userEntity)) {\n echo json_encode(array(\"swal\" => array(\"title\" => \"Oops!\", \"text\" => \"The username/email already exists!\", \"type\" => \"error\")));\n exit;\n }\n\n //add the user into DB\n $this->repository->addUser($userEntity);\n\n echo json_encode(\n array(\n \"swal\" => array(\"title\" => \"Success!\", \"text\" => \"Your account has been created!\", \"type\" => \"success\", \"hideConfirmButton\" => true),\n \"redirect\" => array(\"url\" => BASE_URL . '/index.php?page=home', 'time' => 1)\n )\n );\n }", "public function init() {\r\n $this->setName(__CLASS__);\r\n $this->setMethod('post');\r\n\r\n $this->addElement('text', 'code', array(\r\n 'filters' => array('StringTrim'),\r\n 'validators' => array(\r\n array('StringLength', false, array(0, 150)),\r\n ),\r\n 'required' => true,\r\n 'label' => 'code',\r\n 'value' => $_GET['code'] ? $_GET['code'] : ''\r\n ));\r\n $this->addElement('text', 'client_id', array(\r\n 'filters' => array('StringTrim'),\r\n 'validators' => array(\r\n array('StringLength', false, array(0, 50)),\r\n ),\r\n 'required' => true,\r\n 'label' => 'Client ID:',\r\n 'value' => 'hungtd'\r\n ));\r\n $this->addElement('text', 'client_secret', array(\r\n 'filters' => array('StringTrim'),\r\n 'validators' => array(\r\n array('StringLength', false, array(0, 50)),\r\n ),\r\n 'required' => true,\r\n 'label' => 'Client Secret:',\r\n 'value' => '123456'\r\n ));\r\n \r\n\r\n $this->addElement('text', 'redirect_uri', array(\r\n 'filters' => array('StringTrim'),\r\n 'validators' => array(\r\n array('StringLength', false, array(0, 1050)),\r\n ),\r\n 'required' => true,\r\n 'label' => 'redirect uri:',\r\n ));\r\n\r\n $this->addElement('text', 'grant_type', array(\r\n 'filters' => array('StringTrim'),\r\n 'validators' => array(\r\n array('StringLength', false, array(0, 20000)),\r\n ),\r\n 'required' => true,\r\n 'label' => 'grant_type:',\r\n 'value' => 'authorization_code'\r\n ));\r\n\r\n $this->addElement('submit', 'loginButton', array(\r\n 'required' => false,\r\n 'ignore' => true,\r\n 'label' => 'Get Access Token',\r\n ));\r\n\r\n //$this->addElement(new Zend_Form_Element_Hash('hash'));\r\n }", "function init($aFormValue){\n\n\t$objResponse = new xajaxResponse();\n\t\n\tglobal $locate,$config;\n\n if (isset($_COOKIE[\"language\"])) {\n\t\t$language = $_COOKIE[\"language\"];\t\n\t}else{\n\t\t$language = \"es_MX\";\n\t}\n\n list($_SESSION['curuser']['language'],$_SESSION['curuser']['country']) = preg_split (\"/_/\", $language);\t//get locate parameter\n\n\t$locate=new Localization($_SESSION['curuser']['language'],$_SESSION['curuser']['country'],'login');\t\t\t//init localization class\n\t$objResponse->addAssign(\"titleDiv\",\"innerHTML\",$locate->Translate(\"forgot_login_title\"));\n\t$objResponse->addAssign(\"emailDiv\",\"innerHTML\",$locate->Translate(\"email\").\"&nbsp;&nbsp;&nbsp;\");\n\t$objResponse->addAssign(\"validcodeDiv\",\"innerHTML\",$locate->Translate(\"Valid Code\").\"&nbsp;&nbsp;&nbsp;\");\n\t$objResponse->addAssign(\"loginButton\",\"value\",$locate->Translate(\"submit\"));\n\t$objResponse->addAssign(\"loginButton\",\"disabled\",false);\n\t$objResponse->addAssign(\"onclickMsg\",\"value\",$locate->Translate(\"send_please_waiting\"));\t\n\t$objResponse->addScript(\"xajax.$('email').focus();\");\n\t$objResponse->addScript(\"imgCode = new Image;imgCode.src = 'showimage.php';document.getElementById('imgCode').src = imgCode.src;\");\n\n\t$objResponse->addAssign(\"divCopyright\",\"innerHTML\",Common::generateCopyright($skin));\n unset($_SESSION['curuser']);\n \n\treturn $objResponse;\n}", "public function customer_register($request_data){\n \n $dbs = new DatabaseControls();\n \n $newid = $dbs->getLastId($this->table_name,'c_id') + 1;\n\n //getting data from $request_data\n $c_name = $request_data['c_name'];\n $c_email = $request_data['c_email'];\n $c_cont_no = $request_data['c_cont_no'];\n $c_pass = sha1($request_data['c_password']);\n $c_food_pref = $request_data['c_food_pref'];\n $c_cty_code = \"+91\";\n $qry = \"insert into \".$this->table_name.\" values ('\".$newid.\"','\".$c_name.\"','\".$c_email.\"','\".$c_cty_code.\"','\".$c_cont_no.\"','\".$c_pass.\"','\".$c_food_pref.\"')\";\n \n $result = $dbs->run_insert_qry($qry);\n return json_encode($result);\n }", "function register() {\n \n $controlquery = doquery(\"SELECT * FROM {{table}} WHERE id='1' LIMIT 1\", \"control\");\n $controlrow = mysql_fetch_array($controlquery);\n \n if (isset($_POST[\"submit\"])) {\n \n extract($_POST);\n \n $errors = 0; $errorlist = \"\";\n if (strlen($password1) > 10){ $errors++; $errorlist .= \"Senha não pode conter mais que 10 caracteres.<br />\"; }\n // Process username.\n if ($username == \"\") { $errors++; $errorlist .= \"Nome de usuário é necessário.<br />\"; }\n if (preg_match(\"/[^A-z0-9_\\-]/\", $username)==1) { $errors++; $errorlist .= \"Nome de usuário deve ser alfanumérico(não pode conter espaços).<br />\"; } // Thanks to \"Carlos Pires\" from php.net!\n $usernamequery = doquery(\"SELECT username FROM {{table}} WHERE username='$username' LIMIT 1\",\"users\");\n if (mysql_num_rows($usernamequery) > 0) { $errors++; $errorlist .= \"Esse nome de usuário já está em uso.<br />\"; }\n \n // Process charname.\n if ($charname == \"\") { $errors++; $errorlist .= \"Campo de Nome do Personagem é necessário.<br />\"; }\n if (preg_match(\"/[^A-z0-9_\\-]/\", $charname)==1) { $errors++; $errorlist .= \"Nome de usuário deve ser alfanumérico(não pode conter espaços).<br />\"; } // Thanks to \"Carlos Pires\" from php.net!\n $characternamequery = doquery(\"SELECT charname FROM {{table}} WHERE charname='$charname' LIMIT 1\",\"users\");\n if (mysql_num_rows($characternamequery) > 0) { $errors++; $errorlist .= \"Esse nome de usuário já está em uso.<br />\"; }\n \n // Process email address.\n if ($email1 == \"\" || $email2 == \"\") { $errors++; $errorlist .= \"Campo de e-mail é necessário.<br />\"; }\n if ($email1 != $email2) { $errors++; $errorlist .= \"Os e-mails não coincidem.<br />\"; }\n if (! is_email($email1)) { $errors++; $errorlist .= \"O e-mail não é válido.<br />\"; }\n $emailquery = doquery(\"SELECT email FROM {{table}} WHERE email='$email1' LIMIT 1\",\"users\");\n if (mysql_num_rows($emailquery) > 0) { $errors++; $errorlist .= \"Esse e-mail já está em uso.<br />\"; }\n \n // Process password.\n if (trim($password1) == \"\") { $errors++; $errorlist .= \"Campo de senha é necessário.<br />\"; }\n if (preg_match(\"/[^A-z0-9_\\-]/\", $password1)==1) { $errors++; $errorlist .= \"Sua senha deve ser alfanumérica.<br />\"; } // Thanks to \"Carlos Pires\" from php.net!\n if ($password1 != $password2) { $errors++; $errorlist .= \"Os campos de senha não coincidem.<br />\"; }\n $password = md5($password1);\n \n if ($errors == 0) {\n \n if ($controlrow[\"verifyemail\"] == 1) {\n $verifycode = \"\";\n for ($i=0; $i<8; $i++) {\n $verifycode .= chr(rand(65,90));\n }\n } else {\n $verifycode='1';\n }\n \n $query = doquery(\"INSERT INTO {{table}} SET id='',regdate=NOW(),verify='$verifycode',username='$username',password='$password',email='$email1',charname='$charname',charclass='$charclass',difficulty='$difficulty'\", \"users\") or die(mysql_error());\n \n if ($controlrow[\"verifyemail\"] == 1) {\n if (sendregmail($email1, $verifycode) == true) {\n $page = \"Sua conta foi criada com sucesso.<br /><br />Você deve receber um e-mail de confirmação logo. Você precisará verificar o código que está presente no seu e-mail antes de entrar no jogo. Uma vez recebido o e-mail, por favor visite a <a href=\\\"users.php?do=verify\\\">Página de Verificação</a> para ativar sua conta e começar a jogar.\";\n } else {\n $page = \"Sua conta foi criada com sucesso.<br /><br />De qualquer forma, houve um erro durante o envio do seu e-mail de confirmação. Por favor cheque com o Administrador do jogo para resolver seu problema.\";\n }\n } else {\n $page = \"Sua conta foi criada com sucesso.<br /><br />Você pode agora acessar a <a href=\\\"login.php?do=login\\\">Página de Login</a> e continuar jogando \".$controlrow[\"gamename\"].\"!\";\n }\n \n } else {\n \n $page = \"O(s) seguinte(s) erro(s) ocorreram enquanto sua conta estava sendo feita:<br /><span style=\\\"color:red;\\\">$errorlist</span><br />Por favor volte e tente novamente.\";\n \n }\n \n } else {\n \n $page = gettemplate(\"register\");\n if ($controlrow[\"verifyemail\"] == 1) { \n $controlrow[\"verifytext\"] = \"<br /><span class=\\\"small\\\">Um código de verificação será enviado para seu e-mail, você não está habilidade de jogar antes de entrar com seu código. Esteja certo de preencher com um e-mail válido.</span>\";\n } else {\n $controlrow[\"verifytext\"] = \"\";\n }\n $page = parsetemplate($page, $controlrow);\n \n }\n \n $topnav = \"<a href=\\\"login.php?do=login\\\"><img src=\\\"images/button_login.gif\\\" alt=\\\"Log In\\\" border=\\\"0\\\" /></a><a href=\\\"users.php?do=register\\\"><img src=\\\"images/button_register.gif\\\" alt=\\\"Register\\\" border=\\\"0\\\" /></a><a href=\\\"help.php\\\"><img src=\\\"images/button_help.gif\\\" alt=\\\"Help\\\" border=\\\"0\\\" /></a>\";\n display($page, \"Registrar\", false, false, false);\n \n}", "function hosting_signup_form() {\n drupal_add_js(drupal_get_path('module', 'hosting_signup') . '/hosting_signup_form.js');\n $form = xmlrpc(_hosting_signup_get_url(), 'hosting_signup.getForm', _hosting_signup_get_key(), $_POST);\n if (!$form) {\n drupal_set_message(t(\"XMLRPC request failed: %error\", array('%error' => xmlrpc_error_msg())), 'error');\n }\n $form['#action'] = '/hosting/signup';\n $form['#submit'][] = 'hosting_signup_form_submit';\n $form['#validate'][] = 'hosting_signup_form_validate';\n return $form;\n}", "function registerUser()\n {\n $DBA = new DatabaseInterface();\n $fields = array(0 => 'title', 1 => 'first_name', 2 => 'last_name', 3 => 'contacttelephone', 4 => 'contactemail', 5 => 'password', 6 => 'username', 7 => 'dob', 8 => 'house', 9 => 'street', 10 => 'town', 11 => 'county', 12 => 'pcode', 13 => 'optout', 14 => 'newsletter', 15 => 'auth_level');\n $fieldvals = array(0 => $this->Title, 1 => $this->FirstName, 2 => $this->LastName, 3 => $this->ContactTelephone, 4 => $this->ContactEmail, 5 => $this->Password, 6 => $this->Username, 7 => $this->DOB, 8 => $this->House, 9 => $this->Street, 10 => $this->Town, 11 => $this->County, 12 => $this->PCode, 13 => $this->Optout, 14 => $this->NewsletterSubscriber, 15 => $this->AuthLevel);\n $rs = $DBA->insertQuery(DBUSERTABLE, $fields, $fieldvals);\n if ($rs == 1)\n {\n $this->RegistrationSuccess = 1;\n }\n if (isset($this->PCode))\n {\n $this->geoLocate();\n }\n unset($DBA, $rs, $fields, $fieldvals);\n $DBA = new DatabaseInterface();\n $fields = array(0 => 'id');\n $idfields = array(0 => 'username');\n $idvals = array(0 => $this->Username);\n $rs = $DBA->selectQuery(DBUSERTABLE, $fields, $idfields, $idvals);\n if (!isset($rs[2]))\n {\n while ($res = mysql_fetch_array($rs[0]))\n {\n $this->setUserVar('ID', $res['id']);\n }\n }\n unset($DBA, $rs, $fields, $idfields, $idvals);\n }", "function do_register()\n{\nif ($_POST[\"do\"]==\"register\")\n{ $db = mysql_connect(\"localhost\", \"portal\", \"psacln\") or die(\"Verbindungsfehler\");\n\n //Am Anfang keine Fehler ;-)\n\t$error=\"\";\n\t\n\t\t//Pr&uuml;fe ob AGB akzeptiert wurden [AGB]\n\tif($_POST[\"acc_agb\"]==\"0\")\n\t{ $error.=\"Sie m&uuml;ssen mit unseren Nutzungsbedingungen einverstanden sein, um alle Funktionen dieser Webpr&auml;senz nutzen zu k&ouml;nnen.<br />\"; }\n\t\n\t//Pr&uuml;fe leeres Felder [NICK]\n\tif(empty($_POST[\"nick\"]))\n\t{ $error.=\" Bitte geben Sie einen Nicknamen ein.<br />\"; }\n\t\n\t//Pr&uuml;fe leeres Felder [PW]\n\tif(empty($_POST[\"pw\"]))\n\t{ $error.=\"Bitte geben Sie ein Passwort ein.<br />\"; }\n\t\n\t//Pr&uuml;fe leeres Felder [PW2]\n\tif(empty($_POST[\"pw2\"]))\n\t{ $error.=\"Bitte geben Sie Ihr Password doppelt ein, um Fehleingaben zu verhindern.<br />\"; }\n\t\n\t//Pr&uuml;fe leeres Felder [E-Mail]\n\tif(empty($_POST[\"email\"]))\n\t{ $error.=\" Bitte geben Sie eine g&uuml;tige E-Mail-Adresse ein.<br />\"; }\t\t\n\n\t//Pr&uuml;fe gleichheit der Felder PW und PW2\n\tif($_POST[\"pw\"]!=$_POST[\"pw2\"])\n\t{ $error.=\"Die eingegebenen Passw&ouml;rter m&uuml;ssen &uuml;bereinstimmen.<br />\"; }\t\t\n\t\t\n\t\n\n //Pr&uuml;fe, ob Nickname schon vergeben ist (Global)\n $sql=\"SELECT COUNT(*) AS result FROM user WHERE nick='\".filter($_POST[\"nick\"]).\"'\";\n $db = mysql_connect(\"localhost\", \"portal\", \"psacln\") or die(\"Verbindungsfehler\");\n $result = mysql_db_query(\"portal\", $sql);\n $zeile = mysql_fetch_array($result);\n if ($zeile[\"result\"] > \"0\")\n\t{ $error.=\" Dieser Nickname ist bereits registriert.<br />\"; }\n\t\n //Pr&uuml;fe, ob Nickname schon vergeben (zum aktivieren)\n $sql=\"SELECT COUNT(*) AS result FROM akti WHERE nick='\".filter($_POST[\"nick\"]).\"'\";\n $db = mysql_connect(\"localhost\", \"portal\", \"psacln\") or die(\"Verbindungsfehler\");\n $result = mysql_db_query(\"portal\", $sql);\n $zeile = mysql_fetch_array($result);\n if ($zeile[\"result\"] > \"0\")\n\t{ $error.=\"Dieser Nickname muss noch aktiviert werden. Den Aktivierungscode haben Sie per E-Mail bekommen.<br />\"; }\t\t \n\t\n\t//Pr&uuml;fe, ob E-Mail Adresse schon vergeben ist (Global)\n $sql=\"SELECT COUNT(*) AS result FROM user WHERE email='\".filter($_POST[\"email\"]).\"'\";\n $db = mysql_connect(\"localhost\", \"portal\", \"psacln\") or die(\"Verbindungsfehler\");\n $result = mysql_db_query(\"portal\", $sql);\n $zeile = mysql_fetch_array($result);\n if ($zeile[\"result\"] > \"0\")\n\t{ $error.=\"Diese E-Mail-Adresse ist bereits registriert.<br />\"; }\t\t\n\t\n\t//Pr&uuml;fe, ob E-Mail Adresse schon vergeben ist (zum Aktivieren)\n $sql=\"SELECT COUNT(*) AS result FROM akti WHERE email='\".filter($_POST[\"email\"]).\"'\";\n $db = mysql_connect(\"localhost\", \"portal\", \"psacln\") or die(\"Verbindungsfehler\");\n $result = mysql_db_query(\"portal\", $sql);\n $zeile = mysql_fetch_array($result);\n if ($zeile[\"result\"] > \"0\")\n\t{ $error.=\"An diese E-Mail-Adresse wurde bereits ein Aktivierungscode geschickt.<br />\"; }\t\t\n\t \n\n $ok=0;\n $db = mysql_connect(\"localhost\", \"portal\", \"psacln\") or die(\"Verbindungsfehler\");\n // while($ok=0)\n // { \n\t $akti=\"\"; \n\t $akti=generate_key();\n\t //Pr&uuml;fe, ob Schl&uuml;ssel schon in der Datenbank vorhanden ist (Unwahrscheinlich, aber wir wollen ja viele User haben *g*)\n $sql=\"SELECT COUNT(*) AS result FROM akti WHERE akti='\".$akti.\"'\";\n $db = mysql_connect(\"localhost\", \"portal\", \"psacln\") or die(\"Verbindungsfehler\");\n $result = mysql_db_query(\"portal\", $sql);\n $zeile = mysql_fetch_array($result);\n if ($zeile[\"result\"] >= \"1\")\n \t { $akti=generate_key(); }\t\n // }\n \n \t//Pr&uuml;fe, ob PW im Woerterbuch vorhanden ist.\n $sql=\"SELECT lang FROM book WHERE word LIKE '%\".filter($_POST[\"pw\"]).\"%'\";\n $db = mysql_connect(\"localhost\", \"portal\", \"psacln\") or die(\"Verbindungsfehler\");\n $result = mysql_db_query(\"portal\", $sql);\n \n if (mysql_num_rows($result)!=0)\n\t{ $zeile = mysql_fetch_array($result);\n\t\t$error.= \"Dieses PW wurde von uns als unsicher gewertet. Es ist bei uns in dem W&ouml;rterbuch:<b>\".$zeile[\"lang\"].\"</b> vorhanden. Bitte &auml;ndern die es nach dem vollst&auml;ndigen registrieren.\"; }\t\n \n\n \n \n \n //Pr&uuml;fe ob es Fehler gab, falls ja gebe die Meldungen aus und &uuml;berspringe den SQL Teil.\n \t\n $nick = filter($_POST[\"nick\"]);\n $pw = md5($_POST[\"pw\"]);\n \n //Datum wird ben&ouml;tigt um Veraltete Eintr&auml;ge Aktivierungen zu l&ouml;schen\n $datum = date(\"y-m-d\");\n $sql = \"INSERT INTO akti (datum, nick, pw, email, akti, sex)\n VALUES ('\".$datum.\"', \n '\".filter($_POST[\"nick\"]).\"',\n '\".$pw.\"',\n '\".filter($_POST[\"email\"]).\"',\n '\".$akti.\"' ,\";\n //Pruefe Geschlecht\n \n if (filter($_POST[\"sex\"])==\"m\")\n { $sql.=\"'m')\"; }\n elseif (filter($_POST[\"sex\"])==\"w\")\n { $sql.=\"'w')\"; }\n else\n { $error.=\"Dein Geschlecht konnte nicht &Uuml;bertragen werden.<br />\"; } \n \n \n if ($error==\"\")\n { \n\t$db = mysql_connect(\"localhost\", \"portal\", \"psacln\") or die(\"Verbindungsfehler\"); \n $result = mysql_db_query(\"portal\", $sql);\n if ($result==\"1\")\n {\n\t echo 'Ihnen wurde soeben eine Aktiverungs E-mail geschickt. Pr&uuml;fen Sie bitte ihre SPAM verzeichnisse, falls sie innerhalb von 60 Minuten keine Mail bekommen solten.';\n \n $betreff = \"Registrierung bei discollection-radio\";\n $text = \"Hallo!\n Sie haben sich soeben bei Discollection-radio Registriert. Um ihre Registrierung abzuschlie&szlig;en, klicken Sie im Men&uuml;punkt LOG-IN auf AKTIVIEREN\n und Kopiere Folgenden Aktivierungscode in das dort vorhandene Feld:\n \n \".$akti.\"\n \n Alternativ kannst du einfach foldenen Link in deinen Browser kopieren:\n www.discollection-radio.eu/aktivieren.htm?code=\".$akti.\" \n \n Nicht aktivierte Nicks werden innerhalb einer Woche gel&ouml;scht.\";\n \n \n @mail(filter($_POST[\"email\"]), $betreff, $text,\n \"From: Ein \\\"Hallo\\\" aus dem Netz <system@discollection-radio.eu>\");\n \n }\n else\n { echo \"Fehler.\";\n }\n \n \n \n \n }\n else\n { echo '<b>' . $error . '</b>'; }\n}\n}", "public function p_signup() {\n\n $q= 'Select email \n From users \n WHERE email=\"'.$_POST['email'].'\"';\n # see if the email exists\n $emailexists= DB::instance(DB_NAME)->select_field($q);\n \n # email exists, throw an error\n if($emailexists){ \n \n Router::redirect(\"/users/signup/error\"); \n \n }\n \n #requires all fields to be entered if java script is disabled, otherwise thow a different error\n \n elseif (!$_POST['email'] OR !$_POST['last_name'] OR !$_POST['first_name'] OR !$_POST['password']) {\n Router::redirect(\"/users/signup/error2\"); \n }\n # all is well , proceed with signup\n else{\n \n $_POST['created']= Time::now();\n $_POST['password']= sha1(PASSWORD_SALT.$_POST['password']); \n $_POST['token']= sha1(TOKEN_SALT.$_POST['email'].Utils::generate_random_string()); \n\n # add user to the database and redirect to users login page \n $user_id=DB::instance(DB_NAME)->insert_row('users',$_POST);\n # Create users first Notebook\n $notebook['name']= $_POST['first_name'].' Notebook';\n $notebook['user_id']= $user_id;\n $notebook['created']= Time::now(); \n $notebook['modified']= Time::now(); \n DB::instance(DB_NAME)->insert_row('notebooks',$notebook); \n\n Router::redirect('/users/login');\n }\n \n }", "function ajax_register(){\r\n\tcheck_ajax_referer( 'ajax-register-nonce', 'security' );\r\n\r\n // Nonce is checked, get the POST data and sign user on\r\n $info = array();\r\n \t$info['user_nicename'] = $info['user_login'] = generate_unique_username(sanitize_user( $_POST['username'] ));\r\n\t$info['display_name'] = $info['nickname'] = $info['first_name'] = sanitize_user( $_POST['nick'] );\r\n $info['user_pass'] = sanitize_text_field($_POST['password']);\r\n\t$info['user_email'] = sanitize_email( $_POST['email']);\r\n\t$city_id = sanitize_text_field($_POST['cityId']);\r\n $city_name = sanitize_text_field($_POST['cityName']);\r\n $phone = sanitize_text_field($_POST['phone']);\r\n\r\n\r\n\t$old_users_arr = get_users(array('meta_key' => 'phone', 'meta_value' => $phone));\r\n\t$tel = preg_replace('/[()+ -]/', '', $phone);\r\n\t$user = get_user_by('login', $tel );\r\n\r\n \tif ($old_users_arr || $user) {\r\n\t\techo json_encode(array('loggedin' => false, 'phone_exist' => true, 'message' => 'Этот номер телефона уже зарегистрирован.'));\r\n\t\tdie();\r\n\t}\r\n\r\n\tpreg_match_all('/\\d+/', $phone, $result_array);\r\n\t$phone_operators = [\"039\", \"050\", \"063\", \"066\", \"067\", \"068\", \"073\" ,\"091\", \"092\", \"093\", \"094\", \"095\", \"096\", \"097\", \"098\", \"099\"];\r\n\tif (!array_search($result_array[0][1], $phone_operators)) {\r\n\t\techo json_encode(array('loggedin' => false, 'phone_error' => true, 'message' => 'Неверный код оператора. Пожалуйста, введите номер телефона.'));\r\n\t\tdie();\r\n\t}\r\n\t\r\n\t// Register the user\r\n $user_register = wp_insert_user( $info );\r\n \tif ( is_wp_error($user_register) ){\r\n\t\t$error = $user_register->get_error_codes()\t;\r\n\t\t\r\n\t\tif(in_array('empty_user_login', $error))\r\n\t\t\techo json_encode(array('loggedin'=>false, 'message'=>__($user_register->get_error_message('empty_user_login'), 'prokkat')));\r\n\t\telseif(in_array('existing_user_login',$error))\r\n\t\t\techo json_encode(array('loggedin'=>false, 'login_exist' => true, 'message'=>__('This username is already registered.', 'prokkat')));\r\n\t\telseif(in_array('existing_user_email',$error))\r\n\t\t\techo json_encode(array('loggedin'=>false, 'email_exist' => true, 'message'=>__('This email address is already registered.', 'prokkat')));\r\n } else {\r\n\t $user_data = wp_update_user(array('ID' => $user_register, 'role' => 'contributor'));\r\n\t update_user_meta($user_register, 'city_id', $city_id);\r\n update_user_meta($user_register, 'city_name', $city_name);\r\n update_user_meta($user_register, 'phone', $phone);\r\n if( !is_wp_error( $user_data ) ) {\r\n\t custom_new_user_notification( $user_register );\r\n\t echo json_encode(array('loggedin'=>true, 'new_user' => true, 'user_id' => $user_register, 'message'=>__('Registration successful, redirecting...', 'prokkat')));\r\n\t die();\r\n\t }\r\n }\r\n die();\r\n}", "public function register_action() \n\t{\n $rules = array(\n 'username' => 'required',\n 'email' => 'valid_email|required',\n 'password' => 'required',\n 'password2' => 'required',\n 'securityq1' => 'required',\n 'securityq2' => 'required',\n 'securitya1' => 'required',\n 'securitya2' => 'required',\n\n );\n \n // Readible array\n $readible = \n [ \n 'securityq1' => 'Security Queston 1',\n 'securityq2' => 'Security Queston 2',\n 'securitya1' => 'Security Answer 1',\n 'securitya2' => 'Security Answer 2'\n ];\n\n // readible inputs\n FormValidation::set_field_names($readible);\n \n //validate the info\n $validated = FormValidation::is_valid($_POST, $rules);\n \n // Check if validation was successful\n if($validated !== TRUE): \n \n //exit with an error\n exit(Alert::error(false, true, $validated));\n\n endif;\n\n\n UserModel::register();\n }", "function ssc_location_js () {\n\t?>\n\t<script type=\"text/javascript\">\n jQuery(document).ready(function($){\n \tdata = { 'action': 'ssc_location_update_form' };\n \t//$('form.ssc_location_contact #submit').addClass('contact_submit').removeAttr('id').removeAttr('name');\n\n \t$('form.ssc_location_contact .location_submit').click( function( event ) {\n \t\tdata['form'] = 'form.ssc_location_contact';\n\n \t\tevent.preventDefault();\n \t\t//alert( data['form']);\n \t\t/*\n \t\tvar locationFields = new Array();\n \t\tlocationFields['street'] = $('.ssc_admin_location_settings_street').val();\n \t\tlocationFields['city'] = $('.ssc_admin_location_settings_city').val();\n \t\tlocationFields['state'] = $('.ssc_admin_location_settings_state').val();\n \t\tlocationFields['zip'] = $('.ssc_admin_location_settings_zip').val();\n \t\talert ( locationFields['street'] );\n \t\t/**/\n \t\tdata['street'] = $('.ssc_admin_contact_settings_street').val();\n \t\tdata['city'] = $('.ssc_admin_contact_settings_city').val();\n \t\tdata['state'] = $('.ssc_admin_contact_settings_state').val();\n \t\tdata['zip'] = $('.ssc_admin_contact_settings_zip').val();\n \t\t//alert( data['zip'] );\n \t\t$('#wpwrap').addClass('progress');\n \t\tgetLocation( data );\n \t});\n \tfunction formSubmit ( data ) {\n \t\tconsole.log( 'submit form' );\n \t\t$('form.ssc_location_contact').submit();\n \t\t/*\n \t\t$( data['form'] ).submit( function() {\n \t\t\tconsole.log('form submit');\n \t\t});\n/**/\n \t}\n \tfunction getLocation ( data ) {\n \t\t\n \t$.post( ajaxurl, data, function( response ) {\n if ( response ) {\n \t\n var obj = jQuery.parseJSON( response ); //response;\n console.log(obj.type);\n if ( obj.type == 'success' ) { \n \talert( obj.message );\n //updateOptions( data, obj );\n //$('form.ssc_location').submit(); //$(data['form']).submit();\n //return true;\n formSubmit( data );\n }\n else {\n //alert( 'There are no ' + data['data']['type'] + ' please add some.' );\n alert( 'The address ' + data['street'] + ' ' + data['city'] + ' ' + data['state'] + ', ' + data['zip'] + ' could not be found. Please check the address and be sure you entered it exactly as listed by the postal service. (HINT: Use Google Maps )' );\n $('#wpwrap').removeClass('progress');\n return false;\n }\n }\n else {\n \talert( );\n return false;\n }\n });\n }\n });\n </script>\n\t<?php\n}", "function content() {\n echo \"\n <form action='http://{$_SERVER['SERVER_NAME']}/mailmaid/account/register' method='post'>\n <input name='token' type='hidden' value='{$this->params['registerToken']}'>\n <label for='username'>Username</label>\n <input name='username' placeholder='Username' id='username' type='text' required>\n <label for='password'>Password</label>\n <input name='password' placeholder='Password' id='password' type='password' required>\n <label for='role'>Role</label>\n <select name='role' id='role'>\n <option value='1'>Admin</option>\n <option value='2'>Agent</option>\n </select>\n <input type='submit' value='Add Account'>\n </form>\n \";\n }", "public function register () {\r\n if (isset($_POST['submitr'])) {\r\n\r\n $fnm = addslashes(strip_tags($_POST['fname']));\r\n $lnm = addslashes(strip_tags($_POST['lname']));\r\n $email = addslashes(strip_tags($_POST['emailr']));\r\n $pwd = addslashes(strip_tags($_POST['pwdr']));\r\n\r\n if ($fnm !==\"\" && $lnm !==\"\" && $email !==\"\" && $pwd!==\"\") {\r\n\r\n\r\n $s = \"INSERT INTO users (firstName,lastName,email, password) VALUES (?,?,?,?)\";\r\n $sql = $this->_r-> prepare($s);\r\n $sql->execute(array($fnm,$lnm,$email,$pwd));\r\n\r\n echo \"Successfully registered\";\r\n\r\n\r\n\r\n }else {\r\n echo \"Please fill all the information\";\r\n }\r\n\r\n }\r\n\r\n\r\n }", "public function customerRegistration($data){\n\t\t\t$fName \t\t= $data['fName'];\n\t\t\t$lName \t\t= $data['lName'];\n\t\t\t$username \t= $data['username'];\n\t\t\t$address \t= $data['address'];\n\t\t\t$email \t\t= $data['email'];\n\t\t\t$contactNo \t= $data['contactNo'];\n\t\t\t$dob\t\t= $data['dob'];\n\t\t\t$password \t= $data['password'];\n\t\t\t$gender\t\t= $data['gender'];\n\t\t\t$finalPass;\n\n\t\t\t// echo $fName.\"</br>\";\n\t\t\t// echo $lName.\"</br>\";\n\t\t\t// echo $username.\"</br>\";\n\t\t\t// echo $address.\"</br>\";\n\t\t\t// echo $email.\"</br>\";\n\t\t\t// echo $contactNo.\"</br>\";\n\t\t\t// echo $dob.\"</br>\";\n\t\t\t// echo $password.\"</br>\";\n\t\t\t// echo $gender.\"</br>\";\n\n\t\t\t$usrname_chk= $this->usrnmCheck($username);\n\t\t\t$emil_chkr \t= $this->emailCheck($email);\n\t\t\t$phone_chkr\t= $this->phoneCheck($contactNo);\n\n\n\t\t\tif($fName == \"\" || $lName == \"\" || $username == \"\" || $address == \"\" || $email == \"\" || $contactNo == \"\" || $dob == \"\" || $password == \"\" || $gender == \"\"){\n\t\t\t\t$msg = \"<strong>Error! </strong> Field Must Not be empty...!!!\";\n\t\t\t\treturn $msg;\n\t\t\t}\n\n\n\t\t\tif (strlen($username) < 3) {\n\t\t\t\t$msg = \"<div class = 'errorReport'><strong>Error! </strong>Username is too short...!!!</div>\";\n\t\t\t\treturn $msg;\n\t\t\t}elseif(preg_match('/[^a-z0-9_-]+/i', $username)){\n\t\t\t\t$msg = \"<div class='errorReport'><strong>Error! </strong> Username only contain alphanumerical, dashes and underscores...!!!</div>\";\n\t\t\t\treturn $msg;\n\t\t\t}\n\n\n\n\t\t\tif(strlen($password) <= 6){\n\t\t\t\t$msg = \"<div class='errorReport'><strong>Error! </strong>Password should at least 6 charecters long...!!!</div>\";\n\t\t\t\treturn $msg;\n\t\t\t}else{\n\t\t\t\t$finalPass = md5($password);\n\t\t\t\t // return $finalPass;\n\t\t\t}\n\n\n\n\t\t\tif(filter_var($email, FILTER_VALIDATE_EMAIL) === false){\n\t\t\t\t$msg = \"<div class='errorReport'><strong>Error! </strong> Email is not valid...!!!</div>\";\n\t\t\t\treturn $msg;\n\t\t\t}\n\n\t\t\tif($emil_chkr == true){\n\t\t\t\t$msg = \"<div class='errorReport'><strong>Error! </strong> Email already exist...!!!</div>\";\n\t\t\t\treturn $msg;\n\t\t\t}\n\n\t\t\tif($phone_chkr == true){\n\t\t\t\t$msg = \"<div class='errorReport'><Strong>Error! </strong> Contact Number already exist...!!!</div>\";\n\t\t\t\treturn $msg;\n\t\t\t}\n\n\t\t\tif($usrname_chk == true){\n\t\t\t\t$msg = \"<div class='errorReport'><strong>Error! </strong>Username already exist, try another one...!!!</div>\";\n\t\t\t\treturn $msg;\n\t\t\t}\n\n\t\t\t$sql = \"INSERT INTO customer (First_Name, Last_Name, UserName, Address, Email, Contact_Number, Date_Of_Birth, Password, Gender) VALUES(:First_Name, :Last_Name, :UserName, :Address, :Email, :Contact_Number, :Date_Of_Birth, :Password, :Gender)\";\n\n\t\t\t$query = $this->db->pdo->prepare($sql);\n\t\t\t\n\t\t\t$query->bindValue(':First_Name', $fName);\n\t\t\t$query->bindValue(':Last_Name', $lName);\n\t\t\t$query->bindValue(':UserName', $username);\n\t\t\t$query->bindValue(':Address', $address);\n\t\t\t$query->bindValue(':Email', $email);\n\t\t\t$query->bindValue(':Contact_Number', $contactNo);\n\t\t\t$query->bindValue(':Date_Of_Birth', $dob);\n\t\t\t$query->bindValue(':Password', $finalPass);\n\t\t\t$query->bindValue(':Gender', $gender);\n\n\t\t\t$result = $query->execute();\n\t\t\tif ($result) {\n\t\t\t\t$msg = \"<div class='successReport'><strong>Success! </strong>Registration Completed Successfully...!!!</div>\";\n\t\t\t\treturn $msg;\n\t\t\t}\n\n\t\t}", "public function registerForm(){\n $this->nonce=Nonce::getNonce();\n }", "function client_procCreate() {\n global $session, $form;\n\n /* Registration attempt */\n $clientFields[firstname] = $_POST['firstname'];\n $clientFields[lastname] = $_POST['lastname'];\n $clientFields[proj] = $_POST['proj'];\n $clientFields[telephone] = $_POST['telephone'];\n $clientFields[mobile] = $_POST['mobile'];\n $clientFields[fax] = $_POST['fax'];\n $clientFields[email] = $_POST['email'];\n $clientFields[facebook] = $_POST['facebook'];\n $clientFields[twitter] = $_POST['twitter'];\n $clientFields[skype] = $_POST['skype'];\n $clientFields[companyName] = $_POST['companyName'];\n $clientFields[companyType] = $_POST['companyType'];\n $clientFields[taxOffice] = $_POST['taxOffice'];\n $clientFields[vatNumber] = $_POST['vatNumber'];\n $clientFields[address] = $_POST['address'];\n $clientFields[town] = $_POST['town'];\n $clientFields[zip] = $_POST['zip'];\n $clientFields[country] = $_POST['country'];\n \n $retval = $session->client_register($clientFields);\n\n /* Registration Successful */\n if ($retval == 0) {\n $_SESSION['success'] = true;\n $_SESSION['header'] = \"Client Created Successfully!\";\n header(\"Location: \" . $session->referrer);\n }\n /* Error found with form */\n else if ($retval == 1) {\n $_SESSION['value_array'] = $_POST;\n $_SESSION['error_array'] = $form->getErrorArray();\n $_SESSION['success'] = false;\n $_SESSION['header'] = \"Sorry, There was an error!\";\n header(\"Location: \" . $session->referrer);\n }\n /* Registration attempt failed */\n else if ($retval == 2) {\n $_SESSION['success'] = false;\n $_SESSION['header'] = \"Sorry, There was an error at database!\";\n header(\"Location: \" . $session->referrer);\n } \n }", "function wp_aff_view2_signup_form_processing_code() {\n unset($_SESSION['wp_aff_signup_success_msg']);\n if (isset($_POST['wpAffDoRegister'])) {\n global $wpdb;\n $wp_aff_platform_config = WP_Affiliate_Platform_Config::getInstance();\n $affiliates_table_name = WP_AFF_AFFILIATES_TBL_NAME;\n\n //Sanitize the POST data\n $post_data = $_POST;\n $_POST = array_map('strip_tags', $post_data); //$_POST = filter_var_array($_POST, FILTER_SANITIZE_STRING);\n\n $login_url = wp_aff_view_get_url_with_separator(\"login\");\n if (get_option('wp_aff_use_recaptcha')) {\n //Recaptcha was shown to the user to lets check the response\n include_once(WP_AFF_PLATFORM_PATH . 'lib/recaptchalib.php');\n $secret = get_option('wp_aff_captcha_private_key'); //Secret\n\n $reCaptcha = new WPAP_ReCaptcha($secret);\n $resp = $reCaptcha->verifyResponse($_SERVER[\"REMOTE_ADDR\"], $_REQUEST[\"g-recaptcha-response\"]);\n if ($resp != null && $resp->success) {\n //Valid reCAPTCHA response. Go ahead with the registration\n } else {\n //Invalid response. Stop going forward. Set the error msg so the form shows it to the user.\n $recaptcha_error = AFF_IMAGE_VERIFICATION_FAILED;\n $_GET['aff_signup_error_msg'] = AFF_IMAGE_VERIFICATION_FAILED;\n return;\n }\n }\n\n //=================\n include_once(ABSPATH . WPINC . '/class-phpass.php');\n $wp_hasher = new PasswordHash(8, TRUE);\n $password = $wp_hasher->HashPassword($_POST['wp_aff_pwd']);\n\n $user_ip = wp_aff_get_user_ip();\n $host = $_SERVER['HTTP_HOST'];\n $host_upper = strtoupper($host);\n $path = rtrim(dirname($_SERVER['PHP_SELF']), '/\\\\');\n $activ_code = rand(1000, 9999);\n $aemail = esc_sql($_POST['aemail']);\n $user_name = esc_sql($_POST['user_name']);\n //============\n\n $userid = esc_sql($_POST['user_name']);\n\n $result = $wpdb->get_results(\"SELECT refid FROM $affiliates_table_name where refid='$userid'\", OBJECT);\n if ($result) {\n $_GET['aff_signup_error_msg'] = AFF_SI_USEREXISTS;\n return;\n }\n // check if referred by another affiliate\n $referrer = \"\";\n if (!empty($_SESSION['ap_id'])) {\n $referrer = $_SESSION['ap_id'];\n } else if (isset($_COOKIE['ap_id'])) {\n $referrer = $_COOKIE['ap_id'];\n }\n\n $commission_level = get_option('wp_aff_commission_level');\n $date = (date(\"Y-m-d\"));\n $account_details = \"\";\n $sec_tier_commissionlevel = \"\";\n if (!isset($_POST['apayable']))\n $_POST['apayable'] = \"\";\n\n $account_status = 'approved';\n if ($wp_aff_platform_config->getValue('wp_aff_enable_manual_signup_approval') == '1') {\n wp_affiliate_log_debug(\"Manual affiliate registration option is enabled. So the account status will be set to pending.\", true);\n $account_status = 'pending';\n }\n\n $updatedb = \"INSERT INTO $affiliates_table_name (refid,pass,company,firstname,lastname,website,email,payableto,street,town,state,postcode,country,phone,date,paypalemail,commissionlevel,referrer,tax_id,account_details,sec_tier_commissionlevel,account_status) VALUES ('\" . $_POST['user_name'] . \"', '\" . $password . \"', '\" . $_POST['acompany'] . \"', '\" . $_POST['afirstname'] . \"', '\" . $_POST['alastname'] . \"', '\" . $_POST['awebsite'] . \"', '\" . $_POST['aemail'] . \"', '\" . $_POST['apayable'] . \"', '\" . $_POST['astreet'] . \"', '\" . $_POST['atown'] . \"', '\" . $_POST['astate'] . \"', '\" . $_POST['apostcode'] . \"', '\" . $_POST['acountry'] . \"', '\" . $_POST['aphone'] . \"', '$date','\" . $_POST['paypal_email'] . \"','\" . $commission_level . \"','\" . $referrer . \"', '\" . $_POST['tax_id'] . \"','$account_details','$sec_tier_commissionlevel','$account_status')\";\n $results = $wpdb->query($updatedb);\n\n $affiliate_login_url = get_option('wp_aff_login_url');\n\n $email_subj = get_option('wp_aff_signup_email_subject');\n $body_sign_up = get_option('wp_aff_signup_email_body');\n $from_email_address = get_option('wp_aff_senders_email_address');\n $headers = 'From: ' . $from_email_address . \"\\r\\n\";\n\n $additional_params = array();\n $additional_params['password'] = $_POST['wp_aff_pwd'];\n $aemailbody = wp_aff_dynamically_replace_affiliate_details_in_message($user_name, $body_sign_up, $additional_params);\n $additional_params['password'] = \"********\";\n $admin_email_body = wp_aff_dynamically_replace_affiliate_details_in_message($user_name, $body_sign_up, $additional_params);\n $admin_email_body = \"The following email was sent to the affiliate: \\n\" .\n \"-----------------------------------------\\n\" . $admin_email_body;\n\n if (get_option('wp_aff_admin_notification')) {\n $admin_email_subj = \"New affiliate sign up notification\";\n $admin_contact_email = get_option('wp_aff_contact_email');\n if (empty($admin_contact_email)) {\n $admin_contact_email = $from_email_address;\n }\n wp_mail($admin_contact_email, $admin_email_subj, $admin_email_body, $headers);\n wp_affiliate_log_debug(\"Affiliate signup notification email successfully sent to the admin: \" . $admin_contact_email, true);\n }\n wp_mail($_POST['aemail'], $email_subj, $aemailbody, $headers);\n wp_affiliate_log_debug(\"Welcome email successfully sent to the affiliate: \" . $_POST['aemail'], true);\n\n //Check and give registration bonus\n wp_aff_check_and_give_registration_bonus($userid);\n\n //Check and do autoresponder signup\n include_once('wp_aff_auto_responder_handler.php');\n wp_aff_global_autoresponder_signup($_POST['afirstname'], $_POST['alastname'], $_POST['aemail']);\n\n //$redirect_page = wp_aff_view_get_url_with_separator(\"thankyou\");\n //echo '<meta http-equiv=\"refresh\" content=\"0;url='.$redirect_page.'\" />';\n //exit();\n $_SESSION['wp_aff_signup_success_msg'] = \"\";\n $_SESSION['wp_aff_signup_success_msg'] .= \"<h2 class='wp_aff_title'>\" . AFF_THANK_YOU . \"</h2><p class='message'>\" . AFF_REGO_COMPLETE . \"</p>\";\n $_SESSION['wp_aff_signup_success_msg'] .= '<a href=\"' . $login_url . '\">' . AFF_LOGIN_HERE . '</a>';\n $additional_success_msg = apply_filters('wpap_below_registration_success_message', '');\n if (!empty($additional_success_msg)) {\n $_SESSION['wp_aff_signup_success_msg'] .= $additional_success_msg;\n }\n \n do_action('wp_aff_registration_complete');//registration complete hook\n }\n}", "function procRegister() {\n global $session, $form;\n /* Convert username to all lowercase (by option) */\n if (ALL_LOWERCASE) {\n $_POST['user'] = strtolower($_POST['user']);\n }\n /* Registration attempt */\n $retval = $session->register($_POST['user'], $_POST['pass'], $_POST['email']);\n\n /* Registration Successful */\n if ($retval == 0) {\n $_SESSION['reguname'] = $_POST['user'];\n $_SESSION['regsuccess'] = true;\n header(\"Location: \" . $session->referrer);\n }\n /* Error found with form */ else if ($retval == 1) {\n $_SESSION['value_array'] = $_POST;\n $_SESSION['error_array'] = $form->getErrorArray();\n header(\"Location: \" . $session->referrer);\n }\n /* Registration attempt failed */ else if ($retval == 2) {\n $_SESSION['reguname'] = $_POST['user'];\n $_SESSION['regsuccess'] = false;\n header(\"Location: \" . $session->referrer);\n }\n }", "public function registerPage($rgData) {\n $this->title = \"註冊\";\n $this->tips = \"\";\n\n $this->tempUserName = \"\";\n if(isset($rgData->userName)){\n $this->tempUserName = $rgData->userName;\n }\n \n # Contruct END\n\n if (isset($rgData->message)) {\n $this->tips = $rgData->message;\n }\n\n require_once('./views/register.page.php');\n }", "public function registrar(){\n if ($this->input->is_ajax_request()){\n echo $this->compra->registrar();\n }else{\n show_404();\n }\n }", "function RegisterPraktijk()\n {\n if(!isset($_POST['submitted']))\n {\n return false;\n }\n // Maak een Array\n $formvars = array();\n \n $this->CollectRegistrationSubmissionPraktijk($formvars);\n \n if(!$this->SaveToDatabasePraktijk($formvars))\n {\n return false;\n }\n return true;\n }", "public function registerControlsUI(){\n\t//\techo \"<br/>\".__METHOD__;\n \t$this->registerControlUI(ExjUI::NewTextField('ApplicationName', 'App'));\n \t$this->registerControlUI(ExjUI::NewTextField('type', 'Tipo'));\n \t\n \t$id_persona = ExjRequest::GetParamInt('id_persona', 0);\n \tif ($id_persona === 0) {\n \t\t$this->addBrokenRuler(\"No se ha enviado el parámetro id!\");\n \t\treturn false;\n \t}\n \t\n// \tExjTransferCharacters::decodeUTF8ToISO($id_persona);\n \t \t\n \t\n \tglobal $exj;\n \t\n \t// $exj->includeDataCustom('sys_users');\n \t\n \t$infoPerson = AppSysUsersData::getInfoPerson($id_persona);\n\n \tif (!$this->_sendMail($infoPerson)) {\n \t\treturn false;\n \t}\n\n \t\n \t$this->registerControlUI(ExjUI::NewTextField('source', 'Fuente'));\n \t\n \t\n \t$this->registerControlUI(ExjUI::NewTextArea('desc_sol_comun', 'Descripción', '99%', 210));\n\t}", "function signup() {\n $dbCon = content_db();\n $baseUrl = baseUrlWeb();\n if (isset($_POST['app_id']) && isset($_POST['device_id']) && isset($_POST['name']) && isset($_POST['device_os'])) {\n\n\n //$password = md5($_POST['password']);\n $app_idString = $_POST['app_id'];\n $device_id = $_POST['device_id'];\n $name = htmlentities($_POST['name']);\n $plateform = $_POST['device_os'];\n\n //$email = $_POST['email_address'];\n //$api_version = $_POST['api_version'];\n //$app_call = $_POST['app_call'];\n\n if (isset($_POST['app_call'])) {\n $app_call = $_POST['app_call'];\n } else {\n $app_call = '';\n }\n\n if (isset($_POST['api_version'])) {\n $api_version = $_POST['api_version'];\n } else {\n $api_version = '';\n }\n\n if (isset($_POST['email_address'])) {\n $email = $_POST['email_address'];\n } else {\n $email = '';\n }\n\n if (isset($_POST['password'])) {\n $password = md5($_POST['password']);\n } else {\n $password = '';\n }\n\n\n if (isset($_POST['fb_token'])) {\n $fb_token = $_POST['fb_token'];\n } else {\n $fb_token = '';\n }\n } else {\n $response = array(\"result\" => 'error', \"msg\" => 'parameter missing or wrong parameter');\n $Basearray = array(\"response\" => $response);\n $basejson = json_encode($Basearray);\n echo $basejson;\n die;\n }\n $appQueryData = \"select * from app_data where app_id=:appid\";\n $app_screenData = $dbCon->prepare($appQueryData);\n $app_screenData->bindParam(':appid', $app_idString, PDO::PARAM_STR);\n $app_screenData->execute();\n $result_screenData = $app_screenData->fetch(PDO::FETCH_OBJ);\n\n if ($result_screenData != '') {\n $app_id = $result_screenData->id;\n $summary = $result_screenData->summary;\n }\n\n\n try {\n\n $app_query = \"select u.id,u.device_id , u.user_name from users u where u.device_id=:deviceid\";\n $appQueryRun = $dbCon->prepare($app_query);\n $appQueryRun->bindParam(':deviceid', $device_id, PDO::PARAM_STR);\n $appQueryRun->execute();\n $rowFetch = $appQueryRun->fetch(PDO::FETCH_ASSOC);\n $calRow = $appQueryRun->rowCount();\n\n $userId = '';\n\n if ($calRow == 0) {\n $sqlUserInsert = \"INSERT INTO users (`user_name`,`email_address`,`first_name`,`last_name`,`country`,`state`,`city`,`device_id`) VALUES ('','','\" . $name . \"','','','','','\" . $device_id . \"')\";\n $statementUserInsert = $dbCon->prepare($sqlUserInsert);\n $statementUserInsert->execute();\n $userId = $dbCon->lastInsertId();\n } else {\n $userId = $rowFetch['id'];\n }\n\n $appQueryData = \"select * from user_appdata where app_id='\" . $app_id . \"' and email_address = '\" . $email . \"'\";\n $app_screenData = $dbCon->query($appQueryData);\n $result_screenData = $app_screenData->fetch(PDO::FETCH_OBJ);\n $FetchCount = $app_screenData->rowCount();\n\n if ($FetchCount == 0) {\n $digits = 4;\n $auto_otp = rand(pow(10, $digits - 1), pow(10, $digits) - 1);\n $sqlUserDetails = \"INSERT INTO user_appdata (`user_id`,`app_id`,`platform`,`api_version`,`email_address`,`password`,`phone`,`user_device_id`,`fb_token`,`verification_code`) VALUES ('\" . $rowFetch['id'] . \"','\" . $app_id . \"','\" . $plateform . \"','\" . $api_version . \"','\" . $email . \"','\" . $password . \"','\" . $app_call . \"','\" . $device_id . \"','\" . $fb_token . \"','\" . $auto_otp . \"')\";\n\n $UserDetailsInsert = $dbCon->prepare($sqlUserDetails);\n $UserDetailsInsert->execute();\n\n $cto = $email;\n\n if ($cto != '' || $cto != null) {\n\n $subject = 'Instappy App Registration';\n $formemail = 'noreply@instappy.com';\n $key = 'f894535ddf80bb745fc15e47e42a595e';\n\n $content = '<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n<title>Instappy App Registration</title>\n</head>\n\n<body>\n<table cellpadding=\"0\" cellspacing=\"0\" width=\"650\" align=\"center\" style=\"border:1px solid #7c7c7c;\">\n <tr>\n <td>\n <img src=\"' . $baseUrl . '/edm/images/Welcome-to-Instappy-header.png\" />\n </td>\n </tr>\n <tr>\n <td>\n <table cellpadding=\"0\" cellspacing=\"0\" width=\"570\" align=\"center\" >\n <tr>\n <td>\n <p style=\"margin:0;color:#8b8b8a; margin:0;padding:0; font-size:14px; line-height:40px;font-family:Arial, Helvetica, sans-serif;\">&nbsp;</p>\n <p style=\"margin:0;color:#8b8b8a; margin:0;padding:0; font-size:16px; line-height:20px;font-family:Arial, Helvetica, sans-serif;\">Dear ' . $_POST['name'] . ',</p><br/>\n <p style=\"margin:0;color:#8b8b8a; margin:0;padding:0; font-size:16px; line-height:28px;font-family:Arial, Helvetica, sans-serif;\">\n Thank you for registering with ' . $summary . '.\n </p>\n <p style=\"margin:0;color:#8b8b8a; margin:0;padding:0; font-size:16px; line-height:28px;font-family:Arial, Helvetica, sans-serif;\">Please use this code to activate your account.</p>\n <p style=\"margin:0;color:#8b8b8a; margin:0;padding:0; font-size:14px; line-height:px;font-family:Arial, Helvetica, sans-serif;\">&nbsp;</p>\n <p style=\"margin:0;color:#8b8b8a; margin:0;padding:0; font-size:16px; line-height:28px;font-family:Arial, Helvetica, sans-serif; font-weight:bold;\">Code: ' . $auto_otp . '</p>\n <p style=\"margin:0;color:#8b8b8a; margin:0;padding:0; font-size:16px; line-height:28px;font-family:Arial, Helvetica, sans-serif;\">Reach us at support@instappy.com</p>\n \n </td>\n </tr>\n <tr>\n <td colspan=\"2\">\n <p style=\"margin:0;color:#8b8b8a; margin:0;padding:0; font-size:14px; line-height:20px;font-family:Arial, Helvetica, sans-serif;\">&nbsp;</p>\n <p style=\"margin:0;color:#8b8b8a; margin:0;padding:0; font-size:16px; line-height:28px;font-family:Arial, Helvetica, sans-serif;\">See you!</p>\n <p style=\"margin:0;color:#8b8b8a; margin:0;padding:0; font-size:16px; line-height:28px;font-family:Arial, Helvetica, sans-serif;\">Instappy Team</p>\n <p style=\"margin:0;color:#8b8b8a; margin:0;padding:0; font-size:14px; line-height:20px;font-family:Arial, Helvetica, sans-serif;\">&nbsp;</p> \n </td>\n </tr>\n \n </table>\n \n </td>\n </tr>\n <tr>\n <td style=\"color:#bcbcbc;margin:0;padding:15px; font-size:10px;font-family:Arial, Helvetica, sans-serif;text-align:justify\">\n Disclaimer: You have received this email as you are a valued customer subscribed to Instappy.com or have registered for an account on Instappy.com. The information provided herein regarding products, services/offers, benefits etc of Instappy are governed by the detailed terms and conditions accepted by you. The information provided herein above does not amount to a discount, offer or sponsor or advice as regards any products or services of Instappy or any of its group companies unless explicitly specified and is not intended to create any rights or obligations. Any reference to service levels in this document are indicative and should not be construed to refer to any commitment by Instappy and are subject to change at any time at the sole discretion of Pulp Strategy Technologies or its group companies as it case maybe. The use of any information set out herein is entirely at the recipients own risk and discretion. The \"Instappy\" logo is a trade mark and property of Pulp Strategy Technologies Pvt Ltd. Misuse of any intellectual property or any other content displayed herein is strictly prohibited. Images used herein are for the purposes of illustration only.\n </td>\n </tr>\n <tr>\n <td bgcolor=\"ffcc00\" height=\"30\">\n <img src=\"' . $baseUrl . '/edm/images/Anyone-footer.png\">\n </td>\n </tr>\n</table>\n</body>\n</html>\n';\n\n\n\n\n\n $curl = curl_init();\n curl_setopt_array($curl, array(\n CURLOPT_RETURNTRANSFER => 1,\n CURLOPT_URL => 'https://api.falconide.com/falconapi/web.send.rest',\n CURLOPT_POST => 1,\n CURLOPT_POSTFIELDS => array(\n 'api_key' => $key,\n 'subject' => $subject,\n 'fromname' => 'Instappy',\n 'from' => $formemail,\n 'content' => $content,\n 'recipients' => $cto\n )\n ));\n $customerhead = curl_exec($curl);\n\n curl_close($curl);\n /*\n $encrrptedEmail = base64_encode($email);\n $encrrptedPassword = base64_encode($_POST['password']);\n $encrrptedAppId = base64_encode($app_id);\n\n $cformemail = 'noreply@instappy.com';\n $key = 'f894535ddf80bb745fc15e47e42a595e';\n $curl = curl_init();\n curl_setopt_array($curl, array(\n CURLOPT_RETURNTRANSFER => 1,\n CURLOPT_URL => 'https://api.falconide.com/falconapi/web.send.rest',\n CURLOPT_POST => 1,\n CURLOPT_POSTFIELDS => array(\n 'api_key' => $key,\n 'subject' => 'Instappy - SignUp Verification',\n 'fromname' => 'Instappy',\n 'from' => $cformemail,\n 'content' => \"<a href=\".$baseUrl.\"verifysignup.php?token=\".$encrrptedEmail.\"&key=\".$encrrptedPassword.\"&secret=\".$encrrptedAppId.\">Click here to verify your account</a>\",\n 'recipients' => $cto\n )\n ));\n $customerhead = curl_exec($curl);\n curl_close($curl);\n */\n }\n\n\n\n\n\n\n $response = array(\"result\" => \"success\", \"msg\" => '200');\n $Basearray = array(\"response\" => $response);\n $basejson = json_encode($Basearray);\n echo $basejson;\n } else {\n $response = array(\"result\" => \"error\", \"msg\" => '250');\n $Basearray = array(\"response\" => $response);\n $basejson = json_encode($Basearray);\n echo $basejson;\n }\n } catch (Exception $e) {\n $response = array(\"result\" => 'error', \"msg\" => 'something went wrong');\n $Basearray = array(\"response\" => $response);\n $basejson = json_encode($Basearray);\n echo $basejson;\n }\n}", "function register(){\r\n //FullName\r\n $fullName = $this->safety($_REQUEST['reg_fullName']);\r\n \t$_SESSION['reg_fullName'] = $fullName;\r\n //Email\r\n \t$email = $this->safety($_REQUEST['reg_email']);\r\n \tif (! filter_var($email, FILTER_VALIDATE_EMAIL) ){\r\n \t\t$errors[] = \"Invalid email format\";\r\n \t}\r\n \telseif( $this->emailExists($email) ) {\r\n \t\t\t$errors[] = \"Email already in use\";\r\n \t}\r\n \t$_SESSION['reg_email'] = $email; //Stores email into session variable\r\n \t//Password\r\n \t$password = $_REQUEST['reg_password'];\r\n //Fav. Quote\r\n \t$quote = $this->safety($_REQUEST['reg_quote']);\r\n //Current date\r\n \t$date = date(\"Y-m-d\");\r\n //Validate name\r\n \tif(strlen($fullName) > 100 || strlen($fullName) < 2) {\r\n \t\t$errors[] = \"Your name must be between 2 and 100 characters\";\r\n \t}\r\n //Validate password\r\n \tif (strlen($password) < 6) {\r\n \t $errors[] = \"Password is too short!\";\r\n \t}\r\n \t/* Check Password Strength */\r\n /* More about regular expressions https://www.w3schools.com/php/php_regex.asp */\r\n \tif (!preg_match(\"#[0-9]+#\", $password)) {\r\n \t $errors[] = \"Password must include at least one number!\";\r\n \t}\r\n \tif (!preg_match(\"#[a-zA-Z]+#\", $password)) {\r\n \t $errors[] = \"Password must include at least one letter!\";\r\n \t}\r\n // only proceed if there are no errors.\r\n \tif(empty($errors)) {\r\n //Encrypt before sending to database\r\n $password = password_hash($password, PASSWORD_DEFAULT);\r\n \t\t//Assign a random profile picture\r\n \t\t$number = rand(1, 16); //Random number between 1 and 16\r\n \t\t$avatar = 'assets/avatars/'.$number.'.png';\r\n \t\t// prepare data to be inserted\r\n $data = [\r\n 'fullName' => $fullName,\r\n 'email' => $email,\r\n 'password' => $password,\r\n 'quote' => $quote,\r\n 'signup_date' => $date,\r\n 'avatar' => $avatar\r\n ];\r\n // wrap structure with `backticks` and content with regular \"quotemarks\"\r\n $columns = '`'.implode('`,`',array_keys($data)).'`';\r\n $values = '\"'.implode('\",\"', $data).'\"';\r\n $sql = \"INSERT INTO `users` ($columns) VALUES ($values) \";\r\n if ( $this->q($sql) ){\r\n // redirect if registration was successful.\r\n header('Location: '.site_root.'?login_form&reg_success='.$email);\r\n \t\t}\r\n \t\telse{\t$errors[] = \"Something went wrong: \".$this->ixd->error; }\r\n \t}\r\n return $errors;\r\n }", "public function register_post() \n {\n $first_name = $this->post('fname');\n $last_name = $this->post('lname');\n $username = $this->post('username');\n $email = $this->post('email');\n $password = $this->post('password');\n $dob = $this->post('dob');\n $contact_no = $this->post('contact_no');\n $gender = $this->post('gender');\n $address = $this->post('address');\n $user_type = 2;//Member user\n $status = 1;//Active\n $added_date = time();\n if($first_name != '' && $last_name != '' && $username != '' && $email != '' && $password != '' && $dob != '' && $gender != '' && $address != '')\n {\n $userData = array('fname'=>$first_name,'lname'=>$last_name,'username'=>$username,'status'=>$status,\n 'email'=>$email,'password'=>$password,'dob'=>$dob,'contact_no'=>$contact_no,'address'=>$address,\n 'user_type'=>$user_type,'gender'=>$gender,'added_date'=>$added_date);\n \n $record = $this->artists_model->register_member($userData);\n $message = [\n 'status' => TRUE, \n 'message' => 'Registered successfully',\n 'status_code'=> 200\n ];\n $this->set_response($message, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code\n }\n else\n {\n $message = [\n 'status' => FALSE,\n 'message' => 'Not register,please enter required fields properly',\n 'status_code'=> 400\n ];\n $this->set_response($message, REST_Controller::HTTP_BAD_REQUEST); \n \n }\n }", "function my_pmprorh_init()\n{\n//don't break if Register Helper is not loaded\n\tif(!function_exists( 'pmprorh_add_registration_field' )) {\n\t\treturn false;\n\t}\nglobal $pmpro_countries;\n$countries = array_merge(array(\"\" => \"Choose One\"), $pmpro_countries);\n\t//define the fields\n $fields = array();\n $fields[] = new PMProRH_Field(\n \t\"bcountry\",\n \t\"select\",\n \tarray(\n\t\t\"label\"=>\"Country\",\n\t\t\"required\" => true,\n\t\t\"profile\" => true,\t\t// show in user profile\n\t\t\"options\"=> $countries\n\t\t));\n\n\t//add the fields into a new checkout_boxes are of the checkout page\n\tforeach($fields as $field)\n\t\tpmprorh_add_registration_field(\n\t\t\t'checkout_boxes',\t\t// location on checkout page\n\t\t\t$field\t\t// PMProRH_Field object\n\t\t);\n\t//that's it. see the PMPro Register Helper readme for more information and examples.\n}", "public function new_registration()\r\n\t{\r\n\t\tif(capthca::Code_check(post::variable('security_code','is_set')))\r\n\t\t{\r\n\t\t\t//build post data\r\n\t\t\t$this->username = post::variable('username','string');\r\n\t\t\t$this->email = post::variable('email','string');\r\n\t\r\n\t\t\t//Generate a random password this makes the hash even more random\r\n\t\t\t$this->salt = common::generate_random_string(16);\r\n\t\r\n\t\t\t//TODO use POST class!\r\n\t\t\t$string = $_SERVER['SERVER_NAME'].Settings::singleton()->get_setting('random_key').CMS::time().$this->username.$this->email.$this->salt;\r\n\t\t\t$this->hash = md5($string).sha1($string);\r\n\t\t\t\r\n\t\t\t$this->save_registration();\r\n\t\t\treturn $this->send_registration();\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "public function register() {\n\t\t$result = $this->Member_Model->get_max_id();\n\t\t$current_next_id = $result + 1;\n\n\t\t$this->breadcrumbs->set(['Register' => 'members/register']);\n\t\t$data['api_reg_url'] = base64_encode(FINGERPRINT_API_URL . \"?action=register&member_id=$current_next_id\");\n\n\t\tif ($this->session->userdata('current_finger_data')) {\n\t\t\t$this->session->unset_userdata('current_finger_data');\n\t\t}\n\n\t\t$this->render('register', $data);\n\t}", "function pkalrp_reg_print_alreg_form( $email='' ) {\r\n?>\r\n\t<form method=\"get\" id=\"reguser\">\r\n\t<input type=\"hidden\" name=\"page\" value=\"alrp\"/>\r\n\t<input type=\"hidden\" name=\"next\" value=\"finish\"/>\r\n\t<input type=\"hidden\" name=\"prev\" value=\"alreg\"/>\r\n <table class=\"alrp-regform\">\r\n\t <tr>\r\n\t\t <th><label for=\"email\">Registered Email:</label></th>\r\n\t\t <td><input class=\"required email\" id=\"alregemail\" type=\"text\" name=\"email\" value=\"<?php echo $email; ?>\" /></td>\r\n\t\t </tr>\r\n\t\t<tr>\r\n\t\t\t <tr>\r\n\t \t<th><label for=\"key\">License Key:</label></th>\r\n\t \t<td><input style=\"width:350px\" id=\"key\" type=\"text\" name=\"key\" class=\"required key\" value=\"\" /></td>\r\n\t </tr>\r\n\r\n\t\t\t<th></th>\r\n\t\t\t<td>\r\n\t\t\t<input class=\"button-primary\" name=\"submit\" class=\"submit\" type=\"submit\" value=\"Submit\" />\r\n\t\t</td>\r\n\t\t</tr>\r\n\t</table>\r\n\t</form>\r\n\t<?php\r\n}", "public function init()\r\n\t\t{\r\n\t\t\tif ($this->_mAction == 'add_cust')\r\n\t\t\t{\r\n\t\t\t\t$customer_firstname = $_POST['customer_first_name'];\r\n\t\t\t\t$customer_surname = $_POST['customer_surname'];\r\n\t\t\t\t$customer_email = $_POST['customer_email'];\r\n\t\t\t\t$customer_password = $_POST['customer_password'];\r\n\t\t\t\t$customer_address_line_one = $_POST['customer_address_line_one'];\r\n\t\t\t\t$customer_town = $_POST['customer_town'];\r\n\t\t\t\t$customer_city = $_POST['customer_city'];\r\n\t\t\t\t$customer_county = $_POST['customer_county'];\r\n\t\t\t\t$customer_postcode = $_POST['customer_postcode'];\r\n\t\t\t\t$customer_telephone = $_POST['customer_telephone'];\r\n\t\t\t\t\r\n\t\t\t\tif ($customer_firstname == null)\r\n\t\t\t\t\t$this->mErrorMessage = 'First name is empty';\r\n\t\t\t\tif ($customer_surname == null)\r\n\t\t\t\t\t$this->mErrorMessage = 'Surname is empty';\r\n\t\t\t\tif ($customer_email == null || !preg_match(\"/^[_\\.0-9a-zA-Z-]+@([0-9a-zA-Z][_\\.0-9a-zA-Z-]*)$/i\",$customer_email))\r\n\t\t\t\t\t$this->mErrorMessage = 'Please correct the email address';\r\n\t\t\t\tif ($customer_password == null)\r\n\t\t\t\t\t$this->mErrorMessage = 'Password is empty';\r\n\t\t\t\tif ($customer_address_line_one == null)\r\n\t\t\t\t\t$this->mErrorMessage = 'Street Address is empty';\r\n\t\t\t\tif ($customer_town == null)\r\n\t\t\t\t\t$this->mErrorMessage = 'Town is empty';\r\n\t\t\t\tif ($customer_city == null)\r\n\t\t\t\t\t$this->mErrorMessage = 'City is empty';\r\n\t\t\t\tif ($customer_county == null)\r\n\t\t\t\t\t$this->mErrorMessage = 'County is empty';\r\n\t\t\t\tif ($customer_postcode == null || strlen($customer_postcode) > 8)\r\n\t\t\t\t\t$this->mErrorMessage = 'Please correct the post code';\r\n\t\t\t\tif ($customer_telephone == null || strlen($customer_telephone) > 11)\r\n\t\t\t\t\t$this->mErrorMessage = 'Please correct the telephone number';\r\n\t\t\t\r\n\t\t\t\tif ($this->mErrorMessage == null)\r\n\t\t\t\t{\r\n\t\t\t\t\trequire_once BUSINESS_DIR . 'password_hasher.php';\r\n\t\t\t\t\t\r\n\t\t\t\t\t$hashed_password = PasswordHasher::Hash($customer_password);\r\n\t\t\t\t\t\r\n\t\t\t\t\tCustomer::AddCustomer($customer_firstname, $customer_surname,\r\n\t\t\t\t\t\t\t\t\t\t$customer_email, $hashed_password, $customer_password,\r\n\t\t\t\t\t\t\t\t\t\t$customer_address_line_one, $customer_town,\r\n\t\t\t\t\t\t\t\t\t\t$customer_city, $customer_county,\r\n\t\t\t\t\t\t\t\t\t\t$customer_postcode, $customer_telephone);\r\n\t\t\t\t\t\r\n\t\t\t\t\theader('Location: ' . htmlspecialchars_decode(\r\n\t\t\t\t\t$this->mLinkToCustomersAdmin));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// If we want to see a customers details\r\n\t\t\tif ($this->_mAction == 'edit_cust')\r\n\t\t\t{\r\n\t\t\t\theader('Location: ' . htmlspecialchars_decode(\r\n\t\t\t\t\tLink::ToCustomerAdmin($this->_mActionedCustomerID)));\r\n\t\t\t\r\n\t\t\t\texit();\r\n\t\t\t}\r\n\t\t\t$this->mCustomers = Customer::GetCustomersList();\r\n\t\t\t$this->mCustomersCount = count($this->mCustomers);\r\n\t\t}", "private function wsal_step_register() {\n\t\t?>\n\t\t<form method=\"post\" class=\"wsal-setup-form\">\n\t\t\t<?php wp_nonce_field( 'wsal-step-frontend-register' ); ?>\n\t\t\t<h4><?php esc_html_e( 'Can visitors register for a user on your website?', 'wp-security-audit-log' ); ?></h4>\n\t\t\t<fieldset>\n\t\t\t\t<label for=\"wsal-frontend-events-register-yes\">\n\t\t\t\t\t<input id=\"wsal-frontend-events-register-yes\" name=\"wsal-frontend-register\" type=\"radio\" value=\"1\">\n\t\t\t\t\t<?php esc_html_e( 'Yes', 'wp-security-audit-log' ); ?>\n\t\t\t\t</label>\n\t\t\t\t<br />\n\t\t\t\t<label for=\"wsal-frontend-events-register-no\">\n\t\t\t\t\t<input id=\"wsal-frontend-events-register-no\" name=\"wsal-frontend-register\" type=\"radio\" value=\"0\" checked>\n\t\t\t\t\t<?php esc_html_e( 'No', 'wp-security-audit-log' ); ?>\n\t\t\t\t</label>\n\t\t\t\t<p class=\"description\"><?php esc_html_e( 'If you are not sure about this setting, check if the Membership setting in the WordPress General settings is checked or not. If it is not checked (default) select No.', 'wp-security-audit-log' ); ?></p>\n\t\t\t</fieldset>\n\t\t\t<!-- Question -->\n\t\t\t<p class=\"description\"><?php esc_html_e( 'Note: You can change the WordPress activity log retention settings at any time from the plugin settings later on.', 'wp-security-audit-log' ); ?></p>\n\t\t\t<div class=\"wsal-setup-actions\">\n\t\t\t\t<button class=\"button button-primary\" type=\"submit\" name=\"save_step\" value=\"<?php esc_attr_e( 'Next', 'wp-security-audit-log' ); ?>\"><?php esc_html_e( 'Next', 'wp-security-audit-log' ); ?></button>\n\t\t\t</div>\n\t\t</form>\n\t\t<?php\n\t}", "public function __construct()\r\n {\r\n $sec=new Security();\r\n $this->bletchley=$sec->doEncode($this->bletchley);\r\n $this->regUI=<<<REGISTER\r\n <!DOCTYPE html>\r\n <html>\r\n <head>\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"login.css\">\r\n <meta charset=\"UTF-8\">\r\n <title>Registration</title>\r\n </head>\r\n \r\n <body>\r\n <h2>Registration</h2>\r\n <h5>Create a user name and password.<br /> Make ones that are easy to remember but unique. (Like you!) 30-character limit.</h5>\r\n <form action=\"Client.php\" method=\"post\" target=\"feedback\">\r\n <input type=\"hidden\" name=\"secreg\" value=$this->bletchley>\r\n <input type=\"text\" name=\"username\" maxlength=\"30\">&nbsp;Username: one word with no spaces<br />\r\n <input type=\"text\" name=\"password\" maxlength=\"30\">&nbsp;Password: one word with no spaces<p />\r\n <input type=\"submit\" name =\"register\" value =\"Register me!\">\r\n </form>\r\n <iframe name=\"feedback\">Feedback</iframe>\r\n \r\n </body>\r\n </html>\r\nREGISTER;\r\n echo $this->regUI;\r\n }", "function register()\n\t{\n\t\tif ($this->tank_auth->is_logged_in()) {\t\t\t\t\t\t\t\t\t// logged in\n\t\t\tredirect('');\n\n\t\t} elseif ($this->tank_auth->is_logged_in(FALSE)) {\t\t\t\t\t\t// logged in, not activated\n\t\t\tredirect('/auth/send_again/');\n\n\t\t} elseif (config_item('allow_client_registration') == 'FALSE') {\t// registration is off\n\t\t\t$this->session->set_flashdata('response_status', 'error');\n\t\t\t$this->session->set_flashdata('message', lang('auth_message_registration_disabled'));\n\t\t\tredirect('login');\n\n\t\t} else {\n\t\t\t$use_username = config_item('use_username');\n\t\t\tif ($use_username) {\n\t\t\t\t$this->form_validation->set_rules('username', lang('username'), 'trim|required|xss_clean|min_length['.config_item('username_min_length').']|max_length['.config_item('username_max_length').']');\n\t\t\t}\n $this->form_validation->set_rules('fullname', lang('full_name'), 'trim|required|xss_clean');\n\t\t\t$this->form_validation->set_rules('email', lang('email'), 'trim|required|xss_clean|valid_email');\n\t\t\t$this->form_validation->set_rules('password', lang('password'), 'trim|required|xss_clean|min_length['.config_item('password_min_length').']|max_length['.config_item('password_max_length').']');\n\t\t\t$this->form_validation->set_rules('confirm_password', lang('confirm_password'), 'trim|required|xss_clean|matches[password]');\n\n\t\t\t$captcha_registration\t= config_item('captcha_registration');\n\t\t\t$use_recaptcha\t= config_item('use_recaptcha');\n\t\t\tif ($captcha_registration == 'TRUE') {\n\t\t\t\tif ($use_recaptcha) {\n\t\t\t\t\t$this->form_validation->set_rules('recaptcha_response_field', 'Confirmation Code', 'trim|xss_clean|required|callback__check_recaptcha');\n\t\t\t\t} else {\n\t\t\t\t\t$this->form_validation->set_rules('captcha', 'Confirmation Code', 'trim|xss_clean|required|callback__check_captcha');\n\t\t\t\t}\n\t\t\t}\n\t\t\t$data['errors'] = array();\n\t\t\t$email_activation = config_item('email_activation');\n $individual = $this->input->post('company_name') == '' ? 1:0;\n\n\t\t\tif ($this->form_validation->run($this)) {\t\t\t\t\t\t\t\t// validation ok\n\t\t\t\tif (!is_null($data = $this->tank_auth->create_user(\n $use_username ? $this->form_validation->set_value('username') : '',\n $this->form_validation->set_value('email'),\n $this->form_validation->set_value('password'),\n $this->input->post('fullname'),\n '-',\n '2',\n '',\n $email_activation,\n $individual == 1 ? $this->input->post('fullname'):$this->input->post('company_name'),\n $individual\n ))) {\t // success\n\n\t\t\t\t\t$data['site_name'] = config_item('company_name');\n\n\t\t\t\t\tif ($email_activation) {\t\t\t\t\t\t\t\t\t// send \"activate\" email\n\t\t\t\t\t\t$data['activation_period'] = config_item('email_activation_expire') / 3600;\n\n\t\t\t\t\t\t$this->_send_email('activate', $data['email'], $data);\n\n\t\t\t\t\t\tunset($data['password']); // Clear password (just for any case)\n\n $this->session->set_flashdata('message', lang('auth_message_registration_completed_1'));\n \t\t\t\t\tredirect('/auth/login');\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (config_item('email_account_details') == 'TRUE') {\t// send \"welcome\" email\n\n\t\t\t\t\t\t\t$this->_send_email('welcome', $data['email'], $data);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunset($data['password']); // Clear password (just for any case)\n\t\t\t$this->session->set_flashdata('message', lang('auth_message_registration_completed_2'));\n\t\t\t\t\t\tredirect('/auth/login');\n\t\t\t\t\t\t//$this->_show_message($this->lang->line('auth_message_registration_completed_2').' '.anchor('/auth/login/', 'Login'));\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$errors = $this->tank_auth->get_error_message();\n\t\t\t\t\tforeach ($errors as $k => $v)\t$data['errors'][$k] = $this->lang->line($v);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($captcha_registration == 'TRUE') {\n\t\t\t\tif ($use_recaptcha) {\n\t\t\t\t\t$data['recaptcha_html'] = $this->_create_recaptcha();\n\t\t\t\t} else {\n\t\t\t\t\t$data['captcha_html'] = $this->_create_captcha();\n\t\t\t\t}\n\t\t\t}\n\t\t\t$data['use_username'] = $use_username;\n\t\t\t$data['captcha_registration'] = $captcha_registration;\n\t\t\t$data['use_recaptcha'] = $use_recaptcha;\n\t$this->load->module('layouts');\n\t$this->load->library('template');\n\t$this->template->title('Register - '.config_item('company_name'));\n\t$this->template\n\t->set_layout('login')\n\t->build('auth/register_form',isset($data) ? $data : NULL);\n\n\t\t}\n\t}", "public function registerPost(){\n\t\t\t$this->modelRegister();\n\t\t\t//quay lai trang dang ky\n\t\t\t//header(\"location:index.php?controller=account&action=register&notify=success\");\n\t\t\techo \"<script>location.href='login/register-success';</script>\";\n\t\t}", "public function generaldataformAction(){\n\t\t$form = new Bel_Forms_Builder('registration_form','/usermanagement/profile/save');\n\t\t$form->removeElement('user_password')\n\t\t\t ->removeElement('password2')\n\t\t\t ->removeElement('captcha');\n\t\t\n\t\t$form->populateForm($this->_auth->toArray());\n\t\t\n\t\t/*if($this->_request->getParam('error')){\n\t\t\t$this->view->assign('messages',$this->_messages->getMessages());\n\t\t}*/\n\t\t\n\t\t$this->view->assign('form',$form);\n\t\t$this->view->display('forms/ajax.tpl');\n\t}", "function DrawRegistrationForm()\r\n{\r\n\t?>\r\n\t <h2 align=\"center\"> Registration form </h2>\r\n\t\t\r\n\t <form method=\"post\" action=\"<?php echo htmlspecialchars($_SERVER[\"PHP_SELF\"]);?>\">\r\n\t\t <label for=\"login\">First Name</label> <br>\r\n\t\t\t <input type=\"text\" name=\"first_name\" size=\"15\" ><br><br>\r\n\t\t\t <label for=\"login\">Last Name</label><br>\r\n\t\t\t <input type=\"text\" name=\"last_name\" size=\"15\"><br><br>\r\n\t\t\t <label for=\"mail\">E-Mail</label><br>\r\n\t\t\t <input type=\"text\" name=\"mail\" size=\"15\"><br><br>\r\n\t\t\t \r\n\t\t <font color=\"red\">*</font> <label for=\"login\">Login</label> <br>\r\n\t\t\t <input type=\"text\" name=\"login\" size=\"15\"><br><br>\r\n\t\t\t <font color=\"red\">*</font> <label for=\"passw1\">Password</label> <br>\r\n\t\t\t <input type=\"password\" name=\"passw1\" size=\"15\"><br><br>\r\n\t\t\t <font color=\"red\">*</font> <label for=\"passw2\">Repeat Password</label> <br>\r\n\t\t\t <input type=\"password\" name=\"passw2\" size=\"15\"><br><br>\r\n\t\t\t \r\n\t\t\t <button id=\"bar\" type=\"submit\"> <img src=\"images/go1.png\" alt=\"Mountain View\" style=\"width:40px;height:40px;\" ></button> \r\n\t\t\t<!--// \r\n\t\t\t <input type=\"Submit\" name=\"submit\" size=\"15\"><br><br>//-->\r\n </form>\r\n\t\r\n\t<?php\r\n\t\r\n\t\r\n}", "public function showRegistrationForm()\n {\n // $customer = [\n // 'is_vendor' => 'vendor_val',\n // 'is_user' => 'user_val',\n // 'is_pwd' => 'pwd_val',\n // 'name' => 'name_val',\n // 'email' => 'email_val',\n // 'company' => 'company_val',\n // 'address1' => 'address1_val',\n // 'phone' => 'phone_val',\n // 'region' => 'region_val',\n // 'country' => 'country_val',\n // 'postalcode' => 'postalcode_val',\n // 'city' => 'city_val',\n // ];\n\n // dd($customer['phone']);\n \n // $client = new Client();\n // $res = $client->get('http://quicklicensemanager.com/qlmdemov11/qlmLicenseServer/qlmservice.asmx/GetActivationKeyWithExpiryDate?is_productid=1&is_majorversion=1&is_minorversion=0&is_expduration=30');\n // // echo $res->getStatusCode(); // 200\n // echo $res->getBody(); // { \"type\": \"User\", .\n\n\n\n if (!Auth::guard($this->getGuard())->guest()) {\n return Redirect::to($this->redirectPath());\n }\n\n// $dataArray = [\n// 'param' => [\n// 'countries' => trans('common.countries'),\n// 'provinces' => json_encode(trans('common.provinces')),\n// 'partners' => trans('common.partners') \n// ]\n// ];\n \n // if ($request->isMethod('post')) {\n\n // $validator = $this->validatorRegister($request->all());\n\n // if ($validator->fails()) {\n // $request->flash();\n // return view('user.auth.register', $dataArray)\n // ->withErrors($validator)\n // ->withInput($request->input());\n // }\n\n // if (!Captcha::check($request->captcha)) {\n // $request->flash();\n // return view('user.auth.register', $dataArray)->withErrors($validator)\n // ->withInput($request->input())\n // ->with('errorMsg', trans('common.error.invalid_captcha'));\n // }\n\n // try {\n\n // $customer = User::where(['email' => $request->email])->first();\n // // if already exist show the reload the resiter page with already_exists message\n // if (!empty($customer)) {\n\n // $errorMsg = trans('common.error.already_exists');\n // $errorMsg = str_replace('%1', trans('customer.label_email'), $errorMsg);\n // $errorMsg = str_replace('%2', $request->email, $errorMsg);\n\n // $request->flash();\n // return view('user.auth.register', $dataArray)\n // ->withErrors($validator)\n // ->withInput($request->input())\n // ->with('errorMsg', $errorMsg);\n // }\n\n // // if it gets to this point then create the user.\n // $ret = $this->createUser($request->all());\n // // Auth::guard($this->getGuard())->login($ret);\n\n // $emailConfig = $this->getConfig('email');\n // if ($emailConfig && !empty($emailConfig['sender_email'])) {\n\n // // Thanks email to the registered user\n // Mail::send('user.emails.register_thanks', [], function ($message) use($request, $emailConfig) {\n\n // $message->from($emailConfig['sender_email'], empty($emailConfig['sender_name']) ? trans('email.config.sender_name') : $emailConfig['sender_name']);\n // // $message->to($request->email)->subject(trans('email.subject.customer_register_thanks'));\n // $message->to($request->email)->subject( 'Thank You for Your Request to Retrive Your SBCC License Key' );\n\n // });\n\n // // Notification email to admin/group of new user registration\n // if (!empty($emailConfig['email_group_registration_notification'])) {\n // $data = [\n // 'first_name' => $request->first_name,\n // 'last_name' => $request->last_name,\n // 'email' => $request->email,\n // 'phone' => $request->phone,\n // 'organization_name' => $request->shool_name,\n // 'address' => $request->address,\n // 'city' => $request->city,\n // 'state' => $request->state,\n // 'zip_code' => $request->zip_code\n // // 'partner_type' => getPartnerTypeById($request->partner_type),\n // // 'referred_person' => $request->referred_person,\n // ];\n // Mail::send('user.emails.register_notification', $data, function ($message) use($emailConfig) {\n // \n // if (strpos($emailConfig['email_group_registration_notification'], \",\")){\n // $addrArray = explode(',', $emailConfig['email_group_registration_notification']);\n // foreach ($addrArray as $k => $v) {\n // $addrArray[$k] = trim($v);\n // }\n // \n // }else {\n // $addrArray[0] = trim($emailConfig['email_group_registration_notification']);\n // }\n\n // $message->from($emailConfig['sender_email'], empty($emailConfig['sender_name']) ? trans('email.config.sender_name') : $emailConfig['sender_name']);\n // $message->to($addrArray)->subject(trans('email.subject.customer_register_notification'));\n\n // });\n // }\n\n // }\n\n // return view('user.auth.register_thanks');\n\n // } catch (Exception $e) {\n // \n // return view('user.auth.register', $dataArray)->with('errorMsg', trans('common.error.db_save_failed'));\n\n // }\n // }\n\n // return view('user.auth.register', $dataArray);\n return view('user.auth.register');\n }", "public function signupAction()\n {\n $form = new \\RTB\\Core\\ShopFrontOffice\\Forms\\RegisterForm;\n if ($this->request->isPost()) {\n $email = $this->request->getPost('email', 'email');\n $password = $this->request->getPost('password', 'string');\n $repeatPassword = $this->request->getPost('repeatPassword', 'string');\n $response = $this->userService->createContact($email, $password, $repeatPassword);\n if($response == UserServices::SIGNUPSUCCESS){\n if ($this->request->isAjax()) {\n return $response;\n }\n $this->flash->success((string) $response);\n return $this->response->redirect('login');\n }else{\n if ($this->request->isAjax()) {\n return $response;\n }\n $this->flash->error($response);\n }\n }\n $this->view->form = $form;\n }", "function getFormRegist()\r\n{\r\n $blogManager = new Writer\\Blog\\Model\\BlogManager;\r\n $descBlog = $blogManager->getBlog();\r\n \r\n require_once 'view/backend/registration.php';\r\n}", "public function init()\n {\n $this->setMethod('post')\n ->setName('registration')\n ->setDescription('User Registration');\n\n $element = new Zend_Form_Element_Text('login');\n $element->setRequired(true);\n $element->setLabel('Login');\n $element->addValidator('StringLength', false, array(3,20))\n ->addValidator('Alnum', true, array(false))\n ->addValidator(new Core_Validate_Doctrine_NoRecordExists('User_Model_Users','login'));\n $element->setOrder(1);\n\n $this->addElement($element);\n\n $element = new Zend_Form_Element_Password('password');\n $element->setRequired(true);\n $element->setLabel('Password');\n $element->addValidator('StringLength', false, array(6,30))\n ->addValidator('Alnum', true, array(false));\n $element->setOrder(2);\n\n $this->addElement($element);\n\n $element = new Zend_Form_Element_Password('repassword');\n $element->setRequired(true);\n $element->setLabel('Confirm Password');\n $element->addValidator('StringLength', false, array(6,30))\n ->addValidator('Alnum', true, array(false))\n ->addValidator(new Zend_Validate_Callback(array($this, 'comparePassword')));\n $element->setOrder(3);\n\n $this->addElement($element);\n\n $element = new Zend_Form_Element_Text('email');\n $element->setRequired(true);\n $element->setLabel('E-mail');\n $element->addValidator('EmailAddress', true)\n ->addValidator(new Core_Validate_Doctrine_NoRecordExists('User_Model_Users','email'));\n $element->setOrder(4);\n\n $this->addElement($element);\n\n $element = new Zend_Form_Element_Submit('submit');\n $element->setLabel('Registration');\n $element->setOrder(5);\n\n $this->addElement($element);\n }", "function getSignupFormJs($arrFields){\n\t\t$arrSignupFormFieldLabels = array('email'=>'Email', 'name'=>'Name', 'first_name'=>'First Name', 'last_name'=>'Last Name', 'company'=>'Company', 'address'=>'Address', 'city'=>'City', 'state'=>'State', 'zip_code'=>'Zip Code', 'country'=>'Country');\n\t\t$jsRules = 'rules: {'.\"\\n\";\n\t\t$jsMsg = 'messages: {'.\"\\n\";\n\n\t\t$arrFldName \t= $arrFields['fld_name'];\n\t\t$arrFldType \t= $arrFields['fld_type'];\n\t\t$arrFldRequired = $arrFields['fld_required'];\n\t\t$arrFldOptions \t= $arrFields['fld_options'];\n\t\tif(is_array($arrFldName) && count($arrFldName) > 0){\n\t\t\t$i = 0;\n\t\t\tforeach($arrFldName as $fld => $fldVal){\n\t\t\t\tif($i > 0) $comma = \", \\n\";\n\t\t\t\tif($fldVal =='email'){\n\t\t\t\t\t$jsRules .= $comma.\"'email': { required: true, email: true}\";\n\t\t\t\t\t$jsMsg .= $comma.\"'email'\".': { required: \"Required\", email: \"Require a valid email address.\"}';\n\t\t\t\t$i++;\t\n\t\t\t\t}elseif($arrFldRequired[$fld] ==\"Y\"){\n\t\t\t\t\t$jsRules .= $comma. \"'\".rawurlencode ($fldVal).\"': 'required'\";\n\t\t\t\t\t$jsMsg .= $comma. \"'\".rawurlencode ($fldVal).\"': { required: \\\"Required\\\"}\";\n\t\t\t\t$i++;\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$jsRules .= \"\\n },\";\n\t\t$jsMsg .= \"\\n },\";\n\t\t\n\t\t$appendJs = \"\thighlight: function(element) {\n\t\t\t$(element).css('border', '2px solid red');\n\t\t},\n\t\tsuccess: function(element) {\n\t\t\t$(element).css('border', '1px solid #ebebeb');\n\t\t}, \n\n\t\tsubmitHandler: function( form ) { \n\t\t\t \n\t\t\tvar x=$('#signupform').serialize();\n\t\t\t$.ajax({\n\t\t\t\turl : $('#signupform').attr('action'),\n\t\t\t\tdata : x,\n\t\t\t\ttype: 'POST',\t\t\t\t\n\t\t\t\tsuccess : function(data){\n\t\t\t\t\tvar msg = data.split('|');\t\t\t\t\t\n\t\t\t\t\tif(msg[0] == 'ok'){\n\t\t\t\t\t\twindow.location.href= msg[1];\t\t\t\t\t\n\t\t\t\t\t}else if(msg[0] == 'err'){\n\t\t\t\t\t\t$('#validation-error').html(msg[1]);\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//$('#signupform').hide('slow');\n\t\t\t\t\t\t$('#validation-error').html(data);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t})\n\t\t\treturn false;\n\t\t\t}\n\t\t});\";\n\t\t\n\t\treturn \"$('#signupform').validate({ \\n\". $jsRules .\"\\n\". $jsMsg. $appendJs;\n\t}", "function getWebSignuptpl($useCaptcha){\n ob_start();\n ?>\n <!-- #declare:separator <hr> --> \n <!-- login form section-->\n <form method=\"post\" name=\"websignupfrm\" action=\"[+action+]\" style=\"margin: 0px; padding: 0px;\">\n <table border=\"0\" cellpadding=\"2\">\n <tr>\n <td>\n <table border=\"0\" width=\"100%\">\n <tr>\n <td>User name:*</td>\n <td>\n <input type=\"text\" name=\"username\" class=\"inputBox\" style=\"width:300px\" size=\"20\" maxlength=\"15\" value=\"[+username+]\"></td>\n </tr>\n <tr>\n <td>Full name:</td>\n <td>\n <input type=\"text\" name=\"fullname\" class=\"inputBox\" style=\"width:300px\" size=\"20\" maxlength=\"100\" value=\"[+fullname+]\"></td>\n </tr>\n <tr>\n <td>Email address:*</td>\n <td>\n <input type=\"text\" name=\"email\" class=\"inputBox\" style=\"width:300px\" size=\"20\" value=\"[+email+]\"></td>\n </tr>\n <tr>\n <td>Password:*</td>\n <td>\n <input type=\"password\" name=\"password\" class=\"inputBox\" style=\"width:300px\" size=\"20\"></td>\n </tr>\n <tr>\n <td>Confirm password:*</td>\n <td>\n <input type=\"password\" name=\"confirmpassword\" class=\"inputBox\" style=\"width:300px\" size=\"20\"></td>\n </tr>\n <tr>\n <td>Country:</td>\n <td><select size=\"1\" name=\"country\" style=\"width:300px\">\n <option value=\"\" selected>&nbsp;</option>\n <option value=\"1\">Afghanistan</option>\n <option value=\"2\">Albania</option>\n <option value=\"3\">Algeria</option>\n <option value=\"4\">American Samoa</option>\n <option value=\"5\">Andorra</option>\n <option value=\"6\">Angola</option>\n <option value=\"7\">Anguilla</option>\n <option value=\"8\">Antarctica</option>\n <option value=\"9\">Antigua and Barbuda</option>\n <option value=\"10\">Argentina</option>\n <option value=\"11\">Armenia</option>\n <option value=\"12\">Aruba</option>\n <option value=\"13\">Australia</option>\n <option value=\"14\">Austria</option>\n <option value=\"15\">Azerbaijan</option>\n <option value=\"16\">Bahamas</option>\n <option value=\"17\">Bahrain</option>\n <option value=\"18\">Bangladesh</option>\n <option value=\"19\">Barbados</option>\n <option value=\"20\">Belarus</option>\n <option value=\"21\">Belgium</option>\n <option value=\"22\">Belize</option>\n <option value=\"23\">Benin</option>\n <option value=\"24\">Bermuda</option>\n <option value=\"25\">Bhutan</option>\n <option value=\"26\">Bolivia</option>\n <option value=\"27\">Bosnia and Herzegowina</option>\n <option value=\"28\">Botswana</option>\n <option value=\"29\">Bouvet Island</option>\n <option value=\"30\">Brazil</option>\n <option value=\"31\">British Indian Ocean Territory</option>\n <option value=\"32\">Brunei Darussalam</option>\n <option value=\"33\">Bulgaria</option>\n <option value=\"34\">Burkina Faso</option>\n <option value=\"35\">Burundi</option>\n <option value=\"36\">Cambodia</option>\n <option value=\"37\">Cameroon</option>\n <option value=\"38\">Canada</option>\n <option value=\"39\">Cape Verde</option>\n <option value=\"40\">Cayman Islands</option>\n <option value=\"41\">Central African Republic</option>\n <option value=\"42\">Chad</option>\n <option value=\"43\">Chile</option>\n <option value=\"44\">China</option>\n <option value=\"45\">Christmas Island</option>\n <option value=\"46\">Cocos (Keeling) Islands</option>\n <option value=\"47\">Colombia</option>\n <option value=\"48\">Comoros</option>\n <option value=\"49\">Congo</option>\n <option value=\"50\">Cook Islands</option>\n <option value=\"51\">Costa Rica</option>\n <option value=\"52\">Cote D&#39;Ivoire</option>\n <option value=\"53\">Croatia</option>\n <option value=\"54\">Cuba</option>\n <option value=\"55\">Cyprus</option>\n <option value=\"56\">Czech Republic</option>\n <option value=\"57\">Denmark</option>\n <option value=\"58\">Djibouti</option>\n <option value=\"59\">Dominica</option>\n <option value=\"60\">Dominican Republic</option>\n <option value=\"61\">East Timor</option>\n <option value=\"62\">Ecuador</option>\n <option value=\"63\">Egypt</option>\n <option value=\"64\">El Salvador</option>\n <option value=\"65\">Equatorial Guinea</option>\n <option value=\"66\">Eritrea</option>\n <option value=\"67\">Estonia</option>\n <option value=\"68\">Ethiopia</option>\n <option value=\"69\">Falkland Islands (Malvinas)</option>\n <option value=\"70\">Faroe Islands</option>\n <option value=\"71\">Fiji</option>\n <option value=\"72\">Finland</option>\n <option value=\"73\">France</option>\n <option value=\"74\">France, Metropolitan</option>\n <option value=\"75\">French Guiana</option>\n <option value=\"76\">French Polynesia</option>\n <option value=\"77\">French Southern Territories</option>\n <option value=\"78\">Gabon</option>\n <option value=\"79\">Gambia</option>\n <option value=\"80\">Georgia</option>\n <option value=\"81\">Germany</option>\n <option value=\"82\">Ghana</option>\n <option value=\"83\">Gibraltar</option>\n <option value=\"84\">Greece</option>\n <option value=\"85\">Greenland</option>\n <option value=\"86\">Grenada</option>\n <option value=\"87\">Guadeloupe</option>\n <option value=\"88\">Guam</option>\n <option value=\"89\">Guatemala</option>\n <option value=\"90\">Guinea</option>\n <option value=\"91\">Guinea-bissau</option>\n <option value=\"92\">Guyana</option>\n <option value=\"93\">Haiti</option>\n <option value=\"94\">Heard and Mc Donald Islands</option>\n <option value=\"95\">Honduras</option>\n <option value=\"96\">Hong Kong</option>\n <option value=\"97\">Hungary</option>\n <option value=\"98\">Iceland</option>\n <option value=\"99\">India</option>\n <option value=\"100\">Indonesia</option>\n <option value=\"101\">Iran (Islamic Republic of)</option>\n <option value=\"102\">Iraq</option>\n <option value=\"103\">Ireland</option>\n <option value=\"104\">Israel</option>\n <option value=\"105\">Italy</option>\n <option value=\"106\">Jamaica</option>\n <option value=\"107\">Japan</option>\n <option value=\"108\">Jordan</option>\n <option value=\"109\">Kazakhstan</option>\n <option value=\"110\">Kenya</option>\n <option value=\"111\">Kiribati</option>\n <option value=\"112\">Korea, Democratic People&#39;s Republic of</option>\n <option value=\"113\">Korea, Republic of</option>\n <option value=\"114\">Kuwait</option>\n <option value=\"115\">Kyrgyzstan</option>\n <option value=\"116\">Lao People&#39;s Democratic Republic</option>\n <option value=\"117\">Latvia</option>\n <option value=\"118\">Lebanon</option>\n <option value=\"119\">Lesotho</option>\n <option value=\"120\">Liberia</option>\n <option value=\"121\">Libyan Arab Jamahiriya</option>\n <option value=\"122\">Liechtenstein</option>\n <option value=\"123\">Lithuania</option>\n <option value=\"124\">Luxembourg</option>\n <option value=\"125\">Macau</option>\n <option value=\"126\">Macedonia, The Former Yugoslav Republic of</option>\n <option value=\"127\">Madagascar</option>\n <option value=\"128\">Malawi</option>\n <option value=\"129\">Malaysia</option>\n <option value=\"130\">Maldives</option>\n <option value=\"131\">Mali</option>\n <option value=\"132\">Malta</option>\n <option value=\"133\">Marshall Islands</option>\n <option value=\"134\">Martinique</option>\n <option value=\"135\">Mauritania</option>\n <option value=\"136\">Mauritius</option>\n <option value=\"137\">Mayotte</option>\n <option value=\"138\">Mexico</option>\n <option value=\"139\">Micronesia, Federated States of</option>\n <option value=\"140\">Moldova, Republic of</option>\n <option value=\"141\">Monaco</option>\n <option value=\"142\">Mongolia</option>\n <option value=\"143\">Montserrat</option>\n <option value=\"144\">Morocco</option>\n <option value=\"145\">Mozambique</option>\n <option value=\"146\">Myanmar</option>\n <option value=\"147\">Namibia</option>\n <option value=\"148\">Nauru</option>\n <option value=\"149\">Nepal</option>\n <option value=\"150\">Netherlands</option>\n <option value=\"151\">Netherlands Antilles</option>\n <option value=\"152\">New Caledonia</option>\n <option value=\"153\">New Zealand</option>\n <option value=\"154\">Nicaragua</option>\n <option value=\"155\">Niger</option>\n <option value=\"156\">Nigeria</option>\n <option value=\"157\">Niue</option>\n <option value=\"158\">Norfolk Island</option>\n <option value=\"159\">Northern Mariana Islands</option>\n <option value=\"160\">Norway</option>\n <option value=\"161\">Oman</option>\n <option value=\"162\">Pakistan</option>\n <option value=\"163\">Palau</option>\n <option value=\"164\">Panama</option>\n <option value=\"165\">Papua New Guinea</option>\n <option value=\"166\">Paraguay</option>\n <option value=\"167\">Peru</option>\n <option value=\"168\">Philippines</option>\n <option value=\"169\">Pitcairn</option>\n <option value=\"170\">Poland</option>\n <option value=\"171\">Portugal</option>\n <option value=\"172\">Puerto Rico</option>\n <option value=\"173\">Qatar</option>\n <option value=\"174\">Reunion</option>\n <option value=\"175\">Romania</option>\n <option value=\"176\">Russian Federation</option>\n <option value=\"177\">Rwanda</option>\n <option value=\"178\">Saint Kitts and Nevis</option>\n <option value=\"179\">Saint Lucia</option>\n <option value=\"180\">Saint Vincent and the Grenadines</option>\n <option value=\"181\">Samoa</option>\n <option value=\"182\">San Marino</option>\n <option value=\"183\">Sao Tome and Principe</option>\n <option value=\"184\">Saudi Arabia</option>\n <option value=\"185\">Senegal</option>\n <option value=\"186\">Seychelles</option>\n <option value=\"187\">Sierra Leone</option>\n <option value=\"188\">Singapore</option>\n <option value=\"189\">Slovakia (Slovak Republic)</option>\n <option value=\"190\">Slovenia</option>\n <option value=\"191\">Solomon Islands</option>\n <option value=\"192\">Somalia</option>\n <option value=\"193\">South Africa</option>\n <option value=\"194\">South Georgia and the South Sandwich Islands</option>\n <option value=\"195\">Spain</option>\n <option value=\"196\">Sri Lanka</option>\n <option value=\"197\">St. Helena</option>\n <option value=\"198\">St. Pierre and Miquelon</option>\n <option value=\"199\">Sudan</option>\n <option value=\"200\">Suriname</option>\n <option value=\"201\">Svalbard and Jan Mayen Islands</option>\n <option value=\"202\">Swaziland</option>\n <option value=\"203\">Sweden</option>\n <option value=\"204\">Switzerland</option>\n <option value=\"205\">Syrian Arab Republic</option>\n <option value=\"206\">Taiwan</option>\n <option value=\"207\">Tajikistan</option>\n <option value=\"208\">Tanzania, United Republic of</option>\n <option value=\"209\">Thailand</option>\n <option value=\"210\">Togo</option>\n <option value=\"211\">Tokelau</option>\n <option value=\"212\">Tonga</option>\n <option value=\"213\">Trinidad and Tobago</option>\n <option value=\"214\">Tunisia</option>\n <option value=\"215\">Turkey</option>\n <option value=\"216\">Turkmenistan</option>\n <option value=\"217\">Turks and Caicos Islands</option>\n <option value=\"218\">Tuvalu</option>\n <option value=\"219\">Uganda</option>\n <option value=\"220\">Ukraine</option>\n <option value=\"221\">United Arab Emirates</option>\n <option value=\"222\">United Kingdom</option>\n <option value=\"223\">United States</option>\n <option value=\"224\">United States Minor Outlying Islands</option>\n <option value=\"225\">Uruguay</option>\n <option value=\"226\">Uzbekistan</option>\n <option value=\"227\">Vanuatu</option>\n <option value=\"228\">Vatican City State (Holy See)</option>\n <option value=\"229\">Venezuela</option>\n <option value=\"230\">Viet Nam</option>\n <option value=\"231\">Virgin Islands (British)</option>\n <option value=\"232\">Virgin Islands (U.S.)</option>\n <option value=\"233\">Wallis and Futuna Islands</option>\n <option value=\"234\">Western Sahara</option>\n <option value=\"235\">Yemen</option>\n <option value=\"236\">Yugoslavia</option>\n <option value=\"237\">Zaire</option>\n <option value=\"238\">Zambia</option>\n <option value=\"239\">Zimbabwe</option>\n </select></td>\n </tr>\n <tr>\n <td>State:</td>\n <td>\n <input type=\"text\" name=\"state\" class=\"inputBox\" style=\"width:300px\" size=\"20\" maxlength=\"50\" value=\"[+state+]\"></td>\n </tr>\n <tr>\n <td>Zip:</td>\n <td>\n <input type=\"text\" name=\"zip\" class=\"inputBox\" style=\"width:300px\" maxlength=\"50\" size=\"20\" value=\"[+zip+]\"></td>\n </tr>\n <?php if ($useCaptcha){ ?>\n <tr>\n <td valign=\"top\">Form code:*</td>\n <td>\n <input type=\"text\" name=\"formcode\" class=\"inputBox\" style=\"width:150px\" size=\"20\">\n <a href=\"[+action+]\"><img align=\"top\" src=\"[(site_manager_url)]includes/veriword.php?rand=<?php echo rand(); ?>\" width=\"148\" height=\"60\" alt=\"If you have trouble reading the code, click on the code itself to generate a new random code.\" style=\"border: 1px solid #003399\"></a>\n </td>\n </tr>\n <?php } ?>\n <tr>\n <td colspan=\"2\">&nbsp;* - Indicates required fields</td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td align=\"right\">\n <input type=\"submit\" value=\"Submit\" name=\"cmdwebsignup\" />\n <input type=\"reset\" value=\"Reset\" name=\"cmdreset\" />\n </td>\n </tr>\n </table>\n </form>\n <script language=\"javascript\" type=\"text/javascript\"> \n var id = \"[+country+]\";\n var f = document.websignupfrm;\n var i = parseInt(id);\n if (!isNaN(i)) f.country.options[i].selected = true;\n </script>\n <hr>\n <!-- notification section -->\n <span style=\"font-weight:bold;\">Signup completed successfully</span><br />\n Your account was successfully created.<br />\n A copy of your signup information was sent to your email address.<br /><br />\n <?php \n $t = ob_get_contents();\n ob_end_clean();\n return $t;\n}", "function register(){\n echo Template::instance()->render('gatorLock/register.php');\n}", "function register($data){\n\tglobal $conn;\n\n\t$nama = htmlspecialchars($data[\"nama\"]);\n\t$username = stripslashes(strtolower($data[\"username\"]));\n\t$opsi_harga = htmlspecialchars(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode($data[\"opsi_harga\"]))))))))));\n\t$alamat = htmlspecialchars($data[\"alamat\"]);\n\t$password = mysqli_real_escape_string($conn, $data[\"password\"]);\n\t$password2 = mysqli_real_escape_string($conn, $data[\"password2\"]);\n\t$regulations = htmlspecialchars(\n\t\tbase64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode($data[\"regulations\"]))))))))));\n\n\tif( base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode($regulations))))))))) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Pendaftaranmu diblokir!');\n\t\t\tdocument.location.href = 'register';\n\t\t</script>\";\n\t\treturn false;\n\t}\n\n\tif( base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode(base64_decode($opsi_harga))))))))) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Pendaftaranmu diblokir!');\n\t\t\tdocument.location.href = 'register';\n\t\t</script>\";\n\t\treturn false;\n\t}\n\n\t// check double username/telepon\n\t$result = mysqli_query($conn, \"SELECT username FROM tb_users WHERE username = '$username' \");\n\tif( mysqli_fetch_assoc($result) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Nomor ini sudah digunakan. Silahkan gunakan nomor telepon lain!');\n\t\t\tdocument.location.href = 'register';\n\t\t</script>\";\n\t\treturn false;\n\t}\n\n\t// check what the user enters is a phone number\n\tif( !is_numeric($username) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Yang anda masukan bukan nomor telepon!');\n\t\t\tdocument.location.href = 'register';\n\t\t</script>\";\n\t\treturn false;\t\n\t}\n\n\t// check empty nama\n\tif( empty($nama) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Nama tidak boleh kosong!');\n\t\t\tdocument.location.href = 'register';\n\t\t</script>\";\n\t\treturn false;\n\t}\n\n\n\t// check empty alamat\n\tif( empty($alamat) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Alamat tidak boleh kosong!');\n\t\t\tdocument.location.href = 'register';\n\t\t</script>\";\n\t\treturn false;\t\n\t}\n\n\n\t// check empty username/telepon\n\tif( empty($username) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Nomor telepon tidak boleh kosong!');\n\t\t\tdocument.location.href = 'register';\n\t\t</script>\";\n\t\treturn false;\t\n\t}\n\n\t// check empty password\n\tif( empty($password) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Passowrd tidak boleh kosong!');\n\t\t\tdocument.location.href = 'register';\n\t\t</script>\";\n\t\treturn false;\t\n\t}\n\n\t// check empty regulations\n\tif( empty($regulations) ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Pendaftaranmu diblokir!');\n\t\t\tdocument.location.href = 'register';\n\t\t</script>\";\n\t\treturn false;\t\n\t}\n\n\t// check leng nama\n\tif( strlen($nama) > 50 ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Nama terlalu panjang maksimal 50 karakter!');\n\t\t\tdocument.location.href = 'register';\n\t\t</script>\";\n\t\treturn false;\n\t}\n\n\t// check leng nomor telepon\n\tif( strlen($username) > 15 ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Nomor telepon anda salah!');\n\t\t\tdocument.location.href = 'register';\n\t\t</script>\";\n\t\treturn false;\n\t}\n\t// check leng nomor telepon\n\tif( strlen($username) < 10 ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Nomor telepon anda salah!');\n\t\t\tdocument.location.href = 'register';\n\t\t</script>\";\n\t\treturn false;\n\t}\n\n\n\t// check leng alamat\n\tif( strlen($alamat) > 255 ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Alamat terlalu panjang maksimal 255 karakter!');\n\t\t\tdocument.location.href = 'register';\n\t\t</script>\";\n\t\treturn false;\n\t}\n\n\t// check leng alamat\n\tif( strlen($alamat) < 5 ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Alamat terlalu pendek!');\n\t\t\tdocument.location.href = 'register';\n\t\t</script>\";\n\t\treturn false;\n\t}\n\n\n\t// check leng password\n\tif( strlen($password) < 8 ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Untuk Menjaga Kemanan Akun Anda, Masukan Minimal 8 Karakter Kata Sandi!');\n\t\t\tdocument.location.href = 'register';\n\t\t</script>\";\n\t\treturn false;\n\t}\n\n\n\t// check confirmation password\n\tif( $password !== $password2 ){\n\t\techo \"\n\t\t<script>\n\t\t\talert('Konfirmasi Password Tidak Sesuai!');\n\t\t\tdocument.location.href = 'register';\n\t\t</script>\";\n\t\treturn false;\n\t}\n\n\t// enkription password\n\t$password = password_hash($password, PASSWORD_DEFAULT);\n\n\t// add all data to database\n\t$query = \"INSERT INTO tb_users VALUES(null, '$nama', '$username', '$opsi_harga', '$alamat', '$password', '$regulations') \";\n\tmysqli_query($conn, $query);\n\treturn mysqli_affected_rows($conn);\n\n}", "function displayRegForm() {\r\n displayUserForm(\"processRegistration.php\", \"registrationForm\", \"Register\",\r\n \"Your name\", \"\",\r\n \"Your email address\", \"\",\r\n \"Your chosen username\", \"\",\r\n \"Your chosen password\", \"Confirm your password\",\r\n true, -1);\r\n}", "function insertTableRow($tableName)\n{\n\n if ($tableName == \"userdata\") {\n global $errorRegister, $errorFirstName, $errorLastName, $errorEmail, $errorPassword, $errorPassword, $errorPasswordRepeat, $errorRegister, $errorAGBCheckbox;\n\n $errorRegister = $errorFirstName = $errorLastName = $errorEmail = $errorPassword = $errorPasswordRepeat = $errorAGBCheckbox = $firstnameInput = $lastnameInput = $emailInput = $passwordInput = $passwordRepeatInput = $checkboxInput = \"\";\n if (!isset($_POST['agbCheckboxRegisterAdmin'])) {\n $_POST['agbCheckboxRegisterAdmin'] = \"\";\n }\n\n $tokenClass = new token();\n $xsrfType = \"AdminNewUserForm\";\n\n $firstnameInput = sanitize_input(ucfirst($_POST['firstnameRegisterAdmin']));\n $lastnameInput = sanitize_input(ucfirst($_POST['lastnameRegisterAdmin']));\n $emailInput = sanitize_input($_POST['emailRegisterAdmin']);\n $passwordInput = sanitize_input($_POST['passwordRegisterAdmin']);\n $passwordRepeatInput = sanitize_input($_POST['passwordRepeatRegisterAdmin']);\n $checkboxInput = $_POST['agbCheckboxRegisterAdmin'];\n\n $validation = new validation();\n $registrationValidation = $validation->validRegister($firstnameInput, $lastnameInput, $emailInput, $passwordInput, $passwordRepeatInput, $checkboxInput);\n\n if ($registrationValidation == true) {\n $data = database::getConnections()->view(\"userdata\", \"email=:email\", [':email' => $emailInput]);\n if ($data == false) {\n if (($tokenData = $tokenClass->checkXSRFToken($_POST[\"xsrfToken\"])) == true) {\n $password_hash = password_hash($passwordInput, PASSWORD_DEFAULT);\n $ipAddress = get_client_ip();\n\n if (database::getConnections()->insertRegisterUserData(\"userdata\", $firstnameInput, $lastnameInput, $emailInput, $password_hash) == true) {\n $data = database::getConnections()->view(\"userdata\", \"email=:email\", [':email' => $emailInput]);\n if (database::getConnections()->insertRegisterUserInfo(\"userinfo\", $data[\"id\"], $ipAddress) == true) {\n echo '<p class=\"success\">Sie wurden erfolgreich registriert!</p>';\n }\n } else {\n echo $errorSearch = '<p class=\"error\">Beim Anlegen Ihres Accounts ist ein fehler aufgetreten! Versuchen Sie es erneut!</p>';\n }\n\n $tokenClass->deleteXSRFToken($tokenData[\"id\"], $xsrfType);\n\n // Es wird ein Token erstellt zum Aktivieren des Accounts, dieser wird auch hochgeladen in die \"token\" Tabelle\n $xsrfTypeRegisterActivate = \"RegisterAccountActivate\";\n $xsrfExpiresRegisterActivate = date(\"Y-m-d H:i:s\", strtotime(date(\"Y-m-d H:i:s\") . \" +1440 minutes\")); // 24 Stunden (1 Tage)\n $xsrfTokenRegisterActivate = $tokenClass->generateXSRFToken();\n database::getConnections()->tokenInsert($xsrfTokenRegisterActivate, $xsrfTypeRegisterActivate, $xsrfExpiresRegisterActivate, $data[\"id\"]);\n\n // Schreibe dem User eine E-Mail mit allen Registrierungsdaten und dem Aktivierungslink\n $newMail = new mail();\n $newMail->registerAccountDataMail($emailInput, $firstnameInput, $lastnameInput, $ipAddress, $xsrfTokenRegisterActivate, $data[\"id\"]);\n\n // ACHTUNG! //// ACHTUNG! //// ACHTUNG! //// ACHTUNG! //// ACHTUNG! //// ACHTUNG! //// ACHTUNG! //\n // Diese zwei Links hier unten drunter sind nur dafür da, für die Entwicklung, also wenn man keine E-Mail enthalten kann\n global $errorSearch;\n $errorSearch = '<a href=\"http://localhost:8888/Boost-Your-Life/resources/login.php?token=' . $xsrfTokenRegisterActivate . '&id=' . $data[\"id\"] . '\">Klicken Sie hier um Ihren Account zu aktivieren! (Dieser Link besteht nur, weil man über MAMP keine E-Mails verschicken kann!)</a>';\n\n // Free Googie Host Server\n // $errorSearch = '<a href=\"http://boost-your-life.thats.im/resources/login.php?token=' . $xsrfTokenRegisterActivate . '&id=' . $data[\"id\"] . '\">Klicken Sie hier um Ihren Account zu aktivieren! (Dieser Link besteht nur, weil man bei dem Kostenlosen Server sehr oft keine E-Mails bekommt und es auch ein E-Mail Limit gibt!)</a>';\n } else {\n global $errorSearch;\n echo $errorSearch = '<p class=\"error\">Bitte versuchen Sie es nach einem Refresh erneut! Wenn nach dem Refresh das Problem immer noch besteht, so wenden Sie sich bitte an den Support ===> support@boost-your-life.de</p>';\n }\n } else {\n global $errorSearch;\n echo $errorSearch = '<p class=\"error\">Diese E-Mail Adresse ist schon vergeben, bitte eine andere eingeben!</p>';\n }\n } elseif ($registrationValidation == false || $data == true || $tokenData == false) {\n global $errorEmail, $errorRegister;\n echo $form = '<div class=\"formAdminRegister\"><form method=\"post\" enctype=\"multipart/form-data\">\n <input type=\"hidden\" name=\"tableName\" value=\"user\">\n <input type=\"hidden\" name=\"xsrfToken\" value=\"' . $_POST[\"xsrfToken\"] . '\">\n <div>\n <div>' . $errorRegister . '</div>\n <h1>Registrieren</h1>\n </div>\n <div class=\"field\">\n <label for=\"firstnameRegisterAdmin\">Vorname:</label>\n <input type=\"text\" name=\"firstnameRegisterAdmin\" id=\"firstnameRegisterAdmin\" placeholder=\"Vorname\" title=\"Beispiel = Manfred Müller\" autofocus maxlength=\"75\" value=\"' . $firstnameInput . '\">\n <div>' . $errorFirstName . '</div>\n </div>\n <div class=\"field\">\n <label for=\"lastnameRegisterAdmin\">Nachname:</label>\n <input type=\"text\" name=\"lastnameRegisterAdmin\" id=\"lastnameRegisterAdmin\" placeholder=\"Nachname\" title=\"Beispiel = Trautmann-Neuhagen\" maxlength=\"75\" value=\"' . $lastnameInput . '\">\n <div>' . $errorLastName . '</div>\n </div>\n <div class=\"field\">\n <label for=\"emailRegisterAdmin\">Email Adresse:</label>\n <input type=\"email\" name=\"emailRegisterAdmin\" id=\"emailRegisterAdmin\" placeholder=\"E-Mail Adresse\" title=\"Beispiel = max-Mustermann123@gmail.com\" maxlength=\"255\" value=\"' . $emailInput . '\">\n <div>' . $errorEmail . '</div>\n </div>\n <div class=\"field\">\n <label for=\"passwordRegisterAdmin\">Passwort:</label>\n <input type=\"password\" name=\"passwordRegisterAdmin\" id=\"passwordRegisterAdmin\" placeholder=\"Passwort\" title=\"Das Passwort muss einen klein und groß Buchstaben, eine Zahl und ein Sonderzeichen enthalten\" autocomplete=\"off\" maxlength=\"100\">\n <div>' . $errorPassword . '</div>\n </div>\n <div class=\"field\">\n <label for=\"passwordRepeatRegisterAdmin\">Passwort wiederholen:</label>\n <input type=\"password\" name=\"passwordRepeatRegisterAdmin\" id=\"passwordRepeatRegisterAdmin\" placeholder=\"Passwort wiederholen!\" title=\"Das Passwort muss wiederholt werden!\" autocomplete=\"off\" maxlength=\"100\">\n <div>' . $errorPasswordRepeat . '</div>\n </div>\n <div class=\"field\">\n <label for=\"agbCheckboxRegisterAdmin\">\n <input type=\"checkbox\" name=\"agbCheckboxRegisterAdmin\" id=\"agbCheckboxRegisterAdmin\"><a class=\"agbDatenschutzLink\" href=\"agb.php\">AGB</a> & <a class=\"agbDatenschutzLink\" href=\"datenschutz.php\">DATENSCHUTZBESTIMMUNGEN</a> Akzeptieren\n </label>\n <div>' . $errorAGBCheckbox . '</div>\n </div>\n <br>\n <input class=\"btn btnSecondary\" type=\"submit\" name=\"edit\" value=\"Registrieren\">\n </form></div><br>';\n }\n } else {\n\n $errorSections = $errorRegister = $errorTitle = $errorDescription = $errorTextMessage = $errorSoundcloudLink = $errorYouTubeLink = $errorAGBCheckbox = \"\";\n global $newUser, $userid, $errorTextMessage, $errorRegister, $errorTitle, $errorDescription, $errorSoundcloudLink, $errorYouTubeLink, $errorAGBCheckbox, $errorSections;\n\n $tokenClass = new token();\n $xsrfType = \"AdminNewNLPForm\";\n\n $author = $newUser->userFirstName . \" \" . $newUser->userLastName;\n $titleInput = sanitize_input(ucfirst($_POST['title']));\n $descriptionInput = sanitize_input(ucfirst($_POST['description']));\n $textInput = sanitize_input($_POST['text']);\n $soundcloudInput = sanitize_input($_POST['soundcloudLink']);\n $youtubeInput = sanitize_input($_POST['youtubeLink']);\n $checkboxInput = $_POST['agbCheckbox'];\n $genreInput = $_POST['genre'];\n\n $validation = new validation();\n $registrationValidation = $validation->validRegisterNLP($titleInput, $descriptionInput, $textInput, $genreInput, $soundcloudInput, $youtubeInput, $checkboxInput);\n\n if ($registrationValidation == true) {\n $data = database::getConnections()->view(\"nlp\", \"userid\");\n if ($data == true) {\n if (($tokenData = $tokenClass->checkXSRFToken($_POST[\"xsrfToken\"])) == true) {\n\n require_once '../functions/imageUpload.php';\n\n // Es wird geschaut ob ein Bild hochgeladen wurde\n if (!$_FILES['appImage']['size'] == 0) {\n $unlink = \"\";\n $bildFunktion = imageUploads(\"insert\", \"Nlp\", $userid, $id, $unlink);\n\n // Wenn das Bild erfolgreich hochgeladen wurde, dann lade die NLP Übung mit den Inhalten hoch\n if ($bildFunktion == false) {\n if (database::getConnections()->insertDataNLP(\"nlp\", $userid, $author, $genreInput, $titleInput, $descriptionInput, $textInput, $soundcloudInput, $youtubeInput) == true) {\n global $errorSearch;\n $errorSearch = '<p class=\"success\">Die NLP Übung wurde erfolgreich angelegt!</p>';\n\n $nlpData = database::getConnections()->view(\"nlp\", \"userid=:userid ORDER BY uploaded DESC LIMIT 1\", [':userid' => $userid]);\n $imageData = database::getConnections()->view(\"images\", \"userid=:userid ORDER BY uploaded DESC LIMIT 1\", [':userid' => $userid]);\n\n database::getConnections()->updateNlpImageID($nlpData[\"id\"], $imageData[\"id\"]);\n\n // $nlpData = database::getConnections()->view(\"nlp\", \"userid=:userid ORDER BY uploaded DESC LIMIT 1\", [':userid' => $userid]);\n\n // database::getConnections()->updateNlpImageID($nlpData[\"id\"], $userid);\n } else {\n global $errorSearch;\n $errorSearch = '<p class=\"error\">Beim Anlegen der NLP Übung ist ein fehler aufgetreten!</p>';\n }\n $tokenClass->deleteXSRFToken($tokenData[\"id\"], $xsrfType);\n }\n\n } else {\n global $errorImage;\n $errorImage = '<p class=\"errorMessages\">Bitte wählen Sie ein Bild aus!</p>';\n }\n\n } else {\n global $errorRegister;\n $errorRegister = '<p class=\"errorMessages\">Bitte versuchen Sie es nach einem Refresh erneut! Wenn nach dem Refresh das Problem immer noch besteht, so wenden Sie sich bitte an den Support = support@web.de</p>';\n }\n }\n } elseif ($registrationValidation == false || $data == false || $tokenData == false || $bildFunktion == true || $_FILES['appImage']['size'] == 0) {\n global $errorRegister, $errorImage;\n echo '<div class=\"formAdminRegister\"><form method=\"post\" enctype=\"multipart/form-data\">\n <input type=\"hidden\" name=\"tableName\" value=\"nlp\">\n <input type=\"hidden\" name=\"xsrfToken\" value=\"' . $_POST[\"xsrfToken\"] . '\">\n <div>\n <div>' . $errorRegister . '</div>\n <h1>Importieren</h1>\n </div>\n <div class=\"field\">\n <label for=\"nlpImage\">Übungsbild:</label>\n <input type=\"file\" required accept=\"image/*\" name=\"appImage\" id=\"nlpImage\">\n <div>' . $errorImage . '</div>\n </div>\n <div class=\"field\">\n <label for=\"title\">Titel:</label>\n <input type=\"text\" name=\"title\" id=\"title\" placeholder=\"Titel\" autofocus maxlength=\"45\" value=\"' . $titleInput . '\">\n <div>' . $errorTitle . '</div>\n </div>\n <div class=\"field\">\n <label for=\"description\">Beschreibung:</label>\n <input type=\"text\" name=\"description\" id=\"description\" placeholder=\"Beschreibung\" maxlength=\"200\" value=\"' . $descriptionInput . '\">\n <div>' . $errorDescription . '</div>\n </div>\n <div class=\"field\">\n <label for=\"text\">Text:</label>\n <textarea name=\"text\" id=\"text\" placeholder=\"Text\" rows=\"4\" cols=\"60\">' . $textInput . '</textarea>\n <div>' . $errorTextMessage . '</div>\n </div>\n <div class=\"field\">\n <label for=\"rights\">Genre:</label>\n <select class=\"\" name=\"genre\" id=\"genre\">\n\t\t\t\t <optgroug name=\"genre\" id=\"genre\">\n <option value=\"' . $genreInput . '\" disabled selected>Wähle aus!</option>\n <option value=\"A\">A</option>\n <option value=\"B\">B</option>\n <option value=\"C\">C</option>\n <option value=\"D\">D</option>\n <option value=\"E\">E</option>\n <option value=\"F\">F</option>\n <option value=\"G\">G</option>\n\t\t\t\t </optgroup>\n </select>\n <div>' . $errorSections . '</div>\n </div>\n <div class=\"field\">\n <label for=\"soundcloudLink\">Soundcloud Link/SRC:</label>\n <input type=\"url\" name=\"soundcloudLink\" id=\"soundcloudLink\" placeholder=\"Soundcloud Link\" maxlength=\"255\" value=\"' . $soundcloudInput . '\">\n <div>' . $errorSoundcloudLink . '</div>\n </div>\n <div class=\"field\">\n <label for=\"youtubeLink\">YouTube Link/SRC:</label>\n <input type=\"url\" name=\"youtubeLink\" id=\"youtubeLink\" placeholder=\"YouTube Link\" maxlength=\"255\" value=\"' . $youtubeInput . '\">\n <div>' . $errorYouTubeLink . '</div>\n </div>\n <div class=\"field\">\n <label for=\"agbCheckbox\">\n <input type=\"checkbox\" name=\"agbCheckbox\" id=\"agbCheckbox\"><a class=\"agbDatenschutzLink\" href=\"agb.php\">AGB</a> & <a class=\"agbDatenschutzLink\" href=\"datenschutz.php\">DATENSCHUTZBESTIMMUNGEN</a> Akzeptieren\n </label>\n <div>' . $errorAGBCheckbox . '</div>\n </div>\n <input class=\"btn btnSecondary\" type=\"submit\" name=\"edit\" value=\"Importieren\">\n </form></div><br>';\n }\n\n }\n\n}", "public function registration_button() {\n\n $rewardProgrammeName = Mage::getStoreConfig('lbconfig_section/lb_settings_group/reward_programme_name_field');\n Lb_Points_Helper_Data::$rewardProgrammeName = $rewardProgrammeName;\n if(isset($_SESSION['LB_Session']))\n {\n if(!empty($_SESSION['LB_Session'])) \n {\n $LB_Session = $_SESSION['LB_Session'];\n Lb_Points_Helper_Data::debug_log(\"Rendered session user with his LB Points\", true);\n ?>\n <div class=\"connectlbbtn lb-box\">\n <span class=\"h2\"><?php echo Lb_Points_Helper_Data::$rewardProgrammeName;?></span>\n <div class=\"loyaltybox-info-contain\">\n <?php \n if(isset($_SESSION['LB_Session']['totalRedeemPoints']))\n $remainingPoints = $LB_Session['lb_points'] - $_SESSION['LB_Session']['totalRedeemPoints'];\n else\n $remainingPoints = $LB_Session['lb_points'];\n ?>\n <?php echo \"<strong>Hi \".$LB_Session['Customer Name'].\"</strong> | <a id='lbLogout' href='javascript:void(0);'>Logout(\".Lb_Points_Helper_Data::$rewardProgrammeName.\")</a></br>You have \".$remainingPoints.\" Points in your <strong>\".Lb_Points_Helper_Data::$rewardProgrammeName.\"</strong> account.\"; ?>\n </div>\n <div class=\"lbMsg\"></div>\n </div>\n <?php\n } \n else \n {\n Lb_Points_Helper_Data::debug_log(\"Rendered Connect with Loyalty Box button\", true);\n ?>\n <div class=\"connectlbbtn registrationBtn lb-box\">\n <button class=\"button btn-cart\" onclick=\"return showForm('popup_form_registration')\" title=\"Connect with <?php echo Lb_Points_Helper_Data::$rewardProgrammeName;?>\" type=\"button\"><span><span>Connect with <?php echo Lb_Points_Helper_Data::$rewardProgrammeName;?></span></span></button>\n <div class=\"lbMsg\"></div>\n </div>\n \n <script type=\"text/javascript\">\n function showForm(id){\n win = new Window({ title: \"Connect with Loyalty Box\", zIndex:3000, destroyOnClose: true, recenterAuto:true, resizable: false, width:400, height:'auto', minimizable: true, maximizable: false, draggable: true});\n win.setContent(id, false, false);\n win.showCenter();\n }\n </script>\n <?php\n Lb_Points_Helper_Data::debug_log(\"End: Rendered Connect with Loyalty Box button\", true);\n }\n }\n else \n {\n Lb_Points_Helper_Data::debug_log(\"Rendered Connect with Loyalty Box button\", true);\n ?>\n <div class=\"connectlbbtn registrationBtn lb-box\">\n <button class=\"button btn-cart\" onclick=\"return showForm('popup_form_registration')\" title=\"Connect with <?php echo Lb_Points_Helper_Data::$rewardProgrammeName;?>\" type=\"button\"><span><span>Connect with <?php echo Lb_Points_Helper_Data::$rewardProgrammeName;?></span></span></button>\n <div class=\"lbMsg\"></div>\n </div>\n <script type=\"text/javascript\">\n function showForm(id){\n win = new Window({ title: \"Connect with <?php echo Lb_Points_Helper_Data::$rewardProgrammeName;?>\", zIndex:3000, destroyOnClose: true, recenterAuto:true, resizable: false, width:400, height:'auto', minimizable: true, maximizable: false, draggable: true});\n win.setContent(id, false, false);\n win.showCenter();\n }\n </script>\n <?php\n Lb_Points_Helper_Data::debug_log(\"End: Rendered Connect with Loyalty Box button\", true);\n }\n }", "function itstar_user_register( $atts, $content = null ) {\n $a = shortcode_atts( array(\n 'attr_1' => 'attribute 1 default',\n 'attr_2' => 'attribute 2 default',\n // ...etc\n ), $atts );\n\n global $user_errors;\n \n $form_display = \"\";\n if(count($user_errors->get_error_messages())>0){\n $form_display = \"form-display\";\n }\n \n $required = $user_errors->get_error_messages('requiredfields');\n $required = (!empty($required))?$required:array('');\n\n $spam_error = $user_errors->get_error_messages('aspam');\n $spam_error = (!empty($spam_error))?$spam_error:array('');\n\n $userexists = $user_errors->get_error_messages('userexists');\n $userexists = (!empty($userexists))?$userexists:array('');\n // $birthday = $user_errors->get_error_messages('birthday');\n // $birthday = (!empty($birthday))?$birthday:array('');\n // $birthmonth = $user_errors->get_error_messages('birthmonth');\n // $birthmonth = (!empty($birthmonth))?$birthmonth:array('');\n // $birthyear = $user_errors->get_error_messages('birthyear');\n // $birthyear = (!empty($birthyear))?$birthyear:array('');\n $phone = $user_errors->get_error_messages('birthyearphone');\n $phone = (!empty($phone))?$phone:array('');\n \n $anti_no1 = rand(3,12);\n $anti_no2 = rand(4,16);\n $anti_spam = $anti_no1+$anti_no2;\n\n \n $register_form = '';\n $register_form .= '<div class=\"forms_buttons\"><a href=\"#\" id=\"register-show\" class=\"register-show\">'.__('Vira Club Registeration','itstar').'</a>';\n $register_form .= '<a href=\"#\" id=\"login-show\" class=\"login-show\">'.__('Login to Site','itstar').'</a></div>';\n $register_form .= '<div class=\"register-container '.$form_display.' \">';\n $register_form .= '<label class=\"form_error\">'.$required[0].'</label>';\n $register_form .= '<label class=\"form_error\">'.$spam_error[0].'</label>';\n $register_form .= '<label class=\"form_error\">'.$userexists[0].'</label>';\n $register_form .= '<form method=\"post\" class=\"register_form\" name=\"registerForm\">';\n $register_form .='<table>';\n $register_form .= '<tr><th>'.__('First Name','itstar').'</th><td>'.'<input id=\"fname\" type=\"text\" name=\"fname\" />'.'</td></tr>';\n $register_form .='<tr><th>'. __('Last Name','itstar').'</th><td>'. '<input id=\"lname\" type=\"text\" name=\"lname\" />'.'</td></tr>';\n $register_form .= '<tr><th>'.__('UserName','itstar').'</th><td>'. '<input id=\"uname\" type=\"text\" name=\"uname\" />'.'</td></tr>';\n $register_form .= '<tr><th>'.__('Birthday','itstar').'</th><td>'. '<input id=\"birthday\" type=\"number\" name=\"birthday\" min=\"1\" max=\"31\"/>'.'</td></tr>';\n \n $register_form .= '<tr><th>'.__('Birth Month','itstar').'</th><td>'. '<input id=\"birthmonth\" type=\"number\" name=\"birthmonth\" min=\"1\" max=\"12\"/>'.'</td></tr>';\n \n $register_form .='<tr><th>'. __('Birth Year','itstar').'</th><td>'. '<input id=\"birthyear\" type=\"number\" name=\"birthyear\" min=\"1300\"/>'.'</td></tr>';\n \n $register_form .= '<tr><th>'.__('Job','itstar').'</th><td>'. '<input id=\"job\" type=\"text\" name=\"job\" />'.'</td></tr>';\n $register_form .= '<tr><th>'.__('Phone','itstar').'</th><td>'. '<input id=\"phone\" type=\"number\" min=\"1111\" name=\"phone\" />'.'</td></tr>';\n \n $register_form .= '<tr><th>'.__('Email','itstar').'</th><td>'. '<input id=\"email\" type=\"text\" name=\"uemail\" />'.'</td></tr>';\n $register_form .= '<tr><th>'.__('Password','itstar').'</th><td>'.'<input type=\"password\" pattern=\".{6,}\" name=\"upass\" />'.'</td></tr>';\n $register_form .= '<tr><th></th><td><small>'.__('At least 6 character.','itstar').'</small></td></tr>';\n $register_form .= '<tr><th>Anti Spam</th><td>'.$anti_no1 .' + '. $anti_no2.' = '.'<input id=\"anti_spam\" type=\"number\" min=\"1\" max=\"40\" name=\"aspam\" />'.'<input value=\"'.$anti_spam.'\" type=\"hidden\" name=\"aspam_result\" />'.'</td></tr>';\n $register_form .= '<tr><input value=\"true\" type=\"hidden\" name=\"submited\" /></tr>';\n $register_form .= '<tr><td>'.'<input type=\"submit\" value=\"'.__('Submit','itstar').'\" />'.'</td></tr>';\n $register_form .= '</table>';\n $register_form .= '</form>';\n $register_form .= '</div>';\n if ( !is_user_logged_in() ) {\n return $register_form;\n }\n}", "public function print_registration_form() {\n\t\t$id = (int) $this->input->post('id', true);\n\t\t$query = $this->model->RowObject($this->table, $this->pk, $id);\n\t\t$response = [];\n\t\tif ($id && $id > 0 && ctype_digit((string) $id)) {\n\t\t\t$this->load->model('m_registrants');\n\t\t\t$result = $this->m_registrants->find_registrant($query->birth_date, $query->registration_number);\n\t\t\tif (count($result) == 0) {\n\t\t\t\t$response['type'] = 'warning';\n\t\t\t\t$response['message'] = 'Data dengan tanggal lahir '.indo_date($query->birth_date).' dan nomor pendaftaran '.$query->registration_number.' tidak ditemukan.';\n\t\t\t} else {\n\t\t\t\t$file_name = 'formulir-penerimaan-'. (get_school_level() == 5 ? 'mahasiswa' : 'peserta-didik').'-baru-tahun-'.$this->session->userdata('admission_year');\n\t\t\t\t$file_name .= '-'.$query->birth_date.'-'.$query->registration_number.'.pdf';\n\t\t\t\t$this->load->library('admission');\n\t\t\t\t$this->admission->generating_pdf($result);\n\t\t\t\t$response['type'] = 'success';\n\t\t\t\t$response['file_name'] = $file_name;\n\t\t\t}\n\t\t} else {\n\t\t\t$response['type'] = 'error';\n\t\t\t$response['message'] = 'Format data tidak valid.';\n\t\t}\n\n\t\t$this->output\n\t\t\t->set_content_type('application/json', 'utf-8')\n\t\t\t->set_output(json_encode($response, JSON_PRETTY_PRINT))\n\t\t\t->_display();\n\t\texit;\n\t}", "public function page_register() {\n\n\t\tif(isset($_POST['submit'])) {\n\n\t\t\t$validate = new validate();\n\n\t\t\t/**\n\t\t\t * setup custom allback text\n\t\t\t */\n\t\t\t$validate->errors_text['account_action::_pwdntmatch'] = 'Password fields do not match!';\n\t\t\t$validate->errors_text['account_action::_userexists'] = 'User already exists!';\n\n\t\t\t/**\n\t\t\t* setup form validation rules\n\t\t\t*/\n\t\t\t$validate->set_rules('username', array(\n\t\t\t\t'empty', \n\t\t\t\tarray(\n\t\t\t\t\t'callback' => array(&$this, '_userexists')\n\t\t\t\t)\n\t\t\t));\n\n\t\t\t$validate->set_rules('password', array(\n\t\t\t\t'empty',\n\t\t\t\tarray(\n\t\t\t\t\t'callback' => array($this, '_pwdntmatch'),\n\t\t\t\t\t'params' => array('password_again')\n\t\t\t\t)\n\t\t\t), true);\n\n\t\t\t/**\n\t\t\t * lets attempt to save user into the database\n\t\t\t */\n\t\t\tif(!$validate->check()) {\n\n\t\t\t\t/**\n\t\t\t\t * register user\n\t\t\t\t */\n\t\t\t\tif(account_model::register()) {\n\t\t\t\t\t$this->data->message = \"Account created successful\";\n\t\t\t\t} else {\n\t\t\t\t\t$this->data->message = \"Something went wrong when attempting to create this account!\";\n\t\t\t\t}\n\n\n\t\t\t} else {\n\t\t\t\t$this->data->message = validate::errors();\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.6698324", "0.66532326", "0.6627254", "0.6592751", "0.649896", "0.63635135", "0.6266021", "0.6244483", "0.6225591", "0.6209788", "0.6205201", "0.619436", "0.61942637", "0.6179743", "0.61487293", "0.6141265", "0.61381805", "0.612633", "0.61101633", "0.61089885", "0.6086271", "0.6067408", "0.606061", "0.6040397", "0.6015992", "0.5993595", "0.5993548", "0.598516", "0.59611845", "0.5943394", "0.59392273", "0.5937284", "0.59358656", "0.59238243", "0.5902268", "0.58909094", "0.58883137", "0.5886065", "0.5880204", "0.5875226", "0.58657753", "0.58646256", "0.58536863", "0.58366966", "0.58336216", "0.58204687", "0.5817263", "0.58161646", "0.5809186", "0.58090544", "0.5804509", "0.5802061", "0.57963794", "0.5794379", "0.5778869", "0.5772392", "0.5770453", "0.57550955", "0.5742913", "0.574156", "0.5736611", "0.5735676", "0.5735085", "0.5733739", "0.5732853", "0.5729581", "0.57251734", "0.57215583", "0.5715805", "0.57097006", "0.5704365", "0.5696925", "0.5692216", "0.56879777", "0.56803477", "0.567023", "0.5655554", "0.5655087", "0.5652559", "0.56514204", "0.56432176", "0.5641238", "0.5638423", "0.5634889", "0.56328404", "0.56214035", "0.56199676", "0.56187576", "0.5618621", "0.561796", "0.5614614", "0.5613761", "0.56089026", "0.56081456", "0.56074893", "0.560124", "0.55980575", "0.5597618", "0.5595586", "0.55941373", "0.5593116" ]
0.0
-1
add once 5 minute interval to wp schedules
function new_interval($interval) { $interval['minutes_5'] = array('interval' => 5 * 60, 'display' => 'Once every 5 minutes'); return $interval; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cron_add_minute( $schedules ) {\r\n $schedules['everyminute'] = array( 'interval' => 60, 'display' => __( 'Once Every Minute' ) ); \r\n return $schedules; \r\n }", "private function cronMinute()\n {\n $timedRecords = $this->app['storage.event_processor.timed'];\n if ($timedRecords->isDuePublish()) {\n $this->notify('Publishing timed records');\n $timedRecords->publishTimedRecords();\n }\n if ($timedRecords->isDueHold()) {\n $this->notify('De-publishing timed records');\n $timedRecords->holdExpiredRecords();\n }\n }", "function reminder_setup_schedule()\n{\n if (!wp_next_scheduled('reminder_hourly_event')) {\n wp_schedule_event(time(), 'hourly', 'reminder_hourly_event');\n }\n}", "public static function add_schedule_interval( $schedules ) {\n\n\t\t$schedules['5_minutes'] = array(\n\t\t\t'interval' => 300, // 5 minutes in seconds\n\t\t\t'display' => 'Once every 5 minutes',\n\t\t);\n\n\t\treturn $schedules;\n\t}", "function add_cron_intervals( $schedules ) {\n\n\t$schedules['5seconds'] = array( // Provide the programmatic name to be used in code\n\t\t'interval' => 5, // Intervals are listed in seconds\n\t\t'display' => 'Every 5 Seconds' // Easy to read display name\n\t);\n\treturn $schedules; // Do not forget to give back the list of schedules!\n}", "function ds_add_email_cron_schedules( $param ) {\n\n $param['fifteen_minute'] = array(\n 'interval' => 900, // seconds* 900/60 = 15 mins\n 'display' => __( 'Every Fifteen Minutes' )\n );\n\n return $param;\n\n }", "function my_cron_schedules($schedules){\r\n if(!isset($schedules[\"5min\"])){\r\n $schedules[\"5min\"] = array(\r\n 'interval' => 5*60,\r\n 'display' => __('Once every 5 minutes'));\r\n }\r\n if(!isset($schedules[\"15min\"])){\r\n $schedules[\"15min\"] = array(\r\n 'interval' => 15*60,\r\n 'display' => __('Once every 15 minutes'));\r\n }\r\n return $schedules;\r\n}", "function add_cron_interval( $schedules ) {\n\t$schedules['ten_seconds'] = array(\n\t\t'interval' => 60,\n\t\t'display' => esc_html__( 'Every Ten Seconds' ),\n\t);\n\n\treturn $schedules;\n}", "function add_custom_cron() {\n\tif ( ! wp_next_scheduled( 'custom_cron_action' ) ) {\n\t\twp_schedule_event( current_time( 'timestamp' ), 'hourly', 'custom_cron_action' );\n\t}\n}", "public static function wpapp_schedule_events() {\n\t\t// setup temporary script deletion.\n\t\twp_clear_scheduled_hook( 'wpcd_wordpress_file_watcher' );\n\t\twp_schedule_event( time(), 'every_minute', 'wpcd_wordpress_file_watcher' );\n\n\t\t// setup deferred instance actions schedule.\n\t\twp_clear_scheduled_hook( 'wpcd_wordpress_deferred_actions_for_server' );\n\t\twp_schedule_event( time(), 'every_minute', 'wpcd_wordpress_deferred_actions_for_server' );\n\n\t\t// setup repeated actions schedule.\n\t\twp_clear_scheduled_hook( 'wpcd_wordpress_deferred_actions_for_apps' );\n\t\twp_schedule_event( time(), 'every_minute', 'wpcd_wordpress_deferred_actions_for_apps' );\n\n\t\t// @TODO does not work because the cron schedule is not registered.\n\t\t// wp_schedule_event( time(), 'every-10-seconds', \"wpcd_wordpress_repeated_actions_for_apps\" );\n\t}", "function cron_add_10_minutes($schedules) {\n\t\t\t$schedules['10minutes'] = array(\n\t\t\t\t'interval' => 600,\n\t\t\t\t'display' => __( 'Once 10 Minutes' )\n\t\t\t);\n\t\t\treturn $schedules;\n\t\t }", "function registry()\n\t{\n\t\tif ( !wp_next_scheduled( 'admin_action_delibera_cron_action' ) ) // if already been scheduled, will return a time \n\t\t{\n\t\t\twp_schedule_event(time(), 'hourly', 'admin_action_delibera_cron_action');\n\t\t}\n\t}", "function cron_add_weekly( $schedules ) {\n $schedules['weekly'] = array(\n 'interval' => 604800,\n 'display' => __( 'Once Weekly' )\n );\n return $schedules;\n}", "function update_interval_schedule($int) {\n\t//check schedule exists, remove it, add new one\t\n\twp_clear_scheduled_hook('standards_resource_check');\t\n\tif ($int > 0)\n\t\twp_schedule_single_event( time() + 3600 * $int, 'standards_resource_check' );\n}", "function create_daily_hook() {\n //wp_clear_scheduled_hook( 'efpsenddailyhook' );\n if (!wp_next_scheduled('efpsenddailyhook')) {\n wp_schedule_event(time(), 'daily', 'efpsenddailyhook');\n //wp_schedule_event(time(), 'minutes_5', 'efpsenddailyhook');\n }\n}", "function filter_cron_schedules($schedules) {\n $schedules['once_half_hour'] = array(\n 'interval' => 1800, // seconds\n 'display' => __('Once Half an Hour')\n );\n $schedules['half_part_time'] = array(\n 'interval' => 900, // seconds\n 'display' => __('Half Part Time')\n );\n\n return $schedules;\n}", "public function everyFiveMinutes()\n {\n return $this->everyNMinutes(5);\n }", "public static function initiate_schedules() {\n\t\t/** Clearing scheduled hook */\n\t\tif ( wp_next_scheduled( 'xl_maybe_track_usage_scheduled' ) ) {\n\t\t\twp_clear_scheduled_hook( 'xl_maybe_track_usage_scheduled' );\n\t\t}\n\n\t\tif ( ! wp_next_scheduled( 'xl_new_maybe_track_usage_scheduled' ) ) {\n\t\t\twp_schedule_event( current_time( 'timestamp' ), 'weekly_xl', 'xl_new_maybe_track_usage_scheduled' );\n\t\t}\n\t}", "public function cron()\n {\n wp_schedule_event(time(), 'hourly', array($this, 'generate'));\n }", "public function modify_action_scheduler_default_interval( $schedules ) {\n\n\t\t\tif ( $this->is_process_running() ) {\n\n\t\t\t\t$schedules['every_minute'] = array(\n\t\t\t\t\t'interval' => 5,\n\t\t\t\t\t'display' => __( 'Every 5 Seconds' ),\n\t\t\t\t);\n\t\t\t}\n\n\t\t\treturn $schedules;\n\n\t\t}", "function bpsPro_schedule_PFWAP_check() {\n$options = get_option('bulletproof_security_options_pfw_autopilot');\n$bpsPFWAPCronCheck = wp_get_schedule('bpsPro_PFWAP_check');\n$killit = '';\n\t\n\tif ( ! get_option('bulletproof_security_options_pfw_autopilot' ) || ! $options['bps_pfw_autopilot_cron'] || $options['bps_pfw_autopilot_cron'] == '' ) {\n\t\treturn $killit;\n\t}\n\t\n\tif ( $options['bps_pfw_autopilot_cron'] == 'On' ) {\n\t\n\tif ( $options['bps_pfw_autopilot_cron_frequency'] == '1' ) {\n\tif ( $bpsPFWAPCronCheck == 'minutes_5' || $bpsPFWAPCronCheck == 'minutes_10' || $bpsPFWAPCronCheck == 'minutes_15' || $bpsPFWAPCronCheck == 'minutes_30' || $bpsPFWAPCronCheck == 'minutes_60' ) {\n\t\twp_clear_scheduled_hook('bpsPro_PFWAP_check');\n\t}\n\t\n\tif ( ! wp_next_scheduled( 'bpsPro_PFWAP_check' ) ) {\n\t\twp_schedule_event( time(), 'minutes_1', 'bpsPro_PFWAP_check');\n\t}\n\t}\n\t\n\tif ( $options['bps_pfw_autopilot_cron_frequency'] == '5' ) {\n\tif ( $bpsPFWAPCronCheck == 'minutes_1' || $bpsPFWAPCronCheck == 'minutes_10' || $bpsPFWAPCronCheck == 'minutes_15' || $bpsPFWAPCronCheck == 'minutes_30' || $bpsPFWAPCronCheck == 'minutes_60' ) {\n\t\twp_clear_scheduled_hook('bpsPro_PFWAP_check');\n\t}\n\t\n\tif ( ! wp_next_scheduled('bpsPro_PFWAP_check' ) ) {\n\t\twp_schedule_event( time(), 'minutes_5', 'bpsPro_PFWAP_check' );\n\t}\n\t}\n\t\n\tif ( $options['bps_pfw_autopilot_cron_frequency'] == '10' ) {\n\tif ( $bpsPFWAPCronCheck == 'minutes_1' || $bpsPFWAPCronCheck == 'minutes_5' || $bpsPFWAPCronCheck == 'minutes_15' || $bpsPFWAPCronCheck == 'minutes_30' || $bpsPFWAPCronCheck == 'minutes_60' ) {\n\t\twp_clear_scheduled_hook('bpsPro_PFWAP_check');\n\t}\n\t\n\tif ( ! wp_next_scheduled('bpsPro_PFWAP_check' ) ) {\n\t\twp_schedule_event( time(), 'minutes_10', 'bpsPro_PFWAP_check' );\n\t}\n\t}\n\t\n\tif ( $options['bps_pfw_autopilot_cron_frequency'] == '15' ) {\n\tif ( $bpsPFWAPCronCheck == 'minutes_1' || $bpsPFWAPCronCheck == 'minutes_5' || $bpsPFWAPCronCheck == 'minutes_10' || $bpsPFWAPCronCheck == 'minutes_30' || $bpsPFWAPCronCheck == 'minutes_60' ) {\n\t\twp_clear_scheduled_hook('bpsPro_PFWAP_check');\n\t}\n\t\n\tif ( ! wp_next_scheduled('bpsPro_PFWAP_check' ) ) {\n\t\twp_schedule_event( time(), 'minutes_15', 'bpsPro_PFWAP_check' );\n\t}\n\t}\n\t\n\tif ( $options['bps_pfw_autopilot_cron_frequency'] == '30' ) {\n\tif ( $bpsPFWAPCronCheck == 'minutes_1' || $bpsPFWAPCronCheck == 'minutes_5' || $bpsPFWAPCronCheck == 'minutes_10' || $bpsPFWAPCronCheck == 'minutes_15' || $bpsPFWAPCronCheck == 'minutes_60' ) {\n\t\twp_clear_scheduled_hook('bpsPro_PFWAP_check');\n\t}\n\t\n\tif ( ! wp_next_scheduled('bpsPro_PFWAP_check' ) ) {\n\t\twp_schedule_event( time(), 'minutes_30', 'bpsPro_PFWAP_check' );\n\t}\n\t}\n\n\tif ( $options['bps_pfw_autopilot_cron_frequency'] == '60' ) {\n\tif ( $bpsPFWAPCronCheck == 'minutes_1' || $bpsPFWAPCronCheck == 'minutes_5' || $bpsPFWAPCronCheck == 'minutes_10' || $bpsPFWAPCronCheck == 'minutes_15' || $bpsPFWAPCronCheck == 'minutes_30' ) {\n\t\twp_clear_scheduled_hook('bpsPro_PFWAP_check');\n\t}\n\t\n\tif ( ! wp_next_scheduled('bpsPro_PFWAP_check' ) ) {\n\t\twp_schedule_event( time(), 'minutes_60', 'bpsPro_PFWAP_check' );\n\t}\n\t}\n\n\t}\n\telseif ( $options['bps_pfw_autopilot_cron'] == 'Off' ) { \n\t\twp_clear_scheduled_hook('bpsPro_PFWAP_check');\n\t}\n}", "function goodrds_schedule_cron() {\n\t if ( !wp_next_scheduled( 'goodrds_cronjob' ) )\n\t wp_schedule_event(time(), 'daily', 'goodrds_cronjob');\n\t}", "function install_cron(){\n wp_schedule_event(\n time(),\n 'cuentadigital_interval',\n 'cuentadigital_cron_hook'\n );\n }", "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyFiveMinutes();\n }", "public static function register_event() {\n\t\tif ( ! wp_next_scheduled( 'learn_press_schedule_cleanup_temp_users' ) ) {\n\t\t\twp_schedule_event( time(), 'every_three_minutes', 'learn_press_schedule_cleanup_temp_users' );\n\t\t}\n\t}", "function jetpack_sync_incremental_sync_interval( $schedule_name ) {\n\treturn 'hourly';\n}", "static function schedule_cron() {\n\t\t$is_multisite = is_multisite();\n\t\tif ( $is_multisite ) {\n\t\t\t$primary_blog = get_current_site();\n\t\t\t$current_blog = get_current_blog_id();\n\t\t} else {\n\t\t\t$primary_blog = 1;\n\t\t\t$current_blog = 1;\n\t\t}\n\n\t\t/**\n\t\t * If we're on a multisite, only schedule the cron if we're on the primary blog\n\t\t */\n\t\tif (\n\t\t( ! $is_multisite || ( $is_multisite && $primary_blog->id === $current_blog ) )\n\t\t) {\n\t\t\t$cronsScheduled = false;\n\t\t\tif( ! wp_next_scheduled( 'wp_rest_cache_cron' ) ) {\n\t\t\t\twp_schedule_event( time(), '5_minutes', 'wp_rest_cache_cron' );\n\t\t\t\t$cronsScheduled = true;\n\t\t\t}\n\t\t\tif( ! wp_next_scheduled( 'wp_rest_cache_expired_cron' ) ) {\n\t\t\t\twp_schedule_event( time(), 'hourly', 'wp_rest_cache_expired_cron' );\n\t\t\t\t$cronsScheduled = true;\n\t\t\t}\n\t\t\tif( $cronsScheduled ) {\n\t\t\t\tdo_action( 'wrc_after_schedule_cron', $primary_blog, $current_blog );\n\t\t\t}\n\t\t}\n\t}", "function dcs_dropship_cron_definer($schedules)\r\n{ \r\n\t$schedules['monthly'] = array( \r\n\t\t'interval'=> 2592000, \r\n\t\t'display'=> __('Once Every 30 Days') \r\n\t\t); \r\n\treturn $schedules;\r\n}", "public static function setup_sync_cronjob() {\n\t\tself::$timezone_string = get_option( 'timezone_string' );\n\t\tif ( ! wp_next_scheduled( self::SYNC_CRONJOB_NAME ) ) {\n\t\t\twp_schedule_event( Carbon::parse( '4am', self::$timezone_string )->getTimestamp(), 'daily', self::SYNC_CRONJOB_NAME );\n\t\t}\n\t}", "public function schedule_cron() {\n\t\twp_schedule_event( time(), 'daily', 'download_iracing_members_files' );\n\t\twp_schedule_event( time(), 'daily', 'convert_iracing_members_file_to_json' );\n\t}", "public function schedule_cron($rate = 'md5_hash_weekly') {\n if ( !wp_next_scheduled( 'md5_hasher_check_dir' ) ) {\n wp_schedule_event( time(), $rate, 'md5_hasher_check_dir');\n }\n }", "function nhymxu_weekly_cron_job() {\n\tif ( ! wp_next_scheduled( '' ) ) {\n\t\twp_schedule_event( time(), 'weekly', '' );\n\t}\n}", "function jetpack_sync_full_sync_interval( $schedule_name ) {\n\treturn 'twicedaily';\n}", "function wpcron_intervals( $schedules ) {\n\n\t// one minute\n\n\t$one_minute = array(\n\t\t\t\t\t'interval' => 60,\n\t\t\t\t\t'display' => 'One Minute'\n\t\t\t\t);\n\n\t$schedules[ 'one_minute' ] = $one_minute;\n\n\t// five minutes\n\n\t$five_minutes = array(\n\t\t\t\t\t'interval' => 300,\n\t\t\t\t\t'display' => 'Five Minutes'\n\t\t\t\t);\n\n\t$schedules[ 'five_minutes' ] = $five_minutes;\n\n\t// return data\n\n\treturn $schedules;\n\n}", "public function cron_add_schedules( $schedules ) {\n $schedules['md5_hash_weekly'] = array(\n 'interval' => 604800,\n 'display' => __( 'Once Weekly' )\n );\n return $schedules;\n }", "public static function action_wp() {\n $enable_reminders = self::send_domain_reminders();\n $schedule = wp_get_schedule( self::$scheduled_event_hook );\n $next_occurence = wp_next_scheduled( self::$scheduled_event_hook );\n if( !$schedule && !$next_occurence && $enable_reminders ) {\n wp_schedule_event( time(), 'weekly', self::$scheduled_event_hook );\n return;\n \t}\n \tif( $schedule !== false && !$enable_reminders ) {\n \twp_unschedule_event( $next_occurence, self::$scheduled_event_hook );\n \treturn;\n \t}\n }", "function vizadplug_cron_activation() {\n\tif( !wp_next_scheduled( 'mytrius-sync' ) ) { \n\t wp_schedule_event( time(), 'mytriuscooldown', 'mytrius-sync' ); \n\t}\n}", "public function wp_cron_scheduled_check()\n {\n }", "public static function scheduleUpdate()\n {\n $next_refresh = wp_next_scheduled('amwscpf_update_feeds_hook');\n if (!$next_refresh)\n wp_schedule_event(time(), 'refresh_interval', 'amwscpf_update_feeds_hook');\n }", "public static function reschedule_if_needed() {\n\t\n\t\tglobal $updraftplus;\n\t\n\t\t// If nothing is scheduled, then no re-scheduling is needed, so return\n\t\tif (empty($updraftplus->newresumption_scheduled)) return;\n\t\t\n\t\t$time_away = $updraftplus->newresumption_scheduled - time();\n\t\t\n\t\t// 45 is chosen because it is 15 seconds more than what is used to detect recent activity on files (file mod times). (If we use exactly the same, then it's more possible to slightly miss each other)\n\t\tif ($time_away > 1 && $time_away <= 45) {\n\t\t\t$updraftplus->log('The scheduled resumption is within 45 seconds - will reschedule');\n\t\t\t// Increase interval generally by 45 seconds, on the assumption that our prior estimates were innaccurate (i.e. not just 45 seconds *this* time)\n\t\t\tself::increase_resume_and_reschedule(45);\n\t\t}\n\t}", "public function cron_add_pull_time_interval( $schedules ) {\n\t\t$schedules['syn_pull_time_interval'] = array(\n\t\t\t'interval' => intval( $this->push_syndicate_settings['pull_time_interval'] ),\n\t\t\t'display' => __( 'Pull Time Interval', 'push-syndication' )\n\t\t);\n\n\t\treturn $schedules;\n\n\t}", "function emp_cron_schedules($schedules){\n\t$schedules['em_minute'] = array(\n\t\t'interval' => 60,\n\t\t'display' => 'Every Minute'\n\t);\n\treturn $schedules;\n}", "function mt_flickr_activate() {\n wp_schedule_event(time(), 'hourly', 'mt_flickr');\n}", "function classiera_ad_expiry_schedule() {\r\n\tif ( ! wp_next_scheduled( 'classiera_ad_expiry_event' ) ) {\r\n\t\twp_schedule_event( time(), 'hourly', 'classiera_ad_expiry_event');\r\n\t}\r\n}", "function my_add_weekly( $schedules ) {\n // add a 'weekly' schedule to the existing set\n $schedules['3_hours'] = array(\n 'interval' => 10800,\n 'display' => __('Every 3 Hours - (Flipkart API call)')\n );\n return $schedules;\n }", "function nde_edreports_add_intervals($schedules)\n\t{\n\t\t$schedules['weekly'] = array(\n\t\t\t'interval' => 604800,\n\t\t\t'display' => __('Once Weekly')\n\t\t);\n\t\t$schedules['monthly'] = array(\n\t\t\t'interval' => 2635200,\n\t\t\t'display' => __('Once a month')\n\t\t);\n\t\t$schedules['tenminutes'] = array(\n\t\t\t'interval' => 600,\n\t\t\t'display' => __('Every 10 Minutes')\n\t\t);\n\t\treturn $schedules;\n\t}", "public function everyHour() {\n $this->cron('0 * * * *');\n }", "protected function schedule(Schedule $schedule)\n {\n //$schedule->command('clickm')->everyMinute();\n }", "protected function schedule(Schedule $schedule)\n {\n $schedule->command('make:rss')->hourly();\n\n }", "function activateSchedules()\n{\n\tforeach( glob( __DIR__ . '/actions/*.php') as $hook ) {\n\n\t\t$hook = explode('-', pathinfo( $hook )['filename']);\n\t\t$name = $hook[0];\n\t\t$schedule = $hook[1];\n\t\t$timestamp = wp_next_scheduled( $name );\n\n\t\tif ( ! $timestamp || $timestamp < time() ) {\n\t\t\twp_schedule_event( time(), 'schedule' . $schedule, $name );\n\t\t}\n\t}\n}", "protected function schedule(Schedule $schedule)\n {\n\n $schedule->call(function () {\n ContestBusinessLogic::insertContests();\n })->hourly()->onSuccess(\n function () {\n FiltersLogic::applyFilter2();\n }\n );\n\n $schedule->call(function () {\n FiltersLogic::sendNotifications2();\n })->twiceDaily(7 , 13);\n\n\n\n $schedule->command('subscription:send_warning_email')->dailyAt(0);\n //corre o InsertContests a cada minuto\n /*$schedule->call(function(){\n ContestBusinessLogic::insertContests();\n })->everyFiveMinutes()->onSuccess(function () {\n FiltersLogic::applyFilter();\n })->onSuccess(function () {\n FiltersLogic::sendNotifications();\n });*/\n\n $schedule->call(function (){\n $entities = Entity::where('status', 1)->get();\n foreach ($entities as $entity) {\n if( !Entity::isEntitySubscribed($entity)){\n $entity->update(['status' => 0]);\n }\n }\n })->daily();\n\n/*\n $schedule->call(function (){\n FiltersLogic::applyFilter();\n })->twiceDaily(9, 15);\n $schedule->call(function (){\n FiltersLogic::sendNotifications();\n })->twiceDaily(9, 14);\n */\n }", "function asmcron_init_cronjob()\n{\n // check that it hasn't been scheduled yet using our own custom hook\n if( !wp_next_scheduled( 'asmcron_sendmail_hook' ) )\n {\n // if it hasn't, schedule it\n // https://codex.wordpress.org/Function_Reference/wp_schedule_event\n // \"$timestamp\" is for the first time you want the event to occur\n // \"$recurrence\" is for how often the event should reoccur\n // \"$hook\" is for the action hook to execute\n wp_schedule_event( time(), 'hourly', 'asmcron_sendmail_hook' );\n }\n}", "public function schedule_event() {\n\t\tif ( ! current_user_can( 'manage_options' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$event_name = $this->get_event_name();\n\t\t$timestamp = wp_next_scheduled( $event_name );\n\n\t\tif ( $timestamp ) {\n\t\t\treturn;\n\t\t}\n\n\t\twp_schedule_event( time(), $this->get_interval(), $event_name );\n\t}", "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "public function schedule(Schedule $schedule): void\n {\n // $schedule->command(static::class)->everyMinute();\n }", "public function schedule(Schedule $schedule): void\n {\n $schedule->command(static::class)->everyMinute()->withoutOverlapping();\n }", "public function run()\n {\n DB::table('lecture_schedules')->truncate();\n\n $today = date_create( date('D-m-Y', strtotime('today')));\n\n for ($i = 1; $i <= 6; $i++){\n // Increment day by one\n date_add($today, date_interval_create_from_date_string('1 days'));\n\n \\App\\LectureSchedule::create([\n 'title' => '',\n 'time' => '08:00',\n 'date' => $today,\n 'duration' => '',\n\n ]);\n\n }\n\n\n }", "public function add_schedules( $schedules = array() ) {\r\n\t\t$schedules['weekly'] = array(\r\n\t\t\t'interval' => 604800,\r\n\t\t\t'display' => __( 'Once Weekly', 'instagram-feed' )\r\n\t\t);\r\n\t\treturn $schedules;\r\n\t}", "public function schedule(Schedule $schedule): void\n\t{\n\t\t// $schedule->command(static::class)->everyMinute();\n\t}", "public function schedule(Schedule $schedule): void\n\t{\n\t\t// $schedule->command(static::class)->everyMinute();\n\t}", "function wp_doing_cron()\n {\n }", "protected function schedule(Schedule $schedule)\n {\n $schedule->command('reminder')\n ->hourly();\n \n $schedule->command('refresh:token')->dailyAt('00:30');\n }", "protected function schedule(Schedule $schedule)\n {\n $schedule->command('notify:rehabilitations')->twiceDaily(1, 22);\n }", "function simulateCron() {\n\t\tglobal $publishthis;\n\n\t\t// Return here is we want to pause polling.\n\t\tif ( $publishthis->get_option ( 'pause_polling' ) ) {\n\t\t\tif ( ! get_option ( 'publishthis_paused_on' ) ) {\n\t\t\t\tupdate_option ( 'publishthis_paused_on', time() );\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tignore_user_abort( true );\n\n\t\t//modifying the logic here a bit and going with options, instead of\n\t\t//transients, because those were sometimes disappearing from\n\t\t//the wp cache. don't want to disrupt the clients site\n\n\t\t//basic algorithm\n\t\t/*\n 1 - see if we are doing the cron all ready, if so, don't do anything\n 2 - if not doing cron, get the last timestamp of when we did this cron\n -- we only want to check every XX minutes\n 3 - if no time is set yet, we do the check\n 4 - if the time is set, and we have not yet passed our XX minutes, we do not do anything\n 5 - if we are doing the check, update that we are doing the cron\n 6 - do the cron action\n 7 - once completed, set\n - the timestamp we completed at, for future checks\n - remove the doing cron value\n */\n\t\t$doingSimulatedCron = get_option ( 'pt_simulated_cron' );\n\n\t\t//create lock flag if not exists and set it to 0 (false)\n\t\tif ( false === $doingSimulatedCron ) {\n\t\t\tupdate_option( \"pt_simulated_cron\", 0 );\n\t\t}\n\t\t$doingSimulatedCron = intval($doingSimulatedCron);\n\t\t//cron is not running\n\t\tif ( 0 === $doingSimulatedCron ) {\n\t\t\t//check the time\n\t\t\t$secondsExpiration = 60 * 2; //roughly 2 minutes. should be based on publishing action set poll times, but that would be too much to query;\n\n\t\t\t$timestamp = get_option ( 'pt_simulated_cron_ts' );\n\n\t\t\t$currentTimestamp = ( time() ) * 1000;\n\n\t\t\tif ( !$timestamp ) {\n\t\t\t\t//this has never been set before, so, we can just assume we need to do the cron\n\t\t\t\t$timestamp = $currentTimestamp;\n\t\t\t\t\n\t\t\t\t//set the timestamp the first time\n\t\t\t\tupdate_option( \"pt_simulated_cron_ts\", $timestamp );\n\t\t\t}\n\t\t\t//see if we need to do the cron\n\t\t\t$diffTimestamp = $currentTimestamp - $timestamp;\n\t\t\t\n\t\t\t$diffTimeSeconds = ( $diffTimestamp / 1000 );\n\t\n\t\t\tif ( $diffTimeSeconds >= $secondsExpiration ) {\n\t\t\t\t//ok, we need to do the cron action\n\t\t\t\tupdate_option( \"pt_simulated_cron\", 1 );\n\n\t\t\t\ttry {\n\t\t\t\t\t//if we are here, that means we need to do the cron action\n\t\t\t\t\t//get only active Publishing Actions\n\t\t\t\t\t$actions = $publishthis->publish->get_publishing_actions();\n\n\t\t\t\t\t$publishthis->log->addWithLevel ( array(\n\t\t\t\t\t\t\t'message' => 'Checking on simulated cron events',\n\t\t\t\t\t\t\t'status' => 'info',\n\t\t\t\t\t\t\t'details' => \"Found \" . count( $actions ) . \" publishing events to check\" ), \"2\" );\n\t\t\t\t\t\n\t\t\t\t\t// do import\n\t\t\t\t\t$publishthis->publish->run_import();\n\t\t\t\t} catch (Exception $e) {\n\t\t\t\t\t//set simulate cron options on failure\n\t\t\t\t\t//leaving duplicated lines, because php4 doesn't have finally block\n\t\t\t\t\tupdate_option( \"pt_simulated_cron_ts\", $currentTimestamp );\n\t\t\t\t\tupdate_option( \"pt_simulated_cron\", 0 );\n\t\t\t\t}\n\t\t\t\n\t\t\t\t//now that we are done, set the old timestamp\n\t\t\t\tupdate_option( \"pt_simulated_cron_ts\", $currentTimestamp );\n\t\t\t\tupdate_option( \"pt_simulated_cron\", 0 );\n\t\t\t}\t\n\t\t}\t\t\n\t}", "protected function schedule(Schedule $schedule)\n {\n // $schedule->command('inspire')\n // ->hourly();\n // Da ka Event\n $schedule->call(function(){\n $url = 'http://jira.multiverseinc.com/PunchEvent';\n $client = new \\GuzzleHttp\\Client();\n $res = $client->request('GET',$url);\n if ($res->voiceUrl==''){\n $res = $client->request('GET',$url);\n }\n })->timezone('Asia/Shanghai')->dailyAt('9:13');\n // Check sprint progress.\n $schedule->call(function(){\n $url = 'http://jira.multiverseinc.com/amChecked';\n $client = new \\GuzzleHttp\\Client();\n $res = $client->request('GET',$url);\n if ($res->voiceUrl==''){\n $res = $client->request('GET',$url);\n }\n })->timezone('Asia/Shanghai')->dailyAt('10:00');\n // Verify completed tasks\n $schedule->call(function(){\n $url = 'http://jira.multiverseinc.com/doneIssueChecked';\n $client = new \\GuzzleHttp\\Client();\n $res = $client->request('GET',$url);\n if ($res->voiceUrl==''){\n $res = $client->request('GET',$url);\n }\n })->timezone('Asia/Shanghai')->dailyAt('17:30');\n // volunteer for unassigned task.\n $schedule->call(function(){\n $url = 'http://jira.multiverseinc.com/todoChecked';\n $client = new \\GuzzleHttp\\Client();\n $res = $client->request('GET',$url);\n })->weekdays()\n ->everyFiveMinutes()\n ->timezone('Asia/Shanghai')\n ->between('9:50', '22:00');\n }", "protected function schedule(Schedule $schedule)\n {\n $schedule->command(RefreshLandingPageChecks::class)->cron('15 1 * * *');\n }", "function wwt_register_cron() {\r\n wp_clear_scheduled_hook('wwt_send_email_with_log');\r\n $firstDayNextMonth = date('Y-m-d 03:00:00', strtotime('first day of next month'));\r\n wp_schedule_event(strtotime($firstDayNextMonth), 'monthly', 'wwt_send_email_with_log');\r\n\r\n return $firstDayNextMonth;\r\n}", "protected function schedule(Schedule $schedule)\n {\n // $schedule->command('inspire')->hourly();\n \n\n $schedule->call(function(){\n\n \n $jadual = Telegram::all();\n\n foreach ($jadual as $jaduals) {\n $str_time = $jaduals->masa;\n sscanf($str_time, \"%d:%d:%d\", $hours, $minutes, $seconds);\n $masa = isset($hours) ? $hours * 3600 + $minutes * 60 + $seconds : $minutes * 60 + $seconds;\n $apiToken = \"\";\n $jawapan = $jaduals->answer;\n $jawapan = explode(',', $jawapan);\n $jawapan = json_encode($jawapan);\n \n \n $data = ['chat_id' => $jaduals->chatid, 'question' => $jaduals->question, 'options' => $jawapan, 'is_anonymous' => 'False', 'open_period' => $masa];\n Http::post(\"https://api.telegram.org/bot$apiToken/sendPoll?\" . http_build_query($data));\n }\n \n })->weekdays()->timezone('Asia/Kuala_Lumpur')->at('02:11');\n \n\n }", "function wp_schedule_update_checks()\n {\n }", "function test_schedule_event() {\n\t\t$hook = rand_str();\n\t\t$recur = 'hourly';\n\t\t$timestamp = strtotime('+1 hour');\n\n\t\twp_schedule_event( $timestamp, $recur, $hook );\n\t\t// it's scheduled for the right time\n\t\t$this->assertEquals( $timestamp, wp_next_scheduled($hook) );\n\t\t// it's a recurring event\n\t\t$this->assertEquals( $recur, wp_get_schedule($hook) );\n\t}", "function schedule_expiry() {\n\t\tif ( ! wp_next_scheduled( 'github_embed_cron' ) ) {\n\t\t\t$frequency = apply_filters( 'github_embed_cache_frequency', 'daily' );\n\t\t\twp_schedule_event( time(), $frequency, 'github_embed_cron' );\n\t\t}\n\t}", "protected function schedule(Schedule $schedule)\n {\n // $schedule->command('inspire')\n // ->hourly();\n // $filePath = \"C:\\Users\\Shukin_A_V\\Desktop\\testSheduleNekit.txt\";\n $schedule->call(function() {\n $waterMetersIds = DB::table('meters')\n ->select('id')\n ->where('type_id', '=', 2)\n ->where('worked', '=', 1)\n ->where('active', '=', 1)\n ->whereNotNull('server_ip')\n ->get();\n\n for ($i=0; $i < count($waterMetersIds); $i++) {\n $this->writeSingleMeterFreshData($waterMetersIds[$i]->id);\n }\n })->everyMinute();\n }", "public function schedule(Event $event)\n {\n $event->everyMinute();\n }", "static public function activate()\n {\n do_action( \"sc_wpfmp_enable_wp_cron\" ); // Go enable cron\n }", "protected function schedule(Schedule $schedule)\n {\n $schedule->command('inspire')\n ->hourly();\n $schedule->call(function() {\n\t\t\tSendMail::sendmails();\n\t\t})->name('sendmails')->everyFiveMinutes()->withoutOverlapping();\n $schedule->command('owish:update')->daily();\n\t\t$schedule->call(function () {\n $ows = DB::table('owarehouse')->where('status','active')->get();\n\t\t\tforeach($ows as $ow){\n\t\t\t\t$date = $ow->created_at;\n\t\t\t\t$date = strtotime($date);\n\t\t\t\t$current_date = strtotime(date('Y-m-d H:i:s'));\n\t\t\t\t$date1 = new DateTime('now');\n\t\t\t\t$date2 = new DateTime(date('Y-m-d H:i:s', strtotime(\"+ $ow->duration day\", $date)));\n\t\t\t\t$dDiff = $date1->diff($date2);\t\n\t\t\t\t$status=1;\n\t\t\t\tif ($dDiff->format(\"%r\") == '-') {\n\t\t\t\t\t$status=0;\n\t\t\t\t}\n\t\t\t\t$product = DB::table('product')->where('id',$ow->product_id)->first();\n\t\t\t\t$available = 0;\n\t\t\t\tif(!is_null($product)){\n\t\t\t\t\t$available = $product->available;\n\t\t\t\t}\n\t\t\t\tif($available == 0){\n\t\t\t\t\t$status=0;\n\t\t\t\t}\n\t\t\t\tif($status == 0){\n\t\t\t\t\tDB::table('owarehouse')->where('id',$ow->id)->\n\t\t\t\t\t\toupdate(['status','expired']);\n\t\t\t\t\t$pledges = DB::table('owarehousepledge')->\n\t\t\t\t\t\twhere('owarehouse_id',$ow->id)->count();\n\n\t\t\t\t\tif($pledges < $ow->moq){\n\t\t\t\t\t\t/************* OPEN CREDIT**************/\n\t\t\t\t\t\t$pledges = DB::table('owarehousepledge')->\n\t\t\t\t\t\t\twhere('owarehouse_id',$ow->id)->get();\n\n\t\t\t\t\t\t/*foreach($pledges as $pledge){\n\t\t\t\t\t\t}*/\n\t\t\t\t\t} else {\n\t\t\t\t\t\t/************* PROCESS PLEDGES **************/\n\t\t\t\t\t\tDB::table('owarehouse')->\n\t\t\t\t\t\t\twhere('id',$ow->id)->update(['status','excecuted']);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$ows = DB::table('owarehouse')->\n\t\t\t\twhere('status','active')->get();\n })->daily();\n }", "public function everyMinute()\n {\n return $this->cron('* * * * * *');\n }", "function nhymxu_weekly_cron_job_recurrence( $schedules ) {\n\t$schedules['weekly'] = array(\n\t\t'display' => 'weekly',\n\t\t'interval' => 604800,\n\t);\n\treturn $schedules;\n}", "public function schedule(Schedule $schedule)\n {\n // $schedule->command(static::class)->everyMinute();\n }", "protected function schedule(Schedule $schedule)\n {\n// $schedule->command('inspire')->hourly();\n }", "function addCronTask()\n{\n require_once __DIR__.\"/models/SchedulesModel.php\";\n require_once __DIR__.\"/models/LogModel.php\";\n\n // Emojione client\n $Emojione = new \\Emojione\\Client(new \\Emojione\\Ruleset());\n\n\n // Get auto repost schedules\n $Schedules = new SchedulesModel;\n $Schedules->where(\"is_active\", \"=\", 1)\n ->where(\"schedule_date\", \"<=\", date(\"Y-m-d H:i:s\"))\n ->where(\"end_date\", \">=\", date(\"Y-m-d H:i:s\"))\n ->orderBy(\"last_action_date\", \"ASC\")\n ->setPageSize(5) // required to prevent server overload\n ->setPage(1)\n ->fetchData();\n\n if ($Schedules->getTotalCount() < 1) {\n // There is not any active schedule\n return false;\n }\n\n // Settings\n $settings = namespace\\settings();\n\n // Random delays between actions\n $random_delay = 0;\n if ($settings->get(\"data.random_delay\")) {\n $random_delay = rand(0, 3600); // up to an hour\n }\n\n // Speeds (action count per day)\n $default_speeds = [\n \"very_slow\" => 1,\n \"slow\" => 2,\n \"medium\" => 3,\n \"fast\" => 4,\n \"very_fast\" => 5,\n ];\n $speeds = $settings->get(\"data.speeds\");\n if (empty($speeds)) {\n $speeds = [];\n } else {\n $speeds = json_decode(json_encode($speeds), true);\n }\n $speeds = array_merge($default_speeds, $speeds);\n\n\n $as = [__DIR__.\"/models/ScheduleModel.php\", __NAMESPACE__.\"\\ScheduleModel\"];\n foreach ($Schedules->getDataAs($as) as $sc) {\n $Log = new LogModel;\n $Account = \\Controller::model(\"Account\", $sc->get(\"account_id\"));\n $User = \\Controller::model(\"User\", $sc->get(\"user_id\"));\n\n // Set default values for the log (not save yet)...\n $Log->set(\"user_id\", $User->get(\"id\"))\n ->set(\"account_id\", $Account->get(\"id\"))\n ->set(\"status\", \"error\");\n\n // Check the account\n if (!$Account->isAvailable() || $Account->get(\"login_required\")) {\n // Account is either removed (unexected, external factors)\n // Or login reqiured for this account\n // Deactivate schedule\n $sc->set(\"is_active\", 0)->save();\n\n // Log data\n $Log->set(\"data.error.msg\", \"Activity has been stopped\")\n ->set(\"data.error.details\", \"Re-login is required for the account.\")\n ->save();\n continue;\n }\n\n // Check the user\n if (!$User->isAvailable() || !$User->get(\"is_active\") || $User->isExpired()) {\n // User is not valid\n // Deactivate schedule\n $sc->set(\"is_active\", 0)->save();\n\n // Log data\n $Log->set(\"data.error.msg\", \"Activity has been stopped\")\n ->set(\"data.error.details\", \"User account is either disabled or expired.\")\n ->save();\n continue;\n }\n\n if ($User->get(\"id\") != $Account->get(\"user_id\")) {\n // Unexpected, data modified by external factors\n // Deactivate schedule\n $sc->set(\"is_active\", 0)->save();\n continue;\n }\n\n // Check user access to the module\n $user_modules = $User->get(\"settings.modules\");\n if (!is_array($user_modules) || !in_array(IDNAME, $user_modules)) {\n // Module is not accessible to this user\n // Deactivate schedule\n $sc->set(\"is_active\", 0)->save();\n\n // Log data\n $Log->set(\"data.error.msg\", \"Activity has been stopped\")\n ->set(\"data.error.details\", \"Module is not accessible to your account.\")\n ->save();\n continue;\n }\n\n // Calculate next schedule datetime...\n if (isset($speeds[$sc->get(\"speed\")]) && (int)$speeds[$sc->get(\"speed\")] > 0) {\n $speed = (int)$speeds[$sc->get(\"speed\")];\n $delta = round(86400/$speed) + $random_delay;\n } else {\n $delta = rand(1200, 21600); // 20 min - 6 hours\n }\n\n $next_schedule = date(\"Y-m-d H:i:s\", time() + $delta);\n if ($sc->get(\"daily_pause\")) {\n $pause_from = date(\"Y-m-d\").\" \".$sc->get(\"daily_pause_from\");\n $pause_to = date(\"Y-m-d\").\" \".$sc->get(\"daily_pause_to\");\n if ($pause_to <= $pause_from) {\n // next day\n $pause_to = date(\"Y-m-d\", time() + 86400).\" \".$sc->get(\"daily_pause_to\");\n }\n\n if ($next_schedule > $pause_to) {\n // Today's pause interval is over\n $pause_from = date(\"Y-m-d H:i:s\", strtotime($pause_from) + 86400);\n $pause_to = date(\"Y-m-d H:i:s\", strtotime($pause_to) + 86400);\n }\n\n if ($next_schedule >= $pause_from && $next_schedule <= $pause_to) {\n $next_schedule = $pause_to;\n }\n }\n $sc->set(\"schedule_date\", $next_schedule)\n ->set(\"last_action_date\", date(\"Y-m-d H:i:s\"))\n ->save();\n\n\n // Parse targets\n $targets = @json_decode($sc->get(\"target\"));\n if (is_null($targets)) {\n // Unexpected, data modified by external factors or empty targets\n // Deactivate schedule\n $sc->set(\"is_active\", 0)->save();\n continue;\n }\n\n if (count($targets) < 1) {\n // Couldn't find any target for the feed\n // Log data\n $Log->set(\"data.error.msg\", \"Couldn't find any target to search for the feed.\")\n ->save();\n return false;\n }\n\n // Select random target from the defined target collection\n $i = rand(0, count($targets) - 1);\n $target = $targets[$i];\n\n if (empty($target->type) || empty($target->id) ||\n !in_array($target->type, [\"hashtag\", \"location\", \"people\"])) \n {\n // Unexpected invalid target, \n // data modified by external factors\n $sc->set(\"is_active\", 0)->save();\n continue; \n }\n\n $Log->set(\"data.trigger\", $target);\n\n\n // Login into the account\n try {\n $Instagram = \\InstagramController::login($Account);\n } catch (\\Exception $e) {\n // Couldn't login into the account\n $Account->refresh();\n\n // Log data\n if ($Account->get(\"login_required\")) {\n $sc->set(\"is_active\", 0)->save();\n $Log->set(\"data.error.msg\", \"Activity has been stopped\");\n } else {\n $Log->set(\"data.error.msg\", \"Action re-scheduled\");\n }\n $Log->set(\"data.error.details\", $e->getMessage())\n ->save();\n\n continue;\n }\n\n\n // Logged in successfully\n $permissions = $User->get(\"settings.post_types\");\n $video_processing = isVideoExtenstionsLoaded() ? true : false;\n\n $acceptable_media_types = [];\n if (!empty($permissions->timeline_photo)) {\n $acceptable_media_types[] = \"1\"; // Photo\n }\n\n if (!empty($permissions->timeline_video)) {\n $acceptable_media_types[] = \"2\"; // Video\n }\n\n if (!empty($permissions->album_photo) || !empty($permissions->album_video)) {\n $acceptable_media_types[] = \"8\"; // Album\n }\n\n\n // Generate a random rank token.\n $rank_token = \\InstagramAPI\\Signatures::generateUUID();\n\n if ($target->type == \"hashtag\") {\n $hashtag = str_replace(\"#\", \"\", trim($target->id));\n if (!$hashtag) {\n continue;\n }\n\n try {\n $feed = $Instagram->hashtag->getFeed(\n $hashtag,\n $rank_token);\n } catch (\\Exception $e) {\n // Couldn't get instagram feed related to the hashtag\n // Log data\n $msg = $e->getMessage();\n $msg = explode(\":\", $msg, 2);\n $msg = isset($msg[1]) ? $msg[1] : $msg[0];\n\n $Log->set(\"data.error.msg\", \"Couldn't get the feed\")\n ->set(\"data.error.details\", $msg)\n ->save();\n continue;\n }\n\n $items = array_merge($feed->getRankedItems(), $feed->getItems());\n } else if ($target->type == \"location\") {\n try {\n $feed = $Instagram->location->getFeed(\n $target->id, \n $rank_token);\n } catch (\\Exception $e) {\n // Couldn't get instagram feed related to the location id\n // Log data\n $msg = $e->getMessage();\n $msg = explode(\":\", $msg, 2);\n $msg = isset($msg[1]) ? $msg[1] : $msg[0];\n\n $Log->set(\"data.error.msg\", \"Couldn't get the feed\")\n ->set(\"data.error.details\", $msg)\n ->save();\n continue;\n }\n\n $items = $feed->getItems();\n } else if ($target->type == \"people\") {\n try {\n $feed = $Instagram->timeline->getUserFeed($target->id);\n } catch (\\Exception $e) {\n // Couldn't get instagram feed related to the user id\n // Log data\n $msg = $e->getMessage();\n $msg = explode(\":\", $msg, 2);\n $msg = isset($msg[1]) ? $msg[1] : $msg[0];\n\n $Log->set(\"data.error.msg\", \"Couldn't get the feed\")\n ->set(\"data.error.details\", $msg)\n ->save();\n continue;\n }\n\n $items = $feed->getItems();\n }\n\n\n // Found feed item to repost\n $feed_item = null;\n\n // Shuffe items\n shuffle($items);\n\n // Iterate through the items to find a proper item to repost\n foreach ($items as $item) {\n if (!$item->getId()) {\n // Item is not valid\n continue;\n }\n\n if (!in_array($item->getMediaType(), $acceptable_media_types)) {\n // User has not got a permission to post this kind of the item\n continue;\n }\n\n if ($item->getMediaType() == 2 && !$video_processing) {\n // Video processing is not possible now,\n // FFMPEG is not configured\n continue;\n }\n\n if ($item->getMediaType() == 8) {\n $medias = $item->getCarouselMedia();\n $is_valid = true;\n foreach ($medias as $media) {\n if ($media->getMediaType() == 1 && empty($permissions->album_photo)) {\n // User has not got a permission for photo albums\n $is_valid = false;\n break; \n }\n\n if ($media->getMediaType() == 2 && empty($permissions->album_video)) {\n // User has not got a permission for video albums\n $is_valid = false;\n break; \n }\n\n if ($media->getMediaType() == 2 && !$video_processing) {\n // Video processing is not possible now,\n // FFMPEG is not configured\n $is_valid = false;\n break; \n }\n }\n\n if (!$is_valid) {\n // User can not re-post this album post because of the permission \n // (or absence of the ffmpeg video processing)\n continue;\n }\n }\n\n\n $_log = new LogModel([\n \"user_id\" => $User->get(\"id\"),\n \"account_id\" => $Account->get(\"id\"),\n \"original_media_code\" => $item->getCode(),\n \"status\" => \"success\"\n ]);\n\n if ($_log->isAvailable()) {\n // Already reposted this feed\n continue;\n }\n\n // Found the feed item to repost\n $feed_item = $item;\n break;\n }\n\n\n if (empty($feed_item)) {\n $Log->set(\"data.error.msg\", \"Couldn't find the new feed item to repost\")\n ->save();\n continue;\n }\n\n\n // Download the media\n $media = [];\n if ($feed_item->getMediaType() == 1 && $feed_item->getImageVersions2()->getCandidates()[0]->getUrl()) {\n $media[] = $feed_item->getImageVersions2()->getCandidates()[0]->getUrl();\n } else if ($feed_item->getMediaType() == 2 && $feed_item->getVideoVersions()[0]->getUrl()) {\n $media[] = $feed_item->getVideoVersions()[0]->getUrl();\n } else if ($feed_item->getMediaType() == 8) {\n foreach ($feed_item->getCarouselMedia() as $m) {\n if ($m->getMediaType() == 1 && $m->getImageVersions2()->getCandidates()[0]->getUrl()) {\n $media[] = $m->getImageVersions2()->getCandidates()[0]->getUrl();\n\n } else if ($m->getMediaType() == 2 && $m->getVideoVersions()[0]->getUrl()) {\n $media[] = $m->getVideoVersions()[0]->getUrl();\n }\n }\n }\n\n\n $downloaded_media = [];\n foreach ($media as $m) {\n $url_parts = parse_url($m);\n if (empty($url_parts['path'])) {\n continue;\n }\n\n $ext = strtolower(pathinfo($url_parts['path'], PATHINFO_EXTENSION));\n $filename = uniqid(readableRandomString(8).\"-\").\".\".$ext;\n $downres = file_put_contents(TEMP_PATH . \"/\". $filename, file_get_contents($m));\n if ($downres) {\n $downloaded_media[] = $filename;\n }\n }\n\n if (empty($downloaded_media)) {\n $Log->set(\"data.error.msg\", \"Couldn't download the media of the selected post\")\n ->save();\n continue;\n }\n\n $original_caption = \"\";\n if ($feed_item->getCaption()->getText()) {\n $original_caption = $feed_item->getCaption()->getText();\n }\n\n $caption = $sc->get(\"caption\");\n $variables = [\n \"{{caption}}\" => $original_caption,\n \"{{username}}\" => \"@\".$feed_item->getUser()->getUsername(),\n \"{{full_name}}\" => $feed_item->getUser()->getFullName() ?\n $feed_item->getUser()->getFullName() :\n \"@\".$feed_item->getUser()->getUsername()\n ];\n $caption = str_replace(\n array_keys($variables), \n array_values($variables), \n $caption);\n\n $caption = $Emojione->shortnameToUnicode($caption);\n if ($User->get(\"settings.spintax\")) {\n $caption = \\Spintax::process($caption);\n }\n\n $caption = mb_substr($caption, 0, 2200);\n\n\n\n // Try to repost\n try {\n if (count($downloaded_media) > 1) {\n $album_media = [];\n\n foreach ($downloaded_media as $m) {\n $ext = strtolower(pathinfo($m, PATHINFO_EXTENSION));\n\n $album_media[] = [\n \"type\" => in_array($ext, [\"mp4\"]) ? \"video\" : \"photo\",\n \"file\" => TEMP_PATH.\"/\".$m\n ];\n }\n\n $res = $Instagram->timeline->uploadAlbum($album_media, ['caption' => $caption]);\n } else {\n $m = $downloaded_media[0];\n $ext = strtolower(pathinfo($m, PATHINFO_EXTENSION));\n if (in_array($ext, [\"mp4\"])) {\n $res = $Instagram->timeline->uploadVideo(TEMP_PATH.\"/\".$m, [\"caption\" => $caption]);\n } else {\n $res = $Instagram->timeline->uploadPhoto(TEMP_PATH.\"/\".$m, [\"caption\" => $caption]);\n }\n }\n } catch (\\Exception $e) {\n $msg = $e->getMessage();\n $msg = explode(\":\", $msg, 2);\n $msg = isset($msg[1]) ? $msg[1] : $msg[0];\n\n $Log->set(\"data.error.msg\", __(\"An error occured during reposting the media.\"))\n ->set(\"data.error.details\", $msg)\n ->save();\n continue;\n }\n\n if (!$res->isOk()) {\n $Log->set(\"data.error.msg\", __(\"An error occured during reposting the media.\"))\n ->set(\"data.error.details\", __(\"Instagram didn't return the expected result.\"))\n ->save();\n continue;\n }\n\n\n // Reposted media succesfully\n // Save log\n $thumb = null;\n if (null !== $feed_item->getImageVersions2()) {\n $thumb = $feed_item->getImageVersions2()->getCandidates()[0]->getUrl();\n } else if (null !== $feed_item->getCarouselMedia()) {\n $thumb = $feed_item->getCarouselMedia()[0]->getImageVersions2()->getCandidates()[0]->getUrl();\n }\n\n\n $Log->set(\"data.grabbed\", [\n \"media_id\" => $feed_item->getId(),\n \"media_code\" => $feed_item->getCode(),\n \"media_type\" => $feed_item->getMediaType(),\n \"media_thumb\" => $thumb,\n \"user\" => [\n \"pk\" => $feed_item->getUser()->getPk(),\n \"username\" => $feed_item->getUser()->getUsername(),\n \"full_name\" => $feed_item->getUser()->getFullName()\n ]\n ]);\n\n $Log->set(\"data.reposted\", [\n \"upload_id\" => $res->getUploadId(),\n \"media_pk\" => $res->getMedia()->getPk(),\n \"media_id\" => $res->getMedia()->getId(),\n \"media_code\" => $res->getMedia()->getCode()\n ]);\n \n $Log->set(\"status\", \"success\")\n ->set(\"original_media_code\", $feed_item->getCode());\n \n\n if ($sc->get(\"remove_delay\") > 0) {\n $Log->set(\"is_removable\", 1)\n ->set(\"remove_scheduled\", date(\"Y-m-d H:i:s\", time() + $sc->get(\"remove_delay\")));\n }\n\n $Log->save();\n\n // Remove downloaded media files\n foreach ($downloaded_media as $m) {\n @unlink(TEMP_PATH.\"/\".$m);\n }\n }\n}", "function activate_zanders_cron(){\n\t$timestamp = wp_next_scheduled( 'zanders_ftp_download_inventory' );\n\t$status = false;\n\t//If $timestamp == false schedule daily backups since it hasn't been done previously\n\tif( $timestamp == false ){\n\t$status = wp_schedule_event( time(), 'quarterhour', 'zanders_ftp_download_inventory' );\n\t}\n\n\twp_die(); \n}", "static function activate_the_scheduler(){\n\t\tif(!wp_next_scheduled(self::hook)) {\n\t\t\twp_schedule_event( current_time( 'timestamp' ), self::interval, self::hook);\n\t\t}\n\t}", "function cron() {\n\t\t//look at the clock.\n\t\t$now = strtotime('now');\n\t\t\n\t\t//check for the hack\n\t\tif(Configure::read('debug') != 0 && isset($this->params['named']['time_machine'])){\n\t\t\t$now = strtotime($this->params['named']['time_machine']);\n\t\t}\n\t\t\n\t\t$this->Project->upgradeProjects($now);\n\t}", "public static function remove_crons() {\n\t\t$events = self::get_events();\n\n\t\tforeach ( $events as $event => $recurrence ) {\n\t\t\t$timestamp = wp_next_scheduled( $event );\n\t\t\tif ( false !== $timestamp ) {\n\t\t\t\twp_unschedule_event( $timestamp, $event );\n\t\t\t}\n\t\t}\n\t}", "protected function schedule(Schedule $schedule)\n\t{\n\t\t//Runs daily, every 5 minutes from 03:00\n\t\t$schedule->command(TranslationsBackup::class)->dailyAt('03:00'); // Dispatching a Job that will create a CSV File with the translations\n\t\t$schedule->command(RemoveCsvFiles::class, ['1', '--queue'])->dailyAt('03:05'); // Remove CSV Files older than x months (default 1) from /var/www/public/admin/reports/csv\n\t\t$schedule->command(DeleteOldTokens::class, ['1'])->dailyAt('03:10'); // Deletes the tokens that are older than x (default 1) days\n\t\t$schedule->command(DeleteUselessTransactions::class, ['3', '1000'])->dailyAt('03:15'); //Delete a number of created transactions older than 3 months\n\t\t//$schedule->command(DeleteExpiredClients::class, ['1000'])->dailyAt('03:20'); // TODO: This comes from V1, why do we do it? Clear expired maestro clients\n\n\t\t//Runs every hour\n\t\t$schedule->command(ActivateVouchers::class)->hourly(); // Activate vouchers that are inactive and startDate < now()\n\t\t$schedule->command(DeactivateVouchers::class)->hourly(); // Deactivate vouchers that are active and stopDate < now()\n\t\t//$schedule->command(ClearPasswordAttempts::class, ['3'])->hourly(); // Update reminder table where there are more than 2 attempts and updated < last x (default 3) hours\n\t\t//$schedule->command(ClearHheClients::class)->hourly(); // TODO: This comes from V1, why do we do it? Clear expired hhe clients\n\n\t\t//Runs every 10 minutes\n\t\t//$schedule->command(MerakiCheck::class)->everyTenMinutes(); // Update airhealth.hardware based on a xml taken from a URL from site_attribute having \"meraki_network\"\n\t\t//$schedule->command(DestroyGhostSessions::class, ['10'])->everyTenMinutes(); // 1. Cleaning up NULL Connectinfo_Start records; 2. Cleaning up NULL Connectinfo_Stop records and acctstoptime; 3. Removing records stale for x (default 10) minutes\n\t\t//$schedule->command(ShutdownIdle::class, ['20'])->everyTenMinutes(); // Shuts down sessions older than x (default 20) minutes where IP is 192.168.1.2 by adding a acctstoptime | Might be CC only\n\t\t//$schedule->command(UpdateGender::class)->everyTenMinutes(); // Checks the name with the names that we have in our DB to return the gender\n\t\t$schedule->command(UpdatePmsDynamicIp::class)->everyTenMinutes(); // Updates the IP of site attributes that have dynamic_ip enabled (for UPMS and Captive PMS)\n\n\t\t//Runs every minute\n\t\t$schedule->command(DeleteTransactionReceipts::class, ['2', '10000'])->everyMinute(); // Delete a number of transaction receipts older than x (default 2) months\n\n\t\t// These are the SSID scheduling and was never implemented (unless it was)\n//\t\t$schedule->command(RevertScheduledSsids::class, ['2'])->everyMinute(); //THIS MUST BE CHECKED AS I THINK IT'S NOT CORRECT\n//\t\t$schedule->command(ChangeScheduledSsids::class, ['2'])->everyMinute(); //THIS MUST BE CHECKED AS I THINK IT'S NOT CORRECT\n\t}", "public function maybeSchedule() {\n\t\t$scheduledTimestamp = wp_next_scheduled(static::$cronHook);\n\t\tif( !$scheduledTimestamp ) {\n\t\t\t$this->schedule();\n\t\t\treturn;\n\t\t}\n\n\t\t$cronJobs = _get_cron_array();\n\t\t$job = $cronJobs[$scheduledTimestamp][static::$cronHook];\n\n\t\t//If the schedule doesn't match, reschedule\n\t\tif( $job['schedule'] !== $this->get_option('schedule') ) {\n\t\t\t$this->unschedule();\n\t\t\t$this->schedule();\n\t\t}\n\t}", "public function addcron() {\r\n $os = php_uname('s');\r\n\r\n $file = APP_PATH . '/index.php?c=cron&a=apply';\r\n\r\n\r\n switch ($os) {\r\n case substr($os, 0, 7) == 'Windows':\r\n exec(\"schtasks /create /sc minute /mo 5 /tn 'update_quota' /tr . $file . /ru 'System'\");\r\n break;\r\n\r\n case substr($os, 0, 5) == 'Linux':\r\n switch ($_SERVER['SERVER_PORT']) {\r\n case 80:\r\n $url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];\r\n break;\r\n\r\n case 443:\r\n $url = 'https://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];\r\n break;\r\n\r\n default:\r\n $url = 'http://' . $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT'] . $_SERVER['REQUEST_URI'];\r\n }\r\n\r\n $cmdline = '*/5 * * * * /usr/bin/curl' . $url;\r\n\r\n exec('crontab -e <' . $cmdline);\r\n break;\r\n }\r\n }", "function wp_next_scheduled($hook, $args = array())\n {\n }", "public function run()\n {\n\t\t$temp = [\n\t\t\t\"08:00 - 09:20\", \"09:30 - 10:50\", \"11:00 - 12:20\", \"12:30 - 13:50\",\n\t\t\t\"14:00 - 15:20\", \"15:30 - 16:50\", \"17:00 - 18:20\", \"18:30 - 19:50\",\n\t\t\t\n\t\t\t\"08:00 - 09:00\", \"09:10 - 10:10\", \"10:20 - 11:20\", \"11:30 - 12:30\",\n\t\t\t\"12:40 - 13:40\", \"13:50 - 14:50\", \"15:00 - 16:00\", \"16:10 - 17:10\",\n\n\t\t\t\"08:00 - 08:45\", \"09:00 - 09:45\", \"10:00 - 10:45\", \"11:00 - 11:45\",\n\t\t\t\"12:00 - 12:45\", \"13:00 - 13:45\", \"14:00 - 14:45\", \"15:00 - 15:45\",\n\t\t];\n\n\t\tfor($i = 0; $i < 3; $i++){\n\t\t\tfor($j = 0; $j < 8; $j++){\n\t\t\t\tDB::table('time_schedule')->insert([\n\t\t\t\t\t'type' => $i+1,\n\t\t\t\t\t'lesson' => $j+1,\n\t\t\t\t\t'time' => $temp[$i*8 + $j],\n\t\t\t\t\t'institutionID' => 1\n\t\t\t\t]);\n\t\t\t}\n\t\t}\n }", "function test_schedule_event_single() {\n\t\t$hook = rand_str();\n\t\t$timestamp = strtotime('+1 hour');\n\n\t\twp_schedule_single_event( $timestamp, $hook );\n\t\t$this->assertEquals( $timestamp, wp_next_scheduled($hook) );\n\n\t\t// it's a non recurring event\n\t\t$this->assertEquals( '', wp_get_schedule($hook) );\n\n\t}" ]
[ "0.7533459", "0.70135266", "0.6973479", "0.6972712", "0.6958305", "0.69132274", "0.6864385", "0.68486017", "0.68134195", "0.680877", "0.6797549", "0.675945", "0.67537", "0.67249215", "0.6669015", "0.6666143", "0.659985", "0.65994537", "0.65959835", "0.65946186", "0.6575429", "0.64748037", "0.64645606", "0.6432899", "0.6428705", "0.64136326", "0.6383889", "0.636965", "0.633593", "0.62886834", "0.6268334", "0.6264761", "0.62485325", "0.6239493", "0.6219364", "0.6207051", "0.61714995", "0.6158809", "0.6141514", "0.6133775", "0.6116181", "0.61085486", "0.6076642", "0.6054937", "0.6048312", "0.6007174", "0.59961504", "0.5986795", "0.5982613", "0.59779847", "0.5963092", "0.59505606", "0.5937693", "0.5924858", "0.5924858", "0.5924858", "0.5924858", "0.5924858", "0.5924858", "0.5924858", "0.5924858", "0.5924858", "0.5924858", "0.5924858", "0.5924858", "0.5885011", "0.5878665", "0.5868294", "0.58630943", "0.58630943", "0.5850466", "0.58289164", "0.5825228", "0.5811993", "0.5802489", "0.58013225", "0.57940966", "0.5791827", "0.5784931", "0.5777437", "0.5758025", "0.5751885", "0.5748781", "0.574754", "0.5736633", "0.57311237", "0.5727124", "0.57163197", "0.5705343", "0.56609523", "0.56575537", "0.56396216", "0.56316644", "0.56279695", "0.56265575", "0.56218684", "0.562034", "0.5605767", "0.5605697", "0.55901027" ]
0.65782285
20
Create a hook that fires once a day
function create_daily_hook() { //wp_clear_scheduled_hook( 'efpsenddailyhook' ); if (!wp_next_scheduled('efpsenddailyhook')) { wp_schedule_event(time(), 'daily', 'efpsenddailyhook'); //wp_schedule_event(time(), 'minutes_5', 'efpsenddailyhook'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mt_flickr_activate() {\n wp_schedule_event(time(), 'hourly', 'mt_flickr');\n}", "function registry()\n\t{\n\t\tif ( !wp_next_scheduled( 'admin_action_delibera_cron_action' ) ) // if already been scheduled, will return a time \n\t\t{\n\t\t\twp_schedule_event(time(), 'hourly', 'admin_action_delibera_cron_action');\n\t\t}\n\t}", "function onActivation(){\n\tadd_option( 'stackoverflowUser', '', '', 'yes' );\n\tadd_option( 'StackoverflowData', '', '', 'yes' );\n\n\tif (! wp_next_scheduled ( 'getStackoverflowDataCron' )) {\n\t\twp_schedule_event(time(), 'daily', 'getStackoverflowDataCron');\n\t}\n}", "function reminder_setup_schedule()\n{\n if (!wp_next_scheduled('reminder_hourly_event')) {\n wp_schedule_event(time(), 'hourly', 'reminder_hourly_event');\n }\n}", "function wp_next_scheduled($hook, $args = array())\n {\n }", "function install_cron(){\n wp_schedule_event(\n time(),\n 'cuentadigital_interval',\n 'cuentadigital_cron_hook'\n );\n }", "function wwt_register_cron() {\r\n wp_clear_scheduled_hook('wwt_send_email_with_log');\r\n $firstDayNextMonth = date('Y-m-d 03:00:00', strtotime('first day of next month'));\r\n wp_schedule_event(strtotime($firstDayNextMonth), 'monthly', 'wwt_send_email_with_log');\r\n\r\n return $firstDayNextMonth;\r\n}", "public function hook();", "public static function action_wp() {\n $enable_reminders = self::send_domain_reminders();\n $schedule = wp_get_schedule( self::$scheduled_event_hook );\n $next_occurence = wp_next_scheduled( self::$scheduled_event_hook );\n if( !$schedule && !$next_occurence && $enable_reminders ) {\n wp_schedule_event( time(), 'weekly', self::$scheduled_event_hook );\n return;\n \t}\n \tif( $schedule !== false && !$enable_reminders ) {\n \twp_unschedule_event( $next_occurence, self::$scheduled_event_hook );\n \treturn;\n \t}\n }", "function schedule_expiry() {\n\t\tif ( ! wp_next_scheduled( 'github_embed_cron' ) ) {\n\t\t\t$frequency = apply_filters( 'github_embed_cache_frequency', 'daily' );\n\t\t\twp_schedule_event( time(), $frequency, 'github_embed_cron' );\n\t\t}\n\t}", "public function cron()\n {\n wp_schedule_event(time(), 'hourly', array($this, 'generate'));\n }", "function asmcron_init_cronjob()\n{\n // check that it hasn't been scheduled yet using our own custom hook\n if( !wp_next_scheduled( 'asmcron_sendmail_hook' ) )\n {\n // if it hasn't, schedule it\n // https://codex.wordpress.org/Function_Reference/wp_schedule_event\n // \"$timestamp\" is for the first time you want the event to occur\n // \"$recurrence\" is for how often the event should reoccur\n // \"$hook\" is for the action hook to execute\n wp_schedule_event( time(), 'hourly', 'asmcron_sendmail_hook' );\n }\n}", "static function activate_the_scheduler(){\n\t\tif(!wp_next_scheduled(self::hook)) {\n\t\t\twp_schedule_event( current_time( 'timestamp' ), self::interval, self::hook);\n\t\t}\n\t}", "function nhymxu_weekly_cron_job() {\n\tif ( ! wp_next_scheduled( '' ) ) {\n\t\twp_schedule_event( time(), 'weekly', '' );\n\t}\n}", "public function trigger($hook) {\n }", "public static function register_event() {\n\t\tif ( ! wp_next_scheduled( 'learn_press_schedule_cleanup_temp_users' ) ) {\n\t\t\twp_schedule_event( time(), 'every_three_minutes', 'learn_press_schedule_cleanup_temp_users' );\n\t\t}\n\t}", "function cal_install()\n{\n register_hook('plugin_settings', 'addon/cal/cal.php', 'cal_addon_settings');\n register_hook('plugin_settings_post', 'addon/cal/cal.php', 'cal_addon_settings_post');\n}", "function goodrds_schedule_cron() {\n\t if ( !wp_next_scheduled( 'goodrds_cronjob' ) )\n\t wp_schedule_event(time(), 'daily', 'goodrds_cronjob');\n\t}", "function add_custom_cron() {\n\tif ( ! wp_next_scheduled( 'custom_cron_action' ) ) {\n\t\twp_schedule_event( current_time( 'timestamp' ), 'hourly', 'custom_cron_action' );\n\t}\n}", "public function preUpdate()\n {\n \t$this->dateFound = new \\DateTime(\"now\");\n }", "public function twiceDaily()\n {\n return $this->cron('0 1,13 * * * *');\n }", "function book_lib_activate_plugin(){\n \n if(version_compare(get_bloginfo('version'),'4.5','<')){\n \n wp_die(__('You must update your wordpress version before using '));\n \n }\n \n \n wp_schedule_event(\n time(),\n 'daily',\n 'wpl_book_daily_hook'\n );\n \n}", "function wp_schedule_update_checks()\n {\n }", "public function BuildDailySpoil()\n {\n\n }", "public function onPreUpdate()\n {\n $this->fechaUltimaModificacion = new \\DateTime(\"now\");\n }", "public static function initiate_schedules() {\n\t\t/** Clearing scheduled hook */\n\t\tif ( wp_next_scheduled( 'xl_maybe_track_usage_scheduled' ) ) {\n\t\t\twp_clear_scheduled_hook( 'xl_maybe_track_usage_scheduled' );\n\t\t}\n\n\t\tif ( ! wp_next_scheduled( 'xl_new_maybe_track_usage_scheduled' ) ) {\n\t\t\twp_schedule_event( current_time( 'timestamp' ), 'weekly_xl', 'xl_new_maybe_track_usage_scheduled' );\n\t\t}\n\t}", "function it_exchange_custom_url_tracking_addon_increment_custom_url_click() {\n\n\t// Don't add if using default permalinks\n\tif ( ! get_option( 'permalink_structure' ) )\n\t\treturn;\n\n\t$post_id = get_query_var( 'p' );\n\t$custom_url = get_query_var( 'it_exchange_custom_url' );\n\t$custom_url = empty( $custom_url ) ? false : urldecode( $custom_url );\n\n\t// Set cookie on first time today\n\tif ( ! empty( $custom_url ) && empty( $_COOKIE['it-exchange-custom-url-' . sanitize_title_with_dashes( $custom_url )] ) ) {\n\t\tsetcookie( 'it-exchange-custom-url-' . sanitize_title_with_dashes( $custom_url ), true, time()+3600*24 );\n\t\t$first_time = true;\n\t}\n\n\tif ( ! empty( $first_time) && ! empty( $post_id ) && ! empty( $custom_url ) ) {\n\t\t$custom_url_clicks = get_post_meta( $post_id, '_it_exchange_custom_url_clicks', true );\n\t\t$custom_url_clicks[$custom_url] = empty( $custom_url_clicks[$custom_url] ) ? 1 : $custom_url_clicks[$custom_url] + 1;\n\t\tupdate_post_meta( $post_id, '_it_exchange_custom_url_clicks', $custom_url_clicks );\n\t}\n\tunset( $custom_url );\n}", "private function brandNewDay() {\n\t\twfDebugLog( __METHOD__, \"\\tA brand new day....refreshing pathway of the day\\n\" );\n\t\t$this->findFreshPathway();\n\t}", "protected function hook1(): void { }", "public static function wpapp_clear_scheduled_events() {\n\t\twp_clear_scheduled_hook( 'wpcd_wordpress_file_watcher' );\n\t\twp_clear_scheduled_hook( 'wpcd_wordpress_deferred_actions_for_server' );\n\t\twp_clear_scheduled_hook( 'wpcd_wordpress_deferred_actions_for_apps' );\n\t}", "public function run()\n {\n $now = Carbon::now();\n }", "function activate_zanders_cron(){\n\t$timestamp = wp_next_scheduled( 'zanders_ftp_download_inventory' );\n\t$status = false;\n\t//If $timestamp == false schedule daily backups since it hasn't been done previously\n\tif( $timestamp == false ){\n\t$status = wp_schedule_event( time(), 'quarterhour', 'zanders_ftp_download_inventory' );\n\t}\n\n\twp_die(); \n}", "function run_function_once($functionname, $timelastupdatedcheck = 0) {\n\t$lastupdated = datalist_get($functionname);\n\tif ($lastupdated) {\n\t\t$lastupdated = (int) $lastupdated;\n\t} elseif ($lastupdated !== false) {\n\t\t$lastupdated = 0;\n\t} else {\n\t\t// unable to check datalist\n\t\treturn false;\n\t}\n\tif (is_callable($functionname) && $lastupdated <= $timelastupdatedcheck) {\n\t\t$functionname();\n\t\tdatalist_set($functionname,time());\n\t\treturn true;\n\t} else {\n\t\treturn false;\n\t}\n}", "function tick_handler()\n{\n echo \"called\\n\";\n}", "public static function wpapp_schedule_events() {\n\t\t// setup temporary script deletion.\n\t\twp_clear_scheduled_hook( 'wpcd_wordpress_file_watcher' );\n\t\twp_schedule_event( time(), 'every_minute', 'wpcd_wordpress_file_watcher' );\n\n\t\t// setup deferred instance actions schedule.\n\t\twp_clear_scheduled_hook( 'wpcd_wordpress_deferred_actions_for_server' );\n\t\twp_schedule_event( time(), 'every_minute', 'wpcd_wordpress_deferred_actions_for_server' );\n\n\t\t// setup repeated actions schedule.\n\t\twp_clear_scheduled_hook( 'wpcd_wordpress_deferred_actions_for_apps' );\n\t\twp_schedule_event( time(), 'every_minute', 'wpcd_wordpress_deferred_actions_for_apps' );\n\n\t\t// @TODO does not work because the cron schedule is not registered.\n\t\t// wp_schedule_event( time(), 'every-10-seconds', \"wpcd_wordpress_repeated_actions_for_apps\" );\n\t}", "public function maybe_create_scheduled_event()\n {\n }", "protected function twiceDaily(callable $callback)\n\t{\n\t\tif(date('h:i', $this->timestamp) === '12:00') call_user_func($callback);\n\t}", "abstract function HookEvents();", "function test_schedule_event_single() {\n\t\t$hook = rand_str();\n\t\t$timestamp = strtotime('+1 hour');\n\n\t\twp_schedule_single_event( $timestamp, $hook );\n\t\t$this->assertEquals( $timestamp, wp_next_scheduled($hook) );\n\n\t\t// it's a non recurring event\n\t\t$this->assertEquals( '', wp_get_schedule($hook) );\n\n\t}", "public function onDaysAdd()\n\t{\n\t\t$this->onTaskAdd();\n\t}", "public function onPreUpdate()\n {\n $this->dateUpdated = new DateTime('now');\n }", "public function onPreUpdate()\n {\n $this->dateUpdated = new DateTime('now');\n }", "public function wp_cron_scheduled_check()\n {\n }", "function testResetDateBeforeStartDate() {\n Counter::findOne(1)->reset(Carbon::now()->subDays(6)->toDateString());\n }", "protected function activateHook()\n {\n app()->singleton(\n 'Hook',\n \\Hook::class\n );\n }", "function log_event($action) {\n\t$now = new DateTime();\t\n\tfile_put_contents(WP_PLUGIN_DIR.\"/StandardsReader/cron_log.txt\", \"|\" . $now->format('Y-m-d H:i:s') . \" \". $action . \"\\r\\n\", FILE_APPEND | LOCK_EX);\n}", "function set_expiry_date( $post_id ) {\n\n // See if an event_end_date or event_date has been entered and if not then end the function\n if( get_post_meta( $post_id, $key = 'event_date', $single = true ) ) {\n\n // Get the end date of the event in unix grenwich mean time\n $acf_date = get_post_meta( $post_id, $key = 'event_date', $single = true );\n\n } elseif ( get_post_meta( $post_id, $key = 'event_date', $single = true ) ) {\n\n // Get the start date of the event in unix grenwich mean time\n $acf_date = get_post_meta( $post_id, $key = 'event_date', $single = true );\n\n } else {\n\n // No start or end date. Lets delete any CRON jobs related to this post and end the function.\n wp_clear_scheduled_hook( 'make_past_event', array( $post_id ) );\n return;\n\n }\n\n // Convert our date to the correct format\n // Start with the standard string format\n $unix_acf_date = strtotime( $acf_date );\n $gmt_date = gmdate( 'Ymd', $unix_acf_date );\n $unix_gmt_date = strtotime( $gmt_date );\n\n // Get the number of seconds in a day\n $delay = 24 * 60 * 60; //24 hours * 60 minutes * 60 seconds\n\n // Add 1 day to the end date to get the day after the event\n $day_after_event = $unix_gmt_date + $delay;\n\n // Temporarily remove from 'Past Event' category\n wp_remove_object_terms( $post_id, 'past', 'event_status' );\n\n // If a CRON job exists with this post_id them remove it\n wp_clear_scheduled_hook( 'make_past_event', array( $post_id ) );\n // Add the new CRON job to run the day after the event with the post_id as an argument\n wp_schedule_single_event( $day_after_event , 'make_past_event', array( $post_id ) );\n\n}", "static public function activate()\n {\n do_action( \"sc_wpfmp_enable_wp_cron\" ); // Go enable cron\n }", "public static function zip_downloads_activation() {\n\t\twp_schedule_event( time(), 'hourly', 'zip_downloads_hourly_event' );\n\t}", "function triggerOnce($event, $data=null) {\n return Event::triggerOnce($event, $data);\n }", "public function on_activation() {\n\n\t\tif ( ! wp_next_scheduled( 'bp_fma_remove_featured' ) ) {\n\t\t\twp_schedule_event( time(), 'hourly', 'bp_fma_remove_featured' );\n\t\t}\n\t}", "function testResetDateGreaterThanToday() {\n Counter::findOne(1)->reset(Carbon::now()->addDays(1)->toDateString());\n }", "function vizadplug_cron_activation() {\n\tif( !wp_next_scheduled( 'mytrius-sync' ) ) { \n\t wp_schedule_event( time(), 'mytriuscooldown', 'mytrius-sync' ); \n\t}\n}", "function classiera_ad_expiry_schedule() {\r\n\tif ( ! wp_next_scheduled( 'classiera_ad_expiry_event' ) ) {\r\n\t\twp_schedule_event( time(), 'hourly', 'classiera_ad_expiry_event');\r\n\t}\r\n}", "public function onPreUpdate()\n {\n $this->lastUpdatedDateTime = new \\DateTime(\"now\");\n }", "static function cron() {\n\t\tself::starter();\n\t\tself::ender();\n\t}", "function etherpadlite_cron () {\n return true;\n}", "function activateSchedules()\n{\n\tforeach( glob( __DIR__ . '/actions/*.php') as $hook ) {\n\n\t\t$hook = explode('-', pathinfo( $hook )['filename']);\n\t\t$name = $hook[0];\n\t\t$schedule = $hook[1];\n\t\t$timestamp = wp_next_scheduled( $name );\n\n\t\tif ( ! $timestamp || $timestamp < time() ) {\n\t\t\twp_schedule_event( time(), 'schedule' . $schedule, $name );\n\t\t}\n\t}\n}", "public function dcms_activation_plugin(){\n\n // Default\n if ( ! get_option('dcms_last_modified_file') ){\n update_option('dcms_last_modified_file', 0);\n }\n\n // Create table\n $db = new Database();\n $db->create_table();\n $db->create_view(); //optimization\n\n // // Create cron\n if( ! wp_next_scheduled( 'dcms_cron_hook' ) ) {\n wp_schedule_event( current_time( 'timestamp' ), 'dcms_interval', 'dcms_cron_hook' );\n }\n\n }", "function randomstrayquotes_cron () {\n return true;\n}", "public function init_archive(){\n add_action('save_post', array($this, 'update_is_upcoming'));\n add_action('check_upcoming_is_post_upcoming', array($this, 'check_upcoming_is_post_upcoming'));\n if ( wp_next_scheduled( 'check_upcoming_is_post_upcoming' ) === false ) {\n wp_schedule_event( time(), 'daily', 'check_upcoming_is_post_upcoming' );\n }\n }", "public static function scheduleUpdate()\n {\n $next_refresh = wp_next_scheduled('amwscpf_update_feeds_hook');\n if (!$next_refresh)\n wp_schedule_event(time(), 'refresh_interval', 'amwscpf_update_feeds_hook');\n }", "public static function activation() {\n\t\t\tmonstroid_dashboard_updater()->shedule_updates();\n\t\t}", "public function onTick() {\r\n\r\n }", "function r_activate_plugin(){\r\n\tif( version_compare( get_bloginfo( 'version' ), '4.5', '<' ) ){\r\n\t\twp_die( __( 'You must update WordPress to use this plugin', 'salones' ) );\r\n\t}\r\n\r\n\tsalones_init();\r\n\tflush_rewrite_rules();\r\n\r\n\tglobal $wpdb;\r\n\r\n\t$createSQL = \"CREATE TABLE `\" . $wpdb->prefix . \"salones_ratings` (`ID` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,`salones_id` BIGINT(20) UNSIGNED NOT NULL,`rating` FLOAT(3,2) UNSIGNED NOT NULL,`user_ip` VARCHAR(32) NOT NULL,\tPRIMARY KEY (`ID`)\t) ENGINE=InnoDB \" . $wpdb->get_charset_collate() . \" AUTO_INCREMENT=1;\";\r\n\r\n\trequire_once( ABSPATH . '/wp-admin/includes/upgrade.php' );\r\n\tdbDelta( $createSQL );\r\n\r\n\twp_schedule_event(time(),'daily',\t'r_daily_salones_hook');\r\n}", "function bigbluebuttonbn_cron () {\n return true;\n}", "function roshine_cron () {\n return true;\n}", "protected function _fcpoAddShadowBasketCheckDate() {\n $oDb = $this->_oFcpoHelper->fcpoGetDb();\n $oSession = $this->getSession();\n $sSessionId = $oSession->getId();\n\n $sQuery = \"\n UPDATE \n fcposhadowbasket\n SET\n \tFCPOCHECKED=NOW()\n WHERE\n FCPOSESSIONID=\".$oDb->quote($sSessionId).\"\n LIMIT 1\n \";\n $oDb->Execute($sQuery);\n }", "function blog_tools_daily_cron_hook($hook, $type, $return_value, $params){\r\n\t\tif(blog_tools_use_advanced_publication_options()){\r\n\t\t\t$dbprefix = elgg_get_config(\"dbprefix\");\r\n\t\t\t$publication_id = add_metastring(\"publication_date\");\r\n\t\t\t$expiration_id = add_metastring(\"expiration_date\");\r\n\t\t\t\r\n\t\t\t$time = elgg_extract(\"time\", $params, time());\r\n\t\t\t\r\n\t\t\t$publish_options = array(\r\n\t\t\t\t\"type\" => \"object\",\r\n\t\t\t\t\"subtype\" => \"blog\",\r\n\t\t\t\t\"limit\" => false,\r\n\t\t\t\t\"joins\" => array(\r\n\t\t\t\t\t\"JOIN \" . $dbprefix . \"metadata mdtime ON e.guid = mdtime.entity_guid\",\r\n\t\t\t\t\t\"JOIN \" . $dbprefix . \"metastrings mstime ON mdtime.value_id = mstime.id\"\r\n\t\t\t\t),\r\n\t\t\t\t\"metadata_name_value_pairs\" => array(\r\n\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\"name\" => \"status\",\r\n\t\t\t\t\t\t\"value\" => \"draft\"\r\n\t\t\t\t\t)\r\n\t\t\t\t),\r\n\t\t\t\t\"wheres\" => array(\"((mdtime.name_id = \" . $publication_id . \") AND (DATE(mstime.string) = DATE(NOW())))\")\r\n\t\t\t);\r\n\t\t\t\r\n\t\t\t$unpublish_options = array(\r\n\t\t\t\t\"type\" => \"object\",\r\n\t\t\t\t\"subtype\" => \"blog\",\r\n\t\t\t\t\"limit\" => false,\r\n\t\t\t\t\"joins\" => array(\r\n\t\t\t\t\t\"JOIN \" . $dbprefix . \"metadata mdtime ON e.guid = mdtime.entity_guid\",\r\n\t\t\t\t\t\"JOIN \" . $dbprefix . \"metastrings mstime ON mdtime.value_id = mstime.id\"\r\n\t\t\t\t),\r\n\t\t\t\t\"metadata_name_values_pairs\" => array(\r\n\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\"name\" => \"status\",\r\n\t\t\t\t\t\t\"value\" => \"published\"\r\n\t\t\t\t\t)\r\n\t\t\t\t),\r\n\t\t\t\t\"wheres\" => array(\"((mdtime.name_id = \" . $expiration_id . \") AND (DATE(mstime.string) = DATE(NOW())))\")\r\n\t\t\t);\r\n\t\t\t\r\n\t\t\t// ignore access\r\n\t\t\t$ia = elgg_set_ignore_access(true);\r\n\t\t\t\r\n\t\t\t// get unpublished blogs that need to be published\r\n\t\t\tif($entities = elgg_get_entities_from_metadata($publish_options)){\r\n\t\t\t\tforeach ($entities as $entity){\r\n\t\t\t\t\t// add river item\r\n\t\t\t\t\tadd_to_river(\"river/object/blog/create\", \"create\", $entity->getOwnerGUID(), $entity->getGUID());\r\n\t\t\t\t\t\r\n\t\t\t\t\t// set correct time created\r\n\t\t\t\t\t$entity->time_created = $time;\r\n\t\t\t\t\t\r\n\t\t\t\t\t// publish blog\r\n\t\t\t\t\t$entity->status = \"published\";\r\n\t\t\t\t\t\r\n\t\t\t\t\t// notify owner\r\n\t\t\t\t\tnotify_user($entity->getOwnerGUID(), \r\n\t\t\t\t\t\t\t\t$entity->site_guid, \r\n\t\t\t\t\t\t\t\telgg_echo(\"blog_tools:notify:publish:subject\"), \r\n\t\t\t\t\t\t\t\telgg_echo(\"blog_tools:notify:publish:message\", array(\r\n\t\t\t\t\t\t\t\t\t$entity->title,\r\n\t\t\t\t\t\t\t\t\t$entity->getURL()\r\n\t\t\t\t\t\t\t\t))\r\n\t\t\t\t\t);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// save everything\r\n\t\t\t\t\t$entity->save();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// get published blogs that need to be unpublished\r\n\t\t\tif($entities = elgg_get_entities_from_metadata($unpublish_options)){\r\n\t\t\t\tforeach ($entities as $entity){\r\n\t\t\t\t\t// remove river item\r\n\t\t\t\t\telgg_delete_river(array(\r\n\t\t\t\t\t\t\"object_guid\" => $entity->getGUID(),\r\n\t\t\t\t\t\t\"action_type\" => \"create\",\r\n\t\t\t\t\t));\r\n\t\t\t\t\t\r\n\t\t\t\t\t// unpublish blog\r\n\t\t\t\t\t$entity->status = \"draft\";\r\n\t\t\t\t\t\r\n\t\t\t\t\t// notify owner\r\n\t\t\t\t\tnotify_user($entity->getOwnerGUID(),\r\n\t\t\t\t\t\t\t\t$entity->site_guid,\r\n\t\t\t\t\t\t\t\telgg_echo(\"blog_tools:notify:expire:subject\"),\r\n\t\t\t\t\t\t\t\telgg_echo(\"blog_tools:notify:expire:message\", array(\r\n\t\t\t\t\t\t\t\t\t$entity->title,\r\n\t\t\t\t\t\t\t\t\t$entity->getURL()\r\n\t\t\t\t\t\t\t\t))\r\n\t\t\t\t\t);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// save everything\r\n\t\t\t\t\t$entity->save();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// reset access\r\n\t\t\telgg_set_ignore_access($ia);\r\n\t\t}\r\n\t}", "protected function getTimeTracker() {}", "public static function activate() {\n\t\tadd_option( 'wpr_future_events' );\n\t}", "public function todayOn() {\n\t\t// Add all cron timestamp in $t\n\t\t$x = self::getCron();\n\t\t$t = [];\n\t\tforeach ($x['cron'] as $cron) {\n\t\t\tif ($cron['active']) $t[] = self::getNextCron($cron['raw']);\n\t\t}\n\t\t// Add all at events of type A in $t\n\t\t$x = shell_exec('atq');\n\t\tif (count($x) >= 1) {\n\t\t\t$x = explode(\"\\n\",trim($x));\n\t\t\tforeach ($x as $at) {\n\t\t\t\t$at = explode(\"\\t\", $at);\n\t\t\t\t$at[1] = str_replace(' www-data', '', $at[1]);\n\t\t\t\t$d = substr($at[1],0,-1);\n\t\t\t\tif (substr($at[1],-1) == 'A') { // type audio on\n\t\t\t\t\t$t[] = strtotime($d);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// get timestamp that fits in the next 24h\n\t\tif (count($t) >=1) {\n\t\t\t$t = min($t);\n\t\t\t\n\t\t\tif (($t > time()) && ($t <= time()+86400)) { // next cron is within the next 24hours\n\t\t\t\t$str = date(\"H:i\",$t);\n\t\t\t}\n\t\t\telse $str = \"--:--\";\n\t\t}\n\t\telse $str = \"--:--\";\n\t\tFlight::json(array('Time' => $str));\n\t}", "private function public_hooks()\n\t{\n\t}", "function cron_deactivation() {\r\n\twp_clear_scheduled_hook('my_task_hook');\r\n}", "public function once(Timer $timer);", "public function onPreUpdate()\n {\n $this->updated = new \\DateTime(\"now\");\n }", "function wp_cache_set_sites_last_changed()\n {\n }", "function bpsPro_schedule_PFWAP_check() {\n$options = get_option('bulletproof_security_options_pfw_autopilot');\n$bpsPFWAPCronCheck = wp_get_schedule('bpsPro_PFWAP_check');\n$killit = '';\n\t\n\tif ( ! get_option('bulletproof_security_options_pfw_autopilot' ) || ! $options['bps_pfw_autopilot_cron'] || $options['bps_pfw_autopilot_cron'] == '' ) {\n\t\treturn $killit;\n\t}\n\t\n\tif ( $options['bps_pfw_autopilot_cron'] == 'On' ) {\n\t\n\tif ( $options['bps_pfw_autopilot_cron_frequency'] == '1' ) {\n\tif ( $bpsPFWAPCronCheck == 'minutes_5' || $bpsPFWAPCronCheck == 'minutes_10' || $bpsPFWAPCronCheck == 'minutes_15' || $bpsPFWAPCronCheck == 'minutes_30' || $bpsPFWAPCronCheck == 'minutes_60' ) {\n\t\twp_clear_scheduled_hook('bpsPro_PFWAP_check');\n\t}\n\t\n\tif ( ! wp_next_scheduled( 'bpsPro_PFWAP_check' ) ) {\n\t\twp_schedule_event( time(), 'minutes_1', 'bpsPro_PFWAP_check');\n\t}\n\t}\n\t\n\tif ( $options['bps_pfw_autopilot_cron_frequency'] == '5' ) {\n\tif ( $bpsPFWAPCronCheck == 'minutes_1' || $bpsPFWAPCronCheck == 'minutes_10' || $bpsPFWAPCronCheck == 'minutes_15' || $bpsPFWAPCronCheck == 'minutes_30' || $bpsPFWAPCronCheck == 'minutes_60' ) {\n\t\twp_clear_scheduled_hook('bpsPro_PFWAP_check');\n\t}\n\t\n\tif ( ! wp_next_scheduled('bpsPro_PFWAP_check' ) ) {\n\t\twp_schedule_event( time(), 'minutes_5', 'bpsPro_PFWAP_check' );\n\t}\n\t}\n\t\n\tif ( $options['bps_pfw_autopilot_cron_frequency'] == '10' ) {\n\tif ( $bpsPFWAPCronCheck == 'minutes_1' || $bpsPFWAPCronCheck == 'minutes_5' || $bpsPFWAPCronCheck == 'minutes_15' || $bpsPFWAPCronCheck == 'minutes_30' || $bpsPFWAPCronCheck == 'minutes_60' ) {\n\t\twp_clear_scheduled_hook('bpsPro_PFWAP_check');\n\t}\n\t\n\tif ( ! wp_next_scheduled('bpsPro_PFWAP_check' ) ) {\n\t\twp_schedule_event( time(), 'minutes_10', 'bpsPro_PFWAP_check' );\n\t}\n\t}\n\t\n\tif ( $options['bps_pfw_autopilot_cron_frequency'] == '15' ) {\n\tif ( $bpsPFWAPCronCheck == 'minutes_1' || $bpsPFWAPCronCheck == 'minutes_5' || $bpsPFWAPCronCheck == 'minutes_10' || $bpsPFWAPCronCheck == 'minutes_30' || $bpsPFWAPCronCheck == 'minutes_60' ) {\n\t\twp_clear_scheduled_hook('bpsPro_PFWAP_check');\n\t}\n\t\n\tif ( ! wp_next_scheduled('bpsPro_PFWAP_check' ) ) {\n\t\twp_schedule_event( time(), 'minutes_15', 'bpsPro_PFWAP_check' );\n\t}\n\t}\n\t\n\tif ( $options['bps_pfw_autopilot_cron_frequency'] == '30' ) {\n\tif ( $bpsPFWAPCronCheck == 'minutes_1' || $bpsPFWAPCronCheck == 'minutes_5' || $bpsPFWAPCronCheck == 'minutes_10' || $bpsPFWAPCronCheck == 'minutes_15' || $bpsPFWAPCronCheck == 'minutes_60' ) {\n\t\twp_clear_scheduled_hook('bpsPro_PFWAP_check');\n\t}\n\t\n\tif ( ! wp_next_scheduled('bpsPro_PFWAP_check' ) ) {\n\t\twp_schedule_event( time(), 'minutes_30', 'bpsPro_PFWAP_check' );\n\t}\n\t}\n\n\tif ( $options['bps_pfw_autopilot_cron_frequency'] == '60' ) {\n\tif ( $bpsPFWAPCronCheck == 'minutes_1' || $bpsPFWAPCronCheck == 'minutes_5' || $bpsPFWAPCronCheck == 'minutes_10' || $bpsPFWAPCronCheck == 'minutes_15' || $bpsPFWAPCronCheck == 'minutes_30' ) {\n\t\twp_clear_scheduled_hook('bpsPro_PFWAP_check');\n\t}\n\t\n\tif ( ! wp_next_scheduled('bpsPro_PFWAP_check' ) ) {\n\t\twp_schedule_event( time(), 'minutes_60', 'bpsPro_PFWAP_check' );\n\t}\n\t}\n\n\t}\n\telseif ( $options['bps_pfw_autopilot_cron'] == 'Off' ) { \n\t\twp_clear_scheduled_hook('bpsPro_PFWAP_check');\n\t}\n}", "function wp_doing_cron()\n {\n }", "private function cronMinute()\n {\n $timedRecords = $this->app['storage.event_processor.timed'];\n if ($timedRecords->isDuePublish()) {\n $this->notify('Publishing timed records');\n $timedRecords->publishTimedRecords();\n }\n if ($timedRecords->isDueHold()) {\n $this->notify('De-publishing timed records');\n $timedRecords->holdExpiredRecords();\n }\n }", "public function schedule_event() {\n\t\tif ( ! current_user_can( 'manage_options' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$event_name = $this->get_event_name();\n\t\t$timestamp = wp_next_scheduled( $event_name );\n\n\t\tif ( $timestamp ) {\n\t\t\treturn;\n\t\t}\n\n\t\twp_schedule_event( time(), $this->get_interval(), $event_name );\n\t}", "function test_schedule_event() {\n\t\t$hook = rand_str();\n\t\t$recur = 'hourly';\n\t\t$timestamp = strtotime('+1 hour');\n\n\t\twp_schedule_event( $timestamp, $recur, $hook );\n\t\t// it's scheduled for the right time\n\t\t$this->assertEquals( $timestamp, wp_next_scheduled($hook) );\n\t\t// it's a recurring event\n\t\t$this->assertEquals( $recur, wp_get_schedule($hook) );\n\t}", "public function everyHour() {\n $this->cron('0 * * * *');\n }", "function drush_lightcron_run_cron_hooks() {\n $modules = lightcron_parse_arguments(func_get_args(), FALSE);\n foreach ($modules as $module) {\n if (module_exists($module)) {\n $callback = $module . '_cron';\n if (function_exists($callback)) {\n $callback();\n drush_log(dt('!module (!date): cron hook executed.', array('!module' => $module, '!date' => date('Y-m-d H:i:s O'))), 'ok');\n }\n else {\n drush_log(dt('!module does not have a cron hook.', array('!module' => $module)), 'error');\n }\n }\n else {\n drush_log(dt('!module does not exist i.e. not installed and enabled.', array('!module' => $module)), 'error');\n }\n }\n}", "public function register()\n {\n // maybe something, one day\n }", "public function flagCacheWithNewTalkNotification() {\n\t\t$this->cache->set( $this->getTalkNotificationCacheKey(), '1', 86400 );\n\t}", "public function onPreUpdate()\n {\n $this->updated = new \\DateTime('now');\n }", "function cicleinscription_cron () {\n return true;\n}", "protected function weekly(callable $callback)\n\t{\n\t\tif(date('D', $this->timestamp) === 'Sun' && date('H:i', $this->timestamp) === $this->runAt) call_user_func($callback);\n\t}", "function run_resource_check() {\n\tlog_event('resource check begun');\n\t$int = get_option('check_interval ',24);\n\tif ($int > 0) {\n\t\twp_schedule_single_event( time() + 3600 * $int, 'standards_resource_check' );\n\t\tlog_event('next check in ' . $int . ' hours');\n\t}\n\tresource_import(true);\n\t\n}", "function cron_add_weekly( $schedules ) {\n $schedules['weekly'] = array(\n 'interval' => 604800,\n 'display' => __( 'Once Weekly' )\n );\n return $schedules;\n}", "public function isFresh($timestamp = null);", "public function actionCronHourly()\n {\n switch (date('H')) {\n default: echo \"Nothing to run\\n\";\n }\n echo \"Done!\\n\";\n }", "function test_schedule_event_single_args() {\n\t\t$hook = rand_str();\n\t\t$timestamp = strtotime('+1 hour');\n\t\t$args = array(rand_str());\n\n\t\twp_schedule_single_event( $timestamp, $hook, $args );\n\t\t// this returns the timestamp only if we provide matching args\n\t\t$this->assertEquals( $timestamp, wp_next_scheduled($hook, $args) );\n\t\t// these don't match so return nothing\n\t\t$this->assertEquals( false, wp_next_scheduled($hook) );\n\t\t$this->assertEquals( false, wp_next_scheduled($hook, array(rand_str())) );\n\n\t\t// it's a non recurring event\n\t\t$this->assertEquals( '', wp_get_schedule($hook, $args) );\n\t}", "function wpmu_update_blogs_date()\n {\n }", "public function init_hooks() {\n\t}", "public function populateTimestamp()\n {\n $this->exists = true;\n $this->timestamp = 1;\n }", "public function onInitExpire(InitEvent $event) {\n $GLOBALS['feeds_test_events'][] = (__METHOD__ . ' called');\n }", "public function add_hooks()\n {\n }", "public function add_hooks()\n {\n }" ]
[ "0.66076547", "0.65334123", "0.64303184", "0.6228967", "0.6181297", "0.6170939", "0.6150037", "0.6089733", "0.60431165", "0.60244954", "0.60030043", "0.5953607", "0.5854749", "0.5795318", "0.57884014", "0.5788378", "0.5769988", "0.57637674", "0.5760107", "0.5727464", "0.56611323", "0.5655464", "0.5590114", "0.5550832", "0.5544739", "0.55276436", "0.55216455", "0.5507638", "0.5496692", "0.548917", "0.5485673", "0.5483743", "0.5462204", "0.5450238", "0.5446517", "0.5446343", "0.5443384", "0.54351676", "0.5433588", "0.54034376", "0.53879017", "0.53879017", "0.5372979", "0.53641886", "0.53457445", "0.5342316", "0.5338725", "0.5332107", "0.5330678", "0.53281087", "0.532289", "0.53135777", "0.5310766", "0.52992815", "0.5292052", "0.5291158", "0.52838284", "0.52798986", "0.52790743", "0.5277428", "0.5274783", "0.52742416", "0.5270021", "0.526576", "0.5257784", "0.52524364", "0.5249451", "0.5238869", "0.52307224", "0.5226544", "0.522427", "0.52229106", "0.52134395", "0.52079916", "0.52000153", "0.51978934", "0.5197053", "0.5196062", "0.5193384", "0.5172054", "0.51542085", "0.5152148", "0.51511055", "0.5146862", "0.51461905", "0.51434344", "0.5139058", "0.51314986", "0.5131121", "0.51293564", "0.51275736", "0.5126192", "0.5124789", "0.51247054", "0.5123935", "0.511915", "0.5118041", "0.5117842", "0.5117356", "0.5117356" ]
0.7686421
0
This function creates a db table if it does not already exist, or updates it if version is higher. The table is for storing personnummer uppslag
function init_uppslag_table() { $version = 8; global $wpdb; $installed_ver = get_option("ep_uppslag"); if ($installed_ver != $version) { require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); $table_name = $wpdb->prefix . 'ep_uppslag'; $sql = "CREATE TABLE `" . $table_name . "` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `ssn` varchar(32) DEFAULT NULL COMMENT 'Personnummer', `status` int(2) NOT NULL DEFAULT '1', `ip` varchar(64) NOT NULL DEFAULT '', `guid` varchar(128) DEFAULT NULL, `email` varchar(64) DEFAULT NULL, `fname` varchar(64) DEFAULT NULL, `ename` varchar(64) DEFAULT NULL, `address` varchar(64) DEFAULT NULL, `zip` varchar(16) DEFAULT NULL, `city` varchar(64) DEFAULT NULL, `phone` varchar(32) DEFAULT NULL, `mobile` varchar(32) DEFAULT NULL, `create_date` datetime DEFAULT NULL, `updated_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;"; dbDelta($sql); //echo $sql; update_option("ep_uppslag", $version); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createDBTable() {\n\t\tglobal $wpdb;\n\n\t\tif ( $wpdb->get_var( \"SHOW TABLES LIKE '\" . $this->debug_table . \"'\" ) !== $this->debug_table ) {\n\t\t\t$sql = 'CREATE TABLE `' . $this->debug_table . '` (\n\t\t\t\t`id` INT(9) NOT NULL AUTO_INCREMENT PRIMARY KEY,\n\t\t\t\t`timestamp` TIMESTAMP NOT NULL,\n\t\t\t\t`blog` INT(9) NOT NULL,\n\t\t\t\t`message` text NOT NULL\n\t\t\t);';\n\t\t\trequire_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n\t\t\tdbDelta( $sql );\n\t\t}\n\t}", "public function create_or_upgrade_tables() {\n\t\tif ( is_multisite() ) {\n\t\t\t$this->create_table( $this->ms_table );\n\t\t}\n\n\t\t$this->create_table( $this->table );\n\t}", "function create_ROMP_settings_Db_table(){\n\t\tob_start();\n\t\t$table_name = $this->wpdb->prefix . 'romp_settings';\n \t$charset_collate = $this->wpdb->get_charset_collate();\n\n\t\t$sql = \"CREATE TABLE $table_name (\n\t\t\t\t`romp_crm_id` TEXT NOT NULL ,\n\t\t\t\t`romp_cf_link` TEXT NOT NULL\n\t\t\t) $charset_collate;\";\n\n\t\trequire_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n\t\tdbDelta( $sql );\n\t}", "private function createDatabase($version = 0) {\n\t\t$sql = 'CREATE TABLE IF NOT EXISTS '.$this->tablePrefix.UserAgentThemeSwitcherData::USERAGENTS_TABLE.' (';\n\t\t$sql .= '`id` INT NOT NULL AUTO_INCREMENT,';\n\t\t$sql .= '`useragent` VARCHAR(255) NOT NULL,';\n\t\t$sql .= 'PRIMARY KEY (`id`)';\n\t\t$sql .= ') ENGINE=MYISAM;';\n\t\t$this->connection->get_results($sql);\n\n\t\t$sql = 'CREATE TABLE IF NOT EXISTS '.$this->tablePrefix.UserAgentThemeSwitcherData::BROWSERS_TABLE.' (';\n\t\t$sql .= '`code` varchar(20) NOT NULL,';\n\t\t$sql .= '`theme` varchar(50) DEFAULT NULL,';\n\t\t$sql .= 'PRIMARY KEY (`code`)';\n\t\t$sql .= ') ENGINE=MyISAM;';\n\t\t$this->connection->get_results($sql);\n\n\t\tadd_option(UserAgentThemeSwitcherData::DEBUG_KEY, 'false');\n\t\tadd_option(UserAgentThemeSwitcherData::VERSION_KEY, $version);\n\t}", "function upgradeTableDb( $from_version )\n {\n // $from_version is the current version of this game database, in numerical form.\n // For example, if the game was running with a release of your game named \"140430-1345\",\n // $from_version is equal to 1404301345\n\n // Example:\n// if( $from_version <= 1404301345 )\n// {\n// $sql = \"ALTER TABLE xxxxxxx ....\";\n// self::DbQuery( $sql );\n// }\n// if( $from_version <= 1405061421 )\n// {\n// $sql = \"CREATE TABLE xxxxxxx ....\";\n// self::DbQuery( $sql );\n// }\n// // Please add your future database scheme changes here\n//\n//\n\n\n }", "public function create_table() {\n\n\t\tglobal $wpdb;\n\n\t\t$table_name \t = $this->table_name;\n\t\t$charset_collate = $wpdb->get_charset_collate();\n\n\t\t$query = \"CREATE TABLE {$table_name} (\n\t\t\tid bigint(10) NOT NULL AUTO_INCREMENT,\n\t\t\tname text NOT NULL,\n\t\t\tdate_created datetime NOT NULL,\n\t\t\tdate_modified datetime NOT NULL,\n\t\t\tstatus text NOT NULL,\n\t\t\tical_hash text NOT NULL,\n\t\t\tPRIMARY KEY id (id)\n\t\t) {$charset_collate};\";\n\n\t\trequire_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n\t\tdbDelta( $query );\n\n\t}", "private function checkOrCreateTable(){\n $this->pdo->query(\"CREATE TABLE IF NOT EXISTS k_UserDean(wp_id BIGINT UNSIGNED PRIMARY KEY, dean_id BIGINT UNSIGNED);\");\n }", "private function createDBSchemaTable()\n\t\t{\n\t\t\t\\System\\Base\\ApplicationBase::getInstance()->dataAdapter->addTableSchema(new \\System\\DB\\TableSchema(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'name' => __DB_SCHEMA_VERSION_TABLENAME__),\n\t\t\t\t\tarray(),\n\t\t\t\t\tarray(new \\System\\DB\\ColumnSchema(array(\n\t\t\t\t\t\t'name' => 'version',\n\t\t\t\t\t\t'table' => __DB_SCHEMA_VERSION_TABLENAME__,\n\t\t\t\t\t\t'type' => 'decimal',\n\t\t\t\t\t\t'primaryKey' => true,\n\t\t\t\t\t\t'length' => '6,2',\n\t\t\t\t\t\t'notNull' => true,\n\t\t\t\t\t\t'real' => true)))));\n\t\t}", "function table_creation(){\n\t\tglobal $wpdb;\n\t\t\t$table = $wpdb->prefix.'wiki';\n\t\t\t$sql = \"CREATE TABLE IF NOT EXISTS `$table`(\n\t\t\t\t`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n\t\t\t\t`post_id` bigint(20) NOT NULL,\n\t\t\t\t`author_id` bigint(20) NOT NULL,\t\n\t\t\t\t`post_content` longtext collate utf8_general_ci,\n\t\t\t\t`percent` int(100),\n\t\t\t\t`matched_keys` longtext collate utf8_general_ci,\n\t\t\t\t`time` TIMESTAMP,\t\t\t\t\n\t\t\t\tPRIMARY KEY(id)\n\t\t\t\t\n\t\t\t\t)\";\n\t\t\t//loading the dbDelta function manually\n\t\t\tif(!function_exists('dbDelta')) :\n\t\t\t\trequire_once(ABSPATH.'wp-admin/includes/upgrade.php');\n\t\t\tendif;\n\t\t\tdbDelta($sql);\n\t}", "function reset_versions() {\n\t\tcalldpc_method('database.droptable use versions');\n \t //$sSQL = \"drop table if exists versions\";\n //$db->Execute($sSQL);\n\t\t$sSQL = \"create table versions \" .\n \"(\" .\n\t \"recid integer auto_increment primary key,\" .\n\t \"id varchar(255),\" .\n\t \"section varchar(64),\" .\t\t\t\t\t\n\t \"cdate varchar(64),\" .\t\t\t\t\t\n\t \"mkey varchar(255),\" .\t\t\t\t\t\n\t \"type varchar(64),\" .\n\t \"ver varchar(64),\" .\t\t\t\t\t\t\t\t\t\t\t\n\t \"data text,\" .\n\t \"comments text,\" .\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t \"UNIQUE (id)\" .\t\t\t\t\t\n \")\";\n //$db->Execute($sSQL); \n\t\tcalldpc_method_use_pointers('database.exesql',array(0=>&$sSQL));\t\t\n\t\t\t\n\t\tsetInfo(\" Reset successfully!\");\n }", "public function create_table() {\n\n\t\tglobal $wpdb;\n\n\t\trequire_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n\n\t\tif ( $wpdb->get_var( \"SHOW TABLES LIKE '$this->table_name'\" ) == $this->table_name ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$sql = \"CREATE TABLE \" . $this->table_name . \" (\n\t\tid bigint(20) NOT NULL AUTO_INCREMENT,\n\t\tuser_id bigint(20) NOT NULL,\n\t\tusername varchar(50) NOT NULL,\n\t\temail varchar(50) NOT NULL,\n\t\tname mediumtext NOT NULL,\n\t\tproduct_count bigint(20) NOT NULL,\n\t\tsales_value mediumtext NOT NULL,\n\t\tsales_count bigint(20) NOT NULL,\n\t\tstatus mediumtext NOT NULL,\n\t\tnotes longtext NOT NULL,\n\t\tdate_created datetime NOT NULL,\n\t\tPRIMARY KEY (id),\n\t\tUNIQUE KEY email (email),\n\t\tKEY user (user_id)\n\t\t) CHARACTER SET utf8 COLLATE utf8_general_ci;\";\n\n\t\tdbDelta( $sql );\n\n\t\tupdate_option( $this->table_name . '_db_version', $this->version );\n\t}", "private function createDBTables(){\n\t\tif (!$this['db']->getSchemaManager()->tablesExist('bookings')){\n\t\t\t$this['db']->executeQuery(\"CREATE TABLE bookings (\n\t\t\t\tid INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,\n\t\t\t\tfirstName VARCHAR(40) NOT NULL,\n\t\t\t\tlastName VARCHAR(40) NOT NULL,\n\t\t\t\tphone VARCHAR(10) NOT NULL,\n\t\t\t\temail VARCHAR(20) DEFAULT NULL,\n\t\t\t\tbirthday DATE NOT NULL,\n\t\t\t\tstartDate DATE NOT NULL,\n\t\t\t\tendDate DATE NOT NULL,\n\t\t\t\tarrivalTime TIME DEFAULT NULL,\n\t\t\t\tadditionalInformation TEXT,\n\t\t\t\tnrOfPeople INT NOT NULL,\n\t\t\t\tpayingMethod VARCHAR(10) NOT NULL\n\t\t\t\t);\");\n\t\t}\n\t}", "static function upgrade_db() {\r\n\t\tglobal $wpdb, $mf_timeline_db_version;\r\n\t\t$options = get_option( 'mf_timeline' );\r\n\r\n\t\tif( $options['db_version'] < $mf_timeline_db_version ) {\r\n\t\t\tswitch( true ) {\r\n\t\t\t\t/**\r\n\t\t\t\t * Version: 2\r\n\t\t\t\t * Purpose: Added author column to the stories table.\r\n\t\t\t\t * @author Matt Fairbrass\r\n\t\t\t\t */\r\n\t\t\t\tcase ($options['db_version'] < 2) :\r\n\t\t\t\t\t$table = $wpdb->prefix . 'mf_timeline_stories';\r\n\t\t\t\t\t\r\n\t\t\t\t\t$sql = \"ALTER TABLE {$table} ADD `story_author` BIGINT( 20 ) UNSIGNED NOT NULL DEFAULT '0',\r\n\t\t\t\t\tADD INDEX ( `story_author` )\";\r\n\t\t\t\t\t\r\n\t\t\t\t\tif( $wpdb->query($sql) !== false ) {\r\n\t\t\t\t\t\t$options['db_version'] = 2;\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tupdate_option( 'mf_timeline', $options );\r\n\t\t}\r\n\t}", "function create_table(){\n global $wpdb;\n\n require_once(ABSPATH . \"wp-admin\" . '/includes/upgrade.php');\n\n $table_name = $wpdb->base_prefix . $this->table;\n\n $sql = \"CREATE TABLE IF NOT EXISTS $table_name (\n id bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n post_id bigint(20) unsigned,\n blog_id mediumint(9) NOT NULL,\n post_author bigint(20) unsigned,\n post_date datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,\n post_date_gmt datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,\n post_content longtext,\n post_title text,\n post_excerpt text,\n post_status varchar(20) DEFAULT 'post_status',\n post_type varchar(20) DEFAULT 'post',\n post_modified_gmt datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,\n post_modified datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,\n guid varchar(255),\n UNIQUE KEY id (id)\n );\";\n\n dbDelta( $sql );\n }", "public function create_table()\n\t{\n\t\tglobal $wpdb;\n\n\t\t$charset_collate = '';\n\t\tif ( version_compare( mysql_get_server_info(), '4.1.0', '>=' ) )\n\t\t{\n\t\t\tif ( ! empty( $wpdb->charset ) )\n\t\t\t{\n\t\t\t\t$charset_collate = \"DEFAULT CHARACTER SET {$wpdb->charset}\";\n\t\t\t}//end if\n\n\t\t\tif ( ! empty( $wpdb->collate ) )\n\t\t\t{\n\t\t\t\t$charset_collate .= \" COLLATE {$wpdb->collate}\";\n\t\t\t}//end if\n\t\t}//end if\n\n\t\trequire_once ABSPATH . 'wp-admin/upgrade-functions.php';\n\t\t$sql = \"\n\t\t\tCREATE TABLE {$this->table} (\n\t\t\t\t`id` int unsigned NOT NULL auto_increment,\n\t\t\t\t`date` DATE NOT NULL,\n\t\t\t\t`property` varchar(20) NOT NULL,\n\t\t\t\t`url` varchar(255) NOT NULL,\n\t\t\t\t`post_id` int NOT NULL DEFAULT 0,\n\t\t\t\t`views` mediumint unsigned NOT NULL DEFAULT 0,\n\t\t\t\t`added_timestamp` timestamp DEFAULT 0,\n\t\t\t\tPRIMARY KEY (id),\n\t\t\t\tKEY `date` (`date`),\n\t\t\t\tKEY `post_id` (`post_id`),\n\t\t\t\tKEY `url` (`url`)\n\t\t\t) ENGINE=InnoDB $charset_collate\n\t\t\";\n\n\t\tdbDelta( $sql );\n\t}", "function bdetector_activate (){\n global $wpdb ;\n $table_name = $wpdb->prefix . \"bdetector\";\n if ($wpdb->get_var('SHOW TABLES LIKE '. $table_name) != $table_name)\n {\n $sql = 'CREATE TABLE '. $table_name. '(\n id INTEGER (10) UNSIGNED AUTO_INCREMENT,\n hit_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP ,\n user_agent VARCHAR (255) ,\n PRIMARY KEY (id) )';\n require_once(ABSPATH. 'wp-admin/includes/upgrade.php');\n dbDelta($sql);\n add_option('bdetector_database_version','1.0');\n }\n}", "function lti_maybe_create_db() {\n\tglobal $wpdb;\n\n\tget_lti_hash(); // initialise the remote login hash\n\n\t$wpdb->ltitable = $wpdb->base_prefix . 'lti';\n\tif ( lti_site_admin() ) {\n\t\t$created = 0;\n\t\tif ( $wpdb->get_var(\"SHOW TABLES LIKE '{$wpdb->ltitable}'\") != $wpdb->ltitable ) {\n\t\t\t$wpdb->query( \"CREATE TABLE IF NOT EXISTS `{$wpdb->ltitable}` (\n\t\t\t\t`id` bigint(20) NOT NULL auto_increment,\n\t\t\t\t`consumer_key` varchar(255) NOT NULL,\n\t\t\t\t`secret` varchar(255) NOT NULL,\n\t\t\t\t`active` tinyint(4) default '1',\n\t\t\t\tPRIMARY KEY (`id`)\n\t\t\t);\" );\n\t\t\t$created = 1;\n\t\t}\n\t\tif ( $created ) {\n\t\t\t?> <div id=\"message\" class=\"updated fade\"><p><strong><?php _e( 'LTI database table created.', 'wordpress-mu-lti' ) ?></strong></p></div> <?php\n\t\t}\n\t}\n\n}", "private function create_table($table) {\n\t global $wpdb;\n\t require_once (ABSPATH . 'wp-admin/includes/upgrade.php');\n\t switch ($table) {\n\t \n\t case \"$wpdb->prefix\" . \"tr_ratting_data\" :\n\t $sql = \"CREATE TABLE `\" . $wpdb->prefix . \"tr_ratting_data`(\n\t\t\t\t\t\t `id` INT(200) NOT NULL AUTO_INCREMENT,\n\t\t\t\t\t\t `owner_id` INT(100) NOT NULL COMMENT 'references a char from chars table',\n\t\t\t\t\t\t `date_acquired` DATETIME NOT NULL COMMENT 'when char gets its ticks ingame',\n\t\t\t\t\t\t `amount` FLOAT NOT NULL,\n `system_id` INT(20) NULL,\n `npc_kills` INT(20) NULL COMMENT 'total amount of npc kills within the tick',\n `ref_id` VARCHAR(100) NOT NULL,\n\t\t\t\t\t\t PRIMARY KEY(`id`),\n UNIQUE (`ref_id`)\n\t\t\t\t\t\t) ENGINE = InnoDB;\";\n\t \n\t dbDelta ( $sql );\n\t break;\n\t case \"$wpdb->prefix\" . \"tr_characters\" :\n\t $sql = \"CREATE TABLE `\" . $wpdb->prefix . \"tr_characters`(\n\t\t\t\t\t\t `id` INT(200) NOT NULL AUTO_INCREMENT,\n `corp_id` INT(10) NOT NULL,\n\t\t\t\t\t\t `owner_id` INT(100) NOT NULL,\n\t\t\t\t\t\t `ownerName2` VARCHAR(200) NOT NULL,\n\t\t\t\t\t\t PRIMARY KEY(`id`),\n\t\t\t\t\t\t UNIQUE (`owner_id`)\n\t\t\t\t\t\t) ENGINE = InnoDB;\";\n\t \n\t dbDelta ( $sql );\n\t break;\n\t case \"$wpdb->prefix\" . \"tr_structures_income\" :\n\t $sql = \"CREATE TABLE `\" . $wpdb->prefix . \"tr_structures_income`(\n\t\t\t\t\t\t `id` INT(250) NOT NULL AUTO_INCREMENT,\n\t\t\t\t\t\t `ref_id` VARCHAR(100) NOT NULL,\n\t\t\t\t\t\t `date_acquired` DATETIME NOT NULL,\n\t\t\t\t\t\t `amount` FLOAT NOT NULL,\n `ref_type` VARCHAR(100) NOT NULL,\n\t\t\t\t\t\t PRIMARY KEY(`id`)\n\t\t\t\t\t\t) ENGINE = InnoDB;\";\n\t \n\t dbDelta ( $sql );\n\t break;\n\t \n\t case \"$wpdb->prefix\" . \"tr_pvp_chars_kills\" :\n\t $sql = \"CREATE TABLE `\" . $wpdb->prefix . \"tr_pvp_chars_kills`(\n\t\t\t\t\t\t `id` INT(250) NOT NULL AUTO_INCREMENT,\n\t\t\t\t\t\t `char_id` VARCHAR(250) NOT NULL,\n\t\t\t\t\t\t `corp_id` VARCHAR(250) NOT NULL,\n\t\t\t\t\t\t `kill_id` VARCHAR(225) NOT NULL,\n\t\t\t\t\t\t `timestamp` DATETIME NOT NULL,\n\t\t\t\t\t\t PRIMARY KEY(`id`),\n\t\t\t\t\t\t UNIQUE KEY `character_kills` (`char_id`,`kill_id`)\n\t\t\t\t\t\t) ENGINE = InnoDB;\";\n\t \n\t dbDelta ( $sql );\n\t break;\n\t case \"$wpdb->prefix\" . \"tr_users_chars\" :\n\t $sql = \"CREATE TABLE `\" . $wpdb->prefix . \"tr_users_chars`(\n\t\t\t\t\t\t`uc_id` INT(10) NOT NULL AUTO_INCREMENT ,\n\t\t\t\t\t\t`user_id` INT(10) NOT NULL ,\n\t\t\t\t\t\t`char_id` INT(10) NOT NULL ,\n\t\t\t\t\t\t`is_main_char` INT(1) NOT NULL ,\n\t\t\t\t\t\tPRIMARY KEY (`uc_id`)\n\t\t\t\t\t\t) ENGINE = InnoDB;\";\n\t \n\t dbDelta ( $sql );\n\t break;\n\t }\n\t}", "public function create_tables() {\n\t\tglobal $wpdb;\n\t\t$charset_collate = $wpdb->get_charset_collate();\n\n\t\t$schema = \"CREATE TABLE IF NOT EXISTS `{$wpdb->prefix}cn_addressbooks` ( \n\t\t\t`id` INT NOT NULL AUTO_INCREMENT , `name` VARCHAR(100) NOT NULL , `address` VARCHAR(255) NULL , \n\t\t\t`phone` VARCHAR(30) NULL , `created_by` BIGINT(20) NOT NULL , `created_at` DATETIME NOT NULL , \n\t\t\tPRIMARY KEY (`id`)) \n\t\t\t$charset_collate\";\n\n\t\tif ( ! function_exists( 'dbDelta') ) {\n\t\t\trequire_once ABSPATH . 'wp-admin/includes/upgrade.php';\n\t\t}\n\n\t\tdbDelta( $schema );\n\t}", "function lp_create_table(){\r\n\tglobal $wpdb;\r\n\t$charset_collation = $wpdb->get_charset_collate();\r\n\t$table_name = $wpdb->prefix.'like_post';\r\n\r\n\tif( $wpdb->get_var(\"show tables like '$table_name'\") != $table_name){\r\n\t\t$sql = \"CREATE TABLE $table_name (\r\n\t\t\t\t\tID \t\t\t\tINT(9)\t\t\t\t\t\t\t\tNOT NULL AUTO_INCREMENT,\r\n\t\t\t\t\tPOST_ID\t\t\tINT(9) \t\t\t\t\t\t\t\tNOT NULL,\r\n\t\t\t\t\tSTATUS \t\t\tINT(1) \t\t\t\t\t\t\t\tNOT NULL,\r\n\t\t\t\t\tLIKE_TIME\t\tDATE\t\t\t\t\t\t\t\tNOT NULL,\r\n\t\t\t\t\tPRIMARY KEY (ID)\r\n\t\t\t\t) $charset_collation;\";\r\n\r\n\t\trequire_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\r\n\t\tdbDelta($sql);\r\n\t}\r\n\tadd_option('lp_showing_year','');\r\n\r\n}", "function myplugin_update_db_check()\n\t{\n\n\n\t\t// Get the Current DB and check against this verion\n\t\t$currentDBversion = get_option('agreedMarkingDB_version');\n\t\t$thisDBversion = $this->DBversion;\n\n\t\tif($thisDBversion>$currentDBversion)\n\t\t{\n\n\t\t\t$this->createTables();\n\t\t\tupdate_option('agreedMarkingDB_version', $thisDBversion);\n\t\t}\n\t\t//$this->createTables(); // Testing\n\n\t}", "public function migrate()\n {\n $db = new \\SQLite3(\"ATM.db\");\n\n $query = \"CREATE TABLE IF NOT EXISTS \" . $this->table_name . \" \";\n $fields = array();\n\n foreach($this->fields as $name=>$type) {\n $fields[] = \"$name $type\";\n }\n\n $query .= \"(\" . implode(\", \", $fields) . \")\";\n\n $db->exec($query);\n }", "public function create_table_config(){\n $sql = \" CREATE TABLE IF NOT EXISTS {$this->table_config} (\n `id` varchar(100),\n `day` varchar(50) DEFAULT NULL,\n `range` varchar(50) DEFAULT NULL,\n `qty` smallint DEFAULT 0,\n `type` varchar(50) DEFAULT NULL,\n `order` smallint DEFAULT 0,\n PRIMARY KEY (`id`)\n )\";\n\n require_once(ABSPATH . 'wp-admin/includes/upgrade.php');\n dbDelta($sql);\n }", "static function install_db() {\r\n\t\tglobal $wpdb;\r\n\t\t$options = get_option( 'mf_timeline' );\r\n\t\t$table = $wpdb->prefix . 'mf_timeline_stories';\r\n\t\t\r\n\t\t$sql = \"CREATE TABLE IF NOT EXISTS `{$table}` (\r\n\t\t\t`story_id` mediumint(9) NOT NULL AUTO_INCREMENT,\r\n\t\t\t`story_title` text NOT NULL,\r\n\t\t\t`story_content` text,\r\n\t\t\t`timeline_date` date NOT NULL DEFAULT '0000-00-00',\r\n\t\t\t`featured` int(1) NOT NULL DEFAULT '0',\r\n\t\t\t`story_modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',\r\n\t\t\tPRIMARY KEY (`story_id`),\r\n\t\t\tKEY `timeline_date` (`timeline_date`,`story_modified`)\r\n\t\t) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;\";\r\n\t\t\r\n\t\trequire_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\r\n\t\tdbDelta( $sql );\r\n\t\t\r\n\t\t// Update the user's db version to version 1 and run the upgrade script.\r\n\t\tif( !isset( $options['db_version'] ) || empty( $options['db_version'] ) ) {\r\n\t\t\t$options['db_version'] = 1;\r\n\t\t\tupdate_option( 'mf_timeline', $options );\r\n\r\n\t\t\tself::upgrade_db();\r\n\t\t}\r\n\t}", "function ois_install_database() {\r\n global $wpdb;\r\n\r\n $table_name = $wpdb->prefix . 'optinskin';\r\n\r\n // create the table.\r\n // this table is specifically for storing impressions and submissions data.\r\n\r\n $sql = \"CREATE TABLE $table_name (\r\n skin int(4),\r\n ts TIMESTAMP DEFAULT CURRENT_TIMESTAMP,\r\n post int(4),\r\n submission int(2));\";\r\n //echo $sql;\r\n require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\r\n dbDelta( $sql );\r\n}", "function standardsreader_db_install() {\n\tglobal $wpdb;\n\tglobal $sr_db_version;\n\tdefine( 'DIEONDBERROR', true );\n\t$wpdb->show_errors();\n\t\n\t$main_table_name = $wpdb->prefix . 'standardsreader_maps';\n\t$competency_table = $wpdb->prefix . 'standardsreader_map_comps';\n\t\n\t\n\t$charset_collate = $wpdb->get_charset_collate();\n\n\t$sql = \"CREATE TABLE $main_table_name (\n\t\tid mediumint(9) NOT NULL AUTO_INCREMENT,\n\t\tuser_id mediumint(9) NOT NULL,\n\t\tset_name tinytext NOT NULL,\n\t\tset_description text DEFAULT '' NOT NULL,\n\t\tset_public tinyint(1) DEFAULT 1 NOT NULL,\n\t\tset_deleted tinyint(1) DEFAULT 0 NOT NULL,\n\t\tset_created text DEFAULT '' NOT NULL,\n\t\tUNIQUE KEY id (id)\n\t) $charset_collate;\";\n\t\n\t$compSql = \"CREATE TABLE $competency_table (\n\t\tmap_id mediumint(9) NOT NULL,\n\t\tcomp_slug text DEFAULT '' NOT NULL, \n\t\torder_comps mediumint(9) NOT NULL\n\t) $charset_collate;\";\n\n\trequire_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n\t$r1 = dbDelta( $sql );\n\t$r2 = dbDelta($compSql);\n\t\n\techo $wpdb->print_error();\n\n\tadd_option( 'standardsreader_db_version', $sr_db_version );\n}", "function wpei_install_db(){\n\tglobal $wpdb, $app_db_province,$app_db_city;\n\n\tif($wpdb->get_var(\"show tables like '$app_db_province'\") != $app_db_province ) {\n\n $sql = \"CREATE TABLE $app_db_province (\n id int(11) NOT NULL AUTO_INCREMENT,\n province_name varchar(255) NOT NULL,\n status tinyint(4) NOT NULL DEFAULT '1',\n PRIMARY KEY (id),\n UNIQUE KEY province_name (province_name)\n );\";\n\n require_once(ABSPATH . 'wp-admin/includes/upgrade.php');\n dbDelta($sql);\n }\n\n\tif($wpdb->get_var(\"show tables like '$app_db_city'\") != $app_db_city ) {\n $sql2 = \"CREATE TABLE $app_db_city (\n id int(11) NOT NULL AUTO_INCREMENT,\n city_name varchar(255) NOT NULL,\n shipping_rate float NOT NULL,\n province_id int(11) NOT NULL,\n PRIMARY KEY (id)\n );\";\n require_once(ABSPATH . 'wp-admin/includes/upgrade.php');\n dbDelta($sql2);\n }\n}", "function VerifySurvivorsTable($connection, $dbName) {\n if(!TableExists(\"SURVIVORS\", $connection, $dbName))\n {\n $query = \"CREATE TABLE SURVIVORS(\n ID int(11) UNSIGNED AUTO_INCREMENT PRIMARY KEY,\n NAME VARCHAR(45),\n ADDRESS VARCHAR(90),\n SSN VARCHAR(12),\n AGE VARCHAR(3),\n GENDER VARCHAR(4)\n )\";\n\n if(!mysqli_query($connection, $query)) echo(\"<p>Error creating table.</p>\");\n }\n}", "protected function createOldTable()\n {\n $this->setUpNewTable();\n $this->getSchemaManager()->createTable($this->getOldTable());\n }", "function pw_sample_plugin_create_table() {\n\tglobal $wpdb;\n$charset_collate = $wpdb->get_charset_collate();\n\n$sql = \"CREATE TABLE `book_meta_dataa` (\n\t\tID INTEGER NOT NULL AUTO_INCREMENT,\n\t\tauthor_name TEXT NOT NULL,\n\t\tprice bigint(64),\n\t\tpublisher text DEFAULT '',\n\t\tisbn text DEFAULT '',\n\t\tyr text DEFAULT '',\n\t\tedi text DEFAULT '',\n\t\tur text DEFAULT '',\n\tPRIMARY KEY (ID)\n) $charset_collate;\";\n\nrequire_once(ABSPATH . 'wp-admin/includes/upgrade.php');\ndbDelta($sql);\n\t\n }", "public function build_database_table()\n {\n global $wpdb;\n $table_name = $wpdb->base_prefix . $this->token;\n\n if ($wpdb->get_var(\"SHOW TABLES LIKE '$table_name'\") != $table_name) {\n $charset_collate = '';\n\n if (!empty($wpdb->charset)) {\n $charset_collate = \"DEFAULT CHARACTER SET {$wpdb->charset}\";\n }\n\n if (!empty($wpdb->collate)) {\n $charset_collate .= \" COLLATE {$wpdb->collate}\";\n }\n\n $sql = \"CREATE TABLE `$table_name` (\n\t\t\t\t\t\t\t\t`id` int(10) unsigned NOT NULL AUTO_INCREMENT,\n\t\t\t\t\t\t\t\t`frontdesk_id` int(10) unsigned DEFAULT NULL,\n\t\t\t\t\t\t\t\t`blog_id` int(10) unsigned DEFAULT 0,\n\t\t\t\t\t\t\t\t`first_name` varchar(255) DEFAULT NULL,\n\t\t\t\t\t\t\t\t`last_name` varchar(255) DEFAULT NULL,\n\t\t\t\t\t\t\t\t`email` varchar(255) DEFAULT NULL,\n\t\t\t\t\t\t\t\t`address` varchar(255) NOT NULL,\n\t\t\t\t\t\t\t\t`address2` varchar(255) DEFAULT NULL,\n\t\t\t\t\t\t\t\t`phone` varchar(20) DEFAULT NULL,\n\t\t\t\t\t\t\t\t`score` varchar(20) DEFAULT NULL,\n\t\t\t\t\t\t\t\t`responses` varchar(50) DEFAULT NULL,\n\t\t\t\t\t\t\t\t`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',\n\t\t\t\t\t\t\t\t`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',\n\t\t\t\t\t\t\t\tPRIMARY KEY (`id`)\n\t\t\t\t\t\t\t) $charset_collate;\";\n\n require_once(ABSPATH . 'wp-admin/includes/upgrade.php');\n dbDelta($sql);\n }\n }", "function create_db3 () {\n\t\tglobal $wpdb;\n\t\t$create_query = 'CREATE TABLE `duotive_sidebars` (\n\t\t\t\t\t\t\t`ID` INT NOT NULL AUTO_INCREMENT ,\n\t\t\t\t\t\t\t`NAME` TEXT NOT NULL ,\n\t\t\t\t\t\t\t`DESCRIPTION` TEXT NOT NULL,\n\t\t\t\t\t\t\tPRIMARY KEY ( `ID` )\n\t\t\t\t\t\t) ENGINE = MYISAM ;\n\t\t\t\t\t\t';\n\t\t$create = $wpdb->get_results($create_query);\n\t}", "function glv_create_tables(){\r\n global $wpdb;\r\n \r\n //el nombre de la tabla, utilizamos el prefijo de wordpress\r\n $table_forms = $wpdb->prefix.'glv_forms'; \r\n\r\n //sql con el statement de la tabla \r\n $glv_form = \"CREATE TABLE \".$table_forms.\"(\r\n for_id int(11) NOT NULL AUTO_INCREMENT,\r\n for_name varchar(100) DEFAULT NULL,\r\n for_value text DEFAULT NULL,\r\n for_date date,\r\n UNIQUE KEY for_id (for_id)\r\n )\";\r\n\r\n //upgrade contiene la función dbDelta la cuál revisará si existe la tabla o no\r\n require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\r\n \r\n //creamos la tabla\r\n dbDelta($glv_form);\r\n }", "protected function createMigrationHistoryTable()\n {\n $tableName = $this->db->schema->getRawTableName($this->migrationTable);\n $this->stdout(\"Creating migration history table \\\"$tableName\\\"...\", Console::FG_YELLOW);\n\n $this->db->createCommand()->createTable($this->migrationTable, [\n 'version' => 'String',\n 'apply_time' => 'DateTime',\n ], 'ENGINE = MergeTree() PRIMARY KEY (version) ORDER BY (version)')->execute();\n\n $this->addMigrationHistory(self::BASE_MIGRATION);\n\n $this->stdout(\"Done.\\n\", Console::FG_GREEN);\n }", "protected function updateMigrationTable()\n {\n $migration = str_replace('.php', '', basename(__FILE__));\n $batchResult = \\DB::select(\"SELECT max(batch) as batch FROM {$this->newDbName}.migrations\");\n $batch = $batchResult[0]->batch;\n\n \\DB::getPdo()->exec(\"INSERT INTO {$this->newDbName}.migrations (migration, batch) VALUES ('{$migration}', {$batch} + 1)\");\n }", "function migrate_db() {\r\n \r\n // $migrater->create_migrations_table();\r\n // $migrater->build_schema();\r\n }", "function custom_plugin_table_create() {\n\n global $wpdb;\n require_once ABSPATH . 'wp-admin/includes/upgrade.php';\n\n $sql = \"\n CREATE TABLE `ih_custom_table` (\n `id` int(11) NOT NULL AUTO_INCREMENT,\n `name` varchar(255) NOT NULL,\n `email` varchar(255) NOT NULL,\n `address` varchar(255) NOT NULL,\n PRIMARY KEY (`id`)\n ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4\n \";\n dbDelta( $sql );\n}", "private static function setupDB() {\n\t\t$tbl = self::$table;\n\t\t$dbw = wfGetDB( DB_MASTER );\n\t\twfDebugLog( __METHOD__, \"\\tCreating tables\\n\" );\n\t\t$dbw->query(\n\t\t\t\"CREATE TABLE IF NOT EXISTS $tbl ( pathway varchar(255), day varchar(50) )\", DB_MASTER\n\t\t);\n\t\twfDebugLog( __METHOD__, \"\\tDone!\\n\" );\n\t}", "static private function create_tables(){\n require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n self::create_views_table();\n }", "public function acfedu_create_fill_db() {\n\t\t\t\t$this->acfedu_check_table();\n\t\t\t\trequire_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n\t\t\t\tob_start();\n\t\t\t\tglobal $wpdb;\n //require_once( 'lib/import_nl.php' );\n //require_once( 'lib/import_be.php' );\n //require_once( 'lib/import_lux.php' );\n require_once( 'lib/import_id.php' );\n\t\t\t\t$sql = ob_get_clean();\n\t\t\t\tdbDelta( $sql );\n\t\t\t}", "function instalacionpoptest() {\n global $wpdb;\n\n $table_name1 = $wpdb->prefix . \"poptest_votos\";\n\t $table_name2 = $wpdb->prefix . \"poptest_votosdisponibles\";\n\t $poptest_db_version = \"1.0\"; \n\t if($wpdb->get_var(\"SHOW TABLES LIKE '$table_name1'\") == $table_name1) {\n\t \tadd_option(\"poptest_db_version\", $poptest_db_version);\t\n\t }\n\t $installed_ver = get_option( \"poptest_db_version\" );\n\n if($installed_ver != $poptest_db_version) {\n\t\t$sql1 = \"CREATE TABLE \" . $table_name1 . \" (\n\t\t\t id int NOT NULL AUTO_INCREMENT,\n\t\t\t usuario int NOT NULL,\n\t\t\t votante int NOT NULL,\n\t\t\t UNIQUE KEY id (id)\n\t\t\t);\";\n\t\t$sql2 = \"CREATE TABLE \" . $table_name2 . \" (\n\t\t\t id int NOT NULL AUTO_INCREMENT,\n\t\t\t usuario int NOT NULL,\n\t\t\t cantvotos int NOT NULL,\n\t\t\t UNIQUE KEY id (id)\n\t\t\t);\";\n\t\t\n\t\trequire_once(ABSPATH . 'wp-admin/includes/upgrade.php');\n\t\tdbDelta($sql1);\n\t\tdbDelta($sql2);\n\t\tupdate_option(\"poptest_db_version\", $poptest_db_version);\t \t\n\t }\n\t \n}", "private function createIfNotExists()\n {\n $table = new Table('schema_migration');\n if ($this->info->isTableExists($table)) {\n return;\n }\n $primaryKey = new PrimaryKey(array('version'));\n $primaryKey->disableAutoIncrement();\n\n $table->addConstraint($primaryKey);\n $table\n ->addColumn(new BigIntegerColumn('version'))\n ->addColumn(new DateTimeColumn('created_at', array('nullable' => false, 'default' => 'now()')));\n $this->manipulation->create($table);\n }", "public function create_tables()\n\t{\n\t\tglobal $wpdb;\n\t\t\n $db_charset_collate = '';\n if( !empty($wpdb->charset) )\n\t\t\t$db_charset_collate = \"DEFAULT CHARACTER SET $wpdb->charset\";\n if( !empty($wpdb->collate) )\n\t\t\t$db_charset_collate .= \" COLLATE $wpdb->collate\";\n\t\t\n\t\trequire_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n\n\t\t$sql = \"CREATE TABLE \".self::$site_table.\" (\n\t\t\t\t id bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n\t\t\t\t blog_id bigint(20) unsigned NOT NULL UNIQUE,\n\t\t\t\t url text NOT NULL DEFAULT '',\n\t\t\t\t title text NOT NULL DEFAULT '',\n\t\t\t\t num_posts bigint(20) NOT NULL DEFAULT 0,\n\t\t\t\t num_pages bigint(20) NOT NULL DEFAULT 0,\n\t\t\t\t num_comments bigint(20) NOT NULL DEFAULT 0,\n\t\t\t\t last_post_url text NOT NULL DEFAULT '',\n\t\t\t\t last_post_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',\n\t\t\t\t last_post_author text NOT NULL DEFAULT '',\n\t\t\t\t last_post_status text NOT NULL DEFAULT '',\n\t\t\t\t last_comment_url text NOT NULL DEFAULT '',\n\t\t\t\t last_comment_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',\n\t\t\t\t admin_email text NOT NULL DEFAULT '',\n\t\t\t\t status text NOT NULL DEFAULT ''\";\n\t\t$sql = apply_filters('orghub_create_table', $sql);\n\t\t$sql .= \"PRIMARY KEY (id)\n\t\t\t\t) ENGINE=InnoDB $db_charset_collate;\";\n dbDelta($sql);\n\t}", "private function make_db() {\n ee()->load->dbforge();\n $fields = array(\n 'id' => array('type' => 'varchar', 'constraint' => '32'),\n 'access' => array('type' => 'integer', 'constraint' => '10', 'unsigned' => true),\n 'data' => array('type' => 'text')\n );\n ee()->dbforge->add_field($fields);\n ee()->dbforge->add_key('id', true);\n ee()->dbforge->create_table($this->table_name);\n\n return true;\n }", "public function acfedu_check_table() {\n\t\t\t\trequire_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n\t\t\t\tob_start();\n\t\t\t\tglobal $wpdb;\n\t\t\t\t?>\n\t\t\t\tCREATE TABLE <?php echo $wpdb->prefix; ?>faculty (\n\t\t\t\t\tid int(6) unsigned NOT NULL auto_increment,\n\t\t\t\t\tfaculty_name varchar(50) NULL,\n\t\t\t\t\tuniv_code varchar(10) NULL,\n\t\t\t\t\tuniv_name varchar(50) NULL,\n\t\t\t\t\tcountry_code varchar(2) NULL,\n\t\t\t\t\tcountry varchar(50) NULL,\n\t\t\t\t\tprice decimal(10) NULL,\n\t\t\t\t\tPRIMARY KEY (id)\n\t\t\t\t)\n COLLATE <?php echo $wpdb->collate; ?>;\n\t\t\t\t<?php\n\t\t\t\t$sql = ob_get_clean();\n\t\t\t\tdbDelta( $sql );\n\n\t\t\t}", "public function create_tables() {\n global $wpdb;\n\n $charset_collate = $wpdb->get_charset_collate();\n\n $schema = \"CREATE TABLE IF NOT EXISTS`{$wpdb->prefix}cmp_data` (\n `code` bigint(20) NOT NULL AUTO_INCREMENT,\n `vendor_provider` longtext DEFAULT NULL,\n `contract_subscription_entity_used` longtext DEFAULT NULL,\n `product_type` longtext DEFAULT NULL,\n `product_description` longtext DEFAULT NULL,\n `contract_value` longtext DEFAULT NULL,\n `contract` longtext DEFAULT NULL,\n `contract_currency` longtext DEFAULT NULL,\n `contract_id` longtext DEFAULT NULL,\n `contract_signed_date` longtext DEFAULT NULL,\n `by_user` longtext DEFAULT NULL,\n `no_of_users` longtext DEFAULT NULL,\n `start_date` longtext DEFAULT NULL,\n `end_date` longtext DEFAULT NULL,\n `coordinator_person_in_change` longtext DEFAULT NULL,\n `vendor_person_in_change` longtext DEFAULT NULL,\n `vendor_email` longtext DEFAULT NULL,\n `vendor_contact` longtext DEFAULT NULL,\n `payment_entity_used` longtext DEFAULT NULL,\n `payment_amount` longtext DEFAULT NULL,\n `payment_currency` longtext DEFAULT NULL,\n `monthly_quarterly_semannual_annual` longtext DEFAULT NULL,\n `invoice_id` longtext DEFAULT NULL,\n `invoice_date` longtext DEFAULT NULL,\n `approval_document` longtext DEFAULT NULL,\n `upload_invoice` longtext DEFAULT NULL,\n `subscription_module` longtext DEFAULT NULL,\n `fullfillment_name` longtext DEFAULT NULL,\n `fullfillment_email` longtext DEFAULT NULL,\n `location_country_user` longtext DEFAULT NULL,\n `amount_per_user` longtext DEFAULT NULL,\n `department_user` longtext DEFAULT NULL,\n PRIMARY KEY (`code`)\n ) {$charset_collate}\";\n// exit($schema);\n if ( ! function_exists( 'dbDelta' ) ) {\n require_once ABSPATH . 'wp-admin/includes/upgrade.php';\n }\n\n dbDelta( $schema );\n }", "function fgcf_table_install() {\n global $wpdb;\n $sql = \"CREATE TABLE \" . Fgcf::$table_name . \" (\n\t id mediumint(9) NOT NULL AUTO_INCREMENT,\n\t user_name VARCHAR(255) NOT NULL,\n\t user_email VARCHAR(255) NOT NULL,\n\t user_message TEXT NOT NULL,\n\t UNIQUE KEY id (id)\n\t);\";\n require_once(ABSPATH . 'wp-admin/includes/upgrade.php');\n dbDelta($sql);\n }", "function ch8bt_create_table( $prefix ) {\r\n\t// Prepare SQL query to create database table\r\n\t// using received table prefix\r\n\t$creation_query =\r\n\t\t'CREATE TABLE ' . $prefix . 'ch8_bug_data (\r\n\t\t\t`bug_id` int(20) NOT NULL AUTO_INCREMENT,\r\n\t\t\t`bug_description` text,\r\n\t\t\t`bug_version` varchar(10) DEFAULT NULL,\r\n\t\t\t`bug_report_date` date DEFAULT NULL,\r\n\t\t\t`bug_status` int(3) NOT NULL DEFAULT 0,\r\n\t\t\t`bug_title` VARCHAR( 128 ) NULL,\r\n\t\t\tPRIMARY KEY (`bug_id`)\r\n\t\t\t);';\r\n\r\n\trequire_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\r\n\tdbDelta( $creation_query );\r\n}", "function uf_create_release_db_libre_V_2008_4_22()\r\n\t{\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\t//\t Function: uf_create_release_db_libre_V_2008_4_22\r\n\t\t//\t\t Access: public \r\n\t\t// Modulos: SPS\r\n\t\t//\t Description: \r\n\t\t// Fecha Creacion: 21/09/2008\t\t\t\t\t\t\t\tFecha Ultima Modificacion : \r\n\t\t////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t $lb_valido=true;\r\n\t $ls_sql=\"\";\t \r\n\t switch($_SESSION[\"ls_gestor\"])\r\n\t {\r\n\t\t\tcase \"MYSQL\":\r\n\t\t\t\t $ls_sql=\" create table sps_anticipos\t( \".\r\n\t\t\t\t\t\t \" codemp char(4) not null, \".\r\n\t\t\t\t\t\t \" codnom char(4) not null, \".\r\n\t\t\t\t\t\t \" codper char(10) not null, \".\r\n\t\t\t\t\t\t \" fecantper date not null, \".\r\n\t\t\t\t\t\t \" anoserper integer not null, \".\r\n\t\t\t\t\t\t \" messerper integer not null, \".\r\n\t\t\t\t\t\t \" diaserper integer not null, \".\r\n\t\t\t\t\t\t \" motant varchar(254) not null, \".\r\n\t\t\t\t\t\t \" mondeulab double(19,4) not null, \".\r\n\t\t\t\t\t\t \" monporant double(19,4) not null, \".\r\n\t\t\t\t\t\t \" monant double(19,4) not null, \".\r\n\t\t\t\t\t\t \" estant varchar(1) not null default '0',\".\r\n\t\t\t\t\t\t \" obsant varchar(254))ENGINE = InnoDB CHAR SET `utf8` COLLATE `utf8_general_ci \";\t\t\t\t\t\t\t\t\r\n\t\t\t\t break;\r\n\t\t\t\t \r\n\t\t\tcase \"POSTGRE\":\r\n\t\t\t\t $ls_sql=\" create table sps_anticipos ( \".\r\n\t\t\t\t\t\t \" codemp CHAR(4) not null, \".\r\n\t\t\t\t\t\t \" codnom CHAR(4) not null, \".\r\n\t\t\t\t\t\t \" codper CHAR(10) not null, \".\r\n\t\t\t\t\t\t \" fecantper DATE not null, \".\r\n\t\t\t\t\t\t \" anoserper INT4 not null, \".\r\n\t\t\t\t\t\t \" messerper INT4 not null, \".\r\n\t\t\t\t\t\t \" diaserper INT4 not null, \".\r\n\t\t\t\t\t\t \" motant VARCHAR(254) not null, \".\r\n\t\t\t\t\t\t \" mondeulab FLOAT8 not null, \".\r\n\t\t\t\t\t\t \" monporant FLOAT8 not null, \".\r\n\t\t\t\t\t\t \" monant FLOAT8 not null, \".\r\n\t\t\t\t\t\t \" estant VARCHAR(1) not null default '0' \".\r\n\t\t\t\t\t\t \" constraint CKC_ESTANT_SPS_ANTI check (estant in ('0','1','2','3')), \".\r\n\t\t\t\t\t\t \"obsant VARCHAR(254) null); \";\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tbreak; \t\t\t\t \r\n\t\t}\r\n\t\tif (!empty($ls_sql))\r\n\t\t{\t\r\n\t\t\t$li_row=$this->io_sql->execute($ls_sql);\r\n\t\t\tif($li_row===false)\r\n\t\t\t{ \r\n\t\t\t\t$this->io_msg->message(\"Problemas al ejecutar Release 2008_4_22-01\");\r\n\t\t\t\t$lb_valido=false;\r\n\t\t\t}\r\n\t\t}\t\r\n\t \r\n\t //-----------creacion de la clave primaria---------------------------------------------------------------------------\r\n $ls_sql=\"\";\r\n\t switch($_SESSION[\"ls_gestor\"])\r\n\t {\r\n\t\t\tcase \"MYSQL\":\r\n\t\t\t\t $ls_sql= \" alter table sps_anticipos \".\r\n \t\t\t\t\t\t\t\" add primary key (codemp, codper, codnom, fecantper); \";\t\t\t\t\t\t\t\t\r\n\t\t\t\t break;\r\n\t\t\t\t \r\n\t\t\tcase \"POSTGRE\":\r\n\t\t\t\t $ls_sql=\" alter table sps_anticipos \".\r\n \" add constraint PK_SPS_ANTICIPOS primary key (codemp, codper, codnom, fecantper);\";\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tbreak; \t\t\t\t \r\n\t\t}\r\n\t\tif (!empty($ls_sql))\r\n\t\t{\t\r\n\t\t\t$li_row=$this->io_sql->execute($ls_sql);\r\n\t\t\tif($li_row===false)\r\n\t\t\t{ \r\n\t\t\t\t$this->io_msg->message(\"Problemas al ejecutar Release 2008_4_22-02\");\r\n\t\t\t\t$lb_valido=false;\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t //--------------------------------------------------------------------------------------------------------------------\t\r\n\t //----------------creación de un index--------------------------------------------------------------------------------\r\n\t $ls_sql=\"\";\r\n\t switch($_SESSION[\"ls_gestor\"])\r\n\t {\r\n\t\t\t\r\n\t\t\tcase \"MYSQL\":\r\n\t\t\t\t $ls_sql= \" create unique index idx_anticipos on sps_anticipos ( \".\r\n\t\t\t\t\t\t\t\" codemp, codnom, \".\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\" codper, \".\r\n\t\t\t\t\t\t\t\" fecantper); \";\t\t\t\t\t\t\t\t\r\n\t\t\t\t break;\r\n\t\t\t\t \r\n\t\t\tcase \"POSTGRE\":\r\n\t\t\t\t $ls_sql=\" create unique index idx_anticipos on sps_anticipos ( \".\r\n\t\t\t\t\t\t \" codemp, \".\r\n\t\t\t\t\t\t \" codnom, \".\r\n\t\t\t\t\t\t \" codper, \".\r\n\t\t\t\t\t\t \" fecantper); \";\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tbreak; \t\t\t\t \r\n\t\t}\r\n\t\tif (!empty($ls_sql))\r\n\t\t{\t\r\n\t\t\t$li_row=$this->io_sql->execute($ls_sql);\r\n\t\t\tif($li_row===false)\r\n\t\t\t{ \r\n\t\t\t switch($_SESSION[\"ls_gestor\"])\r\n\t {\r\n\t\t\t\t \tcase \"POSTGRE\":\r\n\t\t\t\t\t\t$this->io_msg->message(\"Problemas al ejecutar Release 2008_4_22-03\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\t$lb_valido=false;\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t //-------------------------------------------------------------------------------------------------------------------------\r\n\t return $lb_valido;\t\r\n\t}", "function caldera_forms_pro_db_delta_1(){\n\trequire_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n\tglobal $wpdb;\n\t$charset_collate = '';\n\n\tif ( ! empty( $wpdb->charset ) ) {\n\t\t$charset_collate = \"DEFAULT CHARACTER SET $wpdb->charset\";\n\t}\n\n\tif ( ! empty( $wpdb->collate ) ) {\n\t\t$charset_collate .= \" COLLATE $wpdb->collate\";\n\t}\n\t$table = \"CREATE TABLE `\" . $wpdb->prefix . \"cf_pro_messages` (\n\t\t\t`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n\t\t\t`cfp_id` bigint(20) unsigned DEFAULT NULL,\n\t\t\t`entry_id` bigint(20) unsigned DEFAULT NULL,\n\t\t\t`hash` varchar(255) DEFAULT NULL,\n\t\t\t`type` varchar(255) DEFAULT NULL,\n\t\t\tPRIMARY KEY ( `ID` )\n\t\t\t) \" . $charset_collate . \";\";\n\n\tdbDelta( $table );\n\n\n}", "function mikado_create_db_tables() {\n\tinclude_once (WP_PLUGIN_DIR . '/mikado/lib/install-db.php');\t\t\t\n\tmikado_install_db();\n}", "function _createCacheTable(){\n\t\t$res = mysql_query(\"create table IF NOT EXISTS `\".addslashes($this->tableName).\"`(\n\t\t\t`GenID` INT(11) auto_increment,\n\t\t\t`PageID` VARCHAR(64),\n\t\t\t`Language` CHAR(2),\n\t\t\t`UserID` VARCHAR(32),\n\t\t\t`Dependencies` TEXT,\n\t\t\t`LastModified` TIMESTAMP,\n\t\t\t`Expires` DateTime,\n\t\t\t`Data` LONGTEXT,\n\t\t\t`Data_gz` LONGBLOB,\n\t\t\t`Headers` TEXT,\n\t\t\tPRIMARY KEY (`GenID`),\n\t\t\tINDEX `LookupIndex` (`Language`,`UserID`,`PageID`)\n\t\t\t)\", $this->app->db());\n\t\tif ( !$res ){\n\t\t\treturn PEAR::raiseError('Could not create cache table: '.mysql_error($this->app->db()));\n\t\t}\t\n\t\t\n\t}", "function ifi_CIM_checkforupdates()\n{\n//ifi_pmpro_CIM_db_version\nglobal $ifi_pmpro_CIM_db_version;\nif($ifi_pmpro_CIM_db_version < 2.0)\nifi_pmpro_CIM_setDBTables();\n}", "function emails_list_create_db() {\n\n\tglobal $wpdb;\n\t$my_products_db_version = '0.2';\n\t$charset_collate = $wpdb->get_charset_collate();\n\t$table_name = $wpdb->prefix . 'emails_list';\n\n\n $sql = \"CREATE TABLE $table_name (\n id bigint(20) NOT NULL AUTO_INCREMENT,\n `email` VARCHAR(255) NOT NULL,\n PRIMARY KEY (id)\n ) $charset_collate;\";\n\n require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n dbDelta( $sql );\n add_option( 'emails_list_db_version', $my_products_db_version );\n\n $url = get_site_url();\n\n}", "protected function createMigrationTable()\n {\n $migration_table = $this->config_file->getMigrationTable();\n\n $resource = $this->db_adapter->query(\"\n CREATE TABLE $this->migration_table (\n file VARCHAR PRIMARY KEY,\n ran_at TIMESTAMP DEFAULT NOW()\n );\n \");\n }", "public function createTables()\r\n {\r\n $sql = \"\r\n CREATE TABLE IF NOT EXISTS coins\r\n (\r\n id INT NOT NULL AUTO_INCREMENT,\r\n playername VARCHAR(32) NOT NULL,\r\n coins INT NOT NULL,\r\n ip VARCHAR(32) NOT NULL,\r\n cid VARCHAR(64) NOT NULL,\r\n PRIMARY KEY (id)\r\n );\r\n \";\r\n self::update($sql);\r\n }", "public function updateDatabase() {\r\n // All the extra function remove an unnecessary layer of arrays\r\n $tables_in_database = DB::tablesInDatabase();\r\n\r\n // List of matched tables\r\n $matched = [];\r\n\r\n /** @var Table $table */\r\n foreach (DB::tableInstances() as $i => $table) {\r\n $this->table = $table;\r\n $this->table_name = $table::getName();\r\n\r\n if(in_array($this->table_name, $tables_in_database)) {\r\n array_push($matched, $table->class());\r\n\r\n // Go through and check each table\r\n $this->updateExistingTable();\r\n }\r\n }\r\n\r\n // Loops over to see if any new tables have appeared and if so add them\r\n foreach (array_diff(DB::tables(), $matched) as $table) {\r\n DB::createTableIfNotExists($table);\r\n\r\n echo \"Created $table \\n\";\r\n if($this->log_changes) Logger::migration(\"Created $table\");\r\n }\r\n\r\n // Loops over and find tables defined in the Database but not added to the DB::$table_instances array\r\n // If found it removes them from the Database\r\n foreach (array_diff($tables_in_database, DB::tablesByName()) as $table) {\r\n // Checks for reference tables used in Many to Many relationships\r\n // If found continue as they should not be dropped\r\n if(in_array($table, DB::getReferenceTables())) continue;\r\n\r\n // FIXME: drop reference table first to stop foreign key constraint error\r\n\r\n $sql = \"DROP TABLE $table\";\r\n\r\n $q = DB::connection()->query($sql);\r\n\r\n if($q === false) {\r\n //throw new ColumnNotFoundError(\"Error given column(s) do not exist in table\");\r\n throw new SQLQueryError(DB::connection()->error());\r\n } else {\r\n echo \"Dropped $table \\n\";\r\n if ($this->log_changes) Logger::migration(\"Dropped $table\");\r\n }\r\n }\r\n }", "public function generateDatabase()\n {\n $this->generateUserTable();\n $this->generateEmployerTable();\n $this->generateCandidateTable();\n $this->generateGuidTable();\n $this->generateWorkExperienceTable();\n $this->generateShortListTable();\n $this->generateQualTypeTable();\n $this->generateQualLevelTable();\n $this->generateQualificationsTable();\n $this->generateFieldTable();\n $this->generateSubFieldTable();\n $this->generateSkillTable();\n $this->generatePreferencesTable();\n }", "public function create_tables() {\n global $wpdb;\n $charset_collate = $wpdb->get_charset_collate();\n $schema = \"CREATE TABLE IF NOT EXISTS `{$wpdb->prefix}wc_addresses` (\n `id` int(11) unsigned NOT NULL AUTO_INCREMENT,\n `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,\n `address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,\n `phone` varchar(30) COLLATE utf8mb4_unicode_ci DEFAULT NULL,\n `created_by` bigint(20) unsigned NOT NULL,\n `created_at` datetime DEFAULT NULL,\n PRIMARY KEY (`id`)\n ) $charset_collate\";\n if ( !function_exists( 'dbDelta' ) ) {\n require_once ABSPATH . '/wp-admin/includes/upgrade.php';\n }\n\n dbDelta( $schema );\n }", "public function installDb()\r\n {\r\n \r\n $sql = Db::getInstance()->execute('\r\n CREATE TABLE IF NOT EXISTS '._DB_PREFIX_.'clubmembre (\r\n id_clubmembre INT UNSIGNED NOT NULL AUTO_INCREMENT,\r\n prenom TEXT NOT NULL,\r\n nom TEXT NOT NULL,\r\n email TEXT NOT NULL,\r\n id_client INT,\r\n PRIMARY KEY (id_clubmembre)\r\n ) ENGINE = '._MYSQL_ENGINE_.' DEFAULT CHARSET=utf8;\r\n ');\r\n\r\n return $sql;\r\n }", "function uf_create_release_db_libre_V_2008_4_20()\r\n\t {\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\t//\t Function: uf_create_release_db_libre_V_2008_4_20\r\n\t\t//\t\t Access: public \r\n\t\t// Modulos: SOB\r\n\t\t//\t Description: \r\n\t\t// Fecha Creacion: 17/08/2008\t\t\t\t\t\t\t\tFecha Ultima Modificacion : \r\n\t\t////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t $lb_valido=true; \r\n\t switch($_SESSION[\"ls_gestor\"])\r\n\t {\r\n\t\t\tcase \"MYSQL\":\r\n\t\t\t $ls_sql=\" ALTER TABLE rpc_proveedor ADD COLUMN sc_ctaant varchar(25); \";\t\t\t\t\t \t\t\t\r\n\t\t\t break;\r\n\t\t\t\t \r\n\t\t\tcase \"POSTGRE\":\r\n\t\t\t $ls_sql= \" ALTER TABLE rpc_proveedor ADD COLUMN sc_ctaant character varying(25); \";\r\n\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\r\n\t\t\t\tbreak; \t\t\t\t \r\n\t }\r\n\t if (!empty($ls_sql))\r\n\t {\t\r\n\t\t\t\t$li_row=$this->io_sql->execute($ls_sql);\r\n\t\t\t\tif($li_row===false)\r\n\t\t\t\t{ \r\n\t\t\t\t\t$this->io_msg->message(\"Problemas Release 2008_4_20-01\");\r\n\t\t\t\t\t$lb_valido=false;\r\n\t\t\t\t}\r\n\t }\r\n\t switch($_SESSION[\"ls_gestor\"])\r\n\t {\r\n\t\t\tcase \"MYSQL\":\r\n\t\t\t $ls_sql=\"\tALTER TABLE sob_anticipo ADD COLUMN estgenrd varchar(1) DEFAULT '0'; \";\t\t\t\t\t\t \t\t\t\r\n\t\t\t break;\r\n\t\t\t\t \r\n\t\t\tcase \"POSTGRE\":\r\n\t\t\t $ls_sql= \" ALTER TABLE sob_anticipo ADD COLUMN estgenrd character varying(1) DEFAULT '0'; \";\r\n\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\r\n\t\t\t\tbreak; \t\t\t\t \r\n\t }\r\n\t if (!empty($ls_sql))\r\n\t {\t\r\n\t\t\t\t$li_row=$this->io_sql->execute($ls_sql);\r\n\t\t\t\tif($li_row===false)\r\n\t\t\t\t{ \r\n\t\t\t\t\t$this->io_msg->message(\"Problemas Release 2008_4_20-02\");\r\n\t\t\t\t\t$lb_valido=false;\r\n\t\t\t\t}\r\n\t }\t \r\n\t switch($_SESSION[\"ls_gestor\"])\r\n\t {\r\n\t\t\tcase \"MYSQL\":\r\n\t\t\t $ls_sql=\"\tALTER TABLE sob_valuacion ADD COLUMN estgenrd varchar(1) DEFAULT '0';\";\t\t\t\t\r\n\t\t\t break;\r\n\t\t\t\t \r\n\t\t\tcase \"POSTGRE\":\r\n\t\t\t $ls_sql= \" ALTER TABLE sob_valuacion ADD COLUMN estgenrd character varying(1) DEFAULT '0'; \";\t\t\t\t \t\t\t\t\t\t\t\t\r\n\t\t\t\tbreak; \t\t\t\t \r\n\t }\r\n\t if (!empty($ls_sql))\r\n\t {\t\r\n\t\t\t\t$li_row=$this->io_sql->execute($ls_sql);\r\n\t\t\t\tif($li_row===false)\r\n\t\t\t\t{ \r\n\t\t\t\t\t$this->io_msg->message(\"Problemas Release 2008_4_20-03\");\r\n\t\t\t\t\t$lb_valido=false;\r\n\t\t\t\t}\r\n\t }\t \t \r\n\t return $lb_valido;\t\r\n\t}", "function uf_create_release_db_libre_V_3_47()\r\n\t{\r\n\t\t$lb_valido=true;\r\n\t\t$ls_sql=\"\";\r\n\t\tswitch($_SESSION[\"ls_gestor\"])\r\n\t\t{\r\n\t\t\tcase \"MYSQL\":\r\n\t\t\t$ls_sql=\" ALTER TABLE tepuy_empresa ADD COLUMN confiva VARCHAR(1) DEFAULT 'P'; \";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase \"POSTGRE\":\r\n\t\t\t$ls_sql=\" ALTER TABLE tepuy_empresa ADD COLUMN confiva varchar(1) DEFAULT 'P'; \";\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\t$li_row=$this->io_sql->execute($ls_sql);\r\n\t\tif($li_row===false)\r\n\t\t{ \r\n\t\t\t $this->io_msg->message(\"Problemas al ejecutar Release 3.47\");\t\r\n\t\t\t $lb_valido=false;\r\n\t\t}\r\n return $lb_valido;\t\r\n\t}", "public function create_table_new_user(){\n $sql = \" CREATE TABLE IF NOT EXISTS {$this->table_new_user} (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n `name` varchar(250) DEFAULT NULL,\n `lastname` varchar(250) DEFAULT NULL,\n `dni` varchar(50) DEFAULT NULL,\n `email` varchar(100) DEFAULT NULL,\n `phone` varchar(50) DEFAULT NULL,\n `day` datetime DEFAULT NULL,\n `hour` char(20) DEFAULT NULL,\n `deleted` boolean DEFAULT FALSE,\n `date` datetime DEFAULT CURRENT_TIMESTAMP,\n PRIMARY KEY (`id`)\n )\";\n\n require_once(ABSPATH . 'wp-admin/includes/upgrade.php');\n dbDelta($sql);\n }", "function eddenvato_db_install(){\n\n\t// define needed globals\n\tglobal $wpdb;\n\t$eddenvato_db = $wpdb->prefix . \"tc_edd_envato\";\n\n\t// create table\n\tif( $wpdb->get_var(\"SHOW TABLES LIKE '$eddenvato_db'\") != $eddenvato_db ){\n\n\t\t$sql = \"CREATE TABLE \".$eddenvato_db.\" (\n\t\t\tid INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,\n\t\t\tenvato_id VARCHAR(250) NOT NULL,\n\t\t\tlicense_key VARCHAR(250) NOT NULL,\n\t\t\tuser_id VARCHAR(250) NOT NULL,\n\t\t\tenvato_return TEXT NOT NULL\n\t\t);\";\n\n\t\trequire_once(ABSPATH . 'wp-admin/includes/upgrade.php');\n\t\tdbDelta($sql);\n\n\t\t// Create Default Page\n\t\t$tc_post = array(\n\t\t 'post_title' => 'EDD Evato License Verification',\n\t\t 'post_content' => '[edd-envato]',\n\t\t 'post_status' => 'publish',\n\t\t 'post_author' => 1,\n\t\t 'post_type'\t => 'page'\n\t\t);\n\n\t\t// Insert the post into the database\n\t\twp_insert_post( $tc_post );\n\n\t} // end table creation\n\n}", "public function db_install(){\r\n\r\n if ( !class_exists( 'Inf_Member_Upgrade') )\r\n require_once( dirname(dirname(__FILE__)) . '/includes/db/upgrade.php' );\r\n\r\n $upd = new Inf_Member_Upgrade;\r\n $upd->init();\r\n\r\n if(isset($_GET['update_db']) && $_GET['update_db'])\r\n $upd->run_updates();\r\n\r\n }", "function createTable() {\n print \"\\nCreate table: \".$dbtable.\"\\n\";\n if (createDB()) {\n print \"OK\\n\";\n }\n interceptExit();\n }", "function update_create_batch_table() {\n\n // If batch table exists, update is not necessary\n if (db_table_exists('batch')) {\n return;\n }\n\n $schema['batch'] = array(\n 'fields' => array(\n 'bid' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE),\n 'token' => array('type' => 'varchar', 'length' => 64, 'not null' => TRUE),\n 'timestamp' => array('type' => 'int', 'not null' => TRUE),\n 'batch' => array('type' => 'text', 'not null' => FALSE, 'size' => 'big')\n ),\n 'primary key' => array('bid'),\n 'indexes' => array('token' => array('token')),\n );\n\n $ret = array();\n db_create_table($ret, 'batch', $schema['batch']);\n return $ret;\n}", "function update_create_batch_table() {\n\n // If batch table exists, update is not necessary\n if (db_table_exists('batch')) {\n return;\n }\n\n $schema['batch'] = array(\n 'fields' => array(\n 'bid' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE),\n 'token' => array('type' => 'varchar', 'length' => 64, 'not null' => TRUE),\n 'timestamp' => array('type' => 'int', 'not null' => TRUE),\n 'batch' => array('type' => 'text', 'not null' => FALSE, 'size' => 'big')\n ),\n 'primary key' => array('bid'),\n 'indexes' => array('token' => array('token')),\n );\n\n $ret = array();\n db_create_table($ret, 'batch', $schema['batch']);\n return $ret;\n}", "private function prepareTableBlueprint($table){\n $tableName = $this::cleanToName($table[\"name\"]);\n\n $res = \"\\t\\t\" . \"if (!Schema::hasTable('\".$this->appPrefix.\"_\".$tableName.\"')) { \" . PHP_EOL;\n $res .= \"\\t\\t\\t\" . 'Schema::create(\"'.$this->appPrefix.'_'.$tableName.'\", function (Blueprint $t) {' . PHP_EOL;\n \n $res .= \"\\t\\t\\t\\t\" . '$t->engine = \"InnoDB\"; ' . PHP_EOL;\n $res .= \"\\t\\t\\t\\t\" . '$t->increments(\"id\"); ' . PHP_EOL;\n\n // Aqui tengo que mirar si existen las columnas y si el tipo es igual, no las agrego la migracion.....\n \n // Create table\n foreach ($table[\"fields\"] as $item) {\n\n //$res .= \"\\t\\t\\t\\t\" . '$t->'.$item['type'].'(\"'.$this::cleanToName($item['name']).'\")->nullable(); ' . PHP_EOL;\n $res .= \"\\t\\t\\t\\t\" . '$t->'.$item['type'].'(\"'.$item['name'].'\")->nullable(); ' . PHP_EOL;\n\n }\n $res.= \"\\t\\t\\t\" . '});'. PHP_EOL;\n \n $res.= \"\\t\\t\" . '} else {' . PHP_EOL;\n\n $res .=\"\\t\\t\\t\" . 'Schema::table(\"'.$this->appPrefix.'_'.$tableName.'\", function (Blueprint $t) {' . PHP_EOL;\n // Update table\n foreach ($table[\"fields\"] as $item) {\n\n //$res .= \"\\t\\t\\t\\t\" . '$t->'.$item['type'].'(\"'.$this::cleanToName($item['name']).'\")->nullable()->change(); ' . PHP_EOL;\n $res .= \"\\t\\t\\t\\t\" . '$t->'.$item['type'].'(\"'.$item['name'].'\")->nullable()->change(); ' . PHP_EOL;\n \n }\n $res.= \"\\t\\t\\t\" .'});'. PHP_EOL;\n\n $res.=\"\\t\\t\" . '} ' . PHP_EOL . PHP_EOL;\n\n return $res;\n\n\n\n }", "function bab_pm_createTables()\n{\n global $txpcfg, $bab_pm_PrefsTable , $bab_pm_SubscribersTable, $bab_pm_mapTable, $DB;\n\n //function to create database\n $version = mysqli_get_server_info($DB->link);\n $dbcharset = \"'\".$txpcfg['dbcharset'].\"'\";\n\n //Use \"ENGINE\" if version of MySQL > (4.0.18 or 4.1.2)\n $tabletype = ( intval($version[0]) >= 5 || preg_match('#^4\\.(0\\.[2-9]|(1[89]))|(1\\.[2-9])#',$version))\n ? \" ENGINE=MyISAM \"\n : \" TYPE=MyISAM \";\n\n // On 4.1 or greater use utf8-tables\n if (isset($dbcharset) && (intval($version[0]) >= 5 || preg_match('#^4\\.[1-9]#',$version))) {\n $tabletype .= \" CHARACTER SET = $dbcharset \";\n\n if (isset($dbcollate))\n $tabletype .= \" COLLATE $dbcollate \";\n mysqli_query($DB->link, \"SET NAMES \".$dbcharset);\n }\n\n $create_sql[] = safe_query(\"CREATE TABLE IF NOT EXISTS $bab_pm_PrefsTable (\n `listID` int(4) NOT NULL auto_increment,\n `listName` varchar(100) NOT NULL default '',\n `listDescription` longtext NULL,\n `listAdminEmail` varchar(100) NOT NULL default '',\n `listUnsubscribeUrl` varchar(100) NOT NULL default '',\n `listEmailForm` varchar(100) NOT NULL default '',\n `listSubjectLine` varchar(128) NOT NULL default '',\n `catchall` longtext NULL,\n PRIMARY KEY (`listID`)\n ) $tabletype \");\n\n $custom_fields = '';\n\n for ($i = 1; $i <= BAB_CUSTOM_FIELD_COUNT; $i++) {\n $custom_fields .= \"`subscriberCustom{$i}` longtext NULL,\" . n;\n }\n\n $create_sql[] = safe_query(\"CREATE TABLE IF NOT EXISTS $bab_pm_SubscribersTable (\n `subscriberID` int(4) NOT NULL auto_increment,\n `subscriberFirstName` varchar(30) NOT NULL default '',\n `subscriberLastName` varchar(30) NOT NULL default '',\n `subscriberEmail` varchar(100) NOT NULL default '',\n {$custom_fields}\n `subscriberCatchall` longtext NULL,\n `flag` varchar(100) NOT NULL default '',\n `unsubscribeID` varchar(100) NOT NULL default '',\n PRIMARY KEY (`subscriberID`),\n UNIQUE (subscriberEmail)\n ) $tabletype \");\n\n $bab_pm_subscribers_list = safe_pfx('bab_pm_subscribers_list');\n $create_sql[] = safe_query(\"CREATE TABLE IF NOT EXISTS $bab_pm_subscribers_list (\n `id` int(4) NOT NULL auto_increment,\n `list_id` int(4) NOT NULL,\n `subscriber_id` int(4) NOT NULL,\n PRIMARY KEY (`id`),\n UNIQUE (`list_id`, `subscriber_id`)\n ) $tabletype \");\n\n $create_sql[] = safe_query(\"ALTER TABLE $bab_pm_subscribers_list ADD INDEX `subscriber_id` ( `subscriber_id` )\");\n\n//--- insert initial row in prefs table -------------------------------\n\n $create_sql[] = safe_query(\"INSERT INTO $bab_pm_PrefsTable values ('1','default','All subscribers','','','','Notification: A new article has been posted at &lt;txp:site_url /&gt;','')\");\n\n//--- insert initial row in subs table -------------------------------\n\n $md5 = md5(uniqid(rand(),true));\n $create_sql[] = safe_query(\"INSERT INTO $bab_pm_SubscribersTable (subscriberFirstName, subscriberLastName, subscriberEmail, subscriberCustom1, subscriberCustom10, unsubscribeID) values ('Test','User','test@test','custom1','custom10','$md5')\");\n\n safe_insert('bab_pm_subscribers_list', \"list_id=1, subscriber_id=1\");\n\n return;\n}", "function wp_super_edit_install_db_tables() {\n\tglobal $wpdb, $wp_super_edit;\n\n\trequire_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n\n\tif ( !is_object( $wp_super_edit ) ) {\n\t\t$wp_super_edit = new wp_super_edit_admin();\n\t}\n\n\tif ( $wp_super_edit->is_installed ) return;\n\n\tif ( $wpdb->supports_collation() ) {\n\t\tif ( ! empty($wpdb->charset) )\n\t\t\t$charset_collate = \"DEFAULT CHARACTER SET $wpdb->charset\";\n\t\tif ( ! empty($wpdb->collate) )\n\t\t\t$charset_collate .= \" COLLATE $wpdb->collate\";\n\t}\n\n\t$install_sql=\"CREATE TABLE $wp_super_edit->db_options (\n\t id bigint(20) NOT NULL auto_increment,\n\t name varchar(60) NOT NULL,\n\t value text NOT NULL,\n\t PRIMARY KEY (id,name),\n\t UNIQUE KEY name (name)\n\t) $charset_collate;\n\tCREATE TABLE $wp_super_edit->db_plugins (\n\t id bigint(20) NOT NULL auto_increment,\n\t name varchar(60) NOT NULL,\n\t url text NOT NULL,\n\t nicename varchar(120) NOT NULL,\n\t description text NOT NULL,\n\t provider varchar(60) NOT NULL,\n\t status varchar(20) NOT NULL default 'no',\n\t callbacks varchar(120) NOT NULL,\n\t PRIMARY KEY (id,name),\n\t UNIQUE KEY name (name)\n\t) $charset_collate;\n\tCREATE TABLE $wp_super_edit->db_buttons (\n\t id bigint(20) NOT NULL auto_increment,\n\t name varchar(60) NOT NULL,\n\t nicename varchar(120) NOT NULL,\n\t description text NOT NULL,\n\t provider varchar(60) NOT NULL,\n\t plugin varchar(60) NOT NULL,\n\t status varchar(20) NOT NULL default 'no',\n\t PRIMARY KEY (id,name),\n\t UNIQUE KEY id (id)\n\t) $charset_collate;\n\tCREATE TABLE $wp_super_edit->db_users (\n\t id bigint(20) NOT NULL auto_increment,\n\t user_name varchar(60) NOT NULL,\n\t user_nicename varchar(60) NOT NULL,\n\t user_type text NOT NULL,\n\t editor_options text NOT NULL,\n\t PRIMARY KEY (id,user_name),\n\t UNIQUE KEY id (id)\n\t) $charset_collate;\";\n\t\n\tdbDelta($install_sql);\n\t\n\t$wp_super_edit->is_installed = true;\n\t\t\n}", "function patch_database()\n{\n global $dbconfig, $db;\n $has_table = $db->getOne(\"SHOW TABLES LIKE '{$dbconfig['table_prefix']}version'\");\n if (!$has_table) {\n init_database();\n }\n\n $last_patch = $db->getOne('SELECT ver_version FROM {{%version}}');\n if (!isset($last_patch)) {\n // insert initial value\n $db->query('INSERT INTO {{%version}} SET ver_version=0');\n $last_patch = 0;\n }\n\n $files = read_patches(__DIR__ . '/patches');\n\n $addCount = 0;\n foreach ($files as $number => $file) {\n if ($number > $last_patch) {\n echo '* Applying patch: ', $number, ' (', basename($file), \")\\n\";\n exec_sql_file($file);\n $db->query(\"UPDATE {{%version}} SET ver_version=$number\");\n $addCount++;\n }\n }\n\n $version = max(array_keys($files));\n if ($addCount == 0) {\n echo \"* Your database is already up-to-date. Version $version\\n\";\n } else {\n echo \"* Your database is now up-to-date. Updated from $last_patch to $version\\n\";\n }\n}", "function afterCreateTable(){\n $aData = array(\n array( \"Intranet\", \"INTR\", 1 ),\n array( \"Document Management\", \"DOCU\" ),\n array( \"Email\", \"EMAI\" ),\n array( \"General\", \"GENE\" )\n );\n \n foreach( $aData as $row ){\n $this->id = 0;\n $this->aFields[\"name\"]->value = $row[0];\n $this->aFields[\"code\"]->value = $row[1];\n \n // Default option\n if( array_key_exists( 2, $row ) ) $this->aFields[\"is_default\"]->value = $row[2];\n else $this->aFields[\"is_default\"]->value = 0;\n \n $this->save();\n }\n \n // Make everything point to the default\n $sql = \"SELECT id FROM issue_system WHERE is_default = 1\";\n $db = new DB();\n $db->query( $sql );\n $row = $db->fetchRow();\n $sql = \"UPDATE issue SET issue_system_id = \".$row[\"id\"];\n $db->query( $sql );\n \n }", "protected function createDatabaseStructure() {}", "function create_civ_db() {\n\tglobal $wpdb;\n\t$table_name = $wpdb->prefix . 'civ_slider';\n\n\t$sql = \"create table $table_name(\n id INT NOT NULL AUTO_INCREMENT, \n PRIMARY KEY(id),\n post_id int,\n img_order INT)\";\n\n\t$wpdb->query(\n\t\t'create table $table_name(\n\t id INT NOT NULL AUTO_INCREMENT, \n\t PRIMARY KEY(id),\n\t post_id int,\n\t img_order INT)' \n\t);\n}", "public function registerDb() {\n global $wpdb;\n\n $charset_collate = $wpdb->get_charset_collate();\n $table_name = $wpdb->prefix . \"items_bookmark\";\n \n $createTable = \"CREATE TABLE IF NOT EXISTS $table_name (\n user_id INTEGER NOT NULL,\n response_id int,\n utterance_id int,\n PRIMARY KEY (user_id)\n ) $charset_collate;\";\n\n require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n dbDelta($createTable);\n }", "protected function _Upkeep_Entry_Notes_Table() {\n\t\tglobal $wpdb; \n // Submission table name (including wp prefix)\n $entry_notes_table = $this->Get_Notes_Table(); \n // Charset string\n\t\t$charset_collate = $wpdb->get_charset_collate();\n // SQL for the entries table\n $entries_notes_table_sql = \"CREATE TABLE $entry_notes_table (\n\t\t\tid bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,\n\t\t\tuuid varchar(255) NOT NULL,\n entry_uuid varchar(255) NOT NULL,\n form_uuid varchar(255) NOT NULL,\n note_data longtext NULL,\n time_created bigint(20) UNSIGNED NOT NULL,\n time_modified bigint(20) UNSIGNED NULL,\n date_created date NOT NULL,\n date_modifed date NULL,\n\t\t\tPRIMARY KEY (id)\n\t\t) \".$charset_collate.\";\"; \n // Use the dbdelta to compare and upgrade\n dbDelta($entries_notes_table_sql);\n }", "function uf_create_release_db_libre_V_3_58()\r\n\t{\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\t//\t Function: uf_create_release_db_libre_V_3_58\r\n\t\t//\t\t Access: public \r\n\t\t// Modulos: Activos Fijos\r\n\t\t//\t Description: \r\n\t\t// Fecha Creacion: 05/05/2008 \t\t\t\t\t\t\t\tFecha Ultima Modificacion : \r\n\t\t////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t $lb_valido=true;\r\n\t $ls_sql=\"\";\r\n\t switch($_SESSION[\"ls_gestor\"])\r\n\t {\r\n\t\t\tcase \"MYSQL\": \t\t\t \r\n\t\t\t\t $ls_sql= \" create table saf_autsalida( \".\r\n\t\t\t\t\t\t\" codemp char(4) not null, \".\r\n\t\t\t\t\t\t\" cmpsal char(15) not null, \".\r\n\t\t\t\t\t\t\" coduniadm varchar(10) not null, \".\r\n\t\t\t\t\t\t\" fecaut date not null, \".\r\n\t\t\t\t\t\t\" codpro varchar(10) not null, \".\r\n\t\t\t\t\t\t\" codrep varchar(10) not null, \".\r\n\t\t\t\t\t\t\" fecent date not null, \".\r\n\t\t\t\t\t\t\" fecdev date not null, \".\r\n\t\t\t\t\t\t\" estprosal smallint default 0, \".\r\n\t\t\t\t\t\t\" consal varchar(500), \".\r\n\t\t\t\t\t\t\" obssal varchar(500), \".\r\n\t\t\t\t\t\t\" primary key (codemp, cmpsal, coduniadm, fecaut)) \".\r\n\t\t\t\t\t\t\" ENGINE = InnoDB CHAR SET `utf8` COLLATE `utf8_general_ci`; \";\r\n\t\t\t break;\r\n\t\t\t \r\n\t\t\tcase \"POSTGRE\":\r\n\t\t\t $ls_sql=\t\" CREATE TABLE saf_autsalida( \".\r\n\t\t\t\t\t\t\" codemp character(4) NOT NULL, \".\r\n\t\t\t\t\t\t\" cmpsal character varying(15) NOT NULL, \".\r\n\t\t\t\t\t\t\" coduniadm character varying(10) NOT NULL, \".\r\n\t\t\t\t\t\t\" codpro character varying(10) NOT NULL, \".\r\n\t\t\t\t\t\t\" codrep character varying(10) NOT NULL, \".\r\n\t\t\t\t\t\t\" fecaut date NOT NULL, \".\r\n\t\t\t\t\t\t\" fecent date NOT NULL, \".\r\n\t\t\t\t\t\t\" fecdev date NOT NULL, \".\r\n\t\t\t\t\t\t\" estprosal smallint DEFAULT 0, \".\r\n\t\t\t\t\t\t\" consal character varying(500), \".\r\n\t\t\t\t\t\t\" obssal character varying(500), \".\r\n\t\t\t\t\t\t\" CONSTRAINT pk_saf_autsalida PRIMARY KEY (codemp, cmpsal, coduniadm, fecaut), \".\r\n\t\t\t\t\t\t\" CONSTRAINT fk_tepuy_empresa__saf_autsal foreign key (codemp) REFERENCES tepuy_empresa (codemp) \".\r\n \" on delete restrict on update restrict) \".\r\n\t\t\t\t\t\t\" WITHOUT OIDS;\";\r\n\t\t\t break;\r\n\t\t}\t\r\n\t\t$li_row=$this->io_sql->execute($ls_sql);\r\n\t\tif($li_row===false)\r\n\t\t{ \r\n\t\t\t $this->io_msg->message(\"Problemas al ejecutar Release 3.58\");\r\n\t\t\t $lb_valido=false;\r\n\t\t}\r\n \t //-----------------------------------------------------------------------------------------------------------------------\r\n\t $ls_sql=\"\";\r\n\t\tswitch($_SESSION[\"ls_gestor\"])\r\n\t\t {\r\n\t\t\t\t case \"MYSQL\":\r\n\t\t\t\t $ls_sql= \" ALTER TABLE saf_autsalida \".\r\n\t\t\t\t \t\t\t\" ADD constraint fk_tepuy_empresa_saf_autsalida foreign key (codemp) \".\r\n\t\t\t\t\t\t \" references tepuy_empresa (codemp) on delete restrict on update restrict\";\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t $li_row=$this->io_sql->execute($ls_sql);\r\n\t\t\t\t\tif($li_row===false)\r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\t $this->io_msg->message(\"Problemas al ejecutar Release 3.58-1 -->Ver el tipo de las Tablas<--\");\r\n\t\t\t\t\t\t $lb_valido=false;\r\n\t\t\t\t\t}\t\t\t\t\t\t\t \r\n\t\t\t\t break;\t\t\t\r\n\t\t\t}\r\n\t //-----------------------------------------------------------------------------------------------------------------------\r\n\t $ls_sql=\"\";\r\n\t\t switch($_SESSION[\"ls_gestor\"])\r\n\t {\r\n\r\n\t\t\tcase \"MYSQL\": \t\t\t \r\n\t\t\t\t $ls_sql= \" create table saf_dt_autsalida( \".\r\n\t\t\t\t\t\t\" codemp char(4) not null, \".\r\n\t\t\t\t\t\t\" cmpsal char(15) not null, \".\r\n\t\t\t\t\t\t\" coduniadm varchar(10) not null, \".\r\n\t\t\t\t\t\t\" fecaut date not null, \".\r\n\t\t\t\t\t\t\" codact char(15) not null, \".\r\n\t\t\t\t\t\t\" ideact char(15) not null, \".\r\n\t\t\t\t\t\t\" primary key (codemp, cmpsal, coduniadm, fecaut, codact, ideact)) \".\r\n\t\t\t\t\t\t\" ENGINE = InnoDB CHAR SET `utf8` COLLATE `utf8_general_ci`; \";\r\n\t\t\t break;\r\n\t\t\t \r\n\t\t\tcase \"POSTGRE\":\r\n\t\t\t $ls_sql=\t\" CREATE TABLE saf_dt_autsalida( \".\r\n\t\t\t\t\t\t\" codemp character(4) NOT NULL, \".\r\n\t\t\t\t\t\t\" cmpsal character varying(15) NOT NULL, \".\r\n\t\t\t\t\t\t\" coduniadm character varying(10) NOT NULL, \".\r\n\t\t\t\t\t\t\" fecaut date NOT NULL, \".\r\n\t\t\t\t\t\t\" codact character(15) NOT NULL, \".\r\n\t\t\t\t\t\t\" ideact character(15) NOT NULL, \".\r\n\t\t\t\t\t\t\" CONSTRAINT pk_saf_dt_autsalida PRIMARY KEY (codemp, cmpsal, coduniadm, fecaut, codact, ideact), \".\r\n\t\t\t\t\t\t\" CONSTRAINT fk_saf_dt_a_reference_saf_dta FOREIGN KEY (codemp, codact, ideact) \".\r\n\t\t\t\t\t\t\" REFERENCES saf_dta (codemp, codact, ideact) MATCH SIMPLE \".\r\n\t\t\t\t\t\t\" ON UPDATE RESTRICT ON DELETE RESTRICT, \".\r\n\t\t\t\t\t\t\" CONSTRAINT fk_saf_dta__saf_autsalida FOREIGN KEY (codemp, cmpsal, coduniadm, fecaut) \".\r\n\t\t\t\t\t\t\" REFERENCES saf_autsalida (codemp, cmpsal, coduniadm, fecaut) MATCH SIMPLE \".\r\n\t\t\t\t\t\t\" ON UPDATE RESTRICT ON DELETE RESTRICT) \".\r\n\t\t\t\t\t\t\" WITHOUT OIDS;\";\r\n\t\t\t break;\r\n\t\t }\t\r\n\t\t $li_row=$this->io_sql->execute($ls_sql);\r\n\t\t if($li_row===false)\r\n\t\t { \r\n\t\t\t $this->io_msg->message(\"Problemas al ejecutar Release 3.58 - 2 \");\r\n\t\t\t $lb_valido=false;\r\n\t\t }\r\n\t \r\n\t //-----------------------------------------------------------------------------------------------------------------------\r\n\t $ls_sql=\"\";\r\n\t\tswitch($_SESSION[\"ls_gestor\"])\r\n\t\t {\r\n\t\t\t\t case \"MYSQL\":\r\n\t\t\t\t $ls_sql= \" ALTER TABLE saf_dt_autsalida \".\r\n\t\t\t\t \t\t\t\" ADD constraint fk_saf_autsalida__saf_dt_autsal foreign key (codemp, cmpsal, coduniadm, fecaut) \".\r\n\t\t\t\t\t\t \" references saf_autsalida (codemp, cmpsal, coduniadm, fecaut) \".\r\n\t\t\t\t\t\t\t\" on delete restrict on update restrict, \".\r\n\t\t\t\t\t\t \" ADD constraint fk_saf_dta__saf_dt_autsalida foreign key (codemp, codact, ideact) \".\r\n\t\t\t\t\t\t \" references saf_dta (codemp, codact, ideact) on delete restrict on update restrict\";\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t $li_row=$this->io_sql->execute($ls_sql);\r\n\t\t\t\t\tif($li_row===false)\r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\t $this->io_msg->message(\"Problemas al ejecutar Release 3.58-3 -->Ver el tipo de las Tablas<--\");\r\n\t\t\t\t\t\t $lb_valido=false;\r\n\t\t\t\t\t}\t\t\t\t\t\t\t \r\n\t\t\t\t break;\t\t\t\r\n\t\t\t}\r\n\t //-----------------------------------------------------------------------------------------------------------------------\r\n\t return $lb_valido;\t\r\n\t}", "function tptn_install() {\r\n global $wpdb;\r\n global $tptn_db_version;\r\n\r\n $table_name = $wpdb->prefix . \"top_ten\";\r\n $table_name_daily = $wpdb->prefix . \"top_ten_daily\";\r\n \r\n if($wpdb->get_var(\"show tables like '$table_name'\") != $table_name) {\r\n \r\n\t$sql = \"CREATE TABLE \" . $table_name . \" (\r\n\t\taccessedid int NOT NULL AUTO_INCREMENT,\r\n\t\tpostnumber int NOT NULL,\r\n\t\tcntaccess int NOT NULL,\r\n\t\tPRIMARY KEY (accessedid)\r\n\t);\";\r\n\r\n\trequire_once(ABSPATH . 'wp-admin/includes/upgrade.php');\r\n\tdbDelta($sql);\r\n\t\r\n\tadd_option(\"tptn_db_version\", $tptn_db_version);\r\n }\r\n \r\n if($wpdb->get_var(\"show tables like '$table_name_daily'\") != $table_name_daily) {\r\n \r\n\t$sql = \"CREATE TABLE \" . $table_name_daily . \" (\r\n\t\taccessedid int NOT NULL AUTO_INCREMENT,\r\n\t\tpostnumber int NOT NULL,\r\n\t\tcntaccess int NOT NULL,\r\n\t\tdp_date date NOT NULL,\r\n\t\tPRIMARY KEY (accessedid)\r\n\t);\";\r\n\r\n\trequire_once(ABSPATH . 'wp-admin/includes/upgrade.php');\r\n\tdbDelta($sql);\r\n\t\r\n\tadd_option(\"tptn_db_version\", $tptn_db_version);\r\n }\r\n \r\n // Upgrade table code\r\n $installed_ver = get_option( \"tptn_db_version\" );\r\n\r\n if( $installed_ver != $tptn_db_version ) {\r\n\r\n\t$sql = \"CREATE TABLE \" . $table_name . \" (\r\n\t\taccessedid int NOT NULL AUTO_INCREMENT,\r\n\t\tpostnumber int NOT NULL,\r\n\t\tcntaccess int NOT NULL,\r\n\t\tPRIMARY KEY (accessedid)\r\n\t);\";\r\n\r\n require_once(ABSPATH . 'wp-admin/includes/upgrade.php');\r\n dbDelta($sql);\r\n\t \r\n\t$sql = \"DROP TABLE $table_name_daily\";\r\n\t$wpdb->query($sql);\r\n\t\r\n\t$sql = \"CREATE TABLE \" . $table_name_daily . \" (\r\n\t\taccessedid int NOT NULL AUTO_INCREMENT,\r\n\t\tpostnumber int NOT NULL,\r\n\t\tcntaccess int NOT NULL,\r\n\t\tdp_date date NOT NULL,\r\n\t\tPRIMARY KEY (accessedid)\r\n\t);\";\r\n\r\n require_once(ABSPATH . 'wp-admin/includes/upgrade.php');\r\n dbDelta($sql);\r\n\r\n update_option( \"tptn_db_version\", $tptn_db_version );\r\n }\r\n\r\n}", "public function setUpDatabaseTables()\n {\n $table = new DModuleTable();\n $table -> setName(\"currencies\");\n $table -> addBigIncrements( \"id\" , true );\n $table -> addString( \"base\" , true);\n $table -> addLongText( 'rates' , true);\n $table -> addDateTime( 'added' , true );\n $table -> addBoolean( 'status' , true);\n $table -> addString( \"extra\" , false);\n $table -> addString( \"extra2\" , false);\n $this -> addTable( $table );\n }", "function investigate_table($db_no=null,$db_name=null,$inst=null){\n// also insert the fields of the table into wise2.wise2_vwmldbm_fd\n\t\n\tif(!$inst) $inst=$_SESSION['vwmldbm_inst'];\n\tglobal $conn,$DB,$DTB_PRE,$TB_PRE,$VWMLDBM;\n// SJH_MOD \n\tif($TB_PRE==\"\" || $TB_PRE==null) $sql=\"select table_name from information_schema.tables where table_schema='$DB' and table_name like '%'\";\n\telse $sql=\"select table_name from information_schema.tables where table_schema='$DB' and table_name like '$TB_PRE\".\"\\_%'\";\n\t\n\t$res=mysqli_query($conn,$sql);\n\tif($res) {\n\t\twhile($rs=mysqli_fetch_array($res)){\t\t\n\t\t // check if the table is already in the {$DTB_PRE}vwmldbm_tb, then the table can be skipped.\n\t\t\t$sql=\"select no from {$DTB_PRE}vwmldbm_tb where DB='$db_no' and name = '{$rs[0]}'\";\n\t\t\t$res_check=mysqli_query($conn,$sql);\n\t\t\tif($res_check) {\n\t\t\t\t$rs_check=mysqli_fetch_array($res_check);\n\t\t\t\tinsert_fields($db_name,$rs[0],'NO_SILENT',$inst); // check and insert all the fields of a new table or any newly added field of the table.\n\t\t\t\tdelete_fields($db_name,$rs[0],'NO_SILENT',$inst); // check and delete unnecessary fields of a table.\n\t\t\t}\n\t\t // end of check \n\n\t\t\t$tb_type=type_of_table($DB,$TB_PRE,$rs[0]); // type of the table\n\t\t\t\n\t\t // update or newly insert sql_txt\n\t\t\t$sql=\"SHOW CREATE TABLE $db_name.$rs[0]\"; \t// table creation SQL\t\t\n\t\t\t$res1=mysqli_query($conn,$sql);\n\t\t\tif($res1) $rs1=mysqli_fetch_array($res1);\n\t\t\t\n\t\t\tif($rs_check['no']!='') // update sql_txt\n\t\t\t\t$sql=\"update {$DTB_PRE}vwmldbm_tb set sql_txt=\\\"{$rs1[1]}\\\", type='$tb_type' where DB='$db_no' and name='{$rs[0]}'\";\t\n\t\t\telse // newly insert\n\t\t\t\t$sql=\"insert into {$DTB_PRE}vwmldbm_tb (DB,name,type,sql_txt) values($db_no,\\\"{$rs[0]}\\\",'$tb_type',\\\"{$rs1[1]}\\\")\";\t\n\t\t\tmysqli_query($conn,$sql);\n\t\t}\n\t}\t\n}", "private function activateCreateAlterTables()\n {\n $PluginDbStructure = new \\RdDownloads\\App\\Models\\PluginDbStructure();\n $schemas = $PluginDbStructure->get();\n unset($PluginDbStructure);\n\n if (is_array($schemas) && !empty($schemas) && !is_null($this->getDbVersion())) {\n global $wpdb;\n // require file that needs for use dbDelta() function.\n require_once ABSPATH . '/wp-admin/includes/upgrade.php';\n\n foreach ($schemas as $index => $item) {\n if (isset($item['statement']) && isset($item['tablename'])) {\n $sql = str_replace('%TABLE%', $item['tablename'], $item['statement']);\n\n if (isset($item['is_multisite']) && $item['is_multisite'] === true) {\n // if set to multisite table then it will create prefix_sitenumber_tablename.\n $prefix = $wpdb->prefix;\n } else {\n // if set not to multisite then it will create prefix_tablename.\n $prefix = $wpdb->base_prefix;\n }\n\n $sql = str_replace('%PREFIX%', $prefix, $sql);\n dbDelta($sql);\n unset($sql);\n\n if (function_exists('maybe_convert_table_to_utf8mb4')) {\n maybe_convert_table_to_utf8mb4($prefix . $item['tablename']);\n }\n unset($prefix);\n }\n }// endforeach;\n unset($index, $item);\n }\n\n unset($schemas);\n }", "function install_main_table() {\n global $wpdb;\n\n $charset_collate = '';\n if ( ! empty($wpdb->charset) )\n $charset_collate = \"DEFAULT CHARACTER SET $wpdb->charset\";\n if ( ! empty($wpdb->collate) )\n $charset_collate .= \" COLLATE $wpdb->collate\";\t\n $table_name = $wpdb->prefix . \"store_locator\";\n $sql = \"CREATE TABLE $table_name (\n sl_id mediumint(8) unsigned NOT NULL auto_increment,\n sl_store varchar(255) NULL,\n sl_address varchar(255) NULL,\n sl_address2 varchar(255) NULL,\n sl_city varchar(255) NULL,\n sl_state varchar(255) NULL,\n sl_zip varchar(255) NULL,\n sl_country varchar(255) NULL,\n sl_latitude varchar(255) NULL,\n sl_longitude varchar(255) NULL,\n sl_tags mediumtext NULL,\n sl_description text NULL,\n sl_email varchar(255) NULL,\n sl_url varchar(255) NULL,\n sl_hours varchar(255) NULL,\n sl_phone varchar(255) NULL,\n sl_fax varchar(255) NULL,\n sl_image varchar(255) NULL,\n sl_private varchar(1) NULL,\n sl_neat_title varchar(255) NULL,\n sl_linked_postid int NULL,\n sl_pages_url varchar(255) NULL,\n sl_pages_on varchar(1) NULL,\n sl_option_value longtext NULL,\n sl_lastupdated timestamp NOT NULL default current_timestamp,\t\t\t\n PRIMARY KEY (sl_id),\n KEY (sl_store(255)),\n KEY (sl_longitude(255)),\n KEY (sl_latitude(255))\n ) \n $charset_collate\n \";\n\n // If we updated an existing DB, do some mods to the data\n //\n if ($this->dbupdater($sql,$table_name) === 'updated') {\n // We are upgrading from something less than 2.0\n //\n if (floatval($this->db_version_on_start) < 2.0) {\n dbDelta(\"UPDATE $table_name SET sl_lastupdated=current_timestamp \" . \n \"WHERE sl_lastupdated < '2011-06-01'\"\n );\n } \n if (floatval($this->db_version_on_start) < 2.2) {\n dbDelta(\"ALTER $table_name MODIFY sl_description text \");\n }\n } \n\n //set up google maps v3\n $old_option = get_option('sl_map_type');\n $new_option = 'roadmap';\n switch ($old_option) {\n case 'G_NORMAL_MAP':\n $new_option = 'roadmap';\n break;\n case 'G_SATELLITE_MAP':\n $new_option = 'satellite';\n break;\n case 'G_HYBRID_MAP':\n $new_option = 'hybrid';\n break;\n case 'G_PHYSICAL_MAP':\n $new_option = 'terrain';\n break;\n default:\n $new_option = 'roadmap';\n break;\n }\n update_option('sl_map_type', $new_option);\n }", "function uf_create_release_db_libre_V_3_57()\r\n\t{\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\t//\t Function: uf_create_release_db_libre_V_3_57\r\n\t\t//\t\t Access: public \r\n\t\t// Modulos: Activos Fijos\r\n\t\t//\t Description: \r\n\t\t// Fecha Creacion: 05/05/2008 \t\t\t\t\t\t\t\tFecha Ultima Modificacion : \r\n\t\t////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t $lb_valido=true;\r\n\t $ls_sql=\"\";\r\n\t switch($_SESSION[\"ls_gestor\"])\r\n\t {\r\n\t\t\tcase \"MYSQL\":\r\n \t\t\t $ls_sql= \" create table saf_prestamo( \".\r\n\t\t\t\t\t \" codemp char(4) not null, \".\r\n\t\t\t\t\t \" cmppre char(15) not null, \".\r\n\t\t\t\t\t\t\" coduniced varchar(10) not null, \".\r\n\t\t\t\t\t\t\" codunirec varchar(10) not null, \".\r\n\t\t\t\t\t\t\" fecpreact date not null, \".\r\n\t\t\t\t\t\t\" codtespre varchar(10) not null, \".\r\n\t\t\t\t\t\t\" codresced varchar(10) not null, \".\r\n\t\t\t\t\t\t\" codresrec varchar(10) not null, \".\r\n\t\t\t\t\t\t\" estpropre smallint default 0, \".\r\n\t\t\t\t\t\t\" obspre varchar(500), \".\r\n\t\t\t\t\t\t\" primary key (codemp, cmppre, coduniced, codunirec, fecpreact))\".\r\n\t\t\t\t\t\t\" ENGINE = InnoDB CHAR SET `utf8` COLLATE `utf8_general_ci`;\"; \r\n\t\t\t break;\r\n\t\t\t \r\n\t\t\tcase \"POSTGRE\":\r\n\t\t\t $ls_sql=\t\" CREATE TABLE saf_prestamo(\".\r\n\t\t\t\t\t\t\" codemp character(4) NOT NULL,\".\r\n\t\t\t\t\t\t\" cmppre character varying(15) NOT NULL, \".\r\n\t\t\t\t\t\t\" coduniced character varying(10) NOT NULL, \".\r\n\t\t\t\t\t\t\" codunirec character varying(10) NOT NULL, \".\r\n\t\t\t\t\t\t\" codresced character varying(10) NOT NULL, \".\r\n\t\t\t\t\t\t\" codresrec character varying(10) NOT NULL, \".\r\n\t\t\t\t\t\t\" codtespre character varying(10) NOT NULL, \".\r\n\t\t\t\t\t\t\" fecpreact date NOT NULL, \".\r\n\t\t\t\t\t\t\" estpropre smallint DEFAULT 0, \".\r\n\t\t\t\t\t\t\" obspre character varying(500), \".\r\n\t\t\t\t\t\t\" CONSTRAINT pk_saf_prestamo PRIMARY KEY (codemp, cmppre, coduniced, codunirec, fecpreact), \".\r\n\t\t\t\t\t\t\" CONSTRAINT fk_saf_pres_fk_tepuy_tepuy_e FOREIGN KEY (codemp) \".\r\n\t\t\t\t\t\t\" REFERENCES tepuy_empresa (codemp) MATCH SIMPLE \".\r\n\t\t\t\t\t\t\" ON UPDATE RESTRICT ON DELETE RESTRICT) \".\r\n\t\t\t\t\t\t\" WITHOUT OIDS;\";\r\n\t\t\t break;\r\n\t\t}\t\r\n\t\t$li_row=$this->io_sql->execute($ls_sql);\r\n\t\tif($li_row===false)\r\n\t\t{ \r\n\t\t\t $this->io_msg->message(\"Problemas al ejecutar Release 3.57\");\r\n\t\t\t $lb_valido=false;\r\n\t\t}\r\n\t\t///-------------------------------------------------------------------------------------------------------------\r\n\t\t$ls_sql=\"\";\r\n\t\tswitch($_SESSION[\"ls_gestor\"])\r\n\t\t {\r\n\t\t\t\t case \"MYSQL\":\r\n\t\t\t\t $ls_sql= \" ALTER TABLE saf_prestamo \".\r\n\t\t\t\t \t\t\t\" ADD constraint fk_tepuy_empresa__saf_prestamo foreign key (codemp) \".\r\n\t\t\t\t\t\t \" references tepuy_empresa (codemp) on delete restrict on update restrict \";\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t $li_row=$this->io_sql->execute($ls_sql);\r\n\t\t\t\t\tif($li_row===false)\r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\t $this->io_msg->message(\"Problemas al ejecutar Release 3.57-1 -->Ver el tipo de las Tablas<--\");\r\n\t\t\t\t\t\t $lb_valido=false;\r\n\t\t\t\t\t}\t\t\t\t\t\t\t \r\n\t\t\t\t break;\t\t\t\r\n\t\t\t}\r\n\t\t//---------------------------------------------------------------------------------------------------------\t\r\n\t\t $ls_sql=\"\";\r\n\t switch($_SESSION[\"ls_gestor\"])\r\n\t {\r\n\t\t\tcase \"MYSQL\":\r\n \t\t\t $ls_sql= \" create table saf_dt_prestamo( \".\r\n\t\t\t\t\t\t\" codemp char(4) not null, \".\r\n\t\t\t\t\t\t\" cmppre char(15) not null, \".\r\n\t\t\t\t\t\t\" coduniced varchar(10) not null, \".\r\n\t\t\t\t\t\t\" codunirec varchar(10) not null, \".\r\n\t\t\t\t\t\t\" fecpreact date not null, \".\r\n\t\t\t\t\t\t\" codact char(15) not null, \".\r\n\t\t\t\t\t\t\" ideact char(15) not null, \".\r\n\t\t\t\t\t\t\" primary key (codemp, cmppre, coduniced, codunirec, fecpreact, codact, ideact)) \".\r\n\t\t\t\t\t\t\" ENGINE = InnoDB CHAR SET `utf8` COLLATE `utf8_general_ci`;\";\r\n\t\t\t break;\r\n\t\t\t \r\n\t\t\tcase \"POSTGRE\":\r\n\t\t\t $ls_sql=\t\" CREATE TABLE saf_dt_prestamo( \".\r\n\t\t\t\t\t\t\" codemp character(4) NOT NULL, \".\r\n\t\t\t\t\t\t\" cmppre character varying(15) NOT NULL, \".\r\n\t\t\t\t\t\t\" coduniced character varying(10) NOT NULL, \".\r\n\t\t\t\t\t\t\" codunirec character varying(10) NOT NULL, \".\r\n\t\t\t\t\t\t\" fecpreact date NOT NULL, \".\r\n\t\t\t\t\t\t\" codact character(15) NOT NULL, \".\r\n\t\t\t\t\t\t\" ideact character(15) NOT NULL, \".\r\n\t\t\t\t\t\t\" CONSTRAINT pk_saf_dt_prestamo PRIMARY KEY (codemp, cmppre, coduniced, codunirec, fecpreact, codact, ideact), \".\r\n\t\t\t\t\t\t\" CONSTRAINT fk_saf_dt_p_fk_saf_dt_saf_pres FOREIGN KEY (codemp, cmppre, coduniced, codunirec, fecpreact) \".\r\n\t\t\t\t\t\t\" REFERENCES saf_prestamo (codemp, cmppre, coduniced, codunirec, fecpreact) MATCH SIMPLE \".\r\n\t\t\t\t\t\t\" ON UPDATE RESTRICT ON DELETE RESTRICT, \".\r\n\t\t\t\t\t\t\" CONSTRAINT fk_saf_dt_pres__saf_dta FOREIGN KEY (codemp, codact, ideact) \".\r\n\t\t\t\t\t\t\" REFERENCES saf_dta (codemp, codact, ideact) MATCH SIMPLE \".\r\n\t\t\t\t\t\t\" ON UPDATE RESTRICT ON DELETE RESTRICT) \".\r\n\t\t\t\t\t\t\" WITHOUT OIDS;\";\r\n\t\t\t break;\r\n\t\t }\t\r\n\t\t $li_row=$this->io_sql->execute($ls_sql);\r\n\t\t if($li_row===false)\r\n\t\t { \r\n\t\t\t $this->io_msg->message(\"Problemas al ejecutar Release 3.57 - 2\");\r\n\t\t\t $lb_valido=false;\r\n\t\t }\r\n\t //-----------------------------------------------------------------------------------------------------------------------\r\n\t\t$ls_sql=\"\";\r\n\t\t switch($_SESSION[\"ls_gestor\"])\r\n\t\t {\r\n\t\t\t\t case \"MYSQL\":\r\n\t\t\t\t $ls_sql= \" ALTER TABLE saf_dt_prestamo \".\r\n\t\t\t\t \t\t\t\" ADD constraint fk_saf_prestmo__saf_dt_pres foreign \".\r\n\t\t\t\t\t\t\t\" key (codemp, cmppre, coduniced, codunirec, fecpreact) \".\r\n\t\t\t\t\t\t \" references saf_prestamo (codemp, cmppre, coduniced, \".\r\n\t\t\t\t\t\t\t\" codunirec, fecpreact) on delete restrict on update restrict, \".\r\n\t\t\t\t\t\t\t\" ADD constraint fk_saf_dta__saf_dt_pres foreign key (codemp, codact, ideact) \".\r\n\t\t\t\t\t\t \" references saf_dta (codemp, codact, ideact) on delete restrict on update restrict\";\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t $li_row=$this->io_sql->execute($ls_sql);\r\n\t\t\t\t\tif($li_row===false)\r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\t $this->io_msg->message(\"Problemas al ejecutar Release 3.57-3 -->Ver el tipo de las Tablas<--\");\r\n\t\t\t\t\t\t $lb_valido=false;\r\n\t\t\t\t\t}\t\t\t\t\t\t\t \r\n\t\t\t\t break;\t\t\t\r\n\t\t\t}\r\n\t\t//-----------------------------------------------------------------------------------------------------------------------\r\n\t return $lb_valido;\t\r\n\t}", "private function update_table( $table ) {\n\t\trequire_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n\t\t$definition = $this->get_table_definition( $table );\n\t\tif ( $definition ) {\n\t\t\t$updated = dbDelta( $definition );\n\t\t\tforeach ( $updated as $updated_table => $update_description ) {\n\t\t\t\tif ( strpos( $update_description, 'Created table' ) === 0 ) {\n\t\t\t\t\tdo_action( 'wordcamp/queue/table_maker/created_table', $updated_table, $table );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "function create_ROMP_enquiry_Db_table(){\n\t\tob_start();\n\t\t$table_name = $this->wpdb->prefix . 'romp_enquiry';\n \t$charset_collate = $this->wpdb->get_charset_collate();\n\n\t\t$sql = \"CREATE TABLE $table_name ( \n\t\t\t\t`romp_id` INT NOT NULL AUTO_INCREMENT ,\n\t\t\t\t`romp_title` TEXT NOT NULL ,\n\t\t\t\t`romp_fname` TEXT NOT NULL ,\n\t\t\t\t`romp_sname` TEXT NOT NULL ,\n\t\t\t\t`romp_landline` VARCHAR(50) NOT NULL ,\n\t\t\t\t`romp_mobile` VARCHAR(50) NOT NULL ,\n\t\t\t\t`romp_email` VARCHAR(50) NOT NULL ,\n\t\t\t\t`romp_postcode` VARCHAR(50) NOT NULL ,\n\t\t\t\t`romp_county` TEXT NOT NULL ,\n\t\t\t\t`romp_postal_town` TEXT NOT NULL ,\n\t\t\t\t`romp_street_address1` TEXT NOT NULL ,\n\t\t\t\t`romp_street_address2` TEXT NOT NULL ,\n\t\t\t\t`romp_street_address3` TEXT NOT NULL ,\n\t\t\t\t`romp_property_type` TEXT NOT NULL ,\n\t\t\t\t`romp_estimated_value` VARCHAR(50) NOT NULL ,\n\t\t\t\t`romp_estimated_secured_debts` VARCHAR(50) NOT NULL ,\n\t\t\t\t`romp_rfs` TEXT NOT NULL ,\n\t\t\t\t`romp_date_registered` DATETIME NOT NULL ,\n\t\t\t\tPRIMARY KEY (`romp_id`)\n\t\t\t) $charset_collate;\";\n\n\t\trequire_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n\t\tdbDelta( $sql );\n\t}", "function build_table_db() {\n\t\n\t// Connect to Define\n\tglobal $sql_user, $sql_pass, $sql_db, $sql_year;\n\t$link = @mysql_connect('localhost', $sql_user, $sql_pass)\n\t\tor die('Could not connect: ' . mysql_error());\n\tmysql_select_db($sql_db)\n\t\tor die('Could not select database');\n\t\t\n\t// Query DB for team information\t\n\t$query_teams = sprintf(\"SELECT year.team_name, year.tourn_id, year.opp_id, year.team_seed, year.team_region, info.team_logo, info.team_color \n\t\t\t\t\t\t\tFROM team_%s year \n\t\t\t\t\t\t\tINNER JOIN team_info info \n\t\t\t\t\t\t\tON info.team_id = year.team_id\",\n\t\t\t\t\t\t\t$sql_year);\n\t$result = mysql_query($query_teams);\n\t\n\t// Check result\n\tif (!$result) {\n\t\t$message = 'Invalid query: ' . mysql_error() . \"\\n\";\n\t\t$message = 'Whole query: ' . $query_teams;\n\t\tdie($message); \n\t}\n\t\n\t// Use result\n\twhile($row = mysql_fetch_assoc($result)) {\n\t\t$team = $row['team_name'];\n\t\t$key = $row['tourn_id'];\n\t\t$o_id = $row['opp_id'];\n\t\t$seed = $row['team_seed'];\n\t\t$region = $row['team_region'];\n\t\t$image = $row['team_logo'];\n\t\t$color = $row['team_color'];\n\t\t\n\t\t// Form arrays\n\t\t$team_array[$key] = $team;\n\t\t$o_id_array[$key] = $o_id;\n\t\t$seed_array[$key] = $seed;\n\t\t$region_array[$key] = $region;\n\t\t$image_array[$key] = $image;\n\t\t$color_array[$key] = $color;\n\t}\n\t// Free result\t\n\tmysql_free_result($result);\n\t\n\t// Fill initial bids based on seed\n\tforeach ($seed_array as $key => $value) {\n\t\tif ($value == 1 || $value == 2) {\n\t\t\t$ibid_array[$key] = \"20\";\n\t\t} elseif ($value == 3 || $value == 4) {\n\t\t\t$ibid_array[$key] = \"10\";\n\t\t} elseif ($value >= 5 && $value <= 8) {\n\t\t\t$ibid_array[$key] = \"5\";\n\t\t} elseif ($value >= 9 && $value <= 12) {\n\t\t\t$ibid_array[$key] = \"3\";\n\t\t} else {\n\t\t\t$ibid_array[$key] = \"1\";\n\t\t} // end if-else\n\t} // end foreach\n\n\t// Assemble teamInfo array\n\t$teamInfo = array(\"team\" => $team_array,\n\t\t\t\t\t \"region\" => $region_array,\n\t\t\t\t\t \"seed\" => $seed_array,\n\t\t\t\t\t \"image\" => $image_array,\n\t\t\t\t\t \"color\" => $color_array,\n\t\t\t\t\t \"initBid\" => $ibid_array,\n\t\t\t\t\t \"opp_key\" => $o_id_array);\n\t\t\t\t\t \n\t\n\t// Close connect\n\tmysql_query(\"unlock tables\");\n\tmysql_close();\n\t\n\treturn $teamInfo;\n}", "function thrive_tasks_setup_table() \n{\n\tglobal $wpdb;\n\n\t$tasks_table_name = $wpdb->prefix . THRIVE_TASKS_TABLE;\n\t\n\t$charset_collate = $wpdb->get_charset_collate();\n\n\t$tasks_table_structure = \"CREATE TABLE $tasks_table_name (\n \t\tid int(10) NOT NULL AUTO_INCREMENT,\n \t\ttitle varchar(255) NOT NULL,\n \t\tdescription text NOT NULL,\n \t\tuser int(10) NOT NULL,\n \t\tmilestone_id int(10) NOT NULL,\n \t\tproject_id int(10) NOT NULL,\n \t\tpriority int(2) NOT NULL,\n \t\tcompleted_by int(10) NOT NULL,\n \t\tdate_created timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',\n \t\tPRIMARY KEY (id)\n\t) $charset_collate ;\";\n\n\t// Include the 'upgrade' script inside WP include dir.\n\trequire_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n\n\t// Run the dbDelta function with our table specification.\n\tdbDelta( $tasks_table_structure );\n\n\tadd_option( 'thrive_tasks_table_version', THRIVE_TASKS_TABLE_VERSION );\n\n\treturn;\n}", "static function create_tables(){\n\t\t$tables = self::get_tables_name();\n\t\textract($tables);\n\t\t\n\t\t$sql[] = \"CREATE TABLE IF NOT EXISTS $cookie(\n\t\t\t\tID bigint unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY,\n\t\t\t\tcontent text(100) NOT NULL,\n\t\t\t\ttype varchar(30) NOT NULL,\n\t\t\t\tcamp_id bigint unsigned NOT NULL,\n\t\t\t\taction varchar(30) NOT NULL\t \t\t\t\n\t\t\t)\";\n\t\t\n\t\t$sql[] = \"CREATE TABLE IF NOT EXISTS $display(\n\t\t\t\tID bigint unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY,\n\t\t\t\tcontent text(100) NOT NULL,\n\t\t\t\ttype varchar(30) NOT NULL,\n\t\t\t\tcamp_id bigint unsigned NOT NULL\t\t\t\t \t\t\t\n\t\t\t)\";\n\t\t\n\t\tif(!function_exists('dbDelta')) :\n\t\t\tinclude ABSPATH . 'wp-admin/includes/upgrade.php';\n\t\tendif;\n\t\tforeach($sql as $s){\n\t\t\tdbDelta($s);\n\t\t}\n\t\t\n\t}", "function uf_create_release_db_libre_V_3_34()\r\n\t\t{\r\n\t\t\t$lb_valido=true;\r\n\t\t\t$ls_sql=\"\";\r\n\t\t\tswitch($_SESSION[\"ls_gestor\"])\r\n\t\t\t{\r\n\t\t\t\tcase \"MYSQL\":\r\n\t\t\t\t$ls_sql=\"ALTER TABLE tepuy_empresa ADD COLUMN confi_ch char(1);\";\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\tcase \"POSTGRE\":\r\n\t\t\t\t$ls_sql=\"ALTER TABLE tepuy_empresa ADD COLUMN confi_ch char(1);\";\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t$li_row=$this->io_sql->execute($ls_sql);\r\n\t\t\tif($li_row===false)\r\n\t\t\t{ \r\n\t\t\t\t $this->io_msg->message(\"Problemas al ejecutar Release 3.34\");\t\r\n\t\t\t\t $lb_valido=false;\r\n\t\t\t}\r\n\t return $lb_valido;\t\r\n\t }", "function classiera_authors_tbl_create() {\r\n\r\n global $wpdb;\r\n\r\n $sql2 = (\"CREATE TABLE IF NOT EXISTS {$wpdb->prefix}author_followers (\r\n\r\n id int(11) NOT NULL AUTO_INCREMENT,\r\n\r\n author_id int(11) NOT NULL,\r\n\r\n follower_id int(11) NOT NULL,\r\n\r\n PRIMARY KEY (id)\r\n\r\n ) ENGINE=InnoDB AUTO_INCREMENT=1;\");\r\n\r\n $wpdb->query($sql2);\r\n\r\n $sql = (\"CREATE TABLE IF NOT EXISTS {$wpdb->prefix}author_favorite (\r\n\r\n id int(11) NOT NULL AUTO_INCREMENT,\r\n\r\n author_id int(11) NOT NULL,\r\n\r\n post_id int(11) NOT NULL,\r\n\r\n PRIMARY KEY (id)\r\n\r\n ) ENGINE=InnoDB AUTO_INCREMENT=1;\");\r\n\r\n $wpdb->query($sql);\r\n\r\n}", "public static function setup_db()\r\n {\r\n $installed_ver = get_option( CART_CONVERTER . \"_db_version\" );\r\n\r\n // prevent create table when re-active plugin\r\n if ( $installed_ver != CART_CONVERTER_DB_VERSION ) {\r\n CartModel::setup_db();\r\n EmailModel::setup_db();\r\n //MailTemplateModel::setup_db();\r\n \r\n add_option( CART_CONVERTER . \"_db_version\", CART_CONVERTER_DB_VERSION );\r\n }\r\n }", "function wisataone_X1_create_plugin_database_table() {\n global $wpdb, $wisataone_X1_plugin_db_version, $wisataone_X1_tblname;\n\n $wp_track_table = $wpdb->prefix . $wisataone_X1_tblname;\n $charset_collate = $wpdb->get_charset_collate();\n\n #Check to see if the table exists already, if not, then create it\n\n if($wpdb->get_var( \"show tables like '$wp_track_table'\" ) != $wp_track_table) {\n $sql = \"CREATE TABLE {$wp_track_table} (\n id bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,\n id_tour bigint(20) NOT NULL,\n id_order bigint(20) NOT NULL,\n current_step integer DEFAULT 0,\n booking_date DATETIME DEFAULT NULL,\n order_datetime DATETIME DEFAULT NULL,\n\n traveler_name VARCHAR(191) NOT NULL,\n traveler_email VARCHAR(191) NOT NULL,\n tour_name VARCHAR(191) NOT NULL,\n destination VARCHAR(191) NOT NULL,\n price bigint(20) NOT NULL,\n trip_date DATETIME NOT NULL,\n duration INTEGER DEFAULT 0,\n number_of_traveler integer NOT NULL,\n\n email_p_10 DATETIME DEFAULT NULL,\n email_p_10_h3 DATETIME DEFAULT NULL,\n email_p_10_h6 DATETIME DEFAULT NULL,\n email_p_10_h7 DATETIME DEFAULT NULL,\n email_s_10 DATETIME DEFAULT NULL,\n email_c_10 DATETIME DEFAULT NULL,\n\n email_p_50 DATETIME DEFAULT NULL,\n email_p_50_h3 DATETIME DEFAULT NULL,\n email_p_50_h6 DATETIME DEFAULT NULL,\n email_p_50_h7 DATETIME DEFAULT NULL,\n email_c_50 DATETIME DEFAULT NULL,\n email_s_50 DATETIME DEFAULT NULL,\n\n email_p_40 DATETIME DEFAULT NULL,\n email_p_40_h3 DATETIME DEFAULT NULL,\n email_p_40_h6 DATETIME DEFAULT NULL,\n email_p_40_h7 DATETIME DEFAULT NULL,\n email_s_40 DATETIME DEFAULT NULL,\n email_c_40 DATETIME DEFAULT NULL,\n\n ts_payment_10 DATETIME DEFAULT NULL,\n ts_payment_50 DATETIME DEFAULT NULL,\n ts_payment_40 DATETIME DEFAULT NULL,\n\n email_kuota_terpenuhi DATETIME DEFAULT NULL,\n email_kuota_tidak_terpenuhi DATETIME DEFAULT NULL,\n email_kuota_gagal_batas_h_45 DATETIME DEFAULT NULL,\n\n PRIMARY KEY (id)\n ) {$charset_collate};\";\n require_once( ABSPATH . '/wp-admin/includes/upgrade.php' );\n dbDelta($sql);\n add_option('wisataone_X1_plugin_db_version', $wisataone_X1_plugin_db_version);\n }\n}", "function thrive_comments_setup_table() \n{\n\tglobal $wpdb;\n\n\t$comments_table_name = $wpdb->prefix . THRIVE_COMMENTS_TABLE;\n\t\n\t$charset_collate = $wpdb->get_charset_collate();\n\n\t$comments_table_structure = \"CREATE TABLE $comments_table_name (\n\t\t \tid int(10) NOT NULL AUTO_INCREMENT,\n\t\t \tdetails text NOT NULL,\n\t\t \tuser int(10) NOT NULL,\n\t\t \tticket_id int(10) NOT NULL,\n\t\t \tstatus int(11) NOT NULL DEFAULT '0',\n\t\t \tdate_added timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n\t\t \tPRIMARY KEY (id)\n\t\t) $charset_collate\";\n\n\t// Include the 'upgrade' script inside WP include dir.\n\trequire_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n\n\t// Run the dbDelta function with our table specification.\n\tdbDelta( $comments_table_structure );\n\n\tadd_option( 'thrive_comments_table_version', THRIVE_COMMENTS_TABLE_VERSION );\n\n\treturn;\n}", "function create_tbl_woo2app_nazar(){\r global $wpdb;\r $charset_collate = $wpdb->get_charset_collate();\r $table_name = $wpdb->prefix . 'woo2app_nazar';\r $sql = \"CREATE TABLE $table_name (\r\t\tid bigint(20) NOT NULL AUTO_INCREMENT,\r\t\tPRIMARY KEY (id),\r\t\ttitle TEXT NOT NULL ,\r\t\ttype tinyint(4) NOT NULL,\r\t\tvalue TEXT NOT NULL,\r\t\tdisable tinyint(4) NOT NULL\r\t) $charset_collate;\";\r require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\r dbDelta( $sql );\r add_option( 'woo2app_version', '1.3' );\r }", "function setup_db($_db_path)\n{\n\t$create_table = !file_exists($_db_path);\n\t$db = new PDO('sqlite:'.$_db_path);\n\tif ($create_table)\n\t{\n\t\t$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\t$db->exec('CREATE TABLE IF NOT EXISTS labels (\n\t\t\tid integer primary key,\n\t\t\tlabel varchar(128),\n\t\t\tdetails varchar(255)\n\t\t)');\n\t\t$db->exec(\"INSERT INTO labels (id,label,details) VALUES(1,'1.3','***version***')\");\n\t\t$db->exec('CREATE TABLE IF NOT EXISTS results (\n\t\t\tbranch integer,\n\t\t\tscript integer,\n\t\t\tsuite integer,\n\t\t\ttest integer,\n\t\t\tsuccess integer DEFAULT NULL,\n\t\t\tfirst_failed integer DEFAULT NULL,\n\t\t\tfailed integer DEFAULT NULL,\n\t\t\tdetails text,\n\t\t\tupdated timestamp DEFAULT CURRENT_TIMESTAMP,\n\t\t\ttime real DEFAULT NULL,\n\t\t\tprotocol text,\n\t\t\tnotes text,\n\t\t\tPRIMARY KEY(branch,script,suite,test)\n\t\t)');\n\t}\n\t// update schema, if necessary\n\tswitch($db->query('SELECT label FROM labels WHERE id=1')->fetchColumn())\n\t{\n\t\tcase '1.0':\n\t\t\t$db->exec('ALTER TABLE results ADD COLUMN time real DEFAULT NULL');\n\t\t\t// fall through\n\t\tcase '1.1':\n\t\t\t$db->exec('ALTER TABLE results ADD COLUMN protocol text');\n\t\t\t// fall through\n\t\tcase '1.2':\n\t\t\t$db->exec('ALTER TABLE results ADD COLUMN notes text');\n\t\t\t// update version\n\t\t\t$db->exec(\"UPDATE labels SET label='1.3' WHERE id=1\");\n\t}\n\t//error_log('schema_version='.$db->query('SELECT label FROM labels WHERE id=1')->fetchColumn());\n\n\treturn $db;\n}", "public function createTable()\n\t{\n\t\t$app = Factory::getApplication();\n\n\t\tif ($app->isSite())\n\t\t{\n\t\t\techo 'Error creating DB table - Need to run this in admin area';\n\n\t\t\treturn;\n\t\t}\n\n\t\t$user = Factory::getUser();\n\n\t\tif (!$user->authorise('core.admin'))\n\t\t{\n\t\t\techo 'Error creating DB table - You need to be superadmin user to exeacute this task';\n\n\t\t\treturn;\n\t\t}\n\n\t\t$jinput = $app->input;\n\t\t$context = $jinput->get->get('context', '', 'cmd');\n\n\t\tif (empty($context))\n\t\t{\n\t\t\techo 'Error creating DB table - No context is passed';\n\n\t\t\treturn;\n\t\t}\n\n\t\t$model = $this->getModel('indexer');\n\t\t$model->createTable($context);\n\t}", "public static function install()\n\t{\n\t\tdb::query(\"\n\t\t\tcreate table if not exists `\".self::$table.\"` (\n\t\t\t\t`day` int(10) unsigned not null,\n\t\t\t\t`topics` int(10) unsigned not null default 0, \n\t\t\t\t`replies` int(10) unsigned not null default 0, \n\t\t\t\t`registrations` int(10) unsigned not null default 0, \n\t\t\t\t`online` int(10) unsigned not null default 0, \n\n\t\t\t\tprimary key (`day`)\n\t\t\t) default charset=utf8;\n\t\t\");\n\t}", "protected function setUpTable()\n {\n if (!Schema::hasTable($this->TABLE)){\n Schema::create($this->TABLE, function (Blueprint $table) {\n $table->string(self::ID)->primary();\n $table->string(self::TEXT);\n $table->integer(self::DATE);\n $table->string(self::SENDER_ID);\n $table->string(self::RECIPIENT_ID);\n });\n }\n }", "public static function generateDatabase()\n\t{\n\t\t$entities\t=\tself::getEntities();\n\t\t$query\t\t=\tself::$current_db->query('SHOW TABLES');\n\t\t$tables\t\t=\tarray();\n\n\t\twhile($table = $query->fetch(\\PDO::FETCH_NUM))\n\t\t\t$tables[]\t=\tstrtolower($table[0]);\n\n\t\tforeach($entities as $entity)\n\t\t{\n\t\t\tif( ! in_array(strtolower($entity::getTableName()), $tables))\n\t\t\t\t$entity::createTable();\n\t\t\telse\n\t\t\t\t$entity::updateTable();\n\t\t}\n\t}" ]
[ "0.6628572", "0.6463107", "0.6438058", "0.6316218", "0.6302134", "0.6282377", "0.62579906", "0.61908066", "0.6152672", "0.61484313", "0.6133841", "0.6083761", "0.60749304", "0.6071012", "0.6008899", "0.6003721", "0.5992757", "0.59876746", "0.59823155", "0.5982067", "0.5978205", "0.5965886", "0.5956014", "0.5948311", "0.5943311", "0.59337264", "0.5918022", "0.5894439", "0.5873498", "0.58725303", "0.5849882", "0.5848402", "0.58449966", "0.5812453", "0.58098495", "0.5799303", "0.5798656", "0.5788574", "0.5756134", "0.5750944", "0.57486415", "0.5746767", "0.57440555", "0.5708123", "0.570266", "0.56998026", "0.5697955", "0.5695559", "0.5693527", "0.5674552", "0.5664342", "0.5661191", "0.56602126", "0.56448895", "0.5626793", "0.5625591", "0.56228125", "0.56172365", "0.56166494", "0.5609718", "0.5601992", "0.55970836", "0.5596565", "0.55948114", "0.55883986", "0.5587054", "0.5585801", "0.5585801", "0.55846405", "0.55809873", "0.5580813", "0.5579025", "0.5577606", "0.5576694", "0.55723006", "0.5571885", "0.5571677", "0.55677325", "0.55677086", "0.55565953", "0.55471486", "0.55446076", "0.55266273", "0.55218416", "0.5519996", "0.5519218", "0.5512438", "0.55077183", "0.5496574", "0.5494836", "0.54942584", "0.54904765", "0.54734933", "0.5472091", "0.54713887", "0.54698426", "0.54679376", "0.546432", "0.54633707", "0.5455739" ]
0.71884215
0
Update email, mobile and phone fields in db
function updateUppslag_callback() { $response['success'] = 1; $response['error'] = ''; !empty($_REQUEST['email']) ? $email = $_REQUEST['email'] : $email = ''; !empty($_REQUEST['phone']) ? $phone = $_REQUEST['phone'] : $phone = ''; !empty($_REQUEST['mobile']) ? $mobile = $_REQUEST['mobile'] : $mobile = ''; $_COOKIE['SSN'] != '' ? $guid = $_COOKIE['SSN'] : $guid = ''; if ($guid != '') { global $wpdb; $table_name = $wpdb->prefix . 'ep_uppslag'; $status = $wpdb->update($table_name, array('email' => $email, 'mobile' => $mobile, 'phone' => $phone), array('guid' => $guid)); if ($status != 1) { $response['success'] = 0; $response['error'] = 'db not updated'; } } else { $response['success'] = 0; $response['error'] = 'no cookie on client'; } $response['query'] = $wpdb->get_results($sql); $response = json_encode($response); header('Cache-Control: no-cache, must-revalidate'); header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Content-type: application/json'); echo $response; die(); // this is required to return a proper result }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\",email1=\\\"$this->email1\\\",address1=\\\"$this->address1\\\",lastname=\\\"$this->lastname\\\",phone1=\\\"$this->phone1\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "public function update ($id,$name,$email,$mobile) {\r\n\t\t//Precondition: email valid\r\n\t\t//\t\t\t\tid, name, mobile not null\t\r\n\t\t$pdo = Database::connect();\r\n\t\t$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\r\n\t\t$sql = \"UPDATE tdg_users set name = ?, email = ?, mobile =? WHERE id = ?\";\r\n\t\t$q = $pdo->prepare($sql);\r\n\t\t$q->execute(array($name,$email,$mobile,$id));\r\n\t\tDatabase::disconnect();\r\n\t}", "function changeUserDetail($userEmail, $firstname, $lastname, $phone){\n\n\t\tglobal $conn;\n\n\t\t$query = \"UPDATE User \n\t\tSET firstname='$firstname', lastname='$lastname', phone='$phone' \n\t\tWHERE email='\" . $userEmail . \"'\";\n\n\t\t$result = $conn->query($query);\n\n\t\tif($result != TRUE){\n\t\t\techo \"Error updating \" . $userEmail . \" details\";\n\t\t}\n\n\t}", "public function update():void\n {\n $id = $this->id;\n $first_name = $this->first_name;\n $last_name = $this->last_name;\n $image = $this->image;\n $user_type = $this->user_type;\n $address = $this->address;\n\t\t$phone = $this->phone;\n $this->fetch(\n 'UPDATE user\n SET first_name = ?,\n last_name = ?,\n image = ?,\n user_type = ?,\n address=?,\n phone=?\n WHERE id = ?;',\n [$first_name, $last_name,$image, $user_type,$address ,$phone , $id]\n );\n }", "public function update() {\n\t\t$db = Database::getInstance();\n\t\t$stmt = $db->prepare(\"UPDATE users SET mail=?, name=?, password=?, state=? WHERE id = ?\");\n\t\t$stmt->execute(array($this->mail, $this->name, $this->password, $this->state, $this->id));\n\t}", "function update($name, $email, $phone) {\n $name = $this->sanitizeMySQL($this->conn, $name);\n $email = $this->sanitizeMySQL($this->conn, $email);\n $phone = $this->sanitizeMySQL($this->conn, $phone);\n\n $this->start_session();\n $id = $_SESSION['id'];\n\n if ($name!=NULL) {\n $query = \"UPDATE users SET name='$name' WHERE id='$id'\";\n $result = $this->conn->query($query);\n if (!$result) die (\"Database access failed: \" . $this->conn->error);\n }\n\n if ($email!=NULL) {\n $query = \"UPDATE users SET email='$email' WHERE id='$id'\";\n $result = $this->conn->query($query);\n if (!$result) die (\"Database access failed: \" . $this->conn->error);\n }\n\n if ($phone!=NULL) {\n $query = \"UPDATE users SET phone='$phone' WHERE id='$id'\";\n $result = $this->conn->query($query);\n if (!$result) die (\"Database access failed: \" . $this->conn->error);\n }\n }", "public function updateRecord(){\n\t\tglobal $db;\n $data = array('email'=>$this->email);\n\t\t\t\t$response = $db->update($this->table,$data,\"id = $this->id\");\n\t\treturn $response;\n\t}", "protected function update()\n {\n $update = 'UPDATE users SET first_name = :first_name, last_name = :last_name,\n email = :email, password = :password WHERE id = :id';\n $statement = self::$dbc->prepare($update);\n foreach ($this->attributes as $key => $value) {\n $statement->bindValue(\":$key\", $value, PDO::PARAM_STR);\n }\n $statement->execute();\n }", "public function updateuserdetails($email,$txtFirstName,$txtLastName,$txtAddress1,$txtAddress2,$txtAddress3,$txtAddress4,$txtCity,$txtPin,$txtState,$txtPhone){\n\t\t$this->db->where('email', $email);\n\t\t$object= array(\n\t\t\t'address1' => $txtAddress1,\n\t\t\t'address2' => $txtAddress2,\n\t\t\t'address3' => $txtAddress3,\n\t\t\t'address4' => $txtAddress4,\n\t\t\t'city' => $txtCity,\n\t\t\t'pin' => $txtPin,\n\t\t\t'state' => $txtState\n\t\t);\n\t\t$this->db->update('tbl_useraddress', $object);\n\n\n\t\t$this->db->where('Email', $email);\n\n\t\t$obj=array(\n\t\t\t'FirstName' => $txtFirstName,\n\t\t\t'LastName' => $txtLastName,\n\t\t\t'Phonenumber' => $txtPhone\n\t\t);\n\t\t$this->db->update('tbl_userdetails', $obj);\n\n\t\treturn true;\n\t}", "public function update_emp_mobile(){\n\t\t// {\t\t\t\t\n\n\t\t// \t$mmm=$this->input->post('aaa_'.$employee_id);\n\t\t// \t$aaa=$this->input->post('aaa_201613');\n\t\n\n\t\t// \techo \"$employee_id | aaa_$employee_id <br>\";\n\n\t\t// \t// $query=$this->db->query(\"update employee_info set mobile_1='\".$mobile_1.\"',mobile_2='\".$mobile_2.\"',mobile_3='\".$mobile_3.\"',mobile_4='\".$mobile_4.\"', where employee_id='\".$employee_id.\"' \");\n\t\t// }\n\n\t}", "function update_record () {\n\t\t\n\t\t// validate input\n $valid = true;\n if (empty($this->name)) {\n $this->nameError = 'Please enter Name';\n $valid = false;\n }\n\n if (empty($this->email)) {\n $this->emailError = 'Please enter Email Address';\n $valid = false;\n } \n\n\n if (empty($this->mobile)) {\n $this->mobileError = 'Please enter Mobile Number';\n $valid = false;\n }\n\n // update data\n if ($valid) {\n $pdo = Database::connect();\n $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $sql = \"UPDATE customers SET name = ?, email = ?, mobile = ? WHERE id=\".$_GET['id'];\n $q = $pdo->prepare($sql);\n $q->execute(array($this->name,$this->email,$this->mobile));\n Database::disconnect();\n header(\"Location: customer.php\");\n }\n else {\n $this->update();\n }\n\t\n\t}", "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\",lastname=\\\"$this->lastname\\\",username=\\\"$this->username\\\",email=\\\"$this->email\\\",kind=\\\"$this->kind\\\",status=\\\"$this->status\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "public function p_edit() { if(!$this->user) {\n Router::redirect('/');\n }\n \n $this->user->user_id = DB::instance(DB_NAME)->sanitize($this->user->user_id);\n $q = 'SELECT first_name, last_name, email\n FROM users\n WHERE user_id = \"'.$this->user->user_id.'\"';\n $user = DB::instance(DB_NAME)->select_row($q);\n \n $_POST = DB::instance(DB_NAME)->sanitize($_POST);\n \n $_POST['first_name'] = htmlspecialchars($_POST['first_name'], ENT_QUOTES, 'UTF-8');\n $_POST['last_name'] = htmlspecialchars($_POST['last_name'], ENT_QUOTES, 'UTF-8');\n \n $q = 'SELECT count(*)\n FROM users\n WHERE email = \"'.$_POST['email'].'\"'; \n $count = DB::instance(DB_NAME)->select_rows($q); \n //if the user enters an email which already exists in the data base kick them back\n if(intval($count[0]['count(*)']) >= 1) {\n Router::redirect('/users/edit/error');\n } else {\n \n if($_POST['first_name'] != NULL)\n {\n $user['first_name'] = $_POST['first_name'];\n }\n if($_POST['last_name'] != NULL )\n {\n $user['last_name'] = $_POST['last_name'];\n }\n if($_POST['email'] != NULL )\n {\n $user['email'] = $_POST['email'];\n }\n \n \n \n DB::instance(DB_NAME)->update(\"users\", $user, \"WHERE user_id =\".$this->user->user_id);\n Router::redirect('/users/profile/'.$this->user->user_id);\n }\n \n \n }", "private function _update() {\n\n $this->db->replace(XCMS_Tables::TABLE_USERS, $this->getArray());\n $this->attributes->save();\n\n }", "function updateCustomerInfo() {\n\n $stmt = $GLOBALS['con']->prepare(\"UPDATE customerInfo SET first_name=?, last_name=?, street_address=?, zip=?, city=?, us_state=?, phone=?, email=?, preferred_contact=? WHERE id=?\");\n $stmt->bind_param(\"ssssssssss\", $firstName, $lastName, $address, $zipCode, $city, $state, $phone, $email, $preferredContact, $uid);\n\n // Get all customer information from POST \n // form request via escaping/validating function call\n $uid = validateInput('uid', 'post');\n $firstName = validateInput('firstName', 'post');\n $lastName = validateInput('lastName', 'post');\n $address = validateInput('address', 'post');\n $zipCode = validateInput('zipCode', 'post');\n $city = validateInput('city', 'post');\n $state = validateInput('state', 'post');\n $phone = validateInput('phone', 'post');\n $email = validateInput('email', 'post');\n $preferredContact = validateInput('preferredContact', 'post');\n \n $stmt->execute();\n $stmt->close(); \n }", "function updateProfile($name, $phone, $email, $username, $userid) {\n $query = \"UPDATE users_account SET fullname = ?,mobileno = ?,email = ?,username WHERE userid = ?\";\n $paramType = \"ssssi\";\n $paramValue = array(\n $name,\n $phone,\n $email,\n $username,\n $userid\n );\n \n $this->db_handle->update($query, $paramType, $paramValue);\n }", "public function p_profile_edit() {\n $duplicate = DB::instance(DB_NAME)->select_field(\"SELECT email FROM users WHERE email = '\" . $_POST['email'] . \"' AND email != '\" . $this->user->email . \"'\");\n\n //If email already exists \n if($duplicate){ \n \n //Redirect to error page \n Router::redirect('/users/profile/?duplicate=true');\n }\n\n\n // Encrypt the password \n $_POST['password'] = sha1(PASSWORD_SALT.$_POST['password']); \n\n // Create an encrypted token via their email address and a random string\n $_POST['token'] = sha1(TOKEN_SALT.$_POST['email'].Utils::generate_random_string()); \n\n $q = \"UPDATE users\n SET first_name = '\".$_REQUEST['first_name'].\"',\n last_name = '\".$_REQUEST['last_name'].\"',\n email = '\".$_REQUEST['email'].\"'\n WHERE id = '\".$this->user->id.\"'\";\n\n DB::instance(DB_NAME)->query($q);\n Router::redirect(\"/users/profile\");\n\n \n }", "public function update(){\n \n // if password needs to be updated\n $password_set=!empty($this->user_pass) ? \", user_pass= :user_pass\" : \"\";\n \n // if no posted password, do not update the password\n $query = \"UPDATE \" . $this->table_name . \"\n SET\n user_recovery_mobile = :user_recovery_mobile,\n firstname = :firstname,\n lastname = :lastname,\n role_id = :role_id,\n inst_id = :inst_id,\n email = :alternate_email\n {$password_set}\n WHERE userid = :user_id\";\n \n // prepare the query\n $stmt = $this->conn->prepare($query);\n \n // sanitize\n\t\n $this->user_pass=htmlspecialchars(strip_tags($this->user_pass));\n $this->user_recovery_mobile=htmlspecialchars(strip_tags($this->user_recovery_mobile));\n $this->firstname=htmlspecialchars(strip_tags($this->firstname));\n $this->lastname=htmlspecialchars(strip_tags($this->lastname));\n $this->role_id=htmlspecialchars(strip_tags($this->role_id));\n $this->inst_id=htmlspecialchars(strip_tags($this->inst_id));\n $this->alternate_email=htmlspecialchars(strip_tags($this->alternate_email));\n \n // bind the values\n\t$stmt->bindParam(':user_recovery_mobile',$this->user_recovery_mobile);\n $stmt->bindParam(':firstname', $this->firstname);\n $stmt->bindParam(':lastname', $this->lastname);\n $stmt->bindParam(':role_id', $this->role_id);\n\t$stmt->bindParam(':inst_id', $this->inst_id);\n\t$stmt->bindParam(':alternate_email', $this->alternate_email);\n \n // hash the password before saving to database\n if(!empty($this->user_pass)){\n $this->user_pass=htmlspecialchars(strip_tags($this->user_pass));\n $password_hash = password_hash($this->user_pass, PASSWORD_DEFAULT);\n $stmt->bindParam(':password', $password_hash);\n }\n \n // unique ID of record to be edited\n $this->user_id=htmlspecialchars(strip_tags($this->user_id));\n $stmt->bindParam(':user_id', $this->user_id);\n \n // execute the query\n if($stmt->execute()){\n return true;\n }\n $this->errmsg=implode(\",\",$stmt->errorInfo());\n return false;\n}", "public function update()\n {\n $user = Auth::user();\n\n $data = request()->validate([\n 'name' => 'required|string',\n 'email' => 'required|string|email|max:255|unique:users,email,' . $user->id,\n ]);\n\n $user->update($data);\n }", "protected function _updatefields() {}", "public function update(){\n $data = new Validation();\n if(empty($data->image))\n $sql = \"UPDATE {$this->table} SET `tel` = '$data->phone', `email` = '$data->email',`description` = '$data->description' WHERE {$this->id} = '$data->id'\";\n else\n $sql = \"UPDATE {$this->table} SET `tel` = '$data->phone', `email` = '$data->email',`description` = '$data->description', `profile_pic` = '$data->image' WHERE {$this->id} = '$data->id'\";\n \n // echo $sql;exit;\n return Parent::$conn->query($sql);\n }", "public function updateUser($name, $mobile, $email) {\n $stmt = $this->conn->prepare(\"UPDATE `user` SET `name` = ?, `email` = ? WHERE mobile = ?\");\n $stmt->bind_param(\"ssi\", $name, $email, $mobile);\n $stmt->execute();\n $stmt->store_result();\n $num_rows = $stmt->num_rows;\n $stmt->close();\n return $num_rows > 0; \n }", "public function updatevaliduserdetails($email,$code,$txtFirstName,$txtLastName,$txtAddress1,$txtAddress2,$txtAddress3,$txtAddress4,$txtCity,$txtPin,$txtState){\n\t\tif($this->veryfyuser($email,$code)){\n\t\t\t$this->db->where('Email', $email);\n\t\t\t$this->db->where('UniqueKey', $code);\n\t\t\t$object=array(\n\t\t\t\t'FirstName' => $txtFirstName,\n\t\t\t\t'LastName' => $txtLastName,\n\t\t\t\t'Status' => '1'\n\t\t\t);\n\t\t\t$this->db->update('tbl_userdetails', $object);\n\n\t\t\t$obj=array(\n\t\t\t\t'email' => $email,\n\t\t\t\t'address1' => $txtAddress1,\n\t\t\t\t'address2' => $txtAddress2,\n\t\t\t\t'address3' => $txtAddress3,\n\t\t\t\t'address4' => $txtAddress4,\n\t\t\t\t'city' => $txtCity,\n\t\t\t\t'pin' => $txtPin,\n\t\t\t\t'state' => $txtState,\n\t\t\t\t'country' => 'India'\n\t\t\t);\n\t\t\t$this->db->insert('tbl_useraddress', $obj);\n\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}", "public function editProfile($email, Request $request){\n if ($user = \\DB::table('users')->where('email', $email)->first()) {\n// check if the new email doesn't already exist in the database except in 1 record which is current logged in user\n if ( \\DB::table('users')->where('email', $request->email)->where('email', '<>', $email)->count() == 0) {\n\n $this->validate(request(), [\n 'adresse' => 'required',\n 'email' => 'required|email',\n 'post' => 'required',\n 'telephone' => 'required'\n\n ]);\n\n\n\n \\DB::table('users')\n ->where('email', $email)\n ->update(['email' => $request->email, 'post'=>$request->post, 'telephone'=>$request->telephone, 'adresse'=>$request->adresse]);\n //$collab->save();\n return response()->json([\n 'status'=>'success',\n 'email'=>$request->email,\n 'adresse'=> $request->adresse,\n 'post'=>$request->post,\n 'telephone'=>$request->telephone\n ]);\n } else {\n return response()->json([\n 'status' => 'failed, new email exists',\n\n ]);\n }\n\n } else {\n return response()->json([\n 'status' => 'failed',\n\n ]);\n }\n\n }", "public function updateUser($uid, $fullname, $phone_no, $email){\n $stmt = $this->con->prepare(\"UPDATE users SET fullname = ?, phone_no= ?, email = ? WHERE uid = ?\");\n $stmt->bind_param(\"ssss\", $fullname, $phone_no, $email, $uid);\n if($stmt->execute())\n return true; \n return false; \n }", "public function email_must_be_unique_on_update()\n {\n User::factory()->create([\n 'email' => 'pepe@grillo.com',\n ]);\n\n $this\n ->from(\"nova/resources/users/{$this->user->id}/edit\")\n ->put(\n \"nova-api/users/{$this->user->id}\",\n [\n 'email' => 'pepe@grillo.com',\n ]\n )\n ->assertRedirect(\"nova/resources/users/{$this->user->id}/edit\")\n ->assertSessionHasErrors('email');\n }", "public function update(Request $request) {\n\n// if (!Auth::check()) {\n// return redirect('admin');\n// }\n $userInfo = Auth::user();\n $User = User::findOrFail($userInfo->id);\n\n\n\n // validate\n $validator = Validator::make($request->only(['name', 'email', 'mobile']), [\n 'name' => 'required',\n 'email' => 'required|unique:users,email,' . $userInfo->id,\n 'mobile' => 'sometimes|numeric|digits:8',\n ]);\n\n \n // validation failed \n if ($validator->fails()) {\n return redirect('admin/user/profile')\n ->withErrors($validator)->withInput();\n } else {\n\n $input = $request->only(['name', 'email', 'civilid', 'mobile']);\n\n\n $User->fill($input)->save();\n\n //logActivity\n LogActivity::addToLog('User - ' . $userInfo->username, 'updated profile');\n\n Session::flash('message', config('global.updatedRecords'));\n return redirect('admin/user/profile');\n }\n }", "public function updateProfile()\n {\n $fname=Input::get(\"fname\");\n $lname=Input::get(\"lname\");\n $dob=Input::get(\"dob\");\n $contact=Input::get(\"contact\");\n $user=Auth::user();\n if($fname!=NULL && !empty($fname))\n {\n $user->fname=$fname;\n }\n\n if($lname!=NULL && !empty($lname))\n {\n $user->lname=$lname;\n\n }\n if($contact!=NULL && !empty($contact))\n {\n $user->contact=$contact;\n }\n\n\n\n if($dob!=NULL && !empty($dob))\n {\n $user->dob=$dob;\n }\n\n $user->save();\n echo '0';\n \n\n\n\n //\n }", "function update_information($name, $addr, $city, $state, $zip, $email) {\n if($name == \"\" || $addr == \"\" || $city == \"\" || $state == \"\" || $zip == \"\" || $email == \"\") {\n return false;\n }\n if(!valid_state($state) || !valid_zip($zip) || !valid_email($email)) {\n return false;\n }\n\n $db = connect_db();\n $q = \"UPDATE Customers SET cust_name=?, cust_address=?, cust_city=?, cust_state=?, cust_zip=?, cust_email=? WHERE cust_id=?\";\n $update = $db->prepare($q);\n $update->bind_param(\"sssssss\", $name, $addr, $city, strtoupper($state), $zip, $email);\n if($update->execute()) {\n $db->close();\n return true;\n }\n else {\n $db->close();\n return false;\n }\n}", "function updateProfile($data) {\ntry {\n\n if (!$conn = connectDB()) {\n return false;\n }\n\n $userId = $_SESSION[\"userId\"];\n $args = array(\n $data[\"firstName\"], $data[\"lastName\"],\n $data[\"phone\"], $data[\"email\"], $data[\"location\"],\n $userId\n );\n\n $sql = <<<SQL\nUPDATE WebUser\nSET firstName=$1, lastName=$2,\n phonenumber=$3, emailaddress=$4, location=$5\nWHERE userId=$6\nSQL;\n\n $result = executeSQL($conn, $sql, $args);\n\n if (getUpdateCount($result) != 1) {\n /* Update was unsuccessful */\n closeDB($conn);\n return false;\n }\n\n /* Update succeeded */\n closeDB($conn);\n return true;\n\n} catch (Exception $e) {\n error(\"updateProfile\");\n closeDB($conn);\n return false;\n}\n}", "public function update_email_gateway()\n\t{\n\t\t$email = $this->input->post('es_id');\n\t\t\n\t\t$pass = '';\n\t\t$password = $this->db->select('password')->from('email_sms_gateway')->where('es_id', 2)->get()->row();\n\t\t\n\t\tif($password->password == base64_decode($this->input->post('email_password'))){\n\t\t $pass = $password->password;\n\t\t \n\t\t}else{\n\t\t $pass = $this->input->post('email_password');\n\t\t \n\t\t}\n\t\t$data = array(\n\t\t\t'title' \t=>$this->input->post('email_title'),\n\t\t\t'protocol' \t=>$this->input->post('email_protocol'),\n\t\t\t'host' \t\t=>$this->input->post('email_host'),\n\t\t\t'port' \t\t=>$this->input->post('email_port'),\n\t\t\t'user' \t\t=>$this->input->post('email_user'),\n\t\t\t'password' \t=>$pass,\n\t\t\t'mailtype' \t=>$this->input->post('email_mailtype'),\n\t\t\t'charset' \t=>$this->input->post('email_charset')\n\t\t);\n\t\t\t\n\t\t$this->db->where('es_id', $email)->update('email_sms_gateway',$data);\n\t\t\n\t\t$this->session->set_flashdata('message',display('update_successfully'));\n\n\t\tredirect('backend/dashboard/setting/email_gateway');\n\t}", "public function adminEditProfile($id,$title,$full_name,$dob,$gender,$address,$phone)\n\t{\n $title = $this->secureInput($title);\n $full_name = $this->secureInput($full_name);\n $dob = $this->secureInput($dob);\n $gender = $this->secureInput($gender);\n $address = $this->secureInput($address);\n //$city = $this->secureInput($city);\n //$state = $this->secureInput($state);\n //$country = $this->secureInput($country);\n $phone = $this->secureInput($phone);\n\n//$sql = \"UPDATE users SET title = '\" . $title . \"', full_name = '\" . $full_name . \"', dob = '\" . $dob . \"', gender = '\" . $gender . \"', address = '\" . $address . \"', city = '\" . $city . \"', state = '\" . $state . \"', country = '\" . $country . \"', phone = '\" . $phone . \"' WHERE id = '\" . $id . \"'\";\n\n$sql = \"UPDATE users SET title = '\" . $title . \"', full_name = '\" . $full_name . \"', dob = '\" . $dob . \"', gender = '\" . $gender . \"', address = '\" . $address . \"', phone = '\" . $phone . \"' WHERE id = '\" . $id . \"'\";\n\n \t$res = $this->processSql($sql);\n\t\t\tif(!$res) return 4;\n\t\t\treturn 99;\n\t}", "public static function fp_rac_edit_mail_update_data() {\n\n check_ajax_referer('update-guest-email', 'rac_security');\n if (isset($_POST['id']) && $_POST['email']) {\n $row_id = $_POST['id'];\n $email_value = $_POST['email'];\n $cart_details = maybe_unserialize(get_post_meta($row_id, 'rac_cart_details', true));\n $cart_details[\"visitor_mail\"] = $email_value;\n $details = maybe_serialize($cart_details);\n update_post_meta($row_id, 'rac_cart_details', $details);\n }\n exit();\n }", "function updateContact ($p) {\r\n\r\n\tglobal $authentication_type;\r\n\r\n\t// prepare data\r\n\t$id = prepareDBValue($p['id']);\r\n\tif (!$id) return CONTACTS_ADD_UPDATE_ERROR_INSUFF_RIGHTS;\r\n\r\n\t// security check\r\n\tif (!checkContactsMod($p['id'])) return CONTACTS_ADD_UPDATE_ERROR_INSUFF_RIGHTS;\r\n\r\n\t// password updates?\r\n\t$password = null;\r\n\tif (isset($_POST['password']) && !empty($_POST['password'])) {\r\n\r\n\t\tif ($_POST['password'] != $_POST['password_verify']) return CONTACTS_ADD_UPDATE_ERROR_PASSWD_MISMATCH;\r\n\r\n // Because of SQLite which doesnt have native crypto, this needs to be done via PHP.\r\n $password = sha1($_POST['password']);\r\n $password = ', password=\\''.prepareDBValue($password).'\\'';\r\n\r\n\t}\r\n\r\n\t// prepare data\r\n\t$admin = (isset($p['admin']) && $p['admin'] == 'on') ? '1' : '0';\r\n\t$full_name = prepareDBValue($p['full_name']);\r\n\t$email = prepareDBValue($p['email']);\r\n\t$phone = prepareDBValue($p['phone']);\r\n\t$mobile = prepareDBValue($p['mobile']);\r\n $growladdress = prepareDBValue($p['growladdress']);\r\n\t$timeframe_id = prepareDBValue($p['timeframe']);\r\n\t$timezone_id = prepareDBValue($p['timezone']);\r\n\t$restrict_alerts = prepareDBValue((isset($p['restrict_alerts']) && $p['restrict_alerts'] == 'on') ? '1' : '0');\r\n $growl_registration = ((isset($p['growl_register']) && $p['growl_register'] == 'on') ? registerWithGrowl($growladdress) : null);\r\n\r\n\t// update contact\r\n\t$query = sprintf(\r\n\t\t'update contacts set admin=\\'%s\\', full_name=\\'%s\\', email=\\'%s\\', phone=\\'%s\\', mobile=\\'%s\\', growladdress=\\'%s\\', timeframe_id=\\'%s\\', timezone_id=\\'%s\\', restrict_alerts=\\'%s\\'%s where id=\\'%s\\'',\r\n\t\t$admin,\r\n\t\t$full_name,\r\n\t\t$email,\r\n\t\t$phone,\r\n\t\t$mobile,\r\n\t\t$growladdress,\r\n\t\t$timeframe_id,\r\n\t\t$timezone_id,\r\n\t\t$restrict_alerts,\r\n\t\t$password,\r\n\t\t$id\r\n\t);\r\n\tqueryDB($query);\r\n\r\n\r\n\t// delete holidays\r\n\tif (isset($p['del_holiday']) && is_array($p['del_holiday'])) {\r\n\r\n\t\t$query = 'delete from holidays where (';\r\n\t\t$sep = null;\r\n\t\tforeach ($p['del_holiday'] as $key => $value) {\r\n\t\t\t$query .= $sep . 'id=\\'' . prepareDBValue($key) . '\\'';\r\n\t\t\tif (!$sep) $sep = ' or ';\r\n\t\t}\r\n\t\t$query .= ') and contact_id=\\'' . $id . '\\'';\r\n\t\tqueryDB($query);\r\n\r\n\t}\r\n\r\n\r\n\t// add holidays\r\n\tif (!empty($p['holiday_name']) && !empty($p['holiday_start']) && !empty($p['holiday_end'])) {\r\n\t\taddCHolidays($id, $p['holiday_name'], $p['holiday_start'], $p['holiday_end']);\r\n\t}\r\n\r\n\r\n\treturn CONTACTS_UPDATED;\r\n\r\n}", "private function updateEmailOrPhone($user_id, $field, $value, $password) {\n if(!$user_data=$this->uAuth->user_id2user_data($user_id,'email,cellphone')) {\n print json_encode(array(\n 'status'=>'error',\n 'msg'=>'wrong request',\n 'debug'=>'user is not found'\n ));\n exit;\n }\n $currentEmail=$user_data->email;\n $currentPhone=$user_data->cellphone;\n\n if($field==='cellphone') {\n $this->uAuth->updateUserPhone($user_id,$value,$password);\n //current phone\n $this->uAuth->sendNotificationThatPhoneAndPasswordAreChanged($currentPhone,$value,$password);\n //new phone\n $this->uAuth->sendNotificationThatPhoneAndPasswordAreChanged($value,$value,$password);\n\n return true;\n }\n if($field==='email') {\n $this->uAuth->updateUserEmail($user_id,$value,$password);\n //current phone\n $this->uAuth->sendNotificationThatEmailAndPasswordAreChanged($currentEmail,$value,$password);\n //new phone\n $this->uAuth->sendNotificationThatEmailAndPasswordAreChanged($value,$value,$password);\n\n return true;\n }\n\n return false;\n }", "public function adminEditUserProfile($id,$title,$full_name,$dob,$gender,$address,$phone)\n {\n $title = $this->secureInput($title);\n $full_name = $this->secureInput($full_name);\n $dob = $this->secureInput($dob);\n $gender = $this->secureInput($gender);\n $address = $this->secureInput($address);\n //$city = $this->secureInput($city);\n //$state = $this->secureInput($state);\n //$country = $this->secureInput($country);\n $phone = $this->secureInput($phone);\n\n//$sql = \"UPDATE users SET title = '\" . $title . \"', full_name = '\" . $full_name . \"', dob = '\" . $dob . \"', gender = '\" . $gender . \"', address = '\" . $address . \"', city = '\" . $city . \"', state = '\" . $state . \"', country = '\" . $country . \"', phone = '\" . $phone . \"', level_access = '\" . $level_access . \"' WHERE id = '\" . $id . \"'\";\n\n$sql = \"UPDATE users SET title = '\" . $title . \"', full_name = '\" . $full_name . \"', dob = '\" . $dob . \"', gender = '\" . $gender . \"', address = '\" . $address . \"', phone = '\" . $phone . \"' WHERE id = '\" . $id . \"'\";\n\n $res = $this->processSql($sql);\n if(!$res) return 4;\n return 99;\n }", "function update() {\n $db = new Db();\n $sql = \"UPDATE settings SET `company_name` = '%s', `company_address` = '%s', `admin_email` = '%s', `username` = '%s', `password` = '%s', `company_phone` = '%s', `company_fax` = '%s', `company_mobile` = '%s', `company_email` = '%s' WHERE `id` = '%s'\";\n $params = array($this->company_name, $this->company_address, $this->admin_email, $this->username, $this->password, $this->company_phone, $this->company_fax, $this->company_mobile, $this->company_email, $this->id);\n if (!$db->dbQuery($sql, $params)) {\n $this->error_msg = $db->getErrorMsg();\n $this->error_no = $db->getErrorNo();\n return false;\n } else {\n return true;\n }\n }", "public function update($email,$data)\n { \n try \n {\n $total_rows = DB::update('userdata')->set(array('data'=>$data))\n ->where('email','=',$email)->execute();\n\n return true;\n\n }\n catch( Database_Exception $e )\n {\n //echo $e->getMessage();\n return false;\n }\n\n }", "function update_email($email, $user_id)\n{\n global $DB_connect;\n\n $statement = $DB_connect->prepare(\"UPDATE db.user set email = :email WHERE id = :user_id\");\n $statement->execute(['email' => $email, 'user_id' => $user_id]);\n}", "function updateFADetails(){\n\tglobal $nric,$firstName,$lastName,$dob,$address1,$address2,$poCode,\n$homeNum,$handphoneNum,$email,$description;\n\tglobal $faID;\n\t\n\tinitializeDB();\n\t$command = $_SESSION['connection']->prepare(\"UPDATE FADetails SET nric=?,firstName=?,lastName=?,dob=?,address1=?,address2=?,poCode=?,homeNum=?,handphoneNum=?,email=?,description=? WHERE faID=?;\");\n\t$command->bind_param('ssssssiiissi',$nric,$firstName,$lastName,$dob,$address1,$address2,$poCode,$homeNum,$handphoneNum,$email,$description,$faID);\n\t\n\t$command->execute();\n}", "public function updateEmail(){\n if(\n !empty($_POST['email'])){\n $email = $_POST['email'];\n $id = $_SESSION['userID'];\n $user = new User();\n $user->updateEmail($email, $id);\n }\n else {\n echo \"false\";\n }\n }", "function update_user_info($cellphone,$password)\n {\n $query=$this->db->query(\"UPDATE xl_account SET password='{$password}',register_user=1,nickname='{$nickname}' WHERE cellphone='{$cellphone}' AND register_user=0\");\n\n if ($this->db->affected_rows()>0) {\n #if exist return true\n return TRUE;\n }\n\n return FALSE; \n }", "public function Update( )\n {\n\t\t\t$password = \"\";\n\t\t\tif( $this->password!=\"\" )\n\t\t\t{\n\t\t\t\t$password = $this->password;\n\t\t\t}\n\t\t\t\n $dataArray = array( \"userInfo\" =>array( \"email\"=>$this->email,\n\t\t\t\t\t\t\t\t\t\t\t\t \"username\"=>$this->username,\n \"firstname\"=>$this->firstname,\n \"lastname\"=>$this->lastname,\n \"password\"=>$password,\n \"gender\"=>$this->gender,\n \"yearOfBirth\"=>$this->yearOfBirth,\n \"phone\"=>$this->phone,\n \"mobile\"=>$this->mobile,\n \"addressLine1\"=>$this->addressLine1,\n \"addressLine2\"=>$this->addressLine2,\n \"addressCity\"=>$this->addressCity,\n \"addressState\"=>$this->addressState,\n \"addressCountry\"=>$this->addressCountry,\n \"addressZipCode\"=>$this->addressZipCode,\n \"interests\"=>$this->interests,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"newsletters\"=>intval($this->newsletters)\n )\n );\n\t\t\t//Check if isAdmin exists\n\t\t\tif( isset($this->isAdmin) )\n\t\t\t{\n\t\t\t\t$tempArray = array(\"isAdmin\"=>intval($this->isAdmin));\t\t\t\t\n\t\t\t\t$dataArray = array_merge($dataArray,$tempArray);\n\t\t\t}\n\t\t\t\n\t\t\t//Check if recordStatus exists\n\t\t\tif( isset( $this->recordStatus ) )\n\t\t\t{\n\t\t\t\t$tempArray = array(\"recordStatus\"=>intval($this->recordStatus));\n\t\t\t\t$dataArray = array_merge($dataArray,$tempArray);\n\t\t\t}\n\t\t\t//Check if facebook details are provided for update\n\t\t\tif( isset( $this->facebookDetails ) )\n\t\t\t{\n\t\t\t\t$tempArray = array(\"facebookDetails\"=>$this->facebookDetails);\n\t\t\t\t$dataArray = array_merge($dataArray,$tempArray);\n\t\t\t}\n\t\t\t//Check if twitter details are provided for update\n\t\t\tif( isset( $this->twitterDetails ) )\n\t\t\t{\n\t\t\t\t$tempArray = array(\"twitterDetails\"=>$this->twitterDetails);\n\t\t\t\t$dataArray = array_merge($dataArray,$tempArray);\n\t\t\t}\n\t\t\t\n\t\t\t//Check if isDataAdmin field is set\n\t\t\tif( isset( $this->isDataAdmin ) )\n\t\t\t{\n\t\t\t\t$tempArray = array(\"isDataAdmin\"=> $this->isDataAdmin );\t\t\t\t\n\t\t\t\t$dataArray = array_merge( $dataArray, $tempArray );\n\t\t\t}\n\t\t\t\n $response = ServiceAPIUtils::CallAPIService( $dataArray,\"/User/Update/\".$this->id, \"json\" );\n \n return $response;\n }", "public function update(Request $request, $id)\n {\n $user = Users::findOrFail($id);\n\n try{\n $user->name = $request->name;\n $request->filled('birth') ? $user->birth = $request->birth : $user->birth = \"\";\n $user->gender = $request->gender;\n $user->type = $request->type;\n $user->cpf = str_replace(\"/\", \"\", str_replace(\"-\", \"\", str_replace(\".\", \"\", $request->cpfcnpj)));\n $user->email = $request->email;\n $request->filled('phone1') ? $user->phone1 = str_replace(\" \", \"\", str_replace(\"-\", \"\", str_replace(\"(\", \"\", str_replace(\")\", \"\", $request->phone1)))) : $user->phone1 = \"\";\n $request->filled('phone2') ? $user->phone2 = str_replace(\" \", \"\", str_replace(\"-\", \"\", str_replace(\"(\", \"\", str_replace(\")\", \"\", $request->phone2)))) : $user->phone2 = \"\";\n $user->person1 = $request->person1;\n $request->filled('personphone1') ? $user->personphone1 = str_replace(\" \", \"\", str_replace(\"-\", \"\", str_replace(\"(\", \"\", str_replace(\")\", \"\", $request->personphone1)))) : $user->personphone1 = 0;\n $user->person2 = $request->person2;\n $request->filled('personphone2') ? $user->personphone2 = str_replace(\" \", \"\", str_replace(\"-\", \"\", str_replace(\"(\", \"\", str_replace(\")\", \"\", $request->personphone2)))) : $user->personphone2 = 0;\n $user->postalcode = str_replace(\"-\", \"\", $request->postalcode);\n $user->address = $request->address;\n $user->webaccess = $request->webaccess;\n $user->adminappaccess = $request->adminappaccess;\n $user->note = $request->note;\n $user->status = 1;\n $user->log = 'Alteração: '.auth()->user()->name.' '.date(\"d/m/Y H:i\").'| '.$user->log;\n $user->state_id = $request->state_id;\n $user->city_id = $request->city_id;\n $user->district_id = $request->district_id;\n $user->updated_at = date(\"Y-m-d H:i:s\");\n\n $user->save();\n\n session()->flash('alert-ok', 'Cliente alterado com sucesso!');\n return redirect()->route('users.show', $user->id );\n }\n catch(\\Exception $e)\n {\n try{\n $sqllog = new Sqllogs;\n $sqllog->name = 'Cliente: Alteração';\n $sqllog->sql = $e->getMessage();\n $sqllog->created_at = date(\"Y-m-d H:i:s\");\n $sqllog->user_id = auth()->user()->id;\n $sqllog->save();\n session()->flash('alert-fail', '<b>Erro!</b> Tente novamente e caso o erro persista, avise o administrador do sistema.');\n return redirect()->route('users.show', $user->id );\n }\n catch(\\Exception $e)\n {\n session()->flash('alert-fail', '<b>Erro!</b> Avise o administrador do sistema.');\n return redirect()->route('users.show', $user->id );\n } \n }\n }", "public function update() {\n global $database;\n //$properties = $this->properties();\n $properties = $this->clean_properties();\n $properties_pairs = array();\n foreach ($properties as $key =>$value){\n $properties_pairs[] = \"{$key}='{$value}'\";\n \n }\n \n// $sql = \"UPDATE users SET \";\n $sql = \"UPDATE \" .static::$db_table. \" SET \"; // we use the abstract tables\n $sql .=implode(\",\", $properties_pairs);\n// $sql .=\"username = '\" .$database->escape_string($this->username) .\"', \";\n// $sql .=\"password = '\" .$database->escape_string($this->password) .\"', \";\n// $sql .=\"first_name = '\" .$database->escape_string($this->first_name) .\"', \";\n// $sql .=\"last_name = '\" .$database->escape_string($this->last_name) .\"' \";\n $sql .=\" WHERE id =\" .$database->escape_string($this->id);\n \n // Send the query to a databse using iternally instead of if\n $database->query($sql);\n return (mysqli_affected_rows($database->connection) ==1)? true : false;\n }", "function update_user_phone()\n\t{\n\t\tlog_message('debug', 'Account/update_user_phone');\n\t\tcheck_access($this,'__redirect'); #redirect away from this function if user is not logged in\n\n\t\t$data = filter_forwarded_data($this);\n\t\t$result = FALSE;\n\t\t$data['msg'] = '';\n\t\tlog_message('debug', 'Account/update_user_phone:: [1] post='.json_encode($_POST));\n\t\tlog_message('debug', 'Account/update_user_phone:: [2] data='.json_encode($data));\n\t\t# a) The user is updating the telephone number\n\t\tif(!empty($_POST['telephone'])){\n\t\t\t$data['hasPosted'] = 'Y';\n\t\t\t$response = $this->_api->post('user/telephone', array(\n\t\t\t\t\t'telephone'=>$_POST['telephone'],\n\t\t\t\t\t'provider'=>$_POST['provider__provider'],\n\t\t\t\t\t'isPrimary'=>'Y'\n\t\t\t\t));\n\n\t\t\t# Update the user telephone and provider if sucessful\n\t\t\tif(!empty($response['result']) && $response['result']=='SUCCESS'){\n\t\t\t\t$this->native_session->set('__telephone', $_POST['telephone']);\n\t\t\t\t$this->native_session->set('__provider', $response['provider']);\n\t\t\t\t$this->native_session->set('__provider_id', $_POST['provider__provider']);\n\t\t\t\t$data['msg'] = 'Your phone number has been updated and verification code sent.';\n\t\t\t\t$result = TRUE;\n\t\t\t\t$data['area'] = 'verify_code_form';\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$data['msg'] = 'ERROR: Your phone number could not be updated';\n\t\t\t\t$data['area'] = 'user_phone_details';\n\t\t\t}\n\t\t}\n\n\n\t\t# b) Verify telephone code\n\t\telse if(!empty($_POST['usercode'])){\n\t\t\t$data['hasPosted'] = 'Y';\n\t\t\t$response = $this->_api->post('account/verify', array(\n\t\t\t\t'code'=>$_POST['usercode'],\n\t\t\t\t'telephone'=>$this->native_session->get('__telephone'),\n\t\t\t\t'baseLink'=>base_url()\n\t\t\t));\n\n\t\t\tif(!empty($response['verified']) && $response['verified']=='Y'){\n\t\t\t\t$this->native_session->set('__telephone_verified', 'Y');\n\t\t\t\t$data['msg'] = '20 Points have been added to your Clout Score';\n\t\t\t\t$data['area'] = 'verify_code_results';\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$data['msg'] = 'ERROR: Your phone could not be verified.<br>Please try again.';\n\t\t\t\t$data['area'] = 'verify_code_form';\n\t\t\t}\n\t\t}\n\n\n\t\t# c) the user has already verified their phone.\n\t\telse if($this->native_session->get('__telephone_verified') && $this->native_session->get('__telephone_verified') == 'Y'){\n\t\t\t# if this is a user with more privileges to view the network page take them to the network home instead\n\t\t\tif($this->native_session->get('__direct_invitation_count')\n\t\t\t\t&& $this->native_session->get('__direct_invitation_count') >= MINIMUM_INVITE_COUNT\n\t\t\t){\n\t\t\t\t$view = check_access($this,'can_view_invite_tools')? 'network/home': 'account/thank_you';\n\t\t\t}\n\t\t\telse $view = 'network/invite';\n\n\t\t\t# take to appropriate view\n\t\t\tredirect(base_url().$view);\n\t\t}\n\n\n\t\t# c) the user is coming to this page for first time OR they havent verified their phone yet\n\t\telse if(!(!empty($data['edit']) && $data['edit'] == 'Y') && $this->native_session->get('__telephone') && $this->native_session->get('__provider_id')\n\t\t\t&& (!$this->native_session->get('__telephone_verified') || ($this->native_session->get('__telephone_verified') && $this->native_session->get('__telephone_verified') == 'N'))\n\t\t){\n\t\t\t$response = $this->_api->post('user/telephone', array(\n\t\t\t\t\t'telephone'=>$this->native_session->get('__telephone'),\n\t\t\t\t\t'provider'=>$this->native_session->get('__provider_id'),\n\t\t\t\t\t'isPrimary'=>'Y'\n\t\t\t));\n\n\t\t\t# Prepare appropriate message\n\t\t\t$data['msg'] = (!empty($response['result']) && $response['result']=='SUCCESS')? 'A verification message has been sent to your phone. Enter the code here to confirm your phone number.': 'ERROR: A verification message could not be sent to your phone. <br>Click Resend to attempt sending it again, or Edit to change your phone details.';\n\t\t\t$result = TRUE;\n\t\t\t$data['area'] = 'verify_code_form';\n\t\t}\n\n\n\t\t# d) The user has to enter their phone details from scratch\n\t\telse $data['area'] = 'user_phone_details';\n\n\t\t$data = load_page_labels('link_card', $data);\n\t\t$this->load->view('account/verify_phone', $data);\n\t}", "public function updatePartnerInfos($pid, $address, $city, $email, $phone){\n\n\t\t$this->address = $address;\n\t\t$this->city = $city;\n\t\t$this->email = $email;\n\t\t$this->phone = $phone;\n\t\t$sql = \"UPDATE partner SET address = :addr, city = :ct, email = :mail, phone = :phonenumb WHERE partner_id = :pid\";\n\t\t$req = $GLOBALS[\"conn\"]->prepare($sql);\n\t\t$req->execute(array(\n\t\t\t\"addr\" => $address,\n\t\t\t\"ct\" => $city,\n\t\t\t\"mail\" => $email,\n\t\t\t\"phonenumb\" => $phone,\n\t\t\t\"pid\" => $pid,\n\t\t));\n\t}", "public function updated(Email $email)\n {\n //\n }", "function updateField() {\n DATABASE::INIT_TABLE($this->database, $this->table);\n $fname = $this->urlParam('fname');\n $fvalue = $this->urlParam('fvalue');\n $id = $this->urlParam('id');\n DATABASE::UPDATE($this->table, [$fname], [$fvalue], $id);\n }", "function updateUser($id, $FirstName, $LastName, $password, $email)\r\n {\r\n $sql = \"UPDATE users SET ID_user='\" . $id . \"', FirstName='\" . $FirstName . \"',\r\n LastName='\" . $LastName . \"', Password='\" . $password . \"', email='\" . $email . \"'WHERE ID_user='\" . $id . \"'\";\r\n $stmt = $this->connect()->query($sql);\r\n if (!$stmt) {\r\n echo \"Something wrong in the binding process. sql error?\";\r\n exit();\r\n } else {\r\n echo \"Update Successful\";\r\n }\r\n }", "public function updateEmail($email)\n {\n $this->email = trim($email);\n $this->update();\n }", "function updateUserToDatabase($user, $id, $email)\n {\n $connect = new Config();\n $sql = 'UPDATE user_db SET user_info = :info, user_email = :email WHERE id = :id';\n $query = $connect->connectPDO()->prepare($sql);\n $query->bindParam(':info', $user, \\PDO::PARAM_STR, 200);\n $query->bindParam(':email', $email, \\PDO::PARAM_STR, 200);\n $query->bindParam(':id', $id, \\PDO::PARAM_INT);\n $query->execute();\n }", "public function testUpdateExtraFields(): void { }", "public function update_contact($data)\n {\n $add = array();\n foreach (array('nick', 'firstname', 'lastname', 'thirdname', 'title', 'company', 'comp_dep', 'comp_role'\n ,'comp_address', 'comp_address2', 'comp_street', 'comp_zip', 'comp_location', 'comp_region'\n ,'comp_country', 'comp_cellular', 'comp_www', 'comp_fax', 'address', 'address2', 'street', 'zip'\n ,'location', 'region', 'country', 'email1', 'email2', 'bday_cal_evt_id', 'tel_private', 'tel_business'\n ,'cellular', 'fax', 'www', 'birthday', 'customer_number', 'comments') as $k) {\n if (isset($data[$k])) {\n $add[] = $k . '=\"' . $this->esc($data[$k]) . '\"';\n }\n }\n if (isset($data['group'])) {\n $this->query('DELETE FROM '.$this->Tbl['adb_adr_group'].' WHERE `aid`='.intval($data['aid']).' AND uid='.$this->uid);\n foreach ($data['group'] as $gid) {\n $this->query('INSERT '.$this->Tbl['adb_adr_group'].' SET `aid`='.intval($data['aid']).', `gid`='.intval($gid).', `uid`='.intval($this->uid));\n }\n }\n foreach (array_keys($this->get_freefield_types($this->uid)) as $type) {\n if (empty($data['free'][$type])) {\n $this->query('DELETE FROM '.$this->Tbl['adb_freefield'].' WHERE `aid`='.intval($data['aid']).' AND type_id='.intval($type));\n } else {\n $this->query('REPLACE INTO '.$this->Tbl['adb_freefield'].' SET `aid`='.intval($data['aid']).', `type_id`='.intval($type).', `value`=\"'.$this->esc($data['free'][$type]).'\"');\n }\n }\n\n if (!empty($add)) {\n $where = 'aid='.intval($data['aid']).' AND owner='.intval($this->uid);\n if (isset($data['own_vcf'])) {\n list ($adrid) = $this->fetchrow($this->query('SELECT u.contactid FROM '.$this->Tbl['user'].' u,'.$this->Tbl['adb_address'].' a'\n .' WHERE u.uid='.intval($this->uid).' AND a.aid=u.contactid'));\n if (0 != $adrid) {\n $where = 'aid='.intval($adrid);\n }\n }\n $query = 'UPDATE '.$this->Tbl['adb_address'].' SET `uuid`=\"'.basics::uuid().'\"'.','.implode(',', $add).' WHERE '.$where;\n return $this->query($query);\n }\n return false;\n }", "public function updatedevice($token ,$email)\n{\n\n\n$query = mysql_query(\"UPDATE `user` SET `device_id` = '$token' WHERE `email` = '$email' \");\nif($query){\n\n return 1;\n}else \n\nreturn 0;\n\n\n}", "public function updateGetCurrentData ($id,&$name,&$email,&$mobile) {\r\n\t\t// This is for filling the Update page with the\r\n\t\t// existing data, before new data is posted\r\n\t\t$pdo = Database::connect();\r\n\t\t$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\r\n\t\t$sql = \"SELECT * FROM tdg_users where id = ?\";\r\n\t\t$q = $pdo->prepare($sql);\r\n\t\t$q->execute(array($id));\r\n\t\t$data = $q->fetch(PDO::FETCH_ASSOC);\r\n\t\t$name = $data['name'];\r\n\t\t$email = $data['email'];\r\n\t\t$mobile = $data['mobile'];\r\n\t\tDatabase::disconnect();\r\n\t}", "function updateContacts($UserID,$C1Name,$C1Email,$C2Name,$C2Email){\n $conn = connectDB();\n $updateSQL = \"UPDATE User SET C1Name = '\".$C1Name.\"', C1Email = '\".$C1Email.\"', C2Name = '\".$C2Name.\"', C2Email = '\".$C2Email.\"' WHERE UserID = '\".$UserID.\"'\";\n $conn->query($updateSQL);\n $conn->close();\n}", "public function actionUpdatePhone()\n {\n $model=new Employee;\n $Address=new Address;\n if(isset($_POST['Employee']))\n {\n $model=Employee::getEmployee(Yii::app()->user->id);\n $model->attributes = $_POST['Employee'];\n Users::updateStatus(Yii::app()->user->id);\n if($model->save())\n {\n $this->redirect(array('infoEmployee', 'id' => $model->id));\n }\n }\n\n $this->render('UpdatePhone',array('model'=>$model, 'address'=>$Address));\n }", "public function updatwebuserlogin()\n {\n // $arr1 = $this->input->post('emaId');\n \n\n $arr = Array(\n \n 'name' => $this->input->post('name'),\n 'email' => $this->input->post('email'),\n 'mobile' => $this->input->post('mobile'),\n 'password' => $this->input->post('password'),\n );\n\n $user_id = $this->session->userdata('user_id');\n $this->db->where('id',$user_id);\n\n // $this->db->where('email',$arr1);\n $this->db->update('web_user',$arr);\n\n print_r(json_encode(1));\n }", "function updateEmail($id, $email) {\n\t$db = DB::getInstance();\n\t$fields=array('email'=>$email);\n\t$db->update('users',$id,$fields);\n\n\treturn true;\n}", "function update_admin_general_info($usernameDB, $passwordDB, $email, $first_name_update, $last_name_update, $birthday, $member_address, $member_apartment, $member_city, $member_state, $member_zip, $member_home_phone, $member_cell_phone) {\n\t$dbh = new PDO('mysql:host=thetaDB.db.9489000.hostedresource.com;dbname=thetaDB',$usernameDB,$passwordDB);\n\n\t//Update any general information that has been changed.\n\t$update = array();\n\t\n\tif(trim($first_name_update) !== \"\") {\n\t $update[] = \"first_name = :first_name\";\n\t}\n\t\n\tif(trim($last_name_update) !==\"\") {\n\t\t$update[] = \"last_name = :last_name\";\n\t}\n\n\tif(sizeof($update) > 0) {//check if we have any updates otherwise don't execute\n\t $query = \"UPDATE admin SET \" . implode(\", \", $update) . \" WHERE email = :email\";\n\t //Prepare statement\n\t $stmt = $dbh->prepare($query);\n\t //Generic comparison variable.\n\t $stmt->bindParam(\":email\", $email);\n\t \n\t if(trim($first_name_update) !== \"\") {\n\t $stmt->bindParam(\":first_name\", $first_name_update);\n\t }\n\t \n\t if(trim($last_name_update) !== \"\") {\n\t $stmt->bindParam(\":last_name\", $last_name_update);\n\t }\n\t \n\t $stmt->execute();\n\t}\t\n\t\n\t//Connect to the members_contact\n\t$dbh = new PDO('mysql:host=thetaDB.db.9489000.hostedresource.com;dbname=thetaDB',$usernameDB,$passwordDB);\n\n\t$update = array();\n\t\n\tif(trim($birthday) !== \"\") {\n\t $update[] = \"date_of_birth = :birthday\";\n\t}\n\t\n\tif(trim($member_address) !== \"\") {\n\t\t$update[] = \"school_address = :member_address\";\n\t}\n\t\n\tif(trim($member_apartment) !== \"\") {\n\t\t$update[] = \"apt = :member_apartment\";\n\t}\n\t\n\tif(trim($member_city) !== \"\") {\n\t\t$update[] = \"city = :member_city\";\n\t}\n\t\n\tif(trim($member_state) !== \"\") {\n\t\t$update[] = \"state = :member_state\";\n\t}\n\t\n\tif(trim($member_zip) !== \"\") {\n\t\t$update[] = \"zip_code = :member_zip_code\";\n\t}\n\t\n\tif(trim($member_home_phone) !== \"\") {\n\t\t$update[] = \"home_phone = :member_home_phone\";\n\t}\n\t\n\tif(trim($member_cell_phone) !== \"\") {\n\t\t$update[] = \"cell_phone = :member_cell_phone\";\n\t}\n\t\n\t\n\n\tif(sizeof($update) > 0) {//check if we have any updates otherwise don't execute\n\t $query = \"UPDATE members_contact SET \" . implode(\", \", $update) . \" WHERE email = :email\";\n\t //Prepare statement\n\t $stmt = $dbh->prepare($query);\n\t //Generic comparison variable.\n\t $stmt->bindParam(\":email\", $email);\n\t \n\t if(trim($birthday) !== \"\") {\n\t $stmt->bindParam(\":birthday\", $birthday);\n\t }\n\t \n\t if(trim($member_address) !== \"\") {\n\t\t $stmt->bindParam(\":member_address\", $member_address);\n\t }\n\t \n\t if(trim($member_apartment) !== \"\") {\n\t\t $stmt->bindParam(\":member_apartment\", $member_apartment);\n\t }\n\t \n\t if(trim($member_city) !== \"\") {\n\t\t $stmt->bindParam(\":member_city\", $member_city);\n\t }\n\t \n\t if(trim($member_state) !== \"\") {\n\t\t $stmt->bindParam(\":member_state\", $member_state);\n\t }\n\t \n\t if(trim($member_zip) !== \"\") {\n\t\t $stmt->bindParam(\":member_zip_code\", $member_zip);\n\t }\n\t \n\t if(trim($member_home_phone) !== \"\") {\n\t\t $stmt->bindParam(\":member_home_phone\", $member_home_phone);\n\t }\n\t \n\t if(trim($member_cell_phone) !== \"\") {\n\t\t $stmt->bindParam(\":member_cell_phone\", $member_cell_phone);\n\t }\n\n\t $stmt->execute();\n\t}\n}", "public function update() {\r\n\r\n // get database connection\r\n\r\n \r\n \r\n $sql_update = \"update employees SET fname = '$this->firstName', lname = '$this->lastName', email = '$this->email' where id = '$this->id'\";\r\n if ($this->dbc->query($sql_update)) {\r\n\r\n echo \"<p> User Successfully Updated </p>\";\r\n return true;\r\n } else {\r\n\r\n echo \"<p> Could not run query </p>\";\r\n return false;\r\n }\r\n }", "function updateCustomer($email,$password,$username,$phoneNo,$city,$street){\n \n try {\n $conn = db_connection();\n \n if (isset($_SESSION['email'], $_SESSION['password'])) {\n \t $values=[];\n $values[]=$_SESSION['email'];\n $values[]=$_SESSION['password'];\n \n\t$stmt= $conn->prepare(\"SELECT * FROM `customers` where email = ? and password = ?\");\n\tif($stmt->execute($values)){\n\t \n \t$uid=false;\n\t\twhile($row=$stmt->fetch(PDO::FETCH_ASSOC)){\n\t\t\t$uid=$row[\"ID\"];\n\t\t\tbreak;\n\t\t}\n\t}\n\tif($uid!== false){\n\t $stmt = $conn->prepare(\"UPDATE customers SET `email`=? ,`password`=? ,`username`=? ,`phoneNo`=? ,`city`=? ,`street`=? where ID = $uid\");\n \n if($stmt->execute([$email,$password,$username,$phoneNo,$city,$street])){\n echo \"Updated successfully\";\n }else{\n echo \"Error! Correct information!\";\n }\n }\n }\n }catch(PDOException $e)\n {\n echo \"Error: \" . $e->getMessage();\n }\n}", "function update_company($company_id, $company_name, $email, $address, $city, $state, $zip, $phone, $fax, $sic_code, $sic_description, $website,$mc_number,$dot_number) {\n\t\t $str = \"UPDATE company SET company_name = '$company_name', email_address = '$email', address = '$address', city = '$city', state = '$state', zipcode = '$zip', phone_number = '$phone', fax_number = '$fax', sic_code = $sic_code, sic_description = '$sic_description', web_address = '$website',mc_number = '$mc_number', dot_number = '$dot_number' WHERE Comany_ID = $company_id\"; \n\t\tif($req = mysqli_query($link,$str)) return true;\n\t\telse return false;\n\t}", "public function updateMyInfo()\n {\n // validate the info, create rules for the inputs\n $rules = array(\n 'user_firstname' => 'required',\n 'user_gender' => 'required',\n 'user_civil_status' => 'required',\n 'user_birth_date' => 'required|date_format:\"'.DATE_FORMAT_1,\n 'user_joined_date' => 'required|date_format:\"'.DATE_FORMAT_2,\n 'user_email' => 'required|email|unique:user,user_email,' . Auth::user()->user_key . ',user_key,deleted_at,NULL',\n 'country_key1' => 'required',\n 'user_contact_phone_number1' => 'required',\n 'user_hometown_address' => 'required',\n );\n\n // run the validation rules on the inputs from the form\n $validator = Validator::make(Input::all(), $rules);\n\n // if the validator fails, redirect back to the form\n if ($validator->fails()) {\n // redirect to list page\n Session::flash('danger', UNABLE_TO_SAVE);\n return Redirect::back()\n ->withErrors($validator)\n ->withInput();\n\n } else {\n // where condition\n $user = Auth::user();\n \n // check if the record can be updated\n if (empty($user->id)) {\n // redirect to list page\n Session::flash('danger', SOMETHING_WENT_WRONG);\n return Redirect::to(strtolower(USER_TITLE));\n }\n\t\t\t\n // fields to be updated\n $user->user_firstname = $this->getInput('user_firstname', '');\n $user->user_middlename = $this->getInput('user_middlename', '');\n $user->user_lastname = $this->getInput('user_lastname', '');\n $user->user_alias = $this->getInput('user_alias', '');\n $user->user_gender = $this->getInput('user_gender', '');\n $user->user_civil_status = $this->getInput('user_civil_status', '');\n $user->user_birth_date = \\Carbon\\Carbon::createFromFormat(DATE_FORMAT_1, $this->getInput('user_birth_date', DEFAULT_DATE))->format(DB_DATE_FORMAT);\n $user->user_joined_date = $this->getInput('user_joined_date', '');\n $user->user_email = $this->getInput('user_email', '');\n $user->user_hometown_address = $this->getInput('user_hometown_address', '');\n $user->user_overseas_address = $this->getInput('user_overseas_address', '');\n if (Session::has('user_photo')) {\n $user->user_photo = Session::get('user_photo');\n Session::forget('user_photo');\n }\n $user->updated_by = Auth::user()->id;\n \n // update record\n $user->save();\n \n for ($cnt = 1; $cnt <= $this->getInput('hdn_increment', ''); $cnt++) {\n if ($this->getInput('hdn_index' . $cnt, '') == YES && $this->getInput('country_key' . $cnt, '') != EMPTY_STRING && $this->getInput('user_contact_phone_number' . $cnt, '') != EMPTY_STRING) {\n if ($this->getInput('user_contact_key' . $cnt, '') == EMPTY_STRING) {\n $data = array();\n $data['user_contact_key'] = generateRandomID();\n $data['user_id'] = $user->id;\n $data['country_id'] = Country::countryKey($this->getInput('country_key' . $cnt, ''))->pluck('id');\n $data['user_contact_phone_number'] = $this->getInput('user_contact_phone_number' . $cnt, '');\n $data['created_by'] = Auth::user()->id;\n \n // create record\n UserContact::create($data);\n } else {\n // where condition\n $user_contact = UserContact::UserContactKey($this->getInput('user_contact_key' . $cnt, ''))->first();\n \n // check if the record can be updated\n if (isset($user_contact->id)) {\n $user_contact->country_id = Country::countryKey($this->getInput('country_key' . $cnt, ''))->pluck('id');\n $user_contact->user_contact_phone_number = $this->getInput('user_contact_phone_number' . $cnt, '');\n $user_contact->updated_by = Auth::user()->id;\n \n // update record\n $user_contact->save();\n }\n }\n }\n }\n \n // where condition\n $user_emergency = UserEmergency::userId($user->id)->first();\n \n // check if the record can be updated\n if (!empty($user_emergency->id)) {\n // fields to be updated\n $user_emergency->user_emergency_name = $this->getInput('user_emergency_name', '');\n $user_emergency->user_emergency_relation = $this->getInput('user_emergency_relation', '');\n $user_emergency->user_emergency_address = $this->getInput('user_emergency_address', '');\n $user_emergency->country_id = Country::countryKey($this->getInput('emergency_country_key', ''))->pluck('id');\n $user_emergency->user_emergency_phone = $this->getInput('user_emergency_phone', '');\n $user_emergency->updated_by = Auth::user()->id;\n \n // update record\n $user_emergency->save();\n }\n \n // redirect to list page\n Session::flash('success', SUCCESS_UPDATE);\n return Redirect::to('my_account/info');\n }\n }", "public function changeEmail($newValue){\n\n $this->email = $newValue;\n $this ->save();\n\n }", "public function update(Request $request, $id)\n {\n $now = new DateTime();\n $validator = Validator::make($request->all(), [\n 'password' => 'required|min:6|confirmed',\n 'taxno' => 'required',\n 'tel' => 'required'\n ]);\n\n if ($validator->fails()) {\n return redirect('/addmoreinfo')\n ->withErrors($validator)\n ->withInput();\n }\n\n $customer = App\\Customer::find($id);\n $customer->firstname = $request->firstname;\n $customer->lastname = $request->lastname;\n $customer->companyname = $request->companyname;\n $customer->address = $request->address;\n $customer->tel = $request->tel;\n $customer->fax = $request->fax;\n\n $customer->taxno = $request->taxno;\n $customer->date = $now;\n $customer->save();\n\n $user = App\\User::find($customer->user_id);\n $user->password = bcrypt($request->password);\n $user->save();\n return redirect('/');\n}", "function update() {\n\n global $conn;\n\n $stmt = $conn->prepare('\n UPDATE Customer SET\n Name = :Name,\n Surname = :Surname,\n Email = :Email,\n Phone = :Phone\n WHERE Customer_id = :Customer_id\n ');\n\n $stmt->bindParam(':Name', $this->Name);\n $stmt->bindParam(':Surname', $this->Surname);\n $stmt->bindParam(':Email', $this->Email);\n $stmt->bindParam(':Phone', $this->Phone);\n $stmt->bindParam(':Customer_id', $this->Customer_id);\n\n return $stmt->execute();\n }", "public function update_details_db($user_email, $data) {\r\n $this->db->where('user_email', $user_email);\r\n $result = $this->db->update('users', $data);\r\n if ($result == 1) {\r\n return 'true';\r\n } else {\r\n return 'false';\r\n }\r\n }", "public function profile_update(Request $request)\n {\n if($request->email != $request->email1){\n if(User::where('email', $request->email)->first()){\n return response()->json([\n 'status' => 'exist',\n 'message' => 'Email Address Already Exist.'\n ]);\n } else {\n User::updateOrCreate([\n 'id' => $request->user_id\n ],[\n 'fname' => $request->fname,\n 'mname' => $request->mname,\n 'lname' => $request->lname,\n 'address' => $request->address,\n 'contact_num' => $request->contact_num,\n 'email' => $request->email\n ]);\n }\n } else if($request->contact_num != $request->contact_num1) { \n if(User::where('contact_num', $request->contact_num)->first()){\n return response()->json([\n 'status' => 'exist',\n 'message' => 'Phone Number Already Exist.'\n ]);\n } else {\n User::updateOrCreate([\n 'id' => $request->user_id\n ],[\n 'fname' => $request->fname,\n 'mname' => $request->mname,\n 'lname' => $request->lname,\n 'address' => $request->address,\n 'contact_num' => $request->contact_num,\n 'email' => $request->email\n ]);\n }\n } else {\n User::updateOrCreate([\n 'id' => $request->user_id\n ],[\n 'fname' => $request->fname,\n 'mname' => $request->mname,\n 'lname' => $request->lname,\n 'address' => $request->address,\n 'contact_num' => $request->contact_num,\n 'email' => $request->email\n ]);\n }\n \n return response()->json([\n 'status' => 'success',\n 'message' => 'Profile Successfully Updated!',\n 'fname' => $request->fname,\n 'mname' => $request->mname,\n 'lname' => $request->lname,\n 'address' => $request->address,\n 'contact_num' => $request->contact_num,\n 'email' => $request->email\n ]);\n }", "public function saveEditMobile()\n {\n try {\n $_4g = null;\n if ($_POST['e4g'] === \"Có\") {\n $_4g = 1;\n } else {\n $_4g = 0;\n }\n $query = \"UPDATE {$this->table} SET tenDienThoai = :ten, mauSac = :mausac, soLuongTrongKho = :soluong, giaNhap = :gianhap, giaBan = :giaban, giamGia = :giamgia, CPU = :cpu, gpu = :gpu, RAM = :ram, boNhoTrong = :bonhotrong, heDieuHanh = :hedieuhanh, manHinh = :manhinh, cameraSau = :camerasau, cameraTruoc = :cameratruoc, dungLuongPin = :pin, sacNhanh = :sac, SIM = :sim, 4G = :_4g, NhaSanXuat_idNhaSanXuat = :nsx, theloai_idTheloai = :theloai, moTa = :mota WHERE idMobile = :idMobile\";\n $pre = $this->db->prepare($query);\n $pre->execute([\n ':ten' => $_POST['eten'],\n ':mausac' => $_POST['emausac'],\n ':soluong' => intval($_POST['esoluong']),\n ':gianhap' => intval($_POST['egianhap']),\n ':giaban' => intval($_POST['egiaban']),\n ':giamgia' => intval($_POST['egiamgia']),\n ':cpu' => $_POST['ecpu'],\n ':gpu' => $_POST['egpu'],\n ':ram' => intval($_POST['eram']),\n ':bonhotrong' => $_POST['ebonhotrong'],\n ':hedieuhanh' => $_POST['ehedieuhanh'],\n ':manhinh' => $_POST['emanhinh'],\n ':camerasau' => $_POST['ecamerasau'],\n ':cameratruoc' => $_POST['ecameratruoc'],\n ':pin' => $_POST['epin'],\n ':sac' => $_POST['esacpin'],\n ':sim' => $_POST['esim'],\n ':_4g' => $_4g,\n ':nsx' => $_SESSION['nsxId'],\n ':theloai' => $_SESSION['theloaiId'],\n ':mota' => $_POST['emota'],\n ':idMobile' => intval($_POST['idMobile'])\n ]);\n $count = $pre->rowCount();\n if ($count == 0) {\n // Chua thay doi thong tin\n return false;\n } else {\n // Cap nhat thanh cong\n return true;\n }\n } catch (PDOException $e) {\n echo \"<br />\" . $e->getMessage();\n return $e->getMessage();\n }\n return true;\n }", "function userEmailUpdate(PDO $db,$email,$id)\n{\n $sql = \"UPDATE users SET email = :email WHERE id = :id\";\n\n $stmt = $db->prepare($sql); \n \n $stmt->bindParam(':email', $email, PDO::PARAM_STR);\n $stmt->bindParam(':id', $id, PDO::PARAM_INT); \n $stmt->execute();\n}", "public function test_user_update_invalid_phone()\n {\n Storage::fake('photos');\n $response = $this->json('POST', '/update_user', [\n 'id' => $this->admin_user_id,\n 'full_name' => $this->fullname,\n 'email' => $this->email,\n 'f_name' => $this->firstname,\n 'l_name' => $this->lastname,\n 'phone' => str_repeat(01670514306, 10),\n 'dob' => $this->dob,\n 'gender' => $this->gender,\n 'postal_code' => $this->postal,\n 'image' => UploadedFile::fake()->image('photo1.jpg'),\n ]);\n\n $response\n ->assertStatus(200)\n ->assertExactJson([\n $this->all_message => $this->user_update_invalid_phone,\n ]);\n }", "protected function update()\n\t{\n\t\t//append ID to fields\n\t\t$query = $this->connection->prepare\n\t\t(\"\n\t\t\tupdate Booth\n\t\t\tset BoothNum = ?\n\t\t\twhere BoothID = ?\n\t\t\");\n\n\t\t$query->execute(array_values($this->fields));\n\n\t}", "public function update(Request $request, $id)\n {\n $email = Phone::find($id);\n $name = request()->input('name');\n $value = request()->input('value');\n $name = substr($name, 0, -1);\n $email->{$name} = $value;\n $email->save();\n }", "public function saveEmail()\n {\n $this->validate([\n 'email' => [\n 'sometimes',\n 'required',\n 'email',\n Rule::unique(shopper_table('users'), 'email')->ignore($this->customer_id),\n ],\n ]);\n\n $this->updateValue(\n 'email',\n $this->email,\n 'Customer Email address updated successfully.'\n );\n\n $this->emailUpdate = false;\n $this->emit('profileUpdate');\n }", "public function update(Request $request){\n $input = $request->all();\n \n if(!$input['uid'])return response()->json([\"message\"=>\"Error!\",\"code\"=>300]); \n\n $at_user = AtUser::find($input['uid']);\n $at_user->name = $input['name'];\n $at_user->email = $input['email'];\n $at_user->telephone = $input['telephone'];\n\n if($at_user->save()){\n return response()->json([\"message\"=>\"OK!\",\"code\" => \"200\"]); \n } \n else{\n return response()->json([\"message\"=>\"Error!\", \"code\" => \"300\"]);\n } \n }", "public function update_user($email,$link){\n $query = $this->db->where('01_email', $email)\n ->set('forgot_token', $link)\n ->update('register_01');\n if($query){\n return true;\n }else{\n return false;\n }\n }", "function update(){\n $query = \"UPDATE\n \" . $this->table_name . \"\n SET\n email=:email, subject=:subject, message=:message \n\t\t\t\t\t WHERE\n\t\t\t\t\t\tid = :id\";\n \n // prepare query\n $stmt = $this->conn->prepare($query);\n \n // sanitize\n\t\t $this->id=htmlspecialchars(strip_tags($this->id));\n $this->name=htmlspecialchars(strip_tags($this->email));\n \n $this->description=htmlspecialchars(strip_tags($this->subject));\n $this->category_id=htmlspecialchars(strip_tags($this->message));\n \n \n \n // bind values\n\t\t $stmt->bindParam(\":id\", $this->id);\n $stmt->bindParam(\":email\", $this->email);\n \n $stmt->bindParam(\":subject\", $this->subject);\n $stmt->bindParam(\":message\", $this->message);\n \n // execute query\n if($stmt->execute()){\n return true;\n }else{\n return false;\n }\n }", "public function update_user_password_by_phone($data)\n {\n foreach($data as $key=>$val) $$key=get_magic_quotes_gpc()?$val:addslashes($val);\n $password = md5($password);\n $query = Yii::$app->db;\n $query->createCommand()->update('core_users', ['password' => \"$password\"], \"phone_number = '$phone_number'\")->execute();\n return true;\n }", "public function updateUserDetails()\r\n{\r\n $query_string = \"UPDATE users \";\r\n $query_string .= \"SET \";\r\n $query_string .= \"username = :username, \";\r\n $query_string .= \"password = :password, \";\r\n $query_string .= \"email = :email, \";\r\n $query_string .= \"firstname = :firstname, \";\r\n $query_string .= \"lastname = :lastname \";\r\n $query_string .= \"WHERE userid = :userid\";\r\n\r\n return $query_string;\r\n}", "public function store(Request $request){\n $rules =[\n 'u_name' => 'required',\n 'email' => 'unique:public_users,email',\n 'phone' => ['unique:public_users,phone',],\n 'location' => 'required',\n ];\n\n $customMessages = [\n 'required' => 'The :attribute field can not be blank.',\n 'unique' => 'The :attribute is already exists.'\n ];\n\n $this->validate($request, $rules, $customMessages);\n\n if(isset($request->updateid)){\n $data=public_users::find($request->updateid);\n }\n else{\n $data=new public_users();\n }\n $data->name=$request->u_name;\n $data->email=$request->email;\n $data->phone=$request->phone;\n $data->location=$request->location;\n $data->num_of_sends=1;\n $data->status=0;\n $rand = rand(10000,99999);\n $data->sms_code = $rand;\n $data->token=Str::random(32);\n session()->put([\n 'tmp_EM'=>$request->email\n ]);\n $smsContent = \"Hi $request->u_name,Use this code to activate your account.$rand\";\n\n try{\n $data->num_of_sends=1;\n $data->save();\n //$this->SendActiveMail($data);\n $this->SendActiveSms($data,$smsContent);\n //session()->flash('success_msg','Successfully Registered !');\n echo '<div class=\"col-md-5 col-lg-5 col-sm-10 col-10 mx-auto login-div\" style=\"margin-top: 40px;\">\n <div class=\"alert alert-success\">\n <a href=\"#\" class=\"close\" data-dismiss=\"alert\" aria-label=\"close\">&times;</a>\n Congratulations! your account is registered, you will shortly receive an OTP to activate your account.\n </div>\n <div class=\"card shadow\" style=\"border-radius: 10px;\">\n <div class=\"card-body\">\n <form role=\"form\" method=\"POST\" action=\"/public/register/otp\" autocomplete=\"off\"> \n <div class=\"form-group\">\n <label for=\"u_name\" class=\"control-label pull-left\" style=\"padding-right: 25px;\">Enter OTP to verify mobile number :</label>\n <input type=\"text\" class=\"form-control\" id=\"IdPublicOtp\" name=\"otp\" required autofocus >\n <input type=\"hidden\" class=\"form-control\" id=\"IdPublicToken\" name=\"_token\" value=\"'.csrf_token().'\">\n </div>\n <div class=\"form-group\">\n <div class=\"float-left\">\n <button type=\"submit\" id=\"IdOtpSubmit\" class=\"btn btn-primary\" style=\"display: inline;\">Submit</button>\n <a href=\"#\" class=\"btn btn-link\" id=\"IdPublicResendSms\" style=\"font-size: 14px;display: inline;\">\n Resend OTP !\n </a><br/>\n </div>\n </div><br/></form></div></div></div>';\n }\n catch(\\Exception $exception){\n echo '<div class=\"col-md-5 col-lg-5 col-sm-10 col-10 mx-auto login-div\" style=\"margin-top: 40px;\">\n <div class=\"alert alert-danger\">\n <a href=\"#\" class=\"close\" data-dismiss=\"alert\" aria-label=\"close\">&times;</a>\n Something went wrong!\n </div>';\n }\n }", "function updateacct() {\r\n$email=$this->get('email');\r\n\r\n//instantiating variables begin\r\n\r\n$this->surname=safeAddSlashes($_POST['surname']);\r\n$this->othernames=safeAddSlashes($_POST['othernames']);\r\n$this->email=safeAddSlashes($_POST['email']);\r\n$this->gsm1=safeAddSlashes($_POST['gsm1']);\r\n$this->gsm2=safeAddSlashes($_POST['gsm2']);\r\n$this->contactaddress=safeAddSlashes($_POST['contactaddress']);\r\n$this->homedescription=safeAddSlashes($_POST['homedescription']);\r\n$this->state=safeAddSlashes($_POST['state']);\r\n$this->paymentmode=safeAddSlashes($_POST['paymentmode']);\r\n\r\n\r\n//database connection begins\r\n\r\n// Include the MySQL class\r\nrequire_once('database/MySQL.php');\r\n\r\nrequire('database/connx.php');\r\nrequire('database/strip_quotes.php');\r\n\r\n// Connect to MySQL\r\n$db = & new MySQL($host,$dbUser,$dbPass,$dbName);\r\n\r\n$sql=\"UPDATE membersaccount SET\r\nsurname='$this->surname',\r\nothernames='$this->othernames',\r\ngsm1='$this->gsm1',\r\ngsm2='$this->gsm2',\r\ncontactaddress='$this->contactaddress',\r\nhomedescription='$this->homedescription',\r\nstate='$this->state',\r\npaymentmode='$this->paymentmode' where email='$email'\";\r\n//echo $sql;\r\n\r\nif($db->query($sql)){$this->response=\"Update Successful\";}\r\n\r\n\r\n}", "function save() {\n\t\t// Error-checking should already be complete\n\t\tif(person::exists($this->id)) {\n\t\t\t// UPDATE an existing database entry\n\t\t\t$query = \"UPDATE people set \"\n\t\t\t\t\t.\"firstname = \".$this->firstname.\", \"\n\t\t\t\t\t.\"lastname = \".$this->lastname.\", \"\n\t\t\t\t\t.\"address_home_street_1 = \".$this->address_home_street_1.\", \"\n\t\t\t\t\t.\"address_home_street_2 = \".$this->address_home_street_2.\", \"\n\t\t\t\t\t.\"address_home_city = \".$this->address_home_city.\", \"\n\t\t\t\t\t.\"address_home_state = \".$this->address_home_state.\", \"\n\t\t\t\t\t.\"address_home_zip = \".$this->address_home_zip.\", \"\n\t\t\t\t\t.\"address_work_street_1 = \".$this->address_work_street_1.\", \"\n\t\t\t\t\t.\"address_work_street_2 = \".$this->address_work_street_2.\", \"\n\t\t\t\t\t.\"address_work_city = \".$this->address_work_city.\", \"\n\t\t\t\t\t.\"address_work_state = \".$this->address_work_state.\", \"\n\t\t\t\t\t.\"address_work_zip = \".$this->address_work_zip.\", \"\n\t\t\t\t\t.\"email = \".$this->email.\", \"\n\t\t\t\t\t.\"phone_personal_cell = \".$this->phone_personal_cell.\", \"\n\t\t\t\t\t.\"phone_work = \".$this->phone_work.\", \"\n\t\t\t\t\t.\"phone_work_cell = \".$this->phone_work_cell.\", \"\n\t\t\t\t\t.\"phone_home = \".$this->phone_home.\", \"\n\t\t\t\t\t.\"fax = \".$this->fax.\", \"\n\t\t\t\t\t.\"gender = \".$this->gender.\", \"\n\t\t\t\t\t.\"birthdate = \".$this->birthdate.\", \"\n\t\t\t\t\t.\"facebook_username = \".$this->facebook_username.\", \"\n\t\t\t\t\t.\"username = \".$this->username.\", \"\n\t\t\t\t\t.\"headshot_filename = \".$this->headshot_filename\n\t\t\t\t\t.\" WHERE id = \".$this->id;\n\t\t\t\t\t\n\t\t\t$result = mydb::cxn()->query($query);\n\t\t\tif(mydb::cxn()->error != '') throw new Exception('There was a problem updating '.$this->firstname.' '.$this->lastname.'\\'s database entry.');\n\t\t}\n\t\telse {\n\t\t\t// INSERT a new database entry\n\t\t\t$query = \"INSERT INTO people (\"\n\t\t\t\t\t.\"firstname, \"\n\t\t\t\t\t.\"lastname, \"\n\t\t\t\t\t.\"address_home_street_1, \"\n\t\t\t\t\t.\"address_home_street_2, \"\n\t\t\t\t\t.\"address_home_city, \"\n\t\t\t\t\t.\"address_home_state, \"\n\t\t\t\t\t.\"address_home_zip, \"\n\t\t\t\t\t.\"address_work_street_1, \"\n\t\t\t\t\t.\"address_work_street_2, \"\n\t\t\t\t\t.\"address_work_city, \"\n\t\t\t\t\t.\"address_work_state, \"\n\t\t\t\t\t.\"address_work_zip, \"\n\t\t\t\t\t.\"email, \"\n\t\t\t\t\t.\"phone_personal_cell, \"\n\t\t\t\t\t.\"phone_home, \"\n\t\t\t\t\t.\"phone_work, \"\n\t\t\t\t\t.\"phone_work_cell, \"\n\t\t\t\t\t.\"fax, \"\n\t\t\t\t\t.\"gender, \"\n\t\t\t\t\t.\"birthdate, \"\n\t\t\t\t\t.\"facebook_username, \"\n\t\t\t\t\t.\"username, \"\n\t\t\t\t\t.\"headshot_filename) \"\n\t\t\t\t\t.\"VALUES (\"\n\t\t\t\t\t.\"'\".$this->firstname.\"', \"\n\t\t\t\t\t.\"'\".$this->lastname.\"', \"\n\t\t\t\t\t.\"'\".$this->address_home_.\"', \"\n\t\t\t\t\t.\"'\".$this->address_home_.\"', \"\n\t\t\t\t\t.\"'\".$this->address_home_.\"', \"\n\t\t\t\t\t.\"'\".$this->address_home_.\"', \"\n\t\t\t\t\t.\"'\".$this->address_home_.\"', \"\n\t\t\t\t\t.\"'\".$this->address_work_.\"', \"\n\t\t\t\t\t.\"'\".$this->address_work_.\"', \"\n\t\t\t\t\t.\"'\".$this->address_work_.\"', \"\n\t\t\t\t\t.\"'\".$this->address_work_.\"', \"\n\t\t\t\t\t.\"'\".$this->address_work_.\"', \"\n\t\t\t\t\t.\"'\".$this->email.\"', \"\n\t\t\t\t\t.\"'\".$this->phone_personal_cell.\"', \"\n\t\t\t\t\t.\"'\".$this->phone_home.\"', \"\n\t\t\t\t\t.\"'\".$this->phone_work.\"', \"\n\t\t\t\t\t.\"'\".$this->phone_work_cell.\"', \"\n\t\t\t\t\t.\"'\".$this->fax.\"', \"\n\t\t\t\t\t.\"'\".$this->gender.\"', \"\n\t\t\t\t\t.\"'\".$this->birthdate->format('Y-m-d').\"', \"\n\t\t\t\t\t.\"'\".$this->facebook_username.\"', \"\n\t\t\t\t\t.\"'\".$this->username.\"', \"\n\t\t\t\t\t.\"'\".$this->headshot_filename.\"')\";\n\t\t\t$result = mydb::cxn()->query($query);\n\t\t\tif(mydb::cxn()->error != '') throw new Exception('There was a problem inserting '.$this->firstname.' '.$this->lastname.'\\'s database entry.');\n\t\t}\n\t\t\n\t}", "public function update()\n\t{\n\t\t$this->user->db_update();\n\t}", "function editMobileContact(){\n\n if($this->session->has_userdata('userId')){\n\n $this->load->library('form_validation');\n $this->form_validation->set_rules('editMobileNumber','Mobile Number','trim|required');\n\n if($this->form_validation->run() === FALSE){\n\n $this->userMobileContacts();\n }else{\n\n $userId = $this->session->userdata('userId');\n $mobileContactId = $this->uri->segment(2);\n\n $mobileContact = $this->Contact_model->getUserContactById($mobileContactId);\n if($mobileContact){\n if($mobileContact->user_iduser === $userId){\n $this->Contact_model->updateContact($mobileContactId,$this->input->post('editMobileNumber'));\n }\n }\n\n redirect(site_url('user-mobile-contacts'));\n }\n }\n else{\n\n //redirect to home page\n redirect(site_url());\n }\n }", "public function update() {\r\n $id = $_REQUEST[\"idUsuario\"];\r\n $email = $_REQUEST[\"email\"];\r\n $password = $_REQUEST[\"password\"];\r\n $nombre = $_REQUEST[\"nombre\"];\r\n $apellido1 = $_REQUEST[\"apellido1\"];\r\n $apellido2 = $_REQUEST[\"apellido2\"];\r\n $dni = $_REQUEST[\"dni\"];\r\n $telefono = $_REQUEST[\"telefono\"];\r\n $tipo = $_REQUEST[\"tipo\"];\r\n $imagen = $_REQUEST[\"imagen\"];\r\n\r\n $result = $this->db->manipulacion(\"UPDATE usuario SET\r\n email = '$email',\r\n\t\t\t\t\t\t\t\tnombre = '$nombre',\r\n\t\t\t\t\t\t\t\tapellido1 = '$apellido1',\r\n\t\t\t\t\t\t\t\tapellido2 = '$apellido2',\r\n\t\t\t\t\t\t\t\tdni = '$dni',\r\n\t\t\t\t\t\t\t\ttelefono = '$telefono',\r\n tipo = '$tipo',\r\n imagen = '$imagen'\r\n WHERE id = '$id'\");\r\n return $result;\r\n }", "public function updateinforamtionAPI(Request $request)\n {\n $validator = Validator::make(\n $request->all(),\n [\n 'name' => 'required',\n 'lastname' => 'required',\n 'county' => 'required',\n 'city' => 'required',\n 'street' => 'required',\n 'zip' => 'required',\n 'phone' => 'required',\n 'mobile' => 'required',\n 'whatsapp' => 'required'\n ]\n );\n\n if ($validator->passes()) {\n\n $user = User::where(\"id\", Auth::id())->first();\n $user->name = $request->name;\n $user->lastname = $request->lastname;\n $user->city = $request->city;\n $user->county = $request->county;\n $user->street = $request->street;\n $user->zip = $request->zip;\n $user->phone = $request->phone;\n $user->mobile = $request->mobile;\n $user->whatsapp = $request->whatsapp;\n $user->save();\n\n\n return response()->json([\n 'error' => 0\n ]);\n } else {\n return response()->json([\n 'error' => 1,\n 'data' => $validator->errors()\n ->all()\n ], 400);\n }\n }", "public function postUpdate()\n\t{\n $input = Input::only('global_prefix','panel_path', 'domain_limit', 'phone_number_limit', 'mail_address', 'sender_name', 'sip_server','reserved_extension','reserved_domain_prefix');\n\n $rules = array(\n 'global_prefix' => 'required|min:1|max:10',\n 'panel_path' => 'required|min:1',\n 'domain_limit' => 'required|numeric',\n 'phone_number_limit' => 'required|numeric',\n 'mail_address' => 'required|email',\n 'sender_name' => 'required|min:1',\n 'sip_server' => 'required|min:3',\n 'reserved_extension' => 'required|min:3',\n 'reserved_domain_prefix' => 'required|min:3',\n );\n $v = Validator::make($input, $rules);\n if ($v->fails()) {\n return Output::push(array('path' => 'main_config', 'errors' => $v, 'input' => TRUE));\n }\n\n $panel_path = Setting::whereName('global_prefix')->first();\n $panel_path->value = $input['global_prefix'];\n $panel_path->save();\n\n $panel_path = Setting::whereName('panel_path')->first();\n $panel_path->value = $input['panel_path'];\n $panel_path->save();\n\n $domain_limit = Setting::whereName('domain_limit')->first();\n $domain_limit->value = $input['domain_limit'];\n $domain_limit->save();\n\n $phone_number_limit = Setting::whereName('phone_number_limit')->first();\n $phone_number_limit->value = $input['phone_number_limit'];\n $phone_number_limit->save();\n\n $mail_address = Setting::whereName('mail_address')->first();\n $mail_address->value = $input['mail_address'];\n $mail_address->save();\n\n $sender_name = Setting::whereName('sender_name')->first();\n $sender_name->value = $input['sender_name'];\n $sender_name->save();\n\n $sip_server = Setting::whereName('sip_server')->first();\n $sip_server->value = $input['sip_server'];\n $sip_server->save();\n\n $reserved_extension = Setting::whereName('reserved_extension')->first();\n $reserved_extension->value = $input['reserved_extension'];\n $reserved_extension->save();\n\n $reserved_domain_prefix = Setting::whereName('reserved_domain_prefix')->first();\n $reserved_domain_prefix->value = $input['reserved_domain_prefix'];\n $reserved_domain_prefix->save();\n\n if ($panel_path->id && $domain_limit->id && $phone_number_limit && $mail_address && $sender_name && $sip_server && $reserved_domain_prefix &&$reserved_extension) {\n return Output::push(array(\n 'path' => 'main_config',\n 'messages' => array('success' => _('You have updated main configuration successfully')),\n ));\n } else {\n return Output::push(array(\n 'path' => 'main_config',\n 'messages' => array('fail' => _('Fail to update main configuration')),\n 'input' => TRUE,\n ));\n }\n\t}", "public function setPersonalInfo($email)\r\n\t{\r\n\t\t$errors = array();\r\n\t\tif(!strlen($email))\r\n\t\t{\r\n\t\t\t$errors['email'] = 'Error: email is required';\r\n\t\t}else if(!filter_var($email, FILTER_VALIDATE_EMAIL)){\r\n\t\t\t$errors['email'] = 'Error: invalid email';\r\n\t\t}\r\n\r\n\t\tif(count($errors)) return $errors;\r\n\t\t\r\n\t\t$email = mysql_real_escape_string(stripslashes($email));\r\n\t\t\r\n\t\t$query = 'UPDATE users SET email=\"' . $email . '\" WHERE id=' . $this->user->id . ' LIMIT 1';\r\n\t\tmysql_query($query) or die('Bad SQL Query in updating personal info');\r\n\t\treturn true;\r\n\t}", "function handle_memberlist_update() {\r\n\tglobal $wpdb;\r\n\t\r\n\t$table = $wpdb->prefix . 'memberlist';\r\n\t\r\n\tif (isset($_POST['memberid'])) {\r\n\t\t$id = $_POST['memberid'];\r\n\t}\r\n\tif (isset($_POST['name'])) {\r\n\t\t$name = $_POST['name'];\r\n\t}\r\n\tif (isset($_POST['phone'])) {\r\n\t\t$phone = $_POST['phone'];\r\n\t}\r\n\tif (isset($_POST['email'])) {\r\n\t\t$email = $_POST['email'];\r\n\t}\r\n\tif (isset($_POST['extra'])) {\r\n\t\t$extra = $_POST['extra'];\r\n\t}\r\n\t\r\n\t$wpdb->update(\r\n\t\t$table, //table\r\n\t\tarray('name' => $name, 'phone' => $phone, 'email' => $email, 'extra' => $extra ), //variables\r\n\t\tarray('ID'=>$id), // where\r\n\t\tarray('%s','%s','%s','%s'), //data format\r\n\t\tarray('%s') // where format\r\n\t);\r\n}", "public function updateByEmail(Request $request) {\n\n if(!isset($reuqest->email) || empty($reuqest->email)) {\n return \\Response::json(array('message' => 'Email is requried'), 404);\n }\n $email = $reuqest->email;\n $user = \\Acelle\\Model\\User::findByEmail($email);\n\n // check if item exists\n if (!is_object($user)) {\n return \\Response::json(array('message' => 'User not found'), 404);\n }\n $uid = $user->uid;\n\n // Get current user\n $current_user = \\Auth::guard('api')->user();\n $customer = \\Acelle\\Model\\Customer::findByUid($uid);\n\n // check if item exists\n if (!is_object($customer)) {\n return \\Response::json(array('message' => 'Item not found'), 404);\n }\n\n // authorize\n if (!$current_user->can('update', $customer)) {\n return \\Response::json(array('message' => 'Unauthorized'), 401);\n }\n\n // save posted data\n if ($request->isMethod('post')) {\n\n if($this->isDemoMode()) {\n return $this->notAuthorized();\n }\n\n $rules = $customer->apiUpdateRules($request);\n\n $validator = \\Validator::make($request->all(), $rules);\n if ($validator->fails()) {\n return response()->json($validator->messages(), 403);\n }\n\n // Update user account for customer\n $user = $customer->user;\n if (!empty($request->email)) {\n $user->email = $request->email;\n }\n // Update password\n if (!empty($request->password)) {\n $user->password = bcrypt($request->password);\n }\n $user->save();\n\n // Save current user info\n $customer->fill($request->all());\n $customer->save();\n\n // Upload and save image\n if ($request->hasFile('image')) {\n if ($request->file('image')->isValid()) {\n // Remove old images\n $customer->removeImage();\n $customer->image = $customer->uploadImage($request->file('image'));\n }\n }\n\n // Remove image\n if ($request->_remove_image == 'true') {\n $customer->removeImage();\n $customer->image = '';\n }\n\n return \\Response::json(array(\n 'message' => trans('messages.customer.updated'),\n 'customer_uid' => $customer->uid\n ), 200);\n }\n }", "public function updateProfile()\n {\n try {\n $email = Crypt::decryptString(request()->hash);\n $user = Customer::whereEmail($email)->first();\n if ($user) {\n $user->fname = request()->fname;\n $user->lname = request()->lname;\n $user->phone = request()->phone;\n $user->address = request()->address;\n if (request()->image)\n $user->image = $this->uploadBase64Image(request()->image);\n\n $user->save();\n\n $user->access_token = Crypt::encryptString($user->email);\n\n return ['status' => true, 'message' => 'Profile updated successfully.', 'data' => $user];\n }//..... end if() .....//\n\n return ['status' => false, 'message' => 'User details not found!.'];\n } catch (\\Exception $exception) {\n return $exception->getMessage();\n return ['status' => false, 'message' => 'Internal server error occurred, please try later.'];\n }\n }", "public function update_user($email, $lastname, $firstname, $genre, $phone, $target_file) {\n global $pdo;\n $user = $this->get_user_talent_by_email($email, 'users');\n\n if($user) {\n $old_author = $user['firstname'].' '.$user['lastname'];\n $author = $firstname.' '.$lastname;\n $query = $pdo->prepare(\"UPDATE users SET lastname=?, firstname=?, genre=?, phone=? , profile_target = ? WHERE email = ?\");\n $query->bindValue(1, $lastname);\n $query->bindValue(2, $firstname);\n $query->bindValue(3, $genre);\n $query->bindValue(4, $phone);\n $query->bindValue(5, $target_file);\n $query->bindValue(6, $email);\n $query->execute();\n\n $this->update_author($old_author, $author, 'articles');\n $this->update_author($old_author, $author, 'events');\n $_SESSION['message_CB_admin'] = 'Votre profil à bien été mis a jour';\n } else {\n return json_encode(array('error' => \"Nous n'avons pas pu mettre à jour votre profil. Merci de r&essayer ultérieurement\"));\n }\n }", "public function setCredentials( $name, $email,$phone, $pass){\n $condition = \"email LIKE '\".$email.\"'\";\n $this->db->select('*');\n $this->db->from('User');\n $this->db->where($condition);\n\n $query = $this->db->get();\n if($query->num_rows() == 0){\n try{\n $args = array(\n 'name'=>$name,\n 'email'=>$email,\n 'phone'=>$phone,\n 'password'=>$pass\n );\n $this->db->insert('User', $args);\n if($this->db->affected_rows()>0){ return TRUE; }\n else return FALSE;\n }catch(exception $x){\n $x->getMessage();\n return FALSE;\n }\n }else{ return FALSE; }\n\n }", "public function update(Request $request, $email)\n { \n\n // echo $email;\n // echo \"<br>\";\n // print_r($request->all());\n\n $customer = Customer::where('email', $email)->update(['firstname' => $request->firstname, 'lastname' => $request->lastname, 'phone' => $request->phone, 'mobile' => $request->mobile]);\n if($customer){\n // return response()->json(Customer::all());\n return response()->json([\n 'message'=>'Customer Updated Successfully!!',\n 'customer'=>Customer::all()\n ]);\n }\n\n\n // return $customer;\n // ['firstname' => $request->firstname, 'lastname' => $request->lastname, 'phone' => $request->phone, 'mobile' => $request->mobile]\n }", "public function edit(Request $request)\n { \n //接受手机号\n $data1 = $request->input('phone');\n $data = Hash::make($request->input('upwd'));\n //获取用户的密码重新修改\n $users=users::where('tel',$data1)->first();\n if($users){\n $res = DB::table('users')\n ->where('tel',$data1)\n ->update(['upwd' =>$data]);\n\n if($res){\n return back()->with('success','修改成功');\n }else{\n return back()->with('error','修改失败');\n }\n }else{\n return back()->with('error','信息有误');\n }\n \n }", "public function update($nome,$email,$id){\n $nome = parent::escapeString($nome);\n $email = parent::escapeString($email);\n \t$sql = \"UPDATE `usuarios` SET `nome` = '$nome', `email` = '$email' WHERE `id` = '$id'\";\n return parent::executaQuery($sql);\n }", "public function db_update() {}", "public function update($id)\n\t{\n $user = User::find($id);\n $user->name = Input::get('name');\n $user->email = Input::get('email');\n $user->mobile = Input::get('mobile');\n $user->save();\n echo 'success';\n\t}", "function updateUser($userId, $image, $password, $email, $phone, $about){\n //TODO Actually implement the function.\n // $dbQuery = \"UPDATE USERS SET \";\n }" ]
[ "0.71224314", "0.6984311", "0.67206186", "0.66885287", "0.6672244", "0.6659666", "0.6575386", "0.65590197", "0.65170586", "0.6443038", "0.6368881", "0.6348229", "0.632392", "0.63024247", "0.6299147", "0.62951887", "0.62589866", "0.62522894", "0.62107253", "0.6207905", "0.6204299", "0.62004536", "0.6184246", "0.6127638", "0.6123242", "0.61106175", "0.6108266", "0.6106311", "0.6102935", "0.61021686", "0.6065249", "0.606128", "0.6056598", "0.605373", "0.6053555", "0.6048009", "0.6036795", "0.60284597", "0.5999876", "0.5996303", "0.5991969", "0.599105", "0.5983111", "0.5981504", "0.5978268", "0.59681416", "0.5965424", "0.59586215", "0.59410614", "0.5940289", "0.5936141", "0.59350854", "0.5928944", "0.5918588", "0.5891492", "0.58889747", "0.5884345", "0.58841324", "0.5872905", "0.58708405", "0.5868343", "0.58657193", "0.58638614", "0.58606756", "0.5856025", "0.5855406", "0.58520776", "0.5850168", "0.5845419", "0.5838487", "0.5834591", "0.5826505", "0.582598", "0.58189553", "0.581723", "0.5814769", "0.58053416", "0.57889116", "0.57838094", "0.5780441", "0.5777242", "0.57769185", "0.57718617", "0.5770047", "0.57695484", "0.5761082", "0.57598597", "0.57586366", "0.5753293", "0.5741756", "0.5740101", "0.5735504", "0.57276446", "0.5726546", "0.5724431", "0.57194537", "0.5717968", "0.5717613", "0.57153", "0.5709511", "0.5707592" ]
0.0
-1
Send email, decode utf8 to latin and check for valid email
function sendMail($title, $message, $to, $to_name, $from, $from_name) { if (filter_var($to, FILTER_VALIDATE_EMAIL)) { saveToLogFile(getLogFileName(), "Skickar email: " . $title . ", till: $to ", 'INFO'); /* $headers = 'To: ' . $to_name . ' <' . $to . '>' . "\r\n"; $headers .= 'From: ' . $from_name . ' <' . $from . '>' . "\r\n"; $headers .= 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=ISO-8859-1' . "\r\n"; $title_latin = utf8_decode($title); $message_latin = utf8_decode($message); $headers_latin = utf8_decode($headers); $to_latin = utf8_decode($to); $success = mail($to_latin, $title_latin, $message_latin, $headers_latin); */ $headers = 'To: ' . $to_name . ' <' . $to . '>' . "\r\n"; $headers .= 'From: ' . $from_name . ' <' . $from . '>' . "\r\n"; $headers .= 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=utf-8' . "\r\n"; $success = mail($to, $title, $message, $headers); } else { $success = false; } if (!$success) { saveToLogFile(getLogFileName(), "Misslyckades att skicka email: " . $title . ", till: $to ", 'ERROR'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mail_utf82($to, $from_user, $from_email, $subject = '(No subject)', $message = ''){\n $from_user = \"=?UTF-8?B?\".base64_encode($from_user).\"?=\"; // $from_user = \"=?utf-8?Q?\".($from_user).\"=\";\n //$from_user = \"=?UTF-8?Q?\".($from_user).\"?=\";\n //$from_user = \"=?utf-8?Q?=D0=A4=D0=BE=D0=BD=D0=B4?=\";\n\n\n $subject = \"=?UTF-8?B?\".base64_encode($subject).\"?=\"; //Content-type: text/html;\n $mime = \"\\r\\nMIME-Version: 1.0\" . \"Content-type: multipart/alternative; charset=UTF-8\";\n $mime = \"\\r\\nMIME-Version: 1.0\" . \"Content-type: text/html; charset=UTF-8 \\r\\nContent-Transfer-Encoding: 7bit\";\n\n $headers = \"From: $from_user <$from_email> $mime\"; $headers = \"From: <$from_email>\"; // . \"\\r\\n\"\n\n return mail($to, $subject, $message, $headers);\n }", "protected function needsEncoding(): bool\n {\n $emailFormat = $this->format();\n\n if (($emailFormat === 'text' || $emailFormat === 'both') and mb_check_encoding($this->textMessage, 'ASCII') === false) {\n return true;\n }\n if (($emailFormat === 'html' || $emailFormat === 'both') and mb_check_encoding($this->htmlMessage, 'ASCII') === false) {\n return true;\n }\n\n return false;\n }", "public function testEmail() {\n $this->assertEquals('email@domain.com', Sanitize::email('em<a>il@domain.com'));\n $this->assertEquals('email+tag@domain.com', Sanitize::email('email+t(a)g@domain.com'));\n $this->assertEquals('email+tag@domain.com', Sanitize::email('em\"ail+t(a)g@domain.com'));\n }", "function charrestore_validemail($email)\n{\n\t$is_valid = TRUE;\n\t$atIndex = strrpos($email, \"@\");\n\tif( is_bool($atIndex) && !$atIndex )\n\t{\n\t\t$is_valid = FALSE;\n\t}\n\telse\n\t{\n\t\t$domain = substr($email, $atIndex+1);\n\t\t$local = substr($email, 0, $atIndex);\n\t\t$localLen = strlen($local);\n\t\t$domainLen = strlen($domain);\n\t\tif( $localLen < 1 || $localLen > 64 )\n\t\t{\n\t\t\t// local part length exceeded\n\t\t\t$is_valid = FALSE;\n\t\t}\n\t\telseif( $domainLen < 1 || $domainLen > 255 )\n\t\t{\n\t\t\t// domain part length exceeded\n\t\t\t$is_valid = FALSE;\n\t\t}\n\t\telseif( $local[0] == '.' || $local[$localLen-1] == '.' )\n\t\t{\n\t\t\t// local part starts or ends with '.'\n\t\t\t$is_valid = FALSE;\n\t\t}\n\t\telseif( preg_match('/\\\\.\\\\./', $local) )\n\t\t{\n\t\t\t// local part has two consecutive dots\n\t\t\t$is_valid = FALSE;\n\t\t}\n\t\telseif( !preg_match('/^[A-Za-z0-9\\\\-\\\\.]+$/', $domain) )\n\t\t{\n\t\t\t// character not valid in domain part\n\t\t\t$is_valid = FALSE;\n\t\t}\n\t\telseif( preg_match('/\\\\.\\\\./', $domain))\n\t\t{\n\t\t\t// domain part has two consecutive dots\n\t\t\t$is_valid = FALSE;\n\t\t}\n\t\telseif( !preg_match('/^(\\\\\\\\.|[A-Za-z0-9!#%&`_=\\\\/$\\'*+?^{}|~.-])+$/', str_replace(\"\\\\\\\\\",\"\",$local)) )\n\t\t{\n\t\t\t// character not valid in local part unless \n\t\t\t// local part is quoted\n\t\t\tif (!preg_match('/^\"(\\\\\\\\\"|[^\"])+\"$/', str_replace(\"\\\\\\\\\",\"\",$local)))\n\t\t\t{\n\t\t\t\t$is_valid = FALSE;\n\t\t\t}\n\t\t}\n\t\tif ($is_valid && !(checkdnsrr($domain,\"MX\") || checkdnsrr($domain,\"A\")) )\n\t\t{\n\t\t\t// domain not found in DNS\n\t\t\t$is_valid = FALSE;\n\t\t}\n\t}\n\treturn $is_valid;\n}", "function _send_email($to)\n{\n $subject = \"Volunteer Management - Someone needed Help!\";\n\n $message = \"Please comeback! Someone need help!\";\n\n $subject = \"=?UTF-8?B?\" . base64_encode($subject) . \"?=\";\n\n $headers[] = 'From: Team Shunno <no-replay@' . $GLOBALS['c_domain'] . '>';\n $headers[] = 'Content-Type: text/html; charset=UTF-8';\n\n return mail($to, $subject, $message, implode(\"\\r\\n\", $headers));\n}", "public function testMailParse()\n {\n $raw = \"UmV0dXJuLVBhdGg6IDxzdXBwb3J0QGNvbW9kby5jb20+ClgtT3JpZ2luYWwtVG86IHNzbEB0ZXN0LmRlCkRlbGl2ZXJlZC1UbzogY2Rzc2xAaG9zdDJjMS50ZXN0LmRlClJlY2VpdmVkOiBmcm9tIG14cDAubmljZ2F0ZS5jb20gKG14cDAubmljZ2F0ZS5jb20gWzE4OC40MC42OS43Nl0pCiAgICBieSBob3MudGVzdC5kZSAoUG9zdGZpeCkgd2l0aCBFU01UUFMgaWQgMDAxNjU3RDMKICAgIGZvciA8c3NsQHRlc3QuZGU+OyBXZWQsICA5IEp1bCAyMDE0IDE2OjAwOjM0ICswMjAwIChDRVNUKQpSZWNlaXZlZDogZnJvbSBtY21haWwyLm1jci5jb2xvLmNvbW9kby5uZXQgKG1jbWFpbDIubWNyLmNvbG8uY29tb2RvLm5ldCBbSVB2NjoyYTAyOjE3ODg6NDAyOjFjODg6OmMwYTg6ODhjY10pCiAgICBieSBteHAwLm5pY2dhdGUuY29tIChQb3N0Zml4KSB3aXRoIEVTTVRQUyBpZCAxMDUxOUUyODAwQgogICAgZm9yIDxzc2xAdGVzdC5kZT47IFdlZCwgIDkgSnVsIDIwMTQgMTY6MDA6MzIgKzAyMDAgKENFU1QpClJlY2VpdmVkOiAocW1haWwgMTk3MjkgaW52b2tlZCBieSB1aWQgMTAwOCk7IDkgSnVsIDIwMTQgMTQ6MDA6MjkgLTAwMDAKUmVjZWl2ZWQ6IGZyb20gb3JhY2xlb25lX21jci5tY3IuY29sby5jb21vZG8ubmV0IChIRUxPIG1haWwuY29sby5jb21vZG8ubmV0KSAoMTkyLjE2OC4xMjguMjEpCiAgICBieSBtY21haWwyLm1jci5jb2xvLmNvbW9kby5uZXQgKHFwc210cGQvMC44NCkgd2l0aCBTTVRQOyBXZWQsIDA5IEp1bCAyMDE0IDE1OjAwOjI5ICswMTAwClN1YmplY3Q6IE9SREVSICMxMjM0NTY3OCAtIENPTkZJUk1BVElPTgpGcm9tOiAiQ29tb2RvIFNlY3VyaXR5IFNlcnZpY2VzIiA8bm9yZXBseV9zdXBwb3J0QGNvbW9kby5jb20+Ck1JTUUtVmVyc2lvbjogMS4wCkNvbnRlbnQtVHlwZTogbXVsdGlwYXJ0L2FsdGVybmF0aXZlOyBib3VuZGFyeT0iKEFsdGVybmF0aXZlQm91bmRhcnkpIgpDb250ZW50LVRyYW5zZmVyLUVuY29kaW5nOiA3Yml0ClRvOiAiVGVzdG1hc3RlciIgPHNzbEB0ZXN0LmRlPgpEYXRlOiBXZWQsIDA5IEp1bCAyMDE0IDEzOjU5OjUxICswMDAwCk1lc3NhZ2UtSUQ6IDw0TklyTVNzZmIyR0NQZll5VUk1bGFBQG1jbWFpbDIubWNyLmNvbG8uY29tb2RvLm5ldD4KWC1Qcm94eS1NYWlsU2Nhbm5lci1JbmZvcm1hdGlvbjogUGxlYXNlIGNvbnRhY3QgdGhlIElTUCBmb3IgbW9yZSBpbmZvcm1hdGlvbgpYLVByb3h5LU1haWxTY2FubmVyLUlEOiAxMDUxOUUyODAwQi5BQzg1RApYLVByb3h5LU1haWxTY2FubmVyOiBGb3VuZCB0byBiZSBjbGVhbgpYLVByb3h5LU1haWxTY2FubmVyLVNwYW1DaGVjazogbm90IHNwYW0sIFNwYW1Bc3Nhc3NpbiAobm90IGNhY2hlZCwKICAgIHNjb3JlPTEuNjI1LCByZXF1aXJlZCA1Ljc1LCBhdXRvbGVhcm49ZGlzYWJsZWQsIEhUTUxfTUVTU0FHRSAwLjAwLAogICAgU1BGX0hFTE9fUEFTUyAtMC4wMCwgU1VCSl9BTExfQ0FQUyAxLjYyKQpYLVByb3h5LU1haWxTY2FubmVyLVNwYW1TY29yZTogMQpYLVByb3h5LU1haWxTY2FubmVyLUZyb206IHN1cHBvcnRAY29tb2RvLmNvbQpYLVByb3h5LU1haWxTY2FubmVyLVRvOiBzc2xAdGVzdC5kZQpYLVNwYW0tU3RhdHVzOiBObwoKLS0oQWx0ZXJuYXRpdmVCb3VuZGFyeSkKQ29udGVudC1UeXBlOiB0ZXh0L3BsYWluOyBjaGFyc2V0PVVURi04CkNvbnRlbnQtVHJhbnNmZXItRW5jb2Rpbmc6IDhiaXQKCnRlc3QKCi0tKEFsdGVybmF0aXZlQm91bmRhcnkpCkNvbnRlbnQtVHlwZTogdGV4dC9odG1sOyBjaGFyc2V0PVVURi04CkNvbnRlbnQtVHJhbnNmZXItRW5jb2Rpbmc6IDhiaXQKCjxodG1sPgo8aGVhZD4KPC9oZWFkPgo8Ym9keT4KdGVzdAo8L2JvZHk+CjwvaHRtbD4KCi0tKEFsdGVybmF0aXZlQm91bmRhcnkpLS0KCg==\";\n\n $imapAdapter = $this->createImapAdpater();\n\n /** @var \\PHPUnit_Framework_MockObject_MockObject $imapExtension */\n $imapExtension = $imapAdapter->getInstance();\n\n $imapExtension\n ->expects($this->any())\n ->method('search')\n ->will($this->returnValue(array(0)));\n\n $imapExtension\n ->expects($this->any())\n ->method('getMessage')\n ->will($this->returnValue($this->createImapRawMessage(base64_decode($raw))));\n\n $messages = $this->imapHelper->fetchMails($imapAdapter, array(), null, null, true, true);\n\n $message = $messages[0];\n\n $this->assertEquals('ORDER #12345678 - CONFIRMATION', $message['subject']);\n $this->assertEquals(1404914391, $message['received']);\n $this->assertEquals(\"test\\n\\n\", $message['plainText']);\n }", "function antispambot($email_address, $hex_encoding = 0)\n {\n }", "function send_mime_mail(\r\n\t$name_from, // имя отправителя\r\n\t$email_from, // email отправителя\r\n\t$name_to, // имя получателя\r\n\t$email_to, // email получателя\r\n\t$data_charset, // кодировка переданных данных\r\n\t$send_charset, // кодировка письма\r\n\t$subject, // тема письма\r\n\t$body // текст письма\r\n\t) {\r\n\t\r\n\t$email_to = explode(',', trim(trim($email_to),','));\r\n\r\n\tforeach($email_to as $email)\r\n\t{\r\n\t\t$emails[] = mime_header_encode($name_to, $data_charset, $send_charset) . ' <' . trim($email) . '>';\r\n\t}\r\n\t$to = implode(',', $emails);\r\n\t\r\n\t$subject = mime_header_encode($subject, $data_charset, $send_charset);\r\n\t$from = mime_header_encode($name_from, $data_charset, $send_charset) .' <' . $email_from . '>';\r\n\t\r\n\tif($data_charset != $send_charset) {\r\n\t\t$body = iconv($data_charset, $send_charset, $body);\r\n\t}\r\n\t\r\n\t$headers = \"From: $from\\r\\n\";\r\n\t$headers .= \"Content-type: text/html; charset=$send_charset\\r\\n\";\r\n\t$headers .= \"Mime-Version: 1.0\\r\\n\";\r\n\t\r\n\treturn mail($to, $subject, $body, $headers);\r\n}", "function plainMailEncoded($email,$subject,$message,$headers='',$enc='8bit',$charset='ISO-8859-1',$urlmode=null)\t{\n\n\t\tif ($urlmode)\t{\n\t\t\t$message=t3lib_div::substUrlsInPlainText($message,$urlmode);\n\t\t}\n\n\t\tt3lib_div::plainMailEncoded(\n\t\t\t$email,\n\t\t\t$subject,\n\t\t\t$message,\n\t\t\t$headers,\n\t\t\t$enc,\n\t\t\t$charset\n\t\t);\n\t}", "function emailOk ($email) {\r\n return filter_var($email, FILTER_VALIDATE_EMAIL);\r\n }", "function checkEmail($data) {\n $data = trim($data);\n $data = stripslashes($data);\n $data = htmlspecialchars($data);\n return $data;\n}", "function eMail($string) {\n\n\n\t\t}", "function emailIsValid($email,&$reason) {\r\n $isValid= true;\r\n $reasons= array();\r\n $atIndex= strrpos($email, \"@\");\r\n if (is_bool($atIndex) && !$atIndex) {\r\n $isValid= false;\r\n $reasons[]= \"chybí @\";\r\n }\r\n else {\r\n $domain= substr($email, $atIndex+1);\r\n $local= substr($email, 0, $atIndex);\r\n $localLen= strlen($local);\r\n $domainLen= strlen($domain);\r\n if ($localLen < 1 || $localLen > 64) {\r\n $isValid= false;\r\n $reasons[]= \"dlouhé jméno\";\r\n }\r\n else if ($domainLen < 1 || $domainLen > 255) {\r\n $isValid= false;\r\n $reasons[]= \"dlouhá doména\";\r\n }\r\n else if ($local[0] == '.' || $local[$localLen-1] == '.') {\r\n $reasons[]= \"tečka na kraji\";\r\n $isValid= false;\r\n }\r\n else if (preg_match('/\\\\.\\\\./', $local)) {\r\n $reasons[]= \"dvě tečky ve jménu\";\r\n $isValid= false;\r\n }\r\n else if (!preg_match('/^[A-Za-z0-9\\\\-\\\\.]+$/', $domain)) {\r\n $reasons[]= \"chybný znak v doméně\";\r\n $isValid= false;\r\n }\r\n else if (preg_match('/\\\\.\\\\./', $domain)) {\r\n $reasons[]= \"dvě tečky v doméně\";\r\n $isValid= false;\r\n }\r\n else if (!preg_match('/^(\\\\\\\\.|[A-Za-z0-9!#%&`_=\\\\/$\\'*+?^{}|~.-])+$/', str_replace(\"\\\\\\\\\",\"\",$local))) {\r\n $reasons[]= \"chybný znak ve jménu\";\r\n if (!preg_match('/^\"(\\\\\\\\\"|[^\"])+\"$/',\r\n str_replace(\"\\\\\\\\\",\"\",$local))) {\r\n $isValid= false;\r\n }\r\n }\r\n if ( $domain!='proglas.cz' && $domain!='setkani.org' ) {\r\n if ($isValid && !(checkdnsrr($domain,\"MX\") || checkdnsrr($domain,\"A\"))) {\r\n $reasons[]= \"$domain je neznámá doména\";\r\n $isValid= false;\r\n }\r\n }\r\n }\r\n $reason= count($reasons) ? implode(', ',$reasons) : '';\r\n return $isValid;\r\n}", "function is_email($emailadres)\r\n{\r\n // Eerst een snelle controle uitvoeren: \r\n // een e-mailadres moet uit minimaal 7 tekens bestaan:\r\n if (strlen($emailadres) < 7) \r\n {\r\n return false;\r\n }\r\n // Daarna een controle met een reguliere expressie uitvoeren:\r\n if( ! ereg(\"^[_a-zA-Z0-9-]+(\\.[_a-zA-Z0-9-]+)*@([a-zA-Z0-9-]+\\.)+([a-zA-Z]{2,4})$\", $emailadres) ) \r\n {\r\n return false;\r\n } \r\n\r\n return true; \r\n}", "function EMAIL_test($e_to,$e_to_name,$e_subject,$e_in_subject,$e_body){\n\t\t\t// Create the mail transport configuration\n\t\t\t$transport = Swift_MailTransport::newInstance();\n\t\t\t\n\t\t\t// Create the message\n\t\t\t$message = Swift_Message::newInstance();\n\t\t\t$message->setTo(array(\n\t\t\t $e_to => $e_to_name\n\t\t\t));\n\t\t\t$message->setSubject($e_subject . \" - UnitedGaming\");\n\t\t\t$message->setBody(\n\t\t\t'<html>\n\t\t\t<link href=\"http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700\" rel=\"stylesheet\" type=\"text/css\"/>\n\t\t\t<table border=\"0\" align=\"center\">\n\t\t\t<tr>\n\t\t\t<td><a href=\"http://unitedgaming.org\" target=\"_blank\" title=\"UnitedGaming\" alt=\"UnitedGaming\"><img src=\"http://unitedgaming.org/mainlogo.png\" alt=\"UnitedGaming\" border=\"0\"/></td>\n\t\t\t<td><font face=\"Source Sans Pro\" size=\"6px\" color=\"#BD3538\">'.$e_in_subject.'</font></td>\n\t\t\t</tr>' \n\t\t\t.\n\t\t\t'<br/><br /><br/><tr>\n\t\t\t<td colspan=\"2\"><font face=\"Arial\" size=\"3px\" color=\"#303030\">'.$e_body.'\n\t\t\t </td></tr><tr><td><br/><font face=\"Source Sans Pro\" size=\"2px\">Kind Regards,<br/>Chuevo</font></td><td></td></tr></table></html>\n\t\t\t ');\n\t\t\t$message->setFrom(\"chuevo@unitedgaming.org\", \"UnitedGaming\");\n\t\t\t$type = $message->getHeaders()->get('Content-Type');\n\n\t\t\t$type->setValue('text/html');\n\t\t\t$type->setParameter('charset', 'utf-8');\n\t\t\t\n\t\t\t//echo $type->toString();\n\t\t\t\n\t\t\t/*\n\t\t\t\n\t\t\tContent-Type: text/html; charset=utf-8\n\t\t\t\n\t\t\t*/\n\t\t\t// Send the email\n\t\t\t$mailer = Swift_Mailer::newInstance($transport);\n\t\t\t$mailer->send($message);\n}", "protected function _validateEmailFormat($email) {\n\t\t\t$email = strtolower(trim($email));\n\t\t\t$emailSplitCharacters = explode('@', $email);\n\t\t\t$validAlphaNumericCharacters = 'abcdefghijklmnopqrstuvwxyz1234567890';\n\t\t\t$validLocalCharacters = '.!#$%&\\'*+-/=?^_`{|}~' . $validAlphaNumericCharacters;\n\t\t\t$validLocalSpecialCharacters = ' (),:;<>@[]';\n\t\t\t$validDomainCharacters = '-.' . $validAlphaNumericCharacters;\n\n\t\t\tif (count($emailSplitCharacters) !== 2) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t$localString = $emailSplitCharacters[0];\n\t\t\t$localStringCharacters = str_split($localString);\n\t\t\t$domainString = $emailSplitCharacters[1];\n\t\t\t$domainStringCharacters = str_split($domainString);\n\t\t\t$domainStringSplitCharacters = explode('.', $domainString);\n\n\t\t\tif (\n\t\t\t\tcount($domainStringSplitCharacters) < 2 ||\n\t\t\t\tstrlen(end($domainStringSplitCharacters)) < 2 ||\n\t\t\t\tstrstr(' .-', $lastLocalStringCharacter = end($localStringCharacters)) !== false ||\n\t\t\t\tstrstr(' .-', $firstLocalStringCharacter = reset($localStringCharacters)) !== false ||\n\t\t\t\tstrstr(' .-', $lastDomainStringCharacter = end($domainStringCharacters)) !== false ||\n\t\t\t\tstrstr(' .-', $firstDomainStringCharacter = reset($domainStringCharacters)) !== false ||\n\t\t\t\tstrpos($domainString, '-.') !== false ||\n\t\t\t\tstrpos($domainString, '.-') !== false ||\n\t\t\t\t$lastDomainStringCharacter == '-'\n\t\t\t) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\t$lastLocalStringCharacter == '\"' &&\n\t\t\t\t$firstLocalStringCharacter == '\"'\n\t\t\t) {\n\t\t\t\t$validLocalCharacters .= $validLocalSpecialCharacters;\n\t\t\t\tarray_shift($localStringCharacters);\n\t\t\t\tarray_pop($localStringCharacters);\n\t\t\t\t$localString = implode('', $localStringCharacters);\n\t\t\t\t$localString = str_replace('\\\\' . '\\\\', ' \\\\' . '\\\\ ', $localString);\n\t\t\t\t$localString = str_replace('\\\"', ' \\\" ', $localString);\n\t\t\t\t$localStringCharacters = array();\n\t\t\t\t$localStringSplitCharacters = explode(' ', $localString);\n\n\t\t\t\tforeach ($localStringSplitCharacters as $key => $localStringSplitCharacter) {\n\t\t\t\t\t$localStringCharacters = array_filter(array_merge($localStringCharacters, !in_array($localStringSplitCharacter, array('\\\\' . '\\\\', '\\\"')) ? str_split($localStringSplitCharacter) : array()));\n\t\t\t\t}\n\t\t\t} elseif (\n\t\t\t\t(strpos($domainString, '..') !== false) ||\n\t\t\t\t(strpos($localString, '..') !== false) ||\n\t\t\t\t$localString[0] === '.' ||\n\t\t\t\t$localString[strlen($localString) - 1] === '.'\n\t\t\t) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\t$invalidLocalCharacters = array_diff($localStringCharacters, str_split($validLocalCharacters)) ||\n\t\t\t\t$invalidDomainCharacters = array_diff($domainStringCharacters, str_split($validDomainCharacters))\n\t\t\t) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t$response = $email;\n\t\t\treturn $response;\n\t\t}", "public function usermail() {\n\n $mail = $_POST['mail'];\n\n $dmn = substr($mail, strpos($mail, '@') + 1);\n\n $fmt = filter_var($mail, FILTER_VALIDATE_EMAIL);\n\n return checkdnsrr($dmn) && $fmt;\n\n }", "function valid_mail($str) {\n\t\treturn (!preg_match(\"/^([a-z0-9\\+_\\-]+)(\\.[a-z0-9\\+_\\-]+)*@([a-z0-9\\-]+\\.)+[a-z]{2,6}$/ix\", $str)) ? FALSE : TRUE;\n\t}", "public function TestEmail($data) {\r\n $data = trim($data);\r\n $data = filter_var($data, FILTER_SANITIZE_EMAIL);\r\n $data = filter_var($data,FILTER_VALIDATE_EMAIL);\r\n return $data;\r\n }", "function isValidEMail ($string)\n{\n return (preg_match ('/^([a-z0-9])(([-a-z0-9._])*([a-z0-9]))*\\@([a-z0-9])(([a-z0-9-])*([a-z0-9]))+(\\.([a-z0-9])([-a-z0-9_-])?([a-z0-9])+)+$/i', $string) ? 1 : 0);\n}", "function sendUnicode()\n {\n $fieldcnt = 6;\n $fieldstring = \"Userid=$this->username&pwd=$this->password&APIKEY=$this->apikey&MSG=$this->msgtext&FROM=$this->from&To=$this->to\";\n\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $this->base_url_SendSMSUnicode);\n curl_setopt($ch, CURLOPT_POST, $fieldcnt);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $fieldstring);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n $res = curl_exec($ch);\n curl_close($ch);\n return $res;\n }", "function isEmail($email) {\nreturn(preg_match(\"/^[-_.[:alnum:]]+@((([[:alnum:]]|[[:alnum:]][[:alnum:]-]*[[:alnum:]])\\.)+(ad|ae|aero|af|ag|ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|biz|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|com|coop|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|museum|mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw)$|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\\.){3}([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))$/i\",$email));\n}", "function send_mail($recipient = '', $sender = '', $subject = '', $message = '', $is_html = false) {\n\n // Detect HTML markdown\n if (substr_count($message, '</') >= 1) {\n $is_html = true;\n }\n\n // Build recipient name <email> pair\n if (is_array($recipient)) {\n $recipient = '=?UTF-8?B?' . base64_encode($recipient[0]) . '?= <' . $recipient[1] . '>';\n }\n\n // Build sender name <email> pair\n if (is_array($sender)) {\n $sender = '=?UTF-8?B?' . base64_encode($sender[0]) . '?= <' . $sender[1] . '>';\n }\n\n // Determine content type\n $content_type = 'text/plain';\n if ($is_html) {\n $content_type = 'text/html';\n }\n\n // Subject\n $subject = '=?UTF-8?B?' . base64_encode($subject) . '?=';\n\n // Mail headers\n $header = 'MIME-Version: 1.0' . \"\\r\\n\";\n $header .= 'Content-type: ' . $content_type . '; charset=utf-8' . \"\\r\\n\";\n $header .= 'Content-Transfer-Encoding: base64' . \"\\r\\n\";\n $header .= 'Date: ' . date('r (T)') . \"\\r\\n\";\n\n $header .= 'From: ' . $sender . \"\\r\\n\";\n $header .= 'Reply-To: ' . $sender . \"\\r\\n\";\n\n $header .= 'X-Mailer: PHP ' . phpversion();\n\n if (mail($recipient, $subject, base64_encode($message), $header)) {\n return true;\n } else {\n return false;\n }\n}", "function process_mail(){\n\t\t$result = true;\n\t\t\n\t\tif(count($this->to) < 1){\n\t\t\treturn 'No email address.';\n\t\t}\n\t\t$this->set_eol();\n\t\t$this->get_message_type();\n\t\t$this->set_boundary();\n\t\t$headers = $this->set_headers();\n\t\t$body = $this->set_body();\n\t\t\n\t\tif($body == ''){\n\t\t\treturn 'Empty email body.';\n\t\t}\n\t\t$result = $this->send_mail($headers, $body);\n\t\treturn $result;\n\t}", "function check_email($email) \r\n{ \r\n\t$emailArray = preg_split('//', $email); \r\n $atSign = false; \r\n $dotSign = false; \r\n $badCharacter = false; \r\n $validEmail = true; \r\n\tif (in_array (\"@\", $emailArray)) \r\n\t{ \r\n \t$atSign = true; \r\n } \r\n if (in_array (\".\", $emailArray)) \r\n\t{ \r\n \t$dotSign = true; \r\n } \r\n\t$badCharactersArray = array('#', '$', '%', '(', ')', '&', '!'); // Add your own bad \r\n\tfor ($i = 0; $i < sizeof($badCharactersArray); $i++) \r\n\t{ \r\n\t\tif (in_array ($badCharactersArray[$i], $emailArray)) \r\n \t{ \r\n \t\t$badCharacter = true; \r\n \t} \r\n\t} \r\n\tif ((!$atSign) or (!$dotSign) or ($badCharacter)) \r\n \t$validEmail = false; \r\n}", "function is_email($addr)\n{\n $addr = strtolower(trim($addr));\n $addr = str_replace(\"&#064;\",\"@\",$addr);\n if ( (strstr($addr, \"..\")) || (strstr($addr, \".@\")) || (strstr($addr, \"@.\")) || (!preg_match(\"/^[[:alnum:]][a-z0-9_.-]*@[a-z0-9][a-z0-9.-]{0,61}[a-z0-9]\\.[a-z]{2,6}\\$/\", stripslashes(trim($addr)))) ) {\n $emailvalidity = 0;\n } else {\n $emailvalidity = 1;\n }\n return $emailvalidity;\n}", "function isEmailCorrect($email){\r\n\tif (filter_var($email, FILTER_VALIDATE_EMAIL) && strlen($email)<=255) {\r\n\t\t//check if it's only string\r\n\t\tif (htmlentities($email)==$email) {\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t}\r\n\r\n\treturn 0;\r\n}", "function sendecode()\n {\n $to = html_escape($this->input->post('email'));\n $message = html_escape($this->input->post('message'));\n $from = $this->session->userdata('sname');\n $refcode = $this->db->get_where('superuser', array('email' => $from))->row()->ref;\n $subject = 'Referrel Code :' . $refcode;\n $this->Email_model->send_smtp_mail($message, $subject, $to, $from);\n $this->session->set_flashdata('emailsent', \"Email Sent Successfully\");\n $this->vemailmodal();\n }", "public function isUtf8()\n\t{\n\t\treturn strtolower($this->_mail->getMail()->getCharset())=='utf-8';\n\t}", "private function payload_to_utf8($payload) {\n\n foreach($payload['recipients'] as &$item) {\n\n $item['email'] = mb_detect_encoding($item['email'], 'UTF-8', true) === false ? utf8_encode($item['email']) : $item['email'];\n\n if(array_key_exists('header_to', $item)) {\n $item['header_to'] = mb_detect_encoding($item['header_to'], 'UTF-8', true) === false ? utf8_encode($item['header_to']) : $item['header_to'];\n }\n if(array_key_exists('name', $item)) {\n $item['name'] = mb_detect_encoding($item['name'], 'UTF-8', true) === false ? utf8_encode($item['name']) : $item['name'];\n }\n }\n\n $payload['content']['from']['email'] = mb_detect_encoding($payload['content']['from']['email'], 'UTF-8', true) === false ? utf8_encode($payload['content']['from']['email']) : $payload['content']['from']['email'];\n if(array_key_exists('name', $payload['content']['from'])) {\n $payload['content']['from']['name'] = mb_detect_encoding($payload['content']['from']['name'], 'UTF-8', true) === false ? utf8_encode($payload['content']['from']['name']) : $payload['content']['from']['name'];\n }\n\n $payload['content']['subject'] = mb_detect_encoding($payload['content']['subject'], 'UTF-8', true) === false ? utf8_encode($payload['content']['subject']) : $payload['content']['subject'];\n\n $payload['content']['text'] = mb_detect_encoding($payload['content']['text'], 'UTF-8', true) === false ? utf8_encode($payload['content']['text']) : $payload['content']['text'];\n $payload['content']['html'] = mb_detect_encoding($payload['content']['html'], 'UTF-8', true) === false ? utf8_encode($payload['content']['html']) : $payload['content']['html'];\n\n\n if($payload->headers->CC) {\n $item['name'] = mb_detect_encoding($payload->headers->CC, 'UTF-8', true) === false ? utf8_encode($payload->headers->CC) : $payload->headers->CC;\n }\n\n if($payload['content']['reply_to']) {\n $payload['content']['reply_to'] = mb_detect_encoding($payload['content']['reply_to'], 'UTF-8', true) === false ? utf8_encode($payload['content']['reply_to']) : $payload['content']['reply_to'];\n }\n\n return $payload;\n\n }", "function isValidEmail($var) {\n //Returns error message for an invalid email\n\n //Check for unsafe characters\n $msg = isSantizeString($var);\n if ($msg != \"\") {\n return $msg;\n }\n\n if (filter_var($var, FILTER_VALIDATE_EMAIL)) {\n return \"\";\n } else {\n return \"Invalid Email\";\n }\n}", "function simpleEmailCheck($str) {\n // spec requests emails to lowercase\n // NOTE common allows for emails names (RFC 3696):\n /*\n a–z, A–Z, 0-9, !#$%&'*+-/=?^_`{|}~ \n */\n\n if (filter_var($str, FILTER_VALIDATE_EMAIL)) {\n // valid address\n $str = strtolower($str);\n return $str;\n }\n else {\n // invalid address\n print \"WARN: invalid email: \".$str.\"\\n\";\n return NULL;\n }\n }", "function is_valid_email ($mail)\n{\n return filter_var($mail, FILTER_VALIDATE_EMAIL) && (! preg_match('/@\\[[^\\]]++\\]\\z/', $mail));\n}", "function elegantSendEmail() {\n $to = $_POST['datastring']['newEmailForm'][0][0];\n $title = $_POST['datastring']['newEmailForm'][0][1];\n $messagetext = nl2br(rawurldecode($_POST['datastring']['newEmailForm'][0][2])); \n $properties = $_POST['datastring']['properties'];\n\n //Send the email and get a report back\n $sent = elegeantSend($to,$messagetext,$properties);\n \n //Save the email as a post and get a report back\n $saved = elegantSave($title,$to,$messagetext,$properties);\n\n //echo 'Email Status:'.$sent.'<br>Save Status:'.$saved;\n \n //Terminate and provide a response. \n wp_die(); \n}", "function is_valid_email($mail) {\r\t// simple: \t\"/^[-_a-z0-9]+(\\.[-_a-z0-9]+)*@[-a-z0-9]+(\\.[-a-z0-9]+)*\\.[a-z]{2,6}$/i\"\r\t$r = 0;\r\tif($mail) {\r\t\t$p =\t\"/^[-_a-z0-9]+(\\.[-_a-z0-9]+)*@[-a-z0-9]+(\\.[-a-z0-9]+)*\\.(\";\r\t\t// TLD (01-30-2004)\r\t\t$p .=\t\"com|edu|gov|int|mil|net|org|aero|biz|coop|info|museum|name|pro|arpa\";\r\t\t// ccTLD (01-30-2004)\r\t\t$p .=\t\"ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|az|ba|bb|bd|\";\r\t\t$p .=\t\"be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|\";\r\t\t$p .=\t\"cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|\";\r\t\t$p .=\t\"ec|ee|eg|eh|er|es|et|fi|fj|fk|fm|fo|fr|ga|gd|ge|gf|gg|gh|gi|\";\r\t\t$p .=\t\"gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|\";\r\t\t$p .=\t\"im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|\";\r\t\t$p .=\t\"ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mk|ml|\";\r\t\t$p .=\t\"mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|\";\r\t\t$p .=\t\"nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|\";\r\t\t$p .=\t\"py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|\";\r\t\t$p .=\t\"sr|st|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|\";\r\t\t$p .=\t\"tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|\";\r\t\t$p .=\t\"za|zm|zw\";\r\t\t$p .=\t\")$/i\";\r\r\t\t$r = preg_match($p, $mail) ? 1 : 0;\r\t}\r\treturn $r;\r}", "function isEmail($verify_email) {\n\t\n\t\treturn(preg_match(\"/^[-_.[:alnum:]]+@((([[:alnum:]]|[[:alnum:]][[:alnum:]-]*[[:alnum:]])\\.)+(ad|ae|aero|af|ag|ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|biz|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|com|coop|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|museum|mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw)$|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\\.){3}([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))$/i\",$verify_email));\n\t\n\t}", "function isEMailValid($mail)\n{\n return (filter_var($mail, FILTER_VALIDATE_EMAIL) !== false);\n}", "function sEmail( $email )\r\n\t\t{\r\n\t\t return filter_var( $email, FILTER_SANITIZE_EMAIL );\r\n\t\t \r\n\t\t}", "private function emailValidation($field) {\t\r\n\t \t\t$sent = $this->getSentData($field);\r\n\t \t\t\r\n\t \t\t$email_pattern = '/^[^@\\s<&>]+@([-a-z0-9]+\\.)+[a-z]{2,}$/i';\r\n\t\t\tif (preg_match($email_pattern, $sent)) \r\n \t\t\treturn true;\r\n\t\t\telse\r\n\t\t\t\treturn false;\r\n\t \t}", "public static function email($email)\n {\n $pattern = '/^(?!(?:(?:\\x22?\\x5C[\\x00-\\x7E]\\x22?)|(?:\\x22?[^\\x5C\\x22]\\x22?)){255,})(?!(?:(?:\\x22?\\x5C[\\x00-\\x7E]\\x22?)|(?:\\x22?[^\\x5C\\x22]\\x22?)){65,}@)(?:(?:[\\x21\\x23-\\x27\\x2A\\x2B\\x2D\\x2F-\\x39\\x3D\\x3F\\x5E-\\x7E]+)|(?:\\x22(?:[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x21\\x23-\\x5B\\x5D-\\x7F]|(?:\\x5C[\\x00-\\x7F]))*\\x22))(?:\\.(?:(?:[\\x21\\x23-\\x27\\x2A\\x2B\\x2D\\x2F-\\x39\\x3D\\x3F\\x5E-\\x7E]+)|(?:\\x22(?:[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x21\\x23-\\x5B\\x5D-\\x7F]|(?:\\x5C[\\x00-\\x7F]))*\\x22)))*@(?:(?:(?!.*[^.]{64,})(?:(?:(?:xn--)?[a-z0-9]+(?:-[a-z0-9]+)*\\.){1,126}){1,}(?:(?:[a-z][a-z0-9]*)|(?:(?:xn--)[a-z0-9]+))(?:-[a-z0-9]+)*)|(?:\\[(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){7})|(?:(?!(?:.*[a-f0-9][:\\]]){7,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?)))|(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){5}:)|(?:(?!(?:.*[a-f0-9]:){5,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3}:)?)))?(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))(?:\\.(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))){3}))\\]))$/iD';\n if ((mb_strlen($email) > 254) || !preg_match($pattern, $email)) {\n return false;\n }\n return true;\n }", "function isemail($email) {\r\n return preg_match('|^[_a-z0-9-]+(\\.[_a-z0-9-]+)*@[a-z0-9-]+(\\.[a-z0-9-]{2,})+$|i', $email);\r\n\r\n // /* Define the test for a valid email address */ \r\n // $email_test = \"/ \r\n // ^([a-zA-Z0-9_\\.\\-\\+]) \r\n // + \r\n // \\@ \r\n // (([a-zA-Z0-9\\-])+\\.) \r\n // + \r\n // ([a-zA-Z0-9]{2,4})+$ \r\n // /x\"; \r\n}", "function filterEmail($email, $chars = ''){\r\n $email = trim(str_replace( array(\"\\r\",\"\\n\"), '', $email ));\r\n if( is_array($chars) ) $email = str_replace( $chars, '', $email );\r\n $email = preg_replace( '/(cc\\s*\\:|bcc\\s*\\:)/i', '', $email );\r\n return $email;\r\n}", "private function clean_poea_email($email) {\n\n \t$emails = array();\n\n \t$email = str_replace('@y.c', \"@yahoo.com\", $email);\n\n\t\t$slash_email = explode(\"/\", $email);\n\t\t$or_email = explode(\" or \", $email);\n\t\t$and_email = explode(\"&\", $email);\n\n\t\tif(count($slash_email) > 1) {\n\t\t\t\n\t\t\tforeach ($slash_email as $v) {\n\n\t\t\t\t$v = trim($v);\n\n\t\t\t\tif(filter_var($v, FILTER_VALIDATE_EMAIL)) {\n\n\t\t\t\t\t$emails[] = $v;\t\t\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t} elseif(count($and_email) > 1) {\n\n\t\t\tforeach ($and_email as $v) {\n\n\t\t\t\t$v = trim($v);\n\n\t\t\t\tif(filter_var($v, FILTER_VALIDATE_EMAIL)) {\n\n\t\t\t\t\t$emails[] = $v;\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t} elseif(count($or_email) > 1) {\n\n\t\t\tforeach ($or_email as $v) {\n\n\t\t\t\t$v = trim($v);\n\n\t\t\t\tif(filter_var($v, FILTER_VALIDATE_EMAIL)) {\n\t\n\t\t\t\t\t$emails[] = $v;\t\t\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t} elseif(filter_var($email, FILTER_VALIDATE_EMAIL)) {\n\n\t\t\t$emails[] = $email;\t\n\n\t\t}\n\n\t\tif(empty($emails)) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn json_encode($emails);\n }", "public static function email_rfc($email)\r\n {\r\n $qtext = '[^\\\\x0d\\\\x22\\\\x5c\\\\x80-\\\\xff]';\r\n $dtext = '[^\\\\x0d\\\\x5b-\\\\x5d\\\\x80-\\\\xff]';\r\n $atom = '[^\\\\x00-\\\\x20\\\\x22\\\\x28\\\\x29\\\\x2c\\\\x2e\\\\x3a-\\\\x3c\\\\x3e\\\\x40\\\\x5b-\\\\x5d\\\\x7f-\\\\xff]+';\r\n $pair = '\\\\x5c[\\\\x00-\\\\x7f]';\r\n\r\n $domain_literal = \"\\\\x5b($dtext|$pair)*\\\\x5d\";\r\n $quoted_string = \"\\\\x22($qtext|$pair)*\\\\x22\";\r\n $sub_domain = \"($atom|$domain_literal)\";\r\n $word = \"($atom|$quoted_string)\";\r\n $domain = \"$sub_domain(\\\\x2e$sub_domain)*\";\r\n $local_part = \"$word(\\\\x2e$word)*\";\r\n $addr_spec = \"$local_part\\\\x40$domain\";\r\n\r\n return (bool) preg_match('/^'.$addr_spec.'$/D', (string) $email);\r\n }", "private function mailerNative()\n { \n if( ! mail($this->rcptToCtring, $this->subject, $this->message, $this->header()) ){\n $this->debugMessages[] = 'Error: Sending email failed';\n return false;\n }\n else {\n $this->debugMessages[] = 'Success: Sending email succeeded';\n return true;\n }\n }", "function envoi_email($email_expediteur, $nom_expediteur, $email_destinataire, $email_retour, $sujet_email, $body_mail)\n{\n\t$mail = new PHPMailer();\n\t$mail->IsMail();\n\t$mail->From = $email_expediteur;\n\t$mail->FromName = $nom_expediteur;\n\t$mail->AddAddress($email_destinataire);\n\t$mail->AddReplyTo($email_retour);\n\t$mail->IsHtml(true);\n\t$mail->Subject = $sujet_email;\n\t$mail->Body= $body_mail;\n\t\n\tif(!$mail->Send())\n\t{ \n\t \treturn FALSE;\n\t}\n\telse\n\t{\t \n\t \treturn TRUE;\n\t}\n}", "public function validate_email($email){\n $pattern = '/^(?!(?:(?:\\x22?\\x5C[\\x00-\\x7E]\\x22?)|(?:\\x22?[^\\x5C\\x22]\\x22?)){255,})(?!(?:(?:\\x22?\\x5C[\\x00-\\x7E]\\x22?)|(?:\\x22?[^\\x5C\\x22]\\x22?)){65,}@)(?:(?:[\\x21\\x23-\\x27\\x2A\\x2B\\x2D\\x2F-\\x39\\x3D\\x3F\\x5E-\\x7E]+)|(?:\\x22(?:[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x21\\x23-\\x5B\\x5D-\\x7F]|(?:\\x5C[\\x00-\\x7F]))*\\x22))(?:\\.(?:(?:[\\x21\\x23-\\x27\\x2A\\x2B\\x2D\\x2F-\\x39\\x3D\\x3F\\x5E-\\x7E]+)|(?:\\x22(?:[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x21\\x23-\\x5B\\x5D-\\x7F]|(?:\\x5C[\\x00-\\x7F]))*\\x22)))*@(?:(?:(?!.*[^.]{64,})(?:(?:(?:xn--)?[a-z0-9]+(?:-[a-z0-9]+)*\\.){1,126}){1,}(?:(?:[a-z][a-z0-9]*)|(?:(?:xn--)[a-z0-9]+))(?:-[a-z0-9]+)*)|(?:\\[(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){7})|(?:(?!(?:.*[a-f0-9][:\\]]){7,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?)))|(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){5}:)|(?:(?!(?:.*[a-f0-9]:){5,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3}:)?)))?(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))(?:\\.(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))){3}))\\]))$/iD';\n if(preg_match($pattern, $email)){\n return true;\n }\n else{\n return false;\n }\n }", "function enviarEmail($assunto, $descrição, $emailDe, $nomeDe, $emailPara, $nomePara)\n {\n $mail = new PHPMailer();\n // Define os dados do servidor e tipo de conexão\n // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n $mail->IsSMTP(); // Define que a mensagem será SMTP\n $mail->Host = \"mail.codeboys.pt\"; // Endereço do servidor SMTP\n $mail->SMTPAuth = true; // Autenticação\n $mail->Username = 'email@codeboys.pt'; // Usuário do servidor SMTP\n $mail->Password = 'codeboys2016'; // Senha da caixa postal utilizada\n // Define o remetente\n // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n $mail->From = $emailDe; // Seu e-mail\n $mail->FromName = $nomeDe; // Seu nome\n // Define os destinatário(s)\n // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n //$mail->AddAddress('gordett@me.com', 'Luis Filipe');\n $mail->AddAddress($emailPara, $nomePara);\n /* $sql1 = \"select email from utilizador where id='$idMaterial' and hospital='$hospital' and utilizado=0\";\n $resultado1=$this->bd->executarSQL($sql1);\n while ($row = $resultado1->fetch(PDO::FETCH_ASSOC)) {\n\n }*/\n// $mail->AddAddress('ciclano@site.net');\n //$mail->AddCC('ciclano@site.net', 'Ciclano'); // Copia\n //$mail->AddBCC('fulano@dominio.com.br', 'Fulano da Silva'); // Cópia Oculta\n // Define os dados técnicos da Mensagem\n // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n $mail->IsHTML(true); // Define que o e-mail será enviado como HTML\n //$mail->CharSet = 'iso-8859-1'; // Charset da mensagem (opcional)\n // Define a mensagem (Texto e Assunto)\n // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n $mail->Subject = utf8_decode($assunto); // Assunto da mensagem\n $mail->Body = utf8_decode($descrição);\n $mail->AltBody = utf8_decode($assunto);\n // Define os anexos (opcional)\n // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n //$mail->AddAttachment(\"c:/temp/documento.pdf\", \"novo_nome.pdf\"); // Insere um anexo\n // Envi a o e-mail\n $enviado = $mail->Send();\n // Limpa os destinatários e os anexos\n $mail->ClearAllRecipients();\n $mail->ClearAttachments();\n // Exibe uma mensagem de resultado\n if ($enviado) {\n// echo \"E-mail enviado com sucesso!\";\n return true;\n } else {\n// echo \"Não foi possível enviar o e-mail.\";\n// echo \"<b>Informações do erro:</b> \" . $mail->ErrorInfo;\n return $mail->ErrorInfo;\n }\n }", "protected function _getEncoding($email)\n {\n $pieces = explode('@', $email);\n $domain = array_pop($pieces);\n\n require_once 'Zend/Mime.php';\n\n //waseda.jp\n //This might be better to use in regular expression.\n if (stristr($domain, 'waseda.jp') != false) {\n return Zend_Mime::ENCODING_7BIT;\n }\n\n //Use Base64 for other mail addresses.\n return Zend_Mime::ENCODING_BASE64;\n }", "function checkEmail($errorString) {\n if(strlen($_POST[\"email\"]) > 64) { // (1)\n return $errorString.\"Email může být dlouhý maximálně <b>64</b> znaků.<br>\";\n }\n return $errorString;\n}", "static function validEmail($text){\r\n\t\t$pattern = \"/^[a-z0-9_.-]*@[a-z]+.[a-z]{2,3}$/i\";\r\n\t\t//$pattern = \"^[a-zA-Z0-9._-]+@[a-zA-Z]+\\.[a-zA-Z]{2,3}$\";\r\n\t\tif (preg_match($pattern, $text)) \r\n\t return true;\r\n\t\treturn false; \r\n\t}", "function encode_email_address( $email ) {\n\n $output = '';\n\n for ($i = 0; $i < strlen($email); $i++) \n { \n $output .= '&#'.ord($email[$i]).';'; \n }\n\n return $output;\n}", "function comprobar_email()\n\t{\n\t$correcto = true; //variable booleana que comprueba si el atributo cuumple o no lo especificado\n\n\t//si los atributos estan vacios\n\tif (strlen($this->email) == 0)\n\t{\n\t\tarray_push($this->erroresdatos, [\"nombreatributo\" => \"email\", \"codigoincidencia\" => \"00001\" ,\"mensajeerror\" => \"email vacio\"]);\n\n\t\t$correcto = false;\t\n\t}\n\n\tif (strlen($this->email) < 3)\n\t{\n\t\tarray_push($this->erroresdatos, [\"nombreatributo\" => \"email\", \"codigoincidencia\" => \"00003\" ,\"mensajeerror\" => \"Valor de atributo no numérico demasiado corto\"]);\n\n\t\t$correcto = false;\n\t}\n\n\t//si los atributos estan vacios\n\tif (strlen($this->email) > 61)\n\t{\n\t\tarray_push($this->erroresdatos, [\"nombreatributo\" => \"email\", \"codigoincidencia\" => \"00002\" ,\"mensajeerror\" => \"email demasiado largo, maximo 10 caracteres\"]);\n\n\t\t$correcto = false;\t\n\t}\n\n\treturn $correcto;\n}", "function email_validation($toemail) \n\t{ \n\t\t$param_array = func_get_args();\n\t\t\n\t\t$GLOBALS['logger_obj']->debug('<br>METHOD email::email_validation() - PARAMETER LIST : ', $param_array);\n\t\t\t\n\t\tif($_SERVER['REMOTE_ADDR'] != \"127.0.0.1\")\n\t\t{\n\t\t\n\t\tglobal $HTTP_HOST; \n\t\t\n\t\t$result = array(); \n\t\t\n\t\t$result[0]=true; \n\t\t\n\t\t$result[1]=\"$toemail appears to be valid.\"; \n\t\t/* this regular expression is not allowing some of the domain names like .name etc., so we check for one @ symbol and \n\t\tatleast 1 \".\" symbol in email id.\n\t\tif (!eregi(\"^[_a-z0-9-]+(\\.[_a-z0-9-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*(\\.[a-z]{2,3})$\", $toemail)) \n\t\t{ \t\t\n\t\t\t$result[0]=false; \n\t\t\t\n\t\t\t$result[1]=\"$toemail is not properly formatted\"; \n\t\t\t\n\t\t}\n\t\t*/\n\t\t\n\t\t//remove the name from the email\n\t\t\n\t\t$earr = explode(\"<\", $toemail);\n\t\t\n\t\tif(count($earr) == 2 && strlen(trim($earr[1])) > 0)\n\t\t\t$email = substr(trim($earr[1]),0,-1);\n\t\telse\n\t\t\t$email = trim($earr[0]);\n\t\t\n\t\t$eml_arr = explode(\"@\",$email);\n\t\t$result[0]=false; \n\t\t\n\t\t$result[1]=\"$toemail is not properly formatted\"; \n\t\tif(count($eml_arr) == 2 && strlen(trim($eml_arr[0])) > 0 && strlen(trim($eml_arr[1])) > 0)\n\t\t{\n\t\t\t$domain_arr = explode(\".\",$eml_arr[1]);\n\t\t\tif(count($domain_arr) > 1 && strlen(trim($domain_arr[0])) > 0 && strlen(trim($domain_arr[1])) > 0)\n\t\t\t{\n\t\t\t\t$result[0]=true; \n\t\t\t\t$result[1]=\"$toemail appears to be valid.\"; \n\t\t\t}\n\t\t}\n\t\t\n\t\tif(1==2)\n\t\t{//need not check by communicating to email server...\n\t\t\n\t\tlist ( $username, $domain ) = split (\"@\",$toemail); \n\t\t\n\t\tif (getmxrr($domain, $MXHost)) \n\t\t{\t\t\n\t\t\t$connectaddress = $MXHost[0];\n\t\t}\n\t\telse \n\t\t{\t\t\n\t\t\t$connectaddress = $domain;\n\t\t} \n\t\t//echo \"Connect address : \" . $connectaddress . \"<br>\";\n\t\t//echo \"Domain Name : \" . $domain . \"<br>\";\n\t\t$connect = fsockopen ( $connectaddress, 25 ); \n\t\t\n\t\tif ($connect) \n\t\t{\t\t\n\t\t\tif (ereg(\"^220\", $Out = fgets($connect, 1024))) \n\t\t\t{ \n\t\t\t\n\t\t\t fputs ($connect, \"HELO $HTTP_HOST\\r\\n\"); \n\t\t\t \n\t\t\t $out = fgets ( $connect, 1024 ); \n\t\t\t \n\t\t\t $this->from_email = $GLOBALS['site_config']['admin_email'];\n\t\t\t \n\t\t\t $from = $this->from_email;\n\t\t\t \n\t\t\t fputs ($connect, \"MAIL FROM: <{$from}>\\r\\n\"); \n\t\t\t \n\t\t\t $from = fgets ( $connect, 1024 ); \n\t\t\t \n\t\t\t fputs ($connect, \"RCPT TO: <{$toemail}>\\r\\n\"); \n\t\t\t \n\t\t\t $to = fgets ($connect, 1024); \n\t\t\t \n\t\t\t fputs ($connect, \"QUIT\\r\\n\"); \n\t\t\t \n\t\t\t fclose($connect); \n\t\t\t \n\t\t\t if (!ereg (\"^250\", $from) || !ereg ( \"^250\", $to )) \n\t\t\t { \n\t\t\t \n\t\t\t\t $result[0]=false; \n\t\t\t\t \n\t\t\t\t $result[1]=\"Server rejected address\"; \n\t\t\t\t \n\t\t\t\t} \n\t\t\t} \n\t\t\t\n\t\t\telse\n\t\t\t{\t\t\t\t\n\t\t\t\t$result[0] = false; \n\t\t\t\t\n\t\t\t\t$result[1] = \"No response from server\"; \n\t\t\t\t\n\t\t\t } \n\t\t\t \n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$result[0]=false; \n\t\t\t\n\t\t\t$result[1]=\"Can not connect E-Mail server.\"; \n\t\t\t\n\t\t\t//return $result; \n\t\t} \n\t\t\n\t\t}\n\t\t\n\t\tif(!$result[0])\n\t\t{\n\n\t\t\t$ttext = \"\";\n\t\t\t$ttext .= \"<table border=0 cellpadding=3 cellspacing=1 align=center width=90%>\";\n\t\t\t$ttext .= \"<tr align=left><td><strong>Error Message</strong></td><td>\" . $result[1] . \" (\" . $toemail . \")\" . \"</td></tr>\";\n\t\t\t$ttext .= \"</table>\";\n\n\t\t\t$GLOBALS['logger_obj']->error('<br>METHOD email::email_validation() - Return Value : ', $ttext,'email');\n\n\t\t}\n\t}\n\t\t$GLOBALS['logger_obj']->debug('<br>METHOD email::email_validation() - Return Value : ', $result);\n\t\treturn $result; \n\t\t\n\t}", "public function isEmail();", "function validateEMAIL($EMAIL) {\n $v = '/^(?!(?:(?:\\\\x22?\\\\x5C[\\\\x00-\\\\x7E]\\\\x22?)|(?:\\\\x22?[^\\\\x5C\\\\x22]\\\\x22?)){255,})(?!(?:(?:\\\\x22?\\\\x5C[\\\\x00-\\\\x7E]\\\\x22?)|(?:\\\\x22?[^\\\\x5C\\\\x22]\\\\x22?)){65,}@)(?:(?:[\\\\x21\\\\x23-\\\\x27\\\\x2A\\\\x2B\\\\x2D\\\\x2F-\\\\x39\\\\x3D\\\\x3F\\\\x5E-\\\\x7E]+)|(?:\\\\x22(?:[\\\\x01-\\\\x08\\\\x0B\\\\x0C\\\\x0E-\\\\x1F\\\\x21\\\\x23-\\\\x5B\\\\x5D-\\\\x7F]|(?:\\\\x5C[\\\\x00-\\\\x7F]))*\\\\x22))(?:\\\\.(?:(?:[\\\\x21\\\\x23-\\\\x27\\\\x2A\\\\x2B\\\\x2D\\\\x2F-\\\\x39\\\\x3D\\\\x3F\\\\x5E-\\\\x7E]+)|(?:\\\\x22(?:[\\\\x01-\\\\x08\\\\x0B\\\\x0C\\\\x0E-\\\\x1F\\\\x21\\\\x23-\\\\x5B\\\\x5D-\\\\x7F]|(?:\\\\x5C[\\\\x00-\\\\x7F]))*\\\\x22)))*@(?:(?:(?!.*[^.]{64,})(?:(?:(?:xn--)?[a-z0-9]+(?:-+[a-z0-9]+)*\\\\.){1,126}){1,}(?:(?:[a-z][a-z0-9]*)|(?:(?:xn--)[a-z0-9]+))(?:-+[a-z0-9]+)*)|(?:\\\\[(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){7})|(?:(?!(?:.*[a-f0-9][:\\\\]]){7,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?)))|(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){5}:)|(?:(?!(?:.*[a-f0-9]:){5,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3}:)?)))?(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))(?:\\\\.(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))){3}))\\\\]))$/iD';\n\n return (bool)preg_match($v, $EMAIL);\n}", "function validaremail($email){ \n if (!ereg(\"^([a-zA-Z0-9._]+)@([a-zA-Z0-9.-]+).([a-zA-Z]{2,4})$\",$email)){ \n return FALSE; \n } else { \n return TRUE; \n } \n}", "function email_check($email)\n{\n $regExp = \"^[_a-zA-Z0-9-öäüÖÄÜ]+(.[_a-zA-Z0-9-öäüÖÄÜ]+)*@([a-zA-Z0-9-öäüÖÄÜ]+.)+([a-zA-Z]{2,4})$\";\n if (!(preg_match($regExp, $email)))\n return false;\n else\n return true;\n}", "function is_email_address_unsafe($user_email)\n {\n }", "function isEmail($email_quote ) {\n\treturn(preg_match(\"/^[-_.[:alnum:]]+@((([[:alnum:]]|[[:alnum:]][[:alnum:]-]*[[:alnum:]])\\.)+(ad|ae|aero|af|ag|ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|biz|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|com|coop|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|museum|mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw)$|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\\.){3}([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))$/i\",$email_quote ));\n}", "function EMAIL_tc($e_to,$e_to_name,$e_subject,$e_in_subject,$e_body){\n\t\t\t\t\t$transport = Swift_MailTransport::newInstance();\n\t\t\t\t\t\n\t\t\t\t\t// Create the message\n\t\t\t\t\t$message = Swift_Message::newInstance();\n\t\t\t\t\t$message->setTo(array(\n\t\t\t\t\t $e_to => $e_to_name\n\t\t\t\t\t));\n\t\t\t\t\t$message->setSubject($e_subject . \" - UnitedGaming\");\n\t\t\t\t\t\n\t\t\t\t\t$message->setBody(\n\t\t\t\t\t'<html>\n\t\t\t\t\t<link href=\\'http://fonts.googleapis.com/css?family=Source+Sans+Pro\\' rel=\\'stylesheet\\' type=\\'text/css\\'>\n\t\t\t\t\t<table border=\"0\" align=\"center\" width=\"99%\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t<td><a href=\"http://unitedgaming.org\" target=\"_blank\" title=\"UnitedGaming\" alt=\"UnitedGaming\"><img src=\"http://unitedgaming.org/mainlogo.png\" alt=\"UnitedGaming\" border=\"0\"/></td>\n\t\t\t\t\t<td><span style=\"font-family: \\'Source Sans Pro\\', sans-serif;\"><font size=\"6px\" color=\"#BD3538\">'.$e_in_subject.'</font></span></td>\n\t\t\t\t\t</tr>' \n\t\t\t\t\t.\n\t\t\t\t\t'<br/><br /><br/><tr>\n\t\t\t\t\t<td colspan=\"2\"><font size=\"3px\" color=\"#303030\">'.$e_body.'\n\t\t\t\t\t </td></tr><tr><td><br/><span style=\"font-family: \\'Source Sans Pro\\', sans-serif;\"><font size=\"2px\">Kind Regards,<br/>Chuevo</font></span></td><td></td></tr></table></html>\n\t\t\t\t\t ');\n\t\t\t\t\t$message->setFrom(\"chuevo@unitedgaming.org\", \"UnitedGaming\");\n\t\t\t\t\t$type = $message->getHeaders()->get('Content-Type');\n\t\t\n\t\t\t\t\t$type->setValue('text/html');\n\t\t\t\t\t$type->setParameter('charset', 'utf-8');\n\t\t\t\t\t\n\t\t\t\t\t//echo $type->toString();\n\t\t\t\t\t\n\t\t\t\t\t/*\n\t\t\t\t\t\n\t\t\t\t\tContent-Type: text/html; charset=utf-8\n\t\t\t\t\t\n\t\t\t\t\t*/\n\t\t\t\t\t// Send the email\n\t\t\t\t\t$mailer = Swift_Mailer::newInstance($transport);\n\t\t\t\t\t$mailer->send($message);\n\t\t}", "function validaemail($emailForm){\n if (!ereg('^([a-zA-Z0-9.-])*([@])([a-z0-9]).([a-z]{2,3})',$emailForm)){\n $mensagem='E-mail Inv&aacute;lido!';\n return $mensagem;\n }\n else{\n //Valida o dominio\n $dominio=explode('@',$emailForm);\n if(!checkdnsrr($dominio[1],'A')){\n $mensagem='E-mail Inv&aacute;lido!';\n return $mensagem;\n }\n else{return true;} // Retorno true para indicar que o e-mail é valido\n }\n }", "private static function checkValidEMail(string $email): void {\n\t\ttry {\n\t\t\t// Check E-Mail pattern\n\t\t\t$atPos = mb_strpos($email, '@');\n\t\t\t$lastPointPos = mb_strrpos($email, '.');\n\n\t\t\tif(! $atPos || ! $lastPointPos) {\n\t\t\t\tthrow new Exception('E-Mail-Address \"' . htmlspecialchars($email) . '\" is invalid!');\n\t\t\t}\n\n\t\t\tif(! ($atPos > 0 && $lastPointPos > ($atPos + 1) && mb_strlen($email) > ($lastPointPos + 1))) {\n\t\t\t\tthrow new Exception('E-Mail-Address \"' . htmlspecialchars($email) . '\" is invalid!');\n\t\t\t}\n\t\t} catch(Exception $e) {\n\t\t\techo $e->getMessage();\n\t\t}\n\t}", "function send_email($email, $subject, $msg, $headers){\r\n $mail = new PHPMailer(true);\r\n try{\r\n $mail->setLanguage('pl', './vendor/phpmailer/phpmailer/language');\r\n $mail->isSMTP();\r\n $mail->Host = Config::SMTP_HOST;\r\n $mail->SMTPAuth = true;\r\n $mail->Username = Config::SMTP_USER;\r\n $mail->Password = Config::SMTP_PASSWORD;\r\n $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;\r\n $mail->Port = Config::SMTP_PORT;\r\n $mail->isHTML(true);\r\n $mail->CharSet = 'utf-8';\r\n\r\n $email->setFrom($headers);\r\n $email->addAddress($email);\r\n\r\n $mail->Subject = $subject;\r\n $mail->Body = $msg;\r\n $mail->AltBody = $msg;\r\n\r\n $mail->send();\r\n } catch (Exception $e){\r\n echo validation_errors(\"Message could not be sent. Mailer Error: {$mail->ErrorInfo}\");\r\n return false;\r\n }\r\n return true;\r\n}", "private function _legacy_email_is_valid($email) {\n\t\t$valid_address = true;\n\n\t\t$mail_pat = '^(.+)@(.+)$';\n\t\t$valid_chars = \"[^] \\(\\)<>@,;:\\.\\\\\\\"\\[]\";\n\t\t$atom = \"$valid_chars+\";\n\t\t$quoted_user='(\\\"[^\\\"]*\\\")';\n\t\t$word = \"($atom|$quoted_user)\";\n\t\t$user_pat = \"^$word(\\.$word)*$\";\n\t\t$ip_domain_pat='^\\[([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})\\]$';\n\t\t$domain_pat = \"^$atom(\\.$atom)*$\";\n\n\t\tif (preg_match(\"/$mail_pat/\", $email, $components)) {\n\t\t\t$user = $components[1];\n\t\t\t$domain = $components[2];\n\t\t\t// validate user\n\t\t\tif (preg_match(\"/$user_pat/\", $user)) {\n\t\t\t\t// validate domain\n\t\t\t\tif (preg_match(\"/$ip_domain_pat/\", $domain, $ip_components)) {\n\t\t\t\t\t// this is an IP address\n\t\t\t\t\tfor ($i=1;$i<=4;$i++) {\n\t\t\t\t\t\tif ($ip_components[$i] > 255) {\n\t\t\t\t\t\t\t$valid_address = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// Domain is a name, not an IP\n\t\t\t\t\tif (preg_match(\"/$domain_pat/\", $domain)) {\n\t\t\t\t\t\t/* domain name seems valid, but now make sure that it ends in a valid TLD or ccTLD\n\t\t\t\t\t\tand that there's a hostname preceding the domain or country. */\n\t\t\t\t\t\t$domain_components = explode(\".\", $domain);\n\t\t\t\t\t\t// Make sure there's a host name preceding the domain.\n\t\t\t\t\t\tif (sizeof($domain_components) < 2) {\n\t\t\t\t\t\t\t$valid_address = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t$top_level_domain = strtolower($domain_components[sizeof($domain_components)-1]);\n\t\t\t\t\t\t\t// Allow all 2-letter TLDs (ccTLDs)\n\t\t\t\t\t\t\tif (preg_match('/^[a-z][a-z]$/', $top_level_domain) != 1) {\n\t\t\t\t\t\t\t\t$tld_pattern = '';\n\t\t\t\t\t\t\t\t// Get authorized TLDs from text file\n\t\t\t\t\t\t\t\t$tlds = file(DIR_WS_INCLUDES.'tld.txt');\n\t\t\t\t\t\t\t\tforeach($tlds as $line) {\n\t\t\t\t\t\t\t\t\t// Get rid of comments\n\t\t\t\t\t\t\t\t\t$words = explode('#', $line);\n\t\t\t\t\t\t\t\t\t$tld = trim($words[0]);\n\t\t\t\t\t\t\t\t\t// TLDs should be 3 letters or more\n\t\t\t\t\t\t\t\t\tif (preg_match('/^[a-z]{3,}$/', $tld) == 1) {\n\t\t\t\t\t\t\t\t\t\t$tld_pattern .= '^'.$tld.'$|';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// Remove last '|'\n\t\t\t\t\t\t\t\t$tld_pattern = substr($tld_pattern, 0, -1);\n\t\t\t\t\t\t\t\tif (preg_match(\"/$tld_pattern/\", $top_level_domain) == 0) {\n\t\t\t\t\t\t\t\t\t$valid_address = false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$valid_address = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$valid_address = false;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t$valid_address = false;\n\t\t}\n\t\tif ($valid_address && ENTRY_EMAIL_ADDRESS_CHECK == 'true') {\n\t\t\tif (!checkdnsrr($domain, \"MX\") && !checkdnsrr($domain, \"A\")) {\n\t\t\t\t$valid_address = false;\n\t\t\t}\n\t\t}\n\t\treturn $valid_address;\n\t}", "public function email_check($str) {\n //if(!empty($str) && $this->get_by(\"email\", $str))\n // return FALSE;\n return TRUE;\n }", "function s2_is_valid_email($email)\n{\n $return = ($hook = s2_hook('fn_is_valid_email_start')) ? eval($hook) : null;\n if ($return != null)\n return $return;\n\n if (strlen($email) > 80)\n return false;\n\n return preg_match('/^(([^<>()[\\]\\\\.,;:\\s@\"\\']+(\\.[^<>()[\\]\\\\.,;:\\s@\"\\']+)*)|(\"[^\"\\']+\"))@((\\[\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\])|(([a-zA-Z\\d\\-]+\\.)+[a-zA-Z]{2,}))$/', $email);\n}", "public function testRegistrationEmailWrongFormat(): void { }", "function sanitize_email($email)\n {\n }", "public static function utf8Mail ($to, $subject, $message, $extraHeaders = false, $additionalParameters = NULL, $includeMimeContentTypeHeaders = true /* Set to true, the type, or false */)\r\n\t{\r\n\t\t# If the message is text+html, supplied as array('text'=>$text,'html'=>$htmlVersion), set this up; see http://krijnhoetmer.nl/stuff/php/html-plain-text-mail/\r\n\t\t$isMultipart = false;\r\n\t\tif (is_array ($message) && (count ($message) == 2) && isSet ($message['text']) && isSet ($message['html'])) {\r\n\t\t\t$isMultipart = true;\r\n\t\t\t$boundary = uniqid ('np');\r\n\t\t\t$includeMimeContentTypeHeaders = 'multipart/alternative;boundary=' . $boundary;\r\n\t\t\t\r\n\t\t\t# Compile the message\r\n\t\t\t$multipartMessage = 'This is a MIME encoded message.';\r\n\t\t\t$multipartMessage .= \"\\r\\n\\r\\n--\" . $boundary . \"\\r\\n\";\r\n\t\t\t$multipartMessage .= \"Content-type: text/plain;charset=utf-8\\r\\n\\r\\n\";\r\n\t\t\t$multipartMessage .= $message['text'];\r\n\t\t\t$multipartMessage .= \"\\r\\n\\r\\n--\" . $boundary . \"\\r\\n\";\r\n\t\t\t$multipartMessage .= \"Content-type: text/html;charset=utf-8\\r\\n\\r\\n\";\r\n\t\t\t$multipartMessage .= $message['html'];\r\n\t\t\t$multipartMessage .= \"\\r\\n\\r\\n--\" . $boundary . '--';\r\n\t\t\t$message = $multipartMessage;\r\n\t\t}\r\n\t\t\r\n\t\t# Add headers\r\n\t\t$headers = '';\r\n\t\tif ($includeMimeContentTypeHeaders) {\r\n\t\t\tif ($includeMimeContentTypeHeaders === true) {\r\n\t\t\t\t$includeMimeContentTypeHeaders = 'text/plain';\r\n\t\t\t}\r\n\t\t\t$headers .= \"MIME-Version: 1.0\\r\\n\";\r\n\t\t\t$headers .= 'Content-type: ' . $includeMimeContentTypeHeaders . ($isMultipart ? '' : '; charset=UTF-8') . \"\\r\\n\";\r\n\t\t}\r\n\t\tif ($extraHeaders) {\r\n\t\t\t$headers .= $extraHeaders;\r\n\t\t}\r\n\t\t\r\n\t\t# Convert the subject\r\n\t\tif (!preg_match ('/^([[:alnum:]|[:punct:]|[:blank:]]+)$/', $subject)) {\r\n\t\t\t$subject = '=?UTF-8?B?' . base64_encode ($subject) . '?=';\r\n\t\t}\r\n\t\t\r\n\t\t# Convert the To field, if supplied as \"Name <email>\"; /u is not used as this might reject strings, and the splitting seems to work safely without it\r\n\t\tif (preg_match ('/(.+) <(.+)>/', $to, $matches)) {\r\n\t\t\tif (!preg_match ('/^([[:alnum:]|[:punct:]|[:blank:]]+)$/', $matches[1])) {\r\n\t\t\t\t$to = '=?UTF-8?B?' . base64_encode ($matches[1]) . '?=' . ' ' . \"<{$matches[2]}>\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t# Convert a From: header, if it exists, when supplied as \"Name <email>\"\r\n\t\tif (!preg_match ('/^From: ([[:alnum:]|[:punct:]|[:blank:]]+)(\\r?)$/m', $headers)) {\r\n\t\t\t$callbackFunction = create_function ('$matches', 'return \"From: =?UTF-8?B?\" . base64_encode ($matches[1]) . \"?=\" . \" <{$matches[2]}>{$matches[3]}\";');\r\n\t\t\t$headers = preg_replace_callback ('/^From: (.+) <([^>]+)>(\\r?)$/m', $callbackFunction, $headers);\r\n\t\t}\r\n\t\t\r\n\t\t# If using SMTP auth, use the PEAR::Mail module\r\n\t\t$useSmtpAuth = (isSet ($_SERVER['SMTP_HOST']) && isSet ($_SERVER['SMTP_PORT']) && isSet ($_SERVER['SMTP_USERNAME']) && isSet ($_SERVER['SMTP_PASSWORD']));\r\n\t\tif ($useSmtpAuth) {\r\n\t\t\t\r\n\t\t\t# Define the SMTP Auth credentials\r\n\t\t\t$smtpAuthCredentials = array (\r\n\t\t\t\t'auth' => true,\r\n\t\t\t\t'host' => $_SERVER['SMTP_HOST'],\r\n\t\t\t\t'port' => (int) $_SERVER['SMTP_PORT'],\r\n\t\t\t\t'username' => $_SERVER['SMTP_USERNAME'],\r\n\t\t\t\t'password' => $_SERVER['SMTP_PASSWORD'],\r\n\t\t\t);\r\n\t\t\t\r\n\t\t\t# Assemble the headers\r\n\t\t\t$headersArray = array (\r\n\t\t\t\t'To' => $to,\r\n\t\t\t\t'Subject' => $subject,\r\n\t\t\t);\r\n\t\t\t$extraHeaders = explode (\"\\n\", trim ($headers));\r\n\t\t\tforeach ($extraHeaders as $header) {\r\n\t\t\t\tlist ($key, $value) = explode (':', trim ($header), 2);\r\n\t\t\t\t$key = trim ($key);\r\n\t\t\t\t$value = trim ($value);\r\n\t\t\t\t$headersArray[$key] = $value;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t# Create the mail object using the Mail::factory method \r\n\t\t\trequire_once ('Mail.php');\r\n\t\t\t$mailObject =& Mail::factory ('smtp', $smtpAuthCredentials);\r\n\t\t\t\r\n\t\t\t# Send the mail\r\n\t\t\t$mailObject->send ($to, $headersArray, $message);\r\n\t\t\t$isError = (bool) PEAR::isError ($mailObject);\r\n\t\t\t\r\n\t\t\t# Return the outcome\r\n\t\t\treturn (!$isError);\r\n\t\t\t\r\n\t\t# Otherwise use the native PHP method\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\t# Send the mail and return the outcome\r\n\t\t\treturn mail ($to, $subject, $message, $headers, $additionalParameters);\r\n\t\t}\r\n\t}", "function email($to, $from_mail, $from_name, $subject, $message){\n $header = array();\n $header[] = \"MIME-Version: 1.0\";\n $header[] = \"From: {$from_name}<{$from_mail}>\";\n /* Set message content type HTML*/\n $header[] = \"Content-type:text/html; charset=iso-8859-1\";\n $header[] = \"Content-Transfer-Encoding: 7bit\";\n if( mail($to, $subject, $message, implode(\"\\r\\n\\r\", $header)) ) return true; \n}", "function start($toemail, $subject, $message, $from = '', $uheaders = '', $username = '')\n\t{\n\t\t$toemail = $this->fetch_first_line($toemail);\n\n\t\tif (empty($toemail))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t$delimiter =& $this->delimiter;\n\t\t$vbulletin =& $this->registry;\n\n\t\t$toemail = unhtmlspecialchars($toemail);\n\t\t$subject = $this->fetch_first_line($subject);\n\t\t$message = preg_replace(\"#(\\r\\n|\\r|\\n)#s\", $delimiter, trim($message));\n\n\t\tglobal $stylevar;\n\t\tif ((strtolower($stylevar['charset']) == 'iso-8859-1' OR $stylevar['charset'] == '') AND preg_match('/&[a-z0-9#]+;/i', $message))\n\t\t{\n\t\t\t$message = utf8_encode($message);\n\t\t\t$subject = utf8_encode($subject);\n\t\t\t$username = utf8_encode($username);\n\n\t\t\t$encoding = 'UTF-8';\n\t\t\t$unicode_decode = true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// we know nothing about the message's encoding in relation to UTF-8,\n\t\t\t// so we can't modify the message at all; just set the encoding\n\t\t\t$encoding = $stylevar['charset'];\n\t\t\t$unicode_decode = false;\n\t\t}\n\n\t\t// theses lines may need to call convert_int_to_utf8 directly\n\t\t$message = unhtmlspecialchars($message, $unicode_decode);\n\t\t$subject = $this->encode_email_header(unhtmlspecialchars($subject, $unicode_decode), $encoding, false, false);\n\n\t\t$from = $this->fetch_first_line($from);\n\t\tif (empty($from))\n\t\t{\n\t\t\tglobal $vbphrase;\n\t\t\tif (isset($vbphrase['x_mailer']))\n\t\t\t{\n\t\t\t\t$mailfromname = construct_phrase($this->fetch_first_line($vbphrase['x_mailer']), $vbulletin->options['bbtitle']);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$mailfromname = $vbulletin->options['bbtitle'] . ' Forums';\n\t\t\t}\n\n\t\t\tif ($unicode_decode == true)\n\t\t\t{\n\t\t\t\t$mailfromname = utf8_encode($mailfromname);\n\t\t\t}\n\t\t\t$mailfromname = $this->encode_email_header(unhtmlspecialchars($mailfromname, $unicode_decode), $encoding);\n\n\t\t\t$fromemail = $vbulletin->options['webmasteremail'];\n\t\t\t$headers .= \"From: $mailfromname <\" . $vbulletin->options['webmasteremail'] . '>' . $delimiter;\n\t\t\t$headers .= 'Return-Path: ' . $vbulletin->options['webmasteremail'] . $delimiter;\n\t\t\t$headers .= 'Auto-Submitted: auto-generated' . $delimiter;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif ($username)\n\t\t\t{\n\t\t\t\t$mailfromname = \"$username @ \" . $vbulletin->options['bbtitle'];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$mailfromname = $from;\n\t\t\t}\n\n\t\t\tif ($unicode_decode == true)\n\t\t\t{\n\t\t\t\t$mailfromname = utf8_encode($mailfromname);\n\t\t\t}\n\t\t\t$mailfromname = $this->encode_email_header(unhtmlspecialchars($mailfromname, $unicode_decode), $encoding);\n\n\t\t\t$fromemail = $from;\n\t\t\t$headers .= \"From: $mailfromname <$from>\" . $delimiter;\n\t\t\t$headers .= 'Return-Path: ' . $from . $delimiter;\n\t\t}\n\n\t\tif ($_SERVER['HTTP_HOST'] OR $_ENV['HTTP_HOST'])\n\t\t{\n\t\t\t$http_host = iif($_SERVER['HTTP_HOST'], $_SERVER['HTTP_HOST'], $_ENV['HTTP_HOST']);\n\t\t}\n\t\telse if ($_SERVER['SERVER_NAME'] OR $_ENV['SERVER_NAME'])\n\t\t{\n\t\t\t$http_host = iif($_SERVER['SERVER_NAME'], $_SERVER['SERVER_NAME'], $_ENV['SERVER_NAME']);\n\t\t}\n\t\t$http_host = trim($http_host);\n\t\tif (!$http_host)\n\t\t{\n\t\t\t$http_host = substr(md5($message), 6, 12) . '.vb_unknown.unknown';\n\t\t}\n\t\t$msgid = '<' . gmdate('YmdHs') . '.' . substr(md5($message . microtime()), 0, 6) . vbrand(100000, 999999) . '@' . $http_host . '>';\n\t\t$headers .= 'Message-ID: ' . $msgid . $delimiter;\n\n\t\t$headers .= preg_replace(\"#(\\r\\n|\\r|\\n)#s\", $delimiter, $uheaders);\n\t\tunset($uheaders);\n\n\t\t$headers .= 'MIME-Version: 1.0' . $delimiter;\n\t\t$headers .= 'Content-Type: text/plain' . iif($encoding, \"; charset=\\\"$encoding\\\"\") . $delimiter;\n\t\t$headers .= 'Content-Transfer-Encoding: 8bit' . $delimiter;\n\t\t$headers .= 'X-Priority: 3' . $delimiter;\n\t\t$headers .= 'X-Mailer: vBulletin Mail via PHP' . $delimiter;\n\n\t\t($hook = vBulletinHook::fetch_hook('mail_send')) ? eval($hook) : false;\n\n\t\t$this->toemail = $toemail;\n\t\t$this->subject = $subject;\n\t\t$this->message = $message;\n\t\t$this->headers = $headers;\n\t\t$this->fromemail = $fromemail;\n\n\t\treturn true;\n\t}", "function checkmail($youremail)\n{\n if (ereg('^[-!#$%&\\'*+\\\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\\'*+\\\\/0-9=?A-Z^_`a-z{|}~]+\\.'.\n '[-!#$%&\\'*+\\\\./0-9=?A-Z^_`a-z{|}~]+$', $youremail)) \n {\n\t return true;\n } \n else \n {\n\t return false;\n }\n}", "function checkmail($youremail)\n{\n if (ereg('^[-!#$%&\\'*+\\\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\\'*+\\\\/0-9=?A-Z^_`a-z{|}~]+\\.'.\n '[-!#$%&\\'*+\\\\./0-9=?A-Z^_`a-z{|}~]+$', $youremail))\n {\n\t return true;\n }\n else\n {\n\t return false;\n }\n}", "public function check_email() {\n\n\t\t$email = Input::post('email');\n \n\t\tif(is_string($email)) {\n\t\t\t\n\t\t\t$this->_password_reset->_unlocked_me($email);\n\t\t\t$row = $this->_password_reset->_validate_email($email);\n\t\t\t$res = $this->_password_reset->getData($email);\n\t\t\t$_res = $this->_password_reset->_check_if_reg($email);\n\t\t\t$ques = $this->_question->getquestion($res['question_id']);\n\n\t\t\tif($row > 0) {\n\t\t\t\tif($_res > 0) {\n\t\t\t\t\tif($res['status'] != 0) {\n\t\t\t\t\t\t$_arr = array('msg' =>Constant::EMAIL_CONFIRM, 'question' => $ques['security_question']);\n\t\t\t\t\t\techo json_encode($_arr);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$_arr = array('msg' =>Constant::LOCKED);\n\t\t\t\t\t\techo json_encode($_arr);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$_arr = array('msg' =>Constant::NOT_REGISTERED);\n\t\t\t\t\techo json_encode($_arr);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\theader(\"HTTP/1.0 404 Not Found\");\n\t\t\t\texit;\n\t\t\t}\n\n\t\t} else {\n\t\t\theader(\"HTTP/1.0 404 Not Found\");\n\t\t\texit;\n\t\t}\n\t}", "public function validaEmail()\n {\n $regex = '/^[_a-z0-9-]+(\\.[_a-z0-9-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*(\\.[a-z]{2,3})$/';\n\n if (!strlen(trim($this->email)) || !preg_match($regex, $this->email)) {\n return 'E-mail inválido! <br>';\n }\n\n return '';\n }", "public function encodeMail($address)\n {\n if ($this->_getRenderer() instanceof Kwf_Component_Renderer_Mail) {\n return $text;\n }\n $address = trim($address);\n $address = preg_replace('/^(.+)@(.+)\\.([^\\.\\s]+)$/i',\n '$1'.$this->_atEncoding.'$2'.$this->_dotEncoding.'$3',\n $address\n );\n return $address;\n }", "public function test_sanitized_email() {\n\t\t$actual = wp_create_user_request( 'some(email<withinvalid\\characters@local.test', 'export_personal_data' );\n\n\t\t$this->assertNotWPError( $actual );\n\n\t\t$post = get_post( $actual );\n\n\t\t$this->assertSame( 'export_personal_data', $post->post_name );\n\t\t$this->assertSame( 'someemailwithinvalidcharacters@local.test', $post->post_title );\n\t}", "function is_email(mixed $string): bool\n {\n return (bool) filter_var($string, FILTER_VALIDATE_EMAIL);\n }", "public function sanitizeEmail($data){\n $data = filter_var($data, FILTER_SANITIZE_EMAIL);\n return $data;\n }", "function VerifierAdresseMail($adresse)\n{\n $Syntaxe='#^[\\w.-]+@[\\w.-]+\\.[a-zA-Z]{2,6}$#';\n if(preg_match($Syntaxe,$adresse))\n return true;\n else\n return false;\n}", "public static function email($email){\n\t \n\t\tif (mb_strlen($email, 'UTF-8') > 254) \n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t$expression = '/^[-_a-z0-9\\'+*$^&%=~!?{}]++(?:\\.[-_a-z0-9\\'+*$^&%=~!?{}]+)*+@(?:(?![-.])[-a-z0-9.]+(?<![-.])\\.[a-z]{2,6}|\\d{1,3}(?:\\.\\d{1,3}){3})$/iD';\n\t\treturn (bool) preg_match($expression, (string) $email);\n\t}", "function emailfil($emal){\n $email = 'leon@sin castilla.com';\n\n if (filter_var($email, FILTER_VALIDATE_EMAIL)) {\n echo 'email '.$email.' correcto';\n }else{\n echo 'email '.$email.' incorrecto';\n }\n}", "function check_email($data){\n if(isset($data)){\n $sanitized = filter_var($data, FILTER_SANITIZE_EMAIL);\n if (filter_var($sanitized, FILTER_VALIDATE_EMAIL)){\n $data = $sanitized;\n $data = trim($data);\n $data = stripslashes($data);\n $data = htmlspecialchars($data);\n $data = strip_tags($data);\n $data = htmlentities($data);\n return $data;\n } \n }\n}", "function vEmail( $email )\r\n\t\t{\r\n\t\t return filter_var( $email, FILTER_VALIDATE_EMAIL );\r\n\t\t \r\n\t\t}", "function sanitizeEmail() {\n $pattern = \"/^[A-Z0-9._%+\\-]+@[A-Z0-9.\\-]+\\.[A-Z]{2,}$/i\";\n if (preg_match($pattern, $this->email)) {\n $this->email = filter_var($this->email, FILTER_SANITIZE_EMAIL);\n } else {\n die(\"Error. Check your form data\");\n }\n }", "function encode_email_address( $email ) {\n\n $output = '';\n\n for ($i = 0; $i < strlen($email); $i++) \n { \n $output .= '&#'.ord($email[$i]).';'; \n }\n\n return $output;\n}", "function emailFormat ($value){\n \n $len = strlen($value);\n if(!preg_match(VALID_EMAIL_FORMAT,$value) || $len > 70){\n return false;\n }\n \n return true;\n}", "function nullbyte_mail($to, $subject, $message, $html = true, $headers = array()) {\n $mail_headers = $headers;\n if ($html) $mail_headers[] = \"Content-type: text/html; charset='UTF-8'\";\n $mail_headers[] = 'X-Mailer: PHP/' . phpversion();\n return mail($to, $subject, $message, implode(\"\\r\\n\", $mail_headers));\n}", "function validate_email() {\n # Check Value is an Email Address\n if ($this->check_email_address($this->cur_val)) {\n # Remove any existing error message\n $this->error_message = \"\";\n\n # Return Email\n return $this->cur_val;\n }\n else {\n # Set Error Message\n $this->set_error(\"Validation for email address ({$this->cur_val}) failed. This is type \" . gettype($this->cur_val));\n\n # Return Blank String\n return \"\";\n }\n }", "function sanitize_email(string $text = '')\n{\n return filter_var(strtolower(trim($text)), FILTER_SANITIZE_EMAIL);\n}", "function sendmail($to,$subject,$message,$from='no-reply@yourdomain.com') {\n\n\t$headers = \"From: \".$from . PHP_EOL;\n\t$headers .= \"Reply-To: \".$from . PHP_EOL;\n\t$headers .= \"Return-Path: \".$from . PHP_EOL;\n\t$headers .= \"MIME-Version: 1.0\" . PHP_EOL;\n\t$headers .= \"Content-type: text/html; charset=UTF-8\" . PHP_EOL;\n \n if( mail($to,'=?UTF-8?B?'.base64_encode($subject).'?=',\"$message\",$headers) ) {\n return true;\n } else {\n return false;\n }\n}", "function is_valid_email($address) {\n $fields = preg_split(\"/@/\", $address, 2);\n if ((!preg_match(\"/^[0-9a-z]([-_.]?[0-9a-z])*$/i\", $fields[0])) || (!isset($fields[1]) || $fields[1] == '' || !is_valid_hostname_fqdn($fields[1], 0))) {\n return false;\n }\n return true;\n}", "function is_email($email)\n{\n return filter_var($email, FILTER_VALIDATE_EMAIL);\n}", "public static function email($data){\n if(!filter_var($data,FILTER_VALIDATE_EMAIL)){\n return false;\n }\n return true;\n }", "function check_email_address($email) \n{\n // First, we check that there's one @ symbol, and that the lengths are right\n if (!ereg(\"^[^@]{1,64}@[^@]{1,255}$\", $email)) \n {\n // Email invalid because wrong number of characters in one section, or wrong number of @ symbols.\n return false;\n }\n // Split it into sections to make life easier\n $email_array = explode(\"@\", $email);\n $local_array = explode(\".\", $email_array[0]);\n for ($i = 0; $i < sizeof($local_array); $i++) \n {\n if (!ereg(\"^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\\.-]{0,63})|(\\\"[^(\\\\|\\\")]{0,62}\\\"))$\", $local_array[$i])) \n {\n return false;\n }\n }\n if (!ereg(\"^\\[?[0-9\\.]+\\]?$\", $email_array[1])) \n { // Check if domain is IP. If not, it should be valid domain name\n $domain_array = explode(\".\", $email_array[1]);\n if (sizeof($domain_array) < 2) \n {\n return false; // Not enough parts to domain\n }\n for ($i = 0; $i < sizeof($domain_array); $i++) \n {\n if (!ereg(\"^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$\", $domain_array[$i])) \n {\n return false;\n }\n }\n }\n return true;\n}", "function isValidEmail(String &$val)\n\t{\n\n\t\tif(isSizedString($val) && strpos($val, '@') !== false && filter_var($val, FILTER_VALIDATE_EMAIL)) return true;\n\t\telse return false;\n\n\t}", "public static function isEmail($value)\n\t{\n\t\t$atom = \"[-a-z0-9!#$%&'*+/=?^_`{|}~]\"; // RFC 5322 unquoted characters in local-part\n\t\t$localPart = \"(?:\\\"(?:[ !\\\\x23-\\\\x5B\\\\x5D-\\\\x7E]*|\\\\\\\\[ -~])+\\\"|$atom+(?:\\\\.$atom+)*)\"; // quoted or unquoted\n\t\t$chars = \"a-z0-9\\x80-\\xFF\"; // superset of IDN\n\t\t$domain = \"[$chars](?:[-$chars]{0,61}[$chars])\"; // RFC 1034 one domain component\n\t\treturn (bool) preg_match(\"(^$localPart@(?:$domain?\\\\.)+[-$chars]{2,19}\\\\z)i\", $value);\n\t}", "function mycheck_email($str)\n{\n $str = strtolower($str);\n return preg_match('/^[^\\@]+@.*\\.[a-z]{2,6}$/i', $str);\n}", "public function testEmailUkTranslate()\n {\n $this->getEmailWithLocal('uk');\n $this->findEmailWithText(self::INTERKASSA_MAIL_MSG_HELLO_UK);\n $this->findEmailWithText(self::INTERKASSA_MAIL_MSG_THANKS_UK);\n }" ]
[ "0.6788326", "0.65151066", "0.64902717", "0.6429535", "0.63390225", "0.63043016", "0.62561285", "0.61934286", "0.61219746", "0.60838425", "0.6058599", "0.6041802", "0.6009395", "0.5997448", "0.59940284", "0.59909594", "0.5949551", "0.59354776", "0.59053683", "0.5886687", "0.5882535", "0.5862905", "0.58628476", "0.58310074", "0.58278924", "0.58267486", "0.58228207", "0.5819291", "0.58144194", "0.5813311", "0.5810111", "0.58095455", "0.58074903", "0.5802919", "0.58027434", "0.580266", "0.5795055", "0.5790898", "0.57856005", "0.57798904", "0.57761437", "0.57710856", "0.57617676", "0.5751732", "0.5749743", "0.57320833", "0.572165", "0.5719714", "0.57179433", "0.57008344", "0.56985295", "0.5690485", "0.56881696", "0.56867594", "0.56836647", "0.56744444", "0.56720734", "0.56706667", "0.56686723", "0.56592244", "0.5657251", "0.56369466", "0.5629292", "0.56291384", "0.56278795", "0.56268156", "0.5606618", "0.56065077", "0.56030214", "0.55980325", "0.5585117", "0.55818707", "0.5577065", "0.5576114", "0.55753815", "0.55716556", "0.5566435", "0.5556231", "0.5553786", "0.55522174", "0.55520856", "0.55460644", "0.5545487", "0.55453867", "0.554524", "0.553995", "0.55377775", "0.55319595", "0.5528254", "0.5526992", "0.5526591", "0.5524615", "0.5521565", "0.5521378", "0.55168134", "0.5516102", "0.55147856", "0.5513784", "0.5506008", "0.5505447" ]
0.66761214
1
Create a new controller instance.
public function __construct() { $this->middleware('guest')->except('logout'); }
{ "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->call('make:controller', array_filter([\n 'name' => \"{$controller}Controller\",\n '--model' => $modelName,\n '--api' => true,\n ]));\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n $model_name = $this->qualifyClass($this->getNameInput());\n $name = Str::contains($model_name, ['\\\\']) ? Str::afterLast($model_name, '\\\\') : $model_name;\n\n $this->call('make:controller', [\n 'name' => \"{$controller}Controller\",\n '--model' => $model_name,\n ]);\n\n $path = base_path() . \"/app/Http/Controllers/{$controller}Controller.php\";\n $this->cleanupDummy($path, $name);\n }", "private function makeInitiatedController()\n\t{\n\t\t$controller = new TestEntityCRUDController();\n\n\t\t$controller->setLoggerWrapper(Logger::create());\n\n\t\treturn $controller;\n\t}", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n\n $modelName = $this->qualifyClass($this->getNameInput());\n\n $this->call(ControllerMakeCommand::class, array_filter([\n 'name' => \"{$controller}/{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n ]));\n\n $this->call(ControllerMakeCommand::class, array_filter([\n 'name' => \"Api/{$controller}/{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n '--api' => true,\n ]));\n }", "protected function createController()\n {\n $name = str_replace(\"Service\",\"\",$this->argument('name'));\n\n $this->call('make:controller', [\n 'name' => \"{$name}Controller\"\n ]);\n }", "protected function createController()\n {\n $params = [\n 'name' => $this->argument('name'),\n ];\n\n if ($this->option('api')) {\n $params['--api'] = true;\n }\n\n $this->call('wizard:controller', $params);\n }", "public function generateController () {\r\n $controllerParam = \\app\\lib\\router::getPath();\r\n $controllerName = \"app\\controller\\\\\" . end($controllerParam);\r\n $this->controller = new $controllerName;\r\n }", "public static function newController($controller)\n\t{\n\t\t$objController = \"App\\\\Controllers\\\\\".$controller;\n\t\treturn new $objController;\n\t}", "public function createController()\n\t{\n\t\tif(class_exists($this->controller))\n\t\t{\n\t\t\t// get the parent class he extends\n\t\t\t$parents = class_parents($this->controller);\n\n\t\t\t// $parents = class_implements($this->controller); used if our Controller was just an interface not a class\n\n\t\t\t// check if the class implements our Controller Class\n\t\t\tif(in_array(\"Controller\", $parents))\n\t\t\t{\n\t\t\t\t// check if the action in the request exists in that class\n\t\t\t\tif(method_exists($this->controller, $this->action))\n\t\t\t\t{\n\t\t\t\t\treturn new $this->controller($this->action, $this->request);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// Action is not exist\n\t\t\t\t\techo 'Method '. $this->action .' doesn\\'t exist in '. $this->controller;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// The controller doesn't extends our Controller Class\n\t\t\t\techo $this->controller.' doesn\\'t extends our Controller Class';\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Controller Doesn't exist\n\t\t\techo $this->controller.' doesn\\'t exist';\n\t\t}\n\t}", "public function createController( ezcMvcRequest $request );", "public function createController() {\n //check our requested controller's class file exists and require it if so\n /*if (file_exists(__DIR__ . \"/../Controllers/\" . $this->controllerName . \".php\")) {\n require(__DIR__ . \"/../Controllers/\" . $this->controllerName . \".php\");\n } else {\n throw new Exception('Route does not exist');\n }*/\n\n try {\n require_once __DIR__ . '/../Controllers/' . $this->controllerName . '.php';\n } catch (Exception $e) {\n return $e;\n }\n \n //does the class exist?\n if (class_exists($this->controllerClass)) {\n $parents = class_parents($this->controllerClass);\n \n //does the class inherit from the BaseController class?\n if (in_array(\"BaseController\",$parents)) { \n //does the requested class contain the requested action as a method?\n if (method_exists($this->controllerClass, $this->endpoint)) {\n return new $this->controllerClass($this->args, $this->endpoint, $this->domain);\n } else {\n throw new Exception('Action does not exist');\n }\n } else {\n throw new Exception('Class does not inherit correctly.');\n }\n } else {\n throw new Exception('Controller does not exist.');\n }\n }", "public static function create()\n\t{\n\t\t//check, if a JobController instance already exists\n\t\tif(JobController::$jobController == null)\n\t\t{\n\t\t\tJobController::$jobController = new JobController();\n\t\t}\n\n\t\treturn JobController::$jobController;\n\t}", "private function controller()\n {\n $location = $this->args[\"location\"] . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR;\n $relative_location = $this->args['application_folder'] . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR;\n\n if (!empty($this->args['subdirectories']))\n {\n $location .= $this->args['subdirectories'] . DIRECTORY_SEPARATOR;\n $relative_location .= $this->args['subdirectories'] . DIRECTORY_SEPARATOR;\n }\n\n if (!is_dir($location))\n {\n mkdir($location, 0755, TRUE);\n }\n\n $relative_location .= $this->args['filename'];\n $filename = $location . $this->args['filename'];\n\n $args = array(\n \"class_name\" => ApplicationHelpers::camelize($this->args['name']),\n \"filename\" => $this->args['filename'],\n \"application_folder\" => $this->args['application_folder'],\n \"parent_class\" => (isset($this->args['parent'])) ? $this->args['parent'] : $this->args['parent_controller'],\n \"extra\" => $this->extra,\n 'relative_location' => $relative_location,\n 'helper_name' => strtolower($this->args['name']) . '_helper',\n );\n\n $template = new TemplateScanner(\"controller\", $args);\n $controller = $template->parse();\n\n $message = \"\\t\";\n if (file_exists($filename))\n {\n $message .= 'Controller already exists : ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'light_blue');\n }\n $message .= $relative_location;\n }\n elseif (file_put_contents($filename, $controller))\n {\n $message .= 'Created controller: ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'green');\n }\n $message .= $relative_location;\n }\n else\n {\n $message .= 'Unable to create controller: ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'red');\n }\n $message .= $relative_location;\n }\n\n // The controller has been generated, output the confirmation message\n fwrite(STDOUT, $message . PHP_EOL);\n\n // Create the helper files.\n $this->helpers();\n\n $this->assets();\n\n // Create the view files.\n $this->views();\n\n return;\n }", "public function createController( $controllerName ) {\r\n\t\t$refController \t\t= $this->instanceOfController( $controllerName );\r\n\t\t$refConstructor \t= $refController->getConstructor();\r\n\t\tif ( ! $refConstructor ) return $refController->newInstance();\r\n\t\t$initParameter \t\t= $this->setParameter( $refConstructor );\r\n\t\treturn $refController->newInstanceArgs( $initParameter ); \r\n\t}", "public function create($controllerName) {\r\n\t\tif (!$controllerName)\r\n\t\t\t$controllerName = $this->defaultController;\r\n\r\n\t\t$controllerName = ucfirst(strtolower($controllerName)).'Controller';\r\n\t\t$controllerFilename = $this->searchDir.'/'.$controllerName.'.php';\r\n\r\n\t\tif (preg_match('/[^a-zA-Z0-9]/', $controllerName))\r\n\t\t\tthrow new Exception('Invalid controller name', 404);\r\n\r\n\t\tif (!file_exists($controllerFilename)) {\r\n\t\t\tthrow new Exception('Controller not found \"'.$controllerName.'\"', 404);\r\n\t\t}\r\n\r\n\t\trequire_once $controllerFilename;\r\n\r\n\t\tif (!class_exists($controllerName) || !is_subclass_of($controllerName, 'Controller'))\r\n\t\t\tthrow new Exception('Unknown controller \"'.$controllerName.'\"', 404);\r\n\r\n\t\t$this->controller = new $controllerName();\r\n\t\treturn $this;\r\n\t}", "private function createController($controllerName)\n {\n $className = ucfirst($controllerName) . 'Controller';\n ${$this->lcf($controllerName) . 'Controller'} = new $className();\n return ${$this->lcf($controllerName) . 'Controller'};\n }", "public function createControllerObject(string $controller)\n {\n $this->checkControllerExists($controller);\n $controller = $this->ctlrStrSrc.$controller;\n $controller = new $controller();\n return $controller;\n }", "public function create_controller($controller, $action){\n\t $creado = false;\n\t\t$controllers_dir = Kumbia::$active_controllers_dir;\n\t\t$file = strtolower($controller).\"_controller.php\";\n\t\tif(file_exists(\"$controllers_dir/$file\")){\n\t\t\tFlash::error(\"Error: El controlador '$controller' ya existe\\n\");\n\t\t} else {\n\t\t\tif($this->post(\"kind\")==\"applicationcontroller\"){\n\t\t\t\t$filec = \"<?php\\n\t\t\t\\n\tclass \".ucfirst($controller).\"Controller extends ApplicationController {\\n\\n\\t\\tfunction $action(){\\n\\n\\t\\t}\\n\\n\t}\\n\t\\n?>\\n\";\n\t\t\t\tif(@file_put_contents(\"$controllers_dir/$file\", $filec)){\n\t\t\t\t $creado = true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$filec = \"<?php\\n\t\t\t\\n\tclass \".ucfirst($controller).\"Controller extends StandardForm {\\n\\n\\t\\tpublic \\$scaffold = true;\\n\\n\\t\\tpublic function __construct(){\\n\\n\\t\\t}\\n\\n\t}\\n\t\\n?>\\n\";\n\t\t\t\tfile_put_contents(\"$controllers_dir/$file\", $filec);\n\t\t\t\tif($this->create_model($controller, $controller, \"index\")){\n\t\t\t\t $creado = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($creado){\n\t\t\t Flash::success(\"Se cre&oacute; correctamente el controlador '$controller' en '$controllers_dir/$file'\");\n\t\t\t}else {\n\t\t\t Flash::error(\"Error: No se pudo escribir en el directorio, verifique los permisos sobre el directorio\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t$this->route_to(\"controller: $controller\", \"action: $action\");\n\t}", "private function instanceController( string $controller_class ): Controller {\n\t\treturn new $controller_class( $this->request, $this->site );\n\t}", "public function makeController($controller_name)\n\t{\n\t\t$model\t= $this->_makeModel($controller_name, $this->_storage_type);\n\t\t$view\t= $this->_makeView($controller_name);\n\t\t\n\t\treturn new $controller_name($model, $view);\n\t}", "public function create()\n {\n $output = new \\Symfony\\Component\\Console\\Output\\ConsoleOutput();\n $output->writeln(\"<info>Controller Create</info>\");\n }", "protected function createDefaultController() {\n Octopus::requireOnce($this->app->getOption('OCTOPUS_DIR') . 'controllers/Default.php');\n return new DefaultController();\n }", "private function createControllerDefinition()\n {\n $id = $this->getServiceId('controller');\n if (!$this->container->has($id)) {\n $definition = new Definition($this->getServiceClass('controller'));\n $definition\n ->addMethodCall('setConfiguration', [new Reference($this->getServiceId('configuration'))])\n ->addMethodCall('setContainer', [new Reference('service_container')])\n ;\n $this->container->setDefinition($id, $definition);\n }\n }", "public function createController( $ctrlName, $action ) {\n $args['action'] = $action;\n $args['path'] = $this->path . '/modules/' . $ctrlName;\n $ctrlFile = $args['path'] . '/Controller.php';\n // $args['moduleName'] = $ctrlName;\n if ( file_exists( $ctrlFile ) ) {\n $ctrlPath = str_replace( CITRUS_PATH, '', $args['path'] );\n $ctrlPath = str_replace( '/', '\\\\', $ctrlPath ) . '\\Controller';\n try { \n $r = new \\ReflectionClass( $ctrlPath ); \n $inst = $r->newInstanceArgs( $args ? $args : array() );\n\n $this->controller = Citrus::apply( $inst, Array( \n 'name' => $ctrlName, \n ) );\n if ( $this->controller->is_protected == null ) {\n $this->controller->is_protected = $this->is_protected;\n }\n return $this->controller;\n } catch ( \\Exception $e ) {\n prr($e, true);\n }\n } else {\n return false;\n }\n }", "protected function createTestController() {\n\t\t$controller = new CController('test');\n\n\t\t$action = $this->getMock('CAction', array('run'), array($controller, 'test'));\n\t\t$controller->action = $action;\n\n\t\tYii::app()->controller = $controller;\n\t\treturn $controller;\n\t}", "public static function newController($controllerName, $params = [], $request = null) {\n\n\t\t$controller = \"App\\\\Controllers\\\\\".$controllerName;\n\n\t\treturn new $controller($params, $request);\n\n\t}", "private function loadController() : void\n\t{\n\t\t$this->controller = new $this->controllerName($this->request);\n\t}", "public function createController($pi, array $params)\n {\n $class = $pi . '_Controller_' . ucfirst($params['page']);\n\n return new $class();\n }", "public function createController() {\n //check our requested controller's class file exists and require it if so\n \n if (file_exists(\"modules/\" . $this->controllerName . \"/controllers/\" . $this->controllerName .\".php\" ) && $this->controllerName != 'error') {\n require(\"modules/\" . $this->controllerName . \"/controllers/\" . $this->controllerName .\".php\");\n \n } else {\n \n $this->urlValues['controller'] = \"error\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badurl\", $this->urlValues);\n }\n\n //does the class exist?\n if (class_exists($this->controllerClass)) {\n $parents = class_parents($this->controllerClass);\n //does the class inherit from the BaseController class?\n if (in_array(\"BaseController\", $parents)) {\n //does the requested class contain the requested action as a method?\n if (method_exists($this->controllerClass, $this->action)) { \n return new $this->controllerClass($this->action, $this->urlValues);\n \n } else {\n //bad action/method error\n $this->urlValues['controller'] = \"error\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badview\", $this->urlValues);\n }\n } else {\n $this->urlValues['controller'] = \"error\";\n //bad controller error\n echo \"hjh\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"b\", $this->urlValues);\n }\n } else {\n \n //bad controller error\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badurl\", $this->urlValues);\n }\n }", "protected static function createController($name) {\n $result = null;\n\n $name = self::$_namespace . ($name ? $name : self::$defaultController) . 'Controller';\n if(class_exists($name)) {\n $controllerClass = new \\ReflectionClass($name);\n if($controllerClass->hasMethod('run')) {\n $result = new $name();\n }\n }\n\n return $result;\n }", "public function createController(): void\n {\n $minimum_buffer_min = 3;\n $token_ok = $this->routerService->ds_token_ok($minimum_buffer_min);\n if ($token_ok) {\n # 2. Call the worker method\n # More data validation would be a good idea here\n # Strip anything other than characters listed\n $results = $this->worker($this->args);\n\n if ($results) {\n # Redirect the user to the NDSE view\n # Don't use an iFrame!\n # State can be stored/recovered using the framework's session or a\n # query parameter on the returnUrl\n header('Location: ' . $results[\"redirect_url\"]);\n exit;\n }\n } else {\n $this->clientService->needToReAuth($this->eg);\n }\n }", "protected function createController($controllerClass)\n {\n $cls = new ReflectionClass($controllerClass);\n return $cls->newInstance($this->environment);\n }", "protected function createController($name)\n {\n $controllerClass = 'controller\\\\'.ucfirst($name).'Controller';\n\n if(!class_exists($controllerClass)) {\n throw new \\Exception('Controller class '.$controllerClass.' not exists!');\n }\n\n return new $controllerClass();\n }", "protected function initController() {\n\t\tif (!isset($_GET['controller'])) {\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$controllerClass = $_GET['controller'].\"Controller\";\n\t\tif (!class_exists($controllerClass)) {\n\t\t\t//Console::error(@$_GET['controller'].\" doesn't exist\");\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$this->controller = new $controllerClass();\n\t}", "public function makeTestController(TestController $controller)\r\n\t{\r\n\t}", "static function factory($GET=array(), $POST=array(), $FILES=array()) {\n $type = (isset($GET['type'])) ? $GET['type'] : '';\n $objectController = $type.'_Controller';\n $addLocation = $type.'/'.$objectController.'.php';\n foreach ($_ENV['locations'] as $location) {\n if (is_file($location.$addLocation)) {\n return new $objectController($GET, $POST, $FILES);\n } \n }\n throw new Exception('The controller \"'.$type.'\" does not exist.');\n }", "public function create()\n {\n $general = new ModeloController();\n\n return $general->create();\n }", "public function makeController($controllerNamespace, $controllerName, Log $log, $session, Request $request, Response $response)\r\n\t{\r\n\t\t$fullControllerName = '\\\\Application\\\\Controller\\\\' . (!empty($controllerNamespace) ? $controllerNamespace . '\\\\' : '') . $controllerName;\r\n\t\t$controller = new $fullControllerName();\r\n\t\t$controller->setConfig($this->config);\r\n\t\t$controller->setRequest($request);\r\n\t\t$controller->setResponse($response);\r\n\t\t$controller->setLog($log);\r\n\t\tif (isset($session))\r\n\t\t{\r\n\t\t\t$controller->setSession($session);\r\n\t\t}\r\n\r\n\t\t// Execute additional factory method, if available (exists in \\Application\\Controller\\Factory)\r\n\t\t$method = 'make' . $controllerName;\r\n\t\tif (is_callable(array($this, $method)))\r\n\t\t{\r\n\t\t\t$this->$method($controller);\r\n\t\t}\r\n\r\n\t\t// If the controller has an init() method, call it now\r\n\t\tif (is_callable(array($controller, 'init')))\r\n\t\t{\r\n\t\t\t$controller->init();\r\n\t\t}\r\n\r\n\t\treturn $controller;\r\n\t}", "public static function create()\n\t{\n\t\t//check, if an AccessGroupController instance already exists\n\t\tif(AccessGroupController::$accessGroupController == null)\n\t\t{\n\t\t\tAccessGroupController::$accessGroupController = new AccessGroupController();\n\t\t}\n\n\t\treturn AccessGroupController::$accessGroupController;\n\t}", "public static function buildController()\n\t{\n\t\t$file = CONTROLLER_PATH . 'indexController.class.php';\n\n\t\tif(!file_exists($file))\n\t\t{\n\t\t\tif(\\RCPHP\\Util\\Check::isClient())\n\t\t\t{\n\t\t\t\t$controller = '<?php\nclass indexController extends \\RCPHP\\Controller {\n public function index(){\n echo \"Welcome RcPHP!\\n\";\n }\n}';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$controller = '<?php\nclass indexController extends \\RCPHP\\Controller {\n public function index(){\n echo \\'<style type=\"text/css\">*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} body{ background: #fff; font-family: \"微软雅黑\"; color: #333;} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.8em; font-size: 36px }</style><div style=\"padding: 24px 48px;\"> <h1>:)</h1><p>Welcome <b>RcPHP</b>!</p></div>\\';\n }\n}';\n\t\t\t}\n\t\t\tfile_put_contents($file, $controller);\n\t\t}\n\t}", "public function getController( );", "public static function getInstance() : Controller {\n if ( null === self::$instance ) {\n self::$instance = new self();\n self::$instance->options = new Options(\n self::OPTIONS_KEY\n );\n }\n\n return self::$instance;\n }", "static function appCreateController($entityName, $prefijo = '') {\n\n $controller = ControllerBuilder::getController($entityName, $prefijo);\n $entityFile = ucfirst(str_replace($prefijo, \"\", $entityName));\n $fileController = \"../../modules/{$entityFile}/{$entityFile}Controller.class.php\";\n\n $result = array();\n $ok = self::createArchive($fileController, $controller);\n ($ok) ? array_push($result, \"Ok, {$fileController} created\") : array_push($result, \"ERROR creating {$fileController}\");\n\n return $result;\n }", "public static function newInstance($path = \\simpleChat\\Utility\\ROOT_PATH)\n {\n $request = new Request();\n \n \n if ($request->isAjax())\n {\n return new AjaxController();\n }\n else if ($request->jsCode())\n {\n return new JsController();\n }\n else\n {\n return new StandardController($path);\n }\n }", "private function createInstance()\n {\n $objectManager = new \\Magento\\Framework\\TestFramework\\Unit\\Helper\\ObjectManager($this);\n $this->controller = $objectManager->getObject(\n \\Magento\\NegotiableQuote\\Controller\\Adminhtml\\Quote\\RemoveFailedSku::class,\n [\n 'context' => $this->context,\n 'logger' => $this->logger,\n 'messageManager' => $this->messageManager,\n 'cart' => $this->cart,\n 'resultRawFactory' => $this->resultRawFactory\n ]\n );\n }", "function loadController(){\n $name = ucfirst($this->request->controller).'Controller' ;\n $file = ROOT.DS.'Controller'.DS.$name.'.php' ;\n /*if(!file_exists($file)){\n $this->error(\"Le controleur \".$this->request->controller.\" n'existe pas\") ;\n }*/\n require_once $file;\n $controller = new $name($this->request);\n return $controller ;\n }", "public function __construct(){\r\n $app = Application::getInstance();\r\n $this->_controller = $app->getController();\r\n }", "public static function & instance()\n {\n if (self::$instance === null) {\n Benchmark::start(SYSTEM_BENCHMARK.'_controller_setup');\n\n // Include the Controller file\n require Router::$controller_path;\n\n try {\n // Start validation of the controller\n $class = new ReflectionClass(ucfirst(Router::$controller).'_Controller');\n } catch (ReflectionException $e) {\n // Controller does not exist\n Event::run('system.404');\n }\n\n if ($class->isAbstract() or (IN_PRODUCTION and $class->getConstant('ALLOW_PRODUCTION') == false)) {\n // Controller is not allowed to run in production\n Event::run('system.404');\n }\n\n // Run system.pre_controller\n Event::run('system.pre_controller');\n\n // Create a new controller instance\n $controller = $class->newInstance();\n\n // Controller constructor has been executed\n Event::run('system.post_controller_constructor');\n\n try {\n // Load the controller method\n $method = $class->getMethod(Router::$method);\n\n // Method exists\n if (Router::$method[0] === '_') {\n // Do not allow access to hidden methods\n Event::run('system.404');\n }\n\n if ($method->isProtected() or $method->isPrivate()) {\n // Do not attempt to invoke protected methods\n throw new ReflectionException('protected controller method');\n }\n\n // Default arguments\n $arguments = Router::$arguments;\n } catch (ReflectionException $e) {\n // Use __call instead\n $method = $class->getMethod('__call');\n\n // Use arguments in __call format\n $arguments = array(Router::$method, Router::$arguments);\n }\n\n // Stop the controller setup benchmark\n Benchmark::stop(SYSTEM_BENCHMARK.'_controller_setup');\n\n // Start the controller execution benchmark\n Benchmark::start(SYSTEM_BENCHMARK.'_controller_execution');\n\n // Execute the controller method\n $method->invokeArgs($controller, $arguments);\n\n // Controller method has been executed\n Event::run('system.post_controller');\n\n // Stop the controller execution benchmark\n Benchmark::stop(SYSTEM_BENCHMARK.'_controller_execution');\n }\n\n return self::$instance;\n }", "protected function instantiateController($class)\n {\n $controller = new $class();\n\n if ($controller instanceof Controller) {\n $controller->setContainer($this->container);\n }\n\n return $controller;\n }", "public function __construct (){\n $this->AdminController = new AdminController();\n $this->ArticleController = new ArticleController();\n $this->AuditoriaController = new AuditoriaController();\n $this->CommentController = new CommentController();\n $this->CourseController = new CourseController();\n $this->InscriptionsController = new InscriptionsController();\n $this->ModuleController = new ModuleController();\n $this->PlanController = new PlanController();\n $this->ProfileController = new ProfileController();\n $this->SpecialtyController = new SpecialtyController();\n $this->SubscriptionController = new SubscriptionController();\n $this->TeacherController = new TeacherController();\n $this->UserController = new UserController();\n $this->WebinarController = new WebinarController();\n }", "protected function makeController($prefix)\n {\n new MakeController($this, $this->files, $prefix);\n }", "public function createController($route)\n {\n $controller = parent::createController('gymv/' . $route);\n return $controller === false\n ? parent::createController($route)\n : $controller;\n }", "public static function createFrontController()\n {\n return self::createInjectorWithBindings(self::extractArgs(func_get_args()))\n ->getInstance('net::stubbles::websites::stubFrontController');\n }", "public static function controller($name)\n {\n $name = ucfirst(strtolower($name));\n \n $directory = 'controller';\n $filename = $name;\n $tracker = 'controller';\n $init = (boolean) $init;\n $namespace = 'controller';\n $class_name = $name;\n \n return self::_load($directory, $filename, $tracker, $init, $namespace, $class_name);\n }", "protected static function instantiateMockController()\n {\n /** @var Event $oEvent */\n $oEvent = Factory::service('Event');\n\n if (!$oEvent->hasBeenTriggered(Events::SYSTEM_STARTING)) {\n\n require_once BASEPATH . 'core/Controller.php';\n\n load_class('Output', 'core');\n load_class('Security', 'core');\n load_class('Input', 'core');\n load_class('Lang', 'core');\n\n new NailsMockController();\n }\n }", "private static function controller()\n {\n $files = ['Controller'];\n $folder = static::$root.'MVC'.'/';\n\n self::call($files, $folder);\n }", "public function createController()\n\t{\n\t\t$originalFile = app_path('Http/Controllers/Reports/SampleReport.php');\n\t\t$newFile = dirname($originalFile) . DIRECTORY_SEPARATOR . $this->class . $this->sufix . '.php';\n\n\t\t// Read original file\n\t\tif( ! $content = file_get_contents($originalFile))\n\t\t\treturn false;\n\n\t\t// Replace class name\n\t\t$content = str_replace('SampleReport', $this->class . $this->sufix, $content);\n\n\t\t// Write new file\n\t\treturn (bool) file_put_contents($newFile, $content);\n\t}", "public function runController() {\n // Check for a router\n if (is_null($this->getRouter())) {\n \t // Set the method to load\n \t $sController = ucwords(\"{$this->getController()}Controller\");\n } else {\n\n // Set the controller with the router\n $sController = ucwords(\"{$this->getController()}\".ucfirst($this->getRouter()).\"Controller\");\n }\n \t// Check for class\n \tif (class_exists($sController, true)) {\n \t\t// Set a new instance of Page\n \t\t$this->setPage(new Page());\n \t\t// The class exists, load it\n \t\t$oController = new $sController();\n\t\t\t\t// Now check for the proper method \n\t\t\t\t// inside of the controller class\n\t\t\t\tif (method_exists($oController, $this->loadConfigVar('systemSettings', 'controllerLoadMethod'))) {\n\t\t\t\t\t// We have a valid controller, \n\t\t\t\t\t// execute the initializer\n\t\t\t\t\t$oController->init($this);\n\t\t\t\t\t// Set the variable scope\n\t \t\t$this->setViewScope($oController);\n\t \t\t// Render the layout\n\t \t\t$this->renderLayout();\n\t\t\t\t} else {\n\t\t\t\t\t// The initializer does not exist, \n\t\t\t\t\t// which means an invalid controller, \n\t\t\t\t\t// so now we let the caller know\n\t\t\t\t\t$this->setError($this->loadConfigVar('errorMessages', 'invalidController'));\n\t\t\t\t\t// Run the error\n\t\t\t\t\t// $this->runError();\n\t\t\t\t}\n \t// The class does not exist\n \t} else {\n\t\t\t\t// Set the system error\n\t \t\t$this->setError(\n\t\t\t\t\tstr_replace(\n\t\t\t\t\t\t':controllerName', \n\t\t\t\t\t\t$sController, \n\t\t\t\t\t\t$this->loadConfigVar(\n\t\t\t\t\t\t\t'errorMessages', \n\t\t\t\t\t\t\t'controllerDoesNotExist'\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t);\n \t\t// Run the error\n\t\t\t\t// $this->runError();\n \t}\n \t// Return instance\n \treturn $this;\n }", "public function controller()\n\t{\n\t\n\t}", "protected function buildController()\n {\n $columns = collect($this->columns)->pluck('column')->implode('|');\n\n $permissions = [\n 'create:'.$this->module->createPermission->name,\n 'edit:'.$this->module->editPermission->name,\n 'delete:'.$this->module->deletePermission->name,\n ];\n\n $this->controller = [\n 'name' => $this->class,\n '--model' => $this->class,\n '--request' => $this->class.'Request',\n '--permissions' => implode('|', $permissions),\n '--view-folder' => snake_case($this->module->name),\n '--fields' => $columns,\n '--module' => $this->module->id,\n ];\n }", "function getController(){\n\treturn getFactory()->getBean( 'Controller' );\n}", "protected function getController()\n {\n $uri = WingedLib::clearPath(static::$parentUri);\n if (!$uri) {\n $uri = './';\n $explodedUri = ['index', 'index'];\n } else {\n $explodedUri = explode('/', $uri);\n if (count($explodedUri) == 1) {\n $uri = './' . $explodedUri[0] . '/';\n } else {\n $uri = './' . $explodedUri[0] . '/' . $explodedUri[1] . '/';\n }\n }\n\n $indexUri = WingedLib::clearPath(\\WingedConfig::$config->INDEX_ALIAS_URI);\n if ($indexUri) {\n $indexUri = explode('/', $indexUri);\n }\n\n if ($indexUri) {\n if ($explodedUri[0] === 'index' && isset($indexUri[0])) {\n static::$controllerName = Formater::camelCaseClass($indexUri[0]) . 'Controller';\n $uri = './' . $indexUri[0] . '/';\n }\n if (isset($explodedUri[1]) && isset($indexUri[1])) {\n if ($explodedUri[1] === 'index') {\n static::$controllerAction = 'action' . Formater::camelCaseMethod($indexUri[1]);\n $uri .= $indexUri[1] . '/';\n }\n } else {\n $uri .= 'index/';\n }\n }\n\n $controllerDirectory = new Directory(static::$parent . 'controllers/', false);\n if ($controllerDirectory->exists()) {\n $controllerFile = new File($controllerDirectory->folder . static::$controllerName . '.php', false);\n if ($controllerFile->exists()) {\n include_once $controllerFile->file_path;\n if (class_exists(static::$controllerName)) {\n $controller = new static::$controllerName();\n if (method_exists($controller, static::$controllerAction)) {\n try {\n $reflectionMethod = new \\ReflectionMethod(static::$controllerName, static::$controllerAction);\n $pararms = [];\n foreach ($reflectionMethod->getParameters() as $parameter) {\n $pararms[$parameter->getName()] = $parameter->isOptional();\n }\n } catch (\\Exception $exception) {\n $pararms = [];\n }\n return [\n 'uri' => $uri,\n 'params' => $pararms,\n ];\n }\n }\n }\n }\n return false;\n }", "public function __construct()\n {\n $this->controller = new DHTController();\n }", "public function createController($controllers) {\n\t\tforeach($controllers as $module=>$controllers) {\n\t\t\tforeach($controllers as $key=>$controller) {\n\t\t\t\tif(!file_exists(APPLICATION_PATH.\"/modules/$module/controllers/\".ucfirst($controller).\"Controller.php\")) {\n\t\t\t\t\tMy_Class_Maerdo_Console::display(\"3\",\"Create '\".ucfirst($controller).\"' controller in $module\");\t\t\t\t\n\t\t\t\t\texec(\"zf create controller $controller index-action-included=0 $module\");\t\t\t\t\t\n\t\t\t\t}\telse {\n\t\t\t\t\tMy_Class_Maerdo_Console::display(\"3\",ucfirst($controller).\"' controller in $module already exists\");\t\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}", "protected function instantiateController($class)\n {\n return new $class($this->routesMaker);\n }", "private function createController($table){\n\n // Filtering file name\n $fileName = $this::cleanToName($table[\"name\"]) . 'Controller.php';\n\n // Prepare the Class scheme inside the controller\n $contents = '<?php '.$fileName.' ?>';\n\n\n // Return a boolean to process completed\n return Storage::disk('controllers')->put($this->appNamePath.'/'.$fileName, $contents);\n\n }", "public function GetController()\n\t{\n\t\t$params = $this->QueryVarArrayToParameterArray($_GET);\n\t\tif (!empty($_POST)) {\n\t\t\t$params = array_merge($params, $this->QueryVarArrayToParameterArray($_POST));\n\t\t}\n\n\t\tif (!empty($_GET['q'])) {\n\t\t\t$restparams = GitPHP_Router::ReadCleanUrl($_SERVER['REQUEST_URI']);\n\t\t\tif (count($restparams) > 0)\n\t\t\t\t$params = array_merge($params, $restparams);\n\t\t}\n\n\t\t$controller = null;\n\n\t\t$action = null;\n\t\tif (!empty($params['action']))\n\t\t\t$action = $params['action'];\n\n\t\tswitch ($action) {\n\n\n\t\t\tcase 'search':\n\t\t\t\t$controller = new GitPHP_Controller_Search();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'commitdiff':\n\t\t\tcase 'commitdiff_plain':\n\t\t\t\t$controller = new GitPHP_Controller_Commitdiff();\n\t\t\t\tif ($action === 'commitdiff_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blobdiff':\n\t\t\tcase 'blobdiff_plain':\n\t\t\t\t$controller = new GitPHP_Controller_Blobdiff();\n\t\t\t\tif ($action === 'blobdiff_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'history':\n\t\t\t\t$controller = new GitPHP_Controller_History();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'shortlog':\n\t\t\tcase 'log':\n\t\t\t\t$controller = new GitPHP_Controller_Log();\n\t\t\t\tif ($action === 'shortlog')\n\t\t\t\t\t$controller->SetParam('short', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'snapshot':\n\t\t\t\t$controller = new GitPHP_Controller_Snapshot();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'tree':\n\t\t\tcase 'trees':\n\t\t\t\t$controller = new GitPHP_Controller_Tree();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'tags':\n\t\t\t\tif (empty($params['tag'])) {\n\t\t\t\t\t$controller = new GitPHP_Controller_Tags();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\tcase 'tag':\n\t\t\t\t$controller = new GitPHP_Controller_Tag();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'heads':\n\t\t\t\t$controller = new GitPHP_Controller_Heads();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blame':\n\t\t\t\t$controller = new GitPHP_Controller_Blame();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blob':\n\t\t\tcase 'blobs':\n\t\t\tcase 'blob_plain':\t\n\t\t\t\t$controller = new GitPHP_Controller_Blob();\n\t\t\t\tif ($action === 'blob_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'atom':\n\t\t\tcase 'rss':\n\t\t\t\t$controller = new GitPHP_Controller_Feed();\n\t\t\t\tif ($action == 'rss')\n\t\t\t\t\t$controller->SetParam('format', GitPHP_Controller_Feed::RssFormat);\n\t\t\t\telse if ($action == 'atom')\n\t\t\t\t\t$controller->SetParam('format', GitPHP_Controller_Feed::AtomFormat);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'commit':\n\t\t\tcase 'commits':\n\t\t\t\t$controller = new GitPHP_Controller_Commit();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'summary':\n\t\t\t\t$controller = new GitPHP_Controller_Project();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'project_index':\n\t\t\tcase 'projectindex':\n\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t$controller->SetParam('txt', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'opml':\n\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t$controller->SetParam('opml', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'login':\n\t\t\t\t$controller = new GitPHP_Controller_Login();\n\t\t\t\tif (!empty($_POST['username']))\n\t\t\t\t\t$controller->SetParam('username', $_POST['username']);\n\t\t\t\tif (!empty($_POST['password']))\n\t\t\t\t\t$controller->SetParam('password', $_POST['password']);\n\t\t\t\tbreak;\n\n\t\t\tcase 'logout':\n\t\t\t\t$controller = new GitPHP_Controller_Logout();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'graph':\n\t\t\tcase 'graphs':\n\t\t\t\t//$controller = new GitPHP_Controller_Graph();\n\t\t\t\t//break;\n\t\t\tcase 'graphdata':\n\t\t\t\t//$controller = new GitPHP_Controller_GraphData();\n\t\t\t\t//break;\n\t\t\tdefault:\n\t\t\t\tif (!empty($params['project'])) {\n\t\t\t\t\t$controller = new GitPHP_Controller_Project();\n\t\t\t\t} else {\n\t\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t}\n\t\t}\n\n\t\tforeach ($params as $paramname => $paramval) {\n\t\t\tif ($paramname !== 'action')\n\t\t\t\t$controller->SetParam($paramname, $paramval);\n\t\t}\n\n\t\t$controller->SetRouter($this);\n\n\t\treturn $controller;\n\t}", "public function testCreateTheControllerClass()\n {\n $controller = new Game21Controller();\n $this->assertInstanceOf(\"\\App\\Http\\Controllers\\Game21Controller\", $controller);\n }", "public static function createController( MShop_Context_Item_Interface $context, $name = null );", "public function __construct()\n {\n\n $url = $this->splitURL();\n // echo $url[0];\n\n // check class file exists\n if (file_exists(\"../app/controllers/\" . strtolower($url[0]) . \".php\")) {\n $this->controller = strtolower($url[0]);\n unset($url[0]);\n }\n\n // echo $this->controller;\n\n require \"../app/controllers/\" . $this->controller . \".php\";\n\n // create Instance(object)\n $this->controller = new $this->controller(); // $this->controller is an object from now on\n if (isset($url[1])) {\n if (method_exists($this->controller, $url[1])) {\n $this->method = $url[1];\n unset($url[1]);\n }\n }\n\n // run the class and method\n $this->params = array_values($url); // array_values 값들인 인자 0 부터 다시 배치\n call_user_func_array([$this->controller, $this->method], $this->params);\n }", "public function getController();", "public function getController();", "public function getController();", "public function createController($pageType, $template)\n {\n $controller = null;\n\n // Use factories first\n if (isset($this->controllerFactories[$pageType])) {\n $callable = $this->controllerFactories[$pageType];\n $controller = $callable($this, 'templates/'.$template);\n\n if ($controller) {\n return $controller;\n }\n }\n\n // See if a default controller exists in the theme namespace\n $class = null;\n if ($pageType == 'posts') {\n $class = $this->namespace.'\\\\Controllers\\\\PostsController';\n } elseif ($pageType == 'post') {\n $class = $this->namespace.'\\\\Controllers\\\\PostController';\n } elseif ($pageType == 'page') {\n $class = $this->namespace.'\\\\Controllers\\\\PageController';\n } elseif ($pageType == 'term') {\n $class = $this->namespace.'\\\\Controllers\\\\TermController';\n }\n\n if (class_exists($class)) {\n $controller = new $class($this, 'templates/'.$template);\n\n return $controller;\n }\n\n // Create a default controller from the stem namespace\n if ($pageType == 'posts') {\n $controller = new PostsController($this, 'templates/'.$template);\n } elseif ($pageType == 'post') {\n $controller = new PostController($this, 'templates/'.$template);\n } elseif ($pageType == 'page') {\n $controller = new PageController($this, 'templates/'.$template);\n } elseif ($pageType == 'search') {\n $controller = new SearchController($this, 'templates/'.$template);\n } elseif ($pageType == 'term') {\n $controller = new TermController($this, 'templates/'.$template);\n }\n\n return $controller;\n }", "private function loadController($controller)\r\n {\r\n $className = $controller.'Controller';\r\n \r\n $class = new $className($this);\r\n \r\n $class->init();\r\n \r\n return $class;\r\n }", "public static function newInstance ($class)\n {\n try\n {\n // the class exists\n $object = new $class();\n\n if (!($object instanceof sfController))\n {\n // the class name is of the wrong type\n $error = 'Class \"%s\" is not of the type sfController';\n $error = sprintf($error, $class);\n\n throw new sfFactoryException($error);\n }\n\n return $object;\n }\n catch (sfException $e)\n {\n $e->printStackTrace();\n }\n }", "public function create()\n {\n //TODO frontEndDeveloper \n //load admin.classes.create view\n\n\n return view('admin.classes.create');\n }", "private function generateControllerClass()\n {\n $dir = $this->bundle->getPath();\n\n $parts = explode('\\\\', $this->entity);\n $entityClass = array_pop($parts);\n $entityNamespace = implode('\\\\', $parts);\n\n $target = sprintf(\n '%s/Controller/%s/%sController.php',\n $dir,\n str_replace('\\\\', '/', $entityNamespace),\n $entityClass\n );\n\n if (file_exists($target)) {\n throw new \\RuntimeException('Unable to generate the controller as it already exists.');\n }\n\n $this->renderFile($this->skeletonDir, 'controller.php', $target, array(\n 'actions' => $this->actions,\n 'route_prefix' => $this->routePrefix,\n 'route_name_prefix' => $this->routeNamePrefix,\n 'dir' => $this->skeletonDir,\n 'bundle' => $this->bundle->getName(),\n 'entity' => $this->entity,\n 'entity_class' => $entityClass,\n 'namespace' => $this->bundle->getNamespace(),\n 'entity_namespace' => $entityNamespace,\n 'format' => $this->format,\n ));\n }", "static public function Instance()\t\t// Static so we use classname itself to create object i.e. Controller::Instance()\r\n {\r\n // Only one object of this class is required\r\n // so we only create if it hasn't already\r\n // been created.\r\n if(!isset(self::$_instance))\r\n {\r\n self::$_instance = new self();\t// Make new instance of the Controler class\r\n self::$_instance->_commandResolver = new CommandResolver();\r\n\r\n ApplicationController::LoadViewMap();\r\n }\r\n return self::$_instance;\r\n }", "private function create_mock_controller() {\n eval('class TestController extends cyclone\\request\\SkeletonController {\n function before() {\n DispatcherTest::$beforeCalled = TRUE;\n DispatcherTest::$route = $this->_request->route;\n }\n\n function after() {\n DispatcherTest::$afterCalled = TRUE;\n }\n\n function action_act() {\n DispatcherTest::$actionCalled = TRUE;\n }\n}');\n }", "public function AController() {\r\n\t}", "protected function initializeController() {}", "public function dispatch()\n { \n $controller = $this->formatController();\n $controller = new $controller($this);\n if (!$controller instanceof ControllerAbstract) {\n throw new Exception(\n 'Class ' . get_class($controller) . ' is not a valid controller instance. Controller classes must '\n . 'derive from \\Europa\\ControllerAbstract.'\n );\n }\n $controller->action();\n return $controller;\n }", "public function controller()\n {\n $method = $_SERVER['REQUEST_METHOD'];\n if ($method == 'GET') {\n $this->getController();\n };\n if ($method == 'POST') {\n check_csrf();\n $this->createController();\n };\n }", "private function addController($controller)\n {\n $object = new $controller($this->app);\n $this->controllers[$controller] = $object;\n }", "function Controller($ControllerName = Web\\Application\\DefaultController) {\n return Application()->Controller($ControllerName);\n }", "public function getController($controllerName) {\r\n\t\tif(!isset(self::$instances[$controllerName])) {\r\n\t\t $package = $this->getPackage(Nomenclature::getVendorAndPackage($controllerName));\r\n\t\t if(!$package) {\r\n\t\t $controller = new $controllerName();\r\n\t\t $controller->setContext($this->getContext());\r\n\t\t return $controller;\r\n\t\t //return false;\r\n\t\t }\r\n\r\n\t\t if(!$package || !$package->controllerExists($controllerName)) {\r\n\t\t $controller = new $controllerName();\r\n\t\t $controller->setContext($this->getContext());\r\n\t\t $package->addController($controller);\r\n\t\t } else {\r\n\t\t $controller = $package->getController($controllerName);\r\n\t\t }\r\n\t\t} else {\r\n\t\t $controller = self::$instances[$controllerName];\r\n\t\t}\r\n\t\treturn $controller;\r\n\t}", "public function testInstantiateSessionController()\n {\n $controller = new SessionController();\n\n $this->assertInstanceOf(\"App\\Http\\Controllers\\SessionController\", $controller);\n }", "private static function loadController($str) {\n\t\t$str = self::formatAsController($str);\n\t\t$app_controller = file_exists(APP_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t$lib_controller = file_exists(LIB_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\n\t\tif ( $app_controller || $lib_controller ) {\n\t\t\tif ($app_controller) {\n\t\t\t\trequire_once(APP_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\t}\n\t\t\telse {\n\t\t\t\trequire_once(LIB_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\t}\n\t\n\t\t\t$controller = new $str();\n\t\t\t\n\t\t\tif (!$controller instanceof Controller) {\n\t\t\t\tthrow new IsNotControllerException();\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn $controller;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthrow new ControllerNotExistsException($str);\n\t\t}\n\t}", "public function __construct()\n {\n // and $url[1] is a controller method\n if ($_GET['url'] == NULL) {\n $url = explode('/', env('defaultRoute'));\n } else {\n $url = explode('/', rtrim($_GET['url'],'/'));\n }\n\n $file = 'controllers/' . $url[0] . '.php';\n if (file_exists($file)) {\n require $file;\n $controller = new $url[0];\n\n if (isset($url[1])) {\n $controller->{$url[1]}();\n }\n } else {\n echo \"404 not found\";\n }\n }", "protected function _controllers()\n {\n $this['watchController'] = $this->factory(static function ($c) {\n return new Controller\\WatchController($c['app'], $c['searcher']);\n });\n\n $this['runController'] = $this->factory(static function ($c) {\n return new Controller\\RunController($c['app'], $c['searcher']);\n });\n\n $this['customController'] = $this->factory(static function ($c) {\n return new Controller\\CustomController($c['app'], $c['searcher']);\n });\n\n $this['waterfallController'] = $this->factory(static function ($c) {\n return new Controller\\WaterfallController($c['app'], $c['searcher']);\n });\n\n $this['importController'] = $this->factory(static function ($c) {\n return new Controller\\ImportController($c['app'], $c['saver'], $c['config']['upload.token']);\n });\n\n $this['metricsController'] = $this->factory(static function ($c) {\n return new Controller\\MetricsController($c['app'], $c['searcher']);\n });\n }", "public function __construct() {\r\n $this->controllerLogin = new ControllerLogin();\r\n $this->controllerGame = new ControllerGame();\r\n $this->controllerRegister = new ControllerRegister();\r\n }", "public function controller ($post = array())\n\t{\n\n\t\t$name = $post['controller_name'];\n\n\t\tif (is_file(APPPATH.'controllers/'.$name.'.php')) {\n\n\t\t\t$message = sprintf(lang('Controller_s_is_existed'), APPPATH.'controllers/'.$name.'.php');\n\n\t\t\t$this->msg[] = $message;\n\n\t\t\treturn $this->result(false, $this->msg[0]);\n\n\t\t}\n\n\t\t$extends = null;\n\n\t\tif (isset($post['crud'])) {\n\n\t\t\t$crud = true;\n\t\t\t\n\t\t}\n\t\telse{\n\n\t\t\t$crud = false;\n\n\t\t}\n\n\t\t$file = $this->_create_folders_from_name($name, 'controllers');\n\n\t\t$data = '';\n\n\t\t$data .= $this->_class_open($file['file'], __METHOD__, $extends);\n\n\t\t$crud === FALSE || $data .= $this->_crud_methods_contraller($post);\n\n\t\t$data .= $this->_class_close();\n\n\t\t$path = APPPATH . 'controllers/' . $file['path'] . strtolower($file['file']) . '.php';\n\n\t\twrite_file($path, $data);\n\n\t\t$this->msg[] = sprintf(lang('Created_controller_s'), $path);\n\n\t\t//echo $this->_messages();\n\t\treturn $this->result(true, $this->msg[0]);\n\n\t}", "protected function getController(Request $request) {\n try {\n $controller = $this->objectFactory->create($request->getControllerName(), self::INTERFACE_CONTROLLER);\n } catch (ZiboException $exception) {\n throw new ZiboException('Could not create controller ' . $request->getControllerName(), 0, $exception);\n }\n\n return $controller;\n }", "public function create() {}", "public function __construct()\n {\n $this->dataController = new DataController;\n }", "function __contrruct(){ //construdor do controller, nele é possivel carregar as librari, helpers, models que serão utilizados nesse controller\n\t\tparent::__contrruct();//Chamando o construtor da classe pai\n\t}", "public function __construct() {\n\n // Get the URL elements.\n $url = $this->_parseUrl();\n\n // Checks if the first URL element is set / not empty, and replaces the\n // default controller class string if the given class exists.\n if (isset($url[0]) and ! empty($url[0])) {\n $controllerClass = CONTROLLER_PATH . ucfirst(strtolower($url[0]));\n unset($url[0]);\n if (class_exists($controllerClass)) {\n $this->_controllerClass = $controllerClass;\n }\n }\n\n // Replace the controller class string with a new instance of the it.\n $this->_controllerClass = new $this->_controllerClass;\n\n // Checks if the second URL element is set / not empty, and replaces the\n // default controller action string if the given action is a valid class\n // method.\n if (isset($url[1]) and ! empty($url[1])) {\n if (method_exists($this->_controllerClass, $url[1])) {\n $this->_controllerAction = $url[1];\n unset($url[1]);\n }\n }\n\n // Check if the URL has any remaining elements, setting the controller\n // parameters as a rebase of it if true or an empty array if false.\n $this->_controllerParams = $url ? array_values($url) : [];\n\n // Call the controller and action with parameters.\n call_user_func_array([$this->_controllerClass, $this->_controllerAction], $this->_controllerParams);\n }", "private function setUpController()\n {\n $this->controller = new TestObject(new SharedControllerTestController);\n\n $this->controller->dbal = DBAL::getDBAL('testDB', $this->getDBH());\n }", "public function create() {\n $class_name = $this->getOption('className');\n return new $class_name();\n }" ]
[ "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.6877748", "0.68702674", "0.68622285", "0.6839049", "0.6779292", "0.6703522", "0.66688496", "0.66600126", "0.6650373", "0.66436416", "0.6615505", "0.66144013", "0.6588728", "0.64483404", "0.64439476", "0.6429303", "0.6426485", "0.6303757", "0.6298291", "0.6293319", "0.62811387", "0.6258778", "0.62542456", "0.616827", "0.6162314", "0.61610043", "0.6139887", "0.613725", "0.61334985", "0.6132223", "0.6128982", "0.61092585", "0.6094611", "0.60889256", "0.6074893", "0.60660255", "0.6059098", "0.60565156", "0.6044235", "0.60288006", "0.6024102", "0.60225666", "0.6018304", "0.60134345", "0.60124683", "0.6010913", "0.6009284", "0.6001683", "0.5997471", "0.5997012", "0.59942573", "0.5985074", "0.5985074", "0.5985074", "0.5967613", "0.5952533", "0.5949068", "0.5942203", "0.5925731", "0.5914304", "0.5914013", "0.59119135", "0.5910308", "0.5910285", "0.59013796", "0.59003943", "0.5897524", "0.58964556", "0.58952993", "0.58918965", "0.5888943", "0.5875413", "0.5869938", "0.58627135", "0.58594996", "0.5853714", "0.5839484", "0.5832913", "0.582425", "0.58161044", "0.5815566" ]
0.0
-1
Manipulate data & Do a CRC Check
function param_data_dump($data_param1, $data_param2, $data_param3, $data_param4, $data_param5, $data_param6, $data_param7, $data_param8, $echo_flag, $newline) { $decode_param1 = str_split($data_param1, 2); $hexstr_param1 = str_split($data_param1, 52); $hexstrPayload_param1 = substr($data_param1, 2, 44); $hexstrCRC_param1 = substr($data_param1, 46, 4); $crcCalc_param1 = crc16_modbus($hexstrPayload_param1); $decode_param2 = str_split($data_param2, 2); $hexstr_param2 = str_split($data_param2, 52); $hexstrPayload_param2 = substr($data_param2, 2, 44); $hexstrCRC_param2 = substr($data_param2, 46, 4); $crcCalc_param2 = crc16_modbus($hexstrPayload_param2); $decode_param3 = str_split($data_param3, 2); $hexstr_param3 = str_split($data_param3, 52); $hexstrPayload_param3 = substr($data_param3, 2, 44); $hexstrCRC_param3 = substr($data_param3, 46, 4); $crcCalc_param3 = crc16_modbus($hexstrPayload_param3); $decode_param4 = str_split($data_param4, 2); $hexstr_param4 = str_split($data_param4, 52); $hexstrPayload_param4 = substr($data_param4, 2, 44); $hexstrCRC_param4 = substr($data_param4, 46, 4); $crcCalc_param4 = crc16_modbus($hexstrPayload_param4); $decode_param5 = str_split($data_param5, 2); $hexstr_param5 = str_split($data_param5, 52); $hexstrPayload_param5 = substr($data_param5, 2, 44); $hexstrCRC_param5 = substr($data_param5, 46, 4); $crcCalc_param5 = crc16_modbus($hexstrPayload_param5); $decode_param6 = str_split($data_param6, 2); $hexstr_param6 = str_split($data_param6, 52); $hexstrPayload_param6 = substr($data_param6, 2, 44); $hexstrCRC_param6 = substr($data_param6, 46, 4); $crcCalc_param6 = crc16_modbus($hexstrPayload_param6); $decode_param7 = str_split($data_param7, 2); $hexstr_param7 = str_split($data_param7, 52); $hexstrPayload_param7 = substr($data_param7, 2, 44); $hexstrCRC_param7 = substr($data_param7, 46, 4); $crcCalc_param7 = crc16_modbus($hexstrPayload_param7); $decode_param8 = str_split($data_param8, 2); $hexstr_param8 = str_split($data_param8, 52); $hexstrPayload_param8 = substr($data_param8, 2, 44); $hexstrCRC_param8 = substr($data_param8, 46, 4); $crcCalc_param8 = crc16_modbus($hexstrPayload_param8); // Concatenate Parameter data to work with $concat_parameter = substr($hexstrPayload_param1, 12, 32).substr($hexstrPayload_param2, 12, 32).substr($hexstrPayload_param3, 12, 32).substr($hexstrPayload_param4, 12, 32).substr($hexstrPayload_param5, 12, 32).substr($hexstrPayload_param6, 12, 32).substr($hexstrPayload_param7, 12, 32).substr($hexstrPayload_param8, 12, 32); echo "Parameters used: 02".strtoupper($hexstrPayload_param1.substr($hexstrPayload_param2, 12, 32).substr($hexstrPayload_param3, 12, 32).substr($hexstrPayload_param4, 12, 32).substr($hexstrPayload_param5, 12, 32).substr($hexstrPayload_param6, 12, 32).substr($hexstrPayload_param7, 12, 32).substr($hexstrPayload_param8, 12, 32)).$newline; $decode_parameter = str_split($concat_parameter, 2); // Write the contents to the file $ini_array = parse_ini_file("remeha.ini"); $log_data = $ini_array['log_data']; $path = $ini_array['path_to_logs']; $filename = $ini_array['parameter_data_log']; $file = "$path$filename"; date_default_timezone_set('Europe/Amsterdam'); $date = date_create(); $deg_symbol = "&degC"; if (($hexstrCRC_param1 == $crcCalc_param1) && ($hexstrCRC_param2 == $crcCalc_param2) && ($hexstrCRC_param3 == $crcCalc_param3) && ($hexstrCRC_param4 == $crcCalc_param4) && ($hexstrCRC_param5 == $crcCalc_param5) && ($hexstrCRC_param6 == $crcCalc_param6) && ($hexstrCRC_param7 == $crcCalc_param7) && ($hexstrCRC_param8 == $crcCalc_param8)) { conditional_echo("Data Integrity Good - CRCs Compute OK$newline", $echo_flag); if ($log_data == 2) { $datatowrite = date_format($date, 'Y-m-d H:i:s') . ' | 02 ' . $hexstrPayload_param1 . ' ' . $hexstrCRC_param1 . ' ' .'03 | ' . '02 ' . $hexstrPayload_param2 . ' ' . $hexstrCRC_param2 . ' ' .'03 | ' . '02 ' . $hexstrPayload_param3 . ' ' . $hexstrCRC_param3 . ' ' .'03 | ' . '02 ' . $hexstrPayload_param4 . ' ' . $hexstrCRC_param4 . ' ' .'03 | ' . '02 ' . $hexstrPayload_param5 . ' ' . $hexstrCRC_param5 . ' ' .'03 | ' . '02 ' . $hexstrPayload_param6 . ' ' . $hexstrCRC_param6 . ' ' .'03 | ' . '02 ' . $hexstrPayload_param7 . ' ' . $hexstrCRC_param7 . ' ' .'03 | ' . '02 ' . $hexstrPayload_param8 . ' ' . $hexstrCRC_param8 . ' ' .'03 | ' . "\n"; file_put_contents($file, $datatowrite, FILE_APPEND); conditional_echo("Data written to log: $file$newline", $echo_flag); } conditional_echo(str_repeat("=", 166) . "$newline", $echo_flag); } else { if (($log_data == 1) || ($log_data == 2)) { $datatowrite = '**** CRC Error **** | ' . date_format($date, 'Y-m-d H:i:s') . ' | 02 ' . $hexstrPayload_param1 . ' ' . $hexstrCRC_param1 . ' ' .'03 | ' . '02 ' . $hexstrPayload_param2 . ' ' . $hexstrCRC_param2 . ' ' .'03 | ' . '02 ' . $hexstrPayload_param3 . ' ' . $hexstrCRC_param3 . ' ' .'03 | ' . '02 ' . $hexstrPayload_param4 . ' ' . $hexstrCRC_param4 . ' ' .'03 | ' . '02 ' . $hexstrPayload_param5 . ' ' . $hexstrCRC_param5 . ' ' .'03 | ' . '02 ' . $hexstrPayload_param6 . ' ' . $hexstrCRC_param6 . ' ' .'03 | ' . '02 ' . $hexstrPayload_param7 . ' ' . $hexstrCRC_param7 . ' ' .'03 | ' . '02 ' . $hexstrPayload_param8 . ' ' . $hexstrCRC_param8 . ' ' .'03 | ' . "\n"; file_put_contents($file, $datatowrite, FILE_APPEND); conditional_echo("Data written to log: $file$newline", $echo_flag); } conditional_echo("$newline", $echo_flag); conditional_echo("************** CRC ERROR!!!! ***********$newline", $echo_flag); return; # Don't continue with updating Parameter data } // Parameter Info $tflow_setpoint = hexdec($decode_parameter["0"]); if (($tflow_setpoint < 20) || ($tflow_setpoint > 90)) { $tflow_setpoint = "ERROR";} else { $tflow_setpoint = $tflow_setpoint;} $dhw_setpoint = hexdec($decode_parameter["1"]); if (($dhw_setpoint < 40) || ($dhw_setpoint > 90)) { $dhw_setpoint = "ERROR";} else { $dhw_setpoint = $dhw_setpoint;} $boiler_controls = hexdec($decode_parameter["2"]); if ($boiler_controls == 0) { $bolier_controls = "0:CH Off, DHW Off";} elseif ($boiler_controls == 1) { $bolier_controls = "1:CH On, DHW On";} elseif ($boiler_controls == 2) { $bolier_controls = "2:CH On, DHW Off";} elseif ($boiler_controls == 3) { $bolier_controls = "3:CH Off, DHW On";} $comfort_dhw = hexdec($decode_parameter["3"]); if ($comfort_dhw == 0) { $comfort_dhw = "0:Always On";} elseif ($comfort_dhw == 1) { $comfort_dhw = "1:Always Off";} elseif ($comfort_dhw == 2) { $comfort_dhw = "2:Controller";} $anticipation = hexdec($decode_parameter["4"]); if ($anticipation == 0) { $anticipation = "0:No";} elseif ($anticipation == 1) { $anticipation = "1:Yes";} $displaymode = hexdec($decode_parameter["5"]); if ($displaymode == 0) { $displaymode = "0:Simple";} elseif ($displaymode == 1) { $displaymode = "1:Extended";} elseif ($displaymode == 2) { $displaymode = "2:Automatic";} elseif ($displaymode == 3) { $displaymode = "3:Automatic+Key Lock";} $pumppostrun_CH = hexdec($decode_parameter["6"]); if (($pumppostrun_CH < 0) || ($pumppostrun_CH > 99)) { $pumppostrun_CH = "ERROR";} else { $pumppostrun_CH = $pumppostrun_CH;} $displaybrightness = hexdec($decode_parameter["7"]); if ($displaybrightness == 0) { $displaybrightness = "0:Low";} elseif ($displaybrightness == 1) { $displaybrightness = "1:High";} $fullload_CH = hexdec($decode_parameter["16"])*100; if (($fullload_CH < 1000) || ($fullload_CH > 9000)) { $fullload_CH = "ERROR";} else { $fullload_CH = $fullload_CH;} $fullload_DHW = hexdec($decode_parameter["17"])*100; if (($fullload_DHW < 1000) || ($fullload_DHW > 9000)) { $fullload_DHW = "ERROR";} else { $fullload_DHW = $fullload_DHW;} $partload_CHDHW = hexdec($decode_parameter["18"])*100; if (($partload_CHDHW < 1000) || ($partload_CHDHW > 5000)) { $partload_CHDHW = "ERROR";} else { $partload_CHDHW = $partload_CHDHW;} $offset_partload = hexdec($decode_parameter["19"]); if (($offset_partload < 0) || ($offset_partload > 99)) { $offset_partload = "ERROR";} else { $offset_partload = $offset_partload;} $startload = hexdec($decode_parameter["20"])*100; if (($startload < 1000) || ($startload > 5000)) { $startload = "ERROR";} else { $startload = $startload;} $minwaterpressure = hexdec($decode_parameter["21"])*0.1; if (($minwaterpressure < 0) || ($minwaterpressure > 3)) { $minwaterpressure = "ERROR";} else { $minwaterpressure = $minwaterpressure;} $maxflowsystem = hexdec($decode_parameter["22"]); if (($maxflowsystem < 20) || ($maxflowsystem > 90)) { $maxflowsystem = "ERROR";} else { $maxflowsystem = $maxflowsystem ;} $footpointT_outside = hexdec($decode_parameter["24"]); if (($footpointT_outside < 0) || ($footpointT_outside > 30)) { $footpointT_outside = "ERROR";} else { $footpointT_outside = $footpointT_outside ;} $footpointT_flow = hexdec($decode_parameter["25"]); if (($footpointT_flow < 0) || ($footpointT_flow > 90)) { $footpointT_flow = "ERROR";} else { $footpointT_flow = $footpointT_flow ;} $climap_outsidetemp = hexdecs($decode_parameter["26"]); if (($climap_outsidetemp < -30) || ($climap_outsidetemp > 0)) { $climap_outsidetemp = "ERROR";} else { $climap_outsidetemp = $climap_outsidetemp ;} $pump_CH_min = hexdec($decode_parameter["27"])*10; if (($pump_CH_min < 20) || ($pump_CH_min > 100)) { $pump_CH_min = "ERROR";} else { $pump_CH_min = $pump_CH_min ;} $pump_CH_max = hexdec($decode_parameter["28"])*10; if (($pump_CH_max < 20) || ($pump_CH_max > 100)) { $pump_CH_max = "ERROR";} else { $pump_CH_max = $pump_CH_max ;} $temp_frostprotect = hexdecs($decode_parameter["29"]); if (($temp_frostprotect < -30) || ($temp_frostprotect > 0)) { $temp_frostprotect = "ERROR";} else { $temp_frostprotect = $temp_frostprotect ;} $anti_legionella = hexdec($decode_parameter["30"]); if ($anti_legionella == 0) { $anti_legionella = "0:No";} elseif ($anti_legionella == 1) { $anti_legionella = "1:Yes";} elseif ($anti_legionella == 2) { $anti_legionella = "2:Controller";} $setpointraise_DHW = hexdec($decode_parameter["31"]); if (($setpointraise_DHW < 0) || ($setpointraise_DHW > 20)) { $setpointraise_DHW = "ERROR";} else { $setpointraise_DHW = $setpointraise_DHW ;} $hysteresis_calorifier = hexdec($decode_parameter["32"]); if (($hysteresis_calorifier < 2) || ($hysteresis_calorifier > 15)) { $hysteresis_calorifier = "ERROR";} else { $hysteresis_calorifier = $hysteresis_calorifier ;} $threewayvalve_standby = hexdec($decode_parameter["33"]); if ($threewayvalve_standby == 0) { $threewayvalve_standby = "0:CH";} elseif ($threewayvalve_standby == 1) { $threewayvalve_standby = "1:DHW";} $boiler_type = hexdec($decode_parameter["34"]); if ($boiler_type == 0) { $boiler_type = "0:Combi";} elseif ($boiler_type == 1) { $boiler_type = "1:Solo (+boiler)";} elseif ($boiler_type == 2) { $boiler_type = "2:Comfort Column";} $blocking_input = hexdec($decode_parameter["35"]); if ($blocking_input == 0) { $blocking_input = "0:CH enable";} elseif ($blocking_input == 1) { $blocking_input = "1:Blocking without Frost Protection";} elseif ($blocking_input == 2) { $blocking_input = "2:Blocking with Frost protection";} elseif ($blocking_input == 3) { $blocking_input = "3:Locking with Frost protection";} $release_input = hexdec($decode_parameter["36"]); if ($release_input == 0) { $release_input = "0:DHW enable";} elseif ($release_input == 1) { $release_input = "1:Burner Release";} $release_waittime = hexdec($decode_parameter["37"]); if (($release_waittime < 0) || ($release_waittime > 255)) { $release_waittime = "ERROR";} else { $release_waittime = $release_waittime ;} $fluegas_valvetime = hexdec($decode_parameter["38"]); if (($fluegas_valvetime < 0) || ($fluegas_valvetime > 255)) { $fluegas_valvetime = "ERROR";} else { $fluegas_valvetime = $fluegas_valvetime ;} $status_report = hexdec($decode_parameter["39"]); if ($status_report == 0) { $status_report = "0:Operation signal";} elseif ($status_report == 1) { $status_report = "1:Failure signal";} $min_gaspressure = hexdec($decode_parameter["40"]); if ($min_gaspressure == 0) { $min_gaspressure = "0:No";} elseif ($min_gaspressure == 1) { $min_gaspressure = "1:Yes";} $HRUactive = hexdec($decode_parameter["41"]); if ($HRUactive == 0) { $HRUactive = "0:No";} elseif ($HRUactive == 1) { $HRUactive = "1:Yes";} $mains_LN = hexdec($decode_parameter["42"]); if ($mains_LN == 0) { $mains_LN = "0:No";} elseif ($mains_LN == 1) { $mains_LN = "1:Yes";} $service_notification = hexdec($decode_parameter["43"]); if ($service_notification == 0) { $service_notification = "0:Off";} elseif ($service_notification == 1) { $service_notification = "1:ABC";} elseif ($service_notification == 2) { $service_notification = "2:Custom";} $service_hours = hexdec($decode_parameter["44"])*100; if (($service_hours < 100) || ($service_hours > 25500)) { $service_hours = "ERROR";} else { $service_hours = $service_hours ;} $service_burning = hexdec($decode_parameter["45"])*100; if (($service_burning < 100) || ($service_burning > 25500)) { $service_burning = "ERROR";} else { $service_burning = $service_burning ;} $factor_avgflow = hexdec($decode_parameter["46"]); if (($factor_avgflow < 1) || ($factor_avgflow > 255)) { $factor_avgflow = "ERROR";} else { $factor_avgflow = $factor_avgflow ;} $DHW_in_gradient = hexdec($decode_parameter["58"])*0.01; if (($DHW_in_gradient < 0.01) || ($DHW_in_gradient > 2)) { $DHW_in_gradient = "ERROR";} else { $DHW_in_gradient = $DHW_in_gradient ;} $dt_pump_offset = hexdec($decode_parameter["59"]); if (($dt_pump_offset < 0) || ($dt_pump_offset > 100)) { $dt_pump_offset = "ERROR";} else { $dt_pump_offset = $dt_pump_offset ;} $offset_controltemperature = hexdecs($decode_parameter["60"])/10; if (($offset_controltemperature < -10) || ($offset_controltemperature > 10)) { $offset_controltemperature = "ERROR";} else { $offset_controltemperature = $offset_controltemperature ;} $dhw_flowatrpmmin = hexdec($decode_parameter["61"])*0.1; if (($dhw_flowatrpmmin < 0) || ($dhw_flowatrpmmin > 5)) { $dhw_flowatrpmmin = "ERROR";} else { $dhw_flowatrpmmin = $dhw_flowatrpmmin ;} $deairation_cycles = hexdec($decode_parameter["64"]); if (($deairation_cycles < 0) || ($deairation_cycles > 10)) { $deairation_cycles = "ERROR";} else { $deairation_cycles = $deairation_cycles ;} $gradient_dTMax_1 = hexdec($decode_parameter["65"])*0.01; if (($gradient_dTMax_1 < 0.01) || ($gradient_dTMax_1 > 2)) { $gradient_dTMax_1 = "ERROR";} else { $gradient_dTMax_1 = $gradient_dTMax_1 ;} $gradient_dTMax_2 = hexdec($decode_parameter["66"])*0.01; if (($gradient_dTMax_2 < 0.01) || ($gradient_dTMax_2 > 2)) { $gradient_dTMax_2 = "ERROR";} else { $gradient_dTMax_2 = $gradient_dTMax_2 ;} $gradient_dTMax_3 = hexdec($decode_parameter["67"])*0.01; if (($gradient_dTMax_3 < 0.01) || ($gradient_dTMax_3 > 2)) { $gradient_dTMax_3 = "ERROR";} else { $gradient_dTMax_3 = $gradient_dTMax_3 ;} $dT_flow_return = hexdec($decode_parameter["68"]); if (($dT_flow_return < 0) || ($dT_flow_return > 60)) { $dT_flow_return = "ERROR";} else { $dT_flow_return = $dT_flow_return ;} $startpoint_modul = hexdec($decode_parameter["69"]); if (($startpoint_modul < 10) || ($startpoint_modul > 40)) { $startpoint_modul = "ERROR";} else { $startpoint_modul = $startpoint_modul ;} $pump_dTset_CH = hexdec($decode_parameter["70"]); if (($pump_dTset_CH < 0) || ($pump_dTset_CH > 40)) { $pump_dTset_CH = "ERROR";} else { $pump_dTset_CH = $pump_dTset_CH ;} $pump_CH_start = hexdec($decode_parameter["71"]); if (($pump_CH_start < 0) || ($pump_CH_start > 100)) { $pump_CH_start = "ERROR";} else { $pump_CH_start = $pump_CH_start ;} $hysteresis_CH = hexdec($decode_parameter["72"]); if (($hysteresis_CH < 1) || ($hysteresis_CH > 10)) { $hysteresis_CH = "ERROR";} else { $hysteresis_CH = $hysteresis_CH ;} $stabilisation_time = hexdec($decode_parameter["73"]); if (($stabilisation_time < 10) || ($stabilisation_time > 180)) { $stabilisation_time = "ERROR";} else { $stabilisation_time = $stabilisation_time ;} $min_burner_off = hexdec($decode_parameter["74"]); if (($min_burner_off < 1) || ($min_burner_off > 15)) { $min_burner_off = "ERROR";} else { $min_burner_off = $min_burner_off ;} $max_burner_off = hexdec($decode_parameter["75"]); if (($max_burner_off < 3) || ($max_burner_off > 15)) { $max_burner_off = "ERROR";} else { $max_burner_off = $max_burner_off ;} $max_fanspeed_CH = hexdec($decode_parameter["76"])*100; if (($max_fanspeed_CH < 1000) || ($max_fanspeed_CH > 9000)) { $max_fanspeed_CH = "ERROR";} else { $max_fanspeed_CH = $max_fanspeed_CH ;} $max_fanspeed_DHW = hexdec($decode_parameter["77"])*100; if (($max_fanspeed_DHW < 1000) || ($max_fanspeed_DHW > 9000)) { $max_fanspeed_DHW = "ERROR";} else { $max_fanspeed_DHW = $max_fanspeed_DHW ;} $pump_dTset_DHW = hexdec($decode_parameter["78"]); if (($pump_dTset_DHW < 5) || ($pump_dTset_DHW > 40)) { $pump_dTset_DHW = "ERROR";} else { $pump_dTset_DHW = $pump_dTset_DHW ;} $pump_DHW_min = hexdec($decode_parameter["79"]); if (($pump_DHW_min < 0) || ($pump_DHW_min > 100)) { $pump_DHW_min = "ERROR";} else { $pump_DHW_min = $pump_DHW_min ;} $pump_DHW_max = hexdec($decode_parameter["80"]); if (($pump_DHW_max < 0) || ($pump_DHW_max > 100)) { $pump_DHW_max = "ERROR";} else { $pump_DHW_max = $pump_DHW_max ;} $pump_DHW_start = hexdec($decode_parameter["81"]); if (($pump_DHW_start < 0) || ($pump_DHW_start > 100)) { $pump_DHW_start = "ERROR";} else { $pump_DHW_start = $pump_DHW_start ;} $warmup_interval_CH = hexdec($decode_parameter["82"]); if (($warmup_interval_CH < 0) || ($warmup_interval_CH > 255)) { $warmup_interval_CH = "ERROR";} else { $warmup_interval_CH = $warmup_interval_CH ;} $warmup_interval = hexdec($decode_parameter["83"]); if (($warmup_interval < 0) || ($warmup_interval > 255)) { $warmup_interval = "ERROR";} else { $warmup_interval = $warmup_interval ;} $hysteresis_warming_up = hexdec($decode_parameter["84"]); if (($hysteresis_warming_up < 0) || ($hysteresis_warming_up > 20)) { $hysteresis_warming_up = "ERROR";} else { $hysteresis_warming_up = $hysteresis_warming_up ;} $offset_warming_up = hexdecs($decode_parameter["85"]); if (($offset_warming_up < -30) || ($offset_warming_up > 20)) { $$offset_warming_up = "ERROR";} else { $offset_warming_up = $offset_warming_up ;} $DHW_start_raise = hexdec($decode_parameter["86"]); if (($DHW_start_raise < 0) || ($DHW_start_raise > 30)) { $DHW_start_raise = "ERROR";} else { $DHW_start_raise = $DHW_start_raise ;} $hysteresis_DHW = hexdec($decode_parameter["87"]); if (($hysteresis_DHW < 1) || ($hysteresis_DHW > 10)) { $hysteresis_DHW = "ERROR";} else { $hysteresis_DHW = $hysteresis_DHW ;} $offset_DHW = hexdec($decode_parameter["88"]); if (($offset_DHW < 0) || ($offset_DHW > 20)) { $offset_DHW = "ERROR";} else { $offset_DHW = $offset_DHW ;} $offsett_p1_heatexchg = hexdec($decode_parameter["89"]); if (($offsett_p1_heatexchg < 0) || ($offsett_p1_heatexchg > 20)) { $offsett_p1_heatexchg = "ERROR";} else { $offsett_p1_heatexchg = $offsett_p1_heatexchg ;} $Tf_Tr_DHW_pump_20 = hexdec($decode_parameter["90"]); if (($Tf_Tr_DHW_pump_20 < 0) || ($Tf_Tr_DHW_pump_20 > 100)) { $Tf_Tr_DHW_pump_20 = "ERROR";} else { $Tf_Tr_DHW_pump_20 = $Tf_Tr_DHW_pump_20 ;} $Tf_Tr_DHW_pump_100 = hexdec($decode_parameter["91"]); if (($Tf_Tr_DHW_pump_100 < 0) || ($Tf_Tr_DHW_pump_100 > 100)) { $Tf_Tr_DHW_pump_100 = "ERROR";} else { $Tf_Tr_DHW_pump_100 = $Tf_Tr_DHW_pump_100 ;} $delay_pump_DHW = hexdec($decode_parameter["92"])/10; if (($delay_pump_DHW < 0) || ($delay_pump_DHW > 10)) { $delay_pump_DHW = "ERROR";} else { $delay_pump_DHW = $delay_pump_DHW ;} $post_pump_time_DHW = hexdec($decode_parameter["93"]); if (($post_pump_time_DHW < 1) || ($post_pump_time_DHW > 99)) { $post_pump_time_DHW = "ERROR";} else { $post_pump_time_DHW = $post_pump_time_DHW ;} $k_factor_DHW = hexdec($decode_parameter["94"]); if (($k_factor_DHW < 1) || ($k_factor_DHW > 255)) { $k_factor_DHW = "ERROR";} else { $k_factor_DHW = $k_factor_DHW ;} $min_DHW_flow = hexdec($decode_parameter["95"])*0.1; if (($min_DHW_flow < 0.1) || ($min_DHW_flow > 1)) { $min_DHW_flow = "ERROR";} else { $min_DHW_flow = $min_DHW_flow ;} $DHW_sensor = hexdec($decode_parameter["96"]); if ($DHW_sensor == 0) { $DHW_sensor = "0:DHW Flow Sensor";} elseif ($DHW_sensor == 1) { $DHW_sensor = "1:DHW Flow Switch";} $flow_detection_time = hexdec($decode_parameter["97"]); if (($flow_detection_time < 0) || ($flow_detection_time > 255)) { $flow_detection_time = "ERROR";} else { $flow_detection_time = $flow_detection_time ;} $DHW_stabilisation = hexdec($decode_parameter["98"])/10; if (($DHW_stabilisation < 0) || ($DHW_stabilisation > 25.5)) { $DHW_stabilisation = "ERROR";} else { $DHW_stabilisation = $DHW_stabilisation ;} $DHW_gradient = hexdec($decode_parameter["99"])*0.01; if (($DHW_gradient < 0.01) || ($DHW_gradient > 2)) { $DHW_gradient = "ERROR";} else { $DHW_gradient = $DHW_gradient ;} $DHW_booster_off = hexdec($decode_parameter["100"]); if (($DHW_booster_off < 0) || ($DHW_booster_off > 99)) { $DHW_booster_off = "ERROR";} else { $DHW_booster_off = $DHW_booster_off ;} $P_DHW_start = hexdec($decode_parameter["101"]); if (($P_DHW_start < 0) || ($P_DHW_start > 200)) { $P_DHW_start = "ERROR";} else { $P_DHW_start = $P_DHW_start ;} $P_DHW_ffwd = hexdec($decode_parameter["102"]); if (($P_DHW_ffwd < 0) || ($P_DHW_ffwd > 200)) { $P_DHW_ffwd = "ERROR";} else { $P_DHW_ffwd = $P_DHW_ffwd ;} $P_DHW_flowchanges = hexdec($decode_parameter["103"]); if (($P_DHW_flowchanges < 0) || ($P_DHW_flowchanges > 200)) { $P_DHW_flowchanges = "ERROR";} else { $P_DHW_flowchanges = $P_DHW_flowchanges ;} $offset_calorifier = hexdec($decode_parameter["104"]); if (($offset_calorifier < 0) || ($offset_calorifier > 10)) { $offset_calorifier = "ERROR";} else { $offset_calorifier = $offset_calorifier ;} $start_DHW_pump = hexdecs($decode_parameter["105"]); if (($start_DHW_pump < -20) || ($start_DHW_pump > 20)) { $start_DHW_pump = "ERROR";} else { $start_DHW_pump = $start_DHW_pump ;} $post_pump_time_DHW1 = hexdec($decode_parameter["106"]); if (($post_pump_time_DHW1 < 1) || ($post_pump_time_DHW1 > 255)) { $post_pump_time_DHW1 = "ERROR";} else { $post_pump_time_DHW1 = $post_pump_time_DHW1 ;} $prepurge_time = hexdec($decode_parameter["107"]); if (($prepurge_time < 0) || ($prepurge_time > 255)) { $prepurge_time = "ERROR";} else { $prepurge_time = $prepurge_time ;} $postpurge_time = hexdec($decode_parameter["108"]); if (($postpurge_time < 0) || ($postpurge_time > 255)) { $postpurge_time = "ERROR";} else { $postpurge_time = $postpurge_time ;} $max_flowtemp = hexdec($decode_parameter["109"]); if (($max_flowtemp < 0) || ($max_flowtemp > 110)) { $max_flowtemp = "ERROR";} else { $max_flowtemp = $max_flowtemp ;} $pulses_fan = hexdec($decode_parameter["110"]); if (($pulses_fan < 1) || ($pulses_fan > 10)) { $pulses_fan = "ERROR";} else { $pulses_fan = $pulses_fan ;} $p_factor_fan = hexdec($decode_parameter["111"]); if (($p_factor_fan < 0) || ($p_factor_fan > 100)) { $p_factor_fan = "ERROR";} else { $p_factor_fan = $p_factor_fan ;} $i_factor_fan = hexdec($decode_parameter["112"]); if (($i_factor_fan < 1) || ($i_factor_fan > 200)) { $i_factor_fan = "ERROR";} else { $i_factor_fan = $i_factor_fan ;} $p_factor_CH = hexdec($decode_parameter["113"]); if (($p_factor_CH < 0) || ($p_factor_CH > 100)) { $p_factor_CH = "ERROR";} else { $p_factor_CH = $p_factor_CH ;} $i_factor_CH = hexdec($decode_parameter["114"]); if (($i_factor_CH < 0) || ($i_factor_CH > 200)) { $i_factor_CH = "ERROR";} else { $i_factor_CH = $i_factor_CH ;} $p_factor_CH_down = hexdec($decode_parameter["115"]); if (($p_factor_CH_down < 0) || ($p_factor_CH_down > 100)) { $p_factor_CH_down = "ERROR";} else { $p_factor_CH_down = $p_factor_CH_down ;} $i_factor_CH_down = hexdec($decode_parameter["116"]); if (($i_factor_CH_down < 0) || ($i_factor_CH_down > 200)) { $i_factor_CH_down = "ERROR";} else { $i_factor_CH_down = $i_factor_CH_down ;} $p_factor_DHW = hexdec($decode_parameter["117"]); if (($p_factor_DHW < 0) || ($p_factor_DHW > 100)) { $p_factor_DHW = "ERROR";} else { $p_factor_DHW = $p_factor_DHW ;} $i_factor_DHW = hexdec($decode_parameter["118"]); if (($i_factor_DHW < 0) || ($i_factor_DHW > 200)) { $i_factor_DHW = "ERROR";} else { $i_factor_DHW = $i_factor_DHW ;} $i_factor_pump_CH = hexdec($decode_parameter["119"]); if (($i_factor_pump_CH < 0) || ($i_factor_pump_CH > 200)) { $i_factor_pump_CH = "ERROR";} else { $i_factor_pump_CH = $i_factor_pump_CH ;} $i_factor_pump_DHW = hexdec($decode_parameter["120"]); if (($i_factor_pump_DHW < 0) || ($i_factor_pump_DHW > 200)) { $i_factor_pump_DHW = "ERROR";} else { $i_factor_pump_DHW = $i_factor_pump_DHW ;} $rpm_at_0KW = hexdec($decode_parameter["121"]); if (($rpm_at_0KW < 0) || ($rpm_at_0KW > 255)) { $rpm_at_0KW = "ERROR";} else { $rpm_at_0KW = $rpm_at_0KW ;} $KW_at_10000rpm = hexdec($decode_parameter["122"]); if (($KW_at_10000rpm < 0) || ($KW_at_10000rpm > 255)) { $KW_at_10000rpm = "ERROR";} else { $KW_at_10000rpm = $KW_at_10000rpm ;} $display_LED_red = hexdec($decode_parameter["123"]); if (($display_LED_red < 0) || ($display_LED_red > 255)) { $display_LED_red = "ERROR";} else { $display_LED_red = $display_LED_red ;} $display_LED_green = hexdec($decode_parameter["125"]); if (($display_LED_green < 0) || ($display_LED_green > 255)) { $display_LED_green = "ERROR";} else { $display_LED_green = $display_LED_green ;} $display_LED_blue = hexdec($decode_parameter["124"]); if (($display_LED_blue < 0) || ($display_LED_blue > 255)) { $display_LED_blue = "ERROR";} else { $display_LED_blue = $display_LED_blue ;} // END Parameters Info // START Display Parameters echo "Parameters Received: " . date_format($date, 'Y-m-d H:i:s') . "$newline"; echo str_repeat("=", 80) . "$newline"; echo "Max. Flow Temp. during CH mode: $tflow_setpoint$deg_symbol$newline"; echo "Desired DHW temperature: $dhw_setpoint$deg_symbol$newline"; echo "Switch On/Off CH/DHW Functions: $boiler_controls$newline"; echo "DHW Comfort Setting: $comfort_dhw$newline"; echo "Anticipation curent On/Off Thermostat: $anticipation$newline"; echo "Amount of Information to Display: $displaymode$newline"; echo "Pump post run time: $pumppostrun_CH minutes$newline"; echo "Display Brightness: $displaybrightness$newline"; echo "Max Fanspeed during CH mode: $fullload_CH rpm$newline"; echo "Max Fanspeed during DHW mode: $fullload_DHW rpm$newline"; echo "Max Fanspeed during CH+DHW mode: $partload_CHDHW rpm$newline"; echo "Offset on part load fanspeed: $offset_partload rpm$newline"; echo "Fanspeed at boiler start: $startload rpm$newline"; echo "Min. water pressure for notification: $minwaterpressure bar$newline"; echo "Max Flow temperature for CH: $maxflowsystem$deg_symbol$newline"; echo "Footpoint heating curve outside temperature: $footpointT_outside$deg_symbol$newline"; echo "Footpoint heating curve flow temperature: $footpointT_flow$deg_symbol$newline"; echo "Clima P outside temperature: $climap_outsidetemp$deg_symbol$newline"; echo "Pump Control - CH minimum speed: $pump_CH_min %$newline"; echo "Pump Control - CH maximum speed: $pump_CH_max %$newline"; echo "Minimum outside temperature for Frost Protection: $temp_frostprotect$deg_symbol$newline"; echo "Anti-Legionella setting: $anti_legionella $newline"; echo "Setpoint raise at warming up of calorifier: $setpointraise_DHW$deg_symbol$newline"; echo "Switch on hysteresis calorifier sensor: $hysteresis_calorifier$deg_symbol$newline"; echo "Three-way valve standby position: $threewayvalve_standby $newline"; echo "Boiler Type: $boiler_type $newline"; echo "Blocking Input: $blocking_input $newline"; echo "Release Input: $release_input$newline"; echo "Release Wait time: $release_waittime seconds$newline"; echo "Fluegas valve Wait time: $fluegas_valvetime seconds$newline"; echo "Status Report: $status_report$newline"; echo "Minimum Gas Pressure Detection: $min_gaspressure$newline"; echo "HRU Connected: $HRUactive$newline"; echo "Mains Live-Neutral phase Detection: $mains_LN$newline"; echo "Service Notification for Boiler Dependent Maintenance: $service_notification$newline"; echo "Service Hours for Boiler connected to mains: $service_hours$newline"; echo "Service Hours for Boiler Burner: $service_burning$newline"; echo "Tau Factor for average flow temperature calculation: $factor_avgflow seconds$newline"; echo "DHW-in gradient for restart stabilisation time: $DHW_in_gradient$deg_symbol/second$newline"; echo "dT pump offset: $dt_pump_offset$deg_symbol$newline"; echo "Offset Control temperature: $offset_controltemperature$deg_symbol$newline"; echo "DHW Flow at minimum output power: $dhw_flowatrpmmin litres/minute$newline"; echo "Number of de-airation cycles on startup: $deairation_cycles $newline"; echo "Maximum gradient for decreasing modulation: $gradient_dTMax_1 $newline"; echo "Maximum gradient for forced minimal load: $gradient_dTMax_2 $newline"; echo "Maximum gradient for blocking: $gradient_dTMax_3 $newline"; echo "Maximum temp difference between flow and return: $dT_flow_return$deg_symbol$newline"; echo "Modulate back when dT > this parameter: $startpoint_modul$deg_symbol $newline"; echo "Pump control, control range dT for CH: $pump_dTset_CH$deg_symbol $newline"; echo "Pump control, CH on start heatdemand: $pump_CH_start %$newline"; echo "Start hysteresis for CH: $hysteresis_CH$deg_symbol $newline"; echo "Stabilisation time after burner start CH: $stabilisation_time seconds$newline"; echo "Minimum burner anti-cycle time: $min_burner_off minutes$newline"; echo "Maximum burner anti-cycle time: $max_burner_off minutes$newline"; echo "Absolute max fan speed CH: $max_fanspeed_CH rpm$newline"; echo "Absolute max fan speed DHW: $max_fanspeed_DHW rpm$newline"; echo "Pump control, control range dT for DHW: $pump_dTset_DHW$deg_symbol $newline"; echo "Pump control, DHW minimum speed: $pump_DHW_min %$newline"; echo "Pump control, DHW maximum speed: $pump_DHW_max %$newline"; echo "Pump control, DHW on start DHW demand: $pump_DHW_start %$newline"; echo "Warm up interval for DHW after CH: $warmup_interval_CH minutes$newline"; echo "Time between warming up starts boiler: $warmup_interval minutes$newline"; echo "Hysteresis when warming up for DHW comfort: $hysteresis_warming_up$deg_symbol $newline"; echo "Offset when warming up for DHW comfort: $offset_warming_up$deg_symbol $newline"; echo "DHW start raise depending op DHW flow: $DHW_start_raise $newline"; echo "Switch on hysteresis DHW operation: $hysteresis_DHW$deg_symbol $newline"; echo "Offset DHW: $offset_DHW$deg_symbol $newline"; echo "Temperature correction DHW for Tset, ww - Tret, plate heat exchanger: $offsett_p1_heatexchg$deg_symbol $newline"; echo "%Tf/Tr for DHW control temperature at pumpspeed 20%: $Tf_Tr_DHW_pump_20 %$newline"; echo "%Tf/Tr for DHW control temperature at pumpspeed 100%: $Tf_Tr_DHW_pump_100 %$newline"; echo "Waiting time pump for preheat plate heat exchanger: $delay_pump_DHW seconds$newline"; echo "Postpump time DHW: $post_pump_time_DHW seconds$newline"; echo "Correction factor DHW pulses to litres/minute: $k_factor_DHW $newline"; echo "Minimum DHW flow for DHW detection: $min_DHW_flow litres/minute$newline"; echo "Type of Sensor for DHW detection: $DHW_sensor $newline"; echo "Factor for dynamic flow detection: $flow_detection_time $newline"; echo "DHW stabilisation time for pump modulation: $DHW_stabilisation seconds$newline"; echo "DHW gradient for stabilisation time pump: $DHW_gradient$deg_symbol/second $newline"; echo "Range in which the DHW booster is diabled: $DHW_booster_off$deg_symbol $newline"; echo "P factor for booster on start DHW: $P_DHW_start $newline"; echo "P factor for feedforward on flow DHW: $P_DHW_ffwd $newline"; echo "P factor for booster on flowchanges DHW: $P_DHW_flowchanges $newline"; echo "Switch off offset calorifier sensor: $offset_calorifier$deg_symbol $newline"; echo "Switch on delay DHW pump in comparison with boiler pump: $start_DHW_pump$deg_symbol $newline"; echo "Post pump time DHW: $post_pump_time_DHW1 seconds$newline"; echo "Prepurge time for burner start: $prepurge_time seconds$newline"; echo "Postpurge time for burner stop: $postpurge_time seconds$newline"; echo "Maximum flow temperature for blocking: $max_flowtemp$deg_symbol $newline"; echo "Tacho pulses per revolution of the fan: $pulses_fan /second$newline"; echo "P factor fan speed contro: $p_factor_fan $newline"; echo "I factor fan speed contro: $i_factor_fan $newline"; echo "P factor CH control: $p_factor_CH $newline"; echo "I factor CH control: $i_factor_CH $newline"; echo "P factor for CH control when T1>setpoint: $p_factor_CH_down $newline"; echo "I factor for CH control when T1>setpoint: $i_factor_CH_down $newline"; echo "P factor DHW control: $p_factor_DHW $newline"; echo "I factor DHW control: $i_factor_DHW $newline"; echo "I factor for pump control on CH: $i_factor_pump_CH $newline"; echo "I factor for pump control on DHW: $i_factor_pump_DHW $newline"; echo "RPM at theoretical 0KW: $rpm_at_0KW $newline"; echo "Power output (KW) at theoretical 10,000rpm: $KW_at_10000rpm KW$newline"; echo "PWM value red for normal display backlight: $display_LED_red $newline"; echo "PWM value green for normal display backlight: $display_LED_green $newline"; echo "PWM value blue for normal display backlight: $display_LED_blue $newline"; echo str_repeat("=", 80) . "$newline"; // END Display Parameters }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function calc_checksum($cmd,$data){\n $xor_value = 0;\n $xor_value = $xor_value ^ $cmd;\n foreach($data as $byte) {\n $xor_value = $xor_value ^ $byte;\n }\n /*\n If value is less than 0x20 then add 0x20\n Eg If xor of CMD and DATA results in 0x0A then CHECKSUM = 0x2A\n */\n if ($xor_value < CHECKSUM_OFFSET) {\n $xor_value = $xor_value + CHECKSUM_OFFSET;\n }\n return $xor_value;\n}", "private function _check_crc()\n\t{\n\t\t// Make sure we have unsigned crc padded hex.\n\t\t$crc_uncompressed = hash('crc32b', $this->data);\n\t\t$this->_crc = str_pad(dechex($this->_crc), 8, '0', STR_PAD_LEFT);\n\n\t\treturn $this->data !== false && $this->_crc === $crc_uncompressed;\n\t}", "protected function getChecksumData() {}", "function crc32($str)\n{\n}", "public static function calculateTableChecksum($data) {}", "public function calculateChecksum() {}", "public function calculateChecksum() {}", "function calculateChecksum(string $data): string\n{\n $checksum = '';\n while (strlen($checksum) % 2 === 0) {\n $checksum = '';\n $length = strlen($data);\n for ($i = 0; $i < $length - 1; $i += 2) {\n if ($data[$i] === $data[$i + 1]) {\n $checksum .= '1';\n } else {\n $checksum .= '0';\n }\n }\n $data = $checksum;\n }\n return $checksum;\n}", "function calc_checksum2($cmd1,$cmd2,$bytes){\n $xor_value = 0;\n $xor_value = $xor_value ^ $cmd1;\n $xor_value = $xor_value ^ $cmd2;\n foreach($bytes as $byte) {\n $xor_value = $xor_value ^ $byte;\n }\n /*\n If value is less than 0x20 then add 0x20\n Eg If xor of CMD and DATA results in 0x0A then CHECKSUM = 0x2A\n */\n if ($xor_value < CHECKSUM_OFFSET) {\n $xor_value = $xor_value + CHECKSUM_OFFSET;\n }\n return $xor_value;\n}", "abstract public function checksum($barcode);", "public static function getCRC(string $msg)\n {\n\n //conversion input string to plain HEX string. See comment above\n $msg =bin2hex($msg);\n //pack HEX-formatted $msg to the pure HEX array\n $data = pack('H*',$msg);\n //initialize crc as start HEX value;\n $crc = 0xFFFF;\n //loop $data array of HEX bytes\n for ($i = 0; $i < strlen($data); $i++)\n {\n //xor bits in the first byte of HEX value\n $crc ^=ord($data[$i]);\n //loop to shift every of 8 bits\n for ($j = 8; $j !=0; $j--)\n {\n //shift bits to the right and xor with polynome\n if (($crc & 0x0001) !=0)\n {\n $crc >>= 1;\n $crc ^= 0xA001;\n }\n else $crc >>= 1;\n }\n }\n //return the result as HEX-formatted string\n return sprintf('%04X', $crc);\n }", "protected function validateChecksum() {\n\t}", "private function _check_header_crc()\n\t{\n\t\t$this->_crc = 256;\n\n\t\t// Build the checksum for this header and make sure it matches what it claims\n\t\tfor ($i = 0; $i < 148; $i++)\n\t\t{\n\t\t\t$this->_crc += ord($this->_header[$i]);\n\t\t}\n\t\tfor ($i = 156; $i < 512; $i++)\n\t\t{\n\t\t\t$this->_crc += ord($this->_header[$i]);\n\t\t}\n\n\t\t$this->_crc_check = $this->_current['checksum'] === $this->_crc;\n\n\t\treturn $this->_crc_check;\n\t}", "public function getChecksum();", "public function isValidChecksum()\n\t{\n\t\t$length = strlen($this->number);\n\t\t$value = $this->ccNumber;\n\t\t$sum = 0;\n $weight = 2;\n\n for ($i = $length - 2; $i >= 0; $i--) {\n $digit = $weight * $value[$i];\n $sum += floor($digit / 10) + $digit % 10;\n $weight = $weight % 2 + 1;\n }\n\n if ((10 - $sum % 10) % 10 != $value[$length - 1]) {\n return false;\n }\n\n return true;\n\t}", "protected function calculateChecksum() {\r\n // Calculating Checksum\r\n // Consider the right-most digit of the message to be in an \"odd\" position,\r\n // and assign odd/even to each character moving from right to left\r\n // Odd Position = 3, Even Position = 1\r\n // Multiply it by the number\r\n // Add all of that and do 10-(?mod10)\r\n $odd = true;\r\n $this->checksumValue = 0;\r\n $c = strlen($this->text);\r\n for ($i = $c; $i > 0; $i--) {\r\n if ($odd === true) {\r\n $multiplier = 3;\r\n $odd = false;\r\n } else {\r\n $multiplier = 1;\r\n $odd = true;\r\n }\r\n\r\n if (!isset($this->keys[$this->text[$i - 1]])) {\r\n return;\r\n }\r\n\r\n $this->checksumValue += $this->keys[$this->text[$i - 1]] * $multiplier;\r\n }\r\n\r\n $this->checksumValue = (10 - $this->checksumValue % 10) % 10;\r\n }", "public function ComputeCRC($str)\n\t{\t\n\t\t$crc = 0xD234F290;\n\t\t\n\t\t for ($i=0;$i < strlen($str); $i++) \n\t\t {\n\t\t\t$crc = ((($crc << 1) | (($crc & 0x80000000)? 1 : 0)) ^ ord(substr($str,$i,1)));\n\t\t }\n\n\t\t return ($crc);\n\t}", "function __crc32_file($name) {\n\t\t\t$this->addlength = true;\n\t\t\t$crc = 0xffffffff;\n\t\t\t$total = filesize($name);\n\t\t\t$index = 0;\n\n\t\t\tif (($fp = fopen($name,'rb')) === false) {return false;}\n\t\t\tfor (;;) {\n\t\t\t\t$buffer = fread($fp,1000000);\n\t\t\t\t$len = strlen($buffer);\n\t\t\t\tif ($len == 0 && !empty($this->modifs)) {\n\t\t\t\t\t$len = count($this->modifs);\n\t\t\t\t\t$this->addlength = false;\n\t\t\t\t}\n\t\t\t\tif ($len == 0) {break;}\n\t\t\t\tfor ($j = 0;$j < $len;$j++) {\n\t\t\t\t\t$c = $buffer[$j] ?? '';\n\t\t\t\t\tif (isset($this->modifs[$index])) {\n\t\t\t\t\t\t$c = $this->modifs[$index]['chr'];\n\t\t\t\t\t\tif ($this->addlength) {$j--;}\n\t\t\t\t\t\tunset($this->modifs[$index]);\n\t\t\t\t\t\t$total++;\n\t\t\t\t\t}\n\n\t\t\t\t\t$crc = (($crc >> 8) & 0x00ffffff) ^ $this->__crc32_table[($crc & 0xFF) ^ ord($c)];\n\n\t\t\t\t\t$index++;\n\t\t\t\t\t$total--;\n\t\t\t\t\tif ($index % 10000000 == 0) {fwrite(STDERR, $total.PHP_EOL);}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfclose($fp);\n\t\t\t// Exclusive OR the result with the beginning value.\n\t\t\treturn $crc ^ 0xffffffff;\n\t\t}", "protected function calculateChecksum() {\r\n // Checksum\r\n // First CheckSUM \"C\"\r\n // The \"C\" checksum character is the modulo 11 remainder of the sum of the weighted\r\n // value of the data characters. The weighting value starts at \"1\" for the right-most\r\n // data character, 2 for the second to last, 3 for the third-to-last, and so on up to 20.\r\n // After 10, the sequence wraps around back to 1.\r\n\r\n // Second CheckSUM \"K\"\r\n // Same as CheckSUM \"C\" but we count the CheckSum \"C\" at the end\r\n // After 9, the sequence wraps around back to 1.\r\n $sequence_multiplier = array(10, 9);\r\n $temp_text = $this->text;\r\n $this->checksumValue = array();\r\n for ($z = 0; $z < 2; $z++) {\r\n $c = strlen($temp_text);\r\n\r\n // We don't display the K CheckSum if the original text had a length less than 10\r\n if ($c <= 10 && $z === 1) {\r\n break;\r\n }\r\n\r\n $checksum = 0;\r\n for ($i = $c, $j = 0; $i > 0; $i--, $j++) {\r\n $multiplier = $i % $sequence_multiplier[$z];\r\n if ($multiplier === 0) {\r\n $multiplier = $sequence_multiplier[$z];\r\n }\r\n\r\n $checksum += $this->findIndex($temp_text[$j]) * $multiplier;\r\n }\r\n\r\n $this->checksumValue[$z] = $checksum % 11;\r\n $temp_text .= $this->keys[$this->checksumValue[$z]];\r\n }\r\n }", "function bitadma_get_admarula_tmt_data_hex( $raw_data, $pattern ) {\n\n\t// pattern\n\t$matches = array();\n\t$has_match = preg_match( $pattern, $raw_data, $matches );\n\n\t// return match or false.\n\tif ( $has_match ) {\n\t\tif (isset($matches[1])) {\n\n\t\t\treturn bitadma_strip_whitespace($matches[1]);\n\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\n\t} else {\n\t\treturn false;\n\t}\n\n}", "function checksum_validate($number)\n{\n $original = substr($number, 0, strlen($number) - 1);\n return checksum_generate($original) === $number;\n}", "public function _ungzip_data()\n\t{\n\t\t// Unpack the crc and original size, its the trailing 8 bytes\n\t\t$check = unpack('Vcrc32/Visize', substr($this->data, strlen($this->data) - 8));\n\t\t$this->_crc = $check['crc32'];\n\t\t$this->_size = $check['isize'];\n\n\t\t// Extract the data, in this case its the tarball\n\t\t$this->data = @gzinflate(substr($this->data, $this->_offset, strlen($this->data) - 8 - $this->_offset));\n\n\t\t// Check the crc and the data size\n\t\tif (!$this->_check_crc() || (strlen($this->data) !== $check['isize']))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "public function crc32(): int\n {\n return crc32($this->string);\n }", "function crc_string($str, $len){\n\treturn substr(sprintf(\"%u\", crc32($str)),0,$len);\n}", "public static function tidy_bytes($data){\n\t\t/*\n\t\t\tTODO Port ruby source\n\t\t*/\n\t\treturn $data;\n\t\t\n\t\t#if force\n\t\t# return string.unpack(\"C*\").map do |b|\n\t\t# tidy_byte(b)\n\t\t# end.flatten.compact.pack(\"C*\").unpack(\"U*\").pack(\"U*\")\n\t\t#end\n #\n\t\t#bytes = string.unpack(\"C*\")\n\t\t#conts_expected = 0\n\t\t#last_lead = 0\n #\n\t\t#bytes.each_index do |i|\n #\n\t\t# byte = bytes[i]\n\t\t# is_cont = byte > 127 && byte < 192\n\t\t# is_lead = byte > 191 && byte < 245\n\t\t# is_unused = byte > 240\n\t\t# is_restricted = byte > 244\n #\n\t\t# # Impossible or highly unlikely byte? Clean it.\n\t\t# if is_unused || is_restricted\n\t\t# bytes[i] = tidy_byte(byte)\n\t\t# elsif is_cont\n\t\t# # Not expecting continuation byte? Clean up. Otherwise, now expect one less.\n\t\t# conts_expected == 0 ? bytes[i] = tidy_byte(byte) : conts_expected -= 1\n\t\t# else\n\t\t# if conts_expected > 0\n\t\t# # Expected continuation, but got ASCII or leading? Clean backwards up to\n\t\t# # the leading byte.\n\t\t# (1..(i - last_lead)).each {|j| bytes[i - j] = tidy_byte(bytes[i - j])}\n\t\t# conts_expected = 0\n\t\t# end\n\t\t# if is_lead\n\t\t# # Final byte is leading? Clean it.\n\t\t# if i == bytes.length - 1\n\t\t# bytes[i] = tidy_byte(bytes.last)\n\t\t# else\n\t\t# # Valid leading byte? Expect continuations determined by position of\n\t\t# # first zero bit, with max of 3.\n\t\t# conts_expected = byte < 224 ? 1 : byte < 240 ? 2 : 3\n\t\t# last_lead = i\n\t\t# end\n\t\t# end\n\t\t# end\n\t\t#end\n\t\t#bytes.empty? ? \"\" : bytes.flatten.compact.pack(\"C*\").unpack(\"U*\").pack(\"U*\")\n\t}", "public function crc16() { return $this->_m_crc16; }", "function verifyPaymentDatafeed($src, $prc, $successCode, $merchantReferenceNumber, $paydollarReferenceNumber, $currencyCode, $amount, $payerAuthenticationStatus, $secureHashSecret, $secureHash) {\r\n\t$buffer = $src . '|' . $prc . '|' . $successCode . '|' . $merchantReferenceNumber . '|' . $paydollarReferenceNumber . '|' . $currencyCode . '|' . $amount . '|' . $payerAuthenticationStatus . '|' . $secureHashSecret;\r\n\t$verifyData = sha1($buffer);\r\n\tif ($secureHash == $verifyData) { return true; }\r\n\treturn false;\r\n}", "function serendipity_FTPChecksum($filename, $type = null) {\n /** Only read the finfo database once */\n static $debug_exts = array();\n\n // Must be able to read the file\n if (!is_readable($filename)) {\n return false;\n }\n\n // Figure out whether it's binary or text by extension\n if ($type == null) {\n $parts = pathinfo($filename);\n $ext = '';\n // Some PHP versions throw a warning if the index doesn't exist\n if (isset($parts['extension'])) {\n $ext = $parts['extension'];\n }\n // If they're case-insensitive equal, strcasecmp() returns 0, or\n // 'false'. So I use && to find if any of them are 0, in the\n // most likely fail-fast order.\n if (strcasecmp($ext, 'php') &&\n strcasecmp($ext, 'tpl') &&\n strcasecmp($ext, 'sql') &&\n strcasecmp($ext, 'js') &&\n strcasecmp($ext, 'txt') &&\n strcasecmp($ext, 'htc') &&\n strcasecmp($ext, 'css') &&\n strcasecmp($ext, 'dist') &&\n strcasecmp($ext, 'lib') &&\n strcasecmp($ext, 'sh') &&\n strcasecmp($ext, 'html') &&\n strcasecmp($ext, 'htm') &&\n strcasecmp($ext, 'xml') &&\n strcasecmp($ext, 'inc') &&\n strcasecmp($ext, 'svg') &&\n !empty($ext)) {\n if (!in_array($ext, array_keys($debug_exts))) {\n $debug_exts[$ext] = $filename;\n }\n $type = 'bin';\n } else {\n $type = 'text';\n }\n }\n\n // Calculate the checksum\n $md5 = false;\n if (stristr($type, 'text')) {\n // This is a text-type file. We need to remove linefeeds before\n // calculating a checksum, to account for possible FTP conversions\n // that are inconvenient, but still valid. But we don't want to\n // allow newlines anywhere; just different *kinds* of newlines.\n $newlines = array(\"#\\r\\n#\", \"#\\r#\", \"#\\n#\");\n $file = file_get_contents($filename);\n $file = preg_replace($newlines, ' ', $file);\n $md5 = md5($file);\n } else {\n // Just get its md5sum\n $md5 = md5_file($filename);\n }\n\n return $md5;\n}", "public function base58Checksum($payload);", "function checksum ($etiquette, $valeur) {\n $sum = 32; // Somme des codes ASCII du message+un espace\n for ($i=0;$i<strlen($etiquette);$i++) {\n $sum = $sum + ord($etiquette[$i]);\n }\n for ($i=0;$i<strlen($valeur);$i++) {\n $sum = $sum + ord($valeur[$i]);\n }\n $sum = ($sum & 63) + 32;\n return (chr($sum));\n }", "private static function decodeFilterLZWDecode($data){\n\t\t// intialize string to return\n\t\t$decoded = '';\n\t\t// data length\n\t\t$data_length = strlen($data);\n\t\t// convert string to binary string\n\t\t$bitstring = '';\n\t\tfor($i = 0; $i < $data_length; ++$i){\n\t\t\t$bitstring .= sprintf('%08b', ord($data{$i}));\n\t\t}\n\t\t// get the number of bits\n\t\t$data_length = strlen($bitstring);\n\t\t// initialize code length in bits\n\t\t$bitlen = 9;\n\t\t// initialize dictionary index\n\t\t$dix = 258;\n\t\t// initialize the dictionary (with the first 256 entries).\n\t\t$dictionary = array();\n\t\tfor($i = 0; $i < 256; ++$i){\n\t\t\t$dictionary[$i] = chr($i);\n\t\t}\n\t\t// previous val\n\t\t$prev_index = 0;\n\t\t// while we encounter EOD marker (257), read code_length bits\n\t\twhile(($data_length > 0) AND ( ($index = bindec(substr($bitstring, 0, $bitlen))) != 257)){\n\t\t\t// remove read bits from string\n\t\t\t$bitstring = substr($bitstring, $bitlen);\n\t\t\t// update number of bits\n\t\t\t$data_length -= $bitlen;\n\t\t\tif($index == 256){ // clear-table marker\n\t\t\t\t// reset code length in bits\n\t\t\t\t$bitlen = 9;\n\t\t\t\t// reset dictionary index\n\t\t\t\t$dix = 258;\n\t\t\t\t$prev_index = 256;\n\t\t\t\t// reset the dictionary (with the first 256 entries).\n\t\t\t\t$dictionary = array();\n\t\t\t\tfor($i = 0; $i < 256; ++$i){\n\t\t\t\t\t$dictionary[$i] = chr($i);\n\t\t\t\t}\n\t\t\t} elseif($prev_index == 256){\n\t\t\t\t// first entry\n\t\t\t\t$decoded .= $dictionary[$index];\n\t\t\t\t$prev_index = $index;\n\t\t\t} else {\n\t\t\t\t// check if index exist in the dictionary\n\t\t\t\tif($index < $dix){\n\t\t\t\t\t// index exist on dictionary\n\t\t\t\t\t$decoded .= $dictionary[$index];\n\t\t\t\t\t$dic_val = $dictionary[$prev_index] . $dictionary[$index]{0};\n\t\t\t\t\t// store current index\n\t\t\t\t\t$prev_index = $index;\n\t\t\t\t} else {\n\t\t\t\t\t// index do not exist on dictionary\n\t\t\t\t\t$dic_val = $dictionary[$prev_index] . $dictionary[$prev_index]{0};\n\t\t\t\t\t$decoded .= $dic_val;\n\t\t\t\t}\n\t\t\t\t// update dictionary\n\t\t\t\t$dictionary[$dix] = $dic_val;\n\t\t\t\t++$dix;\n\t\t\t\t// change bit length by case\n\t\t\t\tif($dix == 2047){\n\t\t\t\t\t$bitlen = 12;\n\t\t\t\t} elseif($dix == 1023){\n\t\t\t\t\t$bitlen = 11;\n\t\t\t\t} elseif($dix == 511){\n\t\t\t\t\t$bitlen = 10;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $decoded;\n\t}", "function generate_checksum($byteArray)\n{\n\t$byte = 0;\n\t$arr = $byteArray;\n\tfor ($i = 0; $i < strlen($byteArray); $i++)\n\t{\n\t\t$byte ^= ord($arr[$i]);\n\t}\n\treturn $byte % NUM_LETTERS;\n}", "public static function calculateChecksumAdjustment($offsetData, $checksums) {}", "function fn_crc32($key)\n{\n\treturn sprintf('%u', crc32($key));\n}", "public function testHexadecimal()\n {\n // Generate hex data with random length.\n $method = 'hex';\n $data = $this->getData($method);\n\n // Hex data should all be PHP strings.\n $this->assertContainsOnly('string', $data);\n\n // Check that all generated data represents hex digits.\n foreach ($data as $datum) {\n $this->assertTrue(ctype_xdigit($datum));\n }\n\n // Check that the correct bytes of data is produced.\n $i = $this::MIN_BYTES;\n while ($i <= $this::MAX_BYTES) {\n $value = $this->generateValue($method, $i);\n $value_bytes = strlen($value) / 2;\n $this->assertEquals($i, $value_bytes);\n $i++;\n }\n }", "protected function processChecksum() {\r\n if ($this->checksumValue === false) { // Calculate the checksum only once\r\n $this->calculateChecksum();\r\n }\r\n\r\n if ($this->checksumValue !== false) {\r\n $ret = '';\r\n $c = count($this->checksumValue);\r\n for ($i = 0; $i < $c; $i++) {\r\n $ret .= $this->keys[$this->checksumValue[$i]];\r\n }\r\n\r\n return $ret;\r\n }\r\n\r\n return false;\r\n }", "function __Update(state $state, $data, $databitlen) {\n //$index = 0; /*the starting address of the data to be compressed*/\n\n $state->databitlen += $databitlen;\n $index = 0;\n\n /* if there is remaining data in the buffer, fill it to a full message block first */\n /* we assume that the size of the data in the buffer is the multiple of 8 bits if it is not at the end of a message */\n\n\n /* There is data in the buffer, but the incoming data is insufficient for a full block */\n if (($state->datasize_in_buffer > 0) && (($state->datasize_in_buffer + $databitlen) < 512)) {\n if (($databitlen & 7) == 0) {\n _memcpy($state->buffer, $state->datasize_in_buffer >> 3, $data, 0, 64 - ($state->datasize_in_buffer >> 3));\n } else {\n _memcpy($state->buffer, $state->datasize_in_buffer >> 3, $data, 0, 64 - ($state->datasize_in_buffer >> 3) + 1);\n }\n $state->datasize_in_buffer += $databitlen;\n $databitlen = 0;\n }\n\n /* There is data in the buffer, and the incoming data is sufficient for a full block */\n if (($state->datasize_in_buffer > 0) && (($state->datasize_in_buffer + $databitlen) >= 512)) {\n _memcpy($state->buffer, $state->datasize_in_buffer >> 3, $data, 0, 64 - ($state->datasize_in_buffer >> 3));\n $index = 64 - ($state->datasize_in_buffer >> 3);\n $databitlen = $databitlen - (512 - $state->datasize_in_buffer);\n F8($state);\n $state->datasize_in_buffer = 0;\n }\n\n\n /* hash the remaining full message blocks */\n for (; $databitlen >= 512; ($index = $index + 64), ($databitlen = $databitlen - 512)) {\n _memcpy($state->buffer, 0, $data, $index, 64);\n F8($state);\n }\n\n\n /* store the partial block into buffer, assume that -- if part of the last byte is not part of the message, then that part consists of 0 bits */\n if ($databitlen > 0) {\n if (($databitlen & 7) == 0) {\n _memcpy($state->buffer, 0, $data, $index, ($databitlen & 0x1ff) >> 3);\n } else {\n _memcpy($state->buffer, 0, $data, $index, (($databitlen & 0x1ff) >> 3) + 1);\n }\n $state->datasize_in_buffer = $databitlen;\n }\n}", "function serendipity_verifyFTPChecksums() {\n global $serendipity;\n\n $badsums = array();\n\n // Load the checksums\n $f = S9Y_INCLUDE_PATH . 'checksums.inc.php';\n\n if (!file_exists($f) || filesize($f) < 1) {\n return $badsums;\n }\n\n require_once $f;\n // Verify that every file in the checksum list was uploaded correctly\n $basedir = realpath(dirname(__FILE__) . '/../');\n\n if (!is_array($serendipity['checksums_' . $serendipity['version']])) {\n return $badsums;\n }\n\n foreach ($serendipity['checksums_' . $serendipity['version']] as $prel => $sum) {\n $path = $basedir . '/' . $prel;\n // Don't take checksums of directories\n if (is_dir($path)) {\n // Weird that it's even here.\n continue;\n }\n\n // Can't checksum unreadable or nonexistent files\n if (!is_readable($path)) {\n $badsums[$prel] = 'missing';\n continue;\n }\n\n // Validate checksum\n $calcsum = serendipity_FTPChecksum($path);\n if ($sum != $calcsum) {\n $badsums[$prel] = $calcsum;\n continue;\n }\n }\n\n return $badsums;\n}", "public function processInput()\n {\n foreach ($this->input as $line) {\n # Get the checksum\n $splitString = explode('[', $line);\n $encryptedName = $splitString[0];\n $checksumDirty = $splitString[1];\n\n # Get rid of the square bracket\n $checksumLine = substr(trim($checksumDirty), 0, -1);\n\n list($checksum, $number) = $this->getChecksum($encryptedName);\n if ($checksum == $checksumLine) {\n $this->sum += $number;\n }\n }\n\n return $this->sum;\n }", "protected function makecrc($binaryCmd) {\n $n = strlen($binaryCmd);\n $crc = 0;\n for ($i = 0; $i < $n; $i++) {\n $dec = ord($binaryCmd{$i});\n $crc ^= $dec;\n }\n return $crc;\n }", "public function getCrc()\n {\n if ($this->hasFlag(self::CRC32)) {\n return $this->_crc;\n }\n return false;\n }", "public static function calculate($data)\n {\n if (!is_string($data)) {\n throw new \\InvalidArgumentException('Data with value \"' . $data . '\" is not a string.');\n }\n\n // Split the data into individual characters\n $characters = str_split($data);\n\n // Create an array to put the final characters into\n $character_list = [];\n\n // From right to left...\n for ($i = count($characters) - 1; $i >= 0; $i--) {\n // Convert character to decimal\n $character_list[$i] = hexdec($characters[$i]);\n\n // For every odd character, ie 1, 3, 5, etc...\n if ($i % 2 !== 0) {\n // Double it\n $doubled = $character_list[$i] * 2;\n\n // Convert it to hexadecimal\n $hexed = dechex($doubled);\n\n // If it's still a number (not a hex 'letter')\n // Note: casting to string, as ctype_digit accepts ascii codes as well\n if (ctype_digit((string) $hexed)) {\n $character_list[$i] = array_sum(str_split($hexed)); // Store it\n }\n }\n }\n\n // Add them all up\n $total = array_sum($character_list);\n\n // Get the difference between next multiple of 16 and the sum\n $difference = ceil($total / 16) * 16 - $total;\n\n // Convert to hex\n $hex = dechex($difference);\n\n // uppercase it\n return strtoupper($hex);\n }", "private function getChecksum(): int\n {\n $this->generateChecksum(true);\n return ((($this->base) - ($this->luhnValue % $this->base)) % $this->base);\n }", "function test($case) {\n\t$plain = \"The quick brown fox jumps over the lazy dog.\";\n\t$fn = \"bug71263.bz2\";\n\t$compressed = (string) bzcompress($plain);\n\techo \"Compressed len = \", strlen($compressed), \"\\n\";\n\t\n if ($case == 1) {\n // Set a random byte in the middle of the compressed data\n // --> php_bz2_decompress_filter() detects fatal error\n // --> fread() displays empty string then garbage, no errors detected:\n $compressed[strlen($compressed) - 15] = 'X';\n } else if ($case == 2) {\n // Truncate the compressed data\n // --> php_bz2_decompress_filter() does not detect errors,\n // --> fread() displays the empty string:\n \t$compressed = substr($compressed, 0, strlen($compressed) - 20);\n } else {\n // Corrupted final CRC\n // --> php_bz2_decompress_filter() detects fatal error\n // --> fread() displays an empty string, then the correct plain text, no error detected:\n \t$compressed[strlen($compressed)-2] = 'X';\n }\n\n\tfile_put_contents($fn, $compressed);\n\t\n\t$r = fopen($fn, \"r\");\n\tstream_filter_append($r, 'bzip2.decompress', STREAM_FILTER_READ);\n while (!feof($r)) {\n $s = fread($r, 100);\n echo \"read: \"; var_dump($s);\n }\n\tfclose($r);\n\tunlink($fn);\n}", "function processData() ;", "public function create_from_binary_data($data);", "private function hashing() {\n\t\t$data = md5($this->name.$this->date);\n\t\t$data = md5($data);\n\t\t$data = strrev($data);\n\t\t//$data = md5($data);\n\t\t$data = strtoupper($data);\n\t\t//$data = strrev($data);\n\n\t\t$datatemp = NULL;\n\t\tfor($i=0; $i<=strlen($data); $i++) {\n\t\t\t$arr = substr($data, $i, 1);\n\t\t\tif($i == '4' || $i == '8' || $i == '12' || $i == '16' || $i == '20' || $i == '24' || $i == '28' || $i == '32') {\n\t\t\t\t$datatemp .= substr($this->strfinger, ($i/4)-1, 1);\t\n\t\t\t}\n\t\t\t$datatemp .= \"/%\".$this->combine[$arr];\n\t\t}\n\n\t\t$this->resulthashcode = substr($datatemp, 1, strlen($datatemp)-6);\n\t\t$this->result = true;\n\t}", "public function ConvertStrtoCode($data) {\n\t\t$this->adler = hash(\"adler32\", $data);\n\t\t$this->crc = hash(\"crc32\", $data);\n\t\t$this->code = $this->adler.\"<br>\".$this->crc;\n\t}", "protected function calculateArrayChecksum(array $data)\n {\n return md5(implode('', $data) . $this->getMerchantPassword());\n }", "public function init($sentence) \n {\n // echo \"line: \" . $sentence . \"\\n\";\n \n // Find location of checksum in line, if present, and separate from data:\n $cinx = strpos($sentence, '*');\n if ($cinx) {\n\n // Data with checksum removed.\n $this->data = substr($sentence, 0, $cinx);\n $this->suppliedCheckSum = strtolower(substr($sentence, $cinx + 1));\n \n // Compute checksum from bitwise exclusive-or of everything between,\n // and not including, the initial '$' and '*':\n $checkSum = 0;\n for ($inx = 1; $inx <=strlen($sentence); $inx++ ) {\n if ($sentence[$inx] == '*') {\n break;\n }\n $checkSum ^= ord($sentence[$inx]);\n }\n $checkSum = dechex($checkSum);\n \n // If checksum is supplied, but not equal to the computed checksum, \n // set boolean:\n if ($checkSum == $this->suppliedCheckSum) {\n $this->validCheckSum = true; \n } else {\n $this->validCheckSum = false;\n }\n \n } else { // Don't bother to compute checksum if not supplied:\n \n $this->data = $sentence;\n $this->suppliedCheckSum = null;\n $this->validCheckSum = false;\n \n } // end if checksum supplied or not\n \n }", "final public function calculateDigestString($data) {}", "function rc4($data, $pwd)\n{\n $cipher = '';\n $key[] = \"\";\n $box[] = \"\";\n $pwd_length = strlen($pwd);\n $data_length = strlen($data);\n for ($i = 0; $i < 256; $i++) {\n $key[$i] = ord($pwd[$i % $pwd_length]);\n $box[$i] = $i;\n }\n for ($j = $i = 0; $i < 256; $i++) {\n $j = ($j + $box[$i] + $key[$i]) % 256;\n $tmp = $box[$i];\n $box[$i] = $box[$j];\n $box[$j] = $tmp;\n }\n for ($a = $j = $i = 0; $i < $data_length; $i++) {\n $a = ($a + 1) % 256;\n $j = ($j + $box[$a]) % 256;\n $tmp = $box[$a];\n $box[$a] = $box[$j];\n $box[$j] = $tmp;\n $k = $box[(($box[$a] + $box[$j]) % 256)];\n $cipher .= chr(ord($data[$i]) ^ $k);\n echo \"code:\" . ord($data[$i]) . \"\\tk:$k\". PHP_EOL;\n }\n return $cipher;\n}", "public function crc($string, $size)\n {\n $string = strval($string);\n \n if ($this->params['strtolower'] === true) {\n $string = mb_strtolower($string, 'UTF-8');\n }\n \n return abs(crc32(md5($this->seed[0] . $string))) % $size;\n }", "private function validateChecksum($vat): void\n {\n $numbers = trim(substr($vat, 2));\n\n $len = strlen($numbers);\n\n self::assertEquals(10, $len);\n self::assertStringStartsWith('0', $numbers);\n\n // Mod97 check on first 8 digits\n $checksum = 97 - fmod(substr($numbers, 0, 8), 97);\n // Make sure checksum is 2 characters long\n $checksum = sprintf('%02d', $checksum);\n\n self::assertEquals((string) $checksum, substr($numbers, 8, 10));\n }", "public function validaFlag() {\n //return 0 = errada\n //return 1 = correta\n //return 2 = respondida\n //return 3 = bruteforce ON\n if (!$this->checkBrute()):\n $read = new Read;\n $read->FullRead(\"SELECT id, valor,evento_id,nome,resposta FROM chall WHERE resposta = :r\", \"r={$this->resposta}\");\n if ($read->getResult()):\n foreach ($read->getResult() as $dadoschall):\n extract($dadoschall);\n return $this->confirmaflag($id, $evento_id, $resposta);\n endforeach;\n else:\n return $this->insereErradas(); //flag incorreta\n endif;\n else:\n return 3; //BruteForce Ativo\n endif;\n }", "function get_core_checksums($version, $locale)\n {\n }", "protected function calculateChecksum($value): int\n {\n $checksum = 0;\n\n // chars without check digit in reverse\n $chars = array_reverse(str_split(substr($value, 0, -1)));\n\n foreach ($chars as $key => $char) {\n $multiplier = $key % 2 ? 1 : 3;\n $checksum += intval($char) * $multiplier;\n }\n\n $remainder = $checksum % 10;\n\n if ($remainder === 0) {\n return 0;\n }\n\n return 10 - $remainder;\n }", "function checkBitVersion() {\n\t\t$local = $this->getBitVersion( FALSE );\n\t\t$ret['local'] = $local;\n\n\t\t$error['number'] = 0;\n\t\t$error['string'] = $data = '';\n\n\t\t// cache the bitversion.txt file locally and update only once a day\n\t\t// if you don't have a connection to bitweaver.org, you can set a cronjob to 'touch' this file once a day to avoid waiting for a timeout.\n\t\tif( !is_file( TEMP_PKG_PATH.'bitversion.txt' ) || ( time() - filemtime( TEMP_PKG_PATH.'bitversion.txt' )) > 86400 ) {\n\t\t\tif( $h = fopen( TEMP_PKG_PATH.'bitversion.txt', 'w' )) {\n\t\t\t\t$data = bit_http_request( 'http://www.bitweaver.org/bitversion.txt' );\n\t\t\t\tif( !preg_match( \"/not found/i\", $data )) {\n\t\t\t\t\tfwrite( $h, $data );\n\t\t\t\t\tfclose( $h );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif( is_readable( TEMP_PKG_PATH.'bitversion.txt' ) ) {\n\t\t\t$h = fopen( TEMP_PKG_PATH.'bitversion.txt', 'r' );\n\t\t\tif( isset( $h ) ) {\n\t\t\t\t$data = fread( $h, 1024 );\n\t\t\t\tfclose( $h );\n\t\t\t}\n\n\t\t\t// nuke all lines that don't just contain a version number\n\t\t\t$lines = explode( \"\\n\", $data );\n\t\t\tforeach( $lines as $line ) {\n\t\t\t\tif( preg_match( \"/^\\d+\\.\\d+\\.\\d+$/\", $line ) ) {\n\t\t\t\t\t$versions[] = $line;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif( !empty( $data ) && !empty( $versions ) && preg_match( \"/\\d+\\.\\d+\\.\\d+/\", $versions[0] ) ) {\n\t\t\t\tsort( $versions );\n\t\t\t\tforeach( $versions as $version ) {\n\t\t\t\t\tif( preg_match( \"/^\".BIT_MAJOR_VERSION.\"\\./\", $version ) ) {\n\t\t\t\t\t\t$ret['compare'] = version_compare( $local, $version );\n\t\t\t\t\t\t$ret['upgrade'] = $version;\n\t\t\t\t\t\t$ret['page'] = preg_replace( \"/\\.\\d+$/\", \"\", $version );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// check if there have been any major releases\n\t\t\t\t$release = explode( '.', array_pop( $versions ) );\n\t\t\t\tif( $release[0] > BIT_MAJOR_VERSION ) {\n\t\t\t\t\t$ret['release'] = implode( '.', $release );\n\t\t\t\t\t$ret['page'] = $release[0].'.'.$release[1];\n\t\t\t\t} elseif( $release[0] < BIT_MAJOR_VERSION ) {\n\t\t\t\t\t$ret['compare'] = version_compare( $local, $version );\n\t\t\t\t\t$ret['upgrade'] = $version;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$error['number'] = 1;\n\t\t\t\t$error['string'] = tra( 'No version information available. Check your connection to bitweaver.org' );\n\t\t\t}\n\t\t}\n\t\t// append any release level\n\t\t$ret['local'] .= ' '.BIT_LEVEL;\n\t\t$ret['error'] = $error;\n\t\treturn $ret;\n\t}", "protected function checksum_code93($code) {\n\t\t$chars = array(\n\t\t\t'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',\n\t\t\t'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K',\n\t\t\t'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V',\n\t\t\t'W', 'X', 'Y', 'Z', '-', '.', ' ', '$', '/', '+', '%',\n\t\t\t'<', '=', '>', '?');\n\t\t// translate special characters\n\t\t$code = strtr($code, chr(128).chr(131).chr(129).chr(130), '<=>?');\n\t\t$len = strlen($code);\n\t\t// calculate check digit C\n\t\t$p = 1;\n\t\t$check = 0;\n\t\tfor ($i = ($len - 1); $i >= 0; --$i) {\n\t\t\t// FIXME: use strpos() instead and check result\n\t\t\t$k = array_keys($chars, $code[$i]);\n\t\t\t$check += ( (int) $k[0] * $p);\n\t\t\t++$p;\n\t\t\tif ($p > 20) {\n\t\t\t\t$p = 1;\n\t\t\t}\n\t\t}\n\t\t$check %= 47;\n\t\t$c = $chars[$check];\n\t\t$code .= $c;\n\t\t// calculate check digit K\n\t\t$p = 1;\n\t\t$check = 0;\n\t\tfor ($i = $len; $i >= 0; --$i) {\n\t\t\t// FIXME: use strpos() instead and check result\n\t\t\t$k = array_keys($chars, $code[$i]);\n\t\t\t$check += ( (int) $k[0] * $p);\n\t\t\t++$p;\n\t\t\tif ($p > 15) {\n\t\t\t\t$p = 1;\n\t\t\t}\n\t\t}\n\t\t$check %= 47;\n\t\t$checksum = $c.$chars[$check];\n\t\t// restore special characters\n\t\t$checksum = strtr($checksum, '<=>?', chr(128).chr(131).chr(129).chr(130));\n\t\treturn $checksum;\n\t}", "public function useCrc($useCrc)\n {\n if ($useCrc) {\n $this->setFlags($this->getFlags() | self::CRC32);\n } else {\n $this->setFlags($this->getFlags() & ~self::CRC32);\n }\n }", "function ean_checksum2($ean){\n $ean=(string)$ean;\n $even=true; $esum=0; $osum=0;\n for ($i=strlen($ean)-1;$i>=0;$i--){\n\tif ($even) $esum+=$ean[$i];\telse $osum+=$ean[$i];\n\t$even=!$even;\n }\n \n return (10-((3*$esum+$osum)%10))%10;\n}", "function checksum_code39($code) {\n\n $chars = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', \n 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', \n 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', \n 'W', 'X', 'Y', 'Z', '-', '.', ' ', '$', '/', '+', '%');\n $sum = 0;\n for ($i=0 ; $i<strlen($code); $i++) {\n $a = array_keys($chars, $code[$i]);\n $sum += $a[0];\n }\n $r = $sum % 43;\n return $chars[$r];\n}", "private function _get_data($command) {\n\t\t$this->warning = '';\n\t\t\n\t\t//The URL to get the data\n\t\tif ($command == 'handshake') {\n\t\t\t$url = 'http://'.$this->ip_address.'/'.$command.'/';\n\t\t} else {\n\t\t\t$url = 'http://'.$this->ip_address.'/'.$this->password.'/'.$command.'/';\n\t\t}\n\t\t\n\t\t//Only use for debugging since the password is in PLAIN TEXT!!\n\t\t//echo $url.'<br/>';\n\t\t\n\t\t//Load the data in json format\n\t\tunset ($this->json);\n\t\t$this->json = file_get_contents($url);\n\t\t$this->json = str_replace(\"hu-\", \"hu_min\", $this->json);\n\t\t$this->json = str_replace(\"te-\", \"te_min\", $this->json);\n\t\t$this->json = str_replace(\"hu+\", \"hu_plus\", $this->json);\n\t\t$this->json = str_replace(\"te+\", \"te_plus\", $this->json);\n\t\t\n\t\t//Reset the last data and fill it again\n\t\tunset ($this->raw);\n\t\t$this->raw = json_decode($this->json);\n\t\t\n\t\t//Did we get the data and is all ok?\n\t\tif (isset($this->raw->status) && $this->raw->status == 'ok') {\n\t\t\t//Version as this class was written on?\t\t\t\n\t\t\tif ($this->raw->version != $this->_version) {\t\t\t\t\n\t\t\t\t$this->warning = \"<b>This homewizard class was written for version \".$this->_version.\". Results can be in error!</b><br/>\\n\";\n\t\t\t}\n\t\t\n\t\t\t$this->status = true;\n\t\t\t$this->version = $this->raw->version;\n\t\t\t$this->last_update = date('d-m-Y H:i:s');\n\t\t\treturn true;\n\t\t} else {\n\t\t\t$this->status = false;\n\t\t\t$this->version = '';\n\t\t\treturn false;\n\t\t}\n\t}", "public function process($data)\n {\n // Delete previous set\n $this->deleteWhere('serial_number=?', $this->serial_number);\n\n // Parse log data\n $start = ''; // Start date\n $errors = array();\n $now = time();\n $four_weeks = $now + 3600 * 24 * 7 * 4;\n\n foreach (explode(\"\\n\", $data) as $line) {\n if ($line) {\n $parts = explode(\"\\t\", $line);\n\n if (count($parts) !== 3) {\n echo 'Invalid log entry: '.$line;\n } else {\n // Convert unix timestamp string to int\n $this->cert_exp_time = intval($parts[0]);\n // Trim path to 255 chars\n $this->cert_path = substr($parts[1], 0, 254);\n // Get common name out of subject\n if (preg_match('/subject= CN = ([^,]+)/', $parts[2], $matches)) {\n $this->cert_cn = $matches[1];\n } else {\n $this->cert_cn = 'Unknown';\n }\n\n $this->id = '';\n $this->timestamp = time();\n $this->create();\n \n // Check for errors\n if ($this->cert_exp_time < $now) {\n $errors[] = array(\n 'type' => 'danger',\n 'msg' => 'cert.expired',\n 'data' => json_encode(array(\n 'name' => $this->cert_cn,\n 'timestamp' => $this->cert_exp_time\n ))\n );\n } elseif ($this->cert_exp_time < $four_weeks) {\n $errors[] = array(\n 'type' => 'warning',\n 'msg' => 'cert.expire_warning',\n 'data' => json_encode(array(\n 'name' => $this->cert_cn,\n 'timestamp' => $this->cert_exp_time\n ))\n );\n }\n }\n }\n }// end foreach()\n \n if (! $errors) {\n $this->delete_event();\n } else {\n if (count($errors) == 1) {\n $error = array_pop($errors);\n $this->store_event($error['type'], $error['msg'], $error['data']);\n } else {\n // Loop through errors and submit stats\n $error_count = 0;\n $last_error = array();\n $warning_count = 0;\n // Search through errors and warnings\n foreach ($errors as $error) {\n if ($error['type'] == 'danger') {\n $last_error = $error;\n $error_count ++;\n }\n if ($error['type'] == 'warning') {\n $warning_count ++;\n }\n }\n // If errors, ignore warnings\n if ($error_count) {\n $type = 'error';\n if ($error_count == 1) {\n $msg = $last_error['msg'];\n $data = $last_error['data'];\n } else {\n $msg = 'cert.multiple_errors';\n $data = $error_count;\n }\n } else {\n $type = 'warning';\n $msg = 'cert.multiple_warnings';\n $data = $warning_count;\n }\n $this->store_event($type, $msg, $data);\n }\n }\n }", "public function getCheckSum($data): string {\n\t\t$privateKey = openssl_pkey_get_private($this->getPublicKeyCert());\n\t\topenssl_sign($data, $signature, $privateKey, OPENSSL_ALGO_SHA1);\n\n\t\treturn strtoupper(bin2hex($signature));\n\t}", "function crcl_file($out,$file) {\n if ( !$file ) return \"не задано имя файла\";\n if (!$fp = fopen($file, 'a')) return \"не могу открыть\"; \n if (flock($fp, LOCK_EX)) { // выполнить эксклюзивное запирание \n ftruncate ($fp,0); //УДАЛЯЕМ СОДЕРЖИМОЕ ФАЙЛА\n if (fputs($fp, $out) === false) return \"проблемы при записи\"; \n fflush ($fp); //очищение файлового буфера и запись в файл \n flock ($fp,LOCK_UN); //снятие блокировки\n }\n else return \"не могу запереть\"; \n\n if (fclose($fp)) return false; \n else return \"не могу закрыть\"; \n }", "protected function _computeHashR6($data, $inputPassword, $userKey = '') {}", "public static function VerificarVendas($data) {\n\n $read = new Read;\n //mes atual do sistema\n $datFN = explode(\"-\", $data);\n\n $read->ExeRead('relatorio');\n $contar = 0;\n foreach ($read->getResult() as $rd) {\n\n if ($read->getResult()) {\n\n //mes do banco\n $datBD = explode(\"-\", $rd['mes']);\n \n\n //Verifica se são do mesmo mesmo e ano\n if ($datBD[0] == $datFN[0] && $datBD[1] == $datFN[1]):\n\n $contar++;\n\n \n endif;\n }\n }\n \n if($contar == 0):\n echo $contar = 0;\n else:\n echo $contar ;\n endif;\n }", "function checkVatID_c($vat_id) {\n\t\tif (strlen($vat_id) != 10)\n\t\t\treturn 0;\n\n\t\t// LUHN-10 code http://www.ee.unb.ca/tervo/ee4253/luhn.html\n\n\t\t$id = substr($vat_id, 1);\n\t\t$checksum = 0;\n\t\tfor ($i = 9; $i > 0; $i --) {\n\t\t\t$digit = $vat_id {\n\t\t\t\t$i};\n\t\t\tif ($i % 2 == 1)\n\t\t\t\t$digit *= 2;\n\t\t\tif ($digit >= 10) {\n\t\t\t\t$checksum += $digit -10 + 1;\n\t\t\t} else {\n\t\t\t\t$checksum += $digit;\n\t\t\t}\n\t\t}\n\t\tif ($this->modulo($checksum, 10) == 0)\n\t\t\treturn 1;\n\n\t\treturn 0;\n\t} // Canada\n\n\t// belgien\n\tfunction checkVatID_be($vat_id) {\n\t\tif (strlen($vat_id) != 11)\n\t\t\treturn 0;\n\n\t\t$checkvals = (int) substr($vat_id, 2, -2);\n\t\t$checksum = (int) substr($vat_id, -2);\n\n\t\tif (97 - $this->modulo($checkvals, 97) != $checksum)\n\t\t\treturn 0;\n\n\t\treturn 1;\n\t} // end belgien\n\n\t// daenemark\n\tfunction checkVatID_dk($vat_id) {\n\t\tif (strlen($vat_id) != 10)\n\t\t\treturn 0;\n\n\t\t$weights = array (2, 7, 6, 5, 4, 3, 2, 1);\n\t\t$checksum = 0;\n\n\t\tfor ($i = 0; $i < 8; $i ++)\n\t\t\t$checksum += (int) $vat_id[$i +2] * $weights[$i];\n\t\tif ($this->modulo($checksum, 11) > 0)\n\t\t\treturn 0;\n\n\t\treturn 1;\n\t} // end daenemark\n\n\t// deutschland\n\tfunction checkVatID_de($vat_id) {\n\t\tif (strlen($vat_id) != 11)\n\t\t\treturn 0;\n\n\t\t$prod = 10;\n\t\t$checkval = 0;\n\t\t$checksum = (int) substr($vat_id, -1);\n\n\t\tfor ($i = 2; $i < 10; $i ++) {\n\t\t\t$checkval = $this->modulo((int) $vat_id[$i] + $prod, 10);\n\t\t\tif ($checkval == 0)\n\t\t\t\t$checkval = 10;\n\t\t\t$prod = $this->modulo($checkval * 2, 11);\n\t\t} // end for($i = 2; $i < 10; $i++)\n\t\t$prod = $prod == 1 ? 11 : $prod;\n\t\tif (11 - $prod != $checksum)\n\t\t\treturn 0;\n\n\t\treturn 1;\n\t} // end deutschland\n\n\t// estland\n\tfunction checkVatID_ee($vat_id) {\n\n\t\tif (strlen($vat_id) != 11)\n\t\t\treturn 0;\n\t\tif (!is_numeric(substr($vat_id, 2)))\n\t\t\treturn 0;\n\n\t\tif ($this->live_check = true) {\n\n\t\t\treturn $this->live($vat_id);\n\n\t\t} else {\n\t\t\treturn 9; // es gibt keinen algorithmus\n\t\t}\n\t} // end estland\n\n\t// finnland\n\tfunction checkVatID_fi($vat_id) {\n\t\tif (strlen($vat_id) != 10)\n\t\t\treturn 0;\n\n\t\t$weights = array (7, 9, 10, 5, 8, 4, 2);\n\t\t$checkval = 0;\n\t\t$checksum = (int) substr($vat_id, -1);\n\n\t\tfor ($i = 0; $i < 8; $i ++)\n\t\t\t$checkval += (int) $vat_id[$i +2] * $weights[$i];\n\n\t\tif (11 - $this->modulo($checkval, 11) != $checksum)\n\t\t\treturn 0;\n\n\t\treturn 1;\n\t} // end finnland\n\n\t// frankreich\n\tfunction checkVatID_fr($vat_id) {\n\t\tif (strlen($vat_id) != 13)\n\t\t\treturn 0;\n\t\tif (!is_numeric(substr($vat_id), 4))\n\t\t\treturn 0;\n\n\t\tif ($this->live_check = true) {\n\n\t\t\treturn $this->live($vat_id);\n\n\t\t} else {\n\t\t\treturn 9; // es gibt keinen algorithmus\n\t\t}\n\n\t} // end frankreich\n\n\t// griechenland\n\tfunction checkVatID_el($vat_id) {\n\t\tif (strlen($vat_id) != 11)\n\t\t\treturn 0;\n\n\t\t$checksum = substr($vat_id, -1);\n\t\t$checkval = 0;\n\n\t\tfor ($i = 1; $i <= 8; $i ++)\n\t\t\t$checkval += (int) $vat_id[10 - $i] * pow(2, $i);\n\t\t$checkval = $this->modulo($checkval, 11) > 9 ? 0 : $this->modulo($checkval, 11);\n\t\tif ($checkval != $checksum)\n\t\t\treturn 0;\n\n\t\treturn 1;\n\t} // end griechenland\n\n\t// grossbrittanien\n\tfunction checkVatID_gb($vat_id) {\n\t\tif (strlen($vat_id) != 11 && strlen($vat_id) != 14)\n\t\t\treturn 0;\n\t\tif (!is_numeric(substr($vat_id, 2)))\n\t\t\treturn 0;\n\n\t\tif ($this->live_check = true) {\n\n\t\t\treturn $this->live($vat_id);\n\n\t\t} else {\n\t\t\treturn 9; // es gibt keinen algorithmus\n\t\t}\n\n\t} // end grossbrittanien\n\n\t/********************************************\n\t* irland *\n\t********************************************/\n\t// irland switch\n\tfunction checkVatID_ie($vat_id) {\n\t\tif (strlen($vat_id) != 10)\n\t\t\treturn 0;\n\t\tif (!checkVatID_ie_new($vat_id) && !checkVatID_ie_old($vat_id))\n\t\t\treturn 0;\n\n\t\treturn 1;\n\t} // end irland switch\n\n\t// irland alte methode\n\tfunction checkVatID_ie_old($vat_id) {\n\t\t// in neue form umwandeln\n\t\t$transform = array (substr($vat_id, 0, 2), '0', substr($vat_id, 4, 5), $vat_id[2], $vat_id[9]);\n\t\t$vat_id = join('', $transform);\n\n\t\t// nach neuer form pruefen\n\t\treturn checkVatID_ie_new($vat_id);\n\t} // end irland alte methode\n\n\t// irland neue methode\n\tfunction checkVatID_ie_new($vat_id) {\n\t\t$checksum = strtoupper(substr($vat_id, -1));\n\t\t$checkval = 0;\n\t\t$checkchar = 'A';\n\t\tfor ($i = 2; $i <= 8; $i ++)\n\t\t\t$checkval += (int) $vat_id[10 - $i] * $i;\n\t\t$checkval = $this->modulo($checkval, 23);\n\t\tif ($checkval == 0) {\n\t\t\t$checkchar = 'W';\n\t\t} else {\n\t\t\tfor ($i = $checkval -1; $i > 0; $i --)\n\t\t\t\t$checkchar ++;\n\t\t}\n\t\tif ($checkchar != $checksum)\n\t\t\treturn false;\n\n\t\treturn true;\n\t} // end irland neue methode\n\t/* end irland\n\t********************************************/\n\n\t// italien\n\tfunction checkVatID_it($vat_id) {\n\t\tif (strlen($vat_id) != 13)\n\t\t\treturn 0;\n\n\t\tif ($this->live_check = true) {\n\n\t\t\treturn $this->live($vat_id);\n\n\t\t} else {\n\t\t\treturn 9; // es gibt keinen algorithmus\n\t\t}\n\t} // end italien\n\n\t// lettland\n\tfunction checkVatID_lv($vat_id) {\n\n\t\tif (strlen($vat_id) != 13)\n\t\t\treturn 0;\n\t\tif (!is_numeric(substr($vat_id, 2)))\n\t\t\treturn 0;\n\n\t\tif ($this->live_check = true) {\n\n\t\t\treturn $this->live($vat_id);\n\n\t\t} else {\n\t\t\treturn 9; // es gibt keinen algorithmus\n\t\t}\n\t} // end lettland\n\n\t// litauen\n\tfunction checkVatID_lt($vat_id) {\n\n\t\tif ((strlen($vat_id) != 13) || (strlen($vat_id) != 11))\n\t\t\treturn 0;\n\t\tif (!is_numeric(substr($vat_id, 2)))\n\t\t\treturn 0;\n\n\t\tif ($this->live_check = true) {\n\n\t\t\treturn $this->live($vat_id);\n\n\t\t} else {\n\t\t\treturn 9; // es gibt keinen algorithmus\n\t\t}\n\t} // end litauen\n\n\t// luxemburg\n\tfunction checkVatID_lu($vat_id) {\n\t\tif (strlen($vat_id) != 10)\n\t\t\treturn 0;\n\n\t\t$checksum = (int) substr($vat_id, -2);\n\t\t$checkval = (int) substr($vat_id, 2, 6);\n\t\tif ($this->modulo($checkval, 89) != $checksum)\n\t\t\treturn 0;\n\n\t\treturn 1;\n\t} // luxemburg\n\n\t// malta\n\tfunction checkVatID_mt($vat_id) {\n\n\t\tif (strlen($vat_id) != 10)\n\t\t\treturn 0;\n\t\tif (!is_numeric(substr($vat_id, 2)))\n\t\t\treturn 0;\n\n\t\tif ($this->live_check = true) {\n\n\t\t\treturn $this->live($vat_id);\n\n\t\t} else {\n\t\t\treturn 9; // es gibt keinen algorithmus\n\t\t}\n\t} // end malta\n\n\t// niederlande\n\tfunction checkVatID_nl($vat_id) {\n\t\tif (strlen($vat_id) != 14)\n\t\t\treturn 0;\n\t\tif (strtoupper($vat_id[11]) != 'B')\n\t\t\treturn 0;\n\t\tif ((int) $vat_id[12] == 0 || (int) $vat_id[13] == 0)\n\t\t\treturn 0;\n\n\t\t$checksum = (int) $vat_id[10];\n\t\t$checkval = 0;\n\n\t\tfor ($i = 2; $i <= 9; $i ++)\n\t\t\t$checkval += (int) $vat_id[11 - $i] * $i;\n\t\t$checkval = $this->modulo($checkval, 11) > 9 ? 0 : $this->modulo($checkval, 11);\n\n\t\tif ($checkval != $checksum)\n\t\t\treturn 0;\n\n\t\treturn 1;\n\t} // end niederlande\n\n\t// oesterreich\n\tfunction checkVatID_at($vat_id) {\n\t\tif (strlen($vat_id) != 11)\n\t\t\treturn 0;\n\t\tif (strtoupper($vat_id[2]) != 'U')\n\t\t\treturn 0;\n\n\t\t$checksum = (int) $vat_id[10];\n\t\t$checkval = 0;\n\n\t\tfor ($i = 3; $i < 10; $i ++)\n\t\t\t$checkval += $this->cross_summa((int) $vat_id[$i] * ($this->is_even($i) ? 2 : 1));\n\t\t$checkval = substr((string) (96 - $checkval), -1);\n\n\t\tif ($checksum != $checkval)\n\t\t\treturn 0;\n\n\t\treturn 1;\n\t} // end oesterreich\n\n\t// polen\n\tfunction checkVatID_pl($vat_id) {\n\t\tif (strlen($vat_id) != 12)\n\t\t\treturn 0;\n\n\t\t$weights = array (6, 5, 7, 2, 3, 4, 5, 6, 7);\n\t\t$checksum = (int) $vat_id[11];\n\t\t$checkval = 0;\n\t\tfor ($i = 0; $i < count($weights); $i ++)\n\t\t\t$checkval += (int) $vat_id[$i +2] * $weights[$i];\n\t\t$checkval = $this->modulo($checkval, 11);\n\n\t\tif ($checkval != $checksum)\n\t\t\treturn 0;\n\n\t\treturn 1;\n\t} // end polen\n\n\t// portugal\n\tfunction checkVatID_pt($vat_id) {\n\t\tif (strlen($vat_id) != 11)\n\t\t\treturn 0;\n\n\t\t$checksum = (int) $vat_id[10];\n\t\t$checkval = 0;\n\n\t\tfor ($i = 2; $i < 10; $i ++) {\n\t\t\t$checkval += (int) $vat_id[11 - $i] * $i;\n\t\t}\n\t\t$checkval = (11 - $this->modulo($checkval, 11)) > 9 ? 0 : (11 - $this->modulo($checkval, 11));\n\t\tif ($checksum != $checkval)\n\t\t\treturn 0;\n\n\t\treturn 1;\n\t} // end portugal\n\n\t// schweden\n\tfunction checkVatID_se($vat_id) {\n\t\tif (strlen($vat_id) != 14)\n\t\t\treturn 0;\n\t\tif ((int) substr($vat_id, -2) < 1 || (int) substr($vat_id, -2) > 94)\n\t\t\treturn 0;\n\t\t$checksum = (int) $vat_id[11];\n\t\t$checkval = 0;\n\n\t\tfor ($i = 0; $i < 10; $i ++)\n\t\t\t$checkval += $this->cross_summa((int) $vat_id[10 - $i] * ($this->is_even($i) ? 2 : 1));\n\t\tif ($checksum != ($this->modulo($checkval, 10) == 0 ? 0 : 10 - $this->modulo($checkval, 10)))\n\t\t\treturn 0;\n\n\t\t$checkval = 0;\n\t\tfor ($i = 0; $i < 13; $i ++)\n\t\t\t$checkval += (int) $vat_id[13 - $i] * ($this->is_even($i) ? 2 : 1);\n\t\tif ($this->modulo($checkval, 10) > 0)\n\t\t\treturn 0;\n\n\t\treturn 1;\n\t} // end schweden\n\n\t// slowakische republik\n\tfunction checkVatID_sk($vat_id) {\n\t\tif (strlen($vat_id) != 12)\n\t\t\treturn 0;\n\t\tif (!is_numeric(substr($vat_id, 2)))\n\t\t\treturn 0;\n\n\t\tif ($this->live_check = true) {\n\n\t\t\treturn $this->live($vat_id);\n\n\t\t} else {\n\t\t\treturn 9; // es gibt keinen algorithmus\n\t\t}\n\n\t} // end slowakische republik\n\n\t// slowenien\n\tfunction checkVatID_si($vat_id) {\n\t\tif (strlen($vat_id) != 10)\n\t\t\treturn 0;\n\t\tif ((int) $vat_id[2] == 0)\n\t\t\treturn 0;\n\n\t\t$checksum = (int) $vat_id[9];\n\t\t$checkval = 0;\n\n\t\tfor ($i = 2; $i <= 8; $i ++)\n\t\t\t$checkval += (int) $vat_id[10 - $i] * $i;\n\t\t$checkval = $this->modulo($checkval, 11) == 10 ? 0 : 11 - $this->modulo($checkval, 11);\n\t\tif ($checksum != $checkval)\n\t\t\treturn 0;\n\n\t\treturn 1;\n\t} // end slowenien\n\n\t// spanien\n\tfunction checkVatID_es($vat_id) {\n\t\t// Trim country info\n\t\t$vat_id = substr($vat_id, 2);\n\n\t\t// Is it a naturalized foreigner?\n\t\tif (strtoupper($vat_id[0]) == 'X')\n\t\t\t$vat_id = substr($vat_id, 1); // Truncated $vat_id is validated as a regular one\n\n\t\t// Length check \n\t\tif (strlen($vat_id) > 9) // $vat_id at this point should be 9 chars at most\n\n\n\n\t\t\treturn 0;\n\n\t\t// Is it a company?\n\t\tif (!is_numeric($vat_id[0])) {\n\t\t\t$allowed = array ('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H');\n\t\t\t$checkval = false;\n\n\t\t\tfor ($i = 0; $i < count($allowed); $i ++) {\n\t\t\t\tif (strtoupper($vat_id[0]) == $allowed[$i])\n\t\t\t\t\t$checkval = true;\n\t\t\t} // end for($i=0; $i<count($allowed); $i++)\n\t\t\tif (!$checkval)\n\t\t\t\treturn 9; // Few more letters are allowed, but not likely to happen\n\n\t\t\t$vat_len1 = strlen($vat_id) - 1;\n\n\t\t\t$checksum = (int) $vat_id[$vat_len1];\n\t\t\t$checkval = 0;\n\n\t\t\tfor ($i = 1; $i < $vat_len1; $i ++)\n\t\t\t\t$checkval += $this->cross_summa((int) $vat_id[$i] * ($this->is_even($i) ? 1 : 2));\n\n\t\t\tif ($checksum != 10 - $this->modulo($checkval, 10))\n\t\t\t\treturn 0;\n\n\t\t\treturn 1;\n\t\t} // end Is it a company?\n\n\t\t// Is it an Individual? (or naturalized foreigner)\n\t\tif (!is_numeric($vat_id[strlen($vat_id) - 1])) {\n\t\t\t$allowed1 = \"TRWAGMYFPDXBNJZSQVHLCKE\";\n\n\t\t\t$vat_len1 = strlen($vat_id) - 1;\n\n\t\t\t$checksum = strtoupper($vat_id[$vat_len1]);\n\t\t\t$checkval = $this->modulo((int) substr($vat_id, 0, $vat_len1), 23);\n\n\t\t\tif ($checksum != $allowed1[$checkval])\n\t\t\t\treturn 0;\n\n\t\t\t$this->vat_mod = array ('status' => $allowed1[$checkval]);\n\n\t\t\treturn 1;\n\t\t} // end Is it an Individual?\n\n\t\treturn 0; // No match found\n\t} // end spanien\n\n\t// tschechien\n\tfunction checkVatID_cz($vat_id) {\n\n\t\tif ((strlen($vat_id) != 10) || (strlen($vat_id) != 11) || (strlen($vat_id) != 12))\n\t\t\treturn 0;\n\t\tif (!is_numeric(substr($vat_id, 2)))\n\t\t\treturn 0;\n\n\t\tif ($this->live_check = true) {\n\n\t\t\treturn $this->live($vat_id);\n\n\t\t} else {\n\t\t\treturn 9; // es gibt keinen algorithmus\n\t\t}\n\t} // end tschechien\n\n\t// ungarn\n\tfunction checkVatID_hu($vat_id) {\n\n\t\tif (strlen($vat_id) != 10)\n\t\t\treturn 0;\n\t\tif (!is_numeric(substr($vat_id, 2)))\n\t\t\treturn 0;\n\n\t\tif ($this->live_check = true) {\n\n\t\t\treturn $this->live($vat_id);\n\n\t\t} else {\n\t\t\treturn 9; // es gibt keinen algorithmus\n\t\t}\n\t} // end ungarn\n\n\t// zypern\n\tfunction checkVatID_cy($vat_id) {\n\n\t\tif (strlen($vat_id) != 11)\n\t\t\treturn 0;\n\n\t\tif ($this->live_check = true) {\n\n\t\t\treturn $this->live($vat_id);\n\n\t\t} else {\n\t\t\treturn 9; // es gibt keinen algorithmus\n\t\t}\n\t} // end zypern\n\n\t/*******************************************************************/\n\n\t/********************************************************************\n\t* mathematische Hilfsfunktionen *\n\t********************************************************************/\n\t// modulo berechnet den rest einer division von $val durch $param\n\tfunction modulo($val, $param) {\n\t\treturn $val - (floor($val / $param) * $param);\n\t} // end function modulo($val, $param)\n\n\t// stellt fest, ob eine zahl gerade ist\n\tfunction is_even($val) {\n\t\treturn ($val / 2 == floor($val / 2)) ? true : false;\n\t} // end function is_even($val)\n\n\t// errechnet die quersumme von $val\n\tfunction cross_summa($val) {\n\t\t$val = (string) $val;\n\t\t$sum = 0;\n\t\tfor ($i = 0; $i < strlen($val); $i ++)\n\t\t\t$sum += (int) $val[$i];\n\t\treturn $sum;\n\t} // end function cross_summa((string) $val)\n\t/*******************************************************************/\n\n\t/********************************************************************\n\t* Live Check *\n\t********************************************************************/\n\t// Live Check überprüft die USTid beim Bundesamt für Finanzen\n\tfunction live($abfrage_nummer) {\n\n\t\t$eigene_nummer = STORE_OWNER_VAT_ID;\n\n\t\t/* Hier wird der String für den POST per URL aufgebaut */\n\t\t$ustid_post = \"eigene_id=\".$eigene_nummer.\"&abfrage_id=\".$abfrage_nummer.\"\";\n\n\t\t/* Zur Verbindung mit dem Server wird CURL verwendet */\n\t\t/* mit curl_init wird zunächst die URL festgelegt */\n\n\t\t$ch = curl_init(\"http://wddx.bff-online.de//ustid.php?\".$ustid_post.\"\");\n\n\t\t/* Hier werden noch einige Parameter für CURL gesetzt */\n\t\tcurl_setopt($ch, CURLOPT_HEADER, 0); /* Header nicht in die Ausgabe */\n\t\tcurl_setopt($ch, CURLOPT_NOBODY, 0); /* Ausgabe nicht in die HTML-Seite */\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); /* Umleitung der Ausgabe in eine Variable ermöglichen */\n\n\t\t/* Aufruf von CURL und Ausgabe mit WDDX deserialisieren */\n\n\t\t$des_out = wddx_deserialize(curl_exec($ch));\n\t\tcurl_close($ch);\n\n\t\t/* Die deserialisierte Ausgabe in ein Array schreiben */\n\n\t\twhile (list ($key, $val) = each($des_out)) {\n\t\t\t$ergebnis[$key] = $val;\n\t\t}\n\n\t\tif ($ergebnis[fehler_code] == '200') {\n\t\t\treturn 1;\n\t\t}\n\t\telseif ($ergebnis[fehler_code] == '201') {\n\t\t\treturn 0;\n\t\t}\n\t\telseif ($ergebnis[fehler_code] == '202') {\n\t\t\treturn 0;\n\t\t}\n\t\telseif ($ergebnis[fehler_code] == '203') {\n\t\t\treturn 0;\n\t\t}\n\t\telseif ($ergebnis[fehler_code] == '204') {\n\t\t\treturn 0;\n\t\t}\n\t\telseif ($ergebnis[fehler_code] == '205') {\n\t\t\treturn 9;\n\t\t}\n\t\telseif ($ergebnis[fehler_code] == '206') {\n\t\t\treturn 9;\n\t\t}\n\t\telseif ($ergebnis[fehler_code] == '207') {\n\t\t\treturn 9;\n\t\t}\n\t\telseif ($ergebnis[fehler_code] == '208') {\n\t\t\treturn 9;\n\t\t}\n\t\telseif ($ergebnis[fehler_code] == '209') {\n\t\t\treturn 0;\n\t\t}\n\t\telseif ($ergebnis[fehler_code] == '210') {\n\t\t\treturn 0;\n\t\t}\n\t\telseif ($ergebnis[fehler_code] == '666') {\n\t\t\treturn 9;\n\t\t}\n\t\telseif ($ergebnis[fehler_code] == '777') {\n\t\t\treturn 9;\n\t\t}\n\t\telseif ($ergebnis[fehler_code] == '888') {\n\t\t\treturn 9;\n\t\t}\n\t\telseif ($ergebnis[fehler_code] == '999') {\n\t\t\treturn 9;\n\t\t} else {\n\t\t\treturn 9;\n\t\t}\n\n\t} // end function Live\n\t/*******************************************************************/\n}", "private function memScramble(array &$data)\r\n {\r\n for ($i = 0; $i < count($data); $i++) {\r\n $data[$i] ^= 237;\r\n }\r\n for ($i = 0; ($i + 2) < count($data); $i += 3) {\r\n $tmp = $data[$i];\r\n $data[$i] = $data[$i + 2];\r\n $data[$i + 2] = $tmp;\r\n }\r\n }", "protected function checksumMatches($value): bool\n {\n return $this->calculateChecksum($value) === $this->cutChecksum($value);\n }", "public static function IPv6Bin2HexDataProviderCorrect() {}", "public function checksum() { return $this->_m_checksum; }", "public function bitAllx() {\n\t\t\t$db = new database();\n\t\t\t$results = $db->getAll(\"SELECT id, clientid, timestamp FROM claimants_data ORDER BY id DESC ;\");\n\t\t\t\n\t\t\tforeach ($results AS $result) {\n\t\t\t\n\t\t\t\t$check = claimants::checkCallTimes($result['id']);\n\t\t\t\t$thisBit = 0;\n\t\t\t\t\n\t\t\t\tif ($check['morning1']) $thisBit = $thisBit + self::morning1;\n\t\t\t\tif ($check['morning2']) $thisBit = $thisBit + self::morning2;\n\t\t\t\tif ($check['afternoon1']) $thisBit = $thisBit + self::afternoon1;\n\t\t\t\tif ($check['afternoon2']) $thisBit = $thisBit + self::afternoon2;\n\t\t\t\tif ($check['evening1']) $thisBit = $thisBit + self::evening1;\n\t\t\t\tif ($check['evening2']) $thisBit = $thisBit + self::evening2;\n\t\t\t\t\n\t\t\t\tprint $result['id'] . \" - \" . $thisBit . \"<br />\";\n\t\t\t\t\n\t\t\t\t$db->query(\"UPDATE claimants_data SET `bit` = '\".$thisBit.\"' WHERE `claimants_data`.`id` ='\".$result['id'].\"';\");\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}", "public function base58EncodeChecksum($payload);", "public static function verifyChecksum(): bool\n {\n $checksumFile = static::getChecksumFileName();\n\n if (!file_exists($checksumFile)) {\n return false;\n }\n\n $oldHashes = static::getStoredChecksums();\n $newHashes = static::generateChecksums();\n\n foreach ($newHashes as $fileName => $hash) {\n if (!array_key_exists($fileName, $oldHashes)) {\n return false;\n }\n\n if ($hash !== $oldHashes[$fileName]) {\n return false;\n }\n }\n\n return true;\n }", "protected function _dataDecode($encodedData)\n {\n $isMasked = (bool) (ord($encodedData[1]) >> 7) ;\n $dataLength = ord($encodedData[1]) & 127 ;\n \n if ($isMasked)\n {\n $unmaskingFunc = function($data, $mask)\n {\n for ($i = 0, $l = strlen($data); $i < $l; $i++)\n {\n // Avoid storing a new copy of $data...\n $data[$i] = $data[$i] ^ $mask[$i % 4] ;\n }\n \n return $data ;\n } ;\n \n if ($dataLength === 126)\n {\n $maskingKey = binarySubstr($encodedData, 4, 4) ;\n $extDataLength = hexdec(sprintf('%02x%02x', ord($encodedData[2]), ord($encodedData[3]))) ;\n $offsetStart = 8 ;\n }\n elseif ($dataLength === 127)\n {\n $maskingKey = binarySubstr($encodedData, 10, 4) ;\n $extDataLength = hexdec(sprintf('%02x%02x%02x%02x%02x%02x%02x%02x', ord($encodedData[2]), ord($encodedData[3]), ord($encodedData[4]), ord($encodedData[5]), ord($encodedData[6]), ord($encodedData[7]), ord($encodedData[8]), ord($encodedData[9]))) ;\n $offsetStart = 14 ;\n }\n else\n {\n $maskingKey = binarySubstr($encodedData, 2, 4) ;\n $extDataLength = $dataLength ;\n $offsetStart = 6 ;\n }\n\n if (strlen($encodedData) < $offsetStart + $extDataLength)\n {\n Daemon::$process->log(get_class($this) . '::' . __METHOD__ . ' : Incorrect data size in frame decoding for client \"' . $this->session->clientAddr . '\"') ; \n }\n \n return $unmaskingFunc(binarySubstr($encodedData, $offsetStart, $extDataLength), $maskingKey) ;\n }\n else\n {\n if ($dataLength === 126)\n {\n return binarySubstr($encodedData, 4) ;\n }\n elseif ($dataLength === 127)\n {\n return binarySubstr($encodedData, 10) ;\n }\n else\n {\n return binarySubstr($encodedData, 2) ;\n }\n }\n\n return NULL ;\n }", "public function hasMd5checksum(){\n return $this->_has(3);\n }", "public function hasMd5checksum(){\n return $this->_has(3);\n }", "public function uCard(array $data)\n {\n // 下单总金额? 7? 大? 小? 单? 双? 黑? 红? 红桃 黑桃 方片 梅花\n// $ans = [\n// 'BR' => null, //红黑\n// 'SD' => null, //单双\n// 'BS' => null, //大小\n// 'NUM' => null, //数字\n// 'FC' => null //花色\n// ];\n $ans = [];\n\n if ($data[1] != 0) {\n $ans['NUM'] = 7;\n }\n\n if ($data[2] > $data[3]) {\n $ans['BS'] = 'big';\n } elseif ($data[2] < $data[3]) {\n $ans['BS'] = 'small';\n }\n\n if ($data[4] > $data[5]) {\n $ans['SD'] = 'single';\n } elseif ($data[4] < $data[5]) {\n $ans['SD'] = 'double';\n }\n\n if ($data[6] > $data[7]) {\n $ans['BR'] = 'black';\n } elseif ($data[6] < $data[7]) {\n $ans['BR'] = 'red';\n }\n\n if ($data[8] > 0) {\n $ans['FC'] = 'Hearts';\n }\n\n if ($data[9] > 0) {\n $ans['FC'] = 'Spades';\n }\n\n if ($data[10] > 0) {\n $ans['FC'] = 'Diamonds';\n }\n\n if ($data[11] > 0) {\n $ans['FC'] = 'Clubs';\n }\n\n return $ans;\n }", "public function validation($data)\n {\n \t$this->load->library('encrypt');\n\t\t$user = $this->db->select('email, password, status_register')->where('email', $data['email'])->get('ec_client')->result_array();\n if (count($user) > 0) {\n\t\t\t\t$password_decode = $this->encrypt->decode($user[0]['password']);\n\t\t\t\t\tif ($password_decode == $data['password']) {\n\t\t\t\t\t\tif ($user[0]['status_register'] == 0) {\n return 2;\n }\n return 1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn 0; # Usuario o clave de acceso incorrectos\n\t\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn 0; # Usuario o clave de acceso incorrectos\n\t\t\t}\n }", "public function addFile($data, $directoryName) {\r\n\r\n $directoryName = str_replace(\"\\\\\", \"/\", $directoryName); \r\n \r\n $feedArrayRow = \"\\x50\\x4b\\x03\\x04\";\r\n $feedArrayRow .= \"\\x14\\x00\"; \r\n $feedArrayRow .= \"\\x00\\x00\"; \r\n $feedArrayRow .= \"\\x08\\x00\"; \r\n $feedArrayRow .= \"\\x00\\x00\\x00\\x00\";\r\n\r\n $uncompressedLength = strlen($data); \r\n $compression = crc32($data); \r\n $gzCompressedData = gzcompress($data); \r\n $gzCompressedData = substr( substr($gzCompressedData, 0, strlen($gzCompressedData) - 4), 2);\r\n $compressedLength = strlen($gzCompressedData); \r\n $feedArrayRow .= pack(\"V\",$compression);\r\n $feedArrayRow .= pack(\"V\",$compressedLength);\r\n $feedArrayRow .= pack(\"V\",$uncompressedLength);\r\n $feedArrayRow .= pack(\"v\", strlen($directoryName) );\r\n $feedArrayRow .= pack(\"v\", 0 );\r\n $feedArrayRow .= $directoryName; \r\n\r\n $feedArrayRow .= $gzCompressedData; \r\n\r\n $feedArrayRow .= pack(\"V\",$compression);\r\n $feedArrayRow .= pack(\"V\",$compressedLength);\r\n $feedArrayRow .= pack(\"V\",$uncompressedLength);\r\n\r\n $this -> compressedData[] = $feedArrayRow;\r\n\r\n $newOffset = strlen(implode(\"\", $this->compressedData));\r\n\r\n $addCentralRecord = \"\\x50\\x4b\\x01\\x02\";\r\n $addCentralRecord .=\"\\x00\\x00\"; \r\n $addCentralRecord .=\"\\x14\\x00\"; \r\n $addCentralRecord .=\"\\x00\\x00\"; \r\n $addCentralRecord .=\"\\x08\\x00\"; \r\n $addCentralRecord .=\"\\x00\\x00\\x00\\x00\";\r\n $addCentralRecord .= pack(\"V\",$compression);\r\n $addCentralRecord .= pack(\"V\",$compressedLength);\r\n $addCentralRecord .= pack(\"V\",$uncompressedLength);\r\n $addCentralRecord .= pack(\"v\", strlen($directoryName) );\r\n $addCentralRecord .= pack(\"v\", 0 );\r\n $addCentralRecord .= pack(\"v\", 0 );\r\n $addCentralRecord .= pack(\"v\", 0 );\r\n $addCentralRecord .= pack(\"v\", 0 );\r\n $addCentralRecord .= pack(\"V\", 32 );\r\n\r\n $addCentralRecord .= pack(\"V\", $this -> oldOffset );\r\n $this -> oldOffset = $newOffset;\r\n\r\n $addCentralRecord .= $directoryName; \r\n\r\n $this -> centralDirectory[] = $addCentralRecord; \r\n }", "function dvr_ans( $stream, &$data, &$databuf )\n{\n\t$ans = dvr_read( $stream, 12 );\n\tif( strlen($ans) != 12 ) return -1 ;\n\t$ans = unpack(\"Vcode/Vdata/Vsize\", $ans ) ;\n\t\n\t$data = $ans['data'] ;\n\t$databuf = dvr_read( $stream, $ans['size'] ) ;\n\treturn $ans['code'] ;\n}", "protected static function calcDigitC($data)\r\n {\r\n return self::calcCheckDigit($data, 6, 11);\r\n }", "function checkVatID_ie_new($vat_id) {\n\t\t$checksum = strtoupper(substr($vat_id, -1));\n\t\t$checkval = 0;\n\t\t$checkchar = 'A';\n\t\tfor ($i = 2; $i <= 8; $i ++)\n\t\t\t$checkval += (int) $vat_id[10 - $i] * $i;\n\t\t$checkval = $this->modulo($checkval, 23);\n\t\tif ($checkval == 0) {\n\t\t\t$checkchar = 'W';\n\t\t} else {\n\t\t\tfor ($i = $checkval -1; $i > 0; $i --)\n\t\t\t\t$checkchar ++;\n\t\t}\n\t\tif ($checkchar != $checksum)\n\t\t\treturn false;\n\n\t\treturn true;\n\t}", "abstract public function nonce_check();", "public function chk_dat()\n {\n echo \"title = \" . $this->dat[\"title\"] . \"\\n\\n\";\n echo \"name = \" . $this->dat[\"name\"] . \"\\n\\n\";\n echo \"era = \" . $this->dat[\"era\"] . \"\\n\\n\";\n echo \"rows = \" . $this->dat[\"rows\"] . \"\\n\\n\";\n\n echo $this->dat[\"field\"][\"n\"] . \", \".\n $this->dat[\"field\"][\"id\"] . \", \".\n $this->dat[\"field\"][\"scd\"] . \", \".\n $this->dat[\"field\"][\"name\"] . \", \".\n $this->dat[\"field\"][\"ymd\"] . \", \".\n $this->dat[\"field\"][\"line\"] . \", \".\n $this->dat[\"field\"][\"debit\"] . \", \".\n $this->dat[\"field\"][\"credit\"] . \", \".\n $this->dat[\"field\"][\"debit_name\"] . \", \".\n $this->dat[\"field\"][\"credit_name\"] . \", \".\n $this->dat[\"field\"][\"debit_account\"] . \", \".\n $this->dat[\"field\"][\"credit_account\"] . \", \".\n $this->dat[\"field\"][\"debit_amount\"] . \", \".\n $this->dat[\"field\"][\"credit_amount\"] . \", \".\n $this->dat[\"field\"][\"amount\"] . \", \".\n $this->dat[\"field\"][\"remark\"] . \", \".\n $this->dat[\"field\"][\"settled_flg\"] . \"\\n\\n\";\n\n $cnt = $this->dat[\"rows\"];\n for ($i = 0; $i < $cnt; $i++) {\n echo $this->dat[\"data\"][$i][\"n\"] . \", \".\n $this->dat[\"data\"][$i][\"id\"] . \", \".\n $this->dat[\"data\"][$i][\"scd\"] . \", \".\n $this->dat[\"data\"][$i][\"name\"] . \", \".\n $this->dat[\"data\"][$i][\"ymd\"] . \", \".\n $this->dat[\"data\"][$i][\"line\"] . \", \".\n $this->dat[\"data\"][$i][\"debit\"] . \", \".\n $this->dat[\"data\"][$i][\"credit\"] . \", \".\n $this->dat[\"data\"][$i][\"debit_name\"] . \", \".\n $this->dat[\"data\"][$i][\"credit_name\"] . \", \".\n $this->dat[\"data\"][$i][\"debit_account\"] . \", \".\n $this->dat[\"data\"][$i][\"credit_account\"] . \", \".\n $this->dat[\"data\"][$i][\"debit_amount\"] . \", \".\n $this->dat[\"data\"][$i][\"credit_amount\"] . \", \".\n $this->dat[\"data\"][$i][\"amount\"] . \", \".\n $this->dat[\"data\"][$i][\"remark\"] . \", \".\n $this->dat[\"data\"][$i][\"settled_flg\"] . \"\\n\\n\";\n }\n }", "function checkEntropy($data)\r\n {\r\n $score = 0;\r\n\r\n $len = strlen($data);\r\n\r\n if ($len > 0) {\r\n\r\n // remove spaces\r\n $data = str_replace(\" \", \"\", $data);\r\n\r\n\r\n // Compression test\r\n $compression = ((double)strlen(gzcompress($data)) - 9) / $len;\r\n if ($compression >= .80) {\r\n $score += .25;\r\n }\r\n if ($compression >= .85) {\r\n $score += .75;\r\n }\r\n if ($compression >= .90) {\r\n $score += .5;\r\n }\r\n if ($compression >= .95) {\r\n $score += .5;\r\n }\r\n if ($compression <= .50) {\r\n $score -= 1;\r\n }\r\n\r\n\r\n // Number of character sets\r\n $lower = preg_match_all('/[a-z]/', $data, $matches);\r\n $upper = preg_match_all('/[A-Z]/', $data, $matches);\r\n $num = preg_match_all('/[0-9]/', $data, $matches);\r\n $special = preg_match_all('/[^a-zA-Z0-9]/', $data, $matches);\r\n $charsets = ($lower >= 1) + ($upper >= 1) + ($num >= 1) + ($special >= 1);\r\n $score += ($charsets / 6);\r\n\r\n\r\n // Sequences from same charset\r\n $lower_seq = preg_match_all('/[a-z]{3}/', $data, $matches);\r\n $upper_seq = preg_match_all('/[A-Z]{3}/', $data, $matches);\r\n $num_seq = preg_match_all('/[0-9]{3}/', $data, $matches);\r\n $special_seq = preg_match_all('/[^a-zA-Z0-9]{3}/', $data, $matches);\r\n $total_seq = $lower_seq + $upper_seq + $num_seq + $special_seq;\r\n $score -= .25 * (int)$total_seq;\r\n if ($total_seq == 0) {\r\n $score += .25;\r\n }\r\n\r\n\r\n // Small bonus for uppercase in the middle of word\r\n $middleupper = preg_match_all('/[a-z0-9A-Z]{1,}[A-Z]/', $data, $matches);\r\n if ($middleupper) {\r\n $score .= .25;\r\n }\r\n\r\n\r\n // Four or more lowercase\r\n $lower_seq = preg_match_all('/[a-z]{4}/', $data, $matches);\r\n $score -= .25 * (int)$lower_seq;\r\n\r\n\r\n // But all numeric and hex and all uppercase sequences can still be random\r\n if (is_numeric($data)) {\r\n $score += .25 + (strlen($data) / 10);\r\n }\r\n if (preg_match('/^[abcdef01234567890]+$/i', $data, $matches)) {\r\n $score += 1;\r\n }\r\n if (preg_match('/^[A-Z]+$/i', $data, $matches)) {\r\n $score += .25;\r\n }\r\n\r\n\r\n // Single repeated characters\r\n $repeated = preg_match_all('/(.)\\1/', $data, $matches);\r\n $score -= .5 * (int)$repeated;\r\n\r\n\r\n // Single character repeated 3 times penalty\r\n $repeated = preg_match_all('/(.)\\1\\1/', $data, $matches);\r\n if ($total_seq <> 0) {\r\n $score -= 1.5 * $repeated;\r\n }\r\n\r\n\r\n // Trigraphs and common digraphs in the English language\r\n $trigraphs = preg_match_all(\r\n '/the|and|tha|ent|ion|tio|for|nde|has|nce|tis|oft|men|wor|row|qwe|123|234|345|456|567|678|789|890|abc|def|rty|asd|zxc|jkl|uio|321/',\r\n $data,\r\n $matches\r\n );\r\n $score -= ($trigraphs * 1.25);\r\n\r\n $digraphs = preg_match_all(\r\n '/th|he|an|in|er|on|re|ed|nd|ha|at|en|es|of|nt|ea|ti|to|io|le|is|ou|ar|as|ss|ee|tt|ff|ll|mm|oo|ng|99|00/',\r\n $data,\r\n $matches\r\n );\r\n $score -= ($digraphs * .25);\r\n\r\n\r\n if ($trigraphs + $digraphs + $repeated == 0) {\r\n $score += .5;\r\n }\r\n\r\n // Consonant, vowel, consonant\r\n $cvc = preg_match_all('/[bcdfghjklmnpqrstvwxy][aeiouy][bcdfghjklmnpqrstvwxy]/', $data, $matches);\r\n $score -= .25 * (int)$cvc;\r\n\r\n // consecutive character sets\r\n //preg_match_all('/(?:[a-z]){4,}(?:[0-9]){4,}|((?:[0-9]){4,}(?:[a-z]){4,})/', $data, $matches);\r\n //$score -= 1.5;\r\n\r\n\r\n // Vowels vs consonants\r\n $v = preg_match_all('/[aeiouy]/i', $data, $matches);\r\n $c = preg_match_all('/[bcdfghjklmnpqrstvwxy]/i', $data, $matches);\r\n if ($c == 0) {\r\n $vc_ratio = 1;\r\n } else {\r\n $vc_ratio = $v / $c;\r\n }\r\n if ((double)$vc_ratio < .5) {\r\n $score += .75;\r\n }\r\n\r\n\r\n if ($score >= 1.9) {\r\n $score = 1.9;\r\n }\r\n if ($score < 0) {\r\n $score = 0;\r\n }\r\n\r\n $score = round($score / 1.9, 2);\r\n\r\n return $score;\r\n }\r\n\r\n return true;\r\n }", "public static function getRepairBits($cid){\n //repair state from mySql for a specific vehicle\n $r = getRepairs($cid);\n $ret = ($r & 0xF000) >> 12;\n //echo $ret;\n return 0; //$ret;\n }", "public static function validate_001($data)\n {\n $data = json_decode($data);\n if($data->status)\n {\n if(!preg_match('/[0-9]{9,18}$/', $data->account_no))\n {\n return array('status' => -1, 'msg' => \"Invalid Account Number !! \");\n }\n\n if($data->account_no != $data->re_account_no)\n {\n return array('status' => -1, 'msg' => \"Account Numbers Do Not Match !! \");\n }\n\n if(!preg_match('/[A-Z|a-z]{4}[0][a-zA-Z0-9]{6}$/', $data->ifsc))\n {\n return array('status' => -1, 'msg' => \"Invalid IFSC Code !! \");\n }\n\n if(!preg_match('/[0-9]{3,5}$/', $data->cc_to_withdraw))\n {\n return array('status' => -1, 'msg' => \"Invalid CodeCoins Selected !! \");\n }\n\n if(!preg_match('/[0-9]{10}$/', $data->contact))\n {\n return array('status' => -1, 'msg' => \"Invalid Phone Number !! \");\n }\n return array('status' => 1);\n }\n\n return array('status' => -1, 'msg' => \"An Error Occurred !! \");\n }", "public function validate($data)\n {\n $newChecksum = $this->_generateChecksum(\n $data->getPaymentMethodCode(),\n $data->getCardType(),\n $data->getCardNumber(),\n $data->getCardExpMonth(),\n $data->getCardExpYear(),\n $data->getAmount(),\n $data->getCurrencyCode()\n );\n\n // $validationState = $this->_getValidationState($data->getCardType());\n $validationState = $this->_getValidationState('datacash');\n if (!$validationState) {\n $this->_resetValidationState();\n return;\n }\n\n // check whether is authenticated before placing order\n if ($this->getIsPlaceOrder()) {\n if ($validationState->getChecksum() != $newChecksum) {\n Mage::throwException(Mage::helper('centinel')->__('Payment information error. Please start over.'));\n }\n if ($validationState->isAuthenticateSuccessful()|| $validationState->getLookupBypass3dsecure()) {\n return;\n }\n Mage::throwException(Mage::helper('centinel')->__('Please verify the card with the issuer bank before placing the order.'));\n } else {\n if ($validationState->getChecksum() != $newChecksum || !$validationState->isLookupSuccessful()) {\n \t$this->lookup($data);\n $validationState = $this->_getValidationState();\n }\n if ($validationState->isLookupSuccessful() || $validationState->getLookupBypass3dsecure()) {\n return;\n }\n Mage::throwException(Mage::helper('centinel')->__('This card has failed validation and cannot be used.'));\n }\n }", "private static function decodeFilterASCIIHexDecode($data){\n\t\t// intialize string to return\n\t\t$decoded = '';\n\t\t// all white-space characters shall be ignored\n\t\t$data = preg_replace('/[\\s]/', '', $data);\n\t\t// check for EOD character: GREATER-THAN SIGN (3Eh)\n\t\t$eod = strpos($data, '>');\n\t\tif($eod !== false){\n\t\t\t// remove EOD and extra data (if any)\n\t\t\t$data = substr($data, 0, $eod);\n\t\t\t$eod = true;\n\t\t}\n\t\t// get data length\n\t\t$data_length = strlen($data);\n\t\tif(($data_length % 2) != 0){\n\t\t\t// odd number of hexadecimal digits\n\t\t\tif($eod){\n\t\t\t\t// EOD shall behave as if a 0 (zero) followed the last digit\n\t\t\t\t$data = substr($data, 0, -1) . '0' . substr($data, -1);\n\t\t\t} else {\n\t\t\t\t$this->Error('decodeASCIIHex: invalid code');\n\t\t\t}\n\t\t}\n\t\t// check for invalid characters\n\t\tif(preg_match('/[^a-fA-F\\d]/', $data) > 0){\n\t\t\t$this->Error('decodeASCIIHex: invalid code');\n\t\t}\n\t\t// get one byte of binary data for each pair of ASCII hexadecimal digits\n\t\t$decoded = pack('H*', $data);\n\t\treturn $decoded;\n\t}", "public static function getRepairBits($cid){\n //repair state from mySql for a specific vehicle\n $r = getRepairs($cid);\n //$ret = ($r & 0x000F) >> 0;\n //echo $ret;\n return 0; //$ret;\n }", "function crcl_par($arr) {\n $out = \"\";\n foreach ($arr as $section => $card) {\n if ( is_array($card) ) {\n $out .= \"[\".$section.\"]\\n\"; \n foreach ($card as $parameter => $value) {\n $v1 = trim($value);\n $v1 = str_replace( '\\\\\"',\"'\",$v1 );\n $out .= \"$parameter = \\\"$v1\\\"\\n\";\n\t\t }\n\t\t }\n\t\t else {\n\t\t $v1 = trim($card);\n $v1 = str_replace( '\\\\\"',\"'\",$v1 );\n $out .= \"$section = \\\"$v1\\\"\\n\"; \n } \n } \n return $out;\n }", "private function _read_header_tgz()\n\t{\n\t\t// Compression method needs to be 8 = deflate!\n\t\tif ($this->_header['t'] !== 8)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t// Each bit of this byte represents a processing flag as follows\n\t\t// 0 fTEXT, 1 fHCRC, 2 fEXTRA, 3 fNAME, 4 fCOMMENT, 5 fENCRYPT, 6-7 reserved\n\t\t$flags = $this->_header['f'];\n\n\t\t// Start to read any data defined by the flags, its the data after the 10 byte header\n\t\t$this->_offset = 10;\n\n\t\t// fEXTRA flag set we simply skip over its entry and the length of its data\n\t\tif (($flags & 4) !== 0)\n\t\t{\n\t\t\t$xlen = unpack('vxlen', substr($this->data, $this->_offset, 2));\n\t\t\t$this->_offset += $xlen['xlen'] + 2;\n\t\t}\n\n\t\t// Read the filename, its zero terminated\n\t\tif (($flags & 8) !== 0)\n\t\t{\n\t\t\t$this->_header['filename'] = '';\n\t\t\twhile ($this->data[$this->_offset] !== \"\\0\")\n\t\t\t{\n\t\t\t\t$this->_header['filename'] .= $this->data[$this->_offset++];\n\t\t\t}\n\t\t\t$this->_offset++;\n\t\t}\n\n\t\t// Read the comment, its also zero terminated\n\t\tif (($flags & 16) !== 0)\n\t\t{\n\t\t\t$this->_header['comment'] = '';\n\t\t\twhile ($this->data[$this->_offset] !== \"\\0\")\n\t\t\t{\n\t\t\t\t$this->_header['comment'] .= $this->data[$this->_offset++];\n\t\t\t}\n\t\t\t$this->_offset++;\n\t\t}\n\n\t\t// \"Read\" the header CRC $crc16 = unpack('vcrc16', substr($data, $this->_offset, 2));\n\t\tif (($flags & 2) !== 0)\n\t\t{\n\t\t\t$this->_offset += 2;\n\t\t}\n\t}", "public function Checksum_Good($tle_set)\n {\n if (strlen($tle_set) < 69) {\n return false;\n }\n\n $checksum = 0;\n\n for ($i = 0; $i < 68; $i++) {\n if (($tle_set[$i] >= '0') && ($tle_set[$i] <= '9')) {\n $value = $tle_set[$i] - '0';\n } else if ($tle_set[$i] == '-' ) {\n $value = 1;\n } else {\n $value = 0;\n }\n\n $checksum += $value;\n }\n\n $checksum %= 10;\n $check_digit = $tle_set[68] - '0';\n\n return $checksum == $check_digit;\n }", "public function processRealtimeCreditCardPayment($data)\n\t{\n\t\t// provide the EziDebit API endpoint\n\t\t$soapclient = new SoapClient($this->pci);\n\n\t\t$params = [\n\t\t\t\t'DigitalKey' => $this->digitalKey,\n\t\t\t\t'CreditCardNumber' => $data['cardNumber'],\n\t\t\t\t'CreditCardExpiryMonth' => $data['cardExpiryMonth'],\n\t\t\t\t'CreditCardExpiryYear' => $data['cardExpiryYear'],\n\t\t\t\t'CreditCardCCV' => $data['cardCvv'],\n\t\t\t\t'NameOnCreditCard' => $data['cardName'],\n\t\t\t\t'PaymentAmountInCents' => $data['amountInCents'],\n\t\t\t\t'CustomerName' => $data['customerFullName'],\n\t\t\t\t'PaymentReference' => $data['paymentRef']\n\t\t];\n\n\t\treturn $soapclient->processRealtimeCreditCardPayment($params);\n\t}", "public static function IPv6Hex2BinDataProviderCorrect() {}", "public function receive($data) {\n\t\tif (!$this->client) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$command = $data[0];\n\t\t$account = Functions::hexToChr($data, 1, 30, true);\n\t\t$password = Functions::hexToChr($data, 31, 61, true);\n\n\t\t// Account / Password validadion\n\t\t$test = UltimaPHP::$db->collection(\"accounts\")->find(['account' => $account])->toArray();\n\t\tif (!empty($test[0]) && md5($password) != $test[0]['password']) {\n\t\t\t// Send disconnect packet without account instance\n\t\t\t$packet = new packet_0x82($this->client);\n\t $packet->setReason(RejectionReason::WRONG_PASSWORD);\n\t $packet->send();\n\t \n\t\t\tUltimaPHP::log(\"Account $account tried to login with wrong password.\");\n\t\t\treturn false;\n\t\t}\n\n\t\tUltimaPHP::$socketClients[$this->client]['account'] = array(\n\t\t\t'account' => $account,\n\t\t\t'password' => md5($password),\n\t\t);\n\n\t\tUltimaPHP::$socketClients[$this->client]['account'] = new Account($account, md5($password), $this->client);\n\n\t\tif (UltimaPHP::$socketClients[$this->client]['account']->isValid) {\n\t\t\t// Verify if account is already in use\n\t\t\t$inUse = false;\n\t\t\tforeach (UltimaPHP::$socketClients as $client => $socket) {\n\t\t\t\tif ($this->client != $client) {\n\t\t\t\t\tif (isset($socket['account']) && isset($socket['account']->account) && $socket['account']->account == UltimaPHP::$socketClients[$this->client]['account']->account) {\n\t\t\t\t\t\t$inUse = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($inUse) {\n\t\t\t\tUltimaPHP::$socketClients[$this->client]['account']->disconnect(RejectionReason::ACCOUNT_IN_USE);\n\t\t\t\tUltimaPHP::log(\"Account $account already connected.\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tUltimaPHP::log(\"Account $account connected from \" . UltimaPHP::$socketClients[$this->client]['ip']);\n\t\t\t// Send to the client the server list\n\t\t\tUltimaPHP::$socketClients[$this->client]['account']->sendServerList();\n\t\t} elseif (UltimaPHP::$conf['accounts']['auto_create'] == 1) {\n\t\t\t$this->insertAccount($account, md5($password));\n\t\t\t$this->receive($data);\n\t\t} else {\n\t\t\tUltimaPHP::$socketClients[$this->client]['account']->disconnect(RejectionReason::INVALID);\n\t\t}\n\t\t$this->insertClientVersion($account);\n\n\t\treturn true;\n\t}", "protected function validateReset($data)\n\t{\n\t\t/** \n\t\t* Validate input field on server side\n\t\t* Check if email and password contains valid phrases\n\t\t**/\n\t\tif ((strlen(trim($data['hash'])) < 10) || (strlen(trim($data['hash'])) > 255)) {\n\t\t\t/** \n\t\t\t* If First name is not valid ( min 2 character or max 48 ) \n\t\t\t* Return false\n\t\t\t**/\n\t\t\treturn false;\n\t\t} elseif ((strlen($data['mail']) > 96) || !filter_var($data['mail'], FILTER_VALIDATE_EMAIL)) {\n\t\t\t/** \n\t\t\t* If email is not valid\n\t\t\t* Return false\n\t\t\t**/\n\t\t\treturn false;\n\t\t} elseif (strlen($data['password']) < 6) {\n\t\t\t/** \n\t\t\t* If Password is not valid ( min 6 character ) \n\t\t\t* Return false\n\t\t\t**/\n\t\t\treturn false;\n\t\t} elseif ($data['confirmpassword'] != $data['password']) {\n\t\t\t/** \n\t\t\t* If Password does not match with confirmpassword \n\t\t\t* Return false\n\t\t\t**/\n\t\t\treturn false;\n\t\t} else {\n\t\t\t/** \n\t\t\t* Everything looks good \n\t\t\t* Return True\n\t\t\t**/\n\t\t\treturn true;\n\t\t}\n\t}" ]
[ "0.6604696", "0.6425204", "0.63321817", "0.6290482", "0.6258", "0.6163643", "0.6163643", "0.6103515", "0.6008995", "0.5940246", "0.59375113", "0.59055054", "0.588624", "0.5784839", "0.57574195", "0.56529826", "0.5535686", "0.55306846", "0.5485491", "0.5419039", "0.5311174", "0.52671814", "0.5246764", "0.5225605", "0.5204711", "0.51146996", "0.5066314", "0.5008439", "0.49853304", "0.4943593", "0.4910778", "0.48628998", "0.48570406", "0.4799261", "0.47863168", "0.47850725", "0.47678006", "0.47667834", "0.47518125", "0.47460327", "0.47439766", "0.47397047", "0.47366837", "0.47362173", "0.47118038", "0.47050348", "0.46994054", "0.46651292", "0.46596125", "0.46287358", "0.46267438", "0.46251696", "0.46225458", "0.46204677", "0.4595126", "0.4586897", "0.45786697", "0.45781937", "0.45774636", "0.45767507", "0.45658353", "0.4551302", "0.4539364", "0.45350134", "0.4532789", "0.453124", "0.45266742", "0.45250905", "0.4521631", "0.4518819", "0.45075536", "0.45015606", "0.45009074", "0.4500294", "0.44993603", "0.44971108", "0.44921014", "0.44910488", "0.44910488", "0.44906467", "0.44904983", "0.44844276", "0.44844136", "0.44838497", "0.44833675", "0.44784442", "0.44765517", "0.44732141", "0.447304", "0.44708946", "0.44670993", "0.44497877", "0.44483715", "0.44436252", "0.44398004", "0.44307107", "0.44274518", "0.442527", "0.44246662", "0.442214" ]
0.5347848
20
/ SQL: SELECT g.group_id, g.subject, g.teacher FROM groups AS g WHERE g.group_id IN (3, 7 , 11)
public function getGroupsQuery() { $query = Query::selectFrom(['g' => 'groups'], ['group_id', 'subject', 'teacher']); $query->where()->in('g.group_id', [3, 7, 11]); /* SQL: SELECT s.*, gs.group_id FROM students AS s INNER JOIN groups_students AS gs ON s.student_id = gs.student_id WHERE gs.group_id IN (3, 7, 11) */ $studentsQuery = Query::selectFrom(['s' => 'students']); $query->nest(['Students' => $studentsQuery], function (NestedSelect $nest, RowProxy $row) { // common structure for nesting, $nest->getSelect() ->innerJoin(['gs' => 'groups_students'], ['group_id']) ->on()->equals('s.student_id', 'gs.student_id'); // result varies per $row values. $nest->getSelect() ->where()->equals('gs.group_id', $row->group_id); }); return $query; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_multiple_info($group_ids)\n {\n $this->db->from('groups');\n $this->db->where_in('groups.group_id', $group_ids);\n $this->db->order_by(\"name\", \"asc\");\n return $this->db->get();\n }", "function getSuggestGroup() {\n return getAll(\"SELECT * FROM `group` a \n WHERE id NOT IN (\n SELECT group_id \n FROM member_group \n WHERE member_id=?)\n AND a.id NOT IN (\n SELECT group_id \n FROM member_group_apply \n WHERE status = \\\"\\\") \n LIMIT 5\"\n ,[getLogin()['mid']]);\n}", "function group_get_admin_ids($groupid) {\n return (array)get_column_sql(\"SELECT member\n FROM {group_member}\n WHERE \\\"group\\\" = ?\n AND role = 'admin'\", $groupid);\n}", "function get_susi_student_groups() {\r\n // set connection var\r\n global $db;\r\n\r\n //query to get student groups str\r\n $sql = \"SELECT id\r\n FROM groups\r\n WHERE is_active = '1' AND student = '1'\r\n ORDER BY name ASC;\";\r\n\r\n $groups = array();\r\n $student_groups = array();\r\n foreach ($db->query($sql) as $key => $value) {\r\n $groups[$key] = $value;\r\n foreach ($groups[$key] as $subkey => $subvalue) {\r\n if (is_int($subkey)) {\r\n $student_groups[] = $subvalue;\r\n }\r\n }\r\n }\r\n\r\n return $student_groups;\r\n}", "function get_groups_by_creator($user_id) {\r\n // set connection var\r\n global $db;\r\n\r\n //query to get all associated surveys\r\n $sql = \"SELECT id\r\n FROM groups\r\n WHERE is_active = '1' AND local = '1' AND created_by = '$user_id';\";\r\n\r\n $groups_data = array();\r\n $groups = array();\r\n\r\n foreach ($db->query($sql) as $key => $value) {\r\n $groups_data[$key] = $value;\r\n foreach ($groups_data[$key] as $subkey => $subvalue) {\r\n if (is_int($subkey)) {\r\n $groups[] = $subvalue;\r\n }\r\n }\r\n }\r\n\r\n return $groups;\r\n}", "function fetchTeacherSubjects($academicid, $teacherid, $sortorder = '', $sortfield = '', $limit = 0, $offset = 0) {\n global $db, $conf;\n dol_syslog(__METHOD__, LOG_DEBUG);\n $table_element = 'educo_teacher_subject';\n $sql = 'SELECT';\n $sql .= ' t.rowid,';\n $sql .= \" t.ref,\";\n $sql .= \" t.label,\";\n $sql .= \" t.status,\";\n $sql .= \" t.datec,\";\n $sql .= \" t.tms,\";\n $sql .= \" t.asignature_code,\";\n $sql .= \" t.fk_user,\";\n $sql .= \" t.fk_academicyear,\";\n $sql .= \" t.entity,\";\n $sql .= \" t.hours,\";\n $sql .= \" s.label as subject_label\";\n $sql .= ' FROM ' . MAIN_DB_PREFIX . $table_element . ' as t';\n $sql .= ' INNER JOIN ' . MAIN_DB_PREFIX . 'edcuo_c_asignatura AS s ON asignature_code=s.code';\n // Manage filter\n\n $sql .= ' WHERE 1 = 1';\n $sql .= ' AND t.fk_academicyear = ' . $academicid;\n $sql .= ' AND t.fk_user = ' . $teacherid;\n if (!empty($conf->multicompany->enabled)) {\n $sql .= \" AND entity IN (\" . getEntity(\"educoteachersubject\", 1) . \")\";\n }\n\n if (!empty($sortfield)) {\n $sql .= $db->order($sortfield, $sortorder);\n }\n if (!empty($limit)) {\n $sql .= ' ' . $db->plimit($limit + 1, $offset);\n }\n //var_dump($sql);\n $lines = array();\n\n $resql = $db->query($sql);\n if ($resql) {\n $num = $db->num_rows($resql);\n\n while ($obj = $db->fetch_object($resql)) {\n\n\n $lines[] = $obj;\n }\n $db->free($resql);\n //var_dump(count($lines));\n return $lines;\n } else {\n // print 'Error ' . $db->lasterror();\n // dol_syslog(__METHOD__ . ' ' . implode(',', $errors), LOG_ERR);\n\n return - 1;\n }\n}", "public function getMembers($group_id);", "public function getAsignaturesAndSubGroups($id_teacher)\n\t{\n\t\t$this->query = \"SELECT g.id_subgrupo, g.nombre_subgrupo, a.id_asignatura, a.asignatura, g.id_grado\n\t\t\t\t\t\tFROM t_asignaturas a\n\t\t\t\t\t\tINNER JOIN sub_grupo_x_asig_x_doce ad ON a.id_asignatura=ad.id_asignatura\n\t\t\t\t\t\tINNER JOIN t_subgrupos g ON ad.id_subgrupo=g.id_subgrupo\n\t\t\t\t\t\tWHERE ad.id_docente = {$id_teacher}\n\t\t\t\t\t\tORDER BY g.id_grado\";\n\n\t\treturn $this->getResultsFromQuery();\n\t}", "function get_group_students($groupids, $sort='ul.timeaccess DESC') {\n\n if (is_array($groupids)){\n $groups = $groupids;\n // all groups must be from one course anyway...\n $group = groups_get_group(array_shift($groups));\n } else {\n $group = groups_get_group($groupids);\n }\n if (!$group) {\n return NULL;\n }\n\n $context = get_context_instance(CONTEXT_COURSE, $group->courseid);\n return get_users_by_capability($context, 'moodle/legacy:student', 'u.*, ul.timeaccess as lastaccess', $sort, '','',$groupids, '', false);\n}", "function get_group_topics($params) {\n global $db;\n\n $gid = $params['group'] ? $params['group'] : $params;\n $limit = $params['limit'];\n $order = $params['order'] ? $params['order'] : \" last_post_time DESC \";\n\n if ($params['approved'])\n $approved_query = \" AND \" . tbl('group_topics') . \".approved='yes' \";\n if ($params['user'])\n $user_query = \" AND \" . tbl('group_topics') . \".userid='\" . $params['user'] . \"'\";\n\n\n //user fields\n $fields = array(\n 'email', 'username'\n );\n\n $fields = apply_filters($fields, 'group_topic_user_fields');\n\n foreach ($fields as $field)\n $uquery .= ',' . tbl('users.' . $field);\n\n if ($limit)\n $limit_query = \" LIMIT \" . $limit;\n else\n $limit_query = '';\n\n $order = ' ORDER BY ' . $order;\n $results = db_select(\"SELECT \" . tbl('group_topics') . \".*$uquery FROM \"\n . tbl('group_topics') . \" LEFT JOIN \" . tbl('users') . \" ON \" . tbl('users.userid')\n . \"=\" . tbl('group_topics.userid') . \" WHERE \" . tbl('group_topics')\n . \".group_id='$gid' $user_query $order $limit_query \");\n\n\n if ($db->num_rows > 0)\n return $results;\n else\n return false;\n }", "public function getTeacherRequests() {\n $sql = 'SELECT mail, id FROM user WHERE id IN (SELECT user_id FROM teacher_request)';\n $sth = $this->db->prepare($sql);\n $sth-> execute (array ());\n if ($row = $sth->fetchAll()) {\n return $row;\n }\n\n }", "public function getAsignaturesAndGroups($id_teacher)\n\t{\n\n\t\t$this->query = \"SELECT g.id_grupo, g.nombre_grupo, a.id_asignatura, a.asignatura, g.id_grado\n\t\t\t\t\t\tFROM t_asignaturas a\n\t\t\t\t\t\tINNER JOIN grupo_x_asig_x_doce ad ON a.id_asignatura=ad.id_asignatura\n\t\t\t\t\t\tINNER JOIN t_grupos g ON ad.id_grupo=g.id_grupo\n\t\t\t\t\t\tWHERE ad.id_docente = '{$id_teacher}' \n\t\t\t\t\t\tORDER BY g.id_grado\";\n\n\t\treturn $this->getResultsFromQuery();\n\n\t}", "function timeconditions_timegroups_list_groups() {\n\tglobal $db;\n\t$tmparray = array();\n\n\t$sql = \"select id, description from timegroups_groups order by description\";\n\t$results = $db->getAll($sql);\n\tif(DB::IsError($results)) {\n\t\t$results = null;\n\t}\n\tforeach ($results as $val) {\n\t\t$tmparray[] = array($val[0], $val[1], \"value\" => $val[0], \"text\" => $val[1]);\n\t}\n\treturn $tmparray;\n}", "function listGroupMembership($person, $arrayof = 'group_id') \n {\n $this->inAdmin = false;\n $t = clone($this);\n //DB_DataObject::debugLevel(1);\n \n $grp = DB_DataObject::factory('core_group');\n $t->joinAdd($grp , 'LEFT');\n //$person->id = (int)$person->id;\n $t->whereAdd(\"\n user_id = {$person->id}\n \");\n $t->selectAdd();\n $t->selectAdd(\"distinct(group_id), {$grp->tableName()}.name as name\");\n $t->whereAdd('group_id IS NOT NULL');\n \n $t->find();\n \n $ret = array() ;\n // $ret = $arrayof == 'group_id' ? array(0) : array();\n // default member of 'All groups'!!\n \n while ($t->fetch()) {\n $ret[] = $t->$arrayof;\n if ($t->name == 'Administrators') { /// mmh... bit risky?\n $this->inAdmin = true;\n }\n }\n if ($arrayof == 'group_id' && !count($ret)) {\n $ret = array(0); /// default if they are not a member of any group.\n }\n //var_dump($ret);\n return $ret;\n \n }", "function get_multiple_info($schedule_id)\n\t{\n\t\t$this->db->from('schedule');\n\t\t$this->db->where_in('id',$schedule_ids);\n\t\t$this->db->order_by(\"title\", \"asc\");\n\t\treturn $this->db->get();\t\t\n\t}", "function AnnouncementSelectMembergroup()\n{\n\tglobal $txt, $context, $topic;\n\n\t$groups = getAnnounceGroups();\n\n\t$context['groups'] = array();\n\tif (in_array(0, $groups))\n\t{\n\t\t$context['groups'][0] = array(\n\t\t\t'id' => 0,\n\t\t\t'name' => $txt['announce_regular_members'],\n\t\t\t'member_count' => 'n/a',\n\t\t);\n\t}\n\n\t// Get all membergroups that have access to the board the announcement was made on.\n\t$request = wesql::query('\n\t\tSELECT mg.id_group, COUNT(mem.id_member) AS num_members\n\t\tFROM {db_prefix}membergroups AS mg\n\t\t\tLEFT JOIN {db_prefix}members AS mem ON (mem.id_group = mg.id_group OR FIND_IN_SET(mg.id_group, mem.additional_groups) != 0 OR mg.id_group = mem.id_post_group)\n\t\tWHERE mg.id_group IN ({array_int:group_list})\n\t\tGROUP BY mg.id_group',\n\t\tarray(\n\t\t\t'group_list' => $groups,\n\t\t\t'newbie_id_group' => 4,\n\t\t)\n\t);\n\twhile ($row = wesql::fetch_assoc($request))\n\t{\n\t\t$context['groups'][$row['id_group']] = array(\n\t\t\t'id' => $row['id_group'],\n\t\t\t'name' => '',\n\t\t\t'member_count' => $row['num_members'],\n\t\t);\n\t}\n\twesql::free_result($request);\n\n\t// Now get the membergroup names.\n\t$request = wesql::query('\n\t\tSELECT id_group, group_name\n\t\tFROM {db_prefix}membergroups\n\t\tWHERE id_group IN ({array_int:group_list})',\n\t\tarray(\n\t\t\t'group_list' => $groups,\n\t\t)\n\t);\n\twhile ($row = wesql::fetch_assoc($request))\n\t\t$context['groups'][$row['id_group']]['name'] = $row['group_name'];\n\twesql::free_result($request);\n\n\t// Get the subject of the topic we're about to announce.\n\t$request = wesql::query('\n\t\tSELECT m.subject\n\t\tFROM {db_prefix}topics AS t\n\t\t\tINNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)\n\t\tWHERE t.id_topic = {int:current_topic}',\n\t\tarray(\n\t\t\t'current_topic' => $topic,\n\t\t)\n\t);\n\tlist ($context['topic_subject']) = wesql::fetch_row($request);\n\twesql::free_result($request);\n\n\tcensorText($context['announce_topic']['subject']);\n\n\t$context['move'] = isset($_REQUEST['move']) ? 1 : 0;\n\t$context['go_back'] = isset($_REQUEST['goback']) ? 1 : 0;\n\n\twetem::load('announce');\n}", "function subjectData() {\r\n\t\t$sql = \"SELECT a.*, s.*, f.*, c.*\r\n\t\t\tFROM assignment a \r\n\t\t\tINNER JOIN subject s ON s.subjectid = a.subjectid\r\n\t\t\tINNER JOIN audio_file f ON f.audioid = a.audioid\r\n\t\t\tINNER JOIN audio_category_bridge ac ON ac.audioid = a.audioid\r\n\t\t\tINNER JOIN audio_category c ON c.categoryid = ac.categoryid\r\n\t\tWHERE \r\n\t\t\t(a.active + s.active + f.active + c.active) = 4 \r\n\t\t\tAND s.subjectid = {$this->userid}\";\r\n\t\treturn $this->db->query($sql);\r\n\t}", "function group_get_associated_groups($userid, $filter='all', $limit=20, $offset=0) {\n // postgres\n if (is_mysql()) {\n $invitesql = \"'invite'\";\n $requestsql = \"'request'\";\n $adminsql = \"'admin'\";\n $empty = \"''\";\n }\n else {\n $invitesql = \"CAST('invite' AS TEXT)\";\n $requestsql = \"CAST('request' AS TEXT)\";\n $adminsql = \"CAST('admin' AS TEXT)\";\n $empty = \"CAST('' AS TEXT)\";\n }\n\n // Different filters join on the different kinds of association\n if ($filter == 'admin') {\n $sql = \"\n INNER JOIN (\n SELECT g.id, $adminsql AS membershiptype, $empty AS reason, $adminsql AS role\n FROM {group} g\t\t\t\t\n INNER JOIN {group_member} gm ON (gm.group = g.id AND gm.member = ? AND gm.role = 'admin')\n ) t ON t.id = g.id\";\n $values = array($userid);\n }\n else if ($filter == 'member') {\n $sql = \"\n INNER JOIN (\n SELECT g.id, 'admin' AS membershiptype, $empty AS reason, $adminsql AS role\n FROM {group} g\t\t\t\t\n INNER JOIN {group_member} gm ON (gm.group = g.id AND gm.member = ? AND gm.role = 'admin')\n UNION\n SELECT g.id, 'member' AS type, $empty AS reason, gm.role AS role\n FROM {group} g\n INNER JOIN {group_member} gm ON (gm.group = g.id AND gm.member = ? AND gm.role != 'admin')\n ) t ON t.id = g.id\";\n $values = array($userid, $userid);\n }\n else if ($filter == 'invite') {\n $sql = \"\n INNER JOIN (\n SELECT g.id, $invitesql AS membershiptype, gmi.reason, gmi.role\n FROM {group} g\n INNER JOIN {group_member_invite} gmi ON (gmi.group = g.id AND gmi.member = ?)\n ) t ON t.id = g.id\";\n $values = array($userid);\n }\n else if ($filter == 'request') {\n $sql = \"\n INNER JOIN (\n SELECT g.id, $requestsql AS membershiptype, gmr.reason, $empty AS role\n FROM {group} g\n INNER JOIN {group_member_request} gmr ON (gmr.group = g.id AND gmr.member = ?)\n ) t ON t.id = g.id\";\n $values = array($userid);\n }\n else { // all or some other text\n $filter = 'all';\n $sql = \"\n INNER JOIN (\n SELECT g.id, 'admin' AS membershiptype, '' AS reason, 'admin' AS role\n FROM {group} g\t\t\t\t\n INNER JOIN {group_member} gm ON (gm.group = g.id AND gm.member = ? AND gm.role = 'admin' AND g.parent_group is null OR g.parent_group=0)\n UNION\n SELECT g.id, 'member' AS membershiptype, '' AS reason, gm.role AS role\n FROM {group} g\n INNER JOIN {group_member} gm ON (g.id = gm.group AND gm.member = ? AND gm.role != 'admin')\n UNION\n SELECT g.id, 'invite' AS membershiptype, gmi.reason, gmi.role\n FROM {group} g\n INNER JOIN {group_member_invite} gmi ON (gmi.group = g.id AND gmi.member = ?)\n UNION SELECT g.id, 'request' AS membershiptype, gmr.reason, '' AS role\n FROM {group} g\n INNER JOIN {group_member_request} gmr ON (gmr.group = g.id AND gmr.member = ?)\n ) t ON t.id = g.id\";\n $values = array($userid, $userid, $userid, $userid);\n }\n \n $values[] = 0;\n \n $count = count_records_sql('SELECT COUNT(*) FROM {group} g ' . $sql . ' WHERE g.deleted = ?', $values);\n \n // almost the same as query used in find - common parts should probably be pulled out\n // gets the groups filtered by above\n // and the first three members by id\n \n\t//Start-Anusha - added g.outcome & g1.outcome\n /*$sql = 'SELECT g1.id, g1.name, g1.description, g1.jointype, g1.grouptype, g1.membershiptype, g1.reason, g1.role, g1.membercount, COUNT(gmr.member) AS requests\n FROM (\n SELECT g.id, g.name, g.description, g.jointype, g.grouptype, t.membershiptype, t.reason, t.role, COUNT(gm.member) AS membercount\n FROM {group} g\n LEFT JOIN {group_member} gm ON (gm.group = g.id)' .\n $sql . '\n WHERE g.deleted = ?\n GROUP BY g.id, g.name, g.description, g.jointype, g.grouptype, t.membershiptype, t.reason, t.role\n ORDER BY g.name\n ) g1\n LEFT JOIN {group_member_request} gmr ON (gmr.group = g1.id)\n GROUP BY g1.id, g1.name, g1.description, g1.jointype, g1.grouptype, g1.membershiptype, g1.reason, g1.role, g1.membercount';\n */\n\t//start -Eshwari added g1.courseoffering,g.courseoffering,\n\t $sql = 'SELECT g1.id, g1.name, g1.description, g1.jointype, g1.grouptype, g1.outcome,g1.courseoffering, g1.membershiptype, g1.reason, g1.role, g1.membercount, COUNT(gmr.member) AS requests\n FROM (\n SELECT g.id, g.name, g.description, g.jointype, g.grouptype, g.outcome,g.courseoffering, t.membershiptype, t.reason, t.role, COUNT(gm.member) AS membercount\n FROM {group} g\n LEFT JOIN {group_member} gm ON (gm.group = g.id)' .\n $sql . '\n WHERE g.deleted = ?\n GROUP BY g.id, g.name, g.description, g.jointype, g.grouptype, t.membershiptype, t.reason, t.role\n ORDER BY g.name\n ) g1\n LEFT JOIN {group_member_request} gmr ON (gmr.group = g1.id)\n GROUP BY g1.id, g1.name, g1.description, g1.jointype, g1.grouptype, g1.outcome,g1.courseoffering, g1.membershiptype, g1.reason, g1.role, g1.membercount';\n\t//End-Anusha\n\t\n $groups = get_records_sql_assoc($sql, $values, $offset, $limit);\n \n if ($groups) {\n // Get a few random members from each group. We've tried this with one \n // query before but it's painfully slow, databases don't do random rows \n // efficiently.\n foreach (array_keys($groups) as $groupid) {\n $members = get_records_sql_array(\"\n SELECT u.*\n FROM {group_member} gm\n INNER JOIN {usr} u ON (gm.member = u.id AND u.deleted = 0)\n WHERE gm.group = ?\n ORDER BY \" . db_random() . \"\n LIMIT 3\", array($groupid));\n foreach ($members as $m) {\n $groups[$groupid]->members[] = (object) array('id' => $m->id, 'name' => display_name($m));\n }\n }\n $groups = array_values($groups);\n }\n else {\n $groups = array();\n }\n\n return array('groups' => $groups, 'count' => $count);\n\n}", "function joined_groups() // pulls all the groups the user is joined but excludes school group\n {\n $user = $this->ion_auth->get_user();\n $query_string = \"SELECT group_relationships.group_id, groups.name FROM group_relationships LEFT JOIN groups ON group_relationships.group_id = groups.id \" .\n \"WHERE group_relationships.user_joined_id = ? AND groups.school_group=0\";\n $query = $this->db->query($query_string, array($user->id));\n\n $return_array = array();\n foreach ($query->result() as $row)\n {\n $return_array[] = array('id' => $row->group_id,\n 'name' => $row->name);\n }\n\n return $return_array;\n }", "function get_subject_info($subject_id)\n\t{\n\t\t$query = $this->db->query('select subject_id, subject_code, subject_name, group_name from subject a, subject_group b where a.sub_group_id= b.group_id AND subject_id = '.$subject_id);\n\t\treturn $query->result_array();\n\t}", "function getMemberGroupInfo1() {\n global $inputs;\n\n $res = getAll('SELECT mg.*,\n\t m.name\n FROM member_group mg\n JOIN member m\n ON m.id = mg.member_id\n WHERE group_id = ?' , [$inputs['id']]);\n formatOutput(true, 'success', $res);\n}", "function get_list_members($course, &$nonmembers, &$listgroups)\r\n{\r\n/// First, get everyone into the nonmembers array\r\n if ($students = get_course_students($course->id)) {\r\n foreach ($students as $student) {\r\n $nonmembers[$student->id] = fullname($student, true);\r\n }\r\n unset($students);\r\n }\r\n\r\n if ($teachers = get_course_teachers($course->id)) {\r\n foreach ($teachers as $teacher) {\r\n $prefix = '- ';\r\n if (isteacheredit($course->id, $teacher->id)) {\r\n $prefix = '# ';\r\n }\r\n $nonmembers[$teacher->id] = $prefix.fullname($teacher, true);\r\n }\r\n unset($teachers);\r\n }\r\n\r\n/// Pull out all the members into little arrays\r\n\t$groups = get_groups($course->id);\r\n if ($groups) {\r\n foreach ($groups as $group) {\r\n $countusers = 0;\r\n $listmembers[$group->id] = array();\r\n if ($groupusers = get_group_users($group->id)) {\r\n foreach ($groupusers as $groupuser) {\r\n $listmembers[$group->id][$groupuser->id] = $nonmembers[$groupuser->id];\r\n //unset($nonmembers[$groupuser->id]);\r\n $countusers++;\r\n }\r\n natcasesort($listmembers[$group->id]);\r\n }\r\n $listgroups[$group->id] = $group->name.\" ($countusers)\";\r\n }\r\n natcasesort($listgroups);\r\n }\r\n\r\n natcasesort($nonmembers);\r\n\tif (empty($selectedgroup)) { // Choose the first group by default\r\n if (!empty($listgroups) && ($selectedgroup = array_shift(array_keys($listgroups)))) {\r\n $members = $listmembers[$selectedgroup];\r\n }\r\n } else {\r\n $members = $listmembers[$selectedgroup];\r\n }\r\n\treturn $listmembers;\r\n}", "function &group_list($start=NULL, $limit=NULL, $direction=0, $where=NULL)\n\n {\n\n global $database, $user;\n\n \n\n\t $message_array = array();\n\n \n\n\t // MAKE SURE MESSAGES ARE ALLOWED\n\n\t \n\n \n\n // BEGIN MESSAGE QUERY\n\n $sql = \"\n\n SELECT\n\n *\n\n FROM\n\n se_groups\n\n WHERE\n\n owner='{$user->user_info['user_username']}'\n\n \";\n\n // EXECUTE QUERY\n\n $resource = $database->database_query($sql);\n\n \n\n // GET MESSAGES\n\n\t while( $message_info=$database->database_fetch_assoc($resource) )\n\n {\n\n // CREATE AN OBJECT FOR MESSAGE AUTHOR/RECIPIENT\n\n $pm_user = new SEUser();\n\n $pm_user->user_info['id'] = $message_info['id'];\n\n $pm_user->user_info['grup'] = $message_info['grup'];\n\n $pm_user->user_info['owner'] = $message_info['owner'];\n\n $pm_user->user_displayname();\n\n \n\n // Remove breaks for preview\n\n $message_info['pm_body'] = str_replace(\"<br>\", \"\", $message_info['pm_body']);\n\n \n\n // SET MESSAGE ARRAY\n\n $message_array[] = array(\n\n 'pmconvo_id' => $message_info['id'],\n\n 'pmconvo_grup' => $message_info['grup'],\n\n 'pm_owner' => $message_info['owner'],\n\t\t'pm_body' => $message_info['pm_body']\n\t\t\n\n );\n\n \n\n unset($pm_user);\n\n }\n\n \n\n return $message_array;\n\n }", "function getGroup($db, $group) {\n$query = ('SELECT * FROM users WHERE currentGroup = :myGroup');\n$statement = $db -> prepare($query);\n$statement -> bindValue(':myGroup', $group);\nif (!$statement -> execute()) {\n print_r($statement->errorInfo());\n}\n$result = $statement -> fetchAll(PDO::FETCH_ASSOC);\nreturn $result;\n}", "function getMemberWithinGroupInfo() {\n global $inputs;\n\n $res = getAll(\"SELECT a.*, b.id as member_groupId FROM `member` a, member_group b WHERE b.group_id = ? AND b.member_id=a.id\", [$inputs['id']]);\n formatOutput(true, 'success', $res);\n}", "function getGroupList() {\n return getAll(\"SELECT * FROM `group` WHERE admin_id = ?\", [getLogin()['uid']]);\n}", "function tep_get_email_subjects_list($subjects_array = '') {\n if (!is_array($subjects_array)) $subjects_array = array();\n\n $subjects_query = tep_db_query(\"select email_subjects_id, email_subjects_name, email_subjects_category from \" . TABLE_EMAIL_SUBJECTS . \" where email_subjects_category = '2' order by email_subjects_name\");\n while ($subjects = tep_db_fetch_array($subjects_query)) {\n $subjects_array[] = array('id' => $subjects['email_subjects_name'], 'text' => $subjects['email_subjects_name']);\n }\n\n return $subjects_array;\n }", "function fetchHorario($academicid, $groupid, $teacherid, $sortorder = '', $sortfield = '', $limit = 0, $offset = 0) {\n global $db, $conf;\n $table_element = 'educo_horario';\n dol_syslog(__METHOD__, LOG_DEBUG);\n\n $sql = 'SELECT';\n $sql .= ' t.rowid,';\n $sql .= \" t.ref,\";\n $sql .= \" t.label,\";\n $sql .= \" t.datep,\";\n $sql .= \" t.datef,\";\n $sql .= \" t.duration,\";\n $sql .= \" t.note_private,\";\n $sql .= \" t.grado_code,\";\n $sql .= \" t.subject_code,\";\n $sql .= \" t.datec,\";\n $sql .= \" t.tms,\";\n $sql .= \" t.fk_group,\";\n $sql .= \" t.fk_teach_sub,\";\n $sql .= \" concat(u.firstname,' ',u.lastname)as teacher_name,\";\n $sql .= \" s.label as subject_label,\";\n $sql .= \" t.entity\";\n\n\n $sql .= ' FROM ' . MAIN_DB_PREFIX . $table_element . ' as t';\n $sql .= ' INNER JOIN ' . MAIN_DB_PREFIX . 'edcuo_c_asignatura AS s ON subject_code=s.code';\n $sql .= ' INNER JOIN ' . MAIN_DB_PREFIX . 'educo_group as g';\n $sql .= ' INNER JOIN ' . MAIN_DB_PREFIX . 'educo_teacher_subject AS ts ON t.fk_teach_sub=ts.rowid';\n $sql .= ' INNER JOIN ' . MAIN_DB_PREFIX . 'user AS u ON ts.fk_user=u.rowid';\n\n $sql .= ' WHERE 1 = 1';\n $sql .= \" AND ts.fk_academicyear=\" . $academicid;\n $sql .= \" AND g.fk_academicyear=\" . $academicid;\n $sql .= \" AND t.fk_group=\" . $groupid;\n if (!empty($conf->multicompany->enabled)) {\n $sql .= \" AND entity IN (\" . getEntity(\"educohorario\", 1) . \")\";\n }\n\n if (!empty($sortfield)) {\n $sql .= $db->order($sortfield, $sortorder);\n }\n if (!empty($limit)) {\n $sql .= ' ' . $db->plimit($limit + 1, $offset);\n }\n\n $lines = array();\n\n $resql = $db->query($sql);\n if ($resql) {\n $num = $db->num_rows($resql);\n while ($obj = $db->fetch_object($resql)) {\n $lines[$obj->rowid] = $obj;\n }\n $db->free($resql);\n\n return $lines;\n } else {\n $errors[] = 'Error ' . $db->lasterror();\n dol_syslog(__METHOD__ . ' ' . implode(',', $errors), LOG_ERR);\n var_dump($errors);\n return - 1;\n }\n}", "function getGroupWikiList() {\n global $course_id;\n\n $sql = \"SELECT `id`, `title`, `description` \"\n . \"FROM `wiki_properties` \"\n . \"WHERE `group_id` != ?d \"\n . \"AND `course_id` = ?d \"\n . \"ORDER BY `group_id` ASC\";\n\n return Database::get()->queryArray($sql, 0, $course_id);\n }", "function find_all_subjects($options=[]) {\n global $db;\n\n $visible = $options['visible'] ?? false;\n\n // Space is important after subjects for concatenation.\n $sql = \"SELECT * FROM subjects \";\n if($visible) {\n $sql .= \"WHERE visible = true \";\n }\n $sql .=\"ORDER BY position ASC\";\n $result = mysqli_query($db, $sql); \n\n // confirms that the query is executed and data are set in the variable.\n confirm_result_set($result);\n return ($result);\n }", "function getAddedUsers($subject_id)\n \t{\n \t\t$query = \"SELECT GROUP_CONCAT( user_id ) as addedusers\n\t\t\t\t\tFROM subject_educators\n\t\t\t\t\tWHERE subject_id = \".$subject_id.\"\n\t\t\t\t\tGROUP BY subject_id\n\t\t\t\t\t\";\n\t\t$rs = $this->query($query);\n\t\treturn $rs;\n \t}", "public function getStudentsQueryForGroup($group_id) {\n\t\treturn SQLQuery::create()->select(\"StudentGroup\")->whereValue(\"StudentGroup\",\"group\",$group_id);\n\t}", "function find_all_subjects($public = true) {\r\n\t\tglobal $db;\r\n\r\n\t\t$query = \"SELECT * \";\r\n\t\t$query .= \"FROM subjects \";\r\n\t\tif($public) {\r\n\t\t$query .= \"WHERE visible = 1 \";\r\n\t\t}\r\n\t\t$query .= \"ORDER BY position ASC\";\r\n\r\n\t\t$subject_set = mysqli_query($db, $query);\r\n\t\tconfirm_query($subject_set);\r\n\r\n\t\treturn $subject_set;\r\n\t}", "function get_susi_staff_departments_by_faculty($faculty_susi_id) {\r\n // set connection var\r\n global $db;\r\n\r\n //query to get student groups str\r\n $sql = \"SELECT id\r\n FROM groups\r\n WHERE is_active = '1' AND student = '0' AND parent_id = '$faculty_susi_id'\r\n ORDER BY name ASC;\";\r\n\r\n $groups = array();\r\n $departments_groups = array();\r\n foreach ($db->query($sql) as $key => $value) {\r\n $groups[$key] = $value;\r\n foreach ($groups[$key] as $subkey => $subvalue) {\r\n if (is_int($subkey)) {\r\n $departments_groups[] = $subvalue;\r\n }\r\n }\r\n }\r\n\r\n return $departments_groups;\r\n}", "public function getStudentsQueryForGroups($groups_ids, $distinct = true) {\n\t\t$q = SQLQuery::create()->select(\"StudentGroup\")->whereIn(\"StudentGroup\",\"group\",$groups_ids);\n\t\tif ($distinct) $q->distinct();\n\t\treturn $q;\n\t}", "function get_susi_staff_faculties() {\r\n // set connection var\r\n global $db;\r\n\r\n //query to get student groups str\r\n $sql = \"SELECT id\r\n FROM groups\r\n WHERE is_active = '1' AND student = '0' AND parent_id = '0'\r\n ORDER BY name ASC;\";\r\n\r\n $groups = array();\r\n $faculties_groups = array();\r\n foreach ($db->query($sql) as $key => $value) {\r\n $groups[$key] = $value;\r\n foreach ($groups[$key] as $subkey => $subvalue) {\r\n if (is_int($subkey)) {\r\n $faculties_groups[] = $subvalue;\r\n }\r\n }\r\n }\r\n\r\n return $faculties_groups;\r\n}", "public static function getMemberCollection($groupId) {\n $result1 = DB::select(\"SELECT V.user_id, V.participant_id, V.participant_type, \" .\n \"V.name, V.street, V.neighborhood, V.pic_small, V.pic_large, V.description \" . \n \"FROM group_member INNER JOIN view_participant V ON group_member.person_id = V.participant_id \" .\n \"INNER JOIN member ON member.member_id = V.participant_id \" .\n \"WHERE group_member.group_id = ? \" . \n \"AND group_member.watching_only = 0 \" . \n \"AND group_member.approved = 1\", array($groupId));\n $result2 = DB::select(\"SELECT V.user_id, V.participant_id, V.participant_type, \" .\n \"V.name, V.street, V.neighborhood, V.pic_small, V.pic_large, V.description \" . \n \"FROM group_member INNER JOIN view_participant V ON group_member.person_id = V.participant_id \" .\n \"INNER JOIN member ON member.member_id = V.participant_id \" .\n \"WHERE group_member.group_id = ? \" . \n \"AND group_member.watching_only = 1 \" . \n \"\", array($groupId));\n $result3 = DB::select(\"SELECT V.user_id, V.participant_id, V.participant_type, \" .\n \"V.name, V.street, V.neighborhood, V.pic_small, V.pic_large, V.description \" . \n \"FROM group_member INNER JOIN view_participant V ON group_member.person_id = V.participant_id \" .\n \"INNER JOIN member ON member.member_id = V.participant_id \" .\n \"WHERE group_member.group_id = ? \" . \n \"AND group_member.watching_only = 0 \" . \n \"AND group_member.approved = 0\", array($groupId));\n $result = array_merge($result1, $result2, $result3);\n return $result;\n }", "function get_subject_scores(\r\n string $subject,\r\n string $stream,\r\n string $exam, \r\n string $grade\r\n ): string{\r\n return \"select \" \r\n .\" student.name as name ,\"\r\n .\" score.value as score \"\r\n .\" from score \"\r\n .\" inner join allocation on score.allocation=allocation.allocation\"\r\n .\" inner join teacher on teacher.teacher= allocation.teacher\"\r\n .\" inner join subject on teacher.subject=subject.subject\"\r\n .\" inner join student on score.student= student.student\"\r\n .\" inner join progress on progress.student= student.student\" \r\n .\" inner join stage on progress.stage= stage.stage\"\r\n .\" inner join stream on stage.stream= stream.stream\"\r\n .\" inner join grade on stream.grade=grade.grade\"\r\n .\" inner join school on school.school=grade.school\"\r\n .\" inner join term on score.term= term.term\"\r\n .\" where subject.name='$subject'\"\r\n .\" AND school.id='{$this->id}'\"\r\n .\" AND term.name= '$exam'\"\r\n .\" AND stream.name='$stream'\"\r\n .\" AND grade.name= '$grade'\";\r\n }", "function school_list($limit='',$start=0,$condition='')\n{\n\tglobal $DB;\n\t$sql =\"SELECT ms.*,mus.userid,mus.schoolid,mu.firstname,mu.lastname FROM {school} ms left join \";\n\t$sql.=\"(select * from {user_school} where role='incharge') mus on mus.schoolid=ms.id left join {user} mu on mu.id=mus.userid\";\n\t$sql.=\" WHERE ms.activestatus=1 and mu.deleted=0 $condition group by ms.id order by ms.id desc limit $start,$limit \";\n\t$result = $DB->get_records_sql($sql);\n\treturn $result;\n}", "function getUserGroup(){\n\t\t$con = connect();\n\t\t$sql= \"SELECT ID,userGroup FROM user_group\" ;\n \t$stmt = $con->prepare($sql);\n\t\t$stmt->execute();\n\t\t$result = $stmt->fetchAll();\n\t \tforeach($result as $row){\n\t\t\t echo \"<option value=\" .$row['ID'].\">\" . $row['userGroup'] . \"</option>\";\n\t\t\t}\n\t}", "function lightboxgallery_get_participants($galleryid) {\n global $DB, $CFG;\n\n return $DB->get_records_sql(\"SELECT DISTINCT u.id, u.id\n FROM {$CFG->prefix}user u,\n {$CFG->prefix}lightboxgallery_comments c\n WHERE c.gallery = $galleryid AND u.id = c.userid\");\n}", "function dropbox_submitted_students($assignment_id)\n{\n /*/\n * SELECT DISTINCT users.id, COUNT(dropbox_content.filebox_id) AS num_content \n * FROM dropbox_content \n * JOIN users \n * ON users.id = dropbox_content.student_id \n * WHERE dropbox_content.assignment_id = $assignment_id\n /*/\n $query = \"SELECT DISTINCT users.id, COUNT(dropbox_content.id) AS num_content FROM dropbox_content JOIN users ON users.id = dropbox_content.student_id WHERE dropbox_content.assignment_id = $assignment_id\";\n $students = good_query_table($query);\n $ret = array();\n foreach($students as $student)\n $ret[$student['id']] = $student['num_content'];\n return $ret;\n}", "protected function getGroupList() {}", "protected function getGroupList() {}", "function getGroupsMembers($groupID) {\r\n $sql = $this->db->prepare(\"SELECT USER.email FROM USER JOIN GROUPMEMBERS ON USER.UserID=GROUPMEMBERS.UserID WHERE GROUPMEMBERS.groupID=:group_id\");\r\n if($sql->execute(array(\r\n 'group_id' => $groupID,\r\n ))) {\r\n return $sql->fetchall(PDO::FETCH_ASSOC);\r\n }\r\n return false;\r\n }", "function create_option(){\r\n global $link;\r\n $query=\"SELECT * FROM user_group ug\r\n JOIN groups g ON ug.group_id=g.group_id\r\n WHERE user_id='{$_SESSION['id']}'\";\r\n $result=mysqli_query($link,$query);\r\n $i=0;\r\n while($i<mysqli_num_rows($result)){\r\n $rows=mysqli_fetch_array($result);\r\n echo \"\r\n <option value='{$rows['group_id']}'>{$rows['group_name']}</option>\r\n \";\r\n $i++;\r\n }\r\n}", "function membersOf($db,$groupID)\n{\n\t$q = \"select * from acad_object_groups where id = %d\";\n\t$grp = dbOneTuple($db, mkSQL($q, $groupID));\n\n\t$q = \"select member(%d)\";\n\t$res = dbQuery($db, mkSQL($q, $groupID));\n\t$arr = array();\n\twhile ($tuple = dbNext($res)) {\n\t\tarray_push($arr, $tuple[0]); \n\n\t}\n\t$arr = array_unique($arr);\n\t$arr = array_values($arr);\n\tsort($arr);\n\n\treturn array($grp[\"gtype\"], $arr); // stub\n}", "function get_survey_student_groups($survey_id) {\r\n // set connection var\r\n global $db;\r\n\r\n //query to get student groups str\r\n $sql = \"SELECT student_groups\r\n FROM surveys\r\n WHERE is_active = '1' AND id = '$survey_id';\";\r\n\r\n $groups_data = array();\r\n $groups = array();\r\n $survey_groups = array();\r\n foreach ($db->query($sql) as $key => $value) {\r\n $groups_data[$key] = $value;\r\n foreach ($groups_data[$key] as $subkey => $subvalue) {\r\n if (is_int($subkey)) {\r\n $groups[] = $subvalue;\r\n }\r\n }\r\n }\r\n\r\n if (!empty($groups[0])) {\r\n try {\r\n $survey_groups = unserialize($groups[0]);\r\n } catch (ErrorException $e) {\r\n $e->getMessage();\r\n $error = \"Survey: '$survey_groups' student groups: \" . $e;\r\n error($error);\r\n }\r\n }\r\n\r\n return $survey_groups;\r\n}", "public function findUsersByGroup($igid)\n {\n MyLogger2::info(\"Enter InterestGroupDataService.findUsersByGroup()\");\n try\n {\n // Run the Query to find all the Groups available from the Database\n $result = $this->conn->prepare(\"SELECT \n i.USERNAME\n FROM \n users as i\n LEFT JOIN user_interest as u\n ON i.ID = u.users_ID\n LEFT JOIN interest_group as ii\n on u.interest_group_id = ii.ID\n WHERE u.interest_group_ID=:id\");\n // Bind the params with variables:\n $result->bindParam(':id', $igid);\n // Execute the Query\n $result->execute();\n\n MyLogger2::info(\"Exit InterestGroupDataService.findUsersByGroup()\");\n \n // return the result\n return $result->fetchAll();\n }\n catch (PDOException $el)\n {\n MyLogger2::error(\"PDOException in IntGroupDataService.findUsersByGroup(): \", array(\n \"message\" => $el->getMessage()\n ));\n throw new DatabaseException(\"Database Exception: \" . $el->getMessage(), 0, $el);\n }\n catch (Exception $e)\n {\n MyLogger2::error(\"Exception in IntGroupDataService.findUsersByGroup(): \", array(\n \"message\" => $e->getMessage()\n ));\n throw new $e->getMessage();\n }\n }", "abstract protected function getGroupList() ;", "function getAllGroups() {\n return getAll(\"SELECT * FROM `group`\");\n}", "public function view(){\r\r\n $data = $this->db->query('SELECT * FROM klanten INNER JOIN groups, user_group WHERE klanten.klant_id = user_group.klant_id AND groups.group_id = user_group.group_id AND groups.group_id != 3');\r\r\n if($data->num_rows() > 0){\r\r\n foreach($data->result() as $user){\r\r\n $users[] = $user;\r\r\n }\r\r\n return $users;\r\r\n }\r\r\n }", "function getstudentsubject(){ \n $classid = $_GET['classid'];\n $q = \"select * from studentsubject where classid=$classid\";\n $r = mysql_query($q);\n $result = array();\n while($row = mysql_fetch_array($r)){\n $q2 = 'select * from student where id='.$row['studid'].'';\n $r2 = mysql_query($q2);\n $result[] = mysql_fetch_array($r2);\n }\n return $result;\n }", "public function indexForTeacher()\n {\n if(\\Auth::user()->can('see-subjects-for-teacher')){\n $teacherId = \\Auth::user()->id;\n $subjects = Subject::where('teacher_id', \"=\", $teacherId)->get();\n $subjectsIds = array_pluck($subjects, 'id');\n $classroomSubjectTable = [];\n $classroomSubjectIdTable = DB::table('classroom_subject')\n ->select('classroom_id', 'subject_id')\n ->whereIn('subject_id', $subjectsIds)\n ->get();\n\n foreach($classroomSubjectIdTable as $classSub){\n $class = Classroom::find($classSub->classroom_id);\n $subject = Subject::find($classSub->subject_id);\n\n $classroomSubjectTable[$class->name][$subject->name] = $subject;\n }\n\n\n return view('subject.listTeacher', ['classroomSubjectTable' => $classroomSubjectTable]);\n\n\n\n }\n }", "function get_group_users($groupid, $sort='u.lastaccess DESC', $exceptions='',\n $fields='u.*') {\n global $CFG;\n if (!empty($exceptions)) {\n $except = ' AND u.id NOT IN ('. $exceptions .') ';\n } else {\n $except = '';\n }\n // in postgres, you can't have things in sort that aren't in the select, so...\n $extrafield = str_replace('ASC','',$sort);\n $extrafield = str_replace('DESC','',$extrafield);\n $extrafield = trim($extrafield);\n if (!empty($extrafield)) {\n $extrafield = ','.$extrafield;\n }\n return get_records_sql(\"SELECT DISTINCT $fields $extrafield\n FROM {$CFG->prefix}user u,\n {$CFG->prefix}groups_members m\n WHERE m.groupid = '$groupid'\n AND m.userid = u.id $except\n ORDER BY $sort\");\n}", "public function getMulti( $ids ){\n\n // $IdPlaceholders = trim( str_repeat('?,', count($ids) ), ',' );\n\n $ids = join(',', $ids);\n\n $sql = \"\n SELECT\n tc.*,\n tcp.id AS challenge_id,\n tcp.user_id AS challenger_id,\n tcp.img AS challenger_img,\n tcp.joined as joined\n FROM `hotornot-dev`.tblChallenges AS tc\n LEFT JOIN `hotornot-dev`.tblChallengeParticipants AS tcp\n ON tc.id = tcp.challenge_id\n WHERE tc.id IN ( $ids )\n ORDER BY tcp.joined\";\n\n $stmt = $this->prepareAndExecute( $sql );\n\n //$params = array( $ids );\n //$stmt = $this->prepareAndExecute( $sql, $params );\n\n $data = $stmt->fetchAll( PDO::FETCH_CLASS, 'stdClass' );\n }", "function timeconditions_timegroups_get_group($timegroup) {\n\tglobal $db;\n\n\t$sql = \"select id, description from timegroups_groups where id = $timegroup\";\n\t$results = $db->getAll($sql);\n\tif(DB::IsError($results)) {\n \t\t$results = null;\n\t}\n\t$tmparray = array($results[0][0], $results[0][1]);\n\treturn $tmparray;\n}", "function getDocmanGroupMembers($group_id) {\n\n\t\t$db = JFactory::getDbo();\n\n\t\t$query = $db -> getQuery(true);\n\n\t\t$query -> select('groups_members');\n\t\t$query -> from('#__docman_groups');\n\t\t$query -> where('groups_id = ' . $db -> quote($group_id));\n\n\t\t$db -> setQuery($query);\n\n\t\t$result = $db -> result();\n\t\n\t\t$result = explode(',', $result);\n\t\treturn $result;\n\n\t}", "function getGroupRideIDsForUser($mysqli,$userID){\r\n $result = $mysqli->query(\"SELECT Group_ID FROM group_members WHERE isAccepted = 1 AND Member_ID = \".$userID.\"\");\r\n $groupIDs = array();\r\n\r\n $k=0;\r\n while($row = $result->fetch_row()){\r\n $groupIDs[$k] = \" GroupID = \".$row[0];\r\n $k++;\r\n }\r\n\r\n\r\n\r\n $result->close();\r\n\r\n $groups = array();\r\n\r\n if(sizeof($groupIDs) > 0){\r\n $result = $mysqli->query(\"SELECT RideID FROM multi_rider_rides WHERE (\".implode(\" OR \", $groupIDs).\")\");\r\n }else{\r\n return $groups;\r\n }\r\n\r\n $i=0;\r\n while($row = $result->fetch_row()){\r\n $groups[$i] = \"(RideID = \".$row[0].\")\";\r\n $i++;\r\n }\r\n return $groups;\r\n }", "public function getGroupsList(){\n return $this->_get(3);\n }", "function get_smsstudents_by_ids($inputarray = array()) {\n $sql = \"select * from student_records where id in(\" . implode(',', $inputarray) . \")\";\n //log_message('error', 'get_smsstudents_by_ids '.$sql);\t\t\n $res = $this->db->query($sql);\n return $res->result();\n }", "function groups_get_potential_members($courseid, $roleid = null, $orderby = 'lastname,firstname') {\n global $CFG;\n\n $context = get_context_instance(CONTEXT_COURSE, $courseid);\n $sitecontext = get_context_instance(CONTEXT_SYSTEM);\n $rolenames = array();\n $avoidroles = array();\n\n if ($roles = get_roles_used_in_context($context, true)) {\n\n $canviewroles = get_roles_with_capability('moodle/course:view', CAP_ALLOW, $context);\n $doanythingroles = get_roles_with_capability('moodle/site:doanything', CAP_ALLOW, $sitecontext);\n\n foreach ($roles as $role) {\n if (!isset($canviewroles[$role->id])) { // Avoid this role (eg course creator)\n $avoidroles[] = $role->id;\n unset($roles[$role->id]);\n continue;\n }\n if (isset($doanythingroles[$role->id])) { // Avoid this role (ie admin)\n $avoidroles[] = $role->id;\n unset($roles[$role->id]);\n continue;\n }\n $rolenames[$role->id] = strip_tags(role_get_name($role, $context)); // Used in menus etc later on\n }\n }\n\n $select = 'SELECT u.id, u.username, u.firstname, u.lastname, u.idnumber ';\n $from = \"FROM {$CFG->prefix}user u INNER JOIN\n {$CFG->prefix}role_assignments r on u.id=r.userid \";\n\n if ($avoidroles) {\n $adminroles = 'AND r.roleid NOT IN (';\n $adminroles .= implode(',', $avoidroles);\n $adminroles .= ')';\n } else {\n $adminroles = '';\n }\n\n // we are looking for all users with this role assigned in this context or higher\n if ($usercontexts = get_parent_contexts($context)) {\n $listofcontexts = '('.implode(',', $usercontexts).')';\n } else {\n $listofcontexts = '('.$sitecontext->id.')'; // must be site\n }\n\n if ($roleid) {\n $selectrole = \" AND r.roleid = $roleid \";\n } else {\n $selectrole = \" \";\n }\n\n $where = \"WHERE (r.contextid = $context->id OR r.contextid in $listofcontexts)\n AND u.deleted = 0 $selectrole\n AND u.username != 'guest'\n $adminroles \";\n $order = \"ORDER BY $orderby \";\n\n return(get_records_sql($select.$from.$where.$order));\n\n}", "public static function getAll(){\n $conn = DataManager::getInstance()->getConnection();\n if(!$conn || $conn->connect_error) exit();\n $statement = $conn->prepare('SELECT `id` FROM `groups` WHERE 1');\n if(!$statement || !$statement->execute()) exit();\n $result_set = $statement->get_result();\n $group_ids = array();\n while($row = $result_set->fetch_assoc()){\n array_push($group_ids, $row['id']);\n }\n $output = array();\n foreach($group_ids as $id){\n array_push($output, self::fromId($id));\n }\n return $output;\n }", "function groups_get_users_not_in_group_by_role($courseid, $groupid, $searchtext='', $sort = 'u.lastname ASC') {\n\n global $CFG;\n $context = get_context_instance(CONTEXT_COURSE, $courseid);\n\n if ($searchtext !== '') { // Search for a subset of remaining users\n $LIKE = sql_ilike();\n $FULLNAME = sql_fullname();\n $wheresearch = \" AND u.id IN (SELECT id FROM {$CFG->prefix}user WHERE $FULLNAME $LIKE '%$searchtext%' OR email $LIKE '%$searchtext%' )\";\n } else {\n $wheresearch = '';\n }\n\n/// Get list of allowed roles \n if(!($validroleids=groups_get_possible_roles($context))) {\n return;\n }\n \n $roleids = '('.implode(',', $validroleids).')';\n\n/// Construct the main SQL\n $select = \" SELECT r.id AS roleid,r.shortname AS roleshortname,r.name AS rolename,\n u.id AS userid, u.firstname, u.lastname\";\n $from = \" FROM {$CFG->prefix}user u\n INNER JOIN {$CFG->prefix}role_assignments ra ON ra.userid = u.id\n INNER JOIN {$CFG->prefix}role r ON r.id = ra.roleid\";\n\n $where = \" WHERE ra.contextid \".get_related_contexts_string($context).\"\n AND u.deleted = 0\n AND ra.roleid in $roleids\n AND u.id NOT IN (SELECT userid\n FROM {$CFG->prefix}groups_members\n WHERE groupid = $groupid)\n $wheresearch\";\n $orderby = \" ORDER BY $sort\";\n\n return groups_calculate_role_people(get_recordset_sql(\n $select.$from.$where.$orderby),$context);\n}", "public function getGroupsList(){\n return $this->_get(4);\n }", "public function getGroupsList(){\n return $this->_get(4);\n }", "private function getResultsIDs($gid)\n\t{\n\t\t$arr = array();\n\t\t$sid = $_SESSION['uid'];\n\t\t$db = Db::getLink();\n\t\t$stmt = $db->prepare(\n\t\t\t\"SELECT `results`.`id`, `assessment`.`isDraft`\n\t\t\tFROM `results`\n\t\t\tLEFT JOIN `assessment` ON `assessment`.`id` = `results`.`aid`\n\t\t\tWHERE `results`.`sid` = ? AND `assessment`.`moid` IN\n\t\t\t(SELECT `group`.`moid` FROM `group` WHERE `group`.`id` = ?);\"\n\t\t);\n\t\t$stmt->bind_param('ii', $sid, $gid);\n\t\t$stmt->execute();\n\t\t$stmt->bind_result($id, $isDraft);\n\t\twhile ($stmt->fetch()) {\n\t\t\tif($isDraft) {\n\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$arr[$id] = $id;\n\t\t\t}\n\t\t}\n\t\treturn $arr;\n\t}", "public function group_list()\n\t{\n\t\t$data = [\n\t\t\t'group' => $this->todo->get_group_list((int) $this->session->userdata('uid'))\n\t\t];\n\t\t$this->page->set_title(\"Group List\");\n\t\t$this->page->build('friend/group_list', $data);\n\t}", "public static function ADMIN_POST_GET_POST_GROUPS(){\n\t $SQL_String = \"SELECT ug_code,ug_name,ug_pri FROM user_group WHERE 1 ORDER BY ug_pri DESC,ug_no ASC;\";\n\t return $SQL_String;\n\t}", "function getMemberGroupInfo() {\n global $inputs;\n\n if (empty($inputs)) {\n $mid = getLogin()['mid'];\n } else {\n $mid = $inputs['id'];\n }\n\n $res = getAll(\"SELECT b.*,a.id AS union_id \n FROM member_group a \n INNER JOIN `group` b \n ON a.group_id = b.id \n WHERE a.member_id = ?\", [$mid]);\n\n if (empty($inputs)) {\n return $res;\n } else {\n formatOutput(true, 'success', $res);\n }\n}", "public function SubGroups($group_id = \"\")\n {\n if ($group_id == \"\")\n redirect(base_url($this->_seg) . \"/whatsapp/groups\");\n $limit = (isset($_GET[\"limit\"]) ? trim($_GET[\"limit\"]) : 25);\n $page = (isset($_GET[\"page\"]) ? trim($_GET[\"page\"]) : 0);\n $search = (isset($_GET[\"search_word\"]) ? trim($_GET[\"search_word\"]) : \"\");\n $data[\"search\"] = $search;\n $data[\"page_num\"] = $page;\n $data[\"limit\"] = $limit;\n $groups = $this->mnumbers->getUserSubGroups($this->USER_ID, $group_id, $limit, $limit * $page, $search);\n $data[\"groups\"] = $groups;\n $data[\"group_id\"] = $group_id;\n $data[\"all_groups\"] = $this->mnumbers->getUserMainGroups($this->USER_ID);\n $data[\"target\"] = \"sub_groups\";\n if (isset($_POST[\"submit\"])) {\n if ($_POST[\"action\"] == \"\") {\n $this->session->set_flashdata(array(\n \"msg\" => - 1,\n \"message\" => lang(\"no_action\")\n ));\n redirect($this->REFERER, \"refresh\");\n }\n $action_groups = null;\n if (isset($_POST[\"check_all\"])) {\n $action_groups = $this->mnumbers->getUserSubGroups($this->USER_ID);\n $action_groups = $action_groups[\"results\"];\n } else {\n $action_groups = (isset($_POST[\"checks\"]) ? $_POST[\"checks\"] : false);\n }\n if ($action_groups != null) {\n foreach ($action_groups as $group) {\n $group1 = (isset($_POST[\"check_all\"]) ? $group->id : $group);\n switch ($_POST[\"action\"]) {\n case \"delete\":\n $this->mnumbers->deleteUserGroup($this->USER_ID, $group1);\n break;\n case \"empty\":\n $this->mnumbers->emptyUserGroup($this->USER_ID, $group1);\n break;\n }\n }\n $this->session->set_flashdata(array(\n \"msg\" => 1\n ));\n redirect($this->REFERER, \"refresh\");\n } else {\n $this->session->set_flashdata(array(\n \"msg\" => - 1,\n \"message\" => lang(\"no_checks\")\n ));\n redirect($this->REFERER, \"refresh\");\n }\n } else {\n $this->load->view(\"site/cp/index\", $data);\n }\n }", "function get_group_student_names( $group_id ) {\n\t$uc_students = get_post_meta( $group_id, 'students', true );\n\n\t$i = 0;\n\t$student_names = '';\n\twhile ( $i < count($uc_students) ) {\n\t\t$student_names .= get_student_name( $uc_students[$i] );\n\t\t$i++;\n\t\tif ( $i < count($uc_students) )\n\t\t\t$student_names .= ', ';\n\t}\n\treturn $student_names;\n}", "public function groupIds();", "private function _show_list_of_groups() {\n // show groups of current user\n // create group button\n $this->load->model('membership_model');\n \n $user_id = $this->session->userdata('user')['id'];\n\n $where = array(\n 'm.user_id' => $user_id,\n 'm.status' => 1,\n 'g.status' => 1\n );\n \n $groups = $this->membership_model->fetch($where);\n\n // 1 is owner\n $where['m.type'] = 1;\n // allow status 2 for my groups for hidden\n // 0 is deleted\n unset($where['g.status']);\n $where['g.status !='] = 0;\n $my_groups = $this->membership_model->fetch($where);\n \n // membership type 2 is normal member\n $where['m.type'] = 2;\n $where['g.status'] = 1;\n $other_groups = $this->membership_model->fetch($where);\n\n // can be any type for invited\n unset($where['m.type']);\n $where['m.status'] = 2;\n $invited_groups = $this->membership_model->fetch($where);\n \n $data = array(\n 'title' => 'Groups',\n 'msg' => $this->session->flashdata('msg'),\n 'groups' => $groups,\n 'my_groups' => $my_groups,\n 'other_groups' => $other_groups,\n 'invited_groups' => $invited_groups\n );\n $this->_view(\n array('templates/nav', 'pages/dashboard/groups', 'alerts/msg'),\n array_merge($this->_nav_items, $data)\n );\n }", "public function member_group_query($groups, $max = null, $start = 0)\n {\n $_groups = '';\n foreach ($groups as $group) {\n if ($_groups != '') {\n $_groups .= ' OR ';\n }\n $_groups .= 'u.usergroup=' . strval($group);\n }\n if ($_groups == '') {\n return array();\n }\n\n return $this->connection->query('SELECT * FROM ' . $this->connection->get_table_prefix() . 'users u LEFT JOIN ' . $this->connection->get_table_prefix() . 'usergroups g ON u.usergroup=g.gid WHERE ' . $_groups . ' ORDER BY u.usergroup ASC', $max, $start, false, true);\n }", "function getAdminGroupIds($user_account_team_ids, $permissions){\n\t\n\t$team_ids = [];\n\t\n\tif (auth()->user()->hasRole('superadministrator')){\n\n\t\t$team_ids = $user_account_team_ids;\n\n\t} else {\n\t\t\n\t\tforeach ($user_account_team_ids as $team_id) {\n\t //if permissions is an array\n\t if (is_array($permissions)) {\n\t\t if (auth()->user()->can($permissions, $team_id, true)){\n\t\t\t $team_ids[] = $team_id;\n\t\t\t }\n\t\t\t} else {\n\t\t\t\t//check single permission\n\t\t\t\tif (auth()->user()->can($permissions, $team_id)){\n\t\t\t $team_ids[] = $team_id;\n\t\t\t }\n\t\t\t}\n\t }\n\n\t} \n\n return $team_ids;\n\n}", "function load_room_groups($options=array())\n{\n\tglobal $db;\n\n\t$where = \"WHERE 1\";\n\n\tif(isset($options['sort asc']))\n\t\t$sort = \"ORDER BY \".$options['sort asc'];\n\telse if(isset($options['sort desc']))\n\t\t$sort = \"ORDER BY \".$options['sort desc'];\n\telse\n\t\t$sort = \"ORDER BY ordering,name\";\n\n\n\t// load room_groups\n\t$select = \"SELECT * FROM room_groups $where AND active LIKE '1' $sort\";\n\t//print(\"select: $select<br>\\n\");\n\t$res = $db->query($select);\n\t$all_room_groups = array();\n\twhile($res->fetchInto($room_group))\n\t{\n\t\t$all_room_groups[$room_group->id] = $room_group;\n\t}\n\treturn($all_room_groups);\n}", "protected function _get_usergroup_list()\n {\n $results = $this->connection->query('SELECT gid,title FROM ' . $this->connection->get_table_prefix() . 'usergroups');\n $mod_results = array();\n foreach ($results as $key => $value) {\n $mod_results[] = array('group_id' => $value['gid'], 'group_name' => $value['title']);\n }\n $results2 = collapse_2d_complexity('group_id', 'group_name', $mod_results);\n return $results2;\n }", "public function list_all_by_group_id($group_id = null){\n\t\t$this->paginate['conditions'] = array(\n\t\t\t\t'AND'=>array(\n\t\t\t\t\t\t'Enquiry.group_id'=>$group_id,\n\t\t\t\t\t\t'Enquiry.is_applicant'=>0,\n\t\t\t\t\t\t'Enquiry.status'=>NORMAL\n\t\t\t\t\t) \n\t\t\t);\t\n\t\t$this->set('data',$this->paginate('Enquiry'));\n\t\t$this->set('is_applicant',0);\n\t\t$this->set('by_group_id',$group_id);\n\t\t$this->render('list_all');\n\t\treturn;\n\t}", "public function getGroupsList(){\n return $this->_get(1);\n }", "function GetSubjectGroups($group_id = null){\r\n\t\t\t$groups = null;\r\n\r\n\t\t\tif($this->conn == null){\r\n\t\t\t\t$error = \"No defined connection.\";\r\n\t\t\t\treturn null;\r\n\t\t\t} else {\r\n\r\n\t\t\t\t$conn = $this->conn;\r\n\r\n\t\t\t\t$query = \"SELECT SubjectGroupID, Description FROM `sch-subject_group` \";\r\n\r\n\t\t\t\tif($group_id != null){\r\n\t\t\t\t\t$query .= \"WHERE \";\r\n\t\t\t\t\t$query .= \"SubjectGroupID=\";\r\n\t\t\t\t\t$query .= $group_id;\r\n\t\t\t\t\t$query .= \" \";\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$query .= \"ORDER BY Description \";\r\n\r\n\t\t\t\t$result = $conn->query($query);\r\n\r\n\t\t\t\t//check for errors first\r\n\t\t\t\tif($conn->error <> \"\"){\r\n\t\t\t\t\t$this->error = $conn->error;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$groups = array();\r\n\t\t\t\t\t$ctr = 0;\r\n\t\t\t\t\tif($result->num_rows > 0){\r\n\t\t\t\t\t\twhile($row = $result->fetch_assoc()){\r\n\t\t\t\t\t\t\t$groups[$ctr] = new SubjectGroup($row['SubjectGroupID'], $row['Description']);\r\n\t\t\t\t\t\t\t$ctr++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn $groups;\r\n\t\t}", "abstract public function findRelatedRecordsBySubject(): array;", "function getBatchesWithTeacherID($teacherId, $conn){\n $res = mysqli_query($conn, \"select pk_id, batch_id from tbl_batch where teacherId = $teacherId\");\n if (!$res) {\n printf(\"Error: %s\\n\", mysqli_error($conn));\n exit();\n }\n return $res;\n}", "function show_visible_groups($course, $listmembers, $listgroups, $filerefphp) {\t\r\n\t// Print out the selection boxes and fill with groups/members\r\n\techo \"<tr><td width=\\\"45%\\\" align=\\\"center\\\"><form name=\\\"form2\\\" id=\\\"form2\\\">\r\n\t\t<input type=\\\"hidden\\\" name=\\\"id\\\" value=\\\"$course->id\\\"><select name=\\\"groups\\\" size=\\\"15\\\" onChange=\\\"updateMembers(this)\\\" multiple>\";\r\n\tif (!empty($listgroups)) {\r\n\t\tforeach ($listgroups as $id => $listgroup) {\r\n\t\t\t$selected = '';\r\n\t\t\tif ($id == $selectedgroup) {\r\n\t\t\t $selected = 'selected=\"selected\"';\r\n\t\t\t}\r\n\t\t\techo \"<option $selected value=\\\"$id\\\">$listgroup</option>\";\r\n\t\t}\r\n\t}\r\n\techo \"</select></form></td>\";\r\n\t$sharestring = get_string('share', 'block_shared_files');\r\n\techo \"<td width=\\\"10%\\\" align=\\\"center\\\"><form name=\\\"formx\\\" id=\\\"formx\\\" method=\\\"post\\\" action=\\\"$filerefphp\\\">\";\r\n\techo \"<input type=\\\"hidden\\\" name=\\\"grpid\\\" value=\\\"\\\"><INPUT TYPE=\\\"hidden\\\" NAME=\\\"bookid\\\" VALUE=\\\"$bookid\\\"><input type=\\\"hidden\\\" name=\\\"id\\\" value=\\\"$course->id\\\"><input name=\\\"gshare\\\" type=\\\"submit\\\" value=\\\"$sharestring\\\"></form></td>\";\t\r\n\techo \"<td width=\\\"45%\\\" align=\\\"center\\\"><form name=\\\"form3\\\" id=\\\"form3\\\">\r\n <input type=\\\"hidden\\\" name=\\\"id\\\" value=\\\"$course->id\\\">\r\n <select name=\\\"members[]\\\" size=\\\"15\\\">\";\r\n if (!empty($members)) {\r\n \tforeach ($members as $id => $membername) {\r\n \techo \"<option value=\\\"$id\\\">$membername</option>\";\r\n \t}\r\n\t}\r\n echo \"</select></form></td></tr>\";\r\n}", "function get_group_by_name($group_name) {\r\n // set connection var\r\n global $db;\r\n\r\n //query to get all associated groups\r\n $sql = \"SELECT id\r\n FROM groups\r\n WHERE is_active = '1'\r\n AND local = '0'\r\n AND name = '$group_name'\r\n ORDER BY name ASC;\";\r\n\r\n $groups_data = array();\r\n $groups = array();\r\n\r\n foreach ($db->query($sql) as $key => $value) {\r\n $groups_data[$key] = $value;\r\n foreach ($groups_data[$key] as $subkey => $subvalue) {\r\n if (is_int($subkey)) {\r\n $groups[] = $subvalue;\r\n }\r\n }\r\n }\r\n\r\n return $groups;\r\n}", "function get_groups($ids = array(), $skip_registered = true) {\n\tif(!defined(\"SCOPER_VERSION\")) {\n\t\treturn null;\n\t}\n\n\t$where = array();\n\n\tif(count($ids) > 0) {\n\t\t$where[] = \"group_id IN(\".implode(\",\",$ids).\")\";\n\t}\n\n\tif($skip_registered) {\n\t\t$where[] = \"group_id != 1\";\n\t}\n\n\tif(count($where) > 0) {\n\t\t$where_str = \"WHERE \" . implode(\" AND \", $where);\n\t}\n\n\tglobal $wpdb;\n\t$sql = \"SELECT group_id, name FROM it_groups_group $where_str ORDER BY group_id\";\n\t$res = $wpdb->get_results($sql);\n\n\treturn $res;\n}", "function ajax_get_all_groups() {\r\n global $wpdb;\r\n\r\n $groups = $this->get_groups();\r\n\r\n if ( is_array( $groups ) && 0 < count( $groups ) ) {\r\n\r\n $i = 0;\r\n $n = ceil( count( $groups ) / 5 );\r\n\r\n $html = '';\r\n $html .= '<ul class=\"clients_list\">';\r\n\r\n\r\n\r\n foreach ( $groups as $group ) {\r\n if ( $i%$n == 0 && 0 != $i )\r\n $html .= '</ul><ul class=\"clients_list\">';\r\n\r\n $html .= '<li><label>';\r\n $html .= '<input type=\"checkbox\" name=\"groups_id[]\" value=\"' . $group['group_id'] . '\" /> ';\r\n $html .= $group['group_id'] . ' - ' . $group['group_name'];\r\n $html .= '</label></li>';\r\n\r\n $i++;\r\n }\r\n\r\n $html .= '</ul>';\r\n } else {\r\n $html = 'false';\r\n }\r\n\r\n die( $html );\r\n\r\n }", "function get_user_groups($id)\r\n\t{\r\n\t\t$this->db->select(\"groups.id, groups_descriptions_language.name, groups_year.start_year, groups_year.stop_year, groups_year_members.*\");\r\n\t\t$this->db->from(\"groups_year_members\");\r\n\t\t$this->db->join(\"groups_year\", \"groups_year_members.groups_year_id = groups_year.id\", \"\");\r\n\t\t$this->db->join(\"groups_descriptions_language\", \"groups_year.groups_id = groups_descriptions_language.groups_id\", \"\");\r\n\t\t$this->db->join(\"groups\", \"groups_year.groups_id = groups.id\", \"\");\r\n\t\t$this->db->where(\"groups_year_members.user_id\", $id);\r\n\t\t$this->db->order_by(\"groups_year.stop_year\", \"asc\");\r\n\r\n\t\t$query = $this->db->get();\r\n\t\t$result = $query->result();\r\n\r\n\t\treturn $result;\r\n\t}", "function get_all_level_subjects()\n {\n $this->db->select('*');\n $this->db->from('level_subjects');\n $this->db->join('subjects', 'subjects.id = level_subjects.subjects_id');\n $this->db->join('academic_levels', 'academic_levels.id = level_subjects.level_id');\n return $this->db->get()->result_array();\n \n $this->db->order_by('id', 'desc');\n return $this->db->get('level_subjects')->result_array();\n }", "function addUsersToGroup($group_id, $user_ids){\n\n}", "function allGroupsIn($username, $permission){\n \t$con = new mysqli('localhost','heng','@powell135','200ok');\n \tif ($con -> connect_errno){\n \t\treturn CONNECTION_FAIL;\n \t}\n//\t$permission = MANAGER;\n\t$status = CONFIRMED;\n \t$query = \"select jnjn_group.groupid,name from jnjn_group inner join jnjn_user_group on jnjn_group.groupid=jnjn_user_group.groupid where username='$username' and status='$status' and permission='$permission'\";\n \t$result = $con -> query($query);\n \t$groupids = array();\n \twhile($row = mysqli_fetch_array($result)){\n \t\t$groupids[$row['name']] = $row['groupid'];\n \t}\n \t$result -> close();\n \treturn $groupids;\n }", "function getWikiListByGroup($groupId) {\n global $course_id, $is_editor;\n\n if ($is_editor) {\n $extra = \"\";\n } else {\n $extra = \"AND visible = 1\";\n }\n $sql = \"SELECT id, title, description, visible\n FROM wiki_properties\n WHERE group_id = ?d\n AND course_id = ?d $extra\n ORDER BY `id` DESC\";\n\n return Database::get()->queryArray($sql, $groupId, $course_id);\n }", "public function indexForTeacher()\n {\n if(\\Auth::user()->can('see-grades-for-teacher')){\n $teacherId = \\Auth::user()->id;\n $subjects = Subject::where('teacher_id', \"=\", $teacherId)->get();\n $subjectsIds = array_pluck($subjects, 'id');\n $grades = Grade::whereIn('subject_id', $subjectsIds)->get();\n $users = User::all();\n $students = [];\n foreach($users as $user){\n if($user->hasRole('Student')){\n $students[$user->id] = $user;\n }\n }\n\n\n return view('subject.listTeacher')->withGrades($grades)->withStudents($students);\n\n\n\n }\n }", "function getMembersOfGroup($group_id) {\n\n\t\t$db = JFactory::getDbo();\n\n\t\t$query = $db -> getQuery(true);\n\t\t$query -> select(array('memberid'));\n\t\t$query -> from('#__community_groups_members');\n\t\t$query -> where('groupid = ' . $db -> quote($group_id));\n\t\t$query -> where(\"approved = '1'\");\n\n\t\t$db -> setQuery($query);\n\n\t\t// Load the results as a list of stdClass objects.\n\t\t$members = $db -> loadResultArray();\n\n\t\treturn $members;\n\t}", "public function dataGrid(array $students)\n\t{\n\t\t$select = $this->select(self::SELECT_WITH_FROM_PART)->setIntegrityCheck(false);\n\t\t$select->joinInner('core_exam_management', 'exam_management_id = exam_student_exam_management');\n\t\t$select->joinInner('core_exam', 'exam_id = exam_management_exam');\n\t\t$select->joinInner('core_subject', 'exam_subject = subject_id');\n\t\t$select->where('exam_status = ?', 1);\n\t\t$select->where('exam_student_student IN (?)', $students);\n\t\t$select->order(array('exam_student_executed ASC'));\n\t\t\n\t\treturn $select;\n\t}", "public function getGroupsParrain()\n {\n $sql = 'SELECT `id_group`, `name`, `id_employee` FROM `' . _DB_PREFIX_ . 'group_lang` WHERE `id_lang` = \"'\n . (int)$this->lang . '\"';\n $groups = Db::getInstance()->executeS($sql);\n\n return $groups;\n }", "public function selectAllGroupIDs()\n {\n $result = $this->sdb->query(\"select id from appuser_group order by label\", array());\n $all = array();\n while($row = $this->sdb->fetchrow($result))\n {\n array_push($all, $row['id']);\n }\n return $all;\n }", "public function get_students_in_course($courseid, $userid, array $groups = null, $groupid = 0, $limitfrom = 0, $limitnum = 0) {\n global $DB;\n\n // group restriction\n $group_restrict_table = empty($groups) ? '' : 'INNER JOIN {groups_members} gm1 ON ra.userid = gm1.userid';\n $group_restrict_where = empty($groups) ? '' : 'WHERE gm1.groupid IN (' . implode(',', $groups) . ')';\n\n // group filter\n $group_filter = empty($groupid) ? '' : 'INNER JOIN {groups_members} gm2 ON ra.userid = gm2.userid AND gm2.groupid = ?';\n\n // query\n $sql = <<<SQL\n SELECT u.id, u.firstname, u.lastname\n FROM {role_assignments} ra\n INNER JOIN {user} u ON ra.userid = u.id AND u.deleted = 0\n INNER JOIN {role} r ON ra.roleid = r.id AND r.shortname = ?\n INNER JOIN {context} c ON ra.contextid = c.id AND c.contextlevel = ? AND c.instanceid = ?\n $group_restrict_table\n $group_filter\n $group_restrict_where\n UNION\n SELECT u.id, u.firstname, u.lastname\n FROM {user} u WHERE u.id = ? AND u.deleted = 0\n ORDER BY 2, 3\nSQL;\n\n // parameters\n $params = array(\n 'student',\n CONTEXT_COURSE,\n $courseid,\n );\n\n // group filter parameter\n if (!empty($group_filter)) {\n $params[] = $groupid;\n }\n\n // specific user parameter\n $params[] = $userid;\n\n // return records\n $results = $DB->get_records_sql($sql, $params, $limitfrom, $limitnum);\n $retval = [];\n foreach ($results as $result) {\n $retval[] = $this->_student_obj_to_array($result, $userid);\n }\n return $retval;\n }", "function groups_get_members_by_role($groupid, $courseid, $fields='u.*', $sort='u.lastname ASC') {\n global $CFG;\n\n // Retrieve information about all users and their roles on the course or\n // parent ('related') contexts \n $context=get_context_instance(CONTEXT_COURSE,$courseid);\n $rs=get_recordset_sql($crap=\"SELECT r.id AS roleid,r.shortname AS roleshortname,r.name AS rolename,\n u.id AS userid,$fields\n FROM {$CFG->prefix}groups_members gm\n INNER JOIN {$CFG->prefix}user u ON u.id = gm.userid\n INNER JOIN {$CFG->prefix}role_assignments ra \n ON ra.userid = u.id \n INNER JOIN {$CFG->prefix}role r ON r.id = ra.roleid\n WHERE gm.groupid='$groupid'\n AND ra.contextid \".get_related_contexts_string($context).\"\n ORDER BY r.sortorder,$sort\");\n\n return groups_calculate_role_people($rs,$context);\n}", "public function lists($academygrp_id=null){\n $data = $this->StudyCentre->find('list',array('conditions'=>array('StudyCentre.academic_group_id'=>$academygrp_id)));\n // $data = $data1 + $data2;\n \n $this->_serialized(compact('data'));\n }" ]
[ "0.61628", "0.5983135", "0.55764073", "0.5541239", "0.5514815", "0.5485907", "0.54461056", "0.5389674", "0.53742486", "0.5366426", "0.5351497", "0.5351254", "0.53006124", "0.5283523", "0.5272991", "0.522875", "0.5227366", "0.52162355", "0.52103424", "0.52053165", "0.5202081", "0.5181399", "0.51661015", "0.51542616", "0.51537144", "0.5153533", "0.5153279", "0.5143238", "0.5122456", "0.5105724", "0.50865656", "0.50715864", "0.50672686", "0.5063565", "0.5047547", "0.5041571", "0.50291324", "0.50281096", "0.50234514", "0.5018805", "0.5015575", "0.5013038", "0.50111085", "0.50111085", "0.49933314", "0.49893057", "0.49819803", "0.4972281", "0.49662778", "0.49654207", "0.49630076", "0.49586025", "0.49560234", "0.49548745", "0.49506336", "0.49473944", "0.4944667", "0.49405926", "0.4940329", "0.4939367", "0.49364376", "0.49351782", "0.49348536", "0.49311307", "0.49303204", "0.49303204", "0.49296662", "0.4927593", "0.49258816", "0.49244887", "0.49177843", "0.4904961", "0.4886385", "0.48863378", "0.4885085", "0.48823366", "0.48670363", "0.4865066", "0.48573413", "0.4846408", "0.48462746", "0.484434", "0.4828335", "0.4820704", "0.4820274", "0.48158866", "0.48130402", "0.48129386", "0.48108262", "0.48098785", "0.48096177", "0.48055753", "0.4801584", "0.479893", "0.47969693", "0.47939196", "0.47914073", "0.47906268", "0.47903058", "0.47829795" ]
0.6098761
1
constructor receives container instance
public function __construct($view = null) { parent::__construct(); $this->view = $view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct(Container $container);", "public function __construct(Container $container);", "public function __construct($container){\n $this->container = $container;\n }", "public function __construct($container) {\n $this->container = $container;\n }", "public function __construct(Container $container) {\n\t\t\t$this->container = $container;\n\t\t}", "public function __construct($container)\n {\n $this->container = $container;\n }", "public function __construct($container)\n {\n $this->container = $container;\n }", "public function __construct(){\n $this->container = new Container();\n }", "public function __construct(ContainerInterface $container);", "public function __construct(ContainerInterface $container);", "public function __construct(Container $container) {\n $this->container = $container;\n }", "public function __construct(Container $container)\n {\n $this->container = $container;\n }", "public function __construct(Container $container)\n {\n $this->container = $container;\n }", "public function __construct(Container $container)\n {\n $this->container = $container;\n }", "public function __construct(Container $container)\n {\n $this->container = $container;\n }", "public function __construct(Container $container)\n {\n $this->container = $container;\n }", "public function __construct(Container $container)\n {\n $this->container = $container;\n }", "public function __construct(public Container $container)\n {\n $this->container = $container;\n }", "public function __construct(ContainerInterface $container)\n {\n //Set stuff\n $this->container = $container;\n }", "public function __construct(Container $container)\n {\n parent::__construct();\n $this->container = $container;\n }", "public function __construct(Container $container) {\n parent::__construct($container);\n $this->_container = $container->get(TimerContainer::class);\n }", "public function __construct(ContainerInterface $container)\n {\n // Assign given container instance to member variable\n $this->container = $container;\n }", "public function __construct(Container $container = null)\r\n {\r\n $this->container = $container;\r\n }", "public function __construct(ContainerInterface $container)\r\n\t{\r\n\t\t$this->container = $container;\r\n\t}", "public function __construct()\n {\n $this->rota = new url;\n $this->last_module = '';\n $container = new \\vendor\\container;\n $container = (object)$container->container;\n $this->container= $container;\n }", "public function __construct(\\Slim\\Container $container)\n {\n $this->container = $container;\n }", "public function __construct()\n\t{\n\t\t$this->container \t = array();\n\t\t$this->hiddenContainer = array();\n\t}", "public function __construct(array $container)\n {\n $this->container = $container;\n }", "public function __construct(\\Slim\\Container $container) {\n $this->container = $container;\n $this->entityManager = $container['em'];\n $this->logger = $container['logger'];\n }", "public function __construct(ContainerInterface $container) {\n $this->container = $container;\n }", "public function __construct(ContainerInterface $container) {\n $this->container = $container;\n }", "public function __construct(ContainerInterface $container) {\n $this->container = $container;\n }", "public function __construct(ContainerInterface $container)\n {\n $this->container = $container;\n }", "public function __construct(ContainerInterface $container)\n {\n $this->container = $container;\n }", "public function __construct(ContainerInterface $container)\n {\n $this->container = $container;\n }", "public function __construct(ContainerInterface $container)\n {\n $this->container = $container;\n }", "public function __construct(ContainerInterface $container)\n {\n $this->container = $container;\n }", "public function __construct(ContainerInterface $container)\n {\n $this->container = $container;\n }", "public function __construct(ContainerInterface $container)\n {\n $this->container = $container;\n }", "public function __construct(ContainerInterface $container)\n {\n $this->container = $container;\n }", "public function __construct(ContainerInterface $container)\n {\n $this->container = $container;\n }", "public function __construct(ContainerInterface $container)\n {\n $this->container = $container;\n }", "public function __construct(ContainerInterface $container)\n {\n parent::__construct($container);\n }", "public function __construct(TaggedContainerInterface $container)\n {\n $this->container = $container;\n }", "public function __construct(Container $container = null)\n {\n $this->container = $container ?: new Container();\n }", "public function __construct($container) {\n $this->container = $container;\n $this->view = $container->view;\n $this->session = new \\Tazzy\\Utils\\Session();\n }", "public function __construct(Container $c)\n {\n $this->c = $c;\n }", "public function __construct()\n {\n $this->container = getContainer();\n $this->queue = $this->container->get(Queue::class);\n }", "public function __construct(ContainerInterface $container)\n {\n parent::__construct();\n $this->container = $container;\n }", "public function __construct(Container $container)\n {\n\n $this->query = $container->query();\n }", "public function __construct(Container $container)\n {\n $this->setDependencies($container);\n }", "public function __construct(Container $container){\n $this->container=$container;\n\n //config by default\n $this->config=$this->container['config'];\n $this->bigquery=$this->container['bigquery']($this->config->google('bigquery'));\n $this->modules['tc-subgroup']=$this->container['tc-subgroup']($this->bigquery);\n\n }", "public function __construct(Container $container) {\n $this->_commonService = $container->get(Service::class);\n $this->_userService = $container->get(UserService::class);\n $this->_authorize = $container->get('authorize');\n }", "public function __construct()\n {\n $this->objectContainer = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance(\\TYPO3\\CMS\\Extbase\\Object\\Container\\Container::class);\n }", "public function __construct(Container $container){\n $this->container=$container;\n\n //config by default\n $this->config=$this->container['config'];\n $this->bigquery=$this->container['bigquery']($this->config->google('bigquery'));\n $this->modules['tc-group']=$this->container['tc-group']($this->bigquery);\n\n }", "public function __construct()\n {\n $this->initializeSingleton();\n\n $this->container = new Container();\n\n $this->loadServices($this->container);\n }", "public function container();", "public function __construct(Container $app);", "public function __construct(Container $app);", "public function __construct(ContainerInterface $container) {\n $this->container = $container;\n $this->entityManager = $this->container->get('doctrine.orm.entity_manager');\n $this->user_active = $container->get('security.token_storage')->getToken()->getUser();\n $this->imagemd = $this->container->get(ImageMd::Class);\n $this->reqdataappend = $this->container->get(ReqDataAppend::Class);\n }", "protected function initializeContainer()\n {\n $class = $this->getContainerClass();\n $cache = new ConfigCache($this->getCacheDir().'/'.$class.'.php', $this->debug);\n $container = $this->buildContainer();\n $container->compile();\n $this->dumpContainer($cache, $container, $class, $this->getContainerBaseClass());\n\n require_once $cache->getPath();\n\n $this->container = new $class();\n $this->container->set('kernel', $this);\n\n if ($this->container->has('cache_warmer')) {\n $this->container->get('cache_warmer')->warmUp($this->container->getParameter('kernel.cache_dir'));\n }\n }", "public function __construct(ContainerInterface $container)\n {\n $this->container = $container;\n $this->templating = $container->get('templating');\n $this->doctrine = $container->get('doctrine');\n $this->config = $container->getParameter('webit.mailtemplate');\n }", "public function __construct(Container $container)\n\t{\n\t\t$this->log = new Logger('file_stream');\n\t\t$this->container = $container;\n\t}", "public function getContainer() {}", "public function testConstructor()\n\t{\n\t\t$params = array('param' => 'value');\n\n\t\t$container = new Container($params);\n\n\t\t$this->assertSame($params['param'], $container['param']);\n\t}", "public function __construct($container) {\r\n $this->container = $container;\r\n $this->model = $container->mongo->users;\r\n $this->user = $this->getCurrentUser();\r\n }", "public function __construct(ContainerInterface $container)\n {\n $this->container = $container;\n $this->config = $container->get(ConfigInterface::class);\n }", "public function testConstructor() {\n $sut=new Container();\n $this->assertInstanceOf(ContainerInterface::class,$sut);\n }", "public function __construct()\n {\n $this->factories = array_combine(\n [\n Container::class,\n ContainerInterface::class,\n DefaultContainer::class,\n ],\n array_fill(0, 3, function (Container $c) {\n return $c;\n })\n );\n }", "public function __construct(TechDivision_Model_Interfaces_Container $container)\n {\n // call parent constructor\n parent::__construct($container);\n // initialize the Solr options\n $options = array(\n 'hostname' => self::SOLR_SERVER_HOSTNAME,\n 'login' => self::SOLR_SERVER_USERNAME,\n 'password' => self::SOLR_SERVER_PASSWORD,\n 'port' => self::SOLR_SERVER_PORT\n );\n // initialize the Solr client\n $this->_client = new SolrClient($options);\n }", "public function getContainer();", "public function getContainer();", "public function getContainer();", "public function getContainer();", "public function getContainer();", "public function __construct(Container $app)\n\t{\n\t\t$this->app = $app;\n\t}", "public function setContainer(Container $container);", "public function __construct($session, $container)\n {\n $this->container = $container;\n $this->session = $session;\n }", "public function __construct(Container $container)\n {\n $this->setContainer($container)\n ->setModel(\\Modules\\Subjects\\Entities\\Eloquent\\Subject::class)\n ->setRepositoryId('rinvex.repository.uniqueid');\n\n }", "public function __construct(ContainerInterface $container) {\n $this->container = $container;\n\n $this->repo = new CompanyRepository();\n }", "public function __construct(Container $container, $result)\n {\n parent::__construct($container);\n $this->result = $result;\n }", "public function __construct(array $config = [])\n {\n $this->container = $config['container'];\n }", "public function __construct(ContainerInterface $c)\n {\n parent::__construct($c, 'book');\n }", "public function __construct(Interfaces\\DependencyInjectionContainerInterface $di_container)\n {\n $this->di_container = $di_container;\n }", "public function __construct()\n {\n //$builder->addDefinitions('ConfigDI.php');\n //self::$container = $builder->build();\n }", "public function __construct(Container $container, array $config = array())\n\t{\n\t\t$config['tableName'] = '#__ars_categories';\n\t\t$config['idFieldName'] = 'id';\n\t\t$config['aliasFields'] = [\n\t\t\t'slug' \t => 'alias',\n\t\t\t'enabled' => 'published',\n\t\t\t'created_on' => 'created',\n\t\t\t'modified_on' => 'modified',\n\t\t\t'locked_on' => 'checked_out_time',\n\t\t\t'locked_by' => 'checked_out',\n\t\t];\n\n\t\t// Automatic checks should not take place on these fields:\n\t\t$config['fieldsSkipChecks'] = [\n\t\t\t'description',\n\t\t\t'groups',\n\t\t\t'vgroup_id',\n\t\t\t'show_unauth_links',\n\t\t\t'redirect_unauth',\n\t\t\t'language',\n\t\t\t'checked_out',\n\t\t\t'checked_out_time',\n\t\t\t'modified',\n\t\t\t'modified_by',\n\t\t\t'created',\n\t\t\t'created_by',\n\t\t];\n\n\t\tparent::__construct($container, $config);\n\n\t\t// Relations\n\t\t$this->belongsTo('visualGroup', 'VisualGroups', 'vgroup_id', 'id');\n\t\t$this->hasMany('releases', 'Releases', 'id', 'category_id');\n\n\t\t$this->with(['visualGroup']);\n\n\t\t// Behaviours\n\t\t$this->addBehaviour('Filters');\n\t\t$this->addBehaviour('Created');\n\t\t$this->addBehaviour('Modified');\n\t\t$this->addBehaviour('Assets');\n\n\t\t// Some filters we will have to handle programmatically so we need to exclude them from the behaviour\n\t\t$this->blacklistFilters([\n\t\t\t'vgroup_id',\n\t\t\t'language'\n\t\t]);\n\t}", "public function create(IDIContainer $container);", "public function __construct()\r\n {\r\n $registry = Zend_Registry::getInstance();\r\n if (!isset($registry[__CLASS__])) {\r\n require_once 'ZendX/JQuery/View/Helper/JQuery/Container.php';\r\n $container = new ZendX_JQuery_View_Helper_JQuery_Container();\r\n $registry[__CLASS__] = $container;\r\n }\r\n $this->_container = $registry[__CLASS__];\r\n }", "public function construct() {\n\n }", "public function __construct($config = array())\n {\n //build custom DIC w/ default config\n $this->container = new Pimple;\n $this->container['transcoder.handbrake.enabled'] = false;\n $this->container['transcoder.ffmpeg.enabled'] = false;\n\n //register custom configuration last (in order to override defaults)\n foreach ($config as $key => $val) {\n $this->container[$key] = $val;\n }\n\n //register adapters/adapters/jobs\n $this->registerDefaultServices();\n $this->registerDefaultPresets();\n $this->registerDefaultJobs();\n }", "public function __construct(Container $container, array $job)\n {\n $this->container = $container;\n $this->job = $job;\n }", "public function __construct(ContainerInterface $container)\r\n {\r\n $this->container = $container;\r\n $this->jwt = $this->container->get('jwt');\r\n $this->logger = $this->container->get('logger');\r\n }", "private function bindContainer()\n {\n parent::setInstance($this);\n \n $this->instance('container', $this);\n $this->instance(BaseContainer::class, $this);\n }", "public function __construct(){\r\n\t\t$this->collection = new Collection();\r\n\t}", "public function __construct()\n {\n global $app;\n\n // get and set the db connection\n $this->db = $app->getContainer()->get('db');\n\n // set all the images\n $this->getAllImages();\n\n // set all the tags\n $this->getAllTags();\n\n }", "protected function construct(){\n\n }", "public function setContainer($container);", "public function __construct(Container $app)\n {\n $this->app = $app;\n }", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}" ]
[ "0.82909256", "0.82909256", "0.81380254", "0.80638206", "0.8006539", "0.7989512", "0.7989512", "0.79574627", "0.7888767", "0.7888767", "0.7874923", "0.78335655", "0.78335655", "0.78335655", "0.78335655", "0.78335655", "0.78335655", "0.78252953", "0.7781448", "0.7667053", "0.75754356", "0.75085765", "0.7462967", "0.74620986", "0.74585074", "0.7392601", "0.7352143", "0.73002976", "0.7275731", "0.7272637", "0.7272637", "0.7272637", "0.7263394", "0.7263394", "0.7263394", "0.7263394", "0.7263394", "0.7263394", "0.7263394", "0.7263394", "0.7263394", "0.7263394", "0.7261697", "0.72267765", "0.72235507", "0.7219772", "0.72039926", "0.71992224", "0.7126341", "0.712216", "0.70808786", "0.70760083", "0.70727426", "0.7063568", "0.7046017", "0.7022404", "0.70013374", "0.6858112", "0.6858112", "0.6856295", "0.6840155", "0.6837641", "0.6826615", "0.67896974", "0.67456234", "0.67428863", "0.6663183", "0.6638803", "0.6619527", "0.661878", "0.6604794", "0.6604794", "0.6604794", "0.6604794", "0.6604794", "0.6562355", "0.6554245", "0.65541714", "0.6551241", "0.6530582", "0.6529782", "0.65253395", "0.6524679", "0.6515994", "0.65142816", "0.651002", "0.6506007", "0.649847", "0.649707", "0.648867", "0.64861023", "0.6483978", "0.6450881", "0.6446416", "0.6434398", "0.6430511", "0.6407967", "0.6407916", "0.64073557", "0.64073557", "0.64073557" ]
0.0
-1
$c = new Core();
public function hello($request, $response, $args){ // $c->test(); // echo $c->test; $c = new BatchJob(); $c->hello(); die(); $w = new FeedbackQueue(); echo "<pre>"; print_r(get_class_methods($response)); $this->view->logger->info("!!!!!!!!!!!!!!!!!!!"); return $response->withJson(array("data"=>"Tetete")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function __construct()\n {\n\n //$objCore = new Core();\n //default constructor for this class\n }", "public function __construct() {\n //$objCore = new Core();\n //default constructor for this class\n }", "function __construct() {\n //$objCore = new Core();\n //default constructor for this class\n }", "function __construct()\n {\n $this->core = Core::getInstance();\n }", "private function __construct() {\n require_once CORE_LIBRARY . 'CoreAutoloader.php';\n\n // instantiate core-class objects\n $this->autoloader = new CoreAutoloader();\n $this->config = CoreConfig::instance();\n $this->uri = CoreUri::instance();\n $this->message = CoreMessage::instance();\n }", "function __construct() {\n// pre($_POST);\n //$objCore = new Core();\n //default constructor for this class\n }", "public function __construct()\n {\n $this->cpu = new CPU();\n $this->player = new Player();\n }", "function classes() {\n\tcore();\n}", "public function core();", "public function __construct(Request $request){\n $this->core = new Core();\n\n }", "function __construct()\n {\n // constructor buit\n }", "public function __construct()\n {\n $this->CI =& get_instance();\n }", "function __construct(){\n\t\t$this->_ci =& get_instance();\n\t}", "function __construct(){\n //constructor vacio\n }", "public function __construct()\n\t{\n\t \t$this->CI =& get_instance();\n\t}", "public function __construct() {\n $this->CI =& get_instance();\n }", "function __construct() {\n}", "function __construct() {\n}", "function __construct() {\n}", "function __construct() {\n}", "function __construct() {\n}", "function __construct() {\n}", "public function __construct()\n {\n $this->ci =& get_instance();\n }", "public function __construct()\n {\n $this->CI =& get_instance();\n }", "public function __construct()\n {\n $this->ci =& get_instance();\n }", "public static function getInstance() {\n return !isset(self::$me) ? self::$me = new Core() : self::$me;\n }", "public function __construct();", "public function __construct();", "public function __construct();", "function __construct(){\n }", "function __construct(){\n\n\t}", "function __construct() {}", "function __construct() {\n\t}", "function __construct() {\n\t}", "function __construct() {\n\t}", "function __construct() {\n\t}", "function __construct() {\n\t}", "function __construct() {\n\t}", "function __construct() {\n\t}", "public function __construct(Core $core) {\n $this->core = $core;\n }", "function __construct(){\n\n\n }", "function __construct(){\n\n\n }", "function __construct(){\n\n\n }", "function __construct(){\n\n\n }", "function __construct(){\n\n\n }", "function __construct(){\n\n\n }", "function __construct(){\n\n\n }", "public static function load() {\n if (self::$_instance == null) {\n self::$_instance = new \\Maleeby\\Core();\n }\n return self::$_instance;\n }", "function __construct() {\n\n }", "function __construct() {\n\n }", "function __construct(){\r\n\t}", "public function __construct()\n {\n $this->CI =& get_instance();\n \n }", "function __construct()\n {\n\n }", "function __construct()\n {\n\n }", "function __construct()\n {\n\n }", "function __construct() \n {\n }", "function __construct()\n {\n $this->CI = &get_instance();\n }", "function __construct() {\r\n\t}", "function __construct() {\r\n\t}", "public function __construct()\n\t{\n\t\t$this->_ci =& get_instance();\n\t}", "function __construct()\n\t{\n\t\t# code...\n\t}", "function __construct(){}", "function __construct(){}", "function __construct(){}", "public function __construct()\n {\n $this->CI = &get_instance();\n }", "public function __construct()\n {\n $this->CI = &get_instance();\n }", "function __construct()\n\t{\n\t}", "function __construct()\n\t{\n\t}", "function __construct()\n\t{\n\t}", "private function core()\n\t{\n\t\treturn $this->core;\n\t}", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }", "function __construct()\n {\n }" ]
[ "0.83603716", "0.83549184", "0.8295883", "0.784158", "0.7166627", "0.70200473", "0.6906388", "0.68941945", "0.6877179", "0.6857749", "0.6800758", "0.6784124", "0.67819715", "0.6773043", "0.67637783", "0.6742017", "0.67389566", "0.67389566", "0.67389566", "0.67389566", "0.67389566", "0.67389566", "0.67233354", "0.6721413", "0.671654", "0.6704923", "0.67033523", "0.67033523", "0.67033523", "0.67011195", "0.6679031", "0.6675618", "0.66725105", "0.66725105", "0.66725105", "0.66725105", "0.66725105", "0.66725105", "0.66725105", "0.6670089", "0.66620076", "0.66620076", "0.66620076", "0.66620076", "0.66620076", "0.66620076", "0.66620076", "0.66558355", "0.6645866", "0.6645866", "0.6635997", "0.66330874", "0.66214037", "0.66214037", "0.66214037", "0.6618659", "0.6615787", "0.6605873", "0.6605873", "0.6586795", "0.6580611", "0.65778095", "0.65778095", "0.65778095", "0.6575695", "0.6575695", "0.65720135", "0.65720135", "0.65720135", "0.6562139", "0.655156", "0.655156", "0.655156", "0.655156", "0.655156", "0.655156", "0.655156", "0.655156", "0.655156", "0.655156", "0.655156", "0.655156", "0.655156", "0.655156", "0.655156", "0.655156", "0.655156", "0.655156", "0.655156", "0.655156", "0.655156", "0.655156", "0.655156", "0.655156", "0.655156", "0.655156", "0.655156", "0.655156", "0.655156", "0.655156", "0.655156" ]
0.0
-1
funcao construtor da classe
function cl_conplanoconplanoorcamento() { //classes dos rotulos dos campos $this->rotulo = new rotulo("conplanoconplanoorcamento"); $this->pagina_retorno = basename($GLOBALS["HTTP_SERVER_VARS"]["PHP_SELF"]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function __construct() ;", "function _construct() {\n \t\n\t\t\n\t}", "function __construct (){\n\t\t}", "function _construct(){ }", "public function _construct()\n\t{\n\n\t}", "function __construct(){\n\n\t\t}", "function __construct()\r\n\t\t{\r\n\t\t\t\r\n\t\t}", "function __construct() {}", "function __construct() {}", "function __construct() {}", "function __construct() {}", "function __construct() {}", "function __construct() {}", "function __construct()\n\t{\n\t\t\n\t\t\n\t}", "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t// ben duoi nay se la cac logic cua __construct lop con ma chung ta can dinh nghia - xu ly\n\t}", "public function __construct()\n\t\t{\n\t\t\t\n\t\t}", "function __construct() {\n\t\t\t\n\t\t}", "function __construct() {}", "function __construct(){\n\t\t// nowt much...\n\t}", "function __construct(){}", "function __construct(){}", "function __construct(){}", "public function __construct (){}", "function __construct(){\n\t\t}", "function __construct()\n\t{\n\n\t}", "function __construct() {\n\n\t\t}", "function __construct(){\r\n\t\t}", "public function __construct() { \n\t\t\n\n\t\t}", "function __construct()\r\n\t{\r\n\t}", "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 function __construct(){}", "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 final function __construct() {}", "private function __construct() { \n\t\t\n\n\t}", "function __construct()\n\t{\n\t\t# code...\n\t}", "function __construct()\r\n\t{\r\n\t\t\r\n\t}", "function __construct()\n\t{\n\t}", "function __construct()\n\t{\n\t}", "function __construct()\n\t{\n\t}", "private function __construct()\t{}", "public function __construct()\n\t{\n\t}", "final private function __construct(){\r\r\n\t}", "public function __construct()\n\t\t{\n\t\t\t//\n\t\t}", "private function __construct(){\n\t\t }", "protected abstract function __construct();", "function __construct(){\n\n\t}", "public function __construct()\r\n\t\t{\r\n\t\t}", "public function __construct()\n\t{\n\t\n\t}", "public function __construct()\n\t{\n\t\n\t}", "function __construct(){\r\n\t}", "private function __construct()\r\n\t{\r\n\t\r\n\t}", "public function __construct()\n\t{}", "function __construct()\n\t{\n \n\t}", "public function __construct()\n\t{\n\t\t\n\t}", "public function __construct()\n\t{\n\t\t\n\t}", "public function __construct()\n\t{\n\t\t\n\t}", "public function __construct()\n\t{\n\t\t\n\t}", "public function __construct()\n\t{\n\t\t\n\t}", "public function __construct()\n\t{\n\t\t\n\t}", "public function __construct()\n\t{\n\t\t\n\t}", "public function __construct()\n\t{\n\t\t\n\t}", "public function __construct()\n\t{\n\t\t\n\t}", "public function __construct()\n\t{\n\t\t\n\t}", "public function __construct()\n\t{\n\n\t}", "public function __construct()\n\t{\n\n\t}", "public function __construct()\n\t{\n\n\t}", "public function __construct(){\n\t\t//\n\t}", "public function __construct(){\n\t\t//\n\t}", "public function __construct()\n\t\t{\t\t\t\n\t\t}", "private function __construct(){\n\t\n\t}", "function __construct() {\n\n\t}", "public function __construct() {\n\t\t\n\t}", "public function __construct() {\n\t\t\n\t}", "public function __construct() {\n\t\t\n\t}", "public function __construct() {\n\t\t\n\t}", "public function __construct() {\n\t\t\n\t}", "private function __construct( )\n {\n\t}", "public function __construct() {\n\n\t\t}", "public function __construct()\r\n\t{\r\n\t}", "public function __construct()\r\n\t{\r\n\t}", "public function __construct()\r\n\t{\r\n\t}", "public function __construct()\r\n\t{\r\n\t}", "public function __construct()\r\n\t{\r\n\t}", "private function __construct(){\n \t\n }", "private function __construct() {\r\n\t\r\n\t}", "function __construct() {\r\n\t}", "function __construct() {\r\n\t}" ]
[ "0.82710814", "0.8201428", "0.8043516", "0.80062735", "0.796183", "0.7928873", "0.7894286", "0.78932434", "0.78932434", "0.78932434", "0.78932434", "0.78932434", "0.78932434", "0.7892753", "0.7887893", "0.788242", "0.78764445", "0.7872269", "0.78641057", "0.78625774", "0.78625774", "0.78625774", "0.78494614", "0.78404146", "0.782691", "0.7825362", "0.78223693", "0.7772932", "0.7767797", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77618545", "0.7750897", "0.77469", "0.77464163", "0.7745494", "0.7745494", "0.7745494", "0.7743061", "0.7741989", "0.7735934", "0.7732405", "0.7731418", "0.77172667", "0.77101105", "0.77092403", "0.7702783", "0.7702783", "0.77001476", "0.76978403", "0.76866823", "0.76810014", "0.7678487", "0.7678487", "0.7678487", "0.7678487", "0.7678487", "0.7678487", "0.7678487", "0.7678487", "0.7678487", "0.7678487", "0.7661576", "0.7661576", "0.7661576", "0.7661339", "0.7661339", "0.7661082", "0.76529324", "0.76510185", "0.7649274", "0.7649274", "0.7649274", "0.7649274", "0.7649274", "0.76464516", "0.7643331", "0.76395047", "0.76395047", "0.76395047", "0.76395047", "0.76395047", "0.7639284", "0.7633727", "0.7633691", "0.7633691" ]
0.0
-1
funcao para atualizar campos
function atualizacampos($exclusao=false) { if($exclusao==false){ $this->c72_sequencial = ($this->c72_sequencial == ""?@$GLOBALS["HTTP_POST_VARS"]["c72_sequencial"]:$this->c72_sequencial); $this->c72_conplano = ($this->c72_conplano == ""?@$GLOBALS["HTTP_POST_VARS"]["c72_conplano"]:$this->c72_conplano); $this->c72_conplanoorcamento = ($this->c72_conplanoorcamento == ""?@$GLOBALS["HTTP_POST_VARS"]["c72_conplanoorcamento"]:$this->c72_conplanoorcamento); $this->c72_anousu = ($this->c72_anousu == ""?@$GLOBALS["HTTP_POST_VARS"]["c72_anousu"]:$this->c72_anousu); }else{ $this->c72_sequencial = ($this->c72_sequencial == ""?@$GLOBALS["HTTP_POST_VARS"]["c72_sequencial"]:$this->c72_sequencial); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _updatefields() {}", "function _set_editable_fields()\n\t{\n\t\tif (empty($this->fields))\n\t\t{\n\t\t\t// pull the fields dynamically from the database\n\t\t\t$this->db->cache_on();\n\t\t\t$this->fields = $this->db->list_fields($this->primary_table);\n\t\t\t$this->db->cache_off();\n\t\t}\n\t}", "private function camposObligatorios()\n {\n $this->setRequiredField(\"mascara\");\n $this->setRequiredField(\"etiqueta\");\n/*\n $this->setRequiredField(\"id_padre\");\n*/\n $this->setRequiredField(\"posicion\");\n $this->setRequiredField(\"visible\");\n $this->setRequiredField(\"nivel_acceso\");\n/*\n $this->setRequiredField(\"accion\");\n*/\n\n return;\n }", "public function actualizarCampos(){\n //---- eliminamos todos los registros\n $sql = \"DELETE FROM \". TABLE_EMPRESA .\"_campo WHERE uid_empresa = \". $this->getUID();\n if( !$this->db->query($sql) ){ return $this->db->lastErrorString(); }\n\n //---- asignamos los que se han indicado en el formulario\n $inserts = array();\n $asignados = isset($_REQUEST[\"elementos-asignados\"]) ? $_REQUEST[\"elementos-asignados\"] : [];\n foreach ($asignados as $idCampoAsignado) {\n $inserts[] = \"(\". $this->getUID() .\", \". $idCampoAsignado .\")\";\n }\n\n if (!count($inserts)) return true;\n\n $sql = \"INSERT INTO \". TABLE_EMPRESA .\"_campo ( uid_empresa, uid_campo ) VALUES \". implode(\",\", $inserts);\n if( !$this->db->query($sql) ){ return $this->db->lastErrorString(); }\n\n //----- si todo va bien\n return true;\n }", "protected abstract function setFields();", "function asignar_valores2(){\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->apellido=$_POST['apellido'];\n\t\t$this->telefono=$_POST['telefono'];\n\t\t$this->email=$_POST['email'];\n\t\t\n\t\t$this->marca=$_POST['marca'];\n\t\t$this->modelo=$_POST['modelo'];\n\t\t$this->ano=$_POST['ano'];\n\t\t$this->tipo=$_POST['tipo'];\n\t\t$this->descripcion=$_POST['descripcion'];\n\t}", "private function resetInputFields(){\n $this->nom = '';\n $this->departements_id = '';\n $this->arrondissement_id = '';\n }", "function asignar_valores(){\n\t\t$this->tabla=$_POST['tabla'];\n\t\t$this->pertenece=$_POST['pertenece'];\n\t\t$this->asunto=$_POST['asunto'];\n\t\t$this->descripcion=$_POST['contenido'];\n\t\t$this->fecha=$_POST['fecha'];\n\t\t$this->hora=$_POST['hora'];\n\t\t$this->fechamod=$_POST['fechamod'];\n\t}", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_schema('');\n $this->setId_nom('');\n $this->setId_nivel('');\n $this->setId_asignatura('');\n $this->setId_situacion('');\n // la fecha debe estar antes del acta por si hay que usar la funcion inventarActa.\n $this->setF_acta('');\n $this->setActa('');\n $this->setDetalle('');\n $this->setPreceptor('');\n $this->setId_preceptor('');\n $this->setEpoca('');\n $this->setId_activ('');\n $this->setNota_num('');\n $this->setNota_max('');\n $this->setTipo_acta('');\n $this->setPrimary_key($aPK);\n }", "public function presupuestoModificado(){\n $this->iPresupuestoModificado = $this->iPresupuestoInicial;\n $this->save();\n }", "public function actualizaEstado(){\n $this->estado = 'Completo';\n // $this->cotiza = $this->generarCustomID();\n $this->save();\n }", "private function resetInputFields()\n {\n $this->name = '';\n $this->code = '';\n $this->agency_id = '';\n\n $this->phone = '';\n $this->fax = '';\n\n $this->email = '';\n $this->address = '';\n $this->country = '';\n }", "function set_field($field,$edit=\"\",$view=\"\")\r\n {\r\n $userID = session::get(\"user\");\r\n \r\n if ($userID)\r\n {\r\n if (!right::get_field($field))\r\n database::query(\"INSERT INTO system SET name='$field',edit='$edit',view='$view'\");\r\n else\r\n database::query(\"UPDATE system SET edit='$edit',view='$view' WHERE name='$field'\");\r\n } \r\n }", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setNivel_stgr('');\n $this->setDesc_nivel('');\n $this->setDesc_breve('');\n $this->setOrden('');\n $this->setPrimary_key($aPK);\n }", "private function _set_fields()\n {\n @$this->form_data->question_id = 0;\n\n $this->form_data->category_id = 0;\n $this->form_data->sub_category_id = 0;\n $this->form_data->sub_two_category_id = 0;\n $this->form_data->sub_three_category_id = 0;\n $this->form_data->sub_four_category_id = 0;\n\n $this->form_data->ques_text = '';\n $this->form_data->survey_weight = '';\n $this->form_data->ques_type = '';\n $this->form_data->qus_fixed = 0;\n $this->form_data->ques_expiry_date = '';\n\n\n $this->form_data->filter_question = '';\n $this->form_data->filter_category = 0;\n $this->form_data->filter_type = '';\n $this->form_data->filter_expired = '';\n }", "function asignar_valores(){\n $this->nombre=$_POST['nombre'];\n $this->prioridad=$_POST['prioridad'];\n $this->etiqueta=$_POST['etiqueta'];\n $this->descripcion=$_POST['descripcion'];\n $this->claves=$_POST['claves'];\n $this->tipo=$_POST['tipo'];\n }", "function asignar_valores(){\n\t\t//$this->ciudad=$_SESSION['ciudad_admin'];\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->apellido=$_POST['apellido'];\n\t\t$this->cantidad=$_POST['cantidad'];\n\t\t$this->cedula=$_POST['cedula'];\n\t\t$this->correo=$_POST['correo'];\n\t}", "private function resetInputFields(){\n $this->teacher_id = '';\n $this->lending_id = '';\n $this->note = '';\n $this->device_id = '';\n $this->org_id_1 = '';\n $this->org_id_2 = '';\n $this->lendingDate = '';\n $this->returnDate = '';\n }", "function asignar_valores(){\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->prioridad=$_POST['prioridad'];\n\t\t$this->etiqueta=$_POST['etiqueta'];\n\t\t$this->descripcion=$_POST['descripcion'];\n\t\t$this->claves=$_POST['claves'];\n\t\t$this->tipo=$_POST['tipo'];\n\t\t$this->icono=$_POST['icono'];\n\t}", "private function setAutofillFields() {\n foreach (static::getFields() as $field_name => $field) {\n if ($field instanceof AutofillField) {\n $this->values[$field_name] = $field->fill();\n }\n }\n }", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_item('');\n $this->setId_enc('');\n $this->setId_nom('');\n $this->setModo('');\n $this->setF_ini('');\n $this->setF_fin('');\n $this->setId_nom_new('');\n $this->setPrimary_key($aPK);\n }", "private function _set_fields()\n {\n @$this->form_data->survey_id = 0;\n $this->form_data->survey_title = '';\n $this->form_data->survey_description = '';\n $this->form_data->survey_status = 'open';\n $this->form_data->survey_anms = 'yes';\n $this->form_data->survey_expiry_date = '';\n $this->form_data->question_ids = array();\n\n $this->form_data->filter_survey_title = '';\n $this->form_data->filter_status = '';\n }", "public function applyDefaultValues()\n\t{\n\t\t$this->ativo = true;\n\t\t$this->tipo_acesso = 'M';\n\t\t$this->estado_civil = 'O';\n\t\t$this->nivel_acesso = '1';\n\t\t$this->usuario_validado = false;\n\t}", "public function atualizar()\n {\n //Executa o processo de validação\n $validacao = self::validar('update');\n\n //Verifica o status da validação do formulário\n //Se não houveram erros, insere no banco de dados\n //Caso contrário, informa ao usuário os erros de validação\n if($validacao)\n {\n //Obtem os dados do formulário preenchido\n $empresa = $this->input->post();\n\n //Obtem o id da empresa a ser atualizada\n $id = $empresa['id_empresa'];\n\n //Atualiza os dados da empresa a partir do seu id e retorna o status da operação\n $status = $this->EmpresasModel->atualizar($id, $empresa);\n\n //Checa o status da operação\n //Se bem sucedida, carrega a tela de visualizar a empresa \n //Caso contrário, informa ao usuário\n if(!$status){\n\t\t\t\t$this->session->set_flashdata('error', 'Não foi possível alterar as informações.');\n\t\t\t}else{\n //Consulta os dados da empresa que foi atualizada\n $resultado = $this->EmpresasModel->getById($id);\n $dados = array(\"empresaid\" => $resultado, \"success\" => 'Informações alteradas com sucesso.'); \n //Carrega a tela com os dados atualizados\n $this->load->view(\"Empresas/empresa\", $dados);\n\t\t\t}\n }\n else\n {\n\t\t\t$this->session->set_flashdata('error', validation_errors('<p>','</p>'));\n }\n //Carrega a página de alterar os dados da empresa com as informações atuais\n $dados['empresaid'] = $this->EmpresasModel->getById($id);\n $this->load->view(\"Empresas/altera\", $dados); \n }", "private function resetInputFields()\n {\n $this->agency_id = '';\n $this->state_id = '';\n $this->name = '';\n $this->logo = '';\n $this->email = '';\n $this->phone = '';\n $this->fax = '';\n $this->address = '';\n $this->facebook = '';\n $this->instagram = '';\n $this->youtube = '';\n $this->viber = '';\n $this->whatsapp = '';\n $this->url = '';\n }", "public function atualizar() {\n $query = '\n UPDATE tb_atividade \n set \n nome = :nome,\n qntd_part = :qntd_part,\n inscricao = :inscricao,\n valor = :valor,\n tipo = :tipo,\n carga_hr = :carga_hr,\n data_inicio = :data_inicio,\n data_fim = :data_fim\n WHERE\n id = :id\n ';\n\n $stmt = $this->conexao->prepare($query);\n $stmt->bindValue(':id', $_GET['id_att']);\n $stmt->bindValue(':nome', $this->atividade->__get('nome'));\n $stmt->bindValue(':qntd_part', $this->atividade->__get('qntd_part'));\n $stmt->bindValue(':inscricao', $this->atividade->__get('inscricao'));\n $stmt->bindValue(':valor', $this->atividade->__get('valor'));\n $stmt->bindValue(':tipo', $this->atividade->__get('tipo'));\n $stmt->bindValue(':carga_hr', $this->atividade->__get('carga_hr'));\n $stmt->bindValue(':data_inicio', $this->atividade->__get('data_inicio'));\n $stmt->bindValue(':data_fim', $this->atividade->__get('data_fim'));\n\n return $stmt->execute();\n }", "public function testUpdateExtraFields(): void { }", "protected function setupUpdateOperation()\n {\n CRUD::setValidation(SettingRequest::class);\n\n $readonly = [];\n if (User::min('id') !== backpack_user()->id) {\n $readonly = ['readonly' => 'readonly'];\n }\n\n CRUD::field('key')->type('text')->label('ID key')->attributes($readonly);\n CRUD::field('name')->type('text')->label('Nom');\n CRUD::field('value')->type(CRUD::getCurrentEntry()->type)->label('Contenu');\n }", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_schema('');\n $this->setId_activ('');\n $this->setId_asignatura('');\n $this->setId_nom('');\n $this->setId_nivel('');\n $this->setId_situacion('');\n $this->setPreceptor('');\n $this->setId_preceptor('');\n $this->setNota_num('');\n $this->setNota_max('');\n $this->setActa('');\n $this->setPrimary_key($aPK);\n }", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_dl('');\n $this->setDl('');\n $this->setRegion('');\n $this->setNombre_dl('');\n $this->setGrupo_estudios('');\n $this->setRegion_stgr('');\n $this->setStatus('');\n $this->setPrimary_key($aPK);\n }", "private function resetInputFields(){\n $this->name = '';\n $this->content = '';\n $this->todo_id = '';\n }", "public function prepAttributesForSave()\n\t{\n\t\t$attributes = $this->defineAttributes();\n\t\t$attributes['dateUpdated'] = array('0' => AttributeType::DateTime, 'required' => true);\n\t\t$attributes['dateCreated'] = array('0' => AttributeType::DateTime, 'required' => true);\n\n\t\tforeach ($attributes as $name => $config)\n\t\t{\n\t\t\t$config = ModelHelper::normalizeAttributeConfig($config);\n\t\t\t$value = $this->getAttribute($name);\n\n\t\t\t$this->setAttribute($name, ModelHelper::packageAttributeValue($config, $value, true));\n\t\t}\n\n\t\t// Populate dateCreated and uid if this is a new record\n\t\tif ($this->isNewRecord())\n\t\t{\n\t\t\t$this->dateCreated = DateTimeHelper::currentTimeForDb();\n\t\t\t$this->uid = StringHelper::UUID();\n\t\t}\n\n\t\t// Update the dateUpdated\n\t\t$this->dateUpdated = DateTimeHelper::currentTimeForDb();\n\t}", "function evt__form_pase__modificacion($datos)\r\n\t{\r\n $car=$this->controlador()->dep('datos')->tabla('cargo')->get();\r\n $datos['id_cargo']=$car['id_cargo'];\r\n \r\n \r\n //print_r($pase_nuevo);exit;\r\n if($this->dep('datos')->tabla('pase')->esta_cargada()){//es modificacion\r\n $pas=$this->dep('datos')->tabla('pase')->get();\r\n if($pas['tipo']<>$datos['tipo']){\r\n toba::notificacion()->agregar('no puede cambiar el tipo del pase', 'info'); \r\n }else{\r\n $this->dep('datos')->tabla('pase')->set($datos);\r\n $this->dep('datos')->tabla('pase')->sincronizar();\r\n }\r\n }else{//es alta de un pase nuevo\r\n $this->dep('datos')->tabla('pase')->set($datos);\r\n $this->dep('datos')->tabla('pase')->sincronizar();\r\n $pase_nuevo=$this->dep('datos')->tabla('pase')->get();\r\n $p['id_pase']=$pase_nuevo['id_pase'];\r\n $this->dep('datos')->tabla('pase')->cargar($p);//lo cargo para que se sigan viendo los datos en el formulario\r\n if($datos['tipo']=='T'){//si el pase es temporal\r\n //ingreso un cargo en la unidad destino\r\n //la ingresa con fecha de alta = desde\r\n $nuevo_cargo['id_persona']=$car['id_persona'];\r\n $nuevo_cargo['codc_carac']=$car['codc_carac'];\r\n $nuevo_cargo['codc_categ']=$car['codc_categ'];\r\n $nuevo_cargo['codc_agrup']=$car['codc_agrup'];\r\n $nuevo_cargo['chkstopliq']=$car['chkstopliq'];\r\n $nuevo_cargo['fec_alta']=$datos['desde'];\r\n $nuevo_cargo['pertenece_a']=$datos['destino'];\r\n $nuevo_cargo['generado_x_pase']=$pase_nuevo['id_pase']; \r\n $res=$this->controlador()->dep('datos')->tabla('cargo')->agregar_cargo($nuevo_cargo);\r\n if($res==1){\r\n toba::notificacion()->agregar('Se ha creado un nuevo cargo en el destino del pase', 'info');\r\n }\r\n \r\n }else{//pase definitivo entonces tengo que modificar la fecha del cargo en la unidad destino con la fecha de alta del definitivo\r\n $nuevafecha = strtotime ( '-1 day' , strtotime ( $datos['desde'] ) ) ;\r\n $nuevafecha = date ( 'Y-m-d' , $nuevafecha );\r\n //print_r($nuevafecha);exit;\r\n $salida=$this->controlador()->dep('datos')->tabla('cargo')->modificar_alta($datos['id_cargo'],$datos['destino'],$datos['desde']);\r\n //le coloca fecha de baja al cargo de la unidad origen\r\n $this->controlador()->dep('datos')->tabla('cargo')->finaliza_cargo($datos['id_cargo'],$nuevafecha);\r\n if($salida==1){\r\n toba::notificacion()->agregar('Se ha modificado la fecha del cargo generado a partir del pase temporal', 'info');\r\n }\r\n \r\n } \r\n }\r\n \r\n\t}", "function dbSetVars() {\n\n foreach ($this->fields() as $f) {\n if ($this->$f === false) continue;\n $this->db->set($f,$this->$f);\n }\n\n }", "public function beforeSave() {\n\t\t\t\t\t\t\tif ($this->isNewRecord) {\n\t\t\t\t\t\t\t\t\t\t$this->usuario=Yii::app()->user->name;\n\t\t\t\t\t\t\t\t\t\t$this->creadoel=date(\"Y-m-d H:i:s\");\n\t\t\t\t\t\t\t\t $this->iduser=Yii::app()->user->id;\n\t\t\t\t\t\t\t\t\t\t$this->mes=substr($this->fechacontable,5,2);\n\t\t\t\t\t\t\t\t\t\t$this->ano=substr($this->fechacontable,0,4);\n\t\t\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn parent::beforeSave();\n\t\t\t\t}", "function updateField() {\n DATABASE::INIT_TABLE($this->database, $this->table);\n $fname = $this->urlParam('fname');\n $fvalue = $this->urlParam('fvalue');\n $id = $this->urlParam('id');\n DATABASE::UPDATE($this->table, [$fname], [$fvalue], $id);\n }", "protected function asignarCamposRelacionales() {\n foreach($this->campos as $nombre=>$campo) {\n if($campo->tipo!='relacional'||($campo->relacion!='1:1'&&$campo->relacion!='1:0')) continue;\n $columna=$campo->columna;\n if(is_object($this->consultaValores->$nombre)) {\n //Asignado como entidad u objeto anónimo\n $this->consultaValores->$columna=$this->consultaValores->$nombre->id;\n } elseif(is_array($this->consultaValores->$nombre)) {\n //Asignado como array\n $this->consultaValores->$columna=$this->consultaValores->$nombre['id'];\n }\n }\n }", "private function resetInputFields(){\n $this->title = '';\n $this->original_url = '';\n $this->platform_id = '';\n }", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_schema('');\n $this->setId_situacion('');\n $this->setDescripcion('');\n $this->setSuperada('');\n $this->setBreve('');\n $this->setPrimary_key($aPK);\n }", "function asignar_valores(){\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->apellido=$_POST['apellido'];\n\t\t$this->telefono=$_POST['telefono'];\n\t\t$this->email=$_POST['email'];\n\t\t\n\t\t$this->tipo=$_POST['tipo'];\n\t\t$this->ano=$_POST['ano'];\n\t\t$this->valor_vehiculo=$_POST['valor_vehiculo'];\n\t\t$this->saldo=$_POST['saldo'];\n\t\t$this->valor_inicial=$_POST['valor_inicial'];\n\t\t$this->comision=$_POST['comision'];\n\t\t$this->plazo=$_POST['plazo'];\n\t\t$this->cuotas=$_POST['cuotas'];\n\t\t$this->total=$_POST['total'];\n\t}", "public function update($aluno){\n\t\t$campos = \"\";\n \n \n\t\t if(!empty($aluno->nome)) $campos .=' nome = ?,';\n\t\t if(!empty($aluno->endereco)) $campos .=' endereco = ?,';\n\t\t if(!empty($aluno->numero)) $campos .=' numero = ?,';\n\t\t if(!empty($aluno->bairro)) $campos .=' bairro = ?,';\n\t\t if(!empty($aluno->cidade)) $campos .=' cidade = ?,';\n\t\t if(!empty($aluno->nacionalidade)) $campos .=' nacionalidade = ?,';\n\t\t if(!empty($aluno->cep)) $campos .=' cep = ?,';\n\t\t if(!empty($aluno->uf)) $campos .=' uf = ?,';\n\t\t if(!empty($aluno->local)) $campos .=' local = ?,';\n\t\t if(!empty($aluno->complemento)) $campos .=' complemento = ?,';\n\t\t if(!empty($aluno->inep)) $campos .=' inep = ?,';\n\t\t if(!empty($aluno->ni)) $campos .=' nis = ?,';\n\t\t if(!empty($aluno->telefone)) $campos .=' telefone = ?,';\n\t\t if(!empty($aluno->celular)) $campos .=' celular = ?,';\n\t\t if(!empty($aluno->email)) $campos .=' email = ?,';\n\t\t if(!empty($aluno->peso)) $campos .=' peso = ?,';\n\t\t if(!empty($aluno->altura)) $campos .=' altura = ?,';\n\t\t if(!empty($aluno->raca)) $campos .=' raca = ?,';\n\t\t if(!empty($aluno->tipoDefic)) $campos .=' tipo_defic = ?,';\n\t\t if(!empty($aluno->tipoTranspEscolar)) $campos .=' tipo_transp_escolar = ?,';\n\t\t if(!empty($aluno->idEducCenso)) $campos .=' id_educ_censo = ?,';\n\t\t if(!empty($aluno->tipoUsoInternet)) $campos .=' tipo_uso_internet = ?,';\n\t\t if(!empty($aluno->sexo)) $campos .=' sexo = ?,';\n\t\t if(!empty($aluno->regNascimento)) $campos .=' reg_nascimento = ?,';\n\t\t if(!empty($aluno->regLivroNum)) $campos .=' reg_livro_num = ?,';\n\t\t if(!empty($aluno->regFolhaNum)) $campos .=' reg_folha_num = ?,';\n\t\t if(!empty($aluno->regComarca)) $campos .=' reg_comarca = ?,';\n\t\t if(!empty($aluno->rg)) $campos .=' rg = ?,';\n\t\t if(!empty($aluno->rgOrgao)) $campos .=' rg_orgao = ?,';\n\t\t if(!empty($aluno->rgDataExpedicao)) $campos .=' rg_data_expedicao = ?,';\n\t\t if(!empty($aluno->titulo)) $campos .=' titulo = ?,';\n\t\t if(!empty($aluno->tituloZona)) $campos .=' titulo_zona = ?,';\n\t\t if(!empty($aluno->tituloSecao)) $campos .=' titulo_secao = ?,';\n\t\t if(!empty($aluno->reservista)) $campos .=' reservista = ?,';\n\t\t if(!empty($aluno->reservistaSerie)) $campos .=' reservista_serie = ?,';\n\t\t if(!empty($aluno->reservistaNumero)) $campos .=' reservista_numero = ?,';\n\t\t if(!empty($aluno->reservistaCategNum)) $campos .=' reservista_categ_num = ?,';\n\t\t if(!empty($aluno->reservistaCsm)) $campos .=' reservista_csm = ?,';\n\t\t if(!empty($aluno->cartProf)) $campos .=' cart_prof = ?,';\n\t\t if(!empty($aluno->grupoSangue)) $campos .=' grupo_sangue = ?,';\n\t\t if(!empty($aluno->grupoSangueRh)) $campos .=' grupo_sangue_rh = ?,';\n\t\t if(!empty($aluno->grupoSangueAlergia)) $campos .=' grupo_sangue_alergia = ?,';\n\t\t if(!empty($aluno->grupoSangueDiabetico)) $campos .=' grupo_sangue_diabetico = ?,';\n\t\t if(!empty($aluno->outraDoenca)) $campos .=' outra_doenca = ?,';\n\t\t if(!empty($aluno->familiaComposta)) $campos .=' familia_composta = ?,';\n\t\t if(!empty($aluno->estadoCivil)) $campos .=' estado_civil = ?,';\n\t\t if(!empty($aluno->usaOculo)) $campos .=' usa_oculos = ?,';\n\t\t if(!empty($aluno->destro)) $campos .=' destro = ?,';\n\t\t if(!empty($aluno->convenio)) $campos .=' convenio = ?,';\n\t\t if(!empty($aluno->nomePai)) $campos .=' nome_pai = ?,';\n\t\t if(!empty($aluno->paiVivo)) $campos .=' pai_vivo = ?,';\n\t\t if(!empty($aluno->paiNacionalidade)) $campos .=' pai_nacionalidade = ?,';\n\t\t if(!empty($aluno->paiNaturalidade)) $campos .=' pai_naturalidade = ?,';\n\t\t if(!empty($aluno->paiNivEscolar)) $campos .=' pai_niv_escolar = ?,';\n\t\t if(!empty($aluno->paiReligiao)) $campos .=' pai_religiao = ?,';\n\t\t if(!empty($aluno->paiProfissao)) $campos .=' pai_profissao = ?,';\n\t\t if(!empty($aluno->paiEnderTrab)) $campos .=' pai_ender_trab = ?,';\n\t\t if(!empty($aluno->paiTelefone)) $campos .=' pai_telefone = ?,';\n\t\t if(!empty($aluno->paiEmail)) $campos .=' pai_email = ?,';\n\t\t if(!empty($aluno->paiTitulo)) $campos .=' pai_titulo = ?,';\n\t\t if(!empty($aluno->paiTituloZona)) $campos .=' pai_titulo_zona = ?,';\n\t\t if(!empty($aluno->paiTituloSecao)) $campos .=' pai_titulo_secao = ?,';\n\t\t if(!empty($aluno->nomeMae)) $campos .=' nome_mae = ?,';\n\t\t if(!empty($aluno->maeViva)) $campos .=' mae_viva = ?,';\n\t\t if(!empty($aluno->maeNacionalidade)) $campos .=' mae_nacionalidade = ?,';\n\t\t if(!empty($aluno->maeNaturalidade)) $campos .=' mae_naturalidade = ?,';\n\t\t if(!empty($aluno->maeNivEscolar)) $campos .=' mae_niv_escolar = ?,';\n\t\t if(!empty($aluno->maeReligiao)) $campos .=' mae_religiao = ?,';\n\t\t if(!empty($aluno->maeProfissao)) $campos .=' mae_profissao = ?,';\n\t\t if(!empty($aluno->maeEnderTrab)) $campos .=' mae_ender_trab = ?,';\n\t\t if(!empty($aluno->maeTelefone)) $campos .=' mae_telefone = ?,';\n\t\t if(!empty($aluno->maeEmail)) $campos .=' mae_email = ?,';\n\t\t if(!empty($aluno->maeTitulo)) $campos .=' mae_titulo = ?,';\n\t\t if(!empty($aluno->maeTituloZona)) $campos .=' mae_titulo_zona = ?,';\n\t\t if(!empty($aluno->maeTituloSecao)) $campos .=' mae_titulo_secao = ?,';\n\t\t if(!empty($aluno->maeNi)) $campos .=' mae_nis = ?,';\n\t\t if(!empty($aluno->paiNi)) $campos .=' pai_nis = ?,';\n\t\t if(!empty($aluno->nomeResponsavel)) $campos .=' nome_responsavel = ?,';\n\t\t if(!empty($aluno->parentescoResponsavel)) $campos .=' parentesco_responsavel = ?,';\n\t\t if(!empty($aluno->nacionalResponsavel)) $campos .=' nacional_responsavel = ?,';\n\t\t if(!empty($aluno->naturalResponsavel)) $campos .=' natural_responsavel = ?,';\n\t\t if(!empty($aluno->nivEscolarResponsavel)) $campos .=' niv_escolar_responsavel = ?,';\n\t\t if(!empty($aluno->religiaoResponsavel)) $campos .=' religiao_responsavel = ?,';\n\t\t if(!empty($aluno->profissaoResponsavel)) $campos .=' profissao_responsavel = ?,';\n\t\t if(!empty($aluno->enderTrabResponsavel)) $campos .=' ender_trab_responsavel = ?,';\n\t\t if(!empty($aluno->telefResponsavel)) $campos .=' telef_responsavel = ?,';\n\t\t if(!empty($aluno->emailResponsavel)) $campos .=' email_responsavel = ?,';\n\t\t if(!empty($aluno->tituloResponsavel)) $campos .=' titulo_responsavel = ?,';\n\t\t if(!empty($aluno->tituloZonaResponsavel)) $campos .=' titulo_zona_responsavel = ?,';\n\t\t if(!empty($aluno->tituloSecaoResponsavel)) $campos .=' titulo_secao_responsavel = ?,';\n\t\t if(!empty($aluno->descriTranspEscolar)) $campos .=' descri_transp_escolar = ?,';\n\t\t if(!empty($aluno->paiUf)) $campos .=' pai_uf = ?,';\n\t\t if(!empty($aluno->maeUf)) $campos .=' mae_uf = ?,';\n\t\t if(!empty($aluno->responsavelUf)) $campos .=' responsavel_uf = ?,';\n\t\t if(!empty($aluno->dataNascimento)) $campos .=' data_nascimento = ?,';\n\t\t if(!empty($aluno->ufRegComarca)) $campos .=' uf_reg_comarca = ?,';\n\t\t if(!empty($aluno->cpfAluno)) $campos .=' cpf_aluno = ?,';\n\t\t if(!empty($aluno->cpfPai)) $campos .=' cpf_pai = ?,';\n\t\t if(!empty($aluno->cpfMae)) $campos .=' cpf_mae = ?,';\n\t\t if(!empty($aluno->cpfResponsavel)) $campos .=' cpf_responsavel = ?,';\n\t\t if(!empty($aluno->codUf)) $campos .=' cod_uf = ?,';\n\t\t if(!empty($aluno->codCidade)) $campos .=' cod_cidade = ?,';\n\t\t if(!empty($aluno->codPai)) $campos .=' cod_pais = ?,';\n\t\t if(!empty($aluno->created)) $campos .=' created = ?,';\n\t\t if(!empty($aluno->status)) $campos .=' status = ?,';\n\t\t if(!empty($aluno->senha)) $campos .=' senha = ?,';\n\t\t if(!empty($aluno->foto)) $campos .=' foto = ?,';\n\t\t if(!empty($aluno->colaboraRendaFamiliar)) $campos .=' colabora_renda_familiar = ?,';\n\n \n $campos = substr($campos,0,-1);\n \n $sql = 'UPDATE aluno SET '.$campos.' WHERE id = ?';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\t\n\t\t if(!empty($aluno->nome)) \t\t$sqlQuery->set($aluno->nome);\n\t\t if(!empty($aluno->endereco)) \t\t$sqlQuery->set($aluno->endereco);\n\t\t if(!empty($aluno->numero)) \t\t$sqlQuery->set($aluno->numero);\n\t\t if(!empty($aluno->bairro)) \t\t$sqlQuery->set($aluno->bairro);\n\t\t if(!empty($aluno->cidade)) \t\t$sqlQuery->set($aluno->cidade);\n\t\t if(!empty($aluno->nacionalidade)) \t\t$sqlQuery->set($aluno->nacionalidade);\n\t\t if(!empty($aluno->cep)) \t\t$sqlQuery->set($aluno->cep);\n\t\t if(!empty($aluno->uf)) \t\t$sqlQuery->set($aluno->uf);\n\t\t if(!empty($aluno->local)) \t\t$sqlQuery->set($aluno->local);\n\t\t if(!empty($aluno->complemento)) \t\t$sqlQuery->set($aluno->complemento);\n\t\t if(!empty($aluno->inep)) \t\t$sqlQuery->set($aluno->inep);\n\t\t if(!empty($aluno->ni)) \t\t$sqlQuery->set($aluno->ni);\n\t\t if(!empty($aluno->telefone)) \t\t$sqlQuery->set($aluno->telefone);\n\t\t if(!empty($aluno->celular)) \t\t$sqlQuery->set($aluno->celular);\n\t\t if(!empty($aluno->email)) \t\t$sqlQuery->set($aluno->email);\n\t\t if(!empty($aluno->peso)) \t\t$sqlQuery->set($aluno->peso);\n\t\t if(!empty($aluno->altura)) \t\t$sqlQuery->set($aluno->altura);\n\t\t if(!empty($aluno->raca)) \t\t$sqlQuery->set($aluno->raca);\n\t\t if(!empty($aluno->tipoDefic)) \t\t$sqlQuery->set($aluno->tipoDefic);\n\t\t if(!empty($aluno->tipoTranspEscolar)) \t\t$sqlQuery->set($aluno->tipoTranspEscolar);\n\t\t if(!empty($aluno->idEducCenso)) \t\t$sqlQuery->set($aluno->idEducCenso);\n\t\t if(!empty($aluno->tipoUsoInternet)) \t\t$sqlQuery->set($aluno->tipoUsoInternet);\n\t\t if(!empty($aluno->sexo)) \t\t$sqlQuery->set($aluno->sexo);\n\t\t if(!empty($aluno->regNascimento)) \t\t$sqlQuery->set($aluno->regNascimento);\n\t\t if(!empty($aluno->regLivroNum)) \t\t$sqlQuery->set($aluno->regLivroNum);\n\t\t if(!empty($aluno->regFolhaNum)) \t\t$sqlQuery->set($aluno->regFolhaNum);\n\t\t if(!empty($aluno->regComarca)) \t\t$sqlQuery->set($aluno->regComarca);\n\t\t if(!empty($aluno->rg)) \t\t$sqlQuery->set($aluno->rg);\n\t\t if(!empty($aluno->rgOrgao)) \t\t$sqlQuery->set($aluno->rgOrgao);\n\t\t if(!empty($aluno->rgDataExpedicao)) \t\t$sqlQuery->set($aluno->rgDataExpedicao);\n\t\t if(!empty($aluno->titulo)) \t\t$sqlQuery->set($aluno->titulo);\n\t\t if(!empty($aluno->tituloZona)) \t\t$sqlQuery->set($aluno->tituloZona);\n\t\t if(!empty($aluno->tituloSecao)) \t\t$sqlQuery->set($aluno->tituloSecao);\n\t\t if(!empty($aluno->reservista)) \t\t$sqlQuery->set($aluno->reservista);\n\t\t if(!empty($aluno->reservistaSerie)) \t\t$sqlQuery->set($aluno->reservistaSerie);\n\t\t if(!empty($aluno->reservistaNumero)) \t\t$sqlQuery->set($aluno->reservistaNumero);\n\t\t if(!empty($aluno->reservistaCategNum)) \t\t$sqlQuery->set($aluno->reservistaCategNum);\n\t\t if(!empty($aluno->reservistaCsm)) \t\t$sqlQuery->set($aluno->reservistaCsm);\n\t\t if(!empty($aluno->cartProf)) \t\t$sqlQuery->set($aluno->cartProf);\n\t\t if(!empty($aluno->grupoSangue)) \t\t$sqlQuery->set($aluno->grupoSangue);\n\t\t if(!empty($aluno->grupoSangueRh)) \t\t$sqlQuery->set($aluno->grupoSangueRh);\n\t\t if(!empty($aluno->grupoSangueAlergia)) \t\t$sqlQuery->set($aluno->grupoSangueAlergia);\n\t\t if(!empty($aluno->grupoSangueDiabetico)) \t\t$sqlQuery->set($aluno->grupoSangueDiabetico);\n\t\t if(!empty($aluno->outraDoenca)) \t\t$sqlQuery->set($aluno->outraDoenca);\n\t\t if(!empty($aluno->familiaComposta)) \t\t$sqlQuery->set($aluno->familiaComposta);\n\t\t if(!empty($aluno->estadoCivil)) \t\t$sqlQuery->set($aluno->estadoCivil);\n\t\t if(!empty($aluno->usaOculo)) \t\t$sqlQuery->set($aluno->usaOculo);\n\t\t if(!empty($aluno->destro)) \t\t$sqlQuery->set($aluno->destro);\n\t\t if(!empty($aluno->convenio)) \t\t$sqlQuery->set($aluno->convenio);\n\t\t if(!empty($aluno->nomePai)) \t\t$sqlQuery->set($aluno->nomePai);\n\t\t if(!empty($aluno->paiVivo)) \t\t$sqlQuery->set($aluno->paiVivo);\n\t\t if(!empty($aluno->paiNacionalidade)) \t\t$sqlQuery->set($aluno->paiNacionalidade);\n\t\t if(!empty($aluno->paiNaturalidade)) \t\t$sqlQuery->set($aluno->paiNaturalidade);\n\t\t if(!empty($aluno->paiNivEscolar)) \t\t$sqlQuery->set($aluno->paiNivEscolar);\n\t\t if(!empty($aluno->paiReligiao)) \t\t$sqlQuery->set($aluno->paiReligiao);\n\t\t if(!empty($aluno->paiProfissao)) \t\t$sqlQuery->set($aluno->paiProfissao);\n\t\t if(!empty($aluno->paiEnderTrab)) \t\t$sqlQuery->set($aluno->paiEnderTrab);\n\t\t if(!empty($aluno->paiTelefone)) \t\t$sqlQuery->set($aluno->paiTelefone);\n\t\t if(!empty($aluno->paiEmail)) \t\t$sqlQuery->set($aluno->paiEmail);\n\t\t if(!empty($aluno->paiTitulo)) \t\t$sqlQuery->set($aluno->paiTitulo);\n\t\t if(!empty($aluno->paiTituloZona)) \t\t$sqlQuery->set($aluno->paiTituloZona);\n\t\t if(!empty($aluno->paiTituloSecao)) \t\t$sqlQuery->set($aluno->paiTituloSecao);\n\t\t if(!empty($aluno->nomeMae)) \t\t$sqlQuery->set($aluno->nomeMae);\n\t\t if(!empty($aluno->maeViva)) \t\t$sqlQuery->set($aluno->maeViva);\n\t\t if(!empty($aluno->maeNacionalidade)) \t\t$sqlQuery->set($aluno->maeNacionalidade);\n\t\t if(!empty($aluno->maeNaturalidade)) \t\t$sqlQuery->set($aluno->maeNaturalidade);\n\t\t if(!empty($aluno->maeNivEscolar)) \t\t$sqlQuery->set($aluno->maeNivEscolar);\n\t\t if(!empty($aluno->maeReligiao)) \t\t$sqlQuery->set($aluno->maeReligiao);\n\t\t if(!empty($aluno->maeProfissao)) \t\t$sqlQuery->set($aluno->maeProfissao);\n\t\t if(!empty($aluno->maeEnderTrab)) \t\t$sqlQuery->set($aluno->maeEnderTrab);\n\t\t if(!empty($aluno->maeTelefone)) \t\t$sqlQuery->set($aluno->maeTelefone);\n\t\t if(!empty($aluno->maeEmail)) \t\t$sqlQuery->set($aluno->maeEmail);\n\t\t if(!empty($aluno->maeTitulo)) \t\t$sqlQuery->set($aluno->maeTitulo);\n\t\t if(!empty($aluno->maeTituloZona)) \t\t$sqlQuery->set($aluno->maeTituloZona);\n\t\t if(!empty($aluno->maeTituloSecao)) \t\t$sqlQuery->set($aluno->maeTituloSecao);\n\t\t if(!empty($aluno->maeNi)) \t\t$sqlQuery->set($aluno->maeNi);\n\t\t if(!empty($aluno->paiNi)) \t\t$sqlQuery->set($aluno->paiNi);\n\t\t if(!empty($aluno->nomeResponsavel)) \t\t$sqlQuery->set($aluno->nomeResponsavel);\n\t\t if(!empty($aluno->parentescoResponsavel)) \t\t$sqlQuery->set($aluno->parentescoResponsavel);\n\t\t if(!empty($aluno->nacionalResponsavel)) \t\t$sqlQuery->set($aluno->nacionalResponsavel);\n\t\t if(!empty($aluno->naturalResponsavel)) \t\t$sqlQuery->set($aluno->naturalResponsavel);\n\t\t if(!empty($aluno->nivEscolarResponsavel)) \t\t$sqlQuery->set($aluno->nivEscolarResponsavel);\n\t\t if(!empty($aluno->religiaoResponsavel)) \t\t$sqlQuery->set($aluno->religiaoResponsavel);\n\t\t if(!empty($aluno->profissaoResponsavel)) \t\t$sqlQuery->set($aluno->profissaoResponsavel);\n\t\t if(!empty($aluno->enderTrabResponsavel)) \t\t$sqlQuery->set($aluno->enderTrabResponsavel);\n\t\t if(!empty($aluno->telefResponsavel)) \t\t$sqlQuery->set($aluno->telefResponsavel);\n\t\t if(!empty($aluno->emailResponsavel)) \t\t$sqlQuery->set($aluno->emailResponsavel);\n\t\t if(!empty($aluno->tituloResponsavel)) \t\t$sqlQuery->set($aluno->tituloResponsavel);\n\t\t if(!empty($aluno->tituloZonaResponsavel)) \t\t$sqlQuery->set($aluno->tituloZonaResponsavel);\n\t\t if(!empty($aluno->tituloSecaoResponsavel)) \t\t$sqlQuery->set($aluno->tituloSecaoResponsavel);\n\t\t if(!empty($aluno->descriTranspEscolar)) \t\t$sqlQuery->set($aluno->descriTranspEscolar);\n\t\t if(!empty($aluno->paiUf)) \t\t$sqlQuery->set($aluno->paiUf);\n\t\t if(!empty($aluno->maeUf)) \t\t$sqlQuery->set($aluno->maeUf);\n\t\t if(!empty($aluno->responsavelUf)) \t\t$sqlQuery->set($aluno->responsavelUf);\n\t\t if(!empty($aluno->dataNascimento)) \t\t$sqlQuery->set($aluno->dataNascimento);\n\t\t if(!empty($aluno->ufRegComarca)) \t\t$sqlQuery->set($aluno->ufRegComarca);\n\t\t if(!empty($aluno->cpfAluno)) \t\t$sqlQuery->set($aluno->cpfAluno);\n\t\t if(!empty($aluno->cpfPai)) \t\t$sqlQuery->set($aluno->cpfPai);\n\t\t if(!empty($aluno->cpfMae)) \t\t$sqlQuery->set($aluno->cpfMae);\n\t\t if(!empty($aluno->cpfResponsavel)) \t\t$sqlQuery->set($aluno->cpfResponsavel);\n\t\t if(!empty($aluno->codUf)) \t\t$sqlQuery->set($aluno->codUf);\n\t\t if(!empty($aluno->codCidade)) \t\t$sqlQuery->set($aluno->codCidade);\n\t\t if(!empty($aluno->codPai)) \t\t$sqlQuery->set($aluno->codPai);\n\t\t if(!empty($aluno->created)) \t\t$sqlQuery->set($aluno->created);\n\t\t if(!empty($aluno->status)) \t\t$sqlQuery->set($aluno->status);\n\t\t if(!empty($aluno->senha)) \t\t$sqlQuery->set($aluno->senha);\n\t\t if(!empty($aluno->foto)) \t\t$sqlQuery->set($aluno->foto);\n\t\t if(!empty($aluno->colaboraRendaFamiliar)) \t\t$sqlQuery->set($aluno->colaboraRendaFamiliar);\n\n\t\t$sqlQuery->setNumber($aluno->id);\n\t\treturn $this->executeUpdate($sqlQuery);\n\t}", "function asignar_valores(){\n\t\t$this->codigo=$_POST['codigo'];\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->marca=$_POST['marca'];\n\t\t$this->fecha=$_POST['fecha'];\n\t\t$this->categoria=$_POST['categoria'];\n\t\t$this->hotel=$_POST['hoteles'];\n\t\t$this->cantidad=$_POST['cantidad'];\n\t\t$this->lugar=$_POST['lugar'];\n\t\t$this->prioridad=$_POST['prioridad'];\n\t\t$this->detal=$_POST['detal'];\n\t\t$this->mayor=$_POST['mayor'];\n\t\t$this->limite=$_POST['limite'];\n\t\t$this->descripcion=$_POST['descripcion'];\n\t\t$this->claves=$_POST['claves'];\n\t\t$this->segmento=$_POST['segmento'];\n\t\t$this->principal=$_POST['principal'];\n\t\t\n\t\t\n\t}", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_schema('');\n $this->setId_item('');\n $this->setId_ubi('');\n $this->setId_tarifa('');\n $this->setYear('');\n $this->setCantidad('');\n $this->setObserv('');\n $this->setId_serie('');\n $this->setPrimary_key($aPK);\n }", "protected function setDbalInputFieldsToRender() {}", "public static function setters();", "private function addAtrributesToCRUD() {\r\n if (!empty($this->__attributes)) {\r\n $this->myCRUD()->setAtributes($this->__attributes);\r\n }\r\n }", "protected function prepareForValidation()\n {\n $this->merge([\n 'nome' => $this->nome,\n 'nascimento' => convertDateToDatabase($this->nascimento),\n 'cpf' => returnOnlyNumbers($this->cpf),\n 'email' => $this->email,\n ]);\n }", "public function atualizar(){\r\n return (new Database('atividades'))->update('id = '.$this->id,[\r\n 'titulo' => $this->titulo,\r\n 'descricao' => $this->descricao,\r\n 'ativo' => $this->ativo,\r\n 'data' => $this->data\r\n ]);\r\n }", "function _prep_for_form($field)\r\n\t{\r\n\t\t$this->{$field} = $this->form_validation->prep_for_form($this->{$field});\r\n\t}", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_item('');\n $this->setId_ubi('');\n $this->setF_gasto('');\n $this->setTipo('');\n $this->setCantidad('');\n $this->setPrimary_key($aPK);\n }", "protected function prepareForValidation(): void\n {\n // $this->merge([\n // 'created_by' => Auth::user()->id\n // ]);\n // $this->merge([\n // 'updated_by' => Auth::user()->id\n // ]);\n\n // $this->merge([\n // 'status' => 'Active',\n // 'name' => $this->input('display_name'),\n // 'password' => ''\n // ]);\n\n\n // $this->merge([\n // 'slug' => str_slug($this->input('title'))\n // ]);\n // $this->merge([\n // 'posted_at' => Carbon::parse($this->input('posted_at'))\n // ]);\n }", "function asignar_valores3(){\n\t\t//$this->ciudad=$_SESSION['ciudad_admin'];\n\t\t\n\t\t$this->id=$_POST['id'];\n\t\t$this->temporada=$_POST['temporada'];\n\t\t$this->nombre=$_POST['nombre_plan'];\n\t\t$this->descripcion=$_POST['descripcion_plan'];\n\t\t$this->precio=$_POST['precio_plan'];\n\t\t$this->maxadultos=$_POST['maxadultos'];\n\t\t$this->prioridad=$_POST['prioridad'];\n\t\t$this->mostrar=$_POST['publica'];\n\t\t\n\t}", "function asignar_valores2(){\n\t\t/* Metodo para recibir valores del exterior. */\n\t\t//$this->ciudad=$_SESSION['ciudad_admin'];\n\t\t\n\t\t$this->id=$_POST['id'];\n\t\t$this->desde=$_POST['desde'];\n\t\t$this->hasta=$_POST['hasta'];\n\t\t$this->titulo=$_POST['titulo'];\n\t\t$this->alternativo=$_POST['alternativo'];\n\t\t$this->paxadicional=$_POST['paxadicional'];\n\t\t$this->prioridad=$_POST['prioridad'];\n\t\t$this->mostrar=$_POST['publica'];\n\t\t\n\t\t$this->desde_a=$_POST['desde_a'];\n\t\t$this->hasta_a=$_POST['hasta_a'];\n\t\t$this->precio_a=$_POST['precio_a'];\n\t\t$this->desde_b=$_POST['desde_b'];\n\t\t$this->hasta_b=$_POST['hasta_b'];\n\t\t$this->precio_b=$_POST['precio_b'];\n\t\t\n\t}", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->ed222_i_codigo = ($this->ed222_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed222_i_codigo\"]:$this->ed222_i_codigo);\n $this->ed222_i_itinerario = ($this->ed222_i_itinerario == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed222_i_itinerario\"]:$this->ed222_i_itinerario);\n $this->ed222_i_escolaproc = ($this->ed222_i_escolaproc == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed222_i_escolaproc\"]:$this->ed222_i_escolaproc);\n }else{\n $this->ed222_i_codigo = ($this->ed222_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed222_i_codigo\"]:$this->ed222_i_codigo);\n }\n }", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->y78_codtipo = ($this->y78_codtipo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"y78_codtipo\"]:$this->y78_codtipo);\n $this->y78_receit = ($this->y78_receit == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"y78_receit\"]:$this->y78_receit);\n $this->y78_valor = ($this->y78_valor == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"y78_valor\"]:$this->y78_valor);\n $this->y78_descr = ($this->y78_descr == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"y78_descr\"]:$this->y78_descr);\n }else{\n $this->y78_codtipo = ($this->y78_codtipo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"y78_codtipo\"]:$this->y78_codtipo);\n $this->y78_receit = ($this->y78_receit == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"y78_receit\"]:$this->y78_receit);\n }\n }", "public function postHydrate(): void\n {\n if ('invalid' === $this->value) {\n $this->value = 'valid';\n }\n }", "public function setAttributes()\n\t{\n\t\t$this->title \t\t= Input::get( 'title' );\n\t\t$this->description \t= Input::get( 'description' );\n\t\t$this->color \t\t= Input::get( 'color' );\n\t\t$this->type \t\t= Input::get( 'type' );\n\t\t$this->canvas_id\t= Input::get( 'canvas_id', Input::get( 'canvasId' ) );\n\t}", "function after_validation_on_update() {}", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_region('');\n $this->setRegion('');\n $this->setNombre_region('');\n $this->setStatus('');\n $this->setPrimary_key($aPK);\n }", "public function actualiza($dataArray){\n //deleted, created_at y updated_at son comunes, pero estos jamas se actualizaran por acá\n if (array_key_exists('fechaNac',$dataArray))\n $dataArray['fechaNac'] = DateFormat::spanishDateToEnglishDate($dataArray['fechaNac']);\n if (array_key_exists('password',$dataArray))\n $dataArray['password'] = bcrypt($dataArray['password']);\n $this->personaNatural->update($dataArray);\n $this->model->update($dataArray); //set data only in its PersonaNatural model\n }", "function setInputValues()\n {\n // Set input type based on GET/POST\n $inputType = ($_SERVER['REQUEST_METHOD'] === 'POST') ? INPUT_POST : INPUT_GET;\n // Init global variables\n global $typeID, $classID, $makeID, $price, $model, $year;\n global $sort, $sortDirection;\n // Set each variable, escape special characters\n $typeID = filter_input($inputType, 'typeID', FILTER_VALIDATE_INT);\n $classID = filter_input($inputType, 'classID', FILTER_VALIDATE_INT);\n $makeID = filter_input($inputType, 'makeID', FILTER_VALIDATE_INT);\n $sort = filter_input($inputType, 'sort', FILTER_VALIDATE_INT);\n $sortDirection = filter_input($inputType, 'sortDirection', FILTER_VALIDATE_INT);\n $price = filter_input($inputType, 'price', FILTER_VALIDATE_INT);\n $year = filter_input($inputType, 'year', FILTER_VALIDATE_INT);\n $model = htmlspecialchars(filter_input($inputType, 'model'));\n }", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->ed03_i_codigo = ($this->ed03_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed03_i_codigo\"]:$this->ed03_i_codigo);\n $this->ed03_i_rechumanoativ = ($this->ed03_i_rechumanoativ == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed03_i_rechumanoativ\"]:$this->ed03_i_rechumanoativ);\n $this->ed03_i_relacaotrabalho = ($this->ed03_i_relacaotrabalho == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed03_i_relacaotrabalho\"]:$this->ed03_i_relacaotrabalho);\n }else{\n $this->ed03_i_codigo = ($this->ed03_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed03_i_codigo\"]:$this->ed03_i_codigo);\n }\n }", "public function setModelDefaults() \n {\n if (!empty($this->model->defaultFieldValues())) {\n \n foreach($this->model->defaultFieldValues() as $field => $defaultValue) {\n\n $this->model->$field = $defaultValue;\n }\n } \n }", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->c64_codpla = ($this->c64_codpla == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"c64_codpla\"]:$this->c64_codpla);\n $this->c64_estrut = ($this->c64_estrut == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"c64_estrut\"]:$this->c64_estrut);\n $this->c64_descr = ($this->c64_descr == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"c64_descr\"]:$this->c64_descr);\n }else{\n $this->c64_codpla = ($this->c64_codpla == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"c64_codpla\"]:$this->c64_codpla);\n }\n }", "public function _set_model_fields(){\n // set fields only when they have not been set for this object\n if($this->_fields_loaded===FALSE){\n\n foreach ($this->_meta() as $meta) {\n\n $this->{$meta->name} = '';\n }\n }\n }", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->ed77_i_codigo = ($this->ed77_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed77_i_codigo\"]:$this->ed77_i_codigo);\n $this->ed77_i_base = ($this->ed77_i_base == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed77_i_base\"]:$this->ed77_i_base);\n $this->ed77_i_escola = ($this->ed77_i_escola == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed77_i_escola\"]:$this->ed77_i_escola);\n $this->ed77_i_basecont = ($this->ed77_i_basecont == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed77_i_basecont\"]:$this->ed77_i_basecont);\n }else{\n $this->ed77_i_codigo = ($this->ed77_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed77_i_codigo\"]:$this->ed77_i_codigo);\n }\n }", "public function atualizar($oficina){\r\n\t\t$sql = 'UPDATE oficina SET id = :id, nome = :nome, data = :data, carga_horaria = :carga_horaria, horario = :horario, id_evento = :id_evento, tipo = :tipo, vagas = :vagas WHERE id = :id';\r\n\t\t$consulta = $conexao->prepare($sql);\r\n\t\t$consulta->bindValue(':id',$oficina->getId()); \n\r\t\t$consulta->bindValue(':nome',$oficina->getNome()); \n\r\t\t$consulta->bindValue(':data',$oficina->getData()); \n\r\t\t$consulta->bindValue(':carga_horaria',$oficina->getCarga_horaria()); \n\r\t\t$consulta->bindValue(':horario',$oficina->getHorario()); \n\r\t\t$consulta->bindValue(':id_evento',$oficina->getId_evento()); \n\r\t\t$consulta->bindValue(':tipo',$oficina->getTipo()); \n\r\t\t$consulta->bindValue(':vagas',$oficina->getVagas()); \r\n\t\t$consulta->execute();\r\n\t}", "function before_validation_on_update() {}", "public function onBeforeWrite()\n {\n foreach (self::$defaults as $field => $value) {\n if (empty($this->$field)) {\n $this->$field = $value;\n }\n }\n //TODO: prevent non-heirarichal entries, eg country = '*', then state = 'blah'\n parent::onBeforeWrite();\n }", "protected function editar()\n {\n }", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->fa35_i_codigo = ($this->fa35_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"fa35_i_codigo\"]:$this->fa35_i_codigo);\n $this->fa35_i_listacontrolado = ($this->fa35_i_listacontrolado == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"fa35_i_listacontrolado\"]:$this->fa35_i_listacontrolado);\n $this->fa35_i_medanvisa = ($this->fa35_i_medanvisa == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"fa35_i_medanvisa\"]:$this->fa35_i_medanvisa);\n }else{\n $this->fa35_i_codigo = ($this->fa35_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"fa35_i_codigo\"]:$this->fa35_i_codigo);\n }\n }", "public function beforeSave()\n {\n $value = $this->getValue();\n $value = $this->makeStorableArrayFieldValue($value);\n $this->setValue($value);\n }", "public function beforeValidation() {\n\t\t$this->modified = new RawValue('now()');\n\t}", "public function setFielda($campos) {\n $fields = $this->separate($campos[0]);\n\n # Get the query based in filters\n $this->checkFields($fields);\n # If exists two type fields, check table\n $this->checkTable($campos[1]);\n # Check type of data\n $this->checkType();\n}", "function SeteoCampos(){\n\t\t// Campos que van en en detalle, deben empezar su nombre con 'C'\n\t\t$this->addField('C1', 99999,\t0, 15);\n $this->addField('C2', 99999,\t0, 15);\n $this->addField('C3', 99999,\t0, 40);\t\t\n $this->addField('C4', 99999,\t0, 65);\t\t\n $this->addField('C5', 99999,\t0, 40);\n $this->addField('C6', 99999,\t0, 25);\t\t\n $this->addField('C7', 99999,\t0, 65);\t\t\n\t\t\n\t\t$this->addField('HG1', 0,\t0,\t160);\n\t\t\t\t\n\t}", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->tr20_id = ($this->tr20_id == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tr20_id\"]:$this->tr20_id);\n if($this->tr20_dtalvara == \"\"){\n $this->tr20_dtalvara_dia = ($this->tr20_dtalvara_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tr20_dtalvara_dia\"]:$this->tr20_dtalvara_dia);\n $this->tr20_dtalvara_mes = ($this->tr20_dtalvara_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tr20_dtalvara_mes\"]:$this->tr20_dtalvara_mes);\n $this->tr20_dtalvara_ano = ($this->tr20_dtalvara_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tr20_dtalvara_ano\"]:$this->tr20_dtalvara_ano);\n if($this->tr20_dtalvara_dia != \"\"){\n $this->tr20_dtalvara = $this->tr20_dtalvara_ano.\"-\".$this->tr20_dtalvara_mes.\"-\".$this->tr20_dtalvara_dia;\n }\n }\n $this->tr20_numcgm = ($this->tr20_numcgm == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tr20_numcgm\"]:$this->tr20_numcgm);\n $this->tr20_ruaid = ($this->tr20_ruaid == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tr20_ruaid\"]:$this->tr20_ruaid);\n $this->tr20_nro = ($this->tr20_nro == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tr20_nro\"]:$this->tr20_nro);\n $this->tr20_bairroid = ($this->tr20_bairroid == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tr20_bairroid\"]:$this->tr20_bairroid);\n $this->tr20_complem = ($this->tr20_complem == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tr20_complem\"]:$this->tr20_complem);\n $this->tr20_fone = ($this->tr20_fone == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tr20_fone\"]:$this->tr20_fone);\n $this->tr20_prefixo = ($this->tr20_prefixo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tr20_prefixo\"]:$this->tr20_prefixo);\n }else{\n $this->tr20_id = ($this->tr20_id == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tr20_id\"]:$this->tr20_id);\n }\n }", "protected function prepareForValidation()\n {\n\n $attrs = $this->all();\n $attrs['day'] = ucfirst($attrs['day']);\n $hours = $this->transformHoursAndMinutes();\n $attrs['time_start'] = $hours[0];\n $attrs['time_end'] = $hours[1];\n $this->replace($attrs);\n }", "function save_user_fields ($user_id) {\n if ( isset($_POST['billing_first_name']) ){\n update_user_meta($user_id, 'billing_first_name', sanitize_text_field($_POST['billing_first_name']));\n }\n \n if ( isset($_POST['billing_last_name']) ){\n update_user_meta($user_id, 'billing_last_name', sanitize_text_field($_POST['billing_last_name']));\n }\n\n if ( isset($_POST['billing_tipo_documento']) ){\n update_user_meta($user_id, 'billing_tipo_documento', sanitize_text_field($_POST['billing_tipo_documento']));\n }\n\n if ( isset($_POST['billing_numero_documento']) ){\n update_user_meta($user_id, 'billing_numero_documento', sanitize_text_field($_POST['billing_numero_documento']));\n }\n \n}", "private function setupFieldsAttributes() {\n\n\t\tforeach ( $this->form as $field ) {\n\n\t\t\tif ( ! $field->hasAttribute( 'id' ) ) {\n\t\t\t\t$field->setAttribute( 'id', esc_attr( sanitize_title( $field->getName() ) ) );\n\t\t\t}\n\t\t}\n\n\t}", "public function atualiza($aluno){\n\t\t\t$sql = \"UPDATE aluno SET nome=:nome,turma=:turma,telefone=:telefone,cidade=:cidade,bairro=:bairro,rua=:rua,numero_casa=:numero_casa,complementos=:complementos WHERE id=:id\";\n\n\t\t\t$query = $this->conexao->prepare($sql);\n\n\t\t\t$query->execute(['nome'=>$aluno->getNome(),'turma'=>$aluno->getTurma(),'telefone'=>$aluno->getTelefone(), 'cidade'=>$aluno->getCidade(), 'bairro'=>$aluno->getBairro(), 'rua'=>$aluno->getRua(), 'numero_casa'=>$aluno->getNumeroCasa(), 'complementos'=>$aluno->getComplementos(), 'id'=>$aluno->getId()]);\n\n\t\t}", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->ed276_i_codigo = ($this->ed276_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed276_i_codigo\"]:$this->ed276_i_codigo);\n $this->ed276_i_alunoalt = ($this->ed276_i_alunoalt == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed276_i_alunoalt\"]:$this->ed276_i_alunoalt);\n $this->ed276_c_campo = ($this->ed276_c_campo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed276_c_campo\"]:$this->ed276_c_campo);\n $this->ed276_c_contant = ($this->ed276_c_contant == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed276_c_contant\"]:$this->ed276_c_contant);\n $this->ed276_c_contatual = ($this->ed276_c_contatual == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed276_c_contatual\"]:$this->ed276_c_contatual);\n }else{\n $this->ed276_i_codigo = ($this->ed276_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed276_i_codigo\"]:$this->ed276_i_codigo);\n }\n }", "public function actualizar_perfil(Request $request){\n // 'dato_opcion1' => $request->dato_opcion1 , 'dato_opcion2' => $request->dato_opcion2 , 'dato_opcion3' => $request->dato_opcion3 , 'opcion1_valor' => $request->opcion1_valor , 'opcion2_valor' => $request->opcion2_valor, 'opcion3_valor' => $request->opcion3_valor]);\n\nif ($request->nombre != NULL) {\n DB::table('alumno')\n ->join('users','users.id','=','user_id')\n ->where('users.id','=', Auth::user()->id)\n ->update(['nombre' => $request->nombre]);\n}\nif ($request->apellidos != NULL) {\n DB::table('alumno')\n ->join('users','users.id','=','user_id')\n ->where('users.id','=', Auth::user()->id)\n ->update(['apellidos' => $request->apellidos]);\n}\nif ($request->dni != NULL) {\n DB::table('alumno')\n ->join('users','users.id','=','user_id')\n ->where('users.id','=', Auth::user()->id)\n ->update(['dni' => $request->dni]);\n}\nif ($request->email != NULL) {\n DB::table('alumno')\n ->join('users','users.id','=','user_id')\n ->where('users.id','=', Auth::user()->id)\n ->update(['alumno.email' => $request->email]);\n}\nif ($request->direccion != NULL) {\n DB::table('alumno')\n ->join('users','users.id','=','user_id')\n ->where('users.id','=', Auth::user()->id)\n ->update(['direccion' => $request->direccion]);\n}\nif ($request->carrera != \"-\") {\n DB::table('alumno')\n ->join('users','users.id','=','user_id')\n ->where('users.id','=', Auth::user()->id)\n ->update(['carrera' => $request->carrera]);\n}\n\nif ($request->dato_opcion1 != NULL) {\n DB::table('alumno')\n ->join('users','users.id','=','user_id')\n ->where('users.id','=', Auth::user()->id)\n ->update(['dato_opcion1' => $request->dato_opcion1]);\n}\nif ($request->dato_opcion2 != NULL) {\n DB::table('alumno')\n ->join('users','users.id','=','user_id')\n ->where('users.id','=', Auth::user()->id)\n ->update(['dato_opcion2' => $request->dato_opcion2]);\n}\nif ($request->dato_opcion3 != NULL) {\n DB::table('alumno')\n ->join('users','users.id','=','user_id')\n ->where('users.id','=', Auth::user()->id)\n ->update(['dato_opcion3' => $request->dato_opcion3]);\n}\n\nif ($request->opcion1_valor != NULL) {\n DB::table('alumno')\n ->join('users','users.id','=','user_id')\n ->where('users.id','=', Auth::user()->id)\n ->update(['opcion1_valor' => $request->opcion1_valor]);\n}\nif ($request->opcion2_valor != NULL) {\n DB::table('alumno')\n ->join('users','users.id','=','user_id')\n ->where('users.id','=', Auth::user()->id)\n ->update(['opcion2_valor' => $request->opcion2_valor]);\n}\nif ($request->opcion3_valor != NULL) {\n DB::table('alumno')\n ->join('users','users.id','=','user_id')\n ->where('users.id','=', Auth::user()->id)\n ->update(['opcion3_valor' => $request->opcion3_valor]);\n}\n\nreturn redirect()->back()->with('message', 'INFORMACIÓN DE PERFIL ACTUALIZADA CORRECTAMENTE');\n\n\n}", "function save() {\n //save the added fields\n }", "public function beforeSave()\n {\n $this->setParams([\n 'url' => $this->getValue(),\n 'apiKey' => $this->getFieldsetDataValue('api_key'),\n 'version' => $this->getFieldsetDataValue('api_version')\n ]);\n\n if (!$this->isUrl($this->getValue())) {\n throw new \\Magento\\Framework\\Exception\\ValidatorException(__('Invalid CRM url'));\n }\n\n if (!$this->isHttps($this->getValue())) {\n $this->schemeEdit($this->getValue());\n }\n\n if ($this->validateApiUrl($this->api)) {\n $this->setValue($this->getValue());\n }\n\n parent::beforeSave();\n }", "public function actualizar(){\n }", "public function actualizar(){\n }", "protected function setNullAllAttributes()\n\t{\n\t\tforeach( $this->values as $field=>$value )\n\t\t{\n\t\t\tif( $value == \"real\" ) $this->$field = \"\" ;\n\t\t\telse if( $value == \"int\" ) $this->$field = \"\" ;\n\t\t\telse if( $value == \"date\" ) $this->$field = \"\" ;\n\t\t\telse if( $value == \"string\" ) $this->$field = null ;\n\t\t}\n\t}", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->l30_codigo = ($this->l30_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"l30_codigo\"]:$this->l30_codigo);\n if($this->l30_data == \"\"){\n $this->l30_data_dia = ($this->l30_data_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"l30_data_dia\"]:$this->l30_data_dia);\n $this->l30_data_mes = ($this->l30_data_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"l30_data_mes\"]:$this->l30_data_mes);\n $this->l30_data_ano = ($this->l30_data_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"l30_data_ano\"]:$this->l30_data_ano);\n if($this->l30_data_dia != \"\"){\n $this->l30_data = $this->l30_data_ano.\"-\".$this->l30_data_mes.\"-\".$this->l30_data_dia;\n }\n }\n $this->l30_portaria = ($this->l30_portaria == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"l30_portaria\"]:$this->l30_portaria);\n if($this->l30_datavalid == \"\"){\n $this->l30_datavalid_dia = ($this->l30_datavalid_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"l30_datavalid_dia\"]:$this->l30_datavalid_dia);\n $this->l30_datavalid_mes = ($this->l30_datavalid_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"l30_datavalid_mes\"]:$this->l30_datavalid_mes);\n $this->l30_datavalid_ano = ($this->l30_datavalid_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"l30_datavalid_ano\"]:$this->l30_datavalid_ano);\n if($this->l30_datavalid_dia != \"\"){\n $this->l30_datavalid = $this->l30_datavalid_ano.\"-\".$this->l30_datavalid_mes.\"-\".$this->l30_datavalid_dia;\n }\n }\n $this->l30_tipo = ($this->l30_tipo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"l30_tipo\"]:$this->l30_tipo);\n $this->l30_nomearquivo = ($this->l30_nomearquivo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"l30_nomearquivo\"]:$this->l30_nomearquivo);\n }else{\n $this->l30_codigo = ($this->l30_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"l30_codigo\"]:$this->l30_codigo);\n }\n }", "public function beforeSave()\n {\n $value = $this->getValue();\n if (is_array($value)) {\n $value = $this->_helper->makeStorableArrayFieldValue($value);\n }\n \n $this->setValue($value);\n }", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->v59_inicial = ($this->v59_inicial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"v59_inicial\"]:$this->v59_inicial);\n $this->v59_numpre = ($this->v59_numpre == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"v59_numpre\"]:$this->v59_numpre);\n }else{\n $this->v59_inicial = ($this->v59_inicial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"v59_inicial\"]:$this->v59_inicial);\n $this->v59_numpre = ($this->v59_numpre == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"v59_numpre\"]:$this->v59_numpre);\n }\n }", "public function beforeValidationOnUpdate()\n {\n // Timestamp on the update\n $this->modifyAt = time();\n }", "public function testUpdateVendorComplianceSurveyCustomFields()\n {\n }", "private function before_custom_save()\n\t\t{\n\t\t\t$fields = self::$db->table_info($this->table_name);\n\t\t\tforeach($fields AS $field)\n\t\t\t{\n\t\t\t\tif(!strlen($this->$field['name'])) {\n\t\t\t\t\t$this->$field['name'] = 'NULL';\n\t\t\t\t}\n\t\t\t\tif(method_exists($this, 'preSave_'.$field['name'])) {\n\t\t\t\t\t$this->{'preSave_'.$field['name']}($field);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "private function resetInputFields(){\n $this->name = '';\n }", "protected function _beforeSave()\n {\n $value = $this->getValue();\n $value = Mage::helper('mail/connectfields')->makeStorableArrayFieldValue($value);\n $this->setValue($value);\n }", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->pc31_orcamforne = ($this->pc31_orcamforne == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"pc31_orcamforne\"]:$this->pc31_orcamforne);\n $this->pc31_nomeretira = ($this->pc31_nomeretira == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"pc31_nomeretira\"]:$this->pc31_nomeretira);\n if($this->pc31_dtretira == \"\"){\n $this->pc31_dtretira_dia = ($this->pc31_dtretira_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"pc31_dtretira_dia\"]:$this->pc31_dtretira_dia);\n $this->pc31_dtretira_mes = ($this->pc31_dtretira_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"pc31_dtretira_mes\"]:$this->pc31_dtretira_mes);\n $this->pc31_dtretira_ano = ($this->pc31_dtretira_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"pc31_dtretira_ano\"]:$this->pc31_dtretira_ano);\n if($this->pc31_dtretira_dia != \"\"){\n $this->pc31_dtretira = $this->pc31_dtretira_ano.\"-\".$this->pc31_dtretira_mes.\"-\".$this->pc31_dtretira_dia;\n }\n }\n $this->pc31_horaretira = ($this->pc31_horaretira == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"pc31_horaretira\"]:$this->pc31_horaretira);\n $this->pc31_liclicitatipoempresa = ($this->pc31_liclicitatipoempresa == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"pc31_liclicitatipoempresa\"]:$this->pc31_liclicitatipoempresa);\n $this->pc31_tipocondicao = ($this->pc31_tipocondicao == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"pc31_tipocondicao\"]:$this->pc31_tipocondicao);\n }else{\n $this->pc31_orcamforne = ($this->pc31_orcamforne == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"pc31_orcamforne\"]:$this->pc31_orcamforne);\n }\n }", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->rh157_sequencial = ($this->rh157_sequencial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"rh157_sequencial\"]:$this->rh157_sequencial);\n $this->rh157_usuario = ($this->rh157_usuario == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"rh157_usuario\"]:$this->rh157_usuario);\n $this->rh157_lotacao = ($this->rh157_lotacao == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"rh157_lotacao\"]:$this->rh157_lotacao);\n }else{\n $this->rh157_sequencial = ($this->rh157_sequencial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"rh157_sequencial\"]:$this->rh157_sequencial);\n }\n }", "public function actualizar(){\n }", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->ov01_sequencial = ($this->ov01_sequencial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_sequencial\"]:$this->ov01_sequencial);\n $this->ov01_situacaoouvidoriaatendimento = ($this->ov01_situacaoouvidoriaatendimento == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_situacaoouvidoriaatendimento\"]:$this->ov01_situacaoouvidoriaatendimento);\n $this->ov01_tipoprocesso = ($this->ov01_tipoprocesso == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_tipoprocesso\"]:$this->ov01_tipoprocesso);\n $this->ov01_formareclamacao = ($this->ov01_formareclamacao == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_formareclamacao\"]:$this->ov01_formareclamacao);\n $this->ov01_tipoidentificacao = ($this->ov01_tipoidentificacao == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_tipoidentificacao\"]:$this->ov01_tipoidentificacao);\n $this->ov01_usuario = ($this->ov01_usuario == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_usuario\"]:$this->ov01_usuario);\n $this->ov01_depart = ($this->ov01_depart == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_depart\"]:$this->ov01_depart);\n $this->ov01_instit = ($this->ov01_instit == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_instit\"]:$this->ov01_instit);\n $this->ov01_numero = ($this->ov01_numero == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_numero\"]:$this->ov01_numero);\n $this->ov01_anousu = ($this->ov01_anousu == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_anousu\"]:$this->ov01_anousu);\n if($this->ov01_dataatend == \"\"){\n $this->ov01_dataatend_dia = ($this->ov01_dataatend_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_dataatend_dia\"]:$this->ov01_dataatend_dia);\n $this->ov01_dataatend_mes = ($this->ov01_dataatend_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_dataatend_mes\"]:$this->ov01_dataatend_mes);\n $this->ov01_dataatend_ano = ($this->ov01_dataatend_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_dataatend_ano\"]:$this->ov01_dataatend_ano);\n if($this->ov01_dataatend_dia != \"\"){\n $this->ov01_dataatend = $this->ov01_dataatend_ano.\"-\".$this->ov01_dataatend_mes.\"-\".$this->ov01_dataatend_dia;\n }\n }\n $this->ov01_horaatend = ($this->ov01_horaatend == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_horaatend\"]:$this->ov01_horaatend);\n $this->ov01_requerente = ($this->ov01_requerente == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_requerente\"]:$this->ov01_requerente);\n $this->ov01_solicitacao = ($this->ov01_solicitacao == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_solicitacao\"]:$this->ov01_solicitacao);\n $this->ov01_executado = ($this->ov01_executado == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_executado\"]:$this->ov01_executado);\n }else{\n $this->ov01_sequencial = ($this->ov01_sequencial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_sequencial\"]:$this->ov01_sequencial);\n }\n }", "public function atualizar(){\r\n return (new Database('cartao'))->update(' id = '.$this->id, [\r\n 'bandeira' => $this->bandeira,\r\n 'numero' => $this->numero,\r\n 'doador' => $this->doador,\r\n ]);\r\n }", "private function resetInput()\n {\t\t\n //Que id es para las acciones\n $this->selected_id = null;\n $this->cob_solicitud = null;\n $this->cob_comproban = null;\n $this->cob_serie = null;\n $this->cob_numero = null;\n $this->con_subtotal = null;\n $this->cob_igv = null;\n $this->cob_total = null;\n \n }" ]
[ "0.6695341", "0.6605308", "0.64370596", "0.6316871", "0.6283973", "0.6258171", "0.61481196", "0.6110965", "0.60848427", "0.60702395", "0.60149026", "0.599725", "0.59970146", "0.5989812", "0.59833664", "0.59787756", "0.5958578", "0.5952102", "0.5949218", "0.58850634", "0.58798766", "0.58768326", "0.5876628", "0.5858562", "0.5850082", "0.58473146", "0.5845345", "0.5844452", "0.58374846", "0.5832204", "0.5821885", "0.5819664", "0.5812444", "0.5810945", "0.5801257", "0.5798577", "0.5796496", "0.57763314", "0.5760644", "0.57575405", "0.5756319", "0.5751845", "0.5736158", "0.5734885", "0.57137454", "0.5707973", "0.57073426", "0.5679917", "0.56780595", "0.5669278", "0.5661958", "0.5659978", "0.565698", "0.5650588", "0.5648171", "0.5644754", "0.5625338", "0.5624294", "0.56232595", "0.56150866", "0.56145936", "0.5612502", "0.5606811", "0.5600033", "0.5599975", "0.55907667", "0.5577752", "0.5573324", "0.5572444", "0.55716074", "0.5569206", "0.5566881", "0.5566866", "0.55666983", "0.5553846", "0.5552441", "0.55479354", "0.55443203", "0.55438894", "0.55432594", "0.5542165", "0.5540224", "0.5540033", "0.55380124", "0.5536279", "0.5536279", "0.5535149", "0.55267227", "0.5523294", "0.55213153", "0.5519469", "0.5515962", "0.55152893", "0.55141896", "0.549482", "0.54921424", "0.5490246", "0.5487981", "0.5484655", "0.54841876", "0.54806924" ]
0.0
-1
Create a new event instance.
public function __construct(Model $model) { $this->model = $model; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createEvent()\n {\n return new Event();\n }", "public function __create()\n {\n $this->eventPath = $this->data('event_path');\n $this->eventName = $this->data('event_name');\n $this->eventInstance = $this->data('event_instance');\n $this->eventFilter = $this->data('event_filter');\n }", "public static function createEvent(array $data)\n {\n $event = new \\echolibre\\google_wave\\Model\\Event;\n \n $event->type = $data['type'];\n $event->timestamp = $data['timestamp'];\n $event->modifiedBy = $data['modifiedBy'];\n $event->properties = new \\stdClass();\n \n if (isset($data['properties'])) {\n $event->properties = $data['properties'];\n }\n \n return $event;\n }", "public function newEvent()\n\t{\n $this->to = $this->domain;\n $this->email = $this->info_mail;\n $this->subject = 'Neue Messe gemeldet';\n $this->view = 'emails.user.new_event';\n\t\t\n\t\t$this->data = [\n\t\t\t'contact'\t\t=> \\Input::get('contact'),\n\t\t\t'email'\t\t\t=> \\Input::get('email'),\n\t\t\t'name'\t\t\t=> \\Input::get('name'),\n\t\t\t'location'\t\t=> \\Input::get('location'),\n\t\t\t'start_date'\t=> \\Input::get('start_date'),\n\t\t\t'end_date'\t\t=> \\Input::has('end_date') ? \\Input::get('end_date') : \\Input::get('start_date'),\n\t\t\t'region'\t\t=> \\Input::get('region'),\n\t\t\t'organizer'\t\t=> \\Input::get('organizer')\n\t\t];\n\n\t\treturn $this;\n\t}", "private function createinstallevent()\n {\n $cat = CategoryUtil::getCategoryByPath('/__SYSTEM__/Modules/PostCalendar/Events');\n\n $eventArray = array(\n 'title' => $this->__('PostCalendar Installed'),\n 'hometext' => ':text:' . $this->__('On this date, the PostCalendar module was installed. Thank you for trying PostCalendar! This event can be safely deleted if you wish.'),\n 'alldayevent' => true,\n 'eventstatus' => PostCalendar_Entity_CalendarEvent::APPROVED,\n 'sharing' => PostCalendar_Entity_CalendarEvent::SHARING_GLOBAL,\n 'website' => 'https://github.com/craigh/PostCalendar/wiki',\n 'categories' => array(\n 'Main' => $cat['id']));\n\n try {\n $event = new PostCalendar_Entity_CalendarEvent();\n $event->setFromArray($eventArray);\n $this->entityManager->persist($event);\n $this->entityManager->flush();\n } catch (Exception $e) {\n return LogUtil::registerError($e->getMessage());\n }\n\n return true;\n }", "private function event(): Event\n {\n if (!$this->event) {\n $this->event = new Event($this->eventMutex(), '');\n }\n\n return $this->event;\n }", "public function createEvent(string $name): Event\n {\n if (!$this->isEventIDValid($name)) {\n throw new RuntimeException('invalid event name: ' . $name);\n }\n\n $class = $this->validEventIDs[$name];\n /** @var \\CaptainHook\\App\\Event $event */\n $event = new $class($this->io, $this->config, $this->repository);\n return $event;\n }", "public function __construct(Event $event)\n {\n $this->event = $event;\n }", "public function __construct(Event $event)\n {\n $this->event = $event;\n }", "public function __construct(Event $event)\n {\n $this->event = $event;\n }", "public function __construct(Event $event)\n {\n $this->event = $event;\n }", "public function __construct(Event $event)\n {\n $this->event = $event;\n }", "public function createCustomevent(): self\n {\n $this->event_type = debug_backtrace()[1]['function'];\n $attr = $this->getAttributes();\n $dirty = $this->getDirty();\n $original = $this->getOriginal();\n // dd($attr, $dirty, $original);\n\n $details = [];\n foreach ($attr as $property => $value) {\n if (array_key_exists($property, $dirty) or !$dirty) {\n $details[] = [\n $property,\n $original[$property] ?? FALSE,\n $dirty[$property] ?? FALSE,\n ];\n }\n }\n\n Customevent::create([\n 'user_id' => auth()->user() ? auth()->user()->id : User::SYSUID,\n 'model' => $this->getTable(),\n 'model_id' => $this->id,\n 'model_name' => $this->name,\n 'type' => $this->event_type,\n 'description' => $this->event_description ?? FALSE,\n 'details' => serialize($details) ?? '',\n ]);\n return $this;\n }", "protected function _Build_Event($context) {\r\n $form_instance = $this->form_instance;\r\n // Retrieve the event class item\r\n $class = $context['class'];\r\n // Generate a new event class\r\n $event_instance = new $class();\r\n // Populate with the form instance\r\n $event_instance->form_instance = $form_instance;\r\n // Populate with the form instance\r\n $event_instance->type = $context['type'];\r\n // Populate with the form instance\r\n $event_instance->title = $context['title'];\r\n // Populate with the event context\r\n $event_instance->context = $context;\r\n // If the field has a sanitize method\r\n if (method_exists($event_instance,'On_Create')) { $event_instance->On_Create(); }\r\n // Fire any on create action\r\n $event_instance->Do_Action('create');\r\n // Do a wordpress hook\r\n do_action('vcff_event_create',$event_instance);\r\n // Fire any on create action\r\n $event_instance->Do_Action('after_create');\r\n // Do a wordpress hook\r\n do_action('vcff_trigger_after_create',$event_instance);\r\n // Return the event instance\r\n return $event_instance;\r\n }", "protected function __construct()\n {\n parent::__construct(\n 'Event',\n array(\n TextField::create(\n 'title',\n array(\n 'mandatory' => true,\n )\n ),\n TextareaField::create(\n 'description',\n array(\n 'use_markdown' => true,\n )\n ),\n TextField::create(\n 'date',\n array()\n ),\n ReferenceField::create(\n 'guest_lists',\n array(\n 'references' => array(\n array(\n 'module' => '\\\\Honeybee\\\\Domain\\\\Guestlist\\\\GuestlistModule',\n 'identity_field' => 'identifier',\n 'display_field' => 'title',\n ),\n ),\n )\n ),\n ReferenceField::create(\n 'assignee',\n array(\n 'max' => 1,\n 'references' => array(\n array(\n 'module' => '\\\\Honeybee\\\\Domain\\\\User\\\\UserModule',\n 'identity_field' => 'identifier',\n 'display_field' => 'username',\n ),\n ),\n )\n ),\n KeyValueField::create(\n 'meta',\n array(\n 'constraints' => array(\n 'value_type' => 'dynamic',\n ),\n )\n ),\n AggregateField::create(\n 'workflowTicket',\n array(\n 'modules' => array(\n '\\\\Honeybee\\\\Domain\\\\Event\\\\WorkflowTicketModule',\n ),\n )\n ),\n ),\n array(\n 'prefix' => 'event',\n 'identifier_field' => 'identifier',\n 'slugPattern' => 'event-{shortId}',\n )\n );\n }", "public function create()\n {\n return view ('event.create');\n }", "public function create()\n {\n return view(\"Event::create\");\n }", "public function create_event( $eventname )\n\t{\n\t\tCmsEvents::create_event($this->get_name(), $eventname);\n\t}", "public function createNewEvent($copyLastEvent = true, $data = array())\n\t{\n\t\t$event = new App_Model_Event();\n\n\t\t// pokud $copyLastEvent == true, vezmu data z minule udalosti a nastavim\n\t\t// je teto\n\t\tif ($copyLastEvent) {\n\t\t\t// TODO: vzit nastaveni posledni udalosti u teto akce\n\t\t}\n\n\t\t// pokud byla zaslana nejaka inicializacni data, nastavim je\n\t\tif (is_array($data) && count($data)) {\n\t\t\t$event->setPropsFromArray($data);\n\t\t}\n\n\t\t$event->setActionId($this->_actionId);\n\t\t$event->setEventNo(count($this->getAllEvents()) + 1);\n\n\t\t$event->insert();\n\n\t\t// vytvorim take prvni navrh terminu, pokud byl zaslan\n\t\tif (isset($data['dates']) && $data['dates'] != '') {\n\t\t\t$event->createNewProposal($data['dates']);\n\t\t}\n\n\t\treturn $event;\n\t}", "public function __construct($event)\n {\n $this->event = $event;\n }", "public function __construct($event)\n {\n $this->event = $event;\n }", "public function requestCreateEvent()\n {\n $ch = self::curlIni('event_new', $this->eventParams);\n\n return $ch;\n }", "public function createCustomevent(): self\n {\n $this->event_type = debug_backtrace()[1]['function'];\n if ($this->isDirty('status') and $this->status === User::STATUS_ACTIVE) {\n $this->event_type = 'verify';\n }\n $attr = $this->getAttributes();\n $dirty = $this->getDirty();\n $original = $this->getOriginal();\n // dd($attr, $dirty, $original);\n\n $details = [];\n foreach ($attr as $property => $value) {\n if (array_key_exists($property, $dirty) or !$dirty) {\n $details[] = [\n $property,\n $original[$property] ?? FALSE,\n $dirty[$property] ?? FALSE,\n ];\n }\n }\n\n Customevent::create([\n 'user_id' => auth()->user() ? auth()->user()->id : self::URUID, // unregistered user id\n 'model' => $this->getTable(),\n 'model_id' => $this->id,\n 'model_name' => $this->name,\n 'type' => $this->event_type,\n 'description' => $this->event_description ?? FALSE,\n 'details' => serialize($details) ?? '',\n ]);\n return $this;\n }", "public function create()\n {\n return view('events::create_event');\n }", "protected function create(array $data)\n {\n $user = Auth::user();\n $article = new Article($data);\n $article->userID = $user->userID;\n $article->ctgID = $data['category'];\n $article->updated_at = Carbon::now();\n $article->save();\n\n if (array_key_exists('image', $data)) {\n $path = $data['image']->store('articles/'.$article->artID, 'images');\n $article->image = $path;\n $article->save();\n }\n \n $event = new Event($data);\n if ($data['place'] !== 'none') {\n $event->placeID = $data['place'];\n }\n $event->artID = $article->artID;\n $event->save();\n \n return $event;\n }", "public function create()\n {\n return view('events.createevent');\n }", "public static function get_instance() \n {\n if ( ! isset(self::$instance)) \n {\n self::$instance = new Event();\n }\n\n return self::$instance;\n }", "public function __construct(NewMessageEvent $event)\n {\n $this->event = $event;\n }", "public function createEvent(Event $event)\n {\n $this->setCalendarId($event->calendar_id);\n\n /*\n * Create new google event object\n */\n $googleEvent = new \\Google_Service_Calendar_Event();\n\n /*\n * Set Details\n */\n $googleEvent->setSummary($event->title);\n $googleEvent->setDescription($event->description);\n $googleEvent->setLocation($event->location);\n\n /*\n * Set Start Date\n */\n $start = $this->createDateTime($event->start, $event->timeZone, $event->all_day);\n $googleEvent->setStart($start);\n\n /*\n * Set End Date\n */\n $end = $this->createDateTime($event->end, $event->timeZone, $event->all_day);\n $googleEvent->setEnd($end);\n\n /*\n * Set Recurrence Rule, make sure it's not empty\n */\n if ($event->rrule) {\n $googleEvent->setRecurrence([$event->rrule]);\n }\n\n /*\n * Create the event\n */\n $newGoogleEvent = $this->service->events->insert($this->calendarId, $googleEvent);\n\n return $this->createEventObject($newGoogleEvent);\n }", "public function construct(CakeEvent $event) {\n\t\t$this->__startTime = time();\n\t}", "public function create()\n {\n return view('admin.adminevent.create_event');\n }", "protected function createEvent(DateTime $dateStart, DateTime $dateEnd)\n {\n $event = new Event();\n $event->setTitle($this->title);\n $event->setDescription($this->description);\n $event->setDateStart($dateStart);\n $event->setDateEnd($dateEnd);\n\n return $event;\n }", "public function __construct(array $event = array())\n {\n $this\n ->setEvent($event);\n }", "public function create(Request $request)\n {\n $data = $request->all();\n $event = Event::make($data);\n $event->user_id = Auth::user()->id;\n $event->save();\n }", "public function create()\n {\n\n $event = new Event;\n return view('events.create',compact('event'));\n }", "public function create()\n {\n return view('event');\n }", "public function create()\n {\n return view('event.create');\n }", "public function create()\n {\n return view('event.create');\n }", "public function create()\n {\n return view('event.create');\n }", "public function create()\n {\n return view('event.create');\n }", "protected function getRandomInstance()\n {\n $eventLine = new EventTag();\n $this->fillThing($eventLine);\n\n return $eventLine;\n }", "function create_event( $options=array() ){\n\t\t\t//length = 255, present\n\t\t\n\t\t$error_append = \" CLASS[\".__CLASS__.\"] METHOD[\".__METHOD__.\"] DATE[\".date('Y-m-d H:i:s').\"]\";\n\t\t\n\t\tCore::ensure_defaults(array(\n\t\t\t\t'title_unique' => 1\n\t\t\t), $options\n\t\t);\n\t\t\n\t\tif( empty( $options['title'] ) or empty( $options['description'] ) or empty( $options['date'] ) ){\n\t\t\t$error = Core::error($this->errors, 1);\n\t\t\t$error['error_msg'] .= $error_append;\n\t\t\treturn $error;\n\t\t}\n\t\t\n\t\t$values['title'] = $this->validate_title( array('title' => $options['title']) );\n\t\tif(Core::has_error( $values['title'] )){\n\t\t\treturn $values['title'] ;\n\t\t}\n\t\t\n\t\t$values['description'] = $this->validate_description( array('description' => $options['description']) );\n\t\tif(Core::has_error( $values['description'] )){\n\t\t\treturn $values['description'];\n\t\t}\n\t\t\n\t\t$values['date_time'] = $this->validate_event_date( array('date' => $options['date']) );\n\t\tif(Core::has_error( $values['date_time'] )){\n\t\t\treturn $values['date_time'];\n\t\t}\n\t\t\n\t\tif($options['title_unique']){\n\t\t\t//TODO:Check if the title unique\n\t\t\tif( Core::db_count( array(\n\t\t\t\t'table' => CORE_DB.\".\".self::$table_name,\n\t\t\t\t'values' => array(\n\t\t\t\t\t'title' => $values['title']\n\t\t\t\t)\n\t\t\t))){\n\t\t\t\t$error = Core::error($this->errors, 7);\n\t\t\t\t$error['error_msg'] .= 'Event title must be unique. ';\n\t\t\t\t$error['error_msg'] .= $error_append;\n\t\t\t\treturn $error;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t$result = Core::db_insert( array(\n\t\t\t\t'table' => CORE_DB.\".\".self::$table_name,\n\t\t\t\t'values' => $values\n\t\t));\n\t\t\n\t\tif( Core::has_error($result) or empty($result) ){\n\t\t\t$result['error_msg'] .= $error_append;\n\t\t\treturn $result;\n\t\t}\n\t\t\n\t\treturn $result;\n\t\t\n\t}", "private function create()\n {\n $events = [\n Webhook::EVENT_CONVERSATION_CREATED,\n Webhook::EVENT_CONVERSATION_UPDATED,\n Webhook::EVENT_MESSAGE_CREATED,\n Webhook::EVENT_MESSAGE_UPDATED,\n ];\n\n $chosenEvents = $this->choice(\n 'What kind of event you want to create',\n $events,\n $defaultIndex = null,\n $maxAttempts = null,\n $allowMultipleSelections = true\n );\n\n $webhookUrl = $this->ask('Please enter the webhook URL'); \n\n $webhook = new Webhook();\n $webhook->events = $chosenEvents;\n $webhook->channelId = $this->whatsAppChannelId;\n $webhook->url = $webhookUrl;\n\n try {\n $response = $this->messageBirdClient->conversationWebhooks->create($webhook);\n } catch (\\Exception $e) {\n $this->error($e->getMessage());\n }\n }", "public function createEvent(Actions $emailAction){\n $event = new Events();\n $event->type = self::$typeMap[$emailAction->type];\n $event->subtype = 'email';\n $event->associationId = $emailAction->associationId;\n $event->associationType = X2Model::getModelName($emailAction->associationType);\n $event->timestamp = time();\n $event->lastUpdated = $event->timestamp;\n $event->user = $emailAction->assignedTo;\n if($event->save())\n $this->log(Yii::t('app','Created activity feed event for the email.'));\n return $event;\n }", "function __construct($event) {\n $this->init($event);\n }", "public function actionCreate()\n {\n $model = new Event();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['update', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function create()\n\t{\n\t\treturn view('events.create');\n\t}", "protected function initEvent()\n {\n $locales = $this->container->getParameter('event.locales');\n $event = $this->getRepository('EventEventBundle:Event')->getEvent();\n $now = new \\DateTime();\n\n if (!$event) {\n $event = new Event();\n $event\n ->setTitle('My Event')\n ->setDescription('My another awesome event!')\n ->setStartDate($now)\n ->setEndDate($now->modify('+1 day'))\n ->setVenue('Burj Khalifa Tower')\n ->setEmail('eventator@email.com')\n ;\n\n $speaker = new Speaker();\n $speaker\n ->setFirstName('Phill')\n ->setLastName('Pilow')\n ->setCompany('Reseach Supplier')\n ;\n\n if ($locales) {\n foreach ($locales as $locale => $title) {\n $eventTranslation = new EventTranslation();\n $eventTranslation->setEvent($event);\n $eventTranslation->setlocale($locale);\n\n $this->getManager()->persist($eventTranslation);\n\n $speakerTranslation = new SpeakerTranslation();\n $speakerTranslation->setSpeaker($speaker);\n $speakerTranslation->setlocale($locale);\n\n $this->getManager()->persist($speakerTranslation);\n }\n }\n\n $this->getManager()->persist($event);\n $this->getManager()->persist($speaker);\n $this->getManager()->flush();\n }\n }", "public function __construct($data)\n {\n $this->event = $data;\n }", "public function create()\n {\n return view('admin.event.create');\n }", "public function create()\n {\n return view('admin.event.create');\n }", "public function create()\n {\n return view('event::create');\n }", "public function actionCreate()\n\t{\n\t\t$model=new Event;\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Event']))\n\t\t{\t\n\t\t\t$model->attributes=$_POST['Event'];\n\t\t\t\n\t\t\t$model->created_on = new CDbExpression('NOW()');\n\t\t\t$model->created_by=Yii::app()->user->id;\n\t\t\tif($model->save()){\n\t\t\t\t\n\t\t\t\t$this->redirect(array('view', 'id'=>$model->id));\n\t\t\t}\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public static function create() {}", "public static function create() {}", "public static function create() {}", "public function createInstance()\n {\n $mock = $this->mock(static::TEST_SUBJECT_CLASSNAME)\n\t ->getStateMachine()\n ->getTransition()\n ->abortTransition()\n ->isTransitionAborted()\n // EventInterface\n ->getName()\n ->setName()\n ->getTarget()\n ->setTarget()\n ->getParams()\n ->setParams()\n ->getParam()\n ->setParam()\n ->stopPropagation()\n ->isPropagationStopped();\n\n return $mock->new();\n }", "protected function newEventLogger()\n {\n return new EventLogger(static::getLogger());\n }", "public function create()\n\t{\n\t\treturn View::make('events.create');\n\t}", "public function __construct(?EventConfig $cfg = null) {}", "public function create()\n {\n $programEvent = new ProgramEvent();\n return view('program-event.create', compact('programEvent'));\n }", "public function create()\n {\n return view(\"admin.event_create\")->with([\n\n ]);\n }", "public function createEvent(Request $request)\n {\n $this->validator($request->all())->validate();\n\n $event = $this->create($request->all());\n \n return redirect('/cms/events');\n }", "public function __construct($name, $event)\n {\n $this->name = $name;\n $this->event = $event;\n }", "final private static function makeEvent(Sincronizacao $sincronizacao)\n {\n $endpoint = self::getEventEndpoint($sincronizacao->sym_table, $sincronizacao->sym_action);\n\n $dependencies = self::getDependencies($sincronizacao);\n $eventClass = self::getEventClass($endpoint);\n\n return new $eventClass($dependencies['entry'], $dependencies['extra']);\n }", "public static function create(Client $client, $data) {\n if ($data == null || is_array($data)) {\n $d = new Event($data == null ? array() : $data);\n $data = $d->jsonSerialize();\n }\n $req = $client->newRequest(\"POST\", \"/{accountname}/events\");\n $req->setBody($data, \"json\");\n\n $result = $req->run(\"json\");\n return Event::fromJson($result);\n }", "public function __construct()\n {\n parent::__construct('BaseEvent');\n }", "public function actionCreate()\n\t{\n\t\tYii::import('ext.multimodelform.MultiModelForm');\n\n\t\t$model=new Event;\n\t\t$eventType=new EventType;\n\t\t$member=new EventAttribute;\n\t\t$validatedMembers = array(); // ensure an empty array\n\t\t$attr = array(); \n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Event']))\n\t\t{\n\t\t if(isset($_POST['Event']['attributes']))\n\t\t {\n\t\t $attr = $_POST['Event']['attributes'];\n\t\t }\n\t\t\t$model->attributes=$_POST['Event'];\n\t\t\tif($model->save()) {\n\t\t\t\t$this->addAttributes($attr, $model);\n\t\t\t\t$this->redirect(array('view','id'=>$model->idEvent));\n\t\t\t}\n\t\t} else {\n\t\t\t$this->render('create',array(\n\t\t\t\t'model'=>$model,\n\t\t\t\t'eventType'=>$eventType,\n\t\t\t\t'member'=>$member,\n\t\t\t\t'validatedMembers'=>$validatedMembers,\n\t\t\t));\n\t\t}\n\t}", "public function create()\n {\n // $crud = new Events();\n // $crud->photo ='anniv.png';\n // $crud->title = 'Sogod Founding Anniversary Concert';\n // $crud->descriptions = 'secret';\n // $crud->venue = 'Sogod Covered Court';\n // $crud->date = date('04/02/2018');\n // $crud->time = time('h:i:s');\n\n // $crud->save(); \n }", "public function create(){}", "function event(): EventEmitter\n{\n return EventEmitter::getInstance();\n}", "public function create() {}", "public function storeEvent(){\n \t$eventStore = new Event_Store();\n\n\t\t$eventStore->command = $this->command; \t\n\t\t$eventStore->event = $this->event;\n\t\t$eventStore->status = \"published\";\n\t\t$eventStore->created_at = now();\n\t\t$eventStore->updated_at = now();\n\n\n\t\t$eventStore->save();\n }", "public function create()\n {}", "public function user_can_create_event()\n {\n $user = User::factory()->create();\n $event = Event::factory()->make()->toArray();\n $response = $this->actingAs($user)->post('/events', $event);\n $response->assertStatus(302);\n $this->assertNotNull(Event::where('name', $event['name'])->first());\n }", "private function __construct() {\n\t\t$action = isset($_GET['action']) ? sanitize_key($_GET['action']) : '';\n\t\t$copy = isset($_GET['copy']) ? intval($_GET['copy']) : 0;\n\t\tif(!empty($copy)) {\n\t\t\t$this->copy_event = new EL_Event($copy);\n\t\t\tadd_filter('get_object_terms', array(&$this, 'set_copied_categories'));\n\t\t}\n\n\t\t$this->options = &EL_Options::get_instance();\n\t\t$this->is_new = 'edit' !== $action;\n\n\t\tadd_action('add_meta_boxes', array(&$this, 'add_eventdata_metabox'));\n\t\tadd_action('edit_form_top', array(&$this, 'form_top_content'));\n\t\tadd_action('edit_form_after_title', array(&$this, 'form_after_title_content'));\n\t\tadd_action('admin_print_scripts', array(&$this, 'embed_scripts'));\n\t\tadd_action('save_post_el_events', array(&$this, 'save_eventdata'), 10, 3);\n\t\tadd_filter('enter_title_here', array(&$this, 'change_default_title'));\n\t\tadd_filter('post_updated_messages', array(&$this, 'updated_messages'));\n\t}", "public static function create() {\n\t\t$entry = new GuestbookEntry();\n\t\t$entry->Date = SS_DateTime::now()->getValue();\n\t\t$entry->IpAddress = $_SERVER['REMOTE_ADDR'];\n\t\t$entry->Host = gethostbyaddr($entry->IpAddress);\n\t\treturn $entry;\n\t}", "public function create()\n {\n //\n return view('events.create');\n }", "public function create()\n\t{ \n\t\t# Return if just the countoff is needed\n\t\tif ($this->countoff<2) return;\n\t\t\n\t\t# Add a note on and note off for each beat in the click track\n\t\tfor($i=0; $i<$this->beatsTotal; $i++) { \n\t\t\t$vol = (($i%$this->timeSig)==0) ? 127 : 70;\n\t\t\t$this->addEvent(0,153,37,$vol);\n\t\t\t$this->addEvent($this->ticksPerBeat,153,37,0);\n\t\t}\n\t}", "public function create()\n {\n return view('adm.events.create');\n }", "public function create()\n\t{\n\t\treturn View::make('administrator.events.create')->with('page_title','Create New Event');\n\t\t\n\t}", "public function run()\n {\n factory(TechnoEvent::class,10)->create();\n }", "protected function manageEvent()\n {\n // Manage the incoming session\n $this->manageSession();\n\n // Get the event data from the incoming request\n $eventData = $this->eventRequest->getEvent();\n\n // Get the entity data from the event\n $entityData = $eventData->get('entity');\n\n if (!is_array($entityData)) $entityData = [];\n\n // Hydrate the event entity\n $this->eventEntity = $this->hydrateEntity($entityData);\n\n // Create the event object\n $this->event = new WebsiteEvent();\n\n // Format the action\n $action = $eventData->get('action');\n $this->setDefaultAction($action);\n\n $this->event->setAction($action);\n $this->event->setEntity($this->eventEntity);\n $this->event->setCreatedAt(time());\n\n if (!is_null($eventData->get('data'))) {\n $this->event->setData($eventData->get('data'));\n }\n\n // Set any related entities to the event\n $relatedEntityData = $eventData->get('relatedEntities');\n if (is_array($relatedEntityData) && !empty($relatedEntityData)) {\n foreach ($relatedEntityData as $relatedEntity) {\n $relEntityObj = $this->hydrateEntity($relatedEntity);\n $this->event->addRelatedEntity($relEntityObj);\n\n }\n }\n // Set the session to the event\n $this->event->setSession($this->session);\n }", "public function create(Event $event)\n {\n if ($this->shouldUseLocks($this->cache->store($this->store)->getStore())) {\n return $this->cache->store($this->store)->getStore()\n ->lock($event->mutexName(), $event->expiresAt * 60)\n ->acquire();\n }\n\n return $this->cache->store($this->store)->add(\n $event->mutexName(), true, $event->expiresAt * 60\n );\n }", "public function createEvents()\n {\n //\n\n return 'something';\n }", "public function create() {\n\t \n }", "public function actionCreate()\n\t{\n\t\t$model=new Events;\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Events']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Events'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->event_id));\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function create()\n {\n return view('events.create');\n }", "public function create()\n {\n return view('events.create');\n }", "public function create()\n {\n return view('events.create');\n }", "public function create()\n {\n return view('events.create');\n }", "public function create()\n {\n return view('events.create');\n }", "public function create()\n {\n return view('events.create');\n }", "function add_new_event($eventName, $eventColor){\n\t\tif( isset($_POST[$eventName]) ){\n\t\t\tglobal $base;\n\t\t\t\n\t\t\t$title \t= $_POST[$eventName];\n\t\t\t$color \t= $_POST[$eventColor];\n\n\t\t\t$full_calendar_notifications = new full_calendar_notification();\n\n\t\t\t$full_calendar_notifications->user_id = $base->clear_string($_SESSION['user_id']);\n\t\t\t$full_calendar_notifications->notification_title = $title;\n\t\t\t$full_calendar_notifications->notification_color = $color;\n\n\t\t\t$full_calendar_notifications->create();\n\t\t}\n\t}", "public function initialize()\n {\n // attributes\n $this->setName('event');\n $this->setPhpName('Event');\n $this->setClassname('ArtRequestORM\\\\Event');\n $this->setPackage('ArtRequest');\n $this->setUseIdGenerator(true);\n // columns\n $this->addPrimaryKey('EVENT_ID', 'EventId', 'INTEGER', true, null, null);\n $this->addColumn('EVENT_TITLE', 'EventTitle', 'VARCHAR', true, 100, null);\n $this->addColumn('EVENT_DESCRIPTION', 'EventDescription', 'LONGVARCHAR', true, null, null);\n $this->addColumn('EVENT_LOCATION', 'EventLocation', 'VARCHAR', true, 100, null);\n $this->addColumn('EVENT_SPONSOR_NAME', 'EventSponsorName', 'VARCHAR', true, 100, null);\n $this->addColumn('EVENT_START_TIME', 'EventStartTime', 'VARCHAR', true, 10, null);\n $this->addColumn('EVENT_END_TIME', 'EventEndTime', 'VARCHAR', true, 10, null);\n $this->addColumn('EVENT_START_DATE', 'EventStartDate', 'DATE', true, null, null);\n $this->addColumn('EVENT_END_DATE', 'EventEndDate', 'DATE', true, null, null);\n $this->addColumn('EVENT_PRICING_MEMBER', 'EventPricingMember', 'DECIMAL', true, null, null);\n $this->addColumn('EVENT_PRICING_STAFF', 'EventPricingStaff', 'DECIMAL', true, null, null);\n $this->addColumn('EVENT_PRICING_STUDENT', 'EventPricingStudent', 'DECIMAL', true, null, null);\n $this->addColumn('EVENT_PRICING_PUBLIC', 'EventPricingPublic', 'DECIMAL', true, null, null);\n // validators\n }", "public static function create_event($pid, $event) \n\t\t{\t\n\t\t\t$mysqli = MysqlInterface::get_connection();\n\t\t\t\n\t\t\t// insert event\n\t\t\t$stmt = $mysqli->stmt_init();\n\t\t\t$stmt->prepare('INSERT INTO event (title, owner, gowner, start_time, end_time, location, logo, description, category, size, tag, price) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);');\n\t\t\t$stmt->bind_param('siisssssiisd', $event['title'], $pid, $gid, $event['start_time'], $event['end_time'], $event['location'], $event['logo'], $event['description'], $event['category'], $event['size'], $event['tag'], $event['price']);\n\t\t\t$stmt->execute();\n\t\t\t\n\t\t\t// get auto generated id\n\t\t\t$eid = $mysqli->insert_id;\n\t\t\t\n\t\t\t$stmt->close();\n\t\t\t\n\t\t\t// grant user host role\n\t\t\tPeopleDAO::set_event_role_pid($pid, $eid, Role::Owner);\n\t\t\treturn $eid;\n\t\t}", "public static function create_event( $module_name, $event_name )\n\t{\n\t\t$event = cms_orm('CmsDatabaseEvent')->find_by_module_name_and_event_name($module_name, $event_name);\n\t\tif ($event == null)\n\t\t{\n\t\t\t$event = new CmsDatabaseEvent();\n\t\t\t$event->module_name = $module_name;\n\t\t\t$event->event_name = $event_name;\n\t\t\treturn $event->save();\n\t\t}\n\t}", "public function create()\n {\n return view('admin.events.create');\n }", "public function create()\n {\n return view('admin.events.create');\n }", "public function create()\n {\n return view('admin.events.create');\n }", "public function create()\n {\n return view('admin.events.create');\n }" ]
[ "0.8178475", "0.73455495", "0.67515916", "0.6665345", "0.66544545", "0.66479546", "0.6640835", "0.6556383", "0.6556383", "0.6556383", "0.6556383", "0.6556383", "0.6543442", "0.64682955", "0.645909", "0.64520663", "0.6441302", "0.6438299", "0.63917476", "0.6371641", "0.6371641", "0.63478637", "0.63475716", "0.63285524", "0.6319918", "0.63108855", "0.6275116", "0.6206908", "0.6195245", "0.6193101", "0.61870754", "0.61810726", "0.61807376", "0.612506", "0.612064", "0.61166775", "0.6116489", "0.6116489", "0.6116489", "0.6116489", "0.6111236", "0.6099429", "0.6076598", "0.6072973", "0.6068453", "0.60566765", "0.6056391", "0.6041123", "0.6033919", "0.60277027", "0.60277027", "0.60181046", "0.6014412", "0.6007521", "0.6007521", "0.6007521", "0.5998441", "0.59855086", "0.5971869", "0.5971259", "0.59670085", "0.5959153", "0.59413785", "0.59338146", "0.5930427", "0.5917219", "0.5907522", "0.59049624", "0.58941996", "0.58838826", "0.5868322", "0.58614963", "0.58599705", "0.5856868", "0.58510625", "0.5838314", "0.58332664", "0.5826795", "0.58255696", "0.58250695", "0.5822382", "0.58223313", "0.58191884", "0.58166337", "0.5807514", "0.5798503", "0.57970744", "0.5794831", "0.5794831", "0.5794831", "0.5794831", "0.5794831", "0.5794831", "0.579301", "0.5784509", "0.5783719", "0.5780148", "0.57786983", "0.57786983", "0.57786983", "0.57786983" ]
0.0
-1
Returns the initial stepsize
function fann_get_rprop_delta_zero($ann) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStepLength()\n {\n return $this->prototype->getStepLength();\n }", "public function getMinNumSteps()\n {\n return $this->min_num_steps;\n }", "public function getMinuteStepSize()\n\t{\n\t \treturn $this->minute_step_size;\n\t}", "public function getMaxNumSteps()\n {\n return $this->max_num_steps;\n }", "protected function getNumberOfSteps() {\n return $this->getLocalSessionValue(self::NUM_STEPS_VAR);\n }", "public function getStep() : int;", "function getDefaultSampleSize(){\n\t\t return self::defaultSample;\n\t }", "public function getStep(): int\n {\n return $this->step;\n }", "public function getStepCount()\r\n {\r\n return count($this->_steps);\r\n }", "function _stepX()\n {\n return ($this->_maximumX - $this->_minimumX) / $this->_count();\n }", "protected function getStepNumber() {\n return $this->curStep;\n }", "public function getQualityStep(): int\n {\n return static::$qualityStep * $this->getMultiplier();\n }", "public function getChunkSize(): int\n {\n return $this->chunkSize;\n }", "public function getChunkSize(): int\n {\n return $this->chunkSize;\n }", "public function getMinSize()\r\n {\r\n return $this->min_size;\r\n }", "public function getFontStep()\n {\n $this->_minCount = min($this->items);\n $spread = max($this->items) - $this->_minCount;\n if ($spread <= 0) {\n $spread = 1;\n }\n $font_spread = $this->largest - $this->smallest;\n if ($font_spread < 0) {\n $font_spread = 1;\n }\n return $font_spread / $spread;\n }", "public function initialWidth()\n {\n return $this->setRightOperand(PVar::INITIAL_WIDTH);\n }", "function getInitialValue () {\n\t\treturn $this->initialValue;\n\t}", "public function getCurrentSize() : int{\n return $this->currentSize;\n }", "public function getStepProgression()\n {\n return $this->stepProgression;\n }", "private function get_requested_step(){\n if(isset($_POST['caims-current-step']) && absint($_POST['caims-current-step']) <= count($this->step_ids)){\n return absint($_POST['caims-current-step']);\n }\n elseif(isset($_GET['step']) && absint($_GET['step']) <= count($this->step_ids)){\n return absint($_GET['step']);\n }\n\n return 1;\n }", "public function getLowerOpticalPointSize() {}", "public function maxIterations() {\n\t\treturn 1;\n\t}", "public function getSizeGib()\n {\n return $this->size_gib;\n }", "public function getMaxSize() : int {\n\t\treturn $this->generator->getMaxSize();\n\t}", "public function getMinimalValueInstallment()\n {\n $numberOfInstallments = Mage::getStoreConfig(self::XPATH_CONFIG_INSTALMENT_MINIMAL);\n if($numberOfInstallments <= 9){\n $numberOfInstallments = 10;\n }\n return $numberOfInstallments ;\n }", "function pfsense_default_state_size() {\n\t$memory = get_memory();\n\t$physmem = $memory[0];\n\n\tif ((int) $physmem > 0) {\n\t\t/* Be cautious and only allocate 10% of system memory to the state table */\n\t\t$max_states = (int) ($physmem/10)*1000;\n\t} else {\n\t\t/* If the memory check result is invalid, use a low but still\n\t\t * somewhat sane default (Equivalent to ~256MB RAM) */\n\t\t$max_states = 25600;\n\t}\n\n\treturn $max_states;\n}", "public function getStartStep()\n {\n return $this->startStep;\n }", "public function initialHeight()\n {\n return $this->setRightOperand(PVar::INITIAL_HEIGHT);\n }", "protected function getStepTime() {\n $currentTime = $this->getTime();\n \n $result = $currentTime - $this->latsStepTime;\n \n $this->latsStepTime = $currentTime;\n \n return $result;\n }", "function getNumberOfIterations();", "public function set_step( $step ) {\r\n\t\t$this->step = absint( $step );\r\n\t}", "public function getSteps()\n {\n return $this->_steps;\n }", "protected function getStepTime()\n {\n $currentTime = $this->getTime();\n $result = $currentTime - $this->latsStepTime;\n $this->latsStepTime = $currentTime;\n\n return $result;\n }", "public function getSteps()\n {\n return $this->steps;\n }", "public function getSteps()\n {\n return $this->steps;\n }", "public function inputLength()\r\n\t{\r\n\t\treturn $this->input_stats['size'];\r\n\t}", "public function getStep()\r\n {\r\n return $this->step;\r\n }", "public function size() : int\n {\n return $this->m * $this->n;\n }", "public function GetMinSize ();", "public function currentStartCount(){\n\t\t$multiplier = $this->paged- 1;\n\t\treturn $multiplier * $this->posts_per_page;\n\t}", "public function get_steps() {\r\n\t\treturn $this->steps;\r\n\t}", "public function getStep()\n {\n return $this->step;\n }", "public function getStart() {\n $p = $this->getPage();\n if(is_null($p) || $p == 1){\n $start = 1;\n } else {\n $start = (self::MAX_RESULTS) * ($p - 1) + 1;\n }\n return $start;\n }", "public function getUpperOpticalPointSize() {}", "public function chunkSize($chunkSize = 0) {\n\t\tif($chunkSize > 0) $this->chunkSize = (int) $chunkSize;\n\t\treturn $this->chunkSize;\n\t}", "public function get_step() {\r\n\t\treturn $this->step;\r\n\t}", "public function getStep() {\n\t\treturn $this->step;\n\t}", "public function getBatchSize()\n {\n return (integer) $this->scopeConfig->getValue(\n 'orderflow_inventory_import/settings/batch_size',\n \\Magento\\Store\\Model\\ScopeInterface::SCOPE_WEBSITE\n );\n }", "public function getPagerSize() {\n return $this->configuration['pager_size'];\n }", "public function get_pager_size() {\n\t\t$pager_size = get_option( 'simple_history_pager_size', 20 );\n\n\t\t/**\n\t\t * Filter the pager size setting\n\t\t *\n\t\t * @since 2.0\n\t\t *\n\t\t * @param int $pager_size\n\t\t */\n\t\t$pager_size = apply_filters( 'simple_history/pager_size', $pager_size );\n\n\t\treturn $pager_size;\n\t}", "public function getSize()\n {\n return $this->length;\n }", "public function getBaseLength() {\n return $this->baseLength;\n }", "public function getArraySampleSize(): UnsignedInteger;", "public function requestsize() {\n return $this->info['request_size'];\n }", "public function getOriginalSize(): int;", "public function getSize() {\n return array_sum($this->quantities);\n }", "public function getCurrentStep()\r\n {\r\n return array_search($this->_currentStep, array_values($this->_steps)) + 1;\r\n }", "public function getOriginalSize(): int\n {\n return $this->size;\n }", "public function getDefaultSize()\n {\n\n return 16.0;\n }", "public static function getCurrentStep()\n {\n return static::$step;\n }", "public static function getDefaultDivisor(): int;", "public function initialAspectRatio()\n {\n return $this->setRightOperand(PVar::INITIAL_ASPECT_RATIO);\n }", "function size()\n\t{\n\t\treturn $this->nb;\n\t}", "function length() {\n return $this->norm();\n }", "public function getInitial()\n {\n return $this->initial;\n }", "public function getSize() {\r\n return $this->iSize;\r\n }", "public function getStepCount(int $iSeg) : int\r\n {\r\n $iCount = 0;\r\n if ($this->getSegments() !== null) {\r\n $aSteps = $this->getSegmentValue($iSeg, 'steps');\r\n if (is_array($aSteps)) {\r\n $iCount = count($aSteps);\r\n }\r\n }\r\n return $iCount;\r\n }", "function _randomSteps(){\n return rand(3000, 9000);\n }", "function calc_step($min, $max, $from, $to) {\n\n\t// Thank you wordpress for this\n\t$spread = $max - $min;\n\tif ( $spread <= 0 )\n\t\t$spread = 1;\n\t$font_spread = $to - $from;\n\tif ( $font_spread < 0 )\n\t\t$font_spread = 1;\n\t$step = $font_spread / $spread;\n\n\treturn $step;\n}", "public function size()\n\t{\n\t\treturn ceil($this->total_record_count / $this->page_size);\n\t}", "function exibeAtualMin(){\n return $nmin= (($this->atual * $this->numpage) - $this->numpage)+1;\n }", "public function getSizeRootFs() : int\n {\n return $this->sizeRootFs;\n }", "public function getSize() : int\n {\n return $this->size;\n }", "public function getSize() : int\n {\n return $this->size;\n }", "public function getSize() : int\n {\n return $this->size;\n }", "protected function GetDefaultPageSize()\n\t{\n\t\treturn self::$DEFAULT_PAGE_SIZE;\n\t}", "public function getSize()\n {\n return 0;\n }", "protected function randomSize()\n {\n return mt_rand(300, 700) / 100;\n }", "public function getInitialSequence()\n {\n return $this->initial_sequence;\n }", "function getOutputSize() {\n return $this->helper->getOutputSize();\n }", "function getOutputSize() {\n return $this->helper->getOutputSize();\n }", "function getOutputSize() {\n return $this->helper->getOutputSize();\n }", "function getOutputSize() {\n return $this->helper->getOutputSize();\n }", "function getOutputSize() {\n return $this->helper->getOutputSize();\n }", "function calc_size()\n\t{\n\t}", "public function getStepsCountAttribute()\n {\n $result = MultipleRoomsStepStatus::find($this->attributes['multiple_room_id']);\n\n return 5 - (@$result->basics + @$result->description + @$result->location + @$result->photos + @$result->pricing + @$result->calendar);\n }", "function getSize()\r\n\t{\r\n\t\treturn $this->size;\r\n\t}", "public function getSize() : int \n\t{\n\t\t$s = count($this->xValues);\n\n\t\tif($s !== count($this->yValues)) //these *should* be the same, but it doesn't hurt to check\n\t\t\treturn -1;\n\t\telse\n\t\t\treturn $s;\n\t}", "public function getSize()\n {\n return $this->size;\n }", "public function getEstimatedSizeBytes()\n {\n return $this->estimated_size_bytes;\n }", "public function getSize()\n\t{\n\t\treturn $this->size;\n\t}", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getStartingStackSize(): int\n\t{\n\t\treturn $this->bb * $this->stackSize;\n\t}" ]
[ "0.70331216", "0.6996101", "0.6679854", "0.6280456", "0.6185736", "0.61783206", "0.61259025", "0.60303664", "0.5950262", "0.5841635", "0.5798166", "0.5796064", "0.5679958", "0.5679958", "0.561567", "0.55872124", "0.5550948", "0.54968184", "0.5440811", "0.5438462", "0.5437922", "0.54241264", "0.5413339", "0.5398232", "0.5397514", "0.53554153", "0.53130335", "0.5302349", "0.5297599", "0.5289868", "0.52483624", "0.52436954", "0.5241537", "0.52271485", "0.51870805", "0.51870805", "0.5184092", "0.5170485", "0.51474965", "0.5116943", "0.5115492", "0.5114874", "0.5108446", "0.5096154", "0.5082975", "0.5079799", "0.5066644", "0.50646317", "0.5054607", "0.5052", "0.5040916", "0.5034112", "0.50321805", "0.5018768", "0.5012248", "0.50070024", "0.4998056", "0.4981856", "0.4979729", "0.49764943", "0.49656236", "0.4963884", "0.496238", "0.49601987", "0.4955068", "0.4952125", "0.4934536", "0.49309626", "0.4924159", "0.49065432", "0.48917735", "0.48902494", "0.4886876", "0.48832974", "0.48832974", "0.48832974", "0.48831454", "0.48814353", "0.487946", "0.48732987", "0.4854825", "0.4854825", "0.4854825", "0.4854825", "0.4854825", "0.48538303", "0.4845332", "0.48400357", "0.48350066", "0.48302844", "0.48296952", "0.48282996", "0.48218957", "0.48218957", "0.48218957", "0.48218957", "0.48218957", "0.48218957", "0.48218957", "0.48218957", "0.48211893" ]
0.0
-1
Return joined types as string
public static function getTypesNames($bits = self::INFO) { $arr = []; if ($bits & self::CRITICAL) { array_push($arr, 'CRITICAL'); } if ($bits & self::WARNING) { array_push($arr, 'WARNING'); } if ($bits & self::CONSTRUCTORS) { array_push($arr, 'CONSTRUCTORS'); } if ($bits & self::CALLING_METHODS) { array_push($arr, 'CALLING_METHODS'); } if ($bits & self::GETTING_PROPERTIES) { array_push($arr, 'GETTING_PROPERTIES'); } if ($bits & self::SETTING_PROPERTIES) { array_push($arr, 'SETTING_PROPERTIES'); } if ($bits & self::INFO) { array_push($arr, 'INFO'); } return implode(' | ', $arr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __toString()\n {\n if (empty($this->types)) {\n return TypeHint::NULL_TYPE;\n }\n\n return join(TypeHint::TYPE_SEPARATOR, array_map(function (Type $type) {\n return (string)$type;\n }, $this->types));\n }", "abstract function typeAsString();", "public static function buildTypesString() : string\n\t{\n\t\t$parts = [];\n\t\t\n\t\tforeach (array_keys(self::$typesToExtensions) as $type) {\n\t\t\t$parts[] = 'image/' . $type;\n\t\t}\n\t\t\n\t\treturn implode(', ', $parts);\n\t}", "public function typesAsString()\n {\n return implode(',', array_keys(self::DOCUMENT_TYPES));\n }", "protected function getType(): string\n {\n return join('|', $this->types);\n }", "public function __toString()\n {\n $types = $this->types;\n\n if (count($this->types) === 1) {\n return array_pop($types);\n } else {\n $nullIndex = array_search('null', $types);\n if ($nullIndex !== false) {\n unset($types[$nullIndex]);\n return array_pop($types);\n }\n }\n\n return '';\n }", "public function getTypeStr() {\n return self::getTypes()[$this->type];\n }", "public function typeAsString()\n {\n switch ($this->_type) {\n case self::TYPE_INTEGER:\n $str = 'INTEGER';\n break;\n\n case self::TYPE_FLOAT:\n $str = 'FLOAT';\n break;\n\n case self::TYPE_VARCHAR:\n $str = 'VARCHAR';\n break;\n\n case self::TYPE_BLOB:\n $str = 'BLOB';\n break;\n\n case self::TYPE_BOOLEAN:\n $str = 'BOOLEAN';\n break;\n\n case self::TYPE_DATETIME:\n $str = 'DATETIME';\n break;\n\n case self::TYPE_TEXT:\n default:\n $str = 'TEXT';\n }\n return $str;\n }", "abstract protected function get_typestring();", "protected abstract function joinTypes();", "public function __toString() {\n\t\treturn __CLASS__ . '(' . $this->type . ')';\n\t}", "public function __toString(): string\n {\n $type = static::class;\n $position = strrpos($type, '\\\\');\n\n if ($position !== false) {\n $type = substr($type, $position);\n }\n\n return str_replace('Type', '', $type);\n }", "public function __toString()\n {\n switch ($this->type) {\n case self::COLLECTION_LIST:\n $valueType = (string) $this->valueType;\n return \"list<$valueType>\";\n case self::COLLECTION_SET:\n $valueType = (string) $this->valueType;\n return \"set<$valueType>\";\n case self::COLLECTION_MAP:\n $keyType = (string) $this->keyType;\n $valueType = (string) $this->valueType;\n return \"map<$keyType,$valueType>\";\n default:\n return $this->getTypeName();\n }\n }", "public function okay_types_csv()\n {\n return implode(',', $this->okay_types());\n }", "public function getTypeAsStr() {\n\t\t$cardtypes = array(\n\t\t\t\"race\" => 1,\n\t\t\t\"aspect\" => 2,\n\t\t\t\"power\" => 3,\n\t\t\t\"minion\" => 10,\n\t\t\t\"bane\" => 20\n\t\t);\n\t\tforeach($cardtypes as $typestr => $typeval) {\n\t\t\tif($this->cardType == $typeval) {\n\t\t\t\treturn $typestr;\n\t\t\t}\n\t\t}\n\t}", "public function __toString(): string\n {\n return $this->fullTypeString;\n }", "public function typeFor(array $input): string;", "public function getTypeString(){\n\t\t$typeStr=\"\";\n\t\tswitch($this->type){\n\t\t\tcase \"fixed\": $typeStr=_(\"Montant fixe\");break;\n\t\t\tcase \"percentage\": $typeStr=_(\"Pourcentage\");break;\n\t\t\tcase \"percentage_no_transport\": $typeStr=_(\"Pourcentage sans transport\");break;\n\t\t\tcase \"transport\": $typeStr=_(\"Frais de port\");break;\n\t\t\tcase \"grid\": $typeStr=_(\"Variable\");break;\n\t\t}\n\t\treturn $typeStr;\n\t}", "public function encode(AbstractType $type): string;", "public function typeText() {\n $params = $this->types();\n return isset($params[$this->type]) ? $params[$this->type] : '';\n }", "protected function get_formatted_type()\n\t{\n\t\t$rc = '';\n\n\t\t$type = $this->type;\n\t\t$size = $this->size;\n\n\t\tif (!$size && $type == self::TYPE_VARCHAR)\n\t\t{\n\t\t\t$size = 255;\n\t\t}\n\n\t\tswitch ($type)\n\t\t{\n\t\t\tcase self::TYPE_INTEGER:\n\t\t\tcase self::TYPE_TEXT:\n\t\t\tcase self::TYPE_BLOB:\n\n\t\t\t\t$t = [\n\n\t\t\t\t\tself::TYPE_BLOB => 'BLOB',\n\t\t\t\t\tself::TYPE_INTEGER => 'INT',\n\t\t\t\t\tself::TYPE_TEXT => 'TEXT',\n\n\t\t\t\t][ $type ];\n\n\t\t\t\tif (\\is_numeric($size))\n\t\t\t\t{\n\t\t\t\t\t$rc .= \"$t( $size )\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$rc .= \\strtoupper($size) . $t;\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\n\t\t\t\tif ($size)\n\t\t\t\t{\n\t\t\t\t\t$rc .= \\strtoupper($type) . \"( $size )\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$rc .= \\strtoupper($type);\n\t\t\t\t}\n\t\t}\n\n\t\treturn $rc;\n\t}", "public function getFormattedEventTypes(): string\n {\n return $this->getFormattedFilter($this->event_type_filter);\n }", "private static function typeToString($type)\n {\n if ($type instanceof Schema) {\n return $type->toArray();\n }\n\n if ($type instanceof NumberType) {\n return 'number';\n }\n\n if ($type instanceof BooleanType) {\n return 'boolean';\n }\n\n if ($type instanceof StringType) {\n return 'string';\n }\n\n return null;\n }", "private function formatPokemonTypes($rawTypes)\n {\n $allTypes = [];\n foreach ($rawTypes as $types){\n $allTypes[] = $types['type']['name'];\n }\n return implode(' - ', $allTypes);\n }", "public function getTypeNameWithFlags(): string\n {\n if ($this->exists() && $this->Type()->exists()) {\n $type = $this->Type();\n $title = $type->Name;\n\n return $title\n . ' ('\n . ($type->SingleSelect ? 'Single' : 'Multi')\n . ($type->InternalOnly ? '; Internal only' : '; Public')\n . ')';\n }\n\n return '';\n }", "private function formatJoins()\n\t{\n\t\t$value = '';\n\t\tforeach ($this->joins as $join)\n\t\t{\n\t\t\t$value .= ' ' . $join['type'];\n\t\t\t$value .= ' ' . $join['table'];\n\t\t\tif ($join['alias'] != '') $value .= ' AS ' . $join['alias'];\n\t\t\tif ($join['use_index'] != '') $value .= ' USE INDEX ' . $join['use_index'];\n\t\t\tif ($join['ignore_index'] != '') $value .= ' IGNORE INDEX ' . $join['ignore_index'];\n\t\t\tif ($join['on_statement'] != '') $value .= ' ON ' . $join['on_statement'];\n\t\t\tif ($join['using_statement'] != '') $value .= ' USING ' . $join['using_statement'];\n\t\t}\n\t\treturn $value;\n\t}", "function __toString(){\n\t\t$strings = array();\n\t\tforeach ($this->entities as $entity){\n\t\t\t$strings[] = sprintf(\"%s\", $entity);\n\t\t}\n\t\treturn implode($strings);\n\t}", "public function toString() {\n return sprintf(\n '%s<%s %s%s>',\n $this->getClassName(),\n $this->getType()->toString(),\n $this->_reflect->getName(),\n $this->_reflect->isOptional() ? '= '.xp::stringOf($this->_reflect->getDefaultValue()) : ''\n );\n }", "private function compileUnitTypes()\n {\n $code = '';\n \n foreach ($this->unitTypes as $unitType) {\n $code .= sprintf(\"'%s' => %s,\",$unitType->getType(),var_export($unitType->toArray(),true));\n }\n\n return $code;\n }", "public function __toString()\n {\n if ($this->getTypeCategory() === self::CATEGORY_PK) {\n $format = '{type}{check}{comment}{append}';\n } else {\n $format = $this->format;\n }\n\n return $this->buildCompleteString($format);\n }", "function makeformatstring($names){\n\t$formatstring = '';\n foreach ($names as $name=>$type) {\n \tif($type=='@'){\n \t\t$formatstring .= $type.substr($name,2).\"/\";\n \t} else {\n \t\t$formatstring .= $type.$name.\"/\";\n \t}\n \t\n }\n return $formatstring;\n}", "protected function generate()\n {\n $this->resultString = Stringy::create('');\n\n /*\n * @var Field\n */\n foreach ($this->values as $valueClass) {\n $this->resultString = $this->resultString->append($valueClass->getValue());\n }\n\n return (string) $this->resultString;\n }", "public function __toString() {\n $fields = $this->fields();\n return implode(', ', array_keys($fields));\n }", "private function getTypeDescription()\n {\n switch($this->_type)\n {\n case 'Mountain':\n return \"Mountains are peaceful places. Your ships don't do any damage here, while your tanks will do 10% less damage. Flying weapons (airplanes and helicopters) do normal damage.\" . PHP_EOL;\n case 'Water':\n return \"Water is what you drink. It's also the place where your tanks will be completely useless, but your ships will do 1000% more damage. o7\" . PHP_EOL;\n case 'Open land':\n return \"Who doesn't like the smell of grass in the morning, with a hint of blood from your enemy? Your tanks will do 1000% more damage here, while ships will do none. Good luck!\" . PHP_EOL;\n case 'Woods':\n return \"All you can do is hide, and sometimes it's the best option. Your tanks will do 40% less damage, your ships wont do any damage at all, your air vehicles will do 10% more, and your foot soldiers will do 30% more, so use them wisely. This is your chance, fella!\" . PHP_EOL;\n }\n }", "public function getFormattedEntityType();", "public function type(): string;", "function to_str(){\n //\n //Get the name of the entity \n $ename= $this->entity->name;\n //\n //The type of the join eg inner join, outer join\n $join_str=\"$this->type\"\n //\n //The on clause\n . \"\\t `$ename` \\tON \\t{$this->get_ons()}\";\n return $join_str;\n }", "public function typeHint(): string\n {\n $hint = $this->isArray ? 'array' : implode('|', $this->types);\n\n if ($this->isUnion()) {\n return $this->isNullable() ? \"{$hint}|null\" : $hint;\n }\n\n return $this->isNullable() ? \"?{$hint}\" : $hint;\n }", "protected function list_posts_types() : string {\n\n\t\t$options = array_map(\n\t\t\tfunction ( $post_type ) {\n\t\t\t\tif ( 'attachment' === $post_type->name ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t$checked = ! empty( $this->options['post_type'][ $post_type->name ] ) ? 'checked' : '';\n\n\t\t\t\treturn '<li><label for=\"post-type-' . $post_type->name . '\">' . $post_type->label . '</label><input type=\"checkbox\" id=\"post-type-' . $post_type->name . '\" name=\"' . $this->option_name . '[post_type][' . $post_type->name . ']\" value=\"' . $post_type->name . '\" ' . $checked . '></li>';\n\t\t\t},\n\t\t\tget_post_types( [ 'public' => true ], 'objects' )\n\t\t);\n\n\t\treturn implode( PHP_EOL, $options );\n\t}", "protected function filterJoinType($type)\n {\n if (in_array($type, ['LEFT', 'RIGHT', 'INNER', 'OUTER'])) {\n return $type;\n }\n return '';\n }", "public function getTypeDesc(){\n $type = $this->type;\n $arr = self::getTypeDescArr();\n return $arr[$type] ?? \"\";\n }", "private static function print_value_by_type($value) {\n\t//--\n\tif($value === null) {\n\t\t$value = 'NULL (null)';\n\t} elseif($value === false) {\n\t\t$value = 'FALSE (bool)';\n\t} elseif($value === true) {\n\t\t$value = 'TRUE (bool)';\n\t} elseif($value === 0) {\n\t\t$value = '0 (zero)';\n\t} elseif($value === '') {\n\t\t$value = '`` (empty string)';\n\t} elseif(is_array($value)) {\n\t\t$value = (string) Smart::json_encode($value, true, true, false);\n\t} elseif(is_object($value)) {\n\t\t$value = '[!OBJECT!]';\n\t} //end if else\n\t//--\n\treturn (string) $value;\n\t//--\n}", "function _add_sql($add_sql, $type)\r\n\t{\r\n\t\tif (!isset($add_sql[$type]))\r\n\t\t\treturn '';\r\n\r\n\t\treturn implode(' ', $add_sql[$type]);\r\n\t}", "public function getCast()\n {\n $result = $this->getType();\n if ($result == \"date\")\n $result = \"string\";\n if ($result == \"datetime\")\n $result = \"string\";\n if ($result == \"enum\")\n $result = \"string\";\n if ($result == \"time\")\n $result = \"string\";\n // BIT, TIMESTAMP, VARBINARY, BLOB\n return \"(\" . $result . \")\";\n }", "public function __toString() {\n\t\treturn $this->name->getFullyQualifiedName();\n//\t\t$s = $this->name->getFullyQualifiedName();\n//\t\t$c = $this->extended;\n//\t\twhile($c !== NULL){\n//\t\t\t$s .= \"->\" . $c->name;\n//\t\t\t$c = $c->extended;\n//\t\t}\n//\t\treturn $s;\n\t}", "public function join()\n {\n $result = array();\n\n if (method_exists($this, 'convert')) {\n $data = $this->convert($this->_data);\n } else {\n $data = $this->_data;\n }\n\n foreach (array_filter($data, function($d) {\n if (is_bool($d) && $d == false) {\n return false;\n } elseif (is_null($d)) {\n return false;\n } else {\n return true;\n }\n }) as $key => $val) {\n $result[] = $this->format($key, $val);\n }\n\n return implode($this->_join, $result);\n }", "public function getTypeLabel(){\r\n\t\t$ret = \" \";\r\n\t\tswitch ($this->type){\r\n\t\t\tcase 0 : $ret = $_LANG->get('Artikel'); break;\r\n\t\t\tcase 1 : $ret = $_LANG->get('Produkt'); break;\r\n\t\t\tcase 2 : $ret = $_LANG->get('Personalisierung'); break;\r\n\t\t\tdefault: $ret = \"n.A.\";\r\n\t\t}\r\n\t\treturn $ret;\r\n\t}", "public function toString()\n {\n $data = $this->getProperties();\n $out = get_class($this).' ('.CRLF;\n foreach ($data as $key => $value) {\n $type = gettype($value);\n $value = is_bool($value) ? (int) $value : $value;\n $value = is_string($value) ? '\"'.$value.'\"' : $value;\n $value = is_object($value) ? implode(CRLF.TAB, explode(CRLF, (string) $value)) : $value;\n $value = is_array($value) ? print_r($value, true) : $value;\n $out .= TAB.$key.' ('.$type.')';\n $out .= ': '.$value.CRLF;\n }\n\n return $out.');';\n }", "public function toString() {\r\n return implode($this->result);\r\n }", "public function toString(): string\n {\n return $this->type->typeName() . '=' . $this->value->rfc2253String();\n }", "protected function getType(): string {\n return '';\n }", "function graphql_format_type_name($type_name)\n {\n }", "public function getInputType(): string\n {\n return $this->expectArray\n ? \"array of {$this->type}\"\n : $this->type;\n }", "function to_str(){\n $expressions = $this->expressions;\n //\n //loop through the expressions returns a string for each \n $strs = array_map(function($exp){\n return $exp->to_str();}\n //\n //Array that contains the expressions\n ,$expressions);\n //\n $sep = is_null($this->sep) ? \",\": \" as `$this->sep`\";\n $args = implode($sep, $strs);\n $alias = is_null($this->alias) ? \"\": \" as `$this->alias`\";\n //\n return \"$this->name($args)$alias\";\n }", "public function toString(): string\n {\n return implode(' ', $this->toFields());\n }", "public function __toString(): string\n {\n return sprintf(\n '%s persons=\"%s\", products=\"%s\")]',\n parent::__toString(),\n $this->getCodesTxt($this->getPersons()),\n $this->getCodesTxt($this->getProducts())\n );\n }", "function map_joins($join){\n //\n //return field to str\n return $join->to_str();\n }", "private function getTypeString($type){\n\t\tswitch($type){\n\t\t\tcase Logger::DEBUG:\n\t\t\t\t$type = 'DEBUG';\n\t\t\t\tbreak;\n\t\t\tcase Logger::ERROR:\n\t\t\t\t$type = 'ERROR';\n\t\t\t\tbreak;\n\t\t\tcase Logger::WARNING:\n\t\t\t\t$type = 'WARNING';\n\t\t\t\tbreak;\n\t\t\tcase Logger::CUSTOM :\n\t\t\t\t$type = 'CUSTOM';\n\t\t\t\tbreak;\n\t\t\tcase Logger::CRITICAL:\n\t\t\t\t$type = 'CRITICAL';\n\t\t\t\tbreak;\n\t\t\tcase Logger::ALERT:\n\t\t\t\t$type = 'ALERT';\n\t\t\t\tbreak;\n\t\t\tcase Logger::NOTICE:\n\t\t\t\t$type = 'NOTICE';\n\t\t\t\tbreak;\n\t\t\tcase Logger::EMERGENCE:\n\t\t\t\t$type = 'EMERGENCE';\n\t\t\t\tbreak;\n\t\t\tcase Logger::INFO:\n\t\t\t\t$type = 'INFO';\n\t\t\t\tbreak;\n\t\t\tcase Logger::SPECIAL :\n\t\t\t\t$type = 'SPECIAL';\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$type = 'CUSTOM';\n\t\t}\n\t\treturn $type;\n\t}", "public function getDisplayTypeName()\n {\n $type = static::TYPE;\n\n if ($this instanceof StructureItem) {\n $type = $this->structure->getStructureName();\n }\n\n if ($this->isArray) {\n return $type . '[]';\n }\n\n if ($this->isFixedValues) {\n return '{' . implode(', ', $this->validValues) . '}';\n }\n\n return $type;\n }", "private function getTypes($parameters)\n\t{\n\t\t$types = '';\n\t\t\n\t\tforeach ( $parameters as $param )\n\t\t{\n\t\t\tif ( is_int($param) )\n\t\t\t{\n\t\t\t\t$types .= 'i';\n\t\t\t}\n\t\t\telseif ( is_double($param) || is_float($param) )\n\t\t\t{\n\t\t\t\t$types .= 'd';\n\t\t\t}\n\t\t\telseif ( is_string($param) )\n\t\t\t{\n\t\t\t\t$types .= 's';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$types .= 'b';\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $types;\n\t}", "private function buildFrom(): string\n {\n $from = [];\n foreach ($this->from as $key => $value) {\n if (is_string($key)) {\n $from[] = \"$key AS $value\";\n } else {\n $from[] = $value;\n }\n }\n return join(', ', $from);\n }", "public function getType(): string\n {\n return ucfirst($this->type);\n }", "public function toString() {\n return \n sprintf('%s<%s::%s(%s)>',\n $this->getClassName(),\n $this->instance->getClassName(),\n $this->method,\n implode(', ', array_map(array('xp', 'stringOf'), $this->args))\n );\n }", "protected function GenCustom($type) {\n\n return \"\";\n }", "public function getType(): string;", "public function getType(): string;", "public function getType(): string;", "public function getType(): string;", "public function getType(): string;", "public function getType(): string;", "public function getType(): string;", "public function getType(): string;", "public function getType(): string;", "public function getType(): string;", "public function getType(): string;", "public function getType(): string;", "public function getType() : string\n {\n $rtn = $this->data['type'];\n\n return $rtn;\n }", "public function __toString()\n {\n $type = gettype($this->value);\n\n switch ($type) {\n case 'boolean':\n return $this->boolean($this->value);\n break;\n case 'integer':\n return $this->int($this->value);\n break;\n case 'double':\n return $this->float($this->value);\n break;\n case 'string':\n return $this->string($this->value);\n break;\n case 'array':\n return $this->array($this->value);\n break;\n case 'object':\n return $this->object($this->value);\n break;\n case 'resource':\n return $this->resource($this->value);\n break;\n case 'NULL':\n return 'NULL';\n break;\n default:\n return '(unknown type)';\n break;\n };\n }", "public function toTokenTypeString()\n {\n $this->reset();\n $buf = \"\";\n $o = $this->LT(1);\n $type = $this->adaptor->getType($o);\n while ($type != Token::EOF) {\n $buf .= \" \" . $type;\n $this->consume();\n $o = $this->LT(1);\n $type = $this->adaptor->getType($o);\n }\n return ltrim($buf);\n }", "public function getTypeString()\n {\n switch ( $this->fileStructure->type )\n {\n case self::IS_DIRECTORY:\n return \"d\";\n\n case self::IS_FILE:\n return \"-\";\n\n case self::IS_SYMBOLIC_LINK:\n return \"l\";\n\n case self::IS_LINK:\n return \"h\";\n\n default:\n return \"Z\";\n }\n }", "public function __toString()\n {\n $references = [];\n foreach ($this->getValue() as $item) {\n $references[] = $item->getMaskedValue();\n }\n\n return $this->arr($references)->implode(', ')->val();\n }", "public function __toString()\n {\n $not = ($this->_not === true) ? 'NOT ' : '';\n return $not . '(' . implode(\" $this->_glue \", $this->_components) . ')';\n }", "public static function performerTypeToString ($perfType) {\n\t\t$val = NULL;\n\t\tswitch ($perfType) {\n\t\t\tcase self::PERFORMER_TYPE_UNSPEC:\n\t\t\t\t$val = \"unspecified\";\n\t\t\t\tbreak;\n\t\t\tcase self::PERFORMER_TYPE_SINGLE_MALE:\n\t\t\t\t$val = \"Solo male\";\n\t\t\t\tbreak;\n\t\t\tcase self::PERFORMER_TYPE_SINGLE_FEMALE:\n\t\t\t\t$val = \"Solo female\";\n\t\t\t\tbreak;\n\t\t\tcase self::PERFORMER_TYPE_SINGLE_UNSPEC:\n\t\t\t\t$val = \"Solo gender unspecified\";\n\t\t\t\tbreak;\n\t\t\tcase self::PERFORMER_TYPE_GROUP_MALE:\n\t\t\t\t$val = \"Group male\";\n\t\t\t\tbreak;\n\t\t\tcase self::PERFORMER_TYPE_GROUP_FEMALE:\n\t\t\t\t$val = \"Group female\";\n\t\t\t\tbreak;\n\t\t\tcase self::PERFORMER_TYPE_GROUP_MIXED:\n\t\t\t\t$val = \"Group mixed\";\n\t\t\t\tbreak;\n\t\t\tcase self::PERFORMER_TYPE_GROUP_UNSPEC:\n\t\t\t\t$val = \"Group gender unspecified\";\n\t\t\t\tbreak;\n\t\t}\n\t\treturn $val;\n\t}", "public function toString() {\n return $this->getClassName(). '<'.$this->cat->toString().'>';\n }", "public function __toString()\n {\n return 'data:' . htmlspecialchars($this->type) .\n ($this->base64\n ? ';base64,' . base64_encode($this->data)\n : ',' . rawurlencode($this->data));\n }", "private static function getStringType($val)\n {\n $type = 'string';\n $typeMore = null;\n if (\\is_numeric($val)) {\n $typeMore = 'numeric';\n } elseif ($val === self::UNDEFINED) {\n $type = 'undefined'; // not a native php type!\n } elseif ($val === self::RECURSION) {\n $type = 'recursion'; // not a native php type!\n } elseif ($val === self::NOT_INSPECTED) {\n $type = 'notInspected';\n }\n return array($type, $typeMore);\n }", "public function get_type(): string;", "public static function typeToString(int $type): string {\n return self::$_names[$type];\n }", "public function getTypes()\n {\n $return = $this->dsn->types;\n\n if ($return === null) {\n return;\n }\n return explode(',', $return);\n }", "public function getTypeList()\n {\n $this->db->select(\"tt_code, tt_code ||' - '|| tt_desc as tt_code_desc\");\n $this->db->from(\"ims_hris.training_type\");\n $q = $this->db->get();\n \n return $q->result_case('UPPER');\n }", "function toString() {\n\t\treturn get_class ( $this );\n\t}", "protected function export(string $type, bool $strict = false): string\n {\n $matched = [];\n\n foreach ($this->parts as $part) {\n if ($part instanceof AbstractPart && $this->isType($part, $type, $strict)) {\n $matched[] = $part->normalize();\n }\n }\n\n return implode(' ', $matched);\n }", "public function getExtraClassesString()\n {\n return implode(' ', $this->getExtraClasses());\n }", "public function __toString()\n {\n $str = $this->getType().': ';\n\n if ($this->code != 0) {\n $str .= $this->code.': ';\n }\n\n return $str.$this->message;\n }", "public function __toString()\n {\n $strings = [];\n $string = [];\n $strings['Name'] = $this->getName();\n $strings['status'] = $this->getName();\n $strings['speed'] = self::$speed;\n\n foreach ($strings as $name => $value) $string[] = \"$name: $value\";\n\n return implode(', ', $string);\n }", "function program_format_string($post,$type='full'){\n\t// full returns Bachelor of Arts<br />Bachelor of Science\n\n\t$format = get_field('program_format', $post->ID);\n\t$formats = array();\n\n\tif(!empty($format)){\n\t\n\t\tforeach($format as $item){\n\n\t\t\tif($item == 'ba'){\n\t\t\t\tif($type == 'short'){\n\t\t\t\t\t$formats[] = 'BA';\n\t\t\t\t} else {\n\t\t\t\t\t$formats[] = 'Bachelor of Arts';\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\tif($item == 'bs'){\n\t\t\t\tif($type == 'short'){\n\t\t\t\t\t$formats[] = 'BS';\n\t\t\t\t} else {\n\t\t\t\t\t$formats[] = 'Bachelor of Science';\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\t$separator = ($type == 'short') ? ', ' : '<br />';\n\n\t\treturn implode($separator,$formats);\n\n\t} else {\n\n\t\treturn false;\n\n\t}\n\n\t\t\n}", "public function getNameWithoutType()\n {\n $explode = explode('.', $this->name);\n $type = array_shift($explode);\n return implode('.', $explode);\n }", "final public function generateFormattedSQL()\n {\n $parts = $this->generateOrderedSQLParts();\n return array_reduce($parts, function ($memo, $part) {\n $type = current(array_keys($part));\n $value = current($part);\n $sep = $this->getSeparatorForPartType($type);\n if (!$memo) {\n return $value;\n }\n return \"{$memo}{$sep}{$value}\";\n }, null);\n }", "protected function dumpToString()\n {\n if ($this->_type == self::NODE_ROOT) {\n return 'root';\n }\n return (string)$this->_type;\n }", "public function getTypes();" ]
[ "0.7550961", "0.7479961", "0.74684966", "0.7193515", "0.71180767", "0.6939878", "0.6706839", "0.66539526", "0.6643747", "0.6594305", "0.6572209", "0.6518047", "0.6517482", "0.6455897", "0.63957685", "0.6350336", "0.6277723", "0.62161124", "0.618693", "0.61689633", "0.61138403", "0.61103964", "0.6109803", "0.6097564", "0.60564816", "0.60509694", "0.6015523", "0.598911", "0.5974622", "0.59412843", "0.5926757", "0.5868051", "0.5867741", "0.5861892", "0.5857767", "0.5846975", "0.5838665", "0.5830071", "0.5825634", "0.5813444", "0.57986826", "0.5797069", "0.579007", "0.5788154", "0.57733065", "0.5770811", "0.57672006", "0.5761318", "0.57479566", "0.5736696", "0.5728393", "0.5726321", "0.5702103", "0.5693413", "0.56889224", "0.56542516", "0.5647074", "0.5646928", "0.56405145", "0.5631415", "0.5629786", "0.56295496", "0.56294024", "0.56270754", "0.5618998", "0.5618998", "0.5618998", "0.5618998", "0.5618998", "0.5618998", "0.5618998", "0.5618998", "0.5618998", "0.5618998", "0.5618998", "0.5618998", "0.5618329", "0.56156987", "0.561523", "0.5605709", "0.5578578", "0.55741876", "0.5569318", "0.5567449", "0.5564401", "0.55629677", "0.5562638", "0.5549173", "0.55440634", "0.55424076", "0.5540784", "0.55310756", "0.55221754", "0.5512567", "0.55120826", "0.55104035", "0.5510312", "0.55091715", "0.5508859", "0.5504846" ]
0.6003848
27
Test passed type with current mode
public static function testTypes($bits = self::INFO) { return $bits & self::$mode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isMode($mode);", "abstract public function mode($mode = NULL);", "function is($type);", "public function supports($type);", "function supported($mime_type, $mode) {\r\r\n\t\treturn in_array(\r\r\n\t\t\tstrToLower($mime_type),\r\r\n\t\t\t$this->get_supported_types($mode)\r\r\n\t\t\t);\r\r\n\t\t}", "public function matches($type);", "public function matches($type);", "public function supports(string $type): bool;", "public function getMode();", "public function getMode();", "public function getMode();", "public function getMode();", "public static function getMode();", "function is($type)\n {\n return $this->factory->is($type);\n }", "public function isMode($mode)\n {\n return $this->mode == $mode;\n }", "public function type($type);", "abstract public function type();", "abstract public function type();", "final public function getMode(): int {}", "public function getMode(): string;", "public function isType($type){\n \n // canary...\n if(!$this->hasType()){ return false; }//if\n \n return ($this->field_map['type'] === $type);\n \n }", "function isTestMode($context) {\n\t\treturn ($this->getSetting($context->getId(), 'testMode') == 1);\n\t}", "protected function check_type()\n {\n $regex = \"/^int$|^bool$|^string$/\";\n\n $result = preg_match($regex, $this->token);\n\n if($result == 0 or $result == FALSE)\n {\n fwrite(STDERR, \"Error, expecting <type> function parameter! Line: \");\n fwrite(STDERR, $this->lineCount);\n fwrite(STDERR, \"\\n\");\n exit(23);\n } \n }", "function _exp_mode($mode=NULL){\n $mode = 'exp_' . nz($mode,$this->exp_mode_default);\n return method_exists($this,$mode)?$mode:FALSE;\n }", "public function isTestMode() {\n\t\treturn (bool) $this->app->store->get()->params->get('anet.test_mode');\n\t}", "public function isTestMode(): bool;", "public function checkType() {\n\t\t//Because the DB gave us a string for the card type, we must\n\t\t//ensure that they are strings and compare accordingly.\n\t\tif (strcmp($this->getTypeAsStr(), \"aspect\")==0) {\n\t\t\t$this->boostInfo = 0;\n\t\t\t$this->magnitude = 0;\n\t\t}\n\t}", "public function currentMode() {}", "function isTextType($type)\n{\n return($type == \"string\" or $type == \"varchar\" or $type == \"tinytext\" or $type == \"password\" or\n $type == \"set\" or $type == \"enum\" or $type == \"char\" or $type == \"file\" or isTextAreaType($type));\n}", "public abstract function type();", "public abstract function type();", "private function get_type() {\n\n\t}", "abstract protected function getType();", "public function request( string $type ): bool {\n\t\tswitch ( $type ) {\n\t\t\tcase 'backend':\n\t\t\t\treturn $this->is_admin_backend();\n\n\t\t\tcase 'ajax':\n\t\t\t\treturn $this->is_ajax();\n\n\t\t\tcase 'installing_wp':\n\t\t\t\treturn $this->is_installing_wp();\n\n\t\t\tcase 'rest':\n\t\t\t\treturn $this->is_rest();\n\n\t\t\tcase 'cron':\n\t\t\t\treturn $this->is_cron();\n\n\t\t\tcase 'frontend':\n\t\t\t\treturn $this->is_frontend();\n\n\t\t\tcase 'cli':\n\t\t\t\treturn $this->is_cli();\n\n\t\t\tcase 'amp':\n\t\t\t\treturn $this->is_amp();\n\n\t\t\tdefault:\n\t\t\t\t_doing_it_wrong( __METHOD__, esc_html( sprintf( 'Unknown request type: %s', $type ) ), '1.0.0' );\n\n\t\t\t\treturn false;\n\t\t}\n\t}", "public function match(/*int */$type, /*string */$value = null) //: bool\n {\n return $this->getCurrent()->match($type, $value);\n }", "function getType() ;", "function getType() ;", "function getType() ;", "public function get_type();", "function accepts($mode)\n {\n if ($mode == \"code\" || $mode == \"plugin_combo_code\") {\n return false;\n }\n return parent::accepts($mode);\n }", "public function getMode()\n {\n return;\n }", "function isType($input) {\n\treturn ((strcmp($input, 'dynamic') == 0) || (strcmp($input, 'static') == 0));\n}", "function isTimeType($type)\n{\n return($type == \"datetime\" or $type == \"time\" or $type == \"timestamp\");\n}", "public function isTest();", "function get_test_type()\n{\n return do_test_get_test_type((int)getreq('type'));\n}", "function api_mode($ask_mode) {\n\tif(trim(strtolower(chevereto_config('api_mode'))) == $ask_mode) return true;\n}", "public function type();", "public function type();", "public function type();", "public function type();", "function typeCanDetectFixtures($type) {\n\t\t$type = strtolower($type);\n\t\treturn ($type == 'controller' || $type == 'model');\n\t}", "public static function mode($mode) {\n static::$mode = $mode;\n }", "abstract public function getType();", "abstract public function getType();", "abstract public function getType();", "abstract public function getType();", "abstract public function getType();", "abstract public function getType();", "function isDateType($type)\n{\n return($type == \"date\" or $type == \"year\" or isTimeType($type));\n}", "protected abstract function getType();", "private static function isType($arg, $type) {\n\t\tswitch ($type) {\n\t\t\tcase self::TYPE_INTEGER: return is_int($arg);\n\t\t\tcase self::TYPE_BOOLEAN: return is_bool($arg);\n\t\t\tcase self::TYPE_FLOAT: return is_float($arg);\n\t\t\tcase self::TYPE_STRING: return is_string($arg);\n\t\t\tdefault:\n\t\t\t\tif (is_object($arg) && get_class($arg) === $type) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t}\n\t\tthrow new \\Scrivo\\SystemException(\"No such argument type\");\n\t}", "public static function mode($mode)\n {\n static::context()->mode($mode);\n }", "static function findMode( $command )\n {\n foreach( static::$mode_list as $mode ) {\n if( in_array( $mode, $command ) ) {\n // found special mode. \n return $mode;\n }\n }\n return FALSE;\n }", "public function testIsValidType()\n {\n $this->assertFalse(\n Method::invoke($this->type, 'isValidType', $this, 'test'),\n 'The value should not be valid.'\n );\n\n $this->assertTrue(\n Method::invoke($this->type, 'isValidType', $this, 1.23),\n 'The value should be valid.'\n );\n }", "public function hasType(){\n return $this->_has(4);\n }", "public function test($type, $value = null)\n {\n return $this->tokens[$this->current]->test($type, $value);\n }", "function upper_scan($t_data, $mode){\n if(!$mode){\n switch ($t_data) {\n case 'int':\n case 'string':\n case 'nil':\n case 'bool':\n case 'LF':\n case 'GF':\n case 'TF':\n break;\n\n default:\n fwrite(STDERR, \"ERROR : LEX : Wrong case sensitivity detected in $t_data\\n\");\n exit(23); #lex error\n break;\n }\n }\n else {\n if(!preg_match(\"/^(true)|(false)$/\", $t_data)){\n fwrite(STDERR, \"ERROR : LEX : Wrong case sensitivity detected in $t_data\\n\");\n exit(23);\n }\n }\n }", "public static function check($type,$level) { \n\n\t\tif (Config::get('demo_mode')) { return true; } \n\t\tif (INSTALL == '1') { return true; } \n\n\t\t$level = intval($level); \n\n\t\t// Switch on the type\n\t\tswitch ($type) { \n\t\t\tcase 'localplay': \n\t\t\t\t// Check their localplay_level \n\t\t\t\tif (Config::get('localplay_level') >= $level OR $GLOBALS['user']->access >= '100') { \n\t\t\t\t\treturn true; \n\t\t\t\t} \n\t\t\t\telse { \n\t\t\t\t\treturn false; \n\t\t\t\t} \n\t\t\tbreak;\n\t\t\tcase 'interface': \n\t\t\t\t// Check their standard user level\n\t\t\t\tif ($GLOBALS['user']->access >= $level) { \n\t\t\t\t\treturn true; \n\t\t\t\t} \n\t\t\t\telse { \n\t\t\t\t\treturn false; \n\t\t\t\t} \n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn false; \n\t\t\tbreak; \n\t\t} // end switch on type\n\n\t\t// Default false\n\t\treturn false; \n\n\t}", "abstract protected function getValidType(): string;", "function setFeedback($mode){\n\n\t\tif( @in_array($mode, array(\"line\",\"box\",\"both\")) ){\n\t\t\t$this->feedback = $mode;\n\t\t\treturn true;\n\t\t} else return false;\n\n\t}", "protected static function getInternalMode($mode)\n\t{\n\t\tswitch (strtoupper($mode))\n\t\t{\n\t\t\tcase 'LIVE':\n\t\t\t\t$mode = self::MODE_LIVE;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'RC':\n\t\t\tcase 'LOCAL':\n\t\t\tcase 'DEMO':\n\t\t\tdefault:\n\t\t\t\t$mode = self::MODE_TEST;\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn $mode;\n\t}", "public function testGetType0()\n{\n\n $actual = $this->global_->getType();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "protected function is_types_active() {\n\t\treturn class_exists( 'Types_Main' );\n\t}", "public function support($type)\n {\n return $type == 'csv';\n }", "public static function is_supported_mode($mode) {\n return ($mode === self::MODE_APPLICATION || $mode === self::MODE_SESSION);\n }", "public function form_order_type() {\n\t\tglobal $current_user;\n\n\t\tget_currentuserinfo();\n\n\t\t$data = array();\n\n\t\tif ( !isset( $_REQUEST['page'] ) )\n\t\t\treturn;\n\n\t\tif ( 'visual-form-builder-pro' !== $_REQUEST['page'] )\n\t\t\treturn;\n\n\t\tif ( isset( $_REQUEST['mode'] ) ) :\n\t\t\t$user_id = $current_user->ID;\n\n\t\t\t$type = get_user_meta( $user_id, 'vfb-form-order-type', true );\n\n\t\t\t$meta_value = ( in_array( $_REQUEST['mode'], array( 'order', 'list' ) ) ) ? esc_html( $_REQUEST['mode'] ) : '';\n\t\t\tupdate_user_meta( $user_id, 'vfb-form-order-type', $meta_value );\n\n\t\tendif;\n\t}", "function test_checkMode_newArgs()\n {\n $result = $this->bax->_checkMode($this->bax->_newArgs());\n $this->assertTrue($result === true);\n }", "public function hasType(){\n return $this->_has(2);\n }", "public function hasType(){\r\n return $this->_has(1);\r\n }", "public function is_restriction_mode( $mode ) {\n\t\treturn is_array( $mode ) ? in_array( $this->get_restriction_mode(), $mode, true ) : $mode === $this->restriction_mode;\n\t}", "function getMode()\n {\n return $this->mode;\n }", "public function fetchMode($arg);", "protected function getMode() {\n\t\treturn $this->mode;\n\t}", "function getMode() {\n\t\treturn $this->get('mode');\n\t}", "abstract protected function post_type();", "function getType();", "function getType();", "function getType();", "function getType();", "function getType();", "public function hasType(){\n return $this->_has(9);\n }", "public function hasType() {\n return $this->_has(2);\n }", "function getMode() {\n\t\treturn $this->mode;\n\t}", "public function getMode()\n\t{\n\t\treturn $this->mode;\n\t}", "public function getMode()\n\t{\n\t\treturn $this->mode;\n\t}", "private function is_request( $type ) {\n switch ( $type ) {\n case 'admin':\n return is_admin();\n case 'ajax':\n return defined( 'DOING_AJAX' );\n case 'cron':\n return defined( 'DOING_CRON' );\n case 'frontend':\n return ( ! is_admin() );\n }\n }", "public function accepts( $type );", "function getMode()\n {\n return $this->mode;\n }", "public function testGetType()\n {\n $filter = new MatchAllFilter();\n $result = $filter->getType();\n $this->assertEquals('match_all', $result);\n }", "public function getMode(): string\n {\n return 'into';\n }" ]
[ "0.7147844", "0.67065424", "0.66993976", "0.6495303", "0.629422", "0.62288445", "0.62288445", "0.62193274", "0.6187321", "0.6187321", "0.6187321", "0.6187321", "0.61519086", "0.6126987", "0.601378", "0.6006295", "0.58828247", "0.58828247", "0.5880351", "0.57773775", "0.5764348", "0.5761363", "0.57485276", "0.5722775", "0.5715206", "0.56999725", "0.56855744", "0.56794894", "0.5648741", "0.56467634", "0.56467634", "0.56450605", "0.56406623", "0.563105", "0.56250036", "0.55992895", "0.55982494", "0.5598234", "0.55877864", "0.5586072", "0.55798805", "0.5577921", "0.55571467", "0.5553899", "0.5538593", "0.5528229", "0.5525036", "0.5525036", "0.5525036", "0.5525036", "0.5522523", "0.551679", "0.5515436", "0.5515436", "0.5515436", "0.5515436", "0.5515436", "0.5515436", "0.550278", "0.54788214", "0.54773325", "0.5462809", "0.5460906", "0.54515666", "0.5442631", "0.54404926", "0.54347897", "0.54324615", "0.5423125", "0.54143924", "0.5409943", "0.5408951", "0.5408031", "0.54035276", "0.53837776", "0.53790903", "0.53780925", "0.5376308", "0.5368331", "0.53638214", "0.53632677", "0.5360564", "0.53502035", "0.5347437", "0.5341003", "0.53403527", "0.53403527", "0.53403527", "0.53403527", "0.53403527", "0.53297544", "0.5328428", "0.5320897", "0.53151083", "0.53151083", "0.5312485", "0.5311709", "0.5297061", "0.5296337", "0.52953535" ]
0.58974487
16
this up() migration is autogenerated, please modify it to your needs
public function up(Schema $schema) : void { $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->addSql('ALTER TABLE pedigree_animal ADD relativePopularity DOUBLE PRECISION DEFAULT NULL'); $this->addSql('ALTER TABLE pedigree_animal_kinship ADD ancestorId INT DEFAULT NULL'); $this->addSql('ALTER TABLE pedigree_animal_kinship ADD CONSTRAINT FK_B0B5D0051054AA12 FOREIGN KEY (ancestorId) REFERENCES pedigree_animal (id)'); $this->addSql('CREATE INDEX IDX_B0B5D0051054AA12 ON pedigree_animal_kinship (ancestorId)'); $this->addSql('ALTER VIEW pedigree_animal_statistics AS SELECT x.id AS animalId, c.covariance - 1 AS inbreedingCoefficient, AVG(COALESCE(a.covariance,b.covariance,0)) AS averageCovariance, SUM(IF(x.id IN (a.ancestorId, b.ancestorId),1,0)) / COUNT(y.id) AS relativePopularity FROM pedigree_animal x JOIN pedigree_animal y LEFT JOIN pedigree_animal_kinship a ON (a.animal1Id = x.id AND a.animal2Id = y.id) LEFT JOIN pedigree_animal_kinship b ON (b.animal1Id = y.id AND b.animal2Id = x.id) LEFT JOIN pedigree_animal_kinship c ON (c.animal1Id = x.id AND c.animal2Id = x.id) GROUP BY x.id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function up();", "abstract public function up();", "abstract public function up();", "abstract public function up();", "public function up()\n {\n $this->execute(\"\n ALTER TABLE `tcmn_communication` \n CHANGE `tcmn_pprs_id` `tcmn_pprs_id` SMALLINT(5) UNSIGNED NULL COMMENT 'person',\n CHANGE `tcmn_tmed_id` `tcmn_tmed_id` TINYINT(4) UNSIGNED NULL COMMENT 'medijs';\n \");\n }", "public function up()\n {\n // This migration was removed, but fails when uninstalling plugin\n }", "public function up()\n {\n $this->execute(\"\n\n ALTER TABLE `cucp_user_company_position` \n ADD COLUMN `cucp_role` CHAR(20) NULL AFTER `cucp_name`;\n\n \");\n }", "public function up()\n\t{\n\t\t$this->dbforge->add_column($this->table, $this->field);\n\t}", "public function migrateUp()\n {\n //$this->migrate('up');\n $this->artisan('migrate');\n }", "public function up()\n {\n dbexec('ALTER TABLE #__subscriptions_coupons\n ADD `created_on` datetime DEFAULT NULL AFTER `usage`,\n ADD `created_by` bigint(11) unsigned DEFAULT NULL AFTER `created_on`,\n ADD INDEX `created_by` (`created_by`),\n ADD `modified_on` datetime DEFAULT NULL AFTER `created_by`,\n ADD `modified_by` bigint(11) unsigned DEFAULT NULL AFTER `modified_on`,\n ADD INDEX `modified_by` (`modified_by`) \n ');\n \n dbexec('ALTER TABLE #__subscriptions_vats\n ADD `created_on` datetime DEFAULT NULL AFTER `data`,\n ADD `created_by` bigint(11) unsigned DEFAULT NULL AFTER `created_on`,\n ADD INDEX `created_by` (`created_by`),\n ADD `modified_on` datetime DEFAULT NULL AFTER `created_by`,\n ADD `modified_by` bigint(11) unsigned DEFAULT NULL AFTER `modified_on`,\n ADD INDEX `modified_by` (`modified_by`) \n ');\n }", "public function up()\n\t{\n\t\t$this->dbforge->modify_column($this->table, $this->field);\n\t}", "public function safeUp()\n {\n $this->createTable(\n $this->tableName,\n [\n 'id' => $this->primaryKey(),\n 'user_id' => $this->integer(). ' UNSIGNED NOT NULL' ,\n 'source' => $this->string()->notNull(),\n 'source_id' => $this->string()->notNull(),\n ],\n 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB'\n );\n\n $this->addForeignKey('fk_social_auth_user_id_to_user_id', $this->tableName, 'user_id', '{{%user}}', 'id', 'CASCADE', 'CASCADE');\n }", "public function up()\n {\n }", "public function up()\n {\n $user = $this->table('products', ['collation' => 'utf8mb4_persian_ci', 'engine' => 'InnoDB']);\n $user\n ->addColumn('name', STRING, [LIMIT => 20])\n ->addColumn('count', STRING, [LIMIT => 75])\n ->addColumn('code', STRING, [LIMIT => 100])\n ->addColumn('buy_price', STRING, [LIMIT => 30])\n ->addColumn('sell_price', STRING, [LIMIT => 30])\n ->addColumn('aed_price', STRING, [LIMIT => 50])\n ->addTimestamps()\n ->save();\n }", "public function up()\n {\n // Drop table 'table_name' if it exists\n $this->dbforge->drop_table('lecturer', true);\n\n // Table structure for table 'table_name'\n $this->dbforge->add_field(array(\n 'nip' => array(\n \t'type' => 'VARCHAR(16)',\n\t\t\t\t'null' => true,\n\t\t\t\t'unique' => true\n\t\t\t),\n 'nik' => array(\n \t'type' => 'VARCHAR(16)',\n\t\t\t\t'null' => false,\n\t\t\t\t'unique' => true\n\t\t\t),\n 'name' => array(\n 'type' => 'VARCHAR(24)',\n 'null' => false,\n ),\n\t\t\t'id_study_program' => array(\n\t\t\t\t'type' => 'VARCHAR(24)',\n\t\t\t\t'null' => false,\n\t\t\t)\n\n ));\n $this->dbforge->add_key('nik', true);\n $this->dbforge->create_table('lecturer');\n }", "public function up()\n\t{\n\t\t// are not setting the foreign key constraint, to allow the examination module to work without the intravitreal\n\t\t// injection module being installed\n\t\t$this->addColumn('et_ophciexamination_injectionmanagementcomplex', 'left_treatment_id', 'int(10) unsigned');\n\t\t$this->addColumn('et_ophciexamination_injectionmanagementcomplex', 'right_treatment_id', 'int(10) unsigned');\n\t}", "public function safeUp()\n {\n $this->createTable('tbl_hand_made_item',\n [\n \"id\" => \"int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY\",\n \"price\" => \"integer\",\n \"discount\" => \"integer\",\n \"preview_id\" => \"integer\",\n \"name\" => \"string\",\n \"description\" => \"text\",\n \"short_description\" => \"text\",\n \"slug\" => \"string\",\n ]\n );\n }", "public function preUp()\n {\n }", "public function up()\n\t{\n\t\t// create the purchase_order_details table\n\t\tSchema::create('purchase_order_details', function($table) {\n\t\t\t$table->engine = 'InnoDB';\n\t\t $table->increments('id');\t\t \n\t\t $table->integer('purchase_order_id')->unsigned();//->foreign()->references('id')->on('orders');\n\t\t $table->integer('product_id')->unsigned();//->foreign()->references('id')->on('products');\n\t\t $table->integer('quantity');\t\t \t \n\t\t $table->integer('created_by')->unsigned();//->foreign()->references('id')->on('users');\t\t \n\t\t $table->integer('updated_by')->unsigned();\n\t\t $table->timestamps();\t\t \n\t\t});\t\n\t}", "public function up()\n {\n if (!$this->isEdu()) {\n return;\n }\n \n $this->edu_up();\n }", "public function up()\n\t{\t\t\n\t\tDB::table('professor')->insert(array(\n\t\t\t'user_id'=>'2',\t\t\t\n\t\t\t'created_at'=>date('Y-m-d H:m:s'),\n\t\t\t'updated_at'=>date('Y-m-d H:m:s')\n\t\t));\t\t\n\n\t\tDB::table('professor')->insert(array(\n\t\t\t'user_id'=>'3',\t\t\t\n\t\t\t'created_at'=>date('Y-m-d H:m:s'),\n\t\t\t'updated_at'=>date('Y-m-d H:m:s')\n\t\t));\n\t\t//\n\t}", "public function up()\n {\n $table = $this->table('qobo_translations_translations');\n $table->renameColumn('object_foreign_key', 'foreign_key');\n $table->renameColumn('object_model', 'model');\n $table->renameColumn('object_field', 'field');\n $table->renameColumn('translation', 'content');\n\n if (!$table->hasColumn('locale')) {\n $table->addColumn('locale', 'char', [\n 'default' => null,\n 'limit' => 6,\n ]);\n }\n $table->update();\n\n $table = TableRegistry::getTableLocator()->get(\"Translations.Translations\");\n $entities = $table->find()->all();\n foreach($entities as $entity) {\n $entity->setDirty('locale', true);\n $table->save($entity);\n }\n }", "public function up()\n {\n $this->addForeignKey('tours_fk', 'tours', 'id', 'tour_to_hotel', 'tour_id');\n\n $this->addForeignKey('t2h_fkh', 'tour_to_hotel', 'hotel_id', 'hotels', 'id');\n $this->addForeignKey('t2h_fkt', 'tour_to_hotel', 'tour_id', 'tours', 'id');\n }", "public function safeUp()\r\n {\r\n $this->createTable('tbl_job_application', array(\r\n 'id' => 'pk',\r\n 'job_id' => 'integer NOT NULL',\r\n 'user_id' => 'integer NULL',\r\n 'name' => 'string NOT NULL',\r\n 'email' => 'text NOT NULL',\r\n 'phone' => 'text NOT NULL',\r\n 'resume_details' => 'text NOT NULL',\r\n 'create_date' => 'datetime NOT NULL',\r\n 'update_date' => 'datetime NULL',\r\n ));\r\n }", "public function up()\n {\n $fields = array(\n 'first_login' => array('type' => 'char', 'constraint' => '1', 'default' => '1'),\n );\n $this->dbforge->add_column('user', $fields);\n }", "public function safeUp() {\n\n $this->createTable('word', [\n 'word_id' => Schema::TYPE_PK,\n 'word_lang_id' => $this->integer(),\n 'word_name' => $this->string(500) . ' NOT NULL',\n 'word_detais' => $this->string(1000),\n ]);\n\n // Add foreign key\n $this->addForeignKey('fk_language_word_1', 'word',\n 'word_lang_id', 'language', 'lang_id', 'CASCADE', 'NO ACTION');\n \n // Create index of foreign key\n $this->createIndex('word_lang_id_idx', 'word', 'word_lang_id');\n }", "public function safeUp()\n {\n $this->alterColumn('item_keuangan', 'created_at', \"TIMESTAMP NOT NULL DEFAULT '2000-01-01 00:00:00'\");\n\n /* Tambah Field */\n $this->addColumn('item_keuangan', 'status', \"TINYINT(1) NOT NULL DEFAULT '1' COMMENT '0=tidak aktif; 1=aktif;' AFTER `jenis`\");\n }", "public function up()\n {\n $this->addForeignKey(\n 'fk_category_product_from_category',\n 'category_product',\n 'category_id',\n 'category',\n 'id',\n 'NO ACTION',\n 'NO ACTION'\n );\n\n $this->addForeignKey(\n 'fk_category_product_from_product',\n 'category_product',\n 'product_id',\n 'product',\n 'id',\n 'NO ACTION',\n 'NO ACTION'\n );\n }", "public function up()\n\t{\n\t\t$this->dropColumn('korzet','utca'); \n\t\t$this->addColumn('korzet','utca','string NOT NULL');\n\t}", "public function up()\n {\n Schema::table($this->table, function (Blueprint $table) {\n // $table->bigInteger('user_id')->default(0)->after('id'); // Example\n $table->dropColumn([\n // 'user_id', // Example\n ]);\n });\n }", "public function up()\n {\n // $this->fields()->create([]);\n // $this->streams()->create([]);\n // $this->assignments()->create([]);\n }", "public function up()\n {\n $table = $this->table('admins');\n $table->addColumn('name', 'string')\n ->addColumn('role', 'string')\n ->addColumn('username', 'string')\n ->addColumn('password', 'string')\n ->addColumn('created', 'datetime')\n ->addColumn('modified', 'datetime', ['null' => true])\n ->create();\n\n\n $data = [ \n [\n 'name' => 'Pedro Santos', \n 'username' => 'phmsanttos@gmail.com',\n 'password' => '101010',\n 'role' => 'Suporte',\n 'modified' => false\n ],\n ];\n\n $adminTable = TableRegistry::get('Admins');\n foreach ($data as $value) {\n $adminTable->save($adminTable->newEntity($value));\n }\n }", "public function up(): void\n {\n try {\n // SM: We NEVER delete this table.\n if ($this->db->tableExists('prom2_pages')) {\n return;\n }\n $this->db->ForeignKeyChecks(false);\n $statement=$this->db->prepare(\"CREATE TABLE `prom2_pages` (\n `cntPageID` int(10) unsigned NOT NULL AUTO_INCREMENT,\n `txtRelativeURL` varchar(255) NOT NULL COMMENT 'Relative URL',\n `txtTitle` varchar(70) NOT NULL COMMENT 'Title',\n `txtContent` text NOT NULL COMMENT 'Content',\n `blnRobots_DoNotAllow` bit(1) NOT NULL DEFAULT b'1',\n PRIMARY KEY (`cntPageID`),\n UNIQUE KEY `txtRelativeURL` (`txtRelativeURL`),\n KEY `txtTitle` (`txtTitle`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8;\");\n $statement->execute();\n $statement->close();\n $this->db->ForeignKeyChecks(true);\n } catch (\\mysqli_sql_exception $exception) {\n throw $exception;\n }\n }", "public function up()\n\t{\n\t\t// Add data to committee-members\n\t\tDB::table('committee_members')->insert(array(\n\t\t\t'name' => 'Brian O\\'Sullivan',\n\t\t\t'role' => 'Chairman',\n\t\t\t'telephone' => '087-1234567',\n\t\t\t'email' => 'brian@tykus.ie'\n\t\t));\n\t\tDB::table('committee_members')->insert(array(\n\t\t\t'name' => 'Anthony Barker',\n\t\t\t'role' => 'PRO',\n\t\t\t'telephone' => '087-1234567',\n\t\t\t'email' => 'bpro@stpaulsgfc.ie'\n\t\t));\t\t\n\t}", "public function up()\n {\n $this->query(\"UPDATE `subscription_types` SET `user_label` = `name` WHERE `user_label` = '' OR `user_label` IS NULL;\");\n\n $this->table('subscription_types')\n ->changeColumn('user_label', 'string', ['null' => false])\n ->update();\n }", "public function safeUp()\n\t{\n $sql = <<<SQL\n alter table r add R8 inte;\nSQL;\n\t\t//$this->execute($sql);\n $sql = <<<SQL\n ALTER TABLE r ADD constraint FK_r8_elgz1 FOREIGN KEY (r8) REFERENCES elgz (elgz1) ON DELETE SET DEFAULT ON UPDATE CASCADE;\nSQL;\n //$this->execute($sql);\n\t}", "public function up()\n\t{\n\t\techo $this->migration('up');\n\n\t\tci('o_role_model')->migration_add('Cookie Admin', 'Cookie Designer and Eater', $this->hash());\n\t\t\n\t\treturn true;\n\t}", "public function up()\n {\n\t\t$this->addColumn('{{%user}}', 'is_super', Schema::TYPE_SMALLINT . \"(1) NULL DEFAULT '0' AFTER `status`\");\n\t\t\n\t\t//Add new column for Option Group table\n\t\t$this->addColumn('{{%option_group}}', 'option_type', Schema::TYPE_STRING . \"(25) NULL DEFAULT 'text' AFTER `title`\");\n\t\t\n\t\t//Add new column for Order table\n\t\t$this->addColumn('{{%order}}', 'is_readed', Schema::TYPE_SMALLINT . \"(1) NULL DEFAULT '0' AFTER `shipment_method`\");\n }", "public function up()\n {\n $this->addColumn(\\backend\\models\\VodProfile::tableName(), 'language', \"char(5) not null default 'en-US'\");\n }", "public function up()\n {\n if (!Schema::hasTable($this->table))\n Schema::create($this->table, function (Blueprint $table)\n {\n $table->integer('parent_id')->unsigned()->index();\n $table->foreign('parent_id')->references('id')->on('organisations')->onDelete('restrict');\n\n $table->integer('child_id')->unsigned()->index();\n $table->foreign('child_id')->references('id')->on('organisations')->onDelete('restrict');\n\n $table->primary(['parent_id','child_id'],'organisation_relations_primary');\n\n $table->timestamps();\n $table->softDeletes();\n\n $table->engine = 'InnoDB';\n });\n }", "public function up(){\n $table = $this->table('users', array('id'=>false, 'primary_key'=>'id'));\n $table->addColumn('id', 'integer', array('identity'=>true, 'signed'=>false));\n $table->addColumn('email', 'string', array('limit'=>100));\n $table->save();\n }", "public function up() { return $this->run('up'); }", "public function safeUp()\n\t{\n\t\t$this->createTable(\n\t\t\t$this->tableName,\n\t\t\tarray(\n\t\t\t\t'l_id' => 'INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT',\n\t\t\t\t'model_id' => 'INT UNSIGNED NOT NULL',\n\t\t\t\t'lang_id' => 'VARCHAR(5) NULL DEFAULT NULL',\n\n\t\t\t\t// examples:\n\t\t\t\t'l_label' => 'VARCHAR(200) NULL DEFAULT NULL',\n\t\t\t\t'l_announce' => 'TEXT NULL DEFAULT NULL',\n\t\t\t\t//'l_content' => 'TEXT NULL DEFAULT NULL',\n\n\t\t\t\t'INDEX key_model_id_lang_id (model_id, lang_id)',\n\t\t\t\t'INDEX key_model_id (model_id)',\n\t\t\t\t'INDEX key_lang_id (lang_id)',\n\n\t\t\t\t'CONSTRAINT fk_principles_lang_model_id_to_main_model_id FOREIGN KEY (model_id) REFERENCES ' . $this->relatedTableName . ' (id) ON DELETE CASCADE ON UPDATE CASCADE',\n\t\t\t\t'CONSTRAINT fk_principles_lang_lang_id_to_language_id FOREIGN KEY (lang_id) REFERENCES {{language}} (code) ON DELETE RESTRICT ON UPDATE CASCADE',\n\t\t\t),\n\t\t\t'ENGINE=InnoDB DEFAULT CHARACTER SET=utf8 COLLATE=utf8_unicode_ci'\n\t\t);\n\t}", "public function up()\n\t{\n\t\t// create the purchase_orders table\n\t\tSchema::create('purchase_orders', function($table) {\n\t\t\t$table->engine = 'InnoDB';\n\t\t $table->increments('id');\n\t\t $table->string('order_number', 128);\n\t\t $table->string('approved',50);\n\t\t $table->date('purchase_date');\t\t \t \t\t \t \n\t\t $table->integer('created_by')->unsigned();//->foreign()->references('id')->on('users');\t\t \t\t \n\t\t $table->integer('updated_by')->unsigned();\t\t \n\t\t $table->timestamps();\t\t \n\t\t});\t\n\t}", "public function safeUp()\n\t{\n\t\t$this->createTable(\n\t\t\t$this->tableName,\n\t\t\tarray(\n\t\t\t\t'id' => 'INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT',\n\n\t\t\t\t'label' => 'VARCHAR(20) NULL DEFAULT NULL COMMENT \"language label\"',\n\t\t\t\t'code' => 'VARCHAR(5) NOT NULL COMMENT \"language code\"',\n\t\t\t\t'locale' => 'VARCHAR (5) NULL DEFAULT NULL',\n\n\t\t\t\t'visible' => 'TINYINT(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT \"0 - not visible; 1 - visible\"',\n\t\t\t\t'published' => 'TINYINT(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT \"0 - not published; 1 - published\"',\n\t\t\t\t'position' => 'INT UNSIGNED NOT NULL DEFAULT 0 COMMENT \"order by position DESC\"',\n\t\t\t\t'created' => 'INT UNSIGNED NOT NULL COMMENT \"unix timestamp - creation time\"',\n\t\t\t\t'modified' => 'INT UNSIGNED NOT NULL COMMENT \"unix timestamp - last entity modified time\"',\n\n\t\t\t\t'UNIQUE key_unique_code (code)',\n\t\t\t),\n\t\t\t'ENGINE=InnoDB DEFAULT CHARACTER SET=utf8 COLLATE=utf8_unicode_ci'\n\t\t);\n\n\t\t$this->insert('{{language}}', array(\n\t\t\t'label' => 'рус',\n\t\t\t'code' => 'ru',\n\t\t\t'locale' => 'ru',\n\t\t));\n\t}", "public function up()\n {\n $this->execute('Update goods SET price_rub = price WHERE currency_id = 1');\n }", "public function up()\n\t{\n $this->dropColumn('calculo','fecha');\n\n //add column fecha in producto\n $this->addColumn('producto','fecha','date');\n\t}", "public function up(){\n Schema::table('entries', function (Blueprint $table) {\n $table->renameColumn('value', 'entry_value');\n });\n }", "public function safeUp() {\n\t$this->createTable('post', array(\n 'id' =>\"int(11) NOT NULL AUTO_INCREMENT\",\n 'created_on' =>\"int(11) NOT NULL\",\n 'title' =>\"varchar(255) NOT NULL\",\n 'context' =>\"text NOT NULL\",\n \"PRIMARY KEY (`id`)\"\n\t),'ENGINE=InnoDB DEFAULT CHARSET=utf8');\n }", "public function getUpSQL()\n {\n return array (\n 'default' => '\n# This is a fix for InnoDB in MySQL >= 4.1.x\n# It \"suspends judgement\" for fkey relationships until are tables are set.\nSET FOREIGN_KEY_CHECKS = 0;\n\nALTER TABLE `department_summary`\n\n CHANGE `twitter_account` `positive_twitter_account` TEXT NOT NULL,\n\n ADD `negative_twitter_account` TEXT NOT NULL AFTER `positive_twitter_account`;\n\nALTER TABLE `tweets`\n\n CHANGE `positive_twitter_account` `twitter_account` TEXT NOT NULL,\n\n DROP `negative_twitter_account`;\n\n# This restores the fkey checks, after having unset them earlier\nSET FOREIGN_KEY_CHECKS = 1;\n',\n);\n }", "public function up()\n {\n $this->db->createCommand($this->DROP_SQL)->execute();\n $this->db->createCommand($this->CREATE_SQL)->execute();\n }", "public function up()\n {\n $this->db->createCommand($this->DROP_SQL)->execute();\n $this->db->createCommand($this->CREATE_SQL)->execute();\n }", "public function safeUp()\n {\n $this->addColumn('{{%organization}}', 'legal_entity', $this->string()->null());\n $this->addColumn('{{%organization}}', 'contact_name', $this->string()->null());\n $this->addColumn('{{%organization}}', 'about', $this->text()->null());\n $this->addColumn('{{%organization}}', 'picture', $this->string()->null());\n }", "public function up()\n {\n $this->table('agent_order_consignee_address')\n ->addColumn(Column::string('order_number')->setUnique()->setComment('订单编号'))\n \t\t->addColumn(Column::integer('agent_id')->setComment('代理商ID'))\n\t ->addColumn(Column::integer('create_time')->setDefault(1)->setComment('创建时间'))\n\t \n\t ->addColumn(Column::string('consignee_name')->setComment('收货人姓名'))\n\t ->addColumn(Column::string('consignee_phone')->setComment('收货人电话'))\n\t ->addColumn(Column::string('province')->setComment('省份'))\n\t ->addColumn(Column::string('city')->setComment('城市'))\n\t ->addColumn(Column::string('area')->setComment('地区'))\n\t ->addColumn(Column::string('address')->setComment('收货人详细地址'))\n ->create(); \n }", "public function up()\n\t{\n\t\t$this->createTable(\n\t\t\t$this->tableName,\n\t\t\tarray(\n\t\t\t\t'l_id' => 'INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT',\n\t\t\t\t'model_id' => 'INT UNSIGNED NOT NULL',\n\t\t\t\t'lang_id' => 'VARCHAR(5) NULL DEFAULT NULL',\n\n\t\t\t\t'l_value' => 'TEXT NULL DEFAULT NULL',\n\n\t\t\t\t'INDEX key_model_id_lang_id (model_id, lang_id)',\n\t\t\t\t'INDEX key_model_id (model_id)',\n\t\t\t\t'INDEX key_lang_id (lang_id)',\n\n\t\t\t\t'CONSTRAINT fk_configuration_lang_model_id_to_main_model_id FOREIGN KEY (model_id) REFERENCES ' . $this->relatedTableName . ' (id) ON DELETE CASCADE ON UPDATE CASCADE',\n\t\t\t\t'CONSTRAINT fk_configuration_lang_lang_id_to_language_id FOREIGN KEY (lang_id) REFERENCES {{language}} (code) ON DELETE RESTRICT ON UPDATE CASCADE',\n\t\t\t),\n\t\t\t'ENGINE=InnoDB DEFAULT CHARACTER SET=utf8 COLLATE=utf8_unicode_ci'\n\t\t);\n\t}", "public function safeUp()\r\n {\r\n $this->up();\r\n }", "public function up(){\n // $table->table('kelas')\n // ->addColumn('Id', 'int', \"11\", false, null, true, true)\n // ->addColumn('NamaKelas', 'varchar', \"100\")\n // ->create();\n }", "public function safeUp()\n\t{\n\t\t$this->createTable('pesquisa', array(\n\t\t\t'id' => 'serial NOT NULL primary key',\n\t\t\t'nome' => 'varchar',\n\t\t));\n\t}", "public function safeUp()\n\t{\n\t\t$this->up();\n\t}", "public function safeUp()\n {\n $this->up();\n }", "public function safeUp()\n {\n $this->up();\n }", "public function up(){\n // $table->table('kelassiswa')\n // ->addColumn('Id', 'int', \"11\", false, null, true, true)\n // ->addColumn('Kelas_Id', 'int', \"11\")\n // ->addColumn('Peserta_Id', 'int', \"11\")\n // ->addForeignKey('Peserta_Id', 'peserta', \"Id\", \"CASCADE\")\n // ->addForeignKey('Kelas_Id', 'kelas', \"Id\")\n // ->create();\n\n }", "public function up()\n\t{\n\t\tSchema::table('project_sections', function($t){\n\t\t\t$t->integer('created_by_project_id')->nullable()->unsigned();\n\t\t\t$t->boolean('public')->default(0);\n\n $t->foreign('created_by_project_id')->references('id')->on('projects')->on_delete('SET NULL');\n\t\t});\n\t}", "public function up(){\n\t\tglobal $wpdb;\n\n\t\t$wpdb->query('ALTER TABLE `btm_tasks` ADD COLUMN `last_run` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER `date_created`;');\n\t}", "public function up()\n {\n Schema::table('user_permissions', function ($table) {\n $table->dropColumn('solder_create');\n });\n\n Schema::table('user_permissions', function ($table) {\n $table->dropColumn('solder_mods');\n });\n\n Schema::table('user_permissions', function ($table) {\n $table->dropColumn('solder_modpacks');\n });\n\n Schema::table('user_permissions', function ($table) {\n $table->boolean('solder_keys')->default(0);\n $table->boolean('solder_clients')->default(0);\n $table->boolean('modpacks_create')->default(0);\n $table->boolean('modpacks_manage')->default(0);\n $table->boolean('modpacks_delete')->default(0);\n });\n }", "public function up()\n {\n Schema::dropIfExists('db_question_new.t_answer_type');\n Schema::create('db_question_new.t_answer_type', function (Blueprint $table){\n $table->increments('id');\n t_field($table->integer('answer_type_no'),\"答案序号\");\n t_field($table->string('name'),\"步骤名字\");\n t_field($table->integer('subject'),\"科目id\");\n t_field($table->integer('open_flag')->default(1),\"开启与否\");\n }); \n }", "public function up()\n\t{\n\t\t$sql = \"create table tbl_rights\n\t\t\t\t(\n\t\t\t\t\titemname varchar(64) not null,\n\t\t\t\t\ttype integer not null,\n\t\t\t\t\tweight integer not null,\n\t\t\t\t\tprimary key (itemname),\n\t\t\t\t\tforeign key (itemname) references tbl_auth_item (name) on delete cascade on update cascade\n\t\t\t\t)\";\n\t\t $this->execute($sql);\n\t\t \n\t}", "public function safeUp()\n\t{\n\t\t$this->createTable( 'tbl_auth_item', array(\n\t\t \"name\" => \"varchar(64) not null\",\n\t\t \"type\" => \"integer not null\",\n\t\t \"description\" => \"text\",\n\t\t \"bizrule\" => \"text\",\n\t\t \"data\" => \"text\",\n\t\t \"primary key (name)\",\n\t\t));\n\n\t\t$this->createTable(\"tbl_auth_item_child\", array(\n \t\t\"parent\" => \" varchar(64) not null\",\n\t\t\"child\" => \" varchar(64) not null\",\n \t\t\"primary key (parent,child)\",\n\t\t));\n\n\t\t$this->createTable(\"tbl_auth_assignment\",array(\n \t\t\"itemname\" => \"varchar(64) not null\",\n \t\t\"userid\" => \"varchar(64) not null\",\n \t\t\"bizrule\" => \"text\",\n \t\t\"data\"\t => \"text\",\n \t\t\"primary key (itemname,userid)\",\n\t\t));\n\n\t\t$this->addForeignKey('fk_auth_item_child_parent','tbl_auth_item_child','parent','tbl_auth_item','name','CASCADE','CASCADE');\n\t\t$this->addForeignKey('fk_auth_assignment_itemname','tbl_auth_assignment','itemname','tbl_auth_item','name');\n\t\t$this->addForeignKey('fk_auth_assignment_userid','tbl_auth_assignment','userid','tbl_user','id');\n\t}", "public function up()\n {\n // add foreign key for table `articles`\n $this->addForeignKey(\n 'fk-comments-article_id',\n 'comments',\n 'article_id',\n 'article',\n 'id'\n );\n }", "public function safeUp()\r\n\t{\r\n\t\t$this->up();\r\n\t}", "public function up()\n {\n\n $tableOptions = null;\n if ($this->db->driverName === 'mysql') {\n $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB';\n }\n\n $this->createTable($this->createTableName, [\n 'id' => $this->primaryKey(),\n 'name' => $this->string()->notNull(),\n 'type' => $this->integer(1)->notNull(),\n 'location' => $this->text()->defaultValue(null),\n 'description' => $this->text()->defaultValue(null),\n 'created_by' => $this->integer()->notNull(),\n 'start_at' => $this->integer()->defaultValue(null),\n 'active' => $this->boolean()->defaultValue(true),\n\n ],$tableOptions);\n\n\n $this->addColumn($this->updateTableNameHoliday, $this->addColumnOne, $this->integer()->notNull()->after('name'));\n $this->addColumn($this->updateTableNameHoliday, $this->addColumnTwo, $this->integer()->notNull()->after($this->addColumnOne));\n $this->addColumn($this->updateTableNameHolidayConfig, $this->addColumnOne, $this->integer()->notNull()->after('name'));\n $this->addColumn($this->updateTableNameHolidayConfig, $this->addColumnTwo, $this->integer()->notNull()->after($this->addColumnOne));\n\n $moduleInvite = Module::findOne(['name' => 'Actioncalendar', 'slug' => 'actioncalendar']);\n if(empty($moduleInvite)) {\n $this->batchInsert('{{%module}}', ['parent_id', 'name', 'slug', 'visible', 'sorting'], [\n [null, 'Actioncalendar', 'actioncalendar', 1, 22],\n ]);\n }\n\n }", "public function up()\n\t{\n\t\tSchema::table('user_hasil', function($table)\n\t\t{\n\t\t\t$table->create();\n\t\t\t$table->integer('user_id');\n\t\t\t$table->string('grade', 2);\n\t\t\t$table->decimal('hasil', 5, 2);\n\t\t\t$table->year('tahun');\n\t\t\t$table->timestamps();\n\n\t\t\t$table->foreign('user_id')->references('id')->on('users')->on_update('cascade');\n\t\t});\n\t}", "public function safeUp()\r\n {\r\n $tableOptions = null;\r\n if ($this->db->driverName === 'mysql') {\r\n $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB';\r\n }\r\n\r\n $this->createTable('{{%contact_msg}}', [\r\n 'id' => Schema::TYPE_PK,\r\n 'from_email' => Schema::TYPE_STRING . \"(320) NOT NULL\",\r\n 'to_email' => Schema::TYPE_STRING . \"(320) NULL\",\r\n 'subject' => Schema::TYPE_STRING . \"(300) NOT NULL\",\r\n 'text' => Schema::TYPE_TEXT,\r\n 'viewed' => Schema::TYPE_BOOLEAN . \"(1) NOT NULL DEFAULT '0'\",\r\n 'created_at' => Schema::TYPE_TIMESTAMP . \" NULL\",\r\n 'updated_at' => Schema::TYPE_TIMESTAMP . \" NULL\",\r\n ], $tableOptions);\r\n }", "public function up()\n {\n $this->alterColumn('{{%hystorical_data}}', 'project_id', $this->integer());\n\n $this->dropForeignKey('fk-hystorical_data-project_id',\n '{{%hystorical_data}}');\n\n $this->addForeignKey(\n 'fk-hystorical_data-project_id',\n '{{%hystorical_data}}',\n 'project_id',\n '{{%projects}}',\n 'id',\n 'SET NULL'\n );\n }", "public function up()\n\t{\n\t\tSchema::create('flows_steps', function($table) {\n\n\t\t\t$table->engine = 'InnoDB';\n\n\t\t $table->increments('stepid');\n\t\t $table->integer('flowid');\n\t\t $table->string('step', 100);\n\t\t $table->integer('roleid');\n\t\t $table->integer('parentid');\n\t\t $table->integer('state');\n\t\t $table->integer('page');\n\t\t $table->integer('condition2');\n\t\t $table->timestamps();\n\n\t\t});\n\t}", "public function safeUp()\n {\n $this->createTable('site_phrase', array(\n 'site_id' => self::MYSQL_TYPE_UINT,\n 'phrase' => 'string NOT NULL',\n 'hash' => 'varchar(32)',\n 'price' => 'decimal(10,2) NOT NULL',\n 'active' => self::MYSQL_TYPE_BOOLEAN,\n ));\n\n $this->addForeignKey('site_phrase_site_id', 'site_phrase', 'site_id', 'site', 'id', 'CASCADE', 'RESTRICT');\n }", "public function up()\n\t{\n\t\tSchema::table('devices', function($table)\n\t\t{\n\t\t\t$table->string('uuid')->unique;\n\t\t\t$table->drop_column('uid');\n\t\t});\n\t}", "public function up()\n\t{\n\t\t$this->execute(\"\n INSERT INTO `authitem` VALUES('D2finv.FiitInvoiceItem.*', 0, 'Edit invoice items', NULL, 'N;');\n INSERT INTO `authitem` VALUES('D2finv.FiitInvoiceItem.View', 0, 'View invoice items', NULL, 'N;');\n INSERT INTO `authitem` VALUES('D2finv.FinvInvoice.*', 0, 'Edit invoice records', NULL, 'N;');\n INSERT INTO `authitem` VALUES('D2finv.FinvInvoice.View', 0, 'View invoice records', NULL, 'N;');\n \n INSERT INTO `authitem` VALUES('InvoiceEdit', 2, 'Edit invoice records', NULL, 'N;');\n INSERT INTO `authitem` VALUES('InvoiceView', 2, 'View invoice records', NULL, 'N;');\n \n INSERT INTO `authitemchild` VALUES('InvoiceEdit', 'D2finv.FiitInvoiceItem.*');\n INSERT INTO `authitemchild` VALUES('InvoiceView', 'D2finv.FiitInvoiceItem.View');\n INSERT INTO `authitemchild` VALUES('InvoiceEdit', 'D2finv.FinvInvoice.*');\n INSERT INTO `authitemchild` VALUES('InvoiceView', 'D2finv.FinvInvoice.View');\n \");\n\t}", "public function up()\n {\n $this->createTable('post',[\n 'id' => $this->primaryKey(),\n 'author_id' => $this->integer(),\n 'title' => $this->string(255)->notNull()->unique(),\n 'content' => $this->text(),\n 'published_at' => $this->dateTime()->defaultExpression('CURRENT_TIMESTAMP'),\n 'updated_at' => $this->dateTime()->defaultExpression('CURRENT_TIMESTAMP'),\n 'status' => \"ENUM('draft','published')\",\n 'image' => $this->string(255)\n ]); \n\n $this->addForeignKey(\n 'fk_post_author_id',\n 'post',\n 'author_id',\n 'user',\n 'id',\n 'CASCADE',\n 'NO ACTION'\n );\n }", "public function up()\n\t{\n// $import->import();\n\t}", "public function up()\n\t{\n\t\tif(Yii::app()->db->getSchema()->getTable(\"{{rights}}\")){\n\t\t\t$this->dropTable(\"authItem\");\n\t\t}\n\n\t\t$this->createTable(\"{{rights}}\", array(\n\t\t\t\"itemname\" => \"varchar(64) CHARACTER SET UTF8 NOT NULL\",\n\t\t\t\"type\"\t => \"int not null\",\n\t\t\t\"weight\" => \"int not null\",\n\t\t\t\"PRIMARY KEY (itemname)\"\n\t\t\t));\n\t}", "public function up() {\r\n\t\t// UP\r\n\t\t$column = parent::Column();\r\n\t\t$column->setName('id')\r\n\t\t\t\t->setType('biginteger')\r\n\t\t\t\t->setIdentity(true);\r\n\t\tif (!$this->hasTable('propertystorage')) {\r\n\t\t\t$this->table('propertystorage', [\r\n\t\t\t\t\t\t'id' => false,\r\n\t\t\t\t\t\t'primary_key' => 'id'\r\n\t\t\t\t\t])->addColumn($column)\r\n\t\t\t\t\t->addColumn('path', 'text', ['limit' => 1024])\r\n\t\t\t\t\t->addColumn('name', 'text', ['limit' => 100])\r\n\t\t\t\t\t->addColumn('valuetype', 'integer',[])\r\n\t\t\t\t\t->addColumn('value', 'text', [])\r\n\t\t\t\t\t->create();\r\n\t\t}\r\n\t}", "public function up()\n {\n $perfis = [\n [\n 'id' => 1,\n 'perfil' => 'Genérico',\n 'ativo' => 1\n ]\n ];\n\n $this->insert('singular_perfil', $perfis);\n\n $usuarios = [\n [\n 'id' => 1,\n 'nome' => 'Singular Framework',\n 'login' => 'singular',\n 'senha' => 'singular',\n 'perfil_id' => 1\n ]\n ];\n\n $this->insert('singular_usuario', $usuarios);\n }", "public function safeUp()\n {\n $this->createTable('user', array(\n 'name' => 'string',\n 'username' => 'string NOT NULL',\n 'password' => 'VARCHAR(32) NOT NULL',\n 'salt' => 'VARCHAR(32) NOT NULL',\n 'role' => \"ENUM('partner', 'admin')\"\n ));\n }", "public function up()\n\t{\n\t\t$demoUser = new User();\n\t\t$demoUser->username = \"demo\";\n\t\t$demoUser->email = 'demo@saphate.com';\n\t\t$demoUser->password = 'password';\n\t\t$demoUser->create_time = new CDbExpression('NOW()');\n\t\t$demoUser->update_time = new CDbExpression('NOW()');\n\n\t\t$demoUser->save();\n\n\t\t$adminUser = new User();\n\t\t$adminUser->username = \"admin\";\n\t\t$adminUser->email = 'admin@saphate.com';\n\t\t$adminUser->password = 'password';\n\t\t$adminUser->create_time = new CDbExpression('NOW()');\n\t\t$adminUser->update_time = new CDbExpression('NOW()');\n\n\t\t$adminUser->save();\n\n\t}", "public function safeUp()\n {\n $tables = Yii::$app->db->schema->getTableNames();\n $dbType = $this->db->driverName;\n $tableOptions_mysql = \"CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB\";\n\n /* MYSQL */\n if (!in_array('question_tag', $tables)) {\n if ($dbType == \"mysql\") {\n $this->createTable('{{%question_tag}}', [\n 'question_id' => 'INT(11) NOT NULL',\n 'tag_id' => 'INT(11) NOT NULL',\n ], $tableOptions_mysql);\n }\n }\n }", "public function safeUp()\n\t{\n\t\t$this->createTable(\n\t\t\t'like',\n\t\t\tarray(\n\t\t\t\t'id'=>'int(11) UNSIGNED NOT NULL AUTO_INCREMENT',\n\t\t\t\t'user_id' => 'int(11) UNSIGNED NOT NULL',\n\t\t\t\t'post_id' => 'int (11) NOT NULL',\n\t\t\t\t'status' => 'TINYINT(1)',\n\t\t\t\t'created_at' => 'int(11)',\n\t\t\t\t'updated_at' => 'int(11)',\n\t\t\t\t'PRIMARY KEY (id)',\n\t\t\t\t),\n\t\t\t'ENGINE=InnoDB'\n\n\t\t\t);\n\t}", "public function up()\n\t{\n\t\tSchema::table('entries', function($table) {\n $table->create();\n $table->increments('id');\n $table->string('title', 128);\n $table->string('body');\n $table->integer('users_id')->unsigned();\n $table->index('users_id');\n $table->integer('last_edited_by');\n $table->foreign('users_id')->references('id')->on('users')->on_delete('no action');\n $table->timestamps();\n });\n\t}", "public function up()\n {\n $this->alterColumn(\\app\\models\\EmailImportLead::tableName(), 'password', $this->string()->null());\n $this->alterColumn(\\app\\models\\EmailImportLead::tableName(), 'status', $this->integer()->null());\n }", "public function up()\n {\n\t\t$tableOptions = null;\n if ($this->db->driverName === 'mysql') {\n $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB';\n }\n\t\t\n\t\t$TABLE_NAME = 'HaberDeneme12';\n $this->createTable($TABLE_NAME, [\n 'HaberID' => $this->integer(10)->notNull(),\n 'Kategori' => $this->string(12)->notNull(),\n 'Baslik' => $this->string(128)->notNull(),\n 'Ozet' => $this->text()->notNull(),\n 'Detay' => $this->text()->notNull(),\n 'Resim' => $this->text()->notNull(),\n 'EklenmeTarihi' => $this->date(),\n 'GuncellenmeTarihi' => $this->date()\n ], $tableOptions);\n\t\t\n\t\t\n\t\t$TABLE_NAME = 'HaberKategoriDeneme12';\n\t\t $this->createTable($TABLE_NAME, [\n 'KategoriID' => $this->integer(10)->notNull(),\n 'Kategori' => $this->string(20)->notNull()\n ], $tableOptions);\n\t\t\n }", "public function up()\n\t{\n\t\t$fields = array(\n \"`piezas` DECIMAL(3,2) DEFAULT NULL\",\n\n\t\t);\n\t\t$this->dbforge->add_column('rel_monto_servicios', $fields);\n\n\t}", "public function up()\n {\n $this->insert('key_value', [\n 'key' => 'day_feed_count_dnr',\n 'value' => '15',\n ]);\n }", "public function up()\n {\n // 创建操作记录表\n $tables = $this->table('history');\n // 用户动作\n $tables->addColumn('action', 'string', ['limit' => 20])\n ->addColumn('ip', 'string', ['limit' => 129])\n // 建立用户\n ->addColumn('user_id', 'integer')\n // 登录时间\n ->addColumn('operation_time', 'datetime')\n // 操作详情\n ->addColumn('desc', 'string',['limit'=>500,'null' => true])\n ->create();\n }", "public function up()\n {\n $table = $this->table('vehicle_model_suggestions');\n\n if (!$table->exists()) {\n $table\n ->addPrimaryKey('id')\n ->addColumn('vehicle_id', 'integer', ['null' => false])\n ->addColumn('vehicle_model_id', 'integer', ['null' => false])\n ->addColumn('suggestion', 'text')\n ->addTimestamps()\n ->addColumn('deleted_at', 'datetime')\n ->create();\n }\n }", "public function safeUp()\n {\n $this->insert('category',['name'=>'Uncategorized', 'slug'=>'uncategorized', 'description'=>'Default Category', 'created_at'=> new Expression('NOW()'),\n 'updated_at'=> new Expression('NOW()')]);\n $this->insert('user',['username'=>'Administrator', 'password_hash'=>'$2y$13$6yoLjvVORp/7EO1u8phYTuWYzhMSM4LVVsebZgcqEKj/EQLvo5nJK',\n 'email'=>'animesh@automitra.com',\n 'created_at'=> new Expression('NOW()'),\n 'updated_at'=> new Expression('NOW()'),\n 'status'=>1\n ]\n );\n }", "public function safeUp()\n {\n $this->createTable($this->tableName, [\n 'post_id' => $this->bigInteger()->notNull(),\n 'category_id' => $this->bigInteger()->notNull(),\n ]);\n\n $this->addForeignKey('post_category_post_id_fk', $this->tableName, 'post_id', '{{%post}}', 'id', 'CASCADE', 'CASCADE');\n $this->addForeignKey('post_category_category_id_fk', $this->tableName, 'category_id', '{{%category}}', 'id', 'CASCADE', 'CASCADE');\n }", "public function up()\n {\n Schema::table('categories', function(Blueprint $table)\n {\n $table->integer('parent_id', false, true)->nullable()->after('cat_order');\n });\n }", "public function safeUp()\n\t{\n\t\t$this->createTable(\n\t\t\t$this->tableName,\n\t\t\tarray(\n\t\t\t\t'id' => 'INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT',\n\n\t\t\t\t'application_id' => 'VARCHAR(32) NOT NULL DEFAULT \"\" COMMENT \"Ид приложения\"',\n\n\t\t\t\t'message' => 'TEXT NOT NULL DEFAULT \"\" COMMENT \"Оригинал\"',\n\t\t\t\t'category' => 'VARCHAR(32) NOT NULL DEFAULT \"\" COMMENT \"Категория\"',\n\t\t\t\t'language' => 'VARCHAR(5) NOT NULL DEFAULT \"\" COMMENT \"Язык\"',\n\t\t\t),\n\t\t\t'ENGINE=InnoDB DEFAULT CHARACTER SET=utf8 COLLATE=utf8_unicode_ci'\n\t\t);\n\t}", "public function up()\n\t{\n\t\t//\n\t\tSchema::create('options',function($table){\n\t\t\t$table->increments('id');\n\t\t\t$table->boolean('activate_pn');\n\t\t\t$table->string('basic_name');\n\t\t\t$table->string('basic_pass');\n\t\t\t$table->timestamps();\n\t\t});\n\n\t\t$o = new Option;\n\t\t$o->activate_pn = 0;\n\t\t$o->save();\n\t}", "public function up() {\n\t\t$this->dbforge->add_field(array(\n\t\t\t'id' => array(\n\t\t\t\t'type' => 'INT',\n\t\t\t\t'constraint' => '10',\n\t\t\t\t'unsigned' => TRUE,\n\t\t\t\t'auto_increment' => TRUE\n\t\t\t),\n\t\t\t'name' => array(\n\t\t\t\t'type' => 'VARCHAR',\n\t\t\t\t'constraint' => '100',\n\t\t\t),\n\t\t\t'path' => array(\n\t\t\t\t'type' => 'VARCHAR',\n\t\t\t\t'constraint' => '100',\n\t\t\t)\n\t\t));\n\t\t$this->dbforge->add_key('id', TRUE);\n\t\t$this->dbforge->add_key('path');\n\t\t$this->dbforge->create_table('categories');\n\n\t\t// Table structure for table 'event_categories'\n\t\t$this->dbforge->add_field(array(\n\t\t\t'event_id' => array(\n\t\t\t\t'type' => 'INT',\n\t\t\t\t'constraint' => '10',\n\t\t\t),\n\t\t\t'category_id' => array(\n\t\t\t\t'type' => 'INT',\n\t\t\t\t'constraint' => '10',\n\t\t\t\t'unsigned' => TRUE,\n\t\t\t),\n\t\t));\n\t\t$this->dbforge->add_key('event_id', TRUE);\n\t\t$this->dbforge->add_key('category_id', TRUE);\n\t\t$this->dbforge->create_table('event_categories');\n\t}", "public function up()\n\t{\n Laravel\\Database\\Schema::create(\"orbs\", function($table){\n $table->increments(\"id\");\n $table->string(\"name\");\n $table->string(\"description\");\n $table->integer(\"coins\");\n $table->integer(\"points\");\n $table->integer(\"min_level\");\n $table->integer(\"max_level\");\n $table->integer(\"owner_character\");\n $table->integer(\"acquisition_time\");\n $table->integer(\"last_attacker\");\n $table->integer(\"last_attack_time\");\n $table->string(\"image\");\n });\n\t}" ]
[ "0.80062366", "0.79145443", "0.79145443", "0.79145443", "0.7572342", "0.756089", "0.75283176", "0.7498379", "0.7493237", "0.7453656", "0.74463314", "0.7433381", "0.74307704", "0.7427088", "0.741794", "0.73779047", "0.7374933", "0.7370453", "0.73637444", "0.73505706", "0.7329024", "0.7313519", "0.7298817", "0.72950184", "0.72917736", "0.7291469", "0.72913444", "0.72849613", "0.72839737", "0.7272078", "0.7271878", "0.72659117", "0.7262893", "0.7261672", "0.7256839", "0.72505474", "0.7249633", "0.72441125", "0.724062", "0.72376186", "0.7218244", "0.72177947", "0.72046006", "0.7203395", "0.7196059", "0.7191219", "0.7189963", "0.7177052", "0.71761394", "0.7167738", "0.7164105", "0.7164105", "0.7159096", "0.7147647", "0.7136521", "0.7129768", "0.7124664", "0.7123368", "0.71168584", "0.7104628", "0.7104628", "0.7104618", "0.7097006", "0.70931643", "0.70886755", "0.7087018", "0.7086326", "0.70830804", "0.70829463", "0.70780045", "0.70702124", "0.70690626", "0.7066111", "0.7062268", "0.7058938", "0.705882", "0.70556235", "0.70549136", "0.7054758", "0.70498437", "0.70483595", "0.7047308", "0.7045881", "0.70445794", "0.7043173", "0.703882", "0.7038126", "0.703674", "0.7033728", "0.7032356", "0.7031423", "0.70257956", "0.70142514", "0.70101255", "0.7006208", "0.6988486", "0.6984963", "0.69629973", "0.69612974", "0.69587934", "0.6957519" ]
0.0
-1
this down() migration is autogenerated, please modify it to your needs
public function down(Schema $schema) : void { $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); $this->addSql('ALTER TABLE pedigree_animal DROP relativePopularity'); $this->addSql('ALTER TABLE pedigree_animal_kinship DROP FOREIGN KEY FK_B0B5D0051054AA12'); $this->addSql('DROP INDEX IDX_B0B5D0051054AA12 ON pedigree_animal_kinship'); $this->addSql('ALTER TABLE pedigree_animal_kinship DROP ancestorId'); $this->addSql('ALTER VIEW pedigree_animal_statistics AS SELECT x.id AS animalId, c.covariance - 1 AS inbreedingCoefficient, AVG(COALESCE(a.covariance,b.covariance,0)) AS averageCovariance FROM pedigree_animal x JOIN pedigree_animal y LEFT JOIN pedigree_animal_kinship a ON (a.animal1Id = x.id AND a.animal2Id = y.id) LEFT JOIN pedigree_animal_kinship b ON (b.animal1Id = y.id AND b.animal2Id = x.id) LEFT JOIN pedigree_animal_kinship c ON (c.animal1Id = x.id AND c.animal2Id = x.id) GROUP BY x.id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function down()\n {\n //add your migration here \n }", "public function down()\n {\n //add your migration here\n }", "public function down()\n\t{\n $this->dropColumn('producto','fecha');\n\n //add column fecha in producto\n $this->addColumn('calculo','fecha','date');\n\t}", "public function down()\n {\n \t\n \t$this->createTable('os', [\n \t\t\t'id' => Schema::TYPE_PK,\n \t\t\t'name' => Schema::TYPE_STRING . ' NOT NULL',\n \t\t\t]);\n \t$this->insert('os', ['id' => 1, 'name' => 'Any']);\n \t$this->insert('os', ['id' => 2, 'name' => 'CentOS']);\n \t$this->insert('os', ['id' => 3, 'name' => 'RHEL']);\n \t$this->insert('os', ['id' => 4, 'name' => 'Fedora']);\n \t \n \t$this->createTable('os_bit', [\n \t\t\t'id' => Schema::TYPE_PK,\n \t\t\t'name' => Schema::TYPE_STRING . ' NOT NULL',\n \t\t\t]);\n\n return false;\n }", "public function down()\n {\n //Schema::dropIfExists('c');//回滚时执行\n\n }", "public function down()\n {\n $this->dbforge->drop_column('user', 'created_at');\n }", "public function down()\n {\n $this->dropForeignKey(\n 'fk-video-blog_id',\n 'video'\n );\n\n\n echo \"m160820_150846_video_create reverted.\\n\";\n\n }", "public function down()\n\t{\nDB::query(\n\"drop table haal;\");\nDB::query(\n\"drop table kandidaat;\");\nDB::query(\n\"drop table haaletaja;\");\nDB::query(\n\"drop table partei;\");\nDB::query(\n\"drop table valimisringkond;\");\n\t}", "public function down()\n\t{\n\t\t// Remove data from committee_members\n\t\tDB::table('committee_members')->where('id', '<', 3)->delete();\t\n\t}", "public function down(){\n $this->dropTable('users');\n }", "public function getDownSQL()\n {\n return array (\n 'default' => '\n# This is a fix for InnoDB in MySQL >= 4.1.x\n# It \"suspends judgement\" for fkey relationships until are tables are set.\nSET FOREIGN_KEY_CHECKS = 0;\n\nALTER TABLE `department_summary`\n\n CHANGE `positive_twitter_account` `twitter_account` TEXT NOT NULL,\n\n DROP `negative_twitter_account`;\n\nALTER TABLE `tweets`\n\n CHANGE `twitter_account` `positive_twitter_account` TEXT NOT NULL,\n\n ADD `negative_twitter_account` INTEGER NOT NULL AFTER `quality_tweet`;\n\n# This restores the fkey checks, after having unset them earlier\nSET FOREIGN_KEY_CHECKS = 1;\n',\n);\n }", "public function down()\n {\n Schema::table('attachments', function(Blueprint $table) {\n\n $table->dropColumn('viewable_id');\n $table->dropColumn('viewable_type');\n\n\n });\n }", "public function down()\n\t{\n\t\t//Schema::drop('purchase_order_details');\n\t}", "public function getDownSQL()\r\n {\r\n return array (\n 'propel' => '\r\n# This is a fix for InnoDB in MySQL >= 4.1.x\r\n# It \"suspends judgement\" for fkey relationships until are tables are set.\r\nSET FOREIGN_KEY_CHECKS = 0;\r\n\r\nDROP TABLE IF EXISTS `movimiento`;\r\n\r\n# This restores the fkey checks, after having unset them earlier\r\nSET FOREIGN_KEY_CHECKS = 1;\r\n',\n);\r\n }", "public function down()\n\t{\n//\t\t$this->dbforge->drop_table('blog');\n\n//\t\t// Dropping a Column From a Table\n\t\t$this->dbforge->drop_column('categories', 'icon');\n\t}", "public function down()\n\t{\n\t\t// nothing to do here.\n\t}", "public function down(){\r\n $this->dbforge->drop_table('users'); //eliminacion de la tabla users\r\n }", "public function down()\n\t{\n\t\tSchema::drop('student');\n\t\t//\n\t}", "public function down()\n{\n\nSchema::drop('event_user');\nSchema::drop('events');\nSchema::drop('file');\nSchema::drop('file_ref');\nSchema::drop('groups');\nSchema::drop('project_user');\nSchema::drop('projects');\nSchema::drop('quicknote');\nSchema::drop('subtasks');\nSchema::drop('task_user');\nSchema::drop('tasks');\nSchema::drop('throttle');\nSchema::drop('timesheet');\nSchema::drop('todos');\nSchema::drop('user_profile');\nSchema::drop('users');\nSchema::drop('users_groups');\nSchema::drop('users_groups');\nSchema::drop('users_groups');\nSchema::drop('users_groups');\nSchema::drop('users_groups');\nSchema::drop('users_groups');\nSchema::drop('users_groups');\nSchema::drop('users_groups');\nSchema::drop('users_groups');\n\n}", "public function down() \n {\n \n }", "public function down()\n\t{\n\t}", "public function down()\n\t{\n\t}", "public function down()\n {\n $this->table('contents')->drop()->save();\n }", "public function down()\n\t{\n\t\t//\n\t}", "public function down()\n\t{\n\t\t//\n\t}", "public function down()\n\t{\n\t\t//\n\t}", "public function down()\n\t{\n\t\tSchema::drop('education');\n\t}", "public function down()\n\t{\n\t\tSchema::drop('l_wardrobe_table');\n\t}", "public function down()\n\t{\n\t\techo $this->migration('down');\n\n\t\tci('o_role_model')->migration_remove($this->hash());\n\t\t\n\t\treturn true;\n\t}", "public function safeDown()\n\t{\n $sql=\" ALTER TABLE `tbl_venta` DROP `punto_venta_id` ;\";\n $this->execute($sql);\n //quitando la columna pto_venta de tbl_empleado\n $sql=\" ALTER TABLE `tbl_empleado` DROP `punto_venta_id` ;\";\n $this->execute($sql);\n\t}", "public function down()\n {\n\tSchema::drop('quizzes');\n }", "public function down()\n {\n $this->output->writeln('Down migration is not available.');\n }", "public function down()\n {\n $this->executeSQL('SET FOREIGN_KEY_CHECKS=0');\n\n $this->executeSQL('DROP TABLE link');\n $this->executeSQL('DROP TABLE link_category');\n\n $this->executeSQL('SET FOREIGN_KEY_CHECKS=1');\n }", "public function down ()\n {\n }", "abstract public function down();", "abstract public function down();", "abstract public function down();", "public function down()\n {\n // This migration was removed, but fails when uninstalling plugin\n }", "public function down()\r\n {\r\n $this->dbforge->drop_table('users');\r\n }", "public function down() {\n\n\t}", "public function down()\n {\n $this->dbforge->drop_table('lecturer', true);\n }", "public function down()\n\t{\n\t\tSchema::drop('flows_steps');\n\t}", "public function down(Schema $schema) : void\n {\n $this->addSql('CREATE TABLE galaxiee (id INT AUTO_INCREMENT NOT NULL, idu_id INT NOT NULL, nom VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, INDEX IDX_8576D2AF376A6230 (idu_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \\'\\' ');\n $this->addSql('CREATE TABLE trou_noir (id INT AUTO_INCREMENT NOT NULL, id_g_id INT DEFAULT NULL, nom VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, INDEX IDX_AB27242D95951086 (id_g_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \\'\\' ');\n $this->addSql('ALTER TABLE galaxiee ADD CONSTRAINT FK_8576D2AF376A6230 FOREIGN KEY (idu_id) REFERENCES univers (id)');\n $this->addSql('ALTER TABLE trou_noir ADD CONSTRAINT FK_AB27242D95951086 FOREIGN KEY (id_g_id) REFERENCES galaxie (id)');\n $this->addSql('DROP TABLE trounoir');\n $this->addSql('ALTER TABLE galaxie DROP FOREIGN KEY FK_1C880711376A6230');\n $this->addSql('DROP INDEX IDX_1C880711376A6230 ON galaxie');\n $this->addSql('ALTER TABLE galaxie CHANGE idu_id id_u_id INT NOT NULL');\n $this->addSql('ALTER TABLE galaxie ADD CONSTRAINT FK_1C8807116F858F92 FOREIGN KEY (id_u_id) REFERENCES univers (id)');\n $this->addSql('CREATE INDEX IDX_1C8807116F858F92 ON galaxie (id_u_id)');\n $this->addSql('ALTER TABLE planete DROP FOREIGN KEY FK_490E3E5712013DEC');\n $this->addSql('DROP INDEX IDX_490E3E5712013DEC ON planete');\n $this->addSql('ALTER TABLE planete ADD id_s_id INT NOT NULL, ADD nb_sattelite INT NOT NULL, DROP ids_id, DROP nb_satelite');\n $this->addSql('ALTER TABLE planete ADD CONSTRAINT FK_490E3E574AEED04E FOREIGN KEY (id_s_id) REFERENCES systeme (id)');\n $this->addSql('CREATE INDEX IDX_490E3E574AEED04E ON planete (id_s_id)');\n $this->addSql('ALTER TABLE systeme DROP FOREIGN KEY FK_95796DE3CD7AFD24');\n $this->addSql('DROP INDEX IDX_95796DE3CD7AFD24 ON systeme');\n $this->addSql('ALTER TABLE systeme CHANGE idg_id id_g_id INT NOT NULL');\n $this->addSql('ALTER TABLE systeme ADD CONSTRAINT FK_95796DE395951086 FOREIGN KEY (id_g_id) REFERENCES galaxie (id)');\n $this->addSql('CREATE INDEX IDX_95796DE395951086 ON systeme (id_g_id)');\n }", "public function down() {\n $this->dbforge->drop_column('timesheets_items', 'orgID', TRUE);\n $this->dbforge->drop_column('timesheets_items', 'brandID', TRUE);\n $this->dbforge->drop_column('timesheets_items', 'reason_desc', TRUE);\n $this->dbforge->drop_column('timesheets_expenses', 'orgID', TRUE);\n $this->dbforge->drop_column('timesheets_expenses', 'brandID', TRUE);\n $this->dbforge->drop_column('timesheets_expenses', 'reason_desc', TRUE);\n\n // change reason to note\n $fields = array(\n 'reason' => array(\n 'name' => 'note',\n 'type' => \"VARCHAR\",\n 'constraint' => 200,\n 'null' => TRUE\n )\n );\n $this->dbforge->modify_column('timesheets_items', $fields);\n $this->dbforge->modify_column('timesheets_expenses', $fields);\n }", "public function down(): void\n {\n // Remove your data\n }", "public function down()\n\t{\n\t\t//Schema::drop('purchase_orders');\n\t\t//Schema::drop('purchase_order_details');\n\t}", "public function down()\n {\n\tSchema::drop('activities');\n }", "public function down(){\n $this->dbforge->drop_table('subcategories_news'); //eliminacion de la tabla subcategories_news\n }", "public function down()\n {\n }", "public function down()\n {\n }", "public function down()\n {\n //return false;\n\t\t\n\t\t$TABLE_NAME = 'Haber';\n $this->dropTable($TABLE_NAME);\n\t\t\n\t\t$TABLE_NAME = 'HaberKategori';\n $this->dropTable($TABLE_NAME);\n }", "public function down()\n\t{\n\t\tDB::table('professor')->where('professor_id', '=', 1)->delete();\n\t\tDB::table('professor')->where('professor_id', '=', 2)->delete();\n\t\tDB::query('ALTER TABLE professor AUTO_INCREMENT = 1');\n\n\t\t//\n\t}", "public function down(): bool {\n\t\t// Remove & add logic to revert the migration here.\n\t\techo \"M230123030315BaseTables cannot be rolled back.\\n\";\n\t\treturn false;\n\t}", "public function getDownSQL()\r\n {\r\n return array (\n 'propel' => '\r\n# This is a fix for InnoDB in MySQL >= 4.1.x\r\n# It \"suspends judgement\" for fkey relationships until are tables are set.\r\nSET FOREIGN_KEY_CHECKS = 0;\r\n\r\nALTER TABLE `promocion` CHANGE `fecha_inicio` `fecha_inicio` DATE NOT NULL;\r\n\r\nALTER TABLE `promocion` CHANGE `fecha_fin` `fecha_fin` DATE NOT NULL;\r\n\r\nALTER TABLE `promocion` CHANGE `descuento` `descuento` DECIMAL;\r\n\r\nALTER TABLE `promocion`\r\n ADD `descripcion` VARCHAR(70) AFTER `id`,\r\n ADD `estado` VARCHAR(11) AFTER `fecha_fin`,\r\n ADD `promocion_global` TINYINT(1) NOT NULL AFTER `descuento`;\r\n\r\nALTER TABLE `promocion` DROP `activo`;\r\n\r\n# This restores the fkey checks, after having unset them earlier\r\nSET FOREIGN_KEY_CHECKS = 1;\r\n',\n);\r\n }", "public function down()\n\t{\n\t\t//return false;\n\t}", "public function down(): void\n {\n try {\n $this->db->ForeignKeyChecks(false);\n $statement=$this->db->prepare(\"DROP TABLE IF EXISTS prom2_pages\");\n $statement->execute();\n $statement->close();\n $this->db->ForeignKeyChecks(true);\n } catch (\\mysqli_sql_exception $exception) {\n throw $exception;\n }\n }", "public function down()\n\t{\n\t\t//\n\t\tSchema::drop('options');\n\t}", "public function change()\n {\n $this->schema->table('recurring_expenses',function($table){\n $table->date('end_repeat')->nullable();\n $table->boolean('ended')->default(false);\n $table->enum('repeat',['0','1','7','14','30','365'])->nullable();\n });\n\n $this->schema->table('expenses',function($table){\n $table->dropColumn('end_repeat');\n $table->dropColumn('repeat');\n $table->integer('parent_id')->nullable();\n $table->foreign('parent_id')->references('id')->on('expenses')->onDelete('cascade');\n });\n }", "public function down()\n {\n Schema::table('users', function (Blueprint $table) {\n $table->dropForeign('users_id_turma_foreign');\n });\n\n Schema::table('contato', function (Blueprint $table) {\n $table->dropForeign('contato_id_usuario_foreign');\n });\n\n Schema::table('monitores', function (Blueprint $table) {\n $table->dropForeign('monitores_id_turma_foreign');\n $table->dropForeign('monitores_id_usuario_foreign');\n });\n\n Schema::table('galeria_portifolio', function (Blueprint $table) {\n $table->dropForeign('galeria_portifolio_id_portifolio_foreign');\n });\n\n Schema::table('portifolio_alunos', function (Blueprint $table) {\n $table->dropForeign('portifolio_alunos_id_portifolio_foreign');\n $table->dropForeign('portifolio_alunos_id_usuario_foreign');\n });\n\n Schema::table('cobranca', function (Blueprint $table) {\n $table->dropForeign('cobranca_id_aluno_foreign');\n });\n\n Schema::table('lista_de_presenca', function (Blueprint $table) {\n $table->dropForeign('lista_de_presenca_id_usuario_foreign');\n });\n\n Schema::table('forum_da_turma', function (Blueprint $table) {\n $table->dropForeign('forum_da_turma_id_usuario_foreign');\n });\n\n Schema::table('posts_do_site', function (Blueprint $table) {\n $table->dropForeign('posts_do_site_id_usuario_foreign');\n });\n\n Schema::table('posts_do_forum', function (Blueprint $table) {\n $table->dropForeign('posts_do_forum_id_topico_foreign');\n $table->dropForeign('posts_do_forum_id_usuario_foreign');\n });\n }", "public function down()\n\t{\n\t\t$this->dropForeignKey('FK_task_creator','tbl_task');\n\n\t\t$this->dropTable('tbl_task');\n\t}", "public function down(){\n\t\tSchema::dropIfExists('cargo');\n\t}", "public function down()\n {\n $this->table('articles')->drop()->save();\n $this->table('categories')->drop()->save();\n $this->table('football_ragistrations')->drop()->save();\n $this->table('friends')->drop()->save();\n $this->table('menus')->drop()->save();\n $this->table('picnic_ragistrations')->drop()->save();\n $this->table('products')->drop()->save();\n $this->table('profiles')->drop()->save();\n $this->table('skills')->drop()->save();\n $this->table('spouses')->drop()->save();\n $this->table('students')->drop()->save();\n $this->table('submenus')->drop()->save();\n $this->table('users')->drop()->save();\n }", "public function down()\n {\n $this->table('users')\n ->dropForeignKey(\n 'role_id'\n )->save();\n\n $this->table('users')\n ->removeIndexByName('FK_users_roles')\n ->update();\n\n $this->table('users')\n ->addColumn('can_edit', 'boolean', [\n 'after' => 'enabled',\n 'default' => '0',\n 'length' => null,\n 'null' => false,\n ])\n ->removeColumn('role_id')\n ->update();\n\n $this->table('stundenplan')\n ->changeColumn('note', 'string', [\n 'default' => null,\n 'length' => 255,\n 'null' => true,\n ])\n ->removeColumn('loggedInNote')\n ->update();\n\n $this->table('roles')->drop()->save();\n }", "public function down()\n\t{\n\t\t//\n\t\tDB::query('TRUNCATE TABLE app_user_apps_publishes CASCADE');\n\t\tDB::query('TRUNCATE TABLE app_apps_fbapps CASCADE');\n\t\tDB::query('TRUNCATE TABLE app_apps_applications CASCADE');\n\t}", "public function down()\n\t{\n\t\t// Drop Table\n\t\tSchema::drop('activities_types');\n\t}", "protected abstract function do_down();", "public function down(Schema $schema) : void\n {\n $this->addSql('CREATE TABLE encherir_acheteur (encherir_id INT NOT NULL, acheteur_id INT NOT NULL, INDEX IDX_41ABAAFBB0BA17BB (encherir_id), INDEX IDX_41ABAAFB96A7BB5F (acheteur_id), PRIMARY KEY(encherir_id, acheteur_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \\'\\' ');\n $this->addSql('CREATE TABLE encherir_lot (encherir_id INT NOT NULL, lot_id INT NOT NULL, INDEX IDX_3C56919BB0BA17BB (encherir_id), INDEX IDX_3C56919BA8CBA5F7 (lot_id), PRIMARY KEY(encherir_id, lot_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \\'\\' ');\n $this->addSql('ALTER TABLE encherir_acheteur ADD CONSTRAINT FK_41ABAAFB96A7BB5F FOREIGN KEY (acheteur_id) REFERENCES acheteur (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE encherir_acheteur ADD CONSTRAINT FK_41ABAAFBB0BA17BB FOREIGN KEY (encherir_id) REFERENCES encherir (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE encherir_lot ADD CONSTRAINT FK_3C56919BA8CBA5F7 FOREIGN KEY (lot_id) REFERENCES lot (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE encherir_lot ADD CONSTRAINT FK_3C56919BB0BA17BB FOREIGN KEY (encherir_id) REFERENCES encherir (id) ON DELETE CASCADE');\n $this->addSql('ALTER TABLE encherir DROP FOREIGN KEY FK_503B7C878EB576A8');\n $this->addSql('ALTER TABLE encherir DROP FOREIGN KEY FK_503B7C878EFC101A');\n $this->addSql('DROP INDEX IDX_503B7C878EB576A8 ON encherir');\n $this->addSql('DROP INDEX IDX_503B7C878EFC101A ON encherir');\n $this->addSql('ALTER TABLE encherir DROP id_acheteur_id, DROP id_lot_id');\n }", "public function down()\n {\n $this->table('accounting_entries')\n ->dropForeignKey(\n 'accounting_entry_type_id'\n )\n ->dropForeignKey(\n 'association_id'\n )->save();\n\n $this->table('associations_events')\n ->dropForeignKey(\n 'event_id'\n )\n ->dropForeignKey(\n 'association_id'\n )->save();\n\n $this->table('events')\n ->dropForeignKey(\n 'event_type_id'\n )->save();\n\n $this->table('members')\n ->dropForeignKey(\n 'association_id'\n )->save();\n\n $this->table('statistics')\n ->dropForeignKey(\n 'statistics_type_id'\n )\n ->dropForeignKey(\n 'association_id'\n )->save();\n\n $this->table('statistics_event')\n ->dropForeignKey(\n 'statistics_id'\n )\n ->dropForeignKey(\n 'event_id'\n )->save();\n\n $this->table('users')\n ->dropForeignKey(\n 'role_id'\n )\n ->dropForeignKey(\n 'association_id'\n )->save();\n\n $this->table('accounting_entries')->drop()->save();\n $this->table('accounting_entry_type')->drop()->save();\n $this->table('associations')->drop()->save();\n $this->table('associations_events')->drop()->save();\n $this->table('event_type')->drop()->save();\n $this->table('events')->drop()->save();\n $this->table('members')->drop()->save();\n $this->table('roles')->drop()->save();\n $this->table('statistics')->drop()->save();\n $this->table('statistics_event')->drop()->save();\n $this->table('statistics_type')->drop()->save();\n $this->table('users')->drop()->save();\n }", "public function down()\n\t{\n\t\tif(Yii::app()->db->getSchema()->getTable(\"{{user_block}}\")){\n\t\t\t$this->dropTable(\"{{user_block}}\");\n\t\t}\n\n\t}", "public function getDownSQL()\n {\n return array (\n 'default' => '\n# This is a fix for InnoDB in MySQL >= 4.1.x\n# It \"suspends judgement\" for fkey relationships until are tables are set.\nSET FOREIGN_KEY_CHECKS = 0;\n\nDROP TABLE IF EXISTS `user_login`;\n\nALTER TABLE `user` DROP `user_mname`;\n\nALTER TABLE `user` DROP `user_user`;\n\nALTER TABLE `user` DROP `user_password`;\n\nALTER TABLE `user` DROP `user_date_lastlogin`;\n\n# This restores the fkey checks, after having unset them earlier\nSET FOREIGN_KEY_CHECKS = 1;\n',\n);\n }", "public function down()\n\t{\n\t\tSchema::table('officers', function($t){\n\t\t\t$t->drop_column('role');\n\t\t});\n\t}", "public function safeDown()\n {\n $this->down();\n }", "public function safeDown()\n {\n $this->down();\n }", "public function down()\n\t{\n\t\tSchema::drop('refs');\n\t}", "public function down () {\n\t\treturn $this->rename_column ('headline', 'title', 'string', array ('limit' => 72));\n\t}", "public function down()\n\t{\n\t\tSchema::drop('appeals');\n\t}", "public function safeDown()\r\n {\r\n $this->down();\r\n }", "public function down(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \\'mysql\\'.');\n\n<<<<<<< HEAD\n $this->addSql('ALTER TABLE affaire_liste_affaire DROP FOREIGN KEY FK_80DBABFCF082E755');\n $this->addSql('ALTER TABLE affaire DROP FOREIGN KEY FK_9C3F18EFED813170');\n=======\n<<<<<<< HEAD:src/Migrations/Version20200418121015.php\n $this->addSql('ALTER TABLE affaire_liste_affaire DROP FOREIGN KEY FK_80DBABFCF082E755');\n $this->addSql('ALTER TABLE affaire DROP FOREIGN KEY FK_9C3F18EFED813170');\n=======\n $this->addSql('ALTER TABLE liste_affaire_affaire DROP FOREIGN KEY FK_CA81ADF3F082E755');\n $this->addSql('ALTER TABLE enfant DROP FOREIGN KEY FK_34B70CA2463CD7C3');\n $this->addSql('ALTER TABLE enfant DROP FOREIGN KEY FK_34B70CA25D493FF4');\n $this->addSql('ALTER TABLE correspondant_administratif DROP FOREIGN KEY FK_E1E7152EBF396750');\n $this->addSql('ALTER TABLE enfant DROP FOREIGN KEY FK_34B70CA246135043');\n>>>>>>> e1e13eb645b79ada7517f9d2be860dc1655c42db:src/Migrations/Version20200318150734.php\n>>>>>>> 0c1c04bb7c2bbee076bc5fdb1e2456d1af817866\n $this->addSql('ALTER TABLE enfant_sejour DROP FOREIGN KEY FK_159E7E65450D2529');\n $this->addSql('ALTER TABLE enfant_sejour DROP FOREIGN KEY FK_159E7E6584CF0CF');\n $this->addSql('ALTER TABLE enfant DROP FOREIGN KEY FK_34B70CA2463CD7C3');\n $this->addSql('ALTER TABLE enfant DROP FOREIGN KEY FK_34B70CA25D493FF4');\n $this->addSql('ALTER TABLE enfant DROP FOREIGN KEY FK_34B70CA2FF631228');\n $this->addSql('ALTER TABLE affaire_liste_affaire DROP FOREIGN KEY FK_80DBABFCE2687AC3');\n $this->addSql('ALTER TABLE sejour DROP FOREIGN KEY FK_96F52028E2687AC3');\n $this->addSql('ALTER TABLE enfant DROP FOREIGN KEY FK_34B70CA246135043');\n $this->addSql('ALTER TABLE correspondant_administratif DROP FOREIGN KEY FK_E1E7152E46135043');\n $this->addSql('DROP TABLE affaire');\n<<<<<<< HEAD\n $this->addSql('DROP TABLE affaire_liste_affaire');\n $this->addSql('DROP TABLE type_affaire');\n=======\n<<<<<<< HEAD:src/Migrations/Version20200418121015.php\n $this->addSql('DROP TABLE affaire_liste_affaire');\n $this->addSql('DROP TABLE type_affaire');\n=======\n $this->addSql('DROP TABLE centre');\n $this->addSql('DROP TABLE correspondant_administratif');\n $this->addSql('DROP TABLE responsable_legal');\n>>>>>>> e1e13eb645b79ada7517f9d2be860dc1655c42db:src/Migrations/Version20200318150734.php\n>>>>>>> 0c1c04bb7c2bbee076bc5fdb1e2456d1af817866\n $this->addSql('DROP TABLE enfant');\n $this->addSql('DROP TABLE enfant_sejour');\n $this->addSql('DROP TABLE sejour');\n $this->addSql('DROP TABLE centre');\n $this->addSql('DROP TABLE correspondant_administratif');\n $this->addSql('DROP TABLE etablissement');\n $this->addSql('DROP TABLE liste_affaire');\n $this->addSql('DROP TABLE responsable_legal');\n $this->addSql('DROP TABLE user');\n }", "public function getDownSQL()\n {\n return array (\n 'default' => '\n# This is a fix for InnoDB in MySQL >= 4.1.x\n# It \"suspends judgement\" for fkey relationships until are tables are set.\nSET FOREIGN_KEY_CHECKS = 0;\n\nDROP TABLE IF EXISTS `user`;\n\nDROP TABLE IF EXISTS `question`;\n\nDROP TABLE IF EXISTS `answer`;\n\nDROP TABLE IF EXISTS `image`;\n\nDROP TABLE IF EXISTS `vote`;\n\n# This restores the fkey checks, after having unset them earlier\nSET FOREIGN_KEY_CHECKS = 1;\n',\n);\n }", "public function safeDown()\n\t{\n\t\t$this->dropTable($this->tableName);\n\t}", "public function safeDown()\n\t{\n\t\t$this->dropTable($this->tableName);\n\t}", "public function safeDown()\n\t{\n\t\t$this->dropTable($this->tableName);\n\t}", "public function down()\n {\n $this->table('mail_contents')->drop()->save();\n }", "public function down() {\n\t}", "public function down() {\n\t}", "public function down() {\n\t}", "public function down()\n {\n Schema::dropIfExists('reunion');\n }", "public function down(): void\n {\n $this->table('services')\n ->dropForeignKey(\n ['currency_id','billing_period_id']\n )->save();\n $this->execute('DELETE FROM currencies');\n $this->execute('DELETE FROM billing_periods');\n $this->table('services')->drop()->save();\n $this->table('currencies')->drop()->save();\n $this->table('billing_periods')->drop()->save();\n }", "public function down()\n\t{\n\t\tSchema::drop('article_category');\n\t}", "public function down()\n {\n Schema::table('users', function (Blueprint $table) {\n $table->renameColumn('first_name', 'name');\n $table->dropIndex('users_first_name_index');\n $table->dropIndex('users_created_at_index');\n $table->dropIndex('users_updated_at_index');\n $table->dropColumn(\"last_name\");\n $table->dropColumn(\"username\");\n $table->dropColumn(\"provider\");\n $table->dropColumn(\"provider_id\");\n $table->dropColumn(\"api_token\");\n $table->dropColumn(\"code\");\n $table->dropColumn(\"remember_token\");\n $table->dropColumn(\"role_id\");\n $table->dropColumn(\"last_login\");\n $table->dropColumn(\"status\");\n $table->dropColumn(\"root\");\n $table->dropColumn('backend');\n $table->dropColumn(\"photo_id\");\n $table->dropColumn(\"lang\");\n $table->dropColumn(\"color\");\n $table->dropColumn(\"about\");\n $table->dropColumn(\"facebook\");\n $table->dropColumn(\"twitter\");\n $table->dropColumn(\"linked_in\");\n $table->dropColumn(\"google_plus\");\n });\n }", "public function down()\n\t{\n\t\tSchema::drop('entries');\n\t}", "public function down()\n\t{\n\t\tSchema::table('precios_aterrizajes_despegues', function(Blueprint $table)\n\t\t{\n\t\t\t//\n\t\t});\n\t}", "public function down()\n{\nSchema::drop('statustype');\nSchema::drop('area');\nSchema::drop('region');\nSchema::drop('territory');\nSchema::drop('trackedevent');\nSchema::drop('zip_territory');\nSchema::drop('messagetype');\nSchema::drop('optintype');\nSchema::drop('representative');\nSchema::drop('pediatrician');\nSchema::drop('application_messagestatus');\nSchema::drop('application_optin');\nSchema::drop('application_trackedevent');\nSchema::drop('application');\n}", "public function down()\n\t{\n\t\tSchema::drop(Config::get('sentry::sentry.table.users_metadata'));\n\t}", "public function down(Schema $schema) : void\n {\n $this->addSql('ALTER TABLE classe_personne DROP FOREIGN KEY FK_350001418F5EA509');\n $this->addSql('ALTER TABLE matiere_classe DROP FOREIGN KEY FK_AF649A8B8F5EA509');\n $this->addSql('ALTER TABLE note DROP FOREIGN KEY FK_CFBDFA148F5EA509');\n $this->addSql('ALTER TABLE seance DROP FOREIGN KEY FK_DF7DFD0E8F5EA509');\n $this->addSql('ALTER TABLE cours DROP FOREIGN KEY FK_FDCA8C9CF46CD258');\n $this->addSql('ALTER TABLE matiere_classe DROP FOREIGN KEY FK_AF649A8BF46CD258');\n $this->addSql('ALTER TABLE note DROP FOREIGN KEY FK_CFBDFA14F46CD258');\n $this->addSql('ALTER TABLE personne_matiere DROP FOREIGN KEY FK_4E9BB3B7F46CD258');\n $this->addSql('ALTER TABLE absence DROP FOREIGN KEY FK_765AE0C9A21BD112');\n $this->addSql('ALTER TABLE classe_personne DROP FOREIGN KEY FK_35000141A21BD112');\n $this->addSql('ALTER TABLE contacte DROP FOREIGN KEY FK_C794A022A21BD112');\n $this->addSql('ALTER TABLE demande DROP FOREIGN KEY FK_2694D7A5A21BD112');\n $this->addSql('ALTER TABLE note DROP FOREIGN KEY FK_CFBDFA14A6CC7B2');\n $this->addSql('ALTER TABLE personne_matiere DROP FOREIGN KEY FK_4E9BB3B7A21BD112');\n $this->addSql('ALTER TABLE seance DROP FOREIGN KEY FK_DF7DFD0EE455FCC0');\n $this->addSql('ALTER TABLE seance DROP FOREIGN KEY FK_DF7DFD0EBDDFA3C9');\n $this->addSql('ALTER TABLE seance DROP FOREIGN KEY FK_DF7DFD0EDC304035');\n $this->addSql('ALTER TABLE absence DROP FOREIGN KEY FK_765AE0C9E3797A94');\n $this->addSql('ALTER TABLE personne DROP FOREIGN KEY FK_FCEC9EFA76ED395');\n $this->addSql('ALTER TABLE reset_password_request DROP FOREIGN KEY FK_7CE748AA76ED395');\n $this->addSql('DROP TABLE absence');\n $this->addSql('DROP TABLE classe');\n $this->addSql('DROP TABLE classe_personne');\n $this->addSql('DROP TABLE contacte');\n $this->addSql('DROP TABLE cours');\n $this->addSql('DROP TABLE demande');\n $this->addSql('DROP TABLE matiere');\n $this->addSql('DROP TABLE matiere_classe');\n $this->addSql('DROP TABLE news');\n $this->addSql('DROP TABLE note');\n $this->addSql('DROP TABLE personne');\n $this->addSql('DROP TABLE personne_matiere');\n $this->addSql('DROP TABLE reset_password_request');\n $this->addSql('DROP TABLE salle');\n $this->addSql('DROP TABLE seance');\n $this->addSql('DROP TABLE user');\n }", "public function down()\n\t{\n\t\tSchema::drop('stor_mem');\n\t}", "protected function tearDown(): void {\n $migration = include __DIR__.'/../database/migrations/create_all_visitors_tables.php.stub';\n $migration->down();\n\n $migrationTest = include __DIR__.'/Support/migrations/2023_01_12_000000_create_test_models_table.php';\n $migrationTest->down();\n }", "public function down(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \\'mysql\\'.');\n\n $this->addSql('ALTER TABLE booking DROP FOREIGN KEY FK_E00CEDDEA76ED395');\n $this->addSql('ALTER TABLE booking DROP FOREIGN KEY FK_E00CEDDE19FCD424');\n $this->addSql('DROP TABLE booking');\n $this->addSql('DROP TABLE product_image');\n $this->addSql('DROP TABLE family_page_container');\n $this->addSql('DROP TABLE user');\n $this->addSql('DROP TABLE time_line');\n $this->addSql('ALTER TABLE family DROP FOREIGN KEY FK_A5E6215B727ACA70');\n $this->addSql('DROP INDEX IDX_A5E6215B727ACA70 ON family');\n $this->addSql('ALTER TABLE family ADD page_content_id INT NOT NULL, DROP parent_id, DROP has_uniques_prices, DROP has_seasonal_products');\n $this->addSql('ALTER TABLE family ADD CONSTRAINT FK_A5E6215B8F409273 FOREIGN KEY (page_content_id) REFERENCES page_content (id)');\n $this->addSql('CREATE INDEX IDX_A5E6215B8F409273 ON family (page_content_id)');\n $this->addSql('ALTER TABLE link ADD page_container_id INT DEFAULT NULL, DROP url');\n $this->addSql('ALTER TABLE link ADD CONSTRAINT FK_36AC99F123D5B0C FOREIGN KEY (page_container_id) REFERENCES page_container (id)');\n $this->addSql('CREATE INDEX IDX_36AC99F123D5B0C ON link (page_container_id)');\n $this->addSql('ALTER TABLE product DROP content, DROP order_by, DROP is_generic, DROP type, CHANGE title label VARCHAR(50) NOT NULL COLLATE utf8mb4_unicode_ci');\n $this->addSql('ALTER TABLE unit DROP duration');\n }", "public function down(Schema $schema) : void\n {\n $this->addSql('ALTER TABLE `order` DROP FOREIGN KEY FK_F5299398F5B7AF75');\n $this->addSql('ALTER TABLE suppliers DROP FOREIGN KEY FK_AC28B95C8486F9AC');\n $this->addSql('ALTER TABLE user DROP FOREIGN KEY FK_8D93D6498486F9AC');\n $this->addSql('ALTER TABLE stock DROP FOREIGN KEY FK_4B365660D629F605');\n $this->addSql('ALTER TABLE stock DROP FOREIGN KEY FK_4B365660E308AC6F');\n $this->addSql('ALTER TABLE order_detail DROP FOREIGN KEY FK_ED896F46CFFE9AD6');\n $this->addSql('ALTER TABLE product DROP FOREIGN KEY FK_D34A04ADEE45BDBF');\n $this->addSql('ALTER TABLE suppliers DROP FOREIGN KEY FK_AC28B95CEE45BDBF');\n $this->addSql('ALTER TABLE user DROP FOREIGN KEY FK_8D93D649EE45BDBF');\n $this->addSql('ALTER TABLE order_detail DROP FOREIGN KEY FK_ED896F464584665A');\n $this->addSql('ALTER TABLE product_theme DROP FOREIGN KEY FK_36299C544584665A');\n $this->addSql('ALTER TABLE user DROP FOREIGN KEY FK_8D93D649D60322AC');\n $this->addSql('ALTER TABLE order_detail DROP FOREIGN KEY FK_ED896F46DCD6110');\n $this->addSql('ALTER TABLE order_detail DROP FOREIGN KEY FK_ED896F462ADD6D8C');\n $this->addSql('ALTER TABLE product_theme DROP FOREIGN KEY FK_36299C5459027487');\n $this->addSql('ALTER TABLE `order` DROP FOREIGN KEY FK_F5299398A76ED395');\n $this->addSql('DROP TABLE address');\n $this->addSql('DROP TABLE format');\n $this->addSql('DROP TABLE material');\n $this->addSql('DROP TABLE `order`');\n $this->addSql('DROP TABLE order_detail');\n $this->addSql('DROP TABLE picture');\n $this->addSql('DROP TABLE product');\n $this->addSql('DROP TABLE product_theme');\n $this->addSql('DROP TABLE role');\n $this->addSql('DROP TABLE stock');\n $this->addSql('DROP TABLE suppliers');\n $this->addSql('DROP TABLE theme');\n $this->addSql('DROP TABLE user');\n }", "public function down()\n {\n Schema::dropIfExists('data');\n }", "public function down()\n\t{\n\t\tSchema::create('jobs',function($table){$table->increments('id');});\n\t\tSchema::create('job_location',function($table){$table->increments('id');});\n\t\tSchema::create('job_skill',function($table){$table->increments('id');});\n\t\tSchema::create('locations',function($table){$table->increments('id');});\n\t\tSchema::create('location_program',function($table){$table->increments('id');});\n\t\tSchema::create('location_scholarship',function($table){$table->increments('id');});\n\t\tSchema::create('positions',function($table){$table->increments('id');});\n\t\tSchema::create('programs',function($table){$table->increments('id');});\n\t\tSchema::create('program_subject',function($table){$table->increments('id');});\n\t\tSchema::create('scholarships',function($table){$table->increments('id');});\n\t\tSchema::create('scholarship_subject',function($table){$table->increments('id');});\n\t\tSchema::create('skills',function($table){$table->increments('id');});\n\t\tSchema::create('subjects',function($table){$table->increments('id');});\n\t}" ]
[ "0.79510754", "0.7864519", "0.7606075", "0.7493172", "0.7320076", "0.7245705", "0.71873933", "0.71527994", "0.7152543", "0.71410805", "0.7135595", "0.7121767", "0.7115081", "0.71048", "0.7097477", "0.70792973", "0.7077585", "0.707227", "0.70676", "0.7065651", "0.7052665", "0.7052665", "0.7041793", "0.70414674", "0.70414674", "0.70414674", "0.7039506", "0.70282745", "0.7025908", "0.7020137", "0.698775", "0.6986707", "0.6976976", "0.69711196", "0.69428045", "0.69428045", "0.69428045", "0.694231", "0.69402295", "0.6938704", "0.6934591", "0.6932852", "0.6927586", "0.69249535", "0.69244564", "0.691247", "0.6902264", "0.68973", "0.6897237", "0.6897237", "0.6896997", "0.6887604", "0.68823224", "0.68733674", "0.6869391", "0.6862686", "0.6857329", "0.6853974", "0.6843095", "0.68413496", "0.68363076", "0.6836013", "0.68342894", "0.6828999", "0.682782", "0.68278146", "0.682607", "0.68230146", "0.68178254", "0.68099844", "0.6807596", "0.68043476", "0.68043476", "0.6787987", "0.6776019", "0.6773517", "0.676367", "0.6759594", "0.6758692", "0.67551315", "0.67551315", "0.67551315", "0.6753037", "0.6752774", "0.6752774", "0.6752774", "0.6752695", "0.67447793", "0.674376", "0.6738522", "0.67335093", "0.6732361", "0.6730717", "0.6730413", "0.6726875", "0.67264163", "0.67262155", "0.6725712", "0.6716538", "0.67134446", "0.6711899" ]
0.0
-1
Create a new command instance.
public function __construct() { parent::__construct(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function newCommand() {\n return newinstance(Command::class, [], '{\n public static $wasRun= false;\n public function __construct() { self::$wasRun= false; }\n public function run() { self::$wasRun= true; }\n public function wasRun() { return self::$wasRun; }\n }');\n }", "public function createCommand()\r\n\t{\r\n\t\t$obj = new DbCommand($this,$this->dbms);\r\n\t\treturn $obj;\r\n\t}", "public function createCommand() {\n\t\treturn new UnboxedCommand( $this );\n\t}", "protected function createCommand($args) {\n $command = new Command();\n $command->id = ifseta($args, 'id');\n $command->name = ifseta($args, 'name');\n $command->url = ifseta($args, 'url');\n $command->description = ifseta($args, 'description');\n $command->uses = ifseta($args, 'uses');\n $command->creationDate = ifseta($args, 'creation_date');\n $command->lastUseDate = ifseta($args, 'last_use_date');\n $command->goldenEggDate = ifseta($args, 'golden_egg_date');\n return $command;\n }", "static public function create($cmd = null, $args = null)\n {\n return new self($cmd, $args);\n }", "public function createCommand($kernel, string $commandName = null, string $commandDescription = null): Command;", "public function makeCommand() \n {\n if($this->CrontabCommandObject === NULL)\n {\n $this->CrontabCommandObject = new \\root\\library\\Crontab\\CrontabCommand\\CrontabCommand();\n }\n \n return $this->CrontabCommandObject;\n }", "public function testInstantiation()\n {\n $command = new CreateRule('dummy name');\n }", "public function command(Command $command);", "public function __construct($command)\n {\n $this->command = $command;\n }", "public static function create(array $data)\n {\n $command = new static();\n $command->exchangeArray($data);\n return $command;\n }", "protected function getCreateCommand()\n {\n $command = new IndexCreateCommand();\n $command->setContainer($this->getContainer());\n\n return $command;\n }", "public function createCommand($string = '')\n {\n return $this->createStringable($string);\n }", "public function createCommand($type) {\r\n $command = $this->xml->createElement('command');\r\n $command->setAttribute('xsi:type', $type);\r\n $command->setAttribute('xmlns', '');\r\n $this->xmlSchema($command);\r\n return $command;\r\n }", "public function __construct()\n {\n // We will go ahead and set the name, description, and parameters on console\n // commands just to make things a little easier on the developer. This is\n // so they don't have to all be manually specified in the constructors.\n if (isset($this->signature)) {\n $this->configureUsingFluentDefinition();\n } else {\n parent::__construct($this->name);\n }\n\n // Once we have constructed the command, we'll set the description and other\n // related properties of the command. If a signature wasn't used to build\n // the command we'll set the arguments and the options on this command.\n $this->setDescription((string) $this->description);\n\n $this->setHelp((string) $this->help);\n\n $this->setHidden($this->isHidden());\n\n if (! isset($this->signature)) {\n $this->specifyParameters();\n }\n }", "public function make(string $name, PreprocessorInterface $preprocessor = null): CommandInterface;", "private function _getCommandByClassName($className)\n {\n return new $className;\n }", "public function newCommand($regex, $callable) {\n $cmd = new Command();\n $cmd->regex = $regex;\n $cmd->callable = $callable;\n return $this->addCommand($cmd);\n }", "public static function create($commandID, ...$args)\n {\n $arguments = func_get_args();\n\n return new static(array_shift($arguments), $arguments);\n }", "private function __construct($command = null)\n {\n $this->command = $command;\n }", "public static function factory(string $command, string $before = '', string $after = ''): self\n {\n return new self($command, $before, $after);\n }", "public function getCommand() {}", "protected function buildCommand()\n {\n $command = new Command(\\Tivie\\Command\\ESCAPE);\n $command\n ->chdir(realpath($this->repoDir))\n ->setCommand($this->gitDir)\n ->addArgument(new Argument('tag', null, null, false))\n ->addArgument(new Argument($this->tag, null, null, true));\n\n return $command;\n }", "public function testCanBeInstantiated()\n {\n $command = $this->createInstance();\n $this->assertInstanceOf('\\\\Dhii\\\\ShellInterop\\\\CommandInterface', $command, 'Command must be an interoperable command');\n $this->assertInstanceOf('\\\\Dhii\\\\ShellCommandInterop\\\\ConfigurableCommandInterface', $command, 'Command must be a configurable command');\n $this->assertInstanceOf('\\\\Dhii\\\\ShellCommandInterop\\\\MutableCommandInterface', $command, 'Command must be a mutable command');\n }", "public function getCommand();", "protected function createCommand($name, array $parameters = [])\n {\n return new Fluent(\n array_merge(\n compact('name'),\n $parameters)\n );\n }", "public function testCanPassCommandStringToConstructor()\n {\n $command = new Command('/bin/ls -l');\n\n $this->assertEquals('/bin/ls -l', $command->getExecCommand());\n }", "public function makeCommandInstanceByType(...$args): CommandInterface\n {\n $commandType = array_shift($args);\n\n switch ($commandType) {\n case self::PROGRAM_READ_MODEL_FETCH_ONE_COMMAND:\n return $this->makeFetchOneCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_FIND_COMMAND:\n return $this->makeFindCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_FIND_LITE_COMMAND:\n return $this->makeFindLiteCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_CREATE_TASK_COMMAND:\n return $this->makeItemCreateTaskCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_CREATE_COMMAND:\n return $this->makeItemCreateCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_UPDATE_TASK_COMMAND:\n return $this->makeItemUpdateTaskCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_UPDATE_COMMAND:\n return $this->makeItemUpdateCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_DELETE_TASK_COMMAND:\n return $this->makeItemDeleteTaskCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_DELETE_COMMAND:\n return $this->makeItemDeleteCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_ADD_ID_COMMAND:\n return $this->makeItemAddIdCommand(...$args);\n\n default:\n throw new FactoryException(sprintf('Command bus for type `%s` not found!', (string) $commandType));\n }\n }", "public function __construct($cmd)\n {\n $this->cmd = $cmd;\n }", "public function getCommand()\n {\n }", "public function command($class)\n {\n $runnable = $this->resolveClass($class);\n\n if ( ! $runnable instanceof Command) {\n throw new InvalidArgumentException(get_class($runnable).' must be an instance of '.Command::class.'.');\n }\n\n $command = $runnable;\n\n if ($runnable instanceof Taggable) {\n $command = new Cached($command, $this);\n }\n\n if ($runnable instanceof Transactional) {\n $command = new Transaction($command, $this, $this->makeFromContainer(ConnectionInterface::class));\n }\n\n if ($runnable instanceof Eventable) {\n $command = new Evented($command, $this);\n }\n\n return $this->newBuilder($command);\n }", "protected function createCommandFactory(): CommandFactory\n {\n return new CommandFactory([\n 'CLOSE' => Command\\CLOSE::class,\n ]);\n }", "public static function register() {\n\n if ( !defined( 'WP_CLI' ) || !WP_CLI ) {\n return;\n }\n \n $instance = new static;\n if(empty( $instance->namespace )) {\n throw new \\Exception(\"Command namespace not defined\", 1);\n \n }\n\t\t\\WP_CLI::add_command( $instance->namespace, $instance, $instance->args ?? null );\n\t}", "public function addCommand($command);", "public function add(Command $command);", "abstract protected function getCommand();", "public function createCommand()\r\n\t{\r\n\t\t//start the string\r\n\t\t$command = '';\r\n\t\t\r\n\t\t//add the java command or the path to java\r\n\t\t$command .= $this->java_path;\r\n\t\t\r\n\t\t//add the class path\r\n\t\t$command .= ' -cp \"'. $this->stanford_path . $this->seperator . '*\" ';\r\n\t\t\r\n\t\t//add options\r\n\t\t$options = implode(' ', $this->java_options);\r\n\t\t$command .= '-'.$options;\r\n\t\t\r\n\t\t//add the call to the pipeline object\r\n\t\t$command .= ' edu.stanford.nlp.pipeline.StanfordCoreNLP ';\r\n\r\n\t\t//add the annotators\r\n\t\t$command .= '-annotators '. $this->listAnnotators();\r\n\t\t\r\n\t\t//add the input and output directors\r\n\t\t$command .= ' -file '. $this->tmp_file . ' -outputDirectory '. $this->tmp_path;\r\n\t\t\r\n\t\t//this is for testing purposes\r\n\t\t//$command .= ' -file '. $this->tmp_path .'\\\\nlp3F25.tmp' . ' -outputDirectory '. $this->tmp_path;\r\n\t\t\r\n\t\t//if using regexner add this to the command string\r\n\t\tif($this->annotators['regexner'] === true)\r\n\t\t{\r\n\t\t\t$command .=' -regexner.mapping '. $this->regexner_path . $this->seperator . $this->regexner_file;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn $command;\r\n\t}", "protected function createCommand(string $name, array $parameters = []): Fluent\n {\n return new Fluent(array_merge(compact('name'), $parameters));\n }", "public function __construct()\n {\n parent::__construct(static::NAME, static::VERSION);\n $this->add(new DefaultCommand());\n }", "public function __construct()\n {\n parent::__construct();\n\n $this->command_name = config(\"custom-commands.command_name\");\n\n parent::__construct($this->signature = $this->command_name);\n\n $this->commands = (array) config(\"custom-commands.commands\");\n \n $this->table = config(\"custom-commands.table\");\n\n $this->row = config(\"custom-commands.row\");\n\n $this->changeEnv = (boolean) config(\"custom-commands.change_env\");\n\n }", "protected function createCommandFile()\n {\n $command_file_full_path = $this->command_dir_path . DIRECTORY_SEPARATOR . $this->arg->getCommandFileName();\n\n // Check if the command already exists\n if (file_exists($command_file_full_path)) {\n throw new Exception('Command already exists.');\n }\n\n // Create the file for the new command\n $command_file = fopen($command_file_full_path, 'w');\n\n // TODO: Create Script Generator to generate the PHP scripts for the new command.\n\n fclose($command_file);\n\n $this->console->getOutput()->println('File created at: ' . $command_file_full_path);\n $this->console->getOutput()->success('Command ' . $this->arg->getSignature() . ' created successfully.');\n }", "public static function create() {}", "public static function create() {}", "public static function create() {}", "public static function create(InteropContainer $container)\n {\n $middleware = $container->get('cmd.middleware');\n return new CommandBusFactory($middleware);\n }", "private function createCli() {\n $this->cli = new Cli();\n $this->commands = $this->commandParser->getAllCommands();\n\n foreach ($this->commands as $command) {\n if ($command->isDefault()) {\n $this->cli->command(\"*\");\n foreach ($command->getOptions() as $option) {\n $this->cli->opt($option->getName(), $option->getDescription(), $option->isRequired(), $option->getType());\n }\n foreach ($command->getArguments() as $argument) {\n if (!$argument->isVariadic())\n $this->cli->arg($argument->getName(), $argument->getDescription(), $argument->isRequired());\n }\n }\n if ($command->getName() != \"\") {\n $this->cli->command($command->getName())->description($command->getDescription());\n foreach ($command->getOptions() as $option) {\n $this->cli->opt($option->getName(), $option->getDescription(), $option->isRequired(), $option->getType());\n }\n foreach ($command->getArguments() as $argument) {\n if (!$argument->isVariadic())\n $this->cli->arg($argument->getName(), $argument->getDescription(), $argument->isRequired());\n }\n }\n }\n\n\n }", "public function testInstantiation()\n {\n $this->assertInstanceOf('Contao\\ManagerBundle\\Command\\InstallWebDirCommand', $this->command);\n }", "public function command(string $command): self\n {\n $this->addCommands[] = $command;\n\n return $this;\n }", "public function create() {}", "protected function createProcess($cmd)\n {\n return new Process(explode(' ', $cmd));\n }", "public function create(){}", "protected function getCommandFactory(): Command\\Factory\n {\n return new Command\\RedisFactory();\n }", "public function __construct()\n {\n parent::__construct();\n\n $this->commandData = new CommandData($this, CommandData::$COMMAND_TYPE_API);\n }", "public function testNewCommand() : void\n {\n $this->assertFalse($this->command->hasArguments());\n $this->assertEquals(\"\", $this->command->getArguments());\n }", "protected function createCommandBuilder()\n\t{\n\t\treturn new CSqliteCommandBuilder($this);\n\t}", "public function __construct($command, $config = [])\n {\n $this->command = $command;\n $this->_output = $this->getDefaultOutput();\n parent::__construct($config);\n }", "public function __construct(){\n\n global $argv;\n\n if(!isset($argv[1])){\n echo 'You must supply a command!' . PHP_EOL;\n exit;\n }//if\n\n $args = $argv;\n\n $scriptName = array_shift($args);\n $method = array_shift($args);\n\n $method = explode('-',$method);\n foreach($method as $k => $v){\n if($k != 0){\n $method[$k] = ucwords($v);\n }//if\n }//foreach\n\n $method = implode('',$method);\n\n $resolved = false;\n\n if(method_exists($this,$method)){\n call_user_func(Array($this,$method), $args);\n $resolved = true;\n }//if\n else {\n foreach(static::$extendedCommands as $commandClass){\n if(method_exists($commandClass,$method)){\n call_user_func(Array($commandClass,$method), $args);\n $resolved = true;\n break;\n }//if\n }//foreach\n }//el\n\n if(!$resolved){\n echo \"`{$method}` is not a valid CLI command!\";\n }//if\n\n echo PHP_EOL;\n exit;\n\n }", "public function forCommand($command)\n {\n $this->command = $command;\n $this->pipe = new NullPipe();\n $this->manager = new InteractiveProcessManager($this->userInteraction);\n\n return $this;\n }", "public function __construct()\n {\n parent::__construct('pwman', '0.1.0');\n\n $getCommand = new Get();\n $this->add($getCommand);\n\n $setCommand = new Set();\n $this->add($setCommand);\n }", "public function create() {\n $class_name = $this->getOption('className');\n return new $class_name();\n }", "public function createCommand(?string $sql = null, array $params = []): Command;", "public function __construct($command = NULL, $name = NULL)\n {\n $args = func_get_args();\n\n switch ($command) {\n case self::CONSTR_CMD_POPULATE_SYNCED_ARRAY:\n case self::CONSTR_CMD_POP_FROM_ARR:\n case self::CONSTR_CMD_POP_FROM_OBJ:\n case self::CONSTR_CMD_POP_FROM_DB:\n case self::CONSTR_CMD_NEW:\n $this->setup_name = $name;\n\n # shift off known args\n array_shift($args);\n array_shift($args);\n break;\n }\n\n switch ($command) {\n case self::CONSTR_CMD_POP_FROM_ARR:\n $this->applyArray($args[0]);\n break;\n case self::CONSTR_CMD_POP_FROM_OBJ:\n break;\n case self::CONSTR_CMD_POP_FROM_DB:\n break;\n case self::CONSTR_CMD_POPULATE_SYNCED_ARRAY:\n $this->applyArray($args[0]);\n $this->setAllLoaded();\n break;\n default:\n throw new OrmInputException('Guessing not supported, please explicitly specify construction type');\n self::constructGuess($args);\n }\n\n $this->ensureObjectInDb();\n }", "public function generateCommands();", "protected function newInstanceCommand($commandClass)\n {\n $class = new ReflectionClass($commandClass);\n\n return $class->newInstanceArgs($this->resolveCommandParameters($class));\n }", "protected function buildCommand()\n {\n return $this->command;\n }", "public function makeItemCreateCommand(string $processUuid, array $item): ItemCreateCommand\n {\n $processUuid = ProcessUuid::fromNative($processUuid);\n $uuid = Uuid::fromNative(null);\n $item = Item::fromNative($item);\n\n return new ItemCreateCommand($processUuid, $uuid, $item);\n }", "public function __construct($commandName, $args = [], $description = '') {\n if (!$this->setName($commandName)) {\n $this->setName('--new-command');\n }\n $this->addArgs($args);\n\n if (!$this->setDescription($description)) {\n $this->setDescription('<NO DESCRIPTION>');\n }\n }", "public function getCommand($name, array $args = array())\n {\n return parent::getCommand($name, $args)\n ->setRequestSerializer(RequestSerializer::getInstance());\n }", "protected function buildCommand()\n {\n $command = new Command(\\Tivie\\Command\\DONT_ADD_SPACE_BEFORE_VALUE);\n $command\n ->chdir(realpath($this->repoDir))\n ->setCommand($this->gitDir)\n ->addArgument(new Argument('rev-parse'))\n ->addArgument(new Argument('HEAD'));\n\n return $command;\n }", "protected function instantiateCommand(Request $request, $args)\n {\n $command = new DeletePackageCustomerCommand($args);\n\n $requestBody = $request->getParsedBody();\n\n $this->setCommandFields($command, $requestBody);\n\n return $command;\n }", "public function createCommand($sql = null, $params = [])\n {\n $command = new Command([\n 'db' => $this,\n 'sql' => $sql,\n ]);\n\n return $command->bindValues($params);\n }", "protected function setCommand($value) {\n\t\t$this->_command = trim($value);\n\t\treturn $this;\n\t}", "public function setCommand($command)\n {\n $this->command = $command;\n\n return $this;\n }", "public function buildCommand()\n {\n return parent::buildCommand();\n }", "private function registerMakeModuleCommand()\n {\n $this->app->singleton('command.make.module', function($app) {\n return $app['Caffeinated\\Modules\\Console\\Generators\\MakeModuleCommand'];\n });\n\n $this->commands('command.make.module');\n }", "public function __construct()\n {\n parent::__construct();\n\n $this->currentDirectory = getcwd();\n $this->baseIndentLevel = 0;\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\HelpCommand\", \"help\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\InitializePlanetCommand\", \"init\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\PackAndPushUniToolCommand\", \"packpushuni\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\PackLightPluginCommand\", \"packlightmap\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\PushCommand\", \"push\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\PushUniverseSnapshotCommand\", \"pushuni\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\UpdateSubscriberDependenciesCommand\", \"updsd\");\n\n }", "public function getCommand(string $command);", "protected function registerCommand(){\n\t\t$this->app->singleton('fakeid.command.setup', function ($app){\n\t\t\treturn new SetupCommand();\n\t\t});\n\n\t\t$this->commands('fakeid.command.setup');\n\t}", "public function addCommand($command, $args = [], $data = [])\n {\n $item = new ScreenCommand();\n $item->screen_id = $this->id;\n $item->command = $command;\n $item->arguments = $args;\n $item->fill($data);\n $item->save();\n\n return $item;\n }", "public function test_creating_command_from_container()\n {\n $now = new \\DateTime();\n $this->container->add('DateTime', $now);\n $command = 'Spekkionu\\DomainDispatcher\\Test\\Commands\\CommandWithConstructor';\n $result = $this->dispatcher->dispatch($command);\n $this->assertSame($now, $result);\n }", "protected function createProcess(): Process\n {\n $command = [\n $this->settings['executable']\n ];\n\n $command[] = $this->from;\n $command[] = $this->to;\n\n // Set the margins if needed.\n if ($this->settings['marginsType'] !== self::MARGIN_TYPE_NO_MARGINS) {\n $command[] = '--marginsType=' . $this->settings['marginsType'];\n }\n\n // If we need to proxy with node we just need to prepend the $command with `node`.\n if ($this->settings['proxyWithNode']) {\n array_unshift($command, 'node');\n }\n\n // If there's no graphical environment we need to prepend the $command with `xvfb-run\n // --auto-servernum`.\n if (! $this->settings['graphicalEnvironment']) {\n array_unshift($command, '--auto-servernum');\n array_unshift($command, 'xvfb-run');\n }\n\n return new Process($command);\n }", "private function registerCommand()\n {\n $this->app->singleton('command.shenma.push', function () {\n return new \\Larva\\Shenma\\Push\\Commands\\Push();\n });\n\n $this->app->singleton('command.shenma.push.retry', function () {\n return new \\Larva\\Shenma\\Push\\Commands\\PushRetry();\n });\n }", "public function __construct(string $command, string $before = '', string $after = '')\n {\n $this->command = $command;\n $this->before = $before;\n $this->after = $after;\n }", "public function generateCommand($singleCommandDefinition);", "public function create() {\n }", "public function create() {\n }", "public function create() {\r\n }", "public function create() {\n\n\t}", "private function getImportCommand()\n {\n return new IndexImportCommand(self::getContainer());\n }", "public function __construct($command)\n {\n $this->command = $command;\n\n $this->command->line('Installing Images: <info>✔</info>');\n }", "public function __construct()\n {\n self::$instance =& $this;\n\n $commanddir = Config::main('directory');\n $excludes = Config::main('exclude');\n\n if(is_null($commanddir))\n die('Could not find commands directory. It should be specified in the main config.');\n\n //The directory where commands reside should be relative\n //to the directory with the clip executable.\n $dir = realpath(__DIR__.\"/{$commanddir}\");\n\n $cmdfiles = scandir($dir);\n //Loop through each file in the commands directory\n foreach($cmdfiles as $file)\n {\n //Assume that each file uses the standard '.php' file extension.\n $command = substr($file, 0, -4);\n\n //Ignore the unnecessary directories as commands and anything that\n //has been marked for exclusion then attempt to include the valid ones.\n if($file !== '.' && $file !== '..' && array_search($command, $excludes) === false && include(\"{$dir}/{$file}\"))\n {\n if(class_exists($command, false))\n {\n $obj = new $command;\n //Only load commands that use the clip command interface\n if($obj instanceof Command)\n $this->commands[strtolower($command)] = $obj;\n }\n }\n }\n }", "public function __construct($action, $command = null) {\n parent::__construct($action, self::NAME);\n\n $fieldFactory = FieldFactory::getInstance();\n\n $commandField = $fieldFactory->createField(FieldFactory::TYPE_STRING, self::FIELD_COMMAND, $command);\n\n $this->addField($commandField);\n }", "public function createCommand($db = null, $action = 'get')\n {\n if ($db === null) {\n $db = Yii::$app->get(Connection::getDriverName());\n }\n $this->addAction($action);\n $commandConfig = $db->getQueryBuilder()->build($this);\n\n return $db->createCommand($commandConfig);\n }", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();" ]
[ "0.8010746", "0.7333379", "0.72606754", "0.7164165", "0.716004", "0.7137585", "0.6748632", "0.67234164", "0.67178184", "0.6697025", "0.6677973", "0.66454077", "0.65622073", "0.65437883", "0.64838654", "0.64696646", "0.64292693", "0.6382209", "0.6378306", "0.63773245", "0.6315901", "0.6248427", "0.6241929", "0.6194334", "0.6081284", "0.6075819", "0.6069913", "0.60685146", "0.6055616", "0.6027874", "0.60132784", "0.60118896", "0.6011778", "0.5969603", "0.59618074", "0.5954538", "0.59404427", "0.59388787", "0.5929363", "0.5910562", "0.590651", "0.589658", "0.589658", "0.589658", "0.58692765", "0.58665586", "0.5866528", "0.58663124", "0.5852474", "0.5852405", "0.58442044", "0.58391577", "0.58154446", "0.58055794", "0.5795853", "0.5780188", "0.57653266", "0.57640004", "0.57584697", "0.575748", "0.5742612", "0.5739361", "0.5732979", "0.572247", "0.5701043", "0.5686879", "0.5685233", "0.56819254", "0.5675983", "0.56670785", "0.56606543", "0.5659307", "0.56567776", "0.56534046", "0.56343585", "0.56290466", "0.5626615", "0.56255764", "0.5608852", "0.5608026", "0.56063116", "0.56026554", "0.5599553", "0.5599351", "0.55640906", "0.55640906", "0.5561977", "0.5559745", "0.5555084", "0.5551485", "0.5544597", "0.55397296", "0.5529626", "0.552908", "0.552908", "0.552908", "0.552908", "0.552908", "0.552908", "0.552908", "0.552908" ]
0.0
-1
Execute the console command.
public function handle() { $now = Carbon::now(); //商品追加 $data = [ ['item_name' => '情報処理教科書 情報処理安全確保支援士 2020年版','item_url' => 'https://m.media-amazon.com/images/I/81hlUU1PVsL._AC_UL320_ML3_.jpg','item_price' =>2000,'item_stock' => 100,'category_name' =>'資格', 'created_at' => $now,'updated_at' => $now], ['item_name' => '情報処理教科書 データベーススペシャリスト 2020年版','item_url' => 'https://m.media-amazon.com/images/I/818F6gI4lGL._AC_UL320_ML3_.jpg','item_price' => 2000,'item_stock' => 100,'category_name' =>'資格', 'created_at' => $now,'updated_at' => $now], ['item_name' => '情報処理教科書 ネットワークスペシャリスト 2019年版','item_url' => 'https://m.media-amazon.com/images/I/81ufzIldIGL._AC_UL320_ML3_.jpg','item_price' => 2000,'item_stock' => 100,'category_name' =>'資格', 'created_at' => $now,'updated_at' => $now], ['item_name' => '【オラクル認定資格試験対策書】ORACLE MASTER Bronze[12c SQL基礎](試験番号:1Z0-061)完全詳解+精選問題集(オラクルマスタースタディガイド)','item_url' => 'https://m.media-amazon.com/images/I/71yf+lsf4UL._AC_UL320_ML3_.jpg','item_price' => 4000,'item_stock' => 100,'category_name' =>'資格', 'created_at' => $now,'updated_at' => $now], ['item_name' => '【オラクル認定資格試験対策書】ORACLE MASTER Bronze[Bronze DBA 12c](試験番号:1Z0-065)完全詳解+精選問題集(オラクルマスタースタディガイド)','item_url' => 'https://m.media-amazon.com/images/I/71n-9NmwlsL._AC_UL320_ML3_.jpg','item_price' => 4000,'item_stock' => 100,'category_name' =>'資格', 'created_at' => $now,'updated_at' => $now], ['item_name' => 'オラクルマスター教科書 Bronze Oracle Database 12c SQL基礎','item_url' => 'https://m.media-amazon.com/images/I/81bbuSH92EL._AC_UL320_ML3_.jpg','item_price' => 4000,'item_stock' => 100,'category_name' =>'資格', 'created_at' => $now,'updated_at' => $now], ['item_name' => 'オラクルマスター教科書 Bronze Oracle Database DBA12c','item_url' => 'https://m.media-amazon.com/images/I/51PqeER-hfL._AC_UL320_ML3_.jpg','item_price' => 4000,'item_stock' => 100,'category_name' =>'資格', 'created_at' => $now,'updated_at' => $now], ['item_name' => 'オラクルマスター教科書 Silver Oracle Database 12c','item_url' => 'https://m.media-amazon.com/images/I/819ekgC2ziL._AC_UL320_ML3_.jpg','item_price' => 4000,'item_stock' => 100,'category_name' =>'資格', 'created_at' => $now,'updated_at' => $now], ['item_name' => 'オラクルマスター教科書 Gold Oracle Database 12c','item_url' => 'https://m.media-amazon.com/images/I/71lmVVMRnaL._AC_UL320_ML3_.jpg','item_price' => 7000,'item_stock' => 100,'category_name' =>'資格', 'created_at' => $now,'updated_at' => $now], ['item_name' => '徹底攻略 Java SE 7/8 Bronze 問題集[1Z0-814]対応','item_url' => 'https://m.media-amazon.com/images/I/81A1uFFh79L._AC_UL320_ML3_.jpg','item_price' => 2800,'item_stock' => 100,'category_name' =>'資格', 'created_at' => $now,'updated_at' => $now], ['item_name' => '徹底攻略 Java SE 8 Silver 問題集[1Z0-808]対応','item_url' => 'https://m.media-amazon.com/images/I/9158-tMCrJL._AC_UL320_ML3_.jpg','item_price' => 3500,'item_stock' => 100,'category_name' =>'資格', 'created_at' => $now,'updated_at' => $now], ['item_name' => '徹底攻略 Java SE 8 Gold 問題集[1Z0-809]対応','item_url' => 'https://m.media-amazon.com/images/I/81qhsrrlXML._AC_UL320_ML3_.jpg','item_price' => 4000,'item_stock' => 100,'category_name' =>'資格', 'created_at' => $now,'updated_at' => $now], ['item_name' => 'オラクル認定資格教科書 Javaプログラマ Gold SE 8 (EXAMPRESS)','item_url' => 'https://m.media-amazon.com/images/I/51h4k9HvzBL._AC_UL320_ML3_.jpg','item_price' => 4600,'item_stock' => 100,'category_name' =>'資格', 'created_at' => $now,'updated_at' => $now], ['item_name' => 'Microsoft Office Specialist Microsoft Excel 2016 対策テキスト& 問題集 (よくわかるマスター)','item_url' => 'https://m.media-amazon.com/images/I/715x0E-OARL._AC_UL320_ML3_.jpg','item_price' => 2000,'item_stock' => 100,'category_name' =>'資格', 'created_at' => $now,'updated_at' => $now], ['item_name' => 'Microsoft Office Specialist Microsoft Excel 2016 Expert 対策テキスト&問題集 (よくわかるマスター)','item_url' => 'https://m.media-amazon.com/images/I/712kVYt47OL._AC_UL320_ML3_.jpg','item_price' => 3300,'item_stock' => 100,'category_name' =>'資格', 'created_at' => $now,'updated_at' => $now], ['item_name' => 'Microsoft Office Specialist Microsoft Word 2016 対策テキスト& 問題集 (よくわかるマスター)','item_url' => 'https://m.media-amazon.com/images/I/71OHtaMr8yL._AC_UL320_ML3_.jpg','item_price' => 2200,'item_stock' => 100,'category_name' =>'資格', 'created_at' => $now,'updated_at' => $now], ['item_name' => 'Microsoft Office Specialist Microsoft PowerPoint 2016 対策テキスト&問題集 (よくわかるマスター)','item_url' => 'https://m.media-amazon.com/images/I/71UUm8esgUL._AC_UL320_ML3_.jpg','item_price' => 2400,'item_stock' => 100,'category_name' =>'資格', 'created_at' => $now,'updated_at' => $now], ['item_name' => 'Microsoft Office Specialist Microsoft Accsess 2016 対策テキスト&問題集 (よくわかるマスター)','item_url' => 'https://m.media-amazon.com/images/I/71XPf3gyFzL._AC_UL320_ML3_.jpg','item_price' => 3000,'item_stock' => 100,'category_name' =>'資格', 'created_at' => $now,'updated_at' => $now], ['item_name' => 'セキュリティ技術の教科書','item_url' => 'https://m.media-amazon.com/images/I/91XzVpYxdiL._AC_UL320_ML3_.jpg','item_price' => 5000,'item_stock' => 100,'category_name' =>'技術書', 'created_at' => $now,'updated_at' => $now], ['item_name' => '暗号技術入門','item_url' => 'https://m.media-amazon.com/images/I/71VvlaRb6zL._AC_UL320_ML3_.jpg','item_price' => 5000,'item_stock' => 100,'category_name' =>'技術書', 'created_at' => $now,'updated_at' => $now], ['item_name' => 'アサヒ飲料 モンスター エナジー 355ml×24本','item_url' => 'https://m.media-amazon.com/images/I/71AGNrVcLPL._AC_UL320_ML3_.jpg','item_price' => 4444,'item_stock' => 4444,'category_name' =>'ドリンク', 'created_at' => $now,'updated_at' => $now], ['item_name' => 'アサヒ飲料 モンスター パイプラインパンチ 355ml ×24本','item_url' => 'https://m.media-amazon.com/images/I/71HODTcVEJL._AC_UL320_ML3_.jpg','item_price' => 44444,'item_stock' => 4444,'category_name' =>'ドリンク', 'created_at' => $now,'updated_at' => $now], ['item_name' => 'アサヒ飲料 モンスター カオス 355ml×24本','item_url' => 'https://m.media-amazon.com/images/I/81sDWWcjhuL._AC_UL320_ML3_.jpg','item_price' => 4444,'item_stock' => 4444,'category_name' =>'ドリンク', 'created_at' => $now,'updated_at' => $now], ['item_name' => 'アサヒ飲料 モンスターウルトラ缶 355ml×24本','item_url' => 'https://m.media-amazon.com/images/I/81Ha1G6jXbL._AC_UL320_ML3_.jpg','item_price' => 4444,'item_stock' => 4444,'category_name' =>'ドリンク', 'created_at' => $now,'updated_at' => $now], ['item_name' => 'アサヒ飲料 モンスターアブソリュートリーゼロ 355ml×24本','item_url' => 'https://m.media-amazon.com/images/I/817KoRjLBJL._AC_UL320_ML3_.jpg','item_price' => 4444,'item_stock' => 4444,'category_name' =>'ドリンク', 'created_at' => $now,'updated_at' => $now], ['item_name' => 'アサヒ飲料 モンスター キューバリブレ 355ml×24本','item_url' => 'https://m.media-amazon.com/images/I/81zMMaF68qL._AC_UL320_ML3_.jpg','item_price' => 4444,'item_stock' => 4444,'category_name' =>'ドリンク', 'created_at' => $now,'updated_at' => $now], ['item_name' => 'レッドブル・エナジードリンク 355ml×24本','item_url' => 'https://m.media-amazon.com/images/I/716FMmCIV6L._AC_UL320_ML3_.jpg','item_price' => 4444,'item_stock' => 4444,'category_name' =>'ドリンク', 'created_at' => $now,'updated_at' => $now], ]; DB::table('items')->insert($data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function handle()\n {\n\t\t$this->info('league fetching ..');\n $object = new XmlFeed();\n\t\t$object->fetchLeague($this->argument('sports_id'));\n\t\t$this->info('league saved');\n }", "public function handle()\n {\n //get us the Converter class instance and call the convert() method on it.\n $this->info(\n \\Aregsar\\Converter\\ConverterFacade::convert($this->argument(\"currency\"))\n );\n }", "public function handle()\n {\n $this->locale = $this->argument('locale');\n\n $this->loadGroupLines();\n\n $this->loadNameSpacedLines();\n\n $this->info('Complete');\n }", "public function handle()\n {\n $this->importUser($this->argument('username'));\n $this->call('ldap:show-user', $this->arguments());\n }", "public function handle() {\n $user = User::where('id', $this->argument('userId'))->first();\n $this->info($user->email);\n }", "public function handle()\n {\n $translations = collect(json_decode(file_get_contents('https://raw.githubusercontent.com/getbible/Bibles/master/translations.json')))->flatten();\n switch($this->argument('action')) {\n case 'fetch':\n $this->fetchBibles($translations);\n break;\n case 'convert':\n $this->convertBibles($translations);\n break;\n }\n }", "public function handle()\n {\n try {\n $evalstr = $this->evaluater->evaluate($this->argument('evalString'));\n $this->info($evalstr);\n } catch (ForbiddenSymbolsException $exception) {\n $this->error($exception->getMessage());\n } catch (IncorrectSymbolsException $exception) {\n $this->error($exception->getMessage());\n }\n }", "public function handle()\n {\n\n $settings = Setting::fetch();\n $id = $this->argument('id');\n $this->scrape_game_data($id);\n }", "public function handle()\n {\n // env('CALENDARINDEX_TOKEN', '6f2bd927201ba4b22bb57df08db0c517e51732de')\n $this->getData($this->argument('country'), $this->argument('region'));\n }", "public function handle()\n {\n $email = $this->argument('email');\n $name = $this->argument('name');\n\n $this->info(\"starting to generate users details\");\n\n }", "public function handle()\n {\n\t\t$this->info('Importing translations...');\n\n\t\t$this->manager->importTranslations(true);\n }", "public function handle()\n {\n $user = null;\n\n if ($email = $this->option(\"email\", false)) {\n $user = $this->findByEmail($email);\n }\n\n if ($id = $this->option(\"id\", false)) {\n $user = $this->findById($id);\n }\n\n if (empty($user)) {\n $this->warn(\"User no found\");\n }\n else {\n $this->setRoleToUser($user);\n }\n }", "public function handle()\n {\n $name = ucwords($this->argument('name'));\n $this->call('repository:contract', [ 'name' => $name ]);\n $this->call('repository:class', [ 'name' => $name, '--driver' => $this->option('driver') ]);\n }", "public function handle()\n\t{\n\t\t// Superuser\n\t\tif( ! $this->option('no-superuser'))\n\t\t\t$this->call('setup:superuser');\n\n\t\t// Countries\n\t\tif( ! $this->option('no-countries'))\n\t\t\t$this->call('setup:countries', ['country' => array_filter(explode(',', $this->option('countries')))]);\n\n\t\t// Languages\n\t\tif( ! $this->option('no-languages'))\n\t\t\t$this->call('setup:languages', ['language' => array_filter(explode(',', $this->option('languages')))]);\n\n\t\t// Currencies\n\t\tif( ! $this->option('no-currencies'))\n\t\t\t$this->call('setup:currencies', ['currency' => array_filter(explode(',', $this->option('currencies')))]);\n\n\t\t// Clear cache\n\t\t$this->call('cache:clear');\n\t}", "public function handle()\n\t{\n\t\t$name = $this->argument('name');\n\t\t\n\t\t$this->info(\"Searching eve api for {$name}\");\n\t\t$result = Corporation::searchEVEAPI($name);\n\n\t\t$this->info(\"results\");\n\t\tforeach($result as $corp)\n\t\t{\n\t\t\tprint $corp->name . \" \" . $corp->id . \"\\r\\n\";\n\t\t}\n\t}", "public function handle()\n {\n $user = $this->argument('user');\n $this->info('Display this on the screen, user ' . $user);\n return 0;\n }", "public function handle()\n {\n $this->userVectors->test($this->option('force'));\n }", "public function handle()\n {\n $mapping = $this->formatMappingName((string)$this->argument('mapping'));\n \n $model = $this->option('model') ? $this->formatModelName($this->option('model')) : null;\n \n $this->filesystem->put(\n $this->buildMappingFilePath($mapping),\n $this->buildMapping(\n $this->getDefaultStub(),\n $mapping,\n $model\n )\n );\n \n $this->composer->dumpAutoloads();\n }", "public function handle()\n {\n switch ($this->argument('type')) {\n case 'dns':\n $this->dnscheck->run($this->option('dry-run') ? true : false, $this->argument('domain'));\n break;\n case 'whois':\n $this->whoischeck->run($this->option('dry-run') ? true : false, $this->argument('domain'));\n break;\n }\n }", "public function handle()\n {\n $option = $this->argument('option');\n\n if (! in_array($option, ['expired', 'all'])) {\n return $this->error('Invalid option supplied to command...');\n }\n\n $this->comment('Beginning pruning process...');\n\n $this->comment($this->pruneDatabase($option) . ' deleted from database...');\n\n $this->comment($this->pruneFiles($option) . ' deleted from files...');\n\n $this->info('Nonces pruned successfully!');\n }", "public function handle()\n {\n $subscriptionUpdateService = new SubscriptionUpdateService();\n $subscriptionUpdateService->runUpdates();\n }", "public function handle()\n\t{\n\t\t\n\t\t$source_directory = $this->argument( 'source_directory' );\n\t\t$target_directory = $this->argument( 'target_directory' );\n\t\t$template = (string) $this->option( 'template' );\n\n\t\t$statik = new \\App\\Statik\\Statik;\n\n\t\t$statik->generateHTMLFiles( $this, $source_directory, $target_directory, $template ) && $this->info( \"\\e[1;32mDONE!\" );\n\n\t}", "public function handle()\n {\n if (!$this->argument('file')) {\n $this->info('Please specify file to call.');\n }\n\n $file = $this->argument('file');\n\n if (!$this->fileHandler->exists($file)) {\n $this->info('Wrong path or file not exist.');\n }\n\n $this->executeFile($file);\n }", "public function handle()\n {\n $user = $this->argument('user');\n $this->scanner->setUserName($user);\n $this->scanner->scanUser();\n }", "public function handle()\n {\n if ($this->argument('user')) {\n $userId = $this->argument('user');\n\n $this->info(\"Liquidate affiliate commission for user \" . $userId);\n\n $user = $this->userService->findById($userId);\n\n if ($user) {\n $this->walletService->liquidateUserBalance($user);\n } else {\n $this->error(\"User not found\");\n }\n\n $this->info(\"Done\");\n } else {\n $this->info(\"Liquidate all commissions\");\n\n $this->walletService->liquidateAllUsersBalance();\n\n $this->info(\"Done\");\n }\n }", "public function handle()\n {\n $action = $this->choice('what action do you have on mind', [\n 'add-relation', 'remove-columns', 'column-type', 'rename-column'\n ]);\n switch ($action) {\n case 'add-relation':\n $this->addRelation();\n break;\n\n case 'remove-columns':\n $this->removeColumns();\n break;\n case 'column-type':\n $this->columnType();\n break;\n case 'rename-column':\n $this->renameColumn();\n break;\n default:\n $this->error('Unsupported action requested...');\n }\n $this->info('Command executed successfully');\n }", "public function handle()\n {\n $arguments = $this->arguments();\n $storageDir = $arguments['storageDir'];\n $localStorageDir = $arguments['localStorageDir'];\n $url = $arguments['url'];\n $cmd = sprintf(\"./app/Console/Commands/ShellScripts/screen_shot.sh %s %s %s\", $storageDir, $localStorageDir, $url);\n\n while (true) {\n $result = shell_exec($cmd);\n print_r($result);\n sleep(3);\n }\n }", "public function handle()\n {\n $city = $this->argument('city');\n\n $weatherService = new CurrentWeatherService();\n try {\n $weather = $weatherService->getByCity($city);\n } catch (WeatherException $e) {\n $this->error($e->getMessage());\n return;\n }\n\n $this->info('Weather for city '.$city);\n dump($weather->toArray());\n }", "public function handle()\n {\n $this->getModels($this->argument('model'));\n $this->getLanguages($this->argument('locale'));\n $this->createMultiLanguageRecords();\n }", "public function handle()\n {\n $this->processOptions();\n\n echo json_encode( $this->dateTimeRange ) . \"\\n\";\n\n $this->dispatch( new ProcessNewActionsJob(\n $this->dateTimeRange ,\n str_random( 16 ),\n $this->option('runtime-threshold')\n ) );\n }", "public function handle()\n {\n $fightId = $this->argument('fight_id');\n $metricId = $this->argument('metric_id');\n //$strategyName = 'App\\\\'.$this->argument('metric_name');\n\n $metric = BossMetric::find($metricId);\n if ($metric === null) {\n $this->error(\"Error: no metric with id: $metricId found!\");\n return;\n }\n\n $fight = Fight::find($fightId);\n\n if ($fight === null) {\n $this->error(\"Error: no fight with id: $fightId found!\");\n return;\n }\n\n $strategy = $metric->getStrategy();\n $strategy->setFight($fight);\n $strategy->run();\n }", "public function handle()\n {\n\t\t$this->call('vendor:publish');\n\t\t$this->call('migrate');\n\t\t$this->call('db:seed');\n\t\t$this->call('factotum:storage');\n\t\t$this->call('factotum:storage');\n }", "public function handle()\n {\n $user_id = $this->argument('user') ?? null;\n\n if (is_null($user_id)) {\n $users = User::all();\n\n foreach ($users as $user) {\n $this->showUserBalance($user);\n }\n } else {\n $user = User::find($user_id);\n\n $this->showUserBalance($user);\n }\n }", "public function handle()\n {\n $this->capsuleService->getAll();\n $this->line('Command Worked');\n }", "public function handle()\n {\n $platform_wechat_id = $this->argument('id');\n $customer_id = $this->argument('customer_id');\n $this->info(\"Starting at \".date('Y-m-d H:i:s').\". Running initial for 【{$this->signature}】\");\n $this->getUserInfoList($platform_wechat_id,$customer_id);\n $this->info(\"End at \".date('Y-m-d H:i:s').\". over for 【{$this->signature}】\");\n }", "public function handle()\n {\n $this->publishAssets();\n $this->call('twill:flush-manifest');\n $this->call('view:clear');\n }", "public function handle()\n {\n \n $argument = $this->argument('data');\n \n $this->prepare( $argument );\n \n $this->make();\n \n $this->info( 'migration has been created : '. $this->fileName );\n \n }", "public function handle()\n {\n chdir(resource_path('assets/ts'));\n $path = $this->argument(\"path\");\n if(isset($path))\n {\n Logger::info('execute '.$path);\n Command::executeRaw('tsc', [\"-p\", $path]);\n }else\n Logger::info('execute tsc');\n Command::executeRaw('tsc');\n }", "public function handle()\n {\n $this->info('Starting date change command.');\n\n Word::where('language_id', 1)->update(array('created_at' => '1970-01-01 00:00:01'));\n Word::where('language_id', 2)->update(array('created_at' => '1970-01-01 00:00:01'));\n\n $this->info('Dates have been changed to 1970-01-01 00:00:01');\n }", "public function handle()\n {\n $this->info($this->slugger->encode($this->argument('id')));\n }", "public function handle()\n {\n $this->line(static::$logo);\n $this->line('Neat admin current version:' . Neat::version());\n\n $this->comment('');\n $this->comment('Available commands:');\n\n $this->listAvailableCommands();\n }", "public function handle()\n {\n $this->revisions->updateListFiles();\n }", "public function handle(): void\n {\n // Set argument\n $this->url = $this->argument(self::URL_ARGUMENT);\n\n // Handler takes care of computation\n (new CommandHandler($this))->compute();\n }", "public function handle()\n {\n try\n {\n $filename = $this->argument('filename');\n Excel::import(new ObjectsImport, $filename);\n\n $this->info('Data import is now completed');\n }\n catch(Exception $ex)\n {\n $this->error($ex->getMessage());\n }\n }", "public function handle() {\n $entity = $this->validateEntity($this->argument('entity'));\n $job = new DataProcessingJob($entity, str_random(16));\n $this->dispatch($job);\n }", "public function handle()\n {\n $isProductionMode = 'prod' == $this->argument('mode');\n\n if ($isProductionMode) {\n if (!$this->confirm('Are you sure to run in production mode? Running this command may cause critical issues?')) {\n exit(1);\n }\n }\n\n $this->_recalculate($isProductionMode);\n }", "public function handle()\n {\n if(!$this->verify()) {\n $rank = $this->createRankSuperAdmin();\n $user = $this->createUserSuperAdmin();\n $user->Ranks()->attach($rank);\n $this->line('Felicitaciones');\n } else {\n $this->error('No se puede ejecutar');\n }\n }", "public function handle()\n {\n // Get CLI Input\n $user_id = $this->option(\"uid\");\n\n // User Products\n ( new CommandManager() )->showUserProducts( $user_id );\n }", "public function handle()\n {\n $force = $this->option('force');\n\n if($this->option('without-bulk')){\n $this->withoutBulk = true;\n }\n\n if ($this->generateClass($force)){\n $this->info('Generating permissions for '.$this->modelBaseName.' finished');\n }\n }", "public function handle()\n {\n $tournaments = Tournament::all()->toArray();\n foreach ($tournaments as $tournament) {\n $slug = $this->tournamentRepoObj->generateSlug($tournament['name'].Carbon::createFromFormat('d/m/Y', $tournament['start_date'])->year,'');\n DB::table('tournaments')\n ->where('id', $tournament['id'])\n ->update([\n 'slug' => $slug\n ]);\n }\n $this->info('Script executed.');\n }", "public function handle()\n {\n $userId = $this->argument('user');\n\n /** @var User $user */\n $user = User::findOrFail($userId);\n\n // Get token.\n $info = (new Client())->auth();\n\n // Save to db.\n $user->access_token = $info['access_token'];\n $user->access_secret = $info['access_secret'];\n $user->save();\n\n $this->line(\"Saved access token and secret for user: {$user->email}\");\n }", "public function handle()\n {\n $m = new MemberFromText;\n $m->train();\n $id = $m->predict($this->argument('text'));\n dump(Miembro::find($id)->toArray());\n }", "public function handle()\n {\n $this->generator\n ->setConsole($this)\n ->run();\n }", "public function handle()\n {\n $this->createController();\n $this->createServiceDir();\n\n exit;\n $args = [\n '--provider' => TestProvider::class\n ];\n $className = $this->argument('className');\n if (!$className) {\n $className = 'MethodsList';\n }\n $className = ucwords($className);\n $this->call('vendor:publish', $args);\n $this->info('Display this on the screen ' . $className);\n }", "public function handle()\n {\n $this->createDirectories();\n\n $this->publishTests();\n\n $this->info('Authentication tests generated successfully.');\n }", "public function handle()\n {\n $this->setDbConnection(\n $this->input->getOption('database') ?: config('ghost-database.default_connection')\n );\n\n $native = $this->input->getOption('native-import') ?: config('ghost-database.use_native_importer');\n\n $snapshot = $this->import($native);\n\n $this->info(\"Snapshot `{$snapshot->name}` loaded!\");\n }", "public function handle()\n {\n $exec = $this->argument('exec');\n\n switch ($exec) {\n case 'download' :\n $this->download();\n break;\n\n case 'generate' :\n $this->generate();\n break;\n\n default :\n echo \"Choose 'download' or 'generate' for this command\";\n break;\n }\n }", "public function handle()\n {\n $this->call('ziggy:generate', ['path' => './resources/js/ziggy-admin.js', '--group' => 'admin']);\n $this->call('ziggy:generate', ['path' => './resources/js/ziggy-frontend.js', '--group' => 'frontend']);\n $this->call(TranslationsGenerateCommand::class);\n }", "public function handle()\n {\n $tenantName = $this->argument('tenant');\n\n $tenant = Tenant::where('name', $tenantName)->orWhere('subdomain', $tenantName)->first();\n\n if ($tenant) {\n $tenant->setActive();\n \\Artisan::call('tinker');\n } else {\n $this->error('Error: Tenant not found');\n }\n }", "public function handle()\n {\n try {\n if (!empty($userId = $this->argument('user'))) {\n $user = User::find($userId);\n } else {\n $user = User::inRandomOrder()->first();\n }\n\n if (empty($user)) {\n throw new \\Exception('User not found');\n }\n\n echo JWTAuth::fromUser($user);\n } catch (\\Exception $e) {\n echo $e->getMessage();\n }\n\n }", "public function handle()\n {\n $this->fetchAndSetToken();\n $imagesToDownload = $this->peekImages(WatchedApp::pluck('package_name'));\n $this->fetchImages($imagesToDownload);\n\n if ($this->option('dont-optimize')) {\n return;\n }\n\n $this->runOptimizeCommand();\n }", "public function handle()\n {\n $this->setCryptIVFromUrl($this->argument('url'));\n\n $participant = URLParser::parseByName('santa.index', $this->argument('url'))->participant;\n if($participant) {\n $draw = $participant->draw;\n } else {\n $draw = URLParser::parseByName('organizer.index', $this->argument('url'))->draw;\n }\n\n $this->table(\n ['ID', 'Name', 'Email'],\n $draw->participants()->get(['id', 'name', 'email'])->toArray()\n );\n }", "public function handle()\n {\n // if you are on the local environment\n if (!(app()->isLocal() || app()->runningUnitTests())) {\n $this->error('This command is only available on the local environment.');\n return;\n }\n\n $fqdn = $this->argument('fqdn');\n if ($tenant = Tenant::retrieveBy($fqdn)){\n $tenant->delete($fqdn);\n $this->info(\"Tenant {$fqdn} successfully deleted.\");\n }else {\n $this->error('This fqdn doesn\\'t exist.');\n }\n\n }", "public function handle()\n {\n $user_from = $this->option('from');\n $user_to = $this->option('to');\n $sum = $this->option('sum');\n\n CreateTransaction::dispatch($this->usersRepository->getByID($user_from), $this->usersRepository->getByID($user_to), $sum, true);\n $this->transactionsRepository->getAll()->each(function ($transaction){\n \tExecuteTransaction::dispatch($transaction);\n });\n }", "public function handle()\n {\n $this->warn('Starting Retrieve Data');\n\n PeopleService::retrieveData();\n\n $this->info('Retrieve Data Completed');\n }", "public function handle()\n {\n \n $period = $this->option('period');\n \n switch ($period) {\n\n case 'half_month':\n $this->info('Grabing Half Month Income...');\n $this->halfMonth();\n break;\n\n case 'monthly':\n $this->info('Grabing Monthly Income...');\n $this->monthly();\n break;\n \n default:\n $this->info('Grabing Daily Income...');\n $this->daily();\n break;\n\n }\n\n \n }", "public function handle()\n {\n $countryFiles = $this->getFiles();\n\n foreach ($countryFiles as $fileName) {\n $this->seed($fileName);\n }\n\n $this->info('End.');\n }", "public function fire()\n {\n $entityName = $this->argument('entityName');\n $startEntityId = $this->argument('startEntityId');\n $endEntityId = $this->argument('endEntityId');\n $depth = $this->argument('depth');\n\n $this->fixturePath = $this->option('outputPath');\n\n $this->info(\"Generating fixtures for $entityName in {$this->fixturePath}...\");\n \n $this->generateFixtures($entityName, $startEntityId, $endEntityId, $depth);\n }", "public function handle()\n {\n $check = PublishTraitsService::publishTraits();\n\n if ($check)\n {\n $this->info('All files have been published');\n }\n\n $this->info('Failed to publish');\n }", "public function handle()\n {\n $user = User::where('username', $this->argument('user'))\n ->orWhere('email', $this->argument('user'))\n ->first();\n\n if ($user != null) {\n $user->assign('admin');\n $this->line(\"{$user->email} was successfully made an admin.\");\n } else {\n $this->line(\"No user found where username or email is '{$this->argument('user')}'\");\n }\n }", "public function handle()\n {\n event( 'laraview:compile' );\n $this->checkForSelectedViewGeneration();\n\n app( RegisterBlueprint::class )\n ->console( $this )\n ->generate();\n }", "public function handle()\n {\n $project = Project::with(['team.admins', 'team.members'])->findOrFail($this->option('project-id'));\n $user = User::findOrFail($this->option('user-id'));\n if ($this->option('admin')) {\n $project->team->admins()->syncWithoutDetaching($user);\n } else {\n $project->team->members()->syncWithoutDetaching($user);\n }\n return Command::SUCCESS;\n }", "public function handle() {\n try {\n $this->roomService->loadRoomOccupations();\n Log::notice('untis:occupations executed successfully.');\n $this->line('Loaded room occupations from WebUntis.');\n } catch (Exception $e) {\n Log::error('Error loading room occupations.', ['exception' => $e]);\n $this->error('Error loading room occupations: ' . $e->getMessage());\n }\n }", "public function handle()\n {\n $this->loadIxList();\n $this->loadIxMembersList();\n $this->updateIxInfo();\n $this->updateIxMembersInfo();\n }", "public function handle()\n {\n $this->call('vendor:publish', [\n '--provider' => \"Qoraiche\\MailEclipse\\MailEclipseServiceProvider\",\n ]);\n }", "public function handle()\n\t{\n\t\tif ($this->option('dev')) {\n\t\t\tsystem('php '.base_path('.deploy/deploy-dev.php'));\n\t\t} else {\n\t\t\tsystem('php '.base_path('.deploy/deploy.php'));\n\t\t}\n\t}", "public function handle(Command $command);", "public function handle(Command $command);", "public function handle()\n {\n $date_from = $this->argument('date_from');\n\t\t$date_to = $this->argument('date_to');\n\t\tif(!$date_from) {\n\t\t\t$date_from = Carbon::today()->subDays(5);\n\t\t}\n\t\tif(!$date_to) {\n\t\t\t$date_to = Carbon::yesterday();\n\t\t}\n\t\tStats::computeMembers($this->argument('venue_id'), $date_from, $date_to);\n }", "public function handle()\n {\n switch ($this->argument('type')){\n case 'fih':\n $scrapper = new Scrappers\\FederationScrapper();\n $scrapper->get($this->option('level'));\n print $scrapper->message();\n break;\n }\n }", "public function handle()\n {\n Log::info(\"seed:dash Command is working fine!\");\n $this->info('Dashboard Database seeding completed successfully.');\n }", "public function handle()\n {\n $originalId = $this->argument('original_id');\n\n $status = true;\n if ($this->option('status') === 'false') {\n $status = false;\n }\n\n if ($video = Video::where('original_id', $originalId)->first()) {\n $video->dmca_claim = $status;\n $video->save();\n\n $this->info('Video\\'s dmca_claim set to: ' . json_encode($status));\n return ;\n }\n\n $this->error('No video found with original_id of: ' . $originalId);\n return;\n }", "public function handle()\n {\n $this->call('config:clear');\n\n $this->call('config:update');\n\n $this->info('Configuration cached successfully!');\n }", "public function handle()\n {\n //\n $modelName = $this->argument('model');\n $column = $this->argument('column');\n $this->generateMutation($modelName, $column);\n\n }", "public function handle()\n {\n $filePath = 'public/' . $this->argument('fileName');\n $count = $this->argument('count');\n \n $fileData = array_slice(file($filePath), 0, $count);\n $this->info(implode('', $fileData));\n }", "public function handle()\n {\n $email = $this->argument('email');\n\n Mail::to($email)->send(new SendMailable('Test Mail'));\n\n if (Mail::failures()) {\n $this->info('Email failed to send');\n } else {\n $this->info('Email successfully sent');\n }\n }", "public function handle()\n {\n $this->call('route:trans:clear');\n\n $this->cacheRoutesPerLocale();\n\n $this->info('Routes cached successfully for all locales!');\n }", "public function handle()\n {\n $this->info('Welcome to command for Bantenprov\\WilayahIndonesia package');\n }", "public function handle()\n {\n if($this->hasOption('no_dump') && $this->option('no_dump')){\n $this->composer_dump = false;\n }\n $this->readyDatas();\n $this->datas['startSymbol']='{{';\n $this->datas['endSymbol']='}}';\n $this->create();\n }", "public function handle()\n {\n $repository = new OglasiCrawlerRepository();\n $ads = $repository->getAds();\n $repository->saveAds($ads);\n\n echo 'Ads were successfully retrieved' . PHP_EOL;\n }", "public function handle()\n {\n $this->makeDir($this->basePath . $this->kebabPlural());\n\n $this->exportViews();\n\n $this->info('Resource views generated successfully.');\n }", "public function handle()\n {\n $movies = \\App\\Models\\Movie::whereNull('meta')->take(40)->orderBy('id')->get();\n $movies->each(function($movie){ sleep(1); $movie->getMeta(); });\n return Command::SUCCESS;\n }", "public function handle()\n {\n $this->packageGenerator->setConsole($this)\n ->setPackage($this->argument('package'))\n ->setType('shipping')\n ->setForce($this->option('force'))\n ->generate();\n }", "public function handle()\n {\n $test = $this->argument('test');\n\n $dir = config('speed-test.dir');\n\n $className = ucfirst(\\Str::camel($test));\n\n $namespace = config('speed-test.namespace');\n\n $class = class_entity($className)\n ->namespace($namespace);\n\n $class->method('speed1')\n ->line($this->option('line'))->doc(function ($doc) use ($className) {\n /** @var DocumentorEntity $doc */\n $doc->tagCustom('times', $this->option('times'));\n $doc->description($this->option('description') ?: \"{$className} Speed 1\");\n });\n\n if (! is_dir($dir)) {\n mkdir($dir, 0777, 1);\n }\n\n file_put_contents(\n $dir.'/'.$className.'.php',\n $class->wrap('php')\n );\n\n $this->info('Speed created!');\n\n return 0;\n }", "public function handle()\n {\n $message = $this->GenerateRandomUser($this->argument('count'));\n $this->info($message);\n }", "public function handle()\n {\n $host = Cache::get('executingHost', null);\n $this->info(\"Host: ${host}\");\n\n if ($host === null) {\n $this->info('実行するホストが選択されていません');\n return;\n }\n\n if (Schema::hasTable('companies') && Company::count() !== 0) {\n $this->info('マイグレーションが既に1回以上実行されています');\n return;\n }\n\n $should_execute = $host === $this->argument('executingHost');\n\n if ($should_execute) {\n Artisan::call('migrate:fresh', ['--seed' => true]);\n $this->info('マイグレーションが完了しました');\n\n Cache::forget('executingHost');\n } else {\n $this->info('別ホストにてマイグレーションが行われます');\n }\n }", "public function handle()\n {\n // Configuration...\n $this->callSilent('vendor:publish', ['--tag' => 'model-login-config']);\n\n // Migrations\n $this->callSilent('vendor:publish', ['--tag' => 'model-login-migrations']);\n\n $this->info('Model Login resources published.');\n }", "public function handle()\n {\n if ($this->validation()) {\n $money = $this->argument('money');\n Cache::increment('amount', $money);\n }\n }", "public function handle()\n {\n $this->info('Publishing stuff..');\n\n $this->publishFiles();\n\n $this->info('Setup complete. Enjoy!');\n }", "public function handle()\n {\n $this->publishConfig();\n $this->publishClassStub();\n $this->generateAndStoreKey();\n\n $this->info('Use the details below for your \"Lead delivery options\" in Google Ads.');\n $this->info('Webhook URL: ' . route('GoogleAdsLeadExtensionController@index'));\n $this->info('Key: ' . $this->generated_key);\n }", "public function handle()\n {\n $opts = $this->options();\n $args = $this->arguments();\n #print_r($opts);\n #print_r($args);\n\n # Redundant as argument validation handled by Laravel\n #\n if (!isset($args['destination'])) {\n printf(\"Usage: php artisan %s\\n\", $this->signature);\n exit(1);\n }\n\n # Default to normal message type\n #\n if (!isset($opts['type'])) {\n $opts['type'] = 'normal';\n }\n\n $uac = new UserApiController();\n\n if ($opts['type'] == 'normal') {\n if (!isset($opts['message'])) {\n printf(\"Usage: php artisan %s\\n\\n\", $this->signature);\n printf(\"ERROR: Message must be specified for type 'normal'\\n\");\n exit(1);\n }\n $result = $uac->sendSms(\n $args['destination'],\n $opts['message'],\n $opts['route']\n );\n }\n else if ($opts['type'] == 'otp') {\n $result = $uac->sendVerificationSms(\n $args['destination'],\n '<code>',\n '<name>',\n $opts['route'],\n '<appName>'\n );\n }\n\n if ($result === true) {\n printf(\"INFO: SMS message to %s sent successfully (%s)\\n\",\n $args['destination'], $opts['type']);\n }\n else {\n printf(\"INFO: SMS message to %s failed to send (%s)\\n\", \n $args['destination'], $opts['type']);\n printf(\"ERROR: %s\\n\", $result);\n }\n\n return;\n }" ]
[ "0.6469962", "0.6463639", "0.64271367", "0.635053", "0.63190264", "0.62747604", "0.6261977", "0.6261908", "0.6235821", "0.62248456", "0.62217945", "0.6214421", "0.6193356", "0.61916095", "0.6183878", "0.6177804", "0.61763877", "0.6172579", "0.61497146", "0.6148907", "0.61484164", "0.6146793", "0.6139144", "0.61347336", "0.6131662", "0.61164206", "0.61144686", "0.61109483", "0.61082935", "0.6105106", "0.6103338", "0.6102162", "0.61020017", "0.60962653", "0.6095482", "0.6091584", "0.60885274", "0.6083864", "0.6082142", "0.6077832", "0.60766655", "0.607472", "0.60739267", "0.607275", "0.60699606", "0.6069931", "0.6068753", "0.6067665", "0.6061175", "0.60599935", "0.6059836", "0.605693", "0.60499364", "0.60418284", "0.6039709", "0.6031963", "0.6031549", "0.6027515", "0.60255647", "0.60208166", "0.6018581", "0.60179937", "0.6014668", "0.60145515", "0.60141796", "0.6011772", "0.6008498", "0.6007883", "0.60072047", "0.6006732", "0.60039204", "0.6001778", "0.6000803", "0.59996396", "0.5999325", "0.5992452", "0.5987503", "0.5987503", "0.5987477", "0.5986996", "0.59853584", "0.5983282", "0.59804505", "0.5976757", "0.5976542", "0.5973796", "0.5969228", "0.5968169", "0.59655035", "0.59642595", "0.59635514", "0.59619296", "0.5960217", "0.5955025", "0.5954439", "0.59528315", "0.59513766", "0.5947869", "0.59456027", "0.5945575", "0.5945031" ]
0.0
-1
Obtient la valeur d'un attribut.
public function getAttribute($name) { if (isset ( $this->$name )) return $this->$name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getValueAttribute() {}", "function get_valeur_attribut($attribut) {\r\n\r\n\t\t$sql=\"SELECT $attribut\r\n\t\t\t\t FROM les_usagers \r\n\t\t\t\t WHERE id_usager = '$this->id_usager' \";\t \t\t \r\n\r\n\t\t$result = $this->bdd->executer($sql);\r\n\r\n\t\tif ($ligne = mysql_fetch_assoc($result)) {\r\n\r\n\t\t\treturn $ligne[$attribut];\r\n\r\n\t\t}\r\n\t\telse return \"\";\r\n\t\t\t\r\n\t}", "public function getValor($atributo){//retornar algún valor\n \treturn $this->$atributo;\n }", "public function getAttrib() {\n return $this->attrib;\n }", "public function getAttr(): string\r\n {\r\n return $this->attr;\r\n }", "function attribute($text) {\n\t\treturn $this->text($text);\n\t}", "public function getAttributeValue() {\n return $this->attributeValue;\n }", "public function getAttributeString(){\n return $this->_form->getAttributeString($this->_attributes);\n }", "public function getValue() {\n return $this->attributes['value'];\n }", "public function getAttribute(): string\n {\n return $this->attribute;\n }", "public function getValeur()\n {\n return $this->valeur;\n }", "private function getAttribute($attribute)\n\t{\n\t\treturn isset($this->_data->{$attribute}) ? $this->_data->{$attribute} : '';\n\t}", "function getValue()\n {\n return $this->getAttribute(\"value\");\n }", "public function getAttribute($name)\n {\n $value = false;\n $name = htmlspecialchars($name, ENT_QUOTES);\n if (isset($this->attributes[$name])) {\n $value = $this->attributes[$name];\n }\n return $value;\n }", "public function __get($atrib){\n\t\treturn $this->$atrib;\n\t}", "public function get_attribute($name)\n {\n }", "public function __get($atributo){\n\t\treturn $this->$atributo;\n\t}", "public function getAttribute($attribute)\r\n\t{\r\n\t\t\r\n\t}", "public function getViaTableAttributesValue();", "public function getIdentifyingAttribute();", "public function getAttribute()\n {\n return $this->attribute;\n }", "public function getAttribute()\n {\n return $this->attribute;\n }", "public function get_attribute($key, $defaut = NULL);", "public static function get_attribute_returns() {\n return new external_value(PARAM_RAW, 'The course element attribute value');\n }", "public function getValueAttribute()\n\t{\n\t\treturn $this->attributes['valor_total'];\n\t}", "function getAttribute($attribute)\n {\n $this->_attributeDTD->toAttributeInt($attribute);\n }", "public function getAttribute(): string|null\n {\n return $this->attribute;\n }", "public function getAttribute(string $attribute): string;", "public function getAttribute($attribute)\n {\n }", "public function __get($atributo) {\n\t\t\treturn $this->$atributo;\n\t\t}", "public function getExtractAttribute()\n {\n return substr(strip_tags($this->content), 0, 255);\n }", "public function attr() {\n\t\treturn utils::attr($this->attr, func_get_args());\n\t}", "public function getAttr1(){\r\n\t\treturn $this->attr1;\r\n\t}", "public function get($atributo) {\r\n\t\t\treturn $this->$atributo;\r\n\t\t}", "function get_attribute($attribute)\n\t{\n\t\t$attribute = $this->db->getAttribute(constant(\"PDO::\".$attribute.\"\"));\n\n\t\treturn $attribute;\n\t}", "public function get($attribute);", "public function get_attr($id_atributo)\n {\n $this->db->where('id_atributo_b', $id_atributo);\n $resultado = $this->db->get('atributos_b');\n\n return $resultado->row();\n }", "public function __attribute($name)\n {\n return $this->__attributes[$name];\n }", "public function getCustomAttributesAttribute()\n {\n return $this->custom_attributes()->get();\n }", "function getAttribute($attrib, $tag){\r\n //get attribute from html tag\r\n $re = '/' . preg_quote($attrib) . '=([\\'\"])?((?(1).+?|[^\\s>]+))(?(1)\\1)/is';\r\n if (preg_match($re, $tag, $match)) {\r\n\t return $match[2];\r\n }\r\n return false;\r\n}", "public function __GET($attr){\n\n\t\t return $this->$attr;\n\t\t}", "function string_attribute( $p_string ) \r\n{\r\n\t$p_string = string_html_specialchars( $p_string );\r\n\r\n\treturn $p_string;\r\n}", "public function getAttribute()\r\n {\r\n return $this->getElement()->getEntityAttribute();\r\n }", "public function get_attribute($field){\n\t\treturn $this->{$field};\n\t}", "public function getValue(string $attr)\n {\n $this->checkAttribute($attr);\n return $this->attributes[$attr];\n }", "function read_set()\n\t{\n\t\tglobal $REQUEST;\n\t\tif (!$this->writeable)\n\t\t{\n\t\t\tpage_error('Read only attribute ' . $this->name);\n\t\t}\n\t\t$this->value = $REQUEST->read($this->id, $this->mandatory);\n\t\t\n\t\tUtilLogging::getInstance()->debug(\"read_set - Attribute: \". $this->id . \" - value set: \" . $this->value);\n\t}", "public function getValue(): string\n {\n return $this->getAttribute('value');\n }", "public function attributes() // atribūtu savi nosaukumi\n {\n return[ \n 'fname' => 'Vārds',\n 'lname' => 'Uzvārds',\n 'email' => 'E-pasts',\n 'oldpassword' => 'Paroles lauks',\n 'password' => 'Jaunas paroles lauks',\n 'buttontitle' => 'Pogas virsraksts',\n 'buttonlink' => 'Pogas links',\n 'reciever' => 'Saņēmēju lauks',\n 'emailtitle' => 'Ziņas virsrsksts',\n 'emailtext' => 'Ziņas teksts',\n 'transport' => 'Pasākumu lauks'\n ];\n }", "function &objectAttributeContent( &$contentObjectAttribute )\r\n {\r\n return $contentObjectAttribute->attribute( 'data_text' );\r\n }", "public function getValueAttribute($value)\n {\n return $value;\n }", "function stringToAttribute ($string) {\n $string = stringStripTags($string);\n $string = entity::named_to_numeric($string);\n $string = entity::normalize_numeric($string);\n\n if (strtoupper(_CHARSET) == 'UTF-8') {\n $string = entity::numeric_to_utf8($string);\n }\n\n $string = entity::specialchars($string, 'html');\n $string = entity::numeric_to_named($string);\n return $string;\n}", "function get_atribute_by_attribute($attr_name,$attr_value,$exactly,$name_attr)\n {\n return $this->get_attribute_by_attribute($attr_name,$attr_value,$exactly,$name_attr);\n }", "public function __get($attribute)\n {\n if ( isset($this->attributes[$attribute]) ) return $this->attributes[$attribute];\n }", "abstract protected function attributes();", "public function readAttribute($attribute) {}", "public function attributes();", "public function val() {\n\treturn $this->attr(\"value\");\n }", "function getfield(){\r\n // Талбаруудын утгыг авах\r\n }", "public function getValue() {\n\t\t$db = Loader::db();\n\t\t$value = $db->GetOne('select value from atDefault where avID = ?', array($this->getAttributeValueID()));\n\t\t\n\t\t$jsonHelper = Loader::helper('json');\n\t\treturn $jsonHelper->decode($value);\n\t}", "private function getAttributeValue($attribute)\n {\n return array_key_exists($attribute, $this->data) ? $this->data[$attribute] : null;\n }", "function getAttribute($attr) {\n\n $attribute = getEmptyAttribute($attr);\n\n if (function_exists(\"http_status_code\") && $attribute == \"\") {\n http_status_code(409, \"Attribute cannot be empty\");\n } else {\n return $attribute;\n }\n }", "public function __get($attribute) {\n return $this->getAttribute($attribute);\n }", "public function getAttrString(){\n\t\t$this->attrString = '';\n\t\tif(is_array($this->attr))\n\t\t\tarray_walk($this->attr, array($this, 'attrToString')); \n\t}", "function toString( $contentObjectAttribute )\n {\n return $contentObjectAttribute->attribute( 'data_int' );\n }", "function weTag_getAttribute($name, $attribs, $default = '', $type = we_base_request::RAW, $useGlobal = true){\n\t//FIXME: add an array holding attributes accessed for removal!\n\t$value = isset($attribs[$name]) ? $attribs[$name] : $default;\n\t$regs = array();\n\tif($useGlobal && !is_array($value) && preg_match('|^\\\\\\\\?\\$([^\\[]+)(\\[.*\\])?|', $value, $regs)){\n\t\t$value = (isset($regs[2]) ?\n\t\t\tgetArrayValue($GLOBALS, $regs[1], $regs[2]) :\n\t\t\t(isset($GLOBALS[$regs[1]]) ? $GLOBALS[$regs[1]] : ''));\n\t}\n\n\t$value = we_base_request::filterVar($value, (is_bool($type) ? we_base_request::BOOL : $type), $default);\n\n\treturn is_array($value) || is_bool($value) ? $value : htmlspecialchars_decode($value);\n}", "public function getAttr3(){\r\n\t\treturn $this->attr3;\r\n\t}", "public function writeAttribute($attribute, $value) {}", "public function attribute(string $name) {\n\t\treturn $this->m_attributes[$name] ?? null;\n\t}", "public function getIdentityAttribute(): string;", "public function getAttributeName(): string\n {\n return 'BodyContentAttributedValue';\n }", "public function getUserAttr()\n {\n return $this->UserAttr;\n }", "public static function stepAttributesField(): string\n {\n return Config::get('flow.steps.step_attributes_column', 'step_attributes');\n }", "function GetAttributes();", "public function getProductAttributeVarchar($productId, $attributeCode) {\r\n\t$resource = Mage::getSingleton('core/resource');\r\n\t$readConnection = $resource->getConnection('core_read');\r\n\treturn\t\r\n\t $readConnection->fetchOne(\r\n\t 'select value from catalog_product_entity_varchar where entity_id=' . $productId . '\r\n\t\t and attribute_id = (select attribute_id from eav_attribute where attribute_code = \\'' . $attributeCode . '\\')'\r\n );\r\n}", "public function raw()\n {\n return $this->attr_raw;\n }", "public function __get($attribute)\r\n\t{\r\n\t\tif (isset($this->{\"_\".$attribute}))\r\n\t\t{\r\n\t\t\treturn $this->{\"_\".$attribute};\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public function get_nom(){ return $this->_nom;}", "public function get_nom(){ return $this->_nom;}", "public function getValueFormattedAttribute()\n {\n return DataHelper::getFloat2Real($this->getAttribute('value'));\n }", "public function nom_alien()\r\n{\r\n return $this->_nom_alien;\r\n}", "public function attr($atributo) {\n \n if (get_class($this->oObjeto) == 'Contribuinte_Model_EmpresaEcidade') {\n return $this->oObjeto->attr($atributo);\n }\n \n if (self::$aMapeamento[$atributo] != NULL) {\n \n $metodo = 'get' . self::$aMapeamento[$atributo];\n \n return call_user_func_array(array($this->oObjeto, $metodo), array());\n } else {\n return NULL;\n }\n }", "protected function _getAttributeValue($attribute)\n {\n $entry = $this->getEntry();\n $attributeArr = $entry->getGbaseAttribute($attribute);\n if (is_array($attributeArr) && is_object($attributeArr[0])) {\n return $attributeArr[0]->getText();\n }\n return null;\n }", "public function getNom():string{\r\n\r\n\r\n\r\n return $this->nom;\r\n\r\n\r\n\r\n\r\n \t\t\t}", "public function getAttribute($attribute) {\n\t\tif (!$this->attributes) {\n\t\t\t$this->attributes = tx_newspaper::selectOneRow(\n\t\t\t\t'*', tx_newspaper::getTable($this), $this->getCondition()\n\t\t\t);\n\t\t\t$this->setUid($this->attributes['uid']);\n\t\t}\n\n \t\tif (!array_key_exists($attribute, $this->attributes)) {\n \tthrow new tx_newspaper_WrongAttributeException($attribute);\n \t\t}\n \t\treturn $this->attributes[$attribute];\n \t}", "public function __get($attribute)\n {\n return array_get($this->attributes, $attribute);\n }", "public function getAnnee(){\r\n return $this->annee;\r\n }", "public function getCode() {\n return @$this->attributes['code'];\n }", "function e_attr($string)\n{\n return htmlentities($string, ENT_QUOTES, 'UTF-8');\n}", "final protected function f(string $k) {return df_config_field()->getAttribute($k);}", "public function getString( Inx_Api_Recipient_Attribute $oAttribute );", "function __get($attributeAskedFor) {\n echo \"Asked for \" . $attributeAskedFor . \"<br>\";\n return $this->$attributeAskedFor;\n }", "abstract public function writeAttribute($name, $value);", "function getAdditionalAttributes() ;", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();" ]
[ "0.7103127", "0.69427496", "0.6577662", "0.6421904", "0.641418", "0.6333815", "0.6329414", "0.6260588", "0.6255977", "0.621188", "0.6054137", "0.60182476", "0.60130477", "0.6004682", "0.5991258", "0.59883636", "0.59769243", "0.59764457", "0.59758925", "0.59707135", "0.5953074", "0.5953074", "0.59372634", "0.5886485", "0.58764786", "0.5875413", "0.58748496", "0.5858948", "0.5858736", "0.5853595", "0.5849341", "0.58352196", "0.58206195", "0.5792828", "0.5792046", "0.5786095", "0.57503176", "0.5749927", "0.57427603", "0.572931", "0.5724932", "0.5723075", "0.5720423", "0.57098264", "0.57053035", "0.5699619", "0.56929296", "0.5669355", "0.56618273", "0.5643935", "0.5639734", "0.56385267", "0.56300414", "0.56262946", "0.56220627", "0.5620643", "0.56186026", "0.5611432", "0.5608603", "0.56032723", "0.5589133", "0.5574576", "0.5572315", "0.5571342", "0.55660623", "0.55619055", "0.55616045", "0.55566525", "0.5553962", "0.5553312", "0.5550747", "0.55401385", "0.553896", "0.5533362", "0.5529166", "0.5524858", "0.5524207", "0.5524207", "0.55226856", "0.5520882", "0.55149794", "0.55142754", "0.55132735", "0.5513124", "0.5512311", "0.5504672", "0.550433", "0.54994595", "0.54988414", "0.5497969", "0.54971135", "0.5488063", "0.54791623", "0.5478856", "0.5478856", "0.5478856", "0.5478856", "0.5478856", "0.5478856", "0.5478856", "0.5478856" ]
0.0
-1
Fixe la valeur d'un attribut.
public function setAttribute($name, $value) { $value = trim ( $value ); $value = html_entity_decode ( $value, ENT_QUOTES, 'UTF-8' ); return $this->{$name} = $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setNotaAttribute($value)\n {\n $this->attributes['nota'] = (trim($value) !== '' ? $value : ' ');\n }", "public function overlayFixedHtmlAttributeValues() {}", "public function purgeXSS($attribute)\n {\n $this->$attribute = Html::encode($this->$attribute);\n }", "public function getSafeAttribute()\n {\n return static::cleanVersionNumber($this->version_number);\n }", "public function getCleanValue()\n {\n return null;\n }", "protected function getValueAttribute() {}", "protected function cleanValue()\n {\n return str_replace([\n '%',\n '-',\n '+',\n ], '', $this->condition->value);\n }", "protected function normalize_attribute($name, $value)\n {\n }", "protected function setNullAllAttributes()\n\t{\n\t\tforeach( $this->values as $field=>$value )\n\t\t{\n\t\t\tif( $value == \"real\" ) $this->$field = \"\" ;\n\t\t\telse if( $value == \"int\" ) $this->$field = \"\" ;\n\t\t\telse if( $value == \"date\" ) $this->$field = \"\" ;\n\t\t\telse if( $value == \"string\" ) $this->$field = null ;\n\t\t}\n\t}", "public function normalize(): string\n {\n return $this->getValue();\n }", "public function setValorAttribute($value)\n {\n $this->attributes['valor'] = str_replace(\",\", \".\", str_replace(\".\", \"\", $value));\n }", "protected function determineValue()\n {\n $this->value = trim(mb_substr($this->source, 1));\n }", "function sql_null_unwrap($attribute) //-> String\n\t{\n\t\tif (is_null($attribute))\n\t\t{\n\t\t\treturn 'null';\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn strval($attribute);\n\t\t}\n\t}", "private function setAttributeFieldValue()\n {\n // Get all our attribute objects\n $proxiedAttrs = $this->getAttributes();\n \n $data = [];\n foreach ($proxiedAttrs as $attrObjArr) {\n foreach ($attrObjArr as $attrObj) {\n $dataKey = $attrObj->getFieldName();\n $dataVal = $this->getRequest()->postVar($dataKey);\n $data[$dataKey] = $dataVal;\n }\n }\n \n $json = $this->dbObject('AttributeData')->toJson($data);\n $this->setField('AttributeData', $json);\n }", "private function attributeValueUnquotedState()\n {\n $this->char++;\n $char = $this->character($this->char);\n\n if (preg_match('/^[\\t\\n\\x0b\\x0c ]$/', $char)) {\n /* U+0009 CHARACTER TABULATION\n U+000A LINE FEED (LF)\n U+000B LINE TABULATION\n U+000C FORM FEED (FF)\n U+0020 SPACE\n Switch to the before attribute name state. */\n $this->state = 'beforeAttributeName';\n\n } elseif ($char === '&') {\n /* U+0026 AMPERSAND (&)\n Switch to the entity in attribute value state. */\n $this->entityInAttributeValueState();\n\n } elseif ($char === '>') {\n /* U+003E GREATER-THAN SIGN (>)\n Emit the current tag token. Switch to the data state. */\n $this->emitToken($this->token);\n $this->state = 'data';\n\n } else {\n /* Anything else\n Append the current input character to the current attribute's value.\n Stay in the attribute value (unquoted) state. */\n $last = count($this->token['attr']) - 1;\n $this->token['attr'][$last]['value'] .= $char;\n\n $this->state = 'attributeValueUnquoted';\n }\n }", "private function attributeValueUnquotedState() {\n $this->char++;\n $char = $this->character($this->char);\n\n if(preg_match('/^[\\t\\n\\x0b\\x0c ]$/', $char)) {\n /* U+0009 CHARACTER TABULATION\n U+000A LINE FEED (LF)\n U+000B LINE TABULATION\n U+000C FORM FEED (FF)\n U+0020 SPACE\n Switch to the before attribute name state. */\n $this->state = 'beforeAttributeName';\n\n } elseif($char === '&') {\n /* U+0026 AMPERSAND (&)\n Switch to the entity in attribute value state. */\n $this->entityInAttributeValueState();\n\n } elseif($char === '>') {\n /* U+003E GREATER-THAN SIGN (>)\n Emit the current tag token. Switch to the data state. */\n $this->emitToken($this->token);\n $this->state = 'data';\n\n } else {\n /* Anything else\n Append the current input character to the current attribute's value.\n Stay in the attribute value (unquoted) state. */\n $last = count($this->token['attr']) - 1;\n $this->token['attr'][$last]['value'] .= $char;\n\n $this->state = 'attributeValueUnquoted';\n }\n }", "private function miniTidyFixAttr($m)\n\t{\n\t\treturn $m[1].html::escapeHTML(html::decodeEntities($m[2])).$m[3];\n\t}", "public function setApellidoAttribute($value)\n\t{\n\t\t$this->attributes['apellido'] = mb_strtoupper($value);\n\t}", "function clean_value( $t )\n\t{\n\t\treturn $this->parse_clean_value( $t );\n\t}", "public function getValor($atributo){//retornar algún valor\n \treturn $this->$atributo;\n }", "static function prepare_attr_value ($text) {\n\t\tif (is_array($text)) {\n\t\t\tforeach ($text as &$t) {\n\t\t\t\t$t = static::prepare_attr_value($t);\n\t\t\t}\n\t\t\treturn $text;\n\t\t}\n\t\treturn strtr(\n\t\t\t$text,\n\t\t\t[\n\t\t\t\t'&' => '&amp;',\n\t\t\t\t'\"' => '&quot;',\n\t\t\t\t'\\'' => '&apos;',\n\t\t\t\t'<' => '&lt;',\n\t\t\t\t'>' => '&gt;'\n\t\t\t]\n\t\t);\n\t}", "public function __SET($attr, $value){ //Establece valor y atributo\n\n\t\t\t$this->$attr=$value;\n\t\t}", "public function getExtractAttribute()\n {\n return substr(strip_tags($this->content), 0, 255);\n }", "public function setAttributes($values, $safeOnly = true){\n $params = $this->limpiarParametrosConEspacios($values);\n parent::setAttributes($params, $safeOnly);\n $this->barrio = strtolower($this->barrio);\n $this->calle = strtolower($this->calle);\n }", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setNivel_stgr('');\n $this->setDesc_nivel('');\n $this->setDesc_breve('');\n $this->setOrden('');\n $this->setPrimary_key($aPK);\n }", "public function getValueAttribute($value)\n {\n return clean($value, 'iframe');\n }", "function stringToAttribute ($string) {\n $string = stringStripTags($string);\n $string = entity::named_to_numeric($string);\n $string = entity::normalize_numeric($string);\n\n if (strtoupper(_CHARSET) == 'UTF-8') {\n $string = entity::numeric_to_utf8($string);\n }\n\n $string = entity::specialchars($string, 'html');\n $string = entity::numeric_to_named($string);\n return $string;\n}", "public function overlayUserdefinedHtmlAttributeValues() {}", "public function onUnsafeAttribute($name, $value)\n {\n $this->$name = $value;\n }", "public function beforeSave()\n\t{\n\t\tif ( parent::beforeSave() )\n\t\t{\n\t\t\t//\tStrips off all bogus characters from numbers\n\t\t\tforeach ( $this->getAttributes() as $_sKey => $_oValue )\n\t\t\t{\n\t\t\t\tif ( $this->tableSchema->columns[ $_sKey ]->type != 'string' && null !== $_oValue && $_oValue != '' )\n\t\t\t\t{\n\t\t\t\t\t$_sTestVal = trim( $_oValue, '+-.,0123456789' );\n\n\t\t\t\t\tif ( ! empty( $_sTestVal ) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->{$_sKey} = floatval( preg_replace('/[\\+\\-\\,]/', '', $_oValue ) );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "function string_attribute( $p_string ) \r\n{\r\n\t$p_string = string_html_specialchars( $p_string );\r\n\r\n\treturn $p_string;\r\n}", "public function __set($atributo, $valor) {\n\t\t\t// $this->modelo = $valor;\n\t\t\t$this->$atributo = $valor;\n\t\t}", "public function getRemoveOriginalValue();", "public function unset(): void\n\t{\n\t\t$this->_value = $this->_allowNull ? null : self::setType('', gettype($this->_value));\n\t}", "function initializeObjectAttribute ( \n $contentObjectAttribute, \n $currentVersion, \n $originalContentObjectAttribute )\n {\n if ( $currentVersion != false )\n {\n // $contentObjectAttributeID = $contentObjectAttribute->attribute( \"id\" );\n // $currentObjectAttribute = eZContentObjectAttribute::fetch( $contentObjectAttributeID,\n // $currentVersion );\n $dataText = $originalContentObjectAttribute->attribute( \"data_text\" );\n $contentObjectAttribute->setAttribute( \"data_text\", $dataText );\n }\n }", "public function __SET($att, $valor){\r\n $this->$att = $valor;\r\n}", "public function copyAttributesToValues()\n\t{\n\t\tforeach( $this->values as $field=>$value )\n\t\t{\n\t\t\t$this->values[$field] = $this->$field ;\n\t\t}\n\t}", "public function sanitizing_attributes_sql($atr){\n\t\t$atr1 = $mysqli->real_escape_string($atr); //escapes special chars\n\t\treturn $atr1;\n\t}", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_dl('');\n $this->setDl('');\n $this->setRegion('');\n $this->setNombre_dl('');\n $this->setGrupo_estudios('');\n $this->setRegion_stgr('');\n $this->setStatus('');\n $this->setPrimary_key($aPK);\n }", "public function setTitelAttribute($value)\n {\n $this->attributes['titel'] = $value ?: null;\n }", "function setData($name, $value, $clean = true)\n\t{\n\t\tif ($clean)\n\t\t{\n\t\t\t$this->data[$name] = htmlentities($value, ENT_QUOTES);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->data[$name] = $value;\n\t\t}\n\t}", "public function __get($name)\n\t{\n\t\tif ($name == 'clean_value') {\n\t\t\tif (isset($this->clean_value)) {\n\t\t\t\treturn $this->clean_value;\n\t\t\t} else {\n\t\t\t\t$this->clean_value = ee()->security->xss_clean($this->value);\n\t\t\t\treturn $this->clean_value;\n\t\t\t}\n\t\t}\n\t}", "function attribute($text) {\n\t\treturn $this->text($text);\n\t}", "function setSequrity($data){\n $data = trim($data);\n $data = stripslashes($data);\n $data = htmlspecialchars($data);\n return $data;\n}", "function protectAttr($str,$name=false)\n\t{\n\t\tif ($name && !preg_match('/^[A-Za-z][A-Za-z0-9_:.-]*$/',$str)) {\n\t\t\treturn '';\n\t\t}\n\t\t\n\t\treturn str_replace(array(\"'\",'\"'),array('&#039;','&quot;'),$str);\n\t}", "public function setAttributes();", "function get_valeur_attribut($attribut) {\r\n\r\n\t\t$sql=\"SELECT $attribut\r\n\t\t\t\t FROM les_usagers \r\n\t\t\t\t WHERE id_usager = '$this->id_usager' \";\t \t\t \r\n\r\n\t\t$result = $this->bdd->executer($sql);\r\n\r\n\t\tif ($ligne = mysql_fetch_assoc($result)) {\r\n\r\n\t\t\treturn $ligne[$attribut];\r\n\r\n\t\t}\r\n\t\telse return \"\";\r\n\t\t\t\r\n\t}", "public function setAttribute($key, $value)\n {\n if (is_string($value)) {\n $value = trim($value);\n }\n\n if (empty($value) && $value != \"0\") {\n $value = null;\n }\n\n parent::setAttribute($key, $value);\n }", "public function getModifiedValue(): string\n {\n\t\treturn $this->applyModifiers((string) $this->value);\n\t}", "function fixAttributes(&$template,$attribute) {\n\tif ( ! is_array($template[$attribute]) ) return;\n\tif ( $template[$attribute]['@attributes'] ) {\n\t\t$template[$attribute][0]['@attributes'] = $template[$attribute]['@attributes'];\n\t\tif ( $template[$attribute]['value'])\n\t\t\t$template[$attribute][0]['value'] = $template[$attribute]['value'];\n\n\t\tunset($template[$attribute]['@attributes']);\n\t\tunset($template[$attribute]['value']);\n\t}\n\n\tif ( $template[$attribute] ) {\n\t\tforeach ($template[$attribute] as $tempArray) {\n\t\t\t$tempArray2[] = $tempArray['value'] ? array('@attributes'=>$tempArray['@attributes'],'@value'=>$tempArray['value']) : array('@attributes'=>$tempArray['@attributes']);\n\t\t}\n\t\t$template[$attribute] = $tempArray2;\n\t}\n}", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_item('');\n $this->setId_enc('');\n $this->setId_nom('');\n $this->setModo('');\n $this->setF_ini('');\n $this->setF_fin('');\n $this->setId_nom_new('');\n $this->setPrimary_key($aPK);\n }", "function read_set()\n\t{\n\t\tglobal $REQUEST;\n\t\tif (!$this->writeable)\n\t\t{\n\t\t\tpage_error('Read only attribute ' . $this->name);\n\t\t}\n\t\t$this->value = $REQUEST->read($this->id, $this->mandatory);\n\t\t\n\t\tUtilLogging::getInstance()->debug(\"read_set - Attribute: \". $this->id . \" - value set: \" . $this->value);\n\t}", "public function setAlamatAttribute($alamat)\n {\n $this->attributes['alamat'] = trim(strtolower($alamat));\n }", "public function updateString( Inx_Api_Recipient_Attribute $attr, $sValue );", "function e_attr($string)\n{\n return htmlentities($string, ENT_QUOTES, 'UTF-8');\n}", "protected function normalize()\r\n\t{\r\n\t\tif ($this->isFetched())\r\n\t\t{\r\n\t\t\tif ($this->validationInfo)\r\n\t\t\t{\r\n\t\t\t\t$this->normalizedValue = $this->validationInfo->normalize($this->taintValue);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$this->normalizedValue = $this->taintValue;\r\n\t\t\t}\t\r\n\t\t}\r\n\t}", "protected function definoValorAtributo($carac, $registro) {\n switch (substr($registro['valorz'], 0, 6)) {\n case 'String':\n $cantC = str_replace('String(', '', $registro['valorz']);\n $valor = htmlspecialchars(substr($carac['contenido'], 0, $cantC));\n break;\n case 'Numeri':\n $valor = intval($carac['contenido']);\n break;\n default:\n $valor = $this->casteoCarac($carac, $registro);\n break;\n }\n\n if ($valor != '' && $valor != 0) {\n $this->arrayObligatorios[$registro['id_zpcarac']] = 1;\n }\n return $valor;\n }", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_schema('');\n $this->setId_nom('');\n $this->setId_nivel('');\n $this->setId_asignatura('');\n $this->setId_situacion('');\n // la fecha debe estar antes del acta por si hay que usar la funcion inventarActa.\n $this->setF_acta('');\n $this->setActa('');\n $this->setDetalle('');\n $this->setPreceptor('');\n $this->setId_preceptor('');\n $this->setEpoca('');\n $this->setId_activ('');\n $this->setNota_num('');\n $this->setNota_max('');\n $this->setTipo_acta('');\n $this->setPrimary_key($aPK);\n }", "public function setAmountAttribute($input)\n { \n $this->attributes['amount'] = $input ? $input : null;\n }", "function clean($data){\n\t\t$this->data = $data;\n\t\t$data = trim($data);\n\t\t$data = stripcslashes($data);\n\t\t$data = htmlspecialchars($data);\n\t\treturn $data;\n\t}", "function initializeObjectAttribute( $contentObjectAttribute, $currentVersion, $originalContentObjectAttribute )\n {\n if ( $currentVersion != false )\n {\n $dataText = $originalContentObjectAttribute->content();\n $contentObjectAttribute->setContent( $dataText );\n }\n else\n {\n $default = array( 'value' => array() );\n $contentObjectAttribute->setContent( $default );\n }\n }", "protected function value_char()\n {\n }", "public function unsetAllAttributeValue()\n {\n foreach ($this->attributes as $key=>$val) {\n $this->$key = null;\n }\n }", "public function __set($name, $value)\n {\n // Don't allow to set attributes\n }", "function RemoveAcento($valor) {\n\treturn preg_replace('/[`^~\\'\"]/', null, iconv('UTF-8', 'ASCII//TRANSLIT', $valor));\n}", "function set_attr($attr=array()) {\n $this->other_attr = $attr;\n }", "public function __set($atrib, $value){\n\t\t$this->$atrib = $value;\n\t}", "public function getValueFormattedAttribute()\n {\n return DataHelper::getFloat2Real($this->getAttribute('value'));\n }", "public function __clone()\n {\n $this->attribute = clone $this->attribute;\n $this->value = null;\n\n if ($this->isMultilingual()) {\n $this->attribute->delete(['unique', 'uniques']);\n\n $options = [];\n if (is_array($this->multilingual)) {\n $options = $this->multilingual;\n } elseif (true === $this->multilingual) {\n $options = $this->rules->getAttribute(null);\n// Translation input is not required\n unset($options['notnull']);\n } elseif (1 === $this->multilingual) {\n $options = $this->rules->getAttribute(null);\n } elseif (!is_numeric($this->multilingual)) {\n $options = ['rules' => $this->multilingual];\n }\n\n $this->setRule($options);\n }\n }", "public function sanitize_value(){\n if(is_string($this->value)){\n $json_value = json_decode($this->value, true);\n if(json_last_error() == JSON_ERROR_NONE)\n $this->value = $json_value;\n }\n }", "public function sanitize_value(){\n if(is_string($this->value)){\n $json_value = json_decode($this->value, true);\n if(json_last_error() == JSON_ERROR_NONE)\n $this->value = $json_value;\n }\n }", "public function cleanOnUpdate()\n {\n $value = $this->getAttribute('clean');\n \n return 'true' == $value?true:false;\n \n }", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_item('');\n $this->setId_ubi('');\n $this->setF_gasto('');\n $this->setTipo('');\n $this->setCantidad('');\n $this->setPrimary_key($aPK);\n }", "protected function clean_saved_value() {\n\t\tif ( $this->saved_value !== '' ) {\n\t\t\tif ( ! is_array( $this->saved_value ) && ! is_object( $this->saved_value ) ) {\n\t\t\t\tFrmAppHelper::unserialize_or_decode( $this->saved_value );\n\t\t\t}\n\n\t\t\tif ( is_array( $this->saved_value ) && empty( $this->saved_value ) ) {\n\t\t\t\t$this->saved_value = '';\n\t\t\t}\n\t\t}\n\t}", "public function setIdAuteur($idauteur){\n\t\t$idauteur = (int) $idauteur;\n\t\t// On vérifie ensuite si ce nombre est bien strictement positif.\n\t\tif ($idauteur > 0){\n\t\t\t// Si c'est le cas, c'est tout bon, on assigne la valeur à l'attribut correspondant.\n\t\t\t$this->_idauteur = $idauteur;\n\t\t}\n\t}", "public function set($atributo, $valor) {\r\n\t\t\t $this->$atributo = $valor;\r\n\t\t}", "public function setAmountAttribute($input)\n {\n if ($input != '') {\n $this->attributes['amount'] = $input;\n } else {\n $this->attributes['amount'] = null;\n }\n }", "function update_article_attribute($id, $attribute_name, $attribute_value)\n{\n\tglobal $db;\n\n\t$sql = 'UPDATE article_cache SET ' \t. $attribute_name . '=' . $db->qstr($attribute_value)\n\t\t. ' WHERE (id=' . $id . ')';\n\t\t\n\t//echo $sql;\n\t\n\t$result = $db->Execute($sql);\n\tif ($result == false) die(\"failed [\" . __LINE__ . \"]: \" . $sql);\n}", "public function afterSave()\r\n\t{\r\n\t\tif(count($this->serialAttributes)) {\r\n\t\t\tforeach($this->serialAttributes as $attribute) {\r\n\t\t\t\t$_att = $this->owner->$attribute;\r\n\t\t\t\tif(!empty($_att)\r\n\t\t\t\t && is_scalar($_att)) {\r\n\t\t\t\t\t$a = @unserialize($_att);\r\n\t\t\t\t\tif($a !== false) {\r\n\t\t\t\t\t\t$this->owner->$attribute = $a;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$this->owner->$attribute = null;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t}", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_schema('');\n $this->setId_situacion('');\n $this->setDescripcion('');\n $this->setSuperada('');\n $this->setBreve('');\n $this->setPrimary_key($aPK);\n }", "private function setAttributeValueFromField(string $field_name) {\n // We need to unaltered field data value here not the field value returned\n // by $this->get($field_name)->value (magic getter).\n $field_value = $this->get($field_name)->getValue();\n // Property not found so let's save it as an attribute value.\n $attribute_value = $this->fieldAttributeConverter()->getAttributeValueFromField($this->entityTypeId, $field_name, $field_value);\n if ($attribute_value !== NULL) {\n $attribute_name = $this->fieldAttributeConverter()->getAttributeName($field_name);\n // Do not leave empty attributes. If generated attribute value is an\n // empty string let's remove it from the entity.\n // (Apigee Edge MGMT UI does not allow to save an entity with empty\n // attribute value, the API does.)\n if ($attribute_value === '') {\n $this->decorated->deleteAttribute($attribute_name);\n }\n else {\n $this->decorated->setAttribute($attribute_name, $attribute_value);\n }\n }\n }", "public function sanitizeFreeText()\n {\n $this->label = AdapterUtil::reencode($this->label);\n $this->street = AdapterUtil::reencode($this->street);\n $this->locality = AdapterUtil::reencode($this->locality);\n $this->region = AdapterUtil::reencode($this->region);\n $this->country = AdapterUtil::reencode($this->country);\n }", "public function toHash(RelationAttributeBase $attribute)\n {\n if ($attribute instanceof TextLineValue) {\n return $attribute->value;\n }\n\n return null;\n }", "public function setApeynomAttribute($val)\n {\n $this->attributes['apeynom'] = trim($val);\n $this->attributes['slug'] = str_slug($val);\n }", "public function sanitizeValueOnSave(): bool\n {\n return true;\n }", "protected function get_formatted_attributes(): string\n\t{\n\t\treturn $this->unsigned ? 'UNSIGNED' : '';\n\t}", "public function attributeTrim($attribute, $params) {\r\n if($this->$attribute != null && gettype($this->$attribute)==\"string\"){\r\n $this->$attribute = trim($this->$attribute);\r\n }\r\n \r\n if($attribute==\"condiciones\" && empty($this->condiciones)){\r\n $this->condiciones = null;\r\n }\r\n }", "public function message()\n {\n return __('el :attribute debe tener 8 caracteres, un numero,una letra mayuscula y una letra minuscula');\n }", "protected function _generateAttributeOnToken()\n\t{\n\t\tif (!isset($this->_tempToken[\"args\"][\"attributes\"])) {\n\t\t\t$this->_tempToken[\"args\"][\"attributes\"] = array();\n\t\t}\n\t\tif (isset($this->_tempToken[\"args\"][\"attributes\"][$this->_attribute])) {\n\t\t\t$this->_attribute = null;\n\t\t} else {\n\t\t\t$this->_tempToken[\"args\"][\"attributes\"][$this->_attribute] = array(\n\t\t\t\t\"value\" => \"\"\n\t\t\t);\n\t\t}\n\t}", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_schema('');\n $this->setId_activ('');\n $this->setId_asignatura('');\n $this->setId_nom('');\n $this->setId_nivel('');\n $this->setId_situacion('');\n $this->setPreceptor('');\n $this->setId_preceptor('');\n $this->setNota_num('');\n $this->setNota_max('');\n $this->setActa('');\n $this->setPrimary_key($aPK);\n }", "public function setViaTableAttributesValue($value);", "function add_atributo($nombre, $valor, $conv_utf8 = false)\n\t{\n\t\t$this->xml->startAttribute($nombre);\n\t\tif (is_bool($valor)) {\n\t\t\t$valor = ($valor) ? 'TRUE': 'FALSE';\n\t\t}\n\n\t\tif ($conv_utf8) {\n\t\t\t$this->xml->text(utf8_e_seguro($valor));\n\t\t} else {\n\t\t\t$this->xml->text($valor);\n\t\t}\n\t\t$this->xml->endAttribute();\n\t}", "public function getAttrString(){\n\t\t$this->attrString = '';\n\t\tif(is_array($this->attr))\n\t\t\tarray_walk($this->attr, array($this, 'attrToString')); \n\t}", "function _xss_clean($field, $is_image = FALSE)\r\n\t{\r\n\t\t$this->{$field} = xss_clean($this->{$field}, $is_image);\r\n\t}", "function getfield(){\r\n // Талбаруудын утгыг авах\r\n }", "public function setValueAttribute($value)\n {\n $this->attributes['value'] = strtoupper($value);\n }", "public function setTempatLahirAttribute($tempat_lahir)\n {\n $this->attributes['tempat_lahir'] = trim(strtolower($tempat_lahir));\n }", "public function setBirthdayAttribute($value)\n {\n $this->attributes['birthday'] = trim($value) ?: null;\n }", "protected function _cleanAtomAttribute($string)\n {\n return Mage::helper('core/string')\n ->substr(preg_replace('/[\\pC¢€•—™°½]|shipping/ui', '', $string), 0, 3500);\n }", "private function beforeAttributeValueState()\n {\n $this->char++;\n $char = $this->character($this->char);\n\n if (preg_match('/^[\\t\\n\\x0b\\x0c ]$/', $char)) {\n /* U+0009 CHARACTER TABULATION\n U+000A LINE FEED (LF)\n U+000B LINE TABULATION\n U+000C FORM FEED (FF)\n U+0020 SPACE\n Stay in the before attribute value state. */\n $this->state = 'beforeAttributeValue';\n\n } elseif ($char === '\"') {\n /* U+0022 QUOTATION MARK (\")\n Switch to the attribute value (double-quoted) state. */\n $this->state = 'attributeValueDoubleQuoted';\n\n } elseif ($char === '&') {\n /* U+0026 AMPERSAND (&)\n Switch to the attribute value (unquoted) state and reconsume\n this input character. */\n $this->char--;\n $this->state = 'attributeValueUnquoted';\n\n } elseif ($char === '\\'') {\n /* U+0027 APOSTROPHE (')\n Switch to the attribute value (single-quoted) state. */\n $this->state = 'attributeValueSingleQuoted';\n\n } elseif ($char === '>') {\n /* U+003E GREATER-THAN SIGN (>)\n Emit the current tag token. Switch to the data state. */\n $this->emitToken($this->token);\n $this->state = 'data';\n\n } else {\n /* Anything else\n Append the current input character to the current attribute's value.\n Switch to the attribute value (unquoted) state. */\n $last = count($this->token['attr']) - 1;\n $this->token['attr'][$last]['value'] .= $char;\n\n $this->state = 'attributeValueUnquoted';\n }\n }" ]
[ "0.5979775", "0.59066147", "0.576173", "0.5697363", "0.56657976", "0.56615996", "0.5598737", "0.55244166", "0.55091465", "0.547409", "0.5473012", "0.5449926", "0.5432765", "0.54270566", "0.5407208", "0.5402144", "0.53526765", "0.53149843", "0.527527", "0.52732766", "0.5263296", "0.52452517", "0.52413887", "0.5236087", "0.52063936", "0.5193006", "0.5175251", "0.51665044", "0.5158628", "0.5156042", "0.5144893", "0.51378155", "0.51342", "0.5127715", "0.51259106", "0.51180845", "0.51038873", "0.510348", "0.5103445", "0.5102581", "0.5098705", "0.50976855", "0.508792", "0.50872314", "0.508557", "0.5083682", "0.50774825", "0.50740445", "0.5073786", "0.5071876", "0.5071352", "0.5066813", "0.50615245", "0.50600666", "0.5056576", "0.5048606", "0.5044697", "0.502509", "0.5010772", "0.50083077", "0.5007923", "0.5005421", "0.499936", "0.49973652", "0.49930078", "0.49874428", "0.49833578", "0.49740425", "0.4961777", "0.49614397", "0.49614397", "0.49614018", "0.49612796", "0.49591094", "0.495643", "0.4947671", "0.49459356", "0.4942603", "0.49418822", "0.49360335", "0.4932444", "0.4931811", "0.49311748", "0.49258864", "0.49242795", "0.49224347", "0.492105", "0.4920914", "0.49201342", "0.49132544", "0.49084094", "0.49076793", "0.49067014", "0.49055728", "0.49046704", "0.49023637", "0.4900604", "0.4896845", "0.48918173", "0.48873994" ]
0.5220154
24
Obtient l'adresse de facturation.
public function getStreet() { return $this->getAttribute ( 'street' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_adresse();", "public function get_adresse()\n {\n return $this->_adresse;\n }", "public function getAdresse()\n {\n return $this->adresse;\n }", "public function getAdresse()\n {\n return $this->adresse;\n }", "public function getAdresse()\n {\n return $this->Adresse;\n }", "public function getAdresseServeur() {\n $ad = (@$_SERVER['SERVER_ADDR'] == '::1') ? \"localhost\" : @$_SERVER['SERVER_ADDR'];\n\n return $ad;\n }", "public function getAdress()\n {\n return $this->adress;\n }", "public function getAdress()\n {\n return $this->adress;\n }", "public function getAdresse_employeur()\n {\n return $this->adresse_employeur;\n }", "public function __toString() {\n return $this->adresse;\n }", "public function getAddress() {}", "public function getAdresse()\n {\n $stmt = $this->conn->prepare(\"SELECT *\n FROM Adresse\");\n //Exécution de la requete\n $stmt->execute();\n //Récupération du résultat dans la variable resultat\n $resultat = $stmt->get_result();\n //Fermeture de la connection avec la base de données MySql\n $stmt->close();\n //Retour de la variable resultat\n return $resultat;\n }", "public function getAddress();", "public function getAddress();", "public function getAdressetierce()\n {\n return $this->adressetierce;\n }", "public function getAddress()\n {\n $res = $this->getEntity()->getAddress();\n\t\tif($res === null)\n\t\t{\n\t\t\tSDIS62_Model_DAO_Abstract::getInstance($this::$type_objet)->create($this);\n\t\t\treturn $this->getEntity()->getAddress();\n\t\t}\n return $res;\n }", "function address() { return ($this->address); }", "public function getAdressePostal() \n {\n return $this->adressePostal;\n }", "function AfficherAdresse($adresse_id)\n { \n require(\"db/connect.php\");\n $requete=\"SELECT * FROM adresse WHERE adresse_id = $adresse_id\";\n $resultat=$BDD -> query($requete);\n //on stocke les résultats de la requete dans $adresse\n $adresse=$resultat->fetch();\n print '<h3><a href=\"https://www.google.fr/maps/place/'.$adresse['adresse_voie'].' '.$adresse['adresse_cp'].' '.$adresse['adresse_ville'].' '.$adresse['adresse_pays'].'\">'.$adresse['adresse_ville'].'</a></h3>';\n print $adresse['adresse_voie'].'<br/>';\n print $adresse['adresse_cp'].' '.$adresse['adresse_ville'];\n print '<br/>'.$adresse['adresse_pays'];\n }", "public function getEtblAdresse1() {\n return $this->etblAdresse1;\n }", "public function getEtblAdresse1() {\n return $this->etblAdresse1;\n }", "function setAdresse($adresse){\n if(empty($adresse)){\n header(\"Location:../vu/formulaire_inscription.php\");\n return;\n }\n //on declare de la variable adresse puis on appelle la varibale prive adresse\n $this->_adresse = $adresse;\n }", "public function getAddress() {\n if($this->isCash) {\n return $this->getPdfUrl(Dotpay::getInstance()->getSettings()->getPaymentUrl());\n } else {\n return $this->getBankPage(Dotpay::getInstance()->getSettings()->getPaymentUrl());\n }\n }", "public function setAdresse($adresse)\n {\n $this->adresse = $adresse;\n }", "public function getEtblAdresse3() {\n return $this->etblAdresse3;\n }", "public function getEtblAdresse2() {\n return $this->etblAdresse2;\n }", "public function getEtblAdresse2() {\n return $this->etblAdresse2;\n }", "public function get_adresse_ip()\n {\n return $this->adresse_ip;\n }", "private function get_address()\n\t{\n\t\treturn $this->m_address;\n\t}", "public function getIdAdresse(): ?Adresse\n {\n return $this->idAdresse;\n }", "public function getAddress()\n {\n return $this->get('address')->value;\n }", "public function getAddress(): string\n {\n return $this->address;\n }", "public function getAddress()\n {\n \treturn $this->address;\n }", "public function address(): string\n {\n return $this->address;\n }", "public function getPontoReferencia() {\n return $this->sPontoReferencia;\n }", "public function getAddress(){\r\n\t\treturn $this->address;\r\n\t}", "public function set_adresse($_adresse)\n {\n $this->_adresse = $_adresse;\n\n return $this;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function afficher(Requete $requete) {\n\t\t$urlParams = $requete->getUrlParams();\n\t\tif (isset($urlParams[0]) && is_numeric($urlParams[0])) {\n\t\t\t$adresse_id = $urlParams[0];\n\t\t\t$Adresses = new Adresses();\n\t\t\t$data = $Adresses->findById($adresse_id);\n\t\t\tif ($data !== false) {\n\t\t\t\treturn $this->render(\"affichage\", array(\"adresse\" => $data));\n\t\t\t}\n\t\t\treturn $this->render(\"affichage\", array(\n\t\t\t\t\"erreur\" => [\"message\" => \"adresse inconnue\"]\n\t\t\t));\n\t\t}\n\t\treturn $this->render(\"affichage\", array(\n\t\t\t\"erreur\" => [\"message\" => \"id manquant\"]\n\t\t));\n\t}", "public function getAddress()\r\n {\r\n return $this->address;\r\n }", "public function getaddress(){\n $address = $this->_run('getaddress');\n return $address;\n }", "public function getAddress(){\n\t\treturn $this->sourceAddress;\n\t}", "public function getEmpAdresse1() {\n return $this->empAdresse1;\n }", "public function getAddr() : string\n {\n return $this->addr;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress() {\n return $this->address;\n }", "public function getAddress()\n\t{\n\t\treturn $this->data['address'];\n\t}", "public function getBancoUrl()\t{\n\t\treturn 'https://geraboleto.sicoobnet.com.br/geradorBoleto/GerarBoleto.do';\n\t}", "function getAddress() {\n\t\t\t// check for https\n\t\t\t$protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http';\n\t\t\t// return the full address\n\t\t\treturn $protocol.'://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];\n\t\t}", "public function getAdrPersonne()\n {\n return $this->adrPersonne;\n }", "function sduconnect_get_address_pdc_data($xpath, $query_path) {\n $fields = [\n// 'land',\n 'naam',\n 'b_straat',\n 'b_nummer',\n 'b_pcode',\n 'b_stad',\n 'p_straat',\n 'p_nummer',\n 'p_postcode',\n 'p_po_box',\n 'p_woonplaats',\n 'telefoon',\n 'fax',\n 'email',\n 'url',\n 'url_naam',\n// 'opmerkingen',\n 'afdeling/m:hoofd_afdeling',\n 'afdeling/m:afdeling_naam',\n 'afdeling/m:persoon/m:functie',\n 'afdeling/m:persoon/m:naam',\n 'afdeling/m:persoon/m:telefoonnummer',\n 'afdeling/m:persoon/m:email',\n 'afdeling/m:persoon/m:opmerking',\n ];\n\n $bezoek_adres = '<strong>' . t('Bezoekadres') . ':</strong><br />';\n $bezoek_line_one = '';\n $bezoek_line_two = '';\n $post_adres = '<strong>' . t('Postadres') . ':</strong><br />';\n $post_line_one = '';\n $post_line_two = '';\n $post_line_three = '';\n\n $addresses = [];\n foreach ($fields as $field) {\n if ($address_data = sduconnect_nodelist_to_string($xpath->query($query_path . $field))) {\n if (in_array($field, ['b_straat', 'b_nummer', 'b_pcode', 'b_stad'])) {\n $addresses['bezoekadres'] = $bezoek_adres;\n if (in_array($field, ['b_straat', 'b_nummer'])) {\n $bezoek_line_one = trim($bezoek_line_one . ' ' . $address_data);\n }\n if (in_array($field, ['b_pcode', 'b_stad'])) {\n $bezoek_line_two = trim($bezoek_line_two . ' ' . $address_data);\n }\n }\n elseif (in_array($field, [\n 'p_straat',\n 'p_nummer',\n 'p_postcode',\n 'p_po_box',\n 'p_woonplaats',\n ])) {\n $addresses['postadres'] = $post_adres;\n if (in_array($field, ['p_straat', 'p_nummer'])) {\n $post_line_one = trim($post_line_one . ' ' . $address_data);\n }\n if (in_array($field, ['p_po_box'])) {\n $post_line_two = trim($post_line_two . ' ' . $address_data);\n }\n if (in_array($field, ['p_postcode', 'p_woonplaats'])) {\n $post_line_three = trim($post_line_three . ' ' . $address_data);\n }\n }\n else {\n $addresses[$field] = $address_data;\n }\n }\n }\n\n if (!empty($addresses)) {\n\n // Set fields formatting and save a right order of items.\n if (!empty($addresses['naam'])) {\n $addresses['naam'] = '<strong>' . $addresses['naam'] . '</strong>';\n }\n if (!empty($addresses['url']) && !empty($addresses['url_naam'])) {\n $addresses['url'] = l($addresses['url_naam'], $addresses['url']);\n unset($addresses['url_naam']);\n }\n if (!empty($addresses['bezoekadres'])) {\n if ($bezoek_line_one) {\n $addresses['bezoekadres'] = $addresses['bezoekadres'] . $bezoek_line_one . '<br />';\n }\n if ($bezoek_line_two) {\n $addresses['bezoekadres'] = $addresses['bezoekadres'] . $bezoek_line_two;\n }\n $addresses['bezoekadres'] = '<p>' . $addresses['bezoekadres'] . '</p>';\n }\n if (!empty($addresses['postadres'])) {\n if ($post_line_one) {\n $addresses['postadres'] = $addresses['postadres'] . $post_line_one . '<br />';\n }\n if ($post_line_two) {\n $addresses['postadres'] = $addresses['postadres'] . $post_line_two . '<br />';\n }\n if ($post_line_three) {\n $addresses['postadres'] = $addresses['postadres'] . $post_line_three;\n }\n }\n if (!empty($addresses['telefoon'])) {\n $addresses['telefoon'] = 'Tel: ' . $addresses['telefoon'];\n }\n if (!empty($addresses['fax'])) {\n $addresses['fax'] = 'Fax: ' . $addresses['fax'];\n }\n if (!empty($addresses['email'])) {\n $addresses['email'] = l($addresses['email'], 'mailto:' . $addresses['email']);\n }\n\n // Prepare and convert data as separate string for textarea field.\n $addresses = trim(implode('<br />', $addresses));\n }\n\n return $addresses;\n}", "public function getAddress()\n\t{\n\t\treturn $this->address;\n\t}", "public function getAddress()\n\t{\n\t\treturn $this->address;\n\t}", "public function getAddress() {\n //return the value address\n return $this->Address;\n }", "public function getCardsServiceAddress();", "public function getAddress()\n {\n if (array_key_exists(\"address\", $this->_propDict)) {\n return $this->_propDict[\"address\"];\n } else {\n return null;\n }\n }", "public function getAddr()\n {\n return $this->addr->getAddr();\n }", "public function getAddr()\n {\n return $this->addr;\n }", "public function getAddress() {\n\t\treturn $this->address;\n\t}", "public function getAddress() {\n\t\treturn $this->address;\n\t}", "public function getAddress1()\n {\n return $this->fv_address1;\n }", "public function getAddresses(){\n\t\t/* DIRECCIONES */\n\t\tglobal $dbh;\n\t\t$data = $dbh->query(\"SELECT * FROM direccion WHERE idCliente=?;\",array($this->id));\n\t\tif( $data!==false ){\n\t\t\tforeach( $data as $k=>$v ){\n\t\t\t\t$zona = $v['idZona'];\n\t\t\t\t$tmp = $dbh->query(\"SELECT c.nombre as comuna, p.nombre as ciudad, r.nombre as region FROM zona c LEFT JOIN zona p ON c.padre=p.id LEFT JOIN zona r ON p.padre=r.id WHERE c.id=?;\",array($zona));\n\t\t\t\t$data[$k] = array_merge($data[$k],$tmp[0]);\n\t\t\t}\n\t\t\t$this->data['direcciones'] = $data;\n\t\t\treturn $data;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function getClientAddress(): string {}", "private function carregaEndereco()\n { \n \t\t//Verifica se o formulário foi postado\n if ($_SERVER['REQUEST_METHOD'] == \"POST\")\n {\n\t\t\t$this->Delegator('ConcreteCadastro' , 'carregaEndereco' , $this->getPost());\n }\n }", "public function getReferencia()\n {\n return $this->referencia;\n }", "public function getReferencia()\n {\n return $this->referencia;\n }", "public function getAddress(): Address {\n return $this->address;\n }", "public function setAdresse($adresse)\n {\n $this->adresse = $adresse;\n\n return $this;\n }", "public function getStreet();", "public function getURLDokumenta()\n {\n return $this->URLDokumenta;\n }", "public function getAddress() {\n\n return $this->address;\n\n }", "public function shipping_adress()\n {\n return $this->hasOne(shipping_adress::class, 'id', 'shipping_adresses_id');\n }", "public function Persona (){ \n\n $this->ip=$this->getIP();\n }", "public function getDireccion_empresa(){\n return $this->direccion_empresa;\n }", "public function getFindingAidUrl()\n {\n return $this->getFieldArray('555', ['u']);\n //return $this->getFieldArray('555');\n }", "public function baseProjeto() {\n\n return endereco_local;\n }", "public function getAddressData()\n {\n return $this->address_data;\n }", "public function getImAddress()\n {\n return $this->getProperty(\"ImAddress\");\n }", "public function getAddress(): ?string\n {\n return $this->address;\n }" ]
[ "0.7932118", "0.7388272", "0.7310128", "0.7310128", "0.72469825", "0.6631853", "0.6628277", "0.6628277", "0.6458661", "0.637849", "0.6338965", "0.6337913", "0.6255907", "0.6255907", "0.6225885", "0.622389", "0.616512", "0.615765", "0.6144923", "0.61293286", "0.61293286", "0.6118478", "0.6036978", "0.6036524", "0.5926132", "0.5903807", "0.5903807", "0.5885757", "0.5883964", "0.58651936", "0.58544874", "0.5830146", "0.5818903", "0.57964206", "0.57960284", "0.57803863", "0.57598186", "0.571379", "0.5681984", "0.567316", "0.56692684", "0.56502736", "0.56427103", "0.5631986", "0.5623933", "0.5623933", "0.5623933", "0.5623933", "0.5623933", "0.5623933", "0.5623933", "0.5623933", "0.5623933", "0.5623933", "0.5623933", "0.5623933", "0.5623933", "0.5623933", "0.5623933", "0.5623933", "0.5623933", "0.5623933", "0.5623933", "0.5623933", "0.5623933", "0.5623933", "0.5623933", "0.5600725", "0.55997854", "0.55850583", "0.5572428", "0.5568518", "0.55572724", "0.55535334", "0.55535334", "0.554946", "0.5547952", "0.5530948", "0.55205363", "0.55187017", "0.5514553", "0.5514553", "0.5503802", "0.5482294", "0.547194", "0.5458705", "0.5458265", "0.5458265", "0.54461354", "0.54444563", "0.5441364", "0.54403543", "0.54086655", "0.54033524", "0.54033285", "0.5402562", "0.53997225", "0.5390465", "0.53832763", "0.5381124", "0.5378086" ]
0.0
-1
Obtient la liste des membres sous forme de balises Html .
public function getMembersOptionsTags($valueToSelect = NULL) { $html = ''; foreach ( $this->getMemberships () as $ms ) { $i = $ms->getIndividual (); $html .= '<option value="' . $i->getId () . '"'; if (isset ( $valueToSelect ) && strcmp ( $valueToSelect, $i->getId () ) == 0) { $html .= ' selected="selected"'; } $html .= '>'; $html .= $i->getWholeName (); $html .= '</option>'; } return $html; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listMembres() {\n\t\t$membreManager = $this->membreManager;\n\t\t$membres = $membreManager->listMembres();\n\t\t$success = ( isset( $_SESSION['success'] ) ? $_SESSION['success'] : null );\n\t\t$error = ( isset( $_SESSION['error'] ) ? $_SESSION['error'] : null );\n\t\t$myView = new View( 'listmembres' );\n\t\t$myView->renderView( array( 'membres' => $membres, 'success' => $success, 'error' => $error ) );\n\t}", "public function pagelisteMembre(){\n \n $userModel = new User();\n $lisAllUser = $userModel->getAllUser(bdd::GetInstance());\n\n //Récupération du rôle du compte\n $role = UserController::roleNeed();\n $isConnected = 1;\n\n return $this->twig->render('Dashboard/listeMembre.html.twig',[\n 'allContact'=> $lisAllUser,\n 'role'=>$role,\n 'isConnected' => $isConnected\n ]);\n\n }", "public function display_all()\n {\n if ( ! file_exists(APPPATH.'views/pages/list.php'))\n {\n // Whoops, we don't have a page for that!\n show_404();\n }\n if (!isset($this->session->userdata['user_role']) || $this->session->userdata['user_role'] < 40)\n {\n $this->session->set_flashdata('message', 'Vous devez avoir les droits de superviseur');\n redirect($_SERVER['HTTP_REFERER']); \n } \n \n $data['title'] = 'Liste des Membres'; // Capitalize the first letter\n $data['membres'] = $this->member_model->get_member();\n\n // breadcrumb\n $data['breadcrumbs'] = $this->breadcrumbs('liste');\n \n $this->load->template('pages/list_members',$data);\n }", "function AllMembres(){\n return $this->db->get($this->membre)->result();\n }", "public function listesPublique() : string{\n $html = \"<h3>Listes Publiques</h3><div class=\\\"row\\\">\";\n $increment_user = 0;\n // Boucle sur l'ensemble des listes\n foreach($this->tab[0][0][0] as $liste){\n // Récupération du user appartenant à la liste courante de la boucle\n $user = $this->tab[0][1][0][$increment_user];\n if ($user != null) {\n $createur = $user['prenom'];\n }\n else {\n $createur = 'Compte supprimé';\n }\n $date = date('Y-m-d',strtotime($liste['expiration']));\n if ($date >= $this->today) {\n $date = date('d/m/Y',strtotime($liste['expiration']));\n $token = $liste['token'];\n\n if (strlen($liste['description']) >= 80) {\n $description = substr($liste['description'], 0, 80) . \"...\";\n } else {\n $description = $liste['description'];\n }\n\n $url_liste = $this->container->router->pathFor(\"afficherListeParticipant\", ['token' => $token]);\n $html .= <<<FIN\n <div class=\"col-3 box_list\">\n <div class=\"card h-100 border-light mb-3\" >\n <div class=\"card-header text-center\">\n <p>{$liste['titre']} </p>\n </div>\n <div class=\"card-body\">\n <h6 class=\"card-subtitle mb-2 text-muted\">Créateur : $createur</h6>\n <p class=\"card-text\">{$description}</p>\n </div>\n <footer class=\"bouton_footer text-center\">\n <a type=\"submit\" class=\"btn btn-primary\" href=\"$url_liste\" role=\"button\">Accéder</a>\n </footer>\n <div class=\"card-footer\">\n <small class=\"text-muted\">Date d'expiration : $date</small>\n </div>\n </div>\n </div>\n FIN;\n }\n $increment_user++;\n }\n $html .= \"</div>\";\n $debut = $html . \"<br><br><h3>Listes Publiques des créateurs</h3><div class=\\\"row\\\">\";\n $users = $this->tab[1];\n $compteur = 0;\n foreach ($users as $user){\n $liste = $this->tab[2][$compteur];\n if (gettype($liste[0]) != 'string') {\n $createur = $user['nom'];\n $debut .= \"<div class=\\\"col-3 box_list\\\">\n <div class=card>\n <div class=card-header text-center>\n <p>Créateur : $createur </p>\n </div>\n <ul class=list-group list-group-flush>\";\n foreach ($liste as $l) {\n $token = $l['token'];\n $url_liste = $this->container->router->pathFor(\"afficherListeParticipant\", ['token' => $token]);\n $debut .= \" <li class=list-group-item><a href=$url_liste>{$l['titre']}</a></li>\n \";\n }\n $debut.= \"</ul>\n </div>\n </div>\";\n }\n $compteur++;\n }\n $debut .= \"</div>\";\n return $debut;\n }", "function Liste() {\r\n\t\t\r\n\t\tglobal $IP;\r\n\t\t\r\n\t\t$title = msg('listtitle');\r\n\t\t$css = msg('listcss');\r\n\t\t$head = <<<EOT\r\n\t<title>$title</title>\r\n\t<style type=\"text/css\">\r\n$css\r\n\t</style>\r\nEOT;\r\n\t\t$this->mOutput->addHead( $head );\r\n\t\t$this->mOutput->addBody( \"<h2>$title</h2><br />\\n\" );\r\n\t\t\r\n\t\t$regexes = $this->mDB->listReg();\r\n\t\t\r\n\t\tif( $regexes === false ) {\r\n\t\t\t$this->mOutput->addBody( '<i>'.msg('noregexsaved').'</i>' );\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t$this->mOutput->addUl( true, '', 'listePuces' );\r\n\t\tforeach( $regexes as $regex ) {\r\n\t\t\t\r\n\t\t\tlist( $regName, $regComment, $regProtected, $regReg ) = $regex;\r\n\t\t\t\r\n\t\t\tif( $regComment ) $this->mOutput->addBody( \"<li>\\n<b>$regName</b> (<i>$regComment</i>) (<a href=\\\"$IP?action=delete&title=$regName\\\">\".msg('delete').\"</a>) :\\n\" );\r\n\t\t\telse $this->mOutput->addBody( \"<li>\\n<b>$regName</b> (<a href=\\\"$IP?action=delete&title=$regName\\\">\".msg('delete').\"</a>) :\\n\" );\r\n\t\t\t\r\n\t\t\t$this->mOutput->addUl( true );\r\n\t\t\tforeach( $regReg as $reg ) {\r\n\t\t\t\t$reg = new Reg( $reg[0], $reg[1], $reg[2] );\r\n\t\t\t\t$this->mOutput->addLi( $reg->display('', false) );\r\n\t\t\t}\r\n\t\t\t$this->mOutput->addUl( false );\r\n\t\t}\r\n\t\t$this->mOutput->addUl( false );\r\n\t}", "public function listb()\n\t{\n\t\t$id_usuario_session = $this->session->userdata(\"id\");\n\t\t$data = [\n\t\t 'monedas_mercado_busco' => $this->Mercadom_model->listb($id_usuario_session)\n\t\t];\n\n\t\t$this->layout->view(\"list_busqueda\",$data);\n\n\t}", "function tampillistbuku(){\n\t\t$buku = $this->db->get('buku');\n\t\t//$buku = $this->db->query('select * from buku');\n\n\t\treturn $buku;\n\t}", "public function renderListContent() {}", "function listContent()\n {\n }", "function noticias_cabe(){\n \n $html=site('http://www.jornalnoticias.co.mz/');\n\t\n\tforeach($html->find('.items-row')as $elms){\n\t\t\n\t\tforeach($elms->find ('.jn-postheader') as $elms2){\n\t\t\n\t $j[]=mb_convert_encoding( $elms2->plaintext, \"HTML-ENTITIES\", \"UTF-8\");\n\t\n\t\n\t\t\n\t\t}\n\t}\n\t\n\treturn $j;\n\t\n\t}", "public function listmobilisateurAction() {\n\n $sessionmembre = new Zend_Session_Namespace('membre');\n //$this->_helper->layout->disableLayout();\n $this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n if (!isset($sessionmembre->code_membre)) {\n $this->_redirect('/');\n }\n\n $mobilisateur = new Application_Model_EuMobilisateurMapper();\n $this->view->entries = $mobilisateur->fetchAllByMembre($sessionmembre->code_membre);\n\n $this->view->tabletri = 1;\n }", "function give_me_pages_list($page, $fname){\r\n\tglobal $database, $admin, $tpl;\r\n\t// $tpl->set_block('main_block', $fname.'_block' , 'schleife');\r\n\t$s = '';\r\n\t// Get exisiting pages and show the pagenames\r\n\t$query = $database->query(\"SELECT * FROM `\".TABLE_PREFIX.\"pages` WHERE `visibility` <> 'deleted'\");\r\n\twhile($mail_page = $query->fetchRow()) {\r\n\t\tif(!$admin->page_is_visible($mail_page)) continue;\r\n\t\t$mail_pagename = $mail_page['menu_title'];\r\n\t\t$success_page = $mail_page['page_id'];\r\n\t\t//$rt .= $success_page.':'.$success_page.':';\r\n\t\tif($page == $success_page) {\r\n\t\t\t$selected = ' selected=\"selected\"';\r\n\t\t} else {\r\n\t\t\t$selected = '';\r\n\t\t}\r\n\t\t$s = '<option value=\"'.$success_page.'\"'.$selected.'>'.$mail_pagename.'</option>';\r\n\t\t// $tpl->set_var('options_'.$fname, $s);\r\n \t\t// $tpl->parse('schleife', $fname.'_block', true);\r\n\t} \r\n}", "function maquetacioItemsBlog($model, $columna, $nomCaixa, $tipusCaixa, $ordre, $estilCaixa, $estilLlistat, $estilElement, $id_registre, $registre)\n{\n\n $parametres = '<input type=\"hidden\" name=\"newsletter['.htmlspecialchars($model).']['.htmlspecialchars($columna).']['.htmlspecialchars($nomCaixa).']['.htmlspecialchars($tipusCaixa).'][]['.htmlspecialchars($estilCaixa).']['.htmlspecialchars($estilLlistat).']['.htmlspecialchars($estilElement).']\" value=\"'.htmlspecialchars($id_registre).'\" />';\n\n $imatge = $registre['IMG'] != '' ? '<img src=\"' . $CONFIG_URLUPLOADIM . $registre['IMG'] . '\" style=\"width:159px\" class=\"left\"/>' : '';\n\n return '<li id=\"bloc_reg' . $id_registre . '\" class=\"box removable stylable clearfix '.$estilElement.'\">\n\t\t\t'.$parametres.'\n\t\t\t<div class=\"spacer clearfix\">\n\t\t\t\t'.$imatge.'\n\t\t\t\t<p>'.$registre['DATA_POST'].'</p>\n\t\t\t\t<h4><a href=\"'.$info_registre['guid'].'\" rel=\"external\">'.$registre['TITOL'].'</a></h4>\n\t\t\t\t<p>'.$registre['RESUM_MOSTRAR'].'</p>\n\t\t\t</div>\n\t\t</li>';\n}", "function listUsers()\n{\n require_once($_SERVER[\"DOCUMENT_ROOT\"].\"/config/config.php\");\n require_once($_SERVER[\"DOCUMENT_ROOT\"].\"/class/autoload.php\");\n require_once($_SERVER[\"DOCUMENT_ROOT\"].\"/vendor/autoload.php\");\n $db = new cMariaDb($Cfg);\n\n // Generateur de templates\n $tpl = new Smarty();\n $tpl->template_dir = $_SERVER[\"DOCUMENT_ROOT\"].\"/tools/templates\";\n $tpl->compile_dir = $_SERVER[\"DOCUMENT_ROOT\"].\"/templates_c\";\n\n $sSQL = \"SELECT id, sNom, sPrenom, sEmail, sTelMobile, sLogin FROM sys_user WHERE bActive=1 ORDER BY sNom, sPrenom;\";\n\n // Récupérer les éléments \n $tpl->assign(\"Users\",$db->getAllFetch($sSQL));\n $sHtml = $tpl->fetch(\"editUsers.smarty\");\n return [\"Errno\" => 0, \"html\" => $sHtml ];\n}", "public function getMahasiswa() {\n return CHtml::listData(Mahasiswa::model()->findAll(), 'NIM', 'Nama');\n }", "public function lesLanguesAuFormatHTML()\r\n\t\t{\r\n\t\t$liste = \"<SELECT name = 'idLangue'>\";\r\n\t\tforeach ($this->lesLangues as $uneLangue)\r\n\t\t\t{\r\n\t\t\t$liste = $liste.\"<OPTION value='\".$uneLangue->getIdLangue().\"'>\".$uneLangue->getLibelleLangue().\"</OPTION>\";\r\n\t\t\t}\r\n\t\t$liste = $liste.\"</SELECT>\";\r\n\t\treturn $liste;\r\n\t\t}", "function noticias_links(){\n \t\n $html=site('http://www.jornalnoticias.co.mz/');\n\t\n\tforeach($html->find('.items-row')as $elms){\n\t\t\n\t\t\n\t\tforeach($elms->find ('.jn-postheader a') as $elms2){\n\t\t\n\t $j[]=mb_convert_encoding( \"http://www.jornalnoticias.co.mz\".$elms2->href, \"HTML-ENTITIES\", \"UTF-8\");\n\t\n\t\n\t\t\n\t\t}\n\t\t\n\t}\n\t\n\treturn $j;\n }", "public function getAllMerekBajuAktif()\n {\n $sql = \"SELECT DISTINCT mb.id_merek_baju AS idMerekBaju, mb.nama_merek_baju AS merekBaju \n FROM merek_baju mb \n JOIN baju ba ON mb.id_merek_baju = ba.id_merek_baju\";\n $query = koneksi()->query($sql);\n $hasil = [];\n while ($data = $query->fetch_assoc()) {\n $hasil[] = $data;\n }\n return $hasil;\n }", "function getAllFromProizvod(){\n\t\treturn $this->ime . \"&nbsp\" . $this->imeProizvođača . \"&nbsp\" \n\t\t. $this->prezimeProizvođača . \"&nbsp\" . $this->cijena;\n\t}", "function my_list()\n\t{\n\t\t$data = filter_forwarded_data($this);\n\t\t$data['list'] = $this->_bid->my_list();\n\t\t\n\t\t$this->load->view('bids/my_list', $data);\n\t}", "public function getAllMerekBaju()\n {\n $sql = \"SELECT id_merek_baju AS idMerekBaju, nama_merek_baju AS merekBaju FROM merek_baju\";\n $query = koneksi()->query($sql);\n $hasil = [];\n while ($data = $query->fetch_assoc()) {\n $hasil[] = $data;\n }\n return $hasil;\n }", "function list_current()\n\t{\n\t\tif ($this->ipsclass->vars['default_language'] == \"\")\n\t\t{\n\t\t\t$this->ipsclass->vars['default_language'] = 'ru';\n\t\t}\n\n\t\t$form_array = array();\n\n\t\t$this->ipsclass->admin->page_detail = \"В этой секции вы можете изменять, удалять существующие языки и добавлять новые\";\n\t\t$this->ipsclass->admin->page_title = \"Управление языками\";\n\n\t\t//-----------------------------------------\n\n\t\t$this->ipsclass->DB->cache_add_query( 'languages_list_current', array() );\n\t\t$this->ipsclass->DB->cache_exec_query();\n\n\t\t$used_ids = array();\n\t\t$show_array = array();\n\n\t\t$this->ipsclass->html .= \"\"; // removed js check delete\n\n\t\tif ( $this->ipsclass->DB->get_num_rows() )\n\t\t{\n\n\t\t\t$this->ipsclass->adskin->td_header[] = array( \"Название\" , \"40%\" );\n\t\t\t$this->ipsclass->adskin->td_header[] = array( \"Пользователей используют\" , \"30%\" );\n\t\t\t$this->ipsclass->adskin->td_header[] = array( \"Экспорт\" , \"10%\" );\n\t\t\t$this->ipsclass->adskin->td_header[] = array( \"Изменение\" , \"10%\" );\n\t\t\t$this->ipsclass->adskin->td_header[] = array( \"Удаление\" , \"10%\" );\n\n\t\t\t$this->ipsclass->html .= $this->ipsclass->adskin->start_table( \"Используемые языки\" );\n\n\t\t\twhile ( $r = $this->ipsclass->DB->fetch_row() )\n\t\t\t{\n\t\t\t\t$show_array[ $r['lid'] ] = isset($show_array[ $r['lid'] ]) ? $show_array[ $r['lid'] ] : '';\n\n\t\t\t\tif ($this->ipsclass->vars['default_language'] == $r['ldir'])\n\t\t\t\t{\n\t\t\t\t\t$root = \"<span style='color:red;font-weight:bold'> (По умолчанию)</span>\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$root = \" ( <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=makedefault&id=\".urlencode($r['ldir']).\"'>Сделать языком по умолчанию</a> )\";\n\t\t\t\t}\n\n\t\t\t\t$show_array[ $r['lid'] ] .= stripslashes($r['lname']).\"<br />\";\n\n\t\t\t\tif ( in_array( $r['lid'], $used_ids ) )\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>\".stripslashes($r['lname']).\"</b> $root\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"<center>{$r['mcount']}</center>\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"<center><a href='\".$this->ipsclass->base_url.\"&{$this->ipsclass->form_code}&code=export&id={$r['lid']}'>Экспортировать</a></center>\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"<center><a href='\".$this->ipsclass->base_url.\"&{$this->ipsclass->form_code}&code=edit&id={$r['lid']}'>Изменить</a></center>\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"<center><a href='javascript:checkdelete(\\\"{$this->ipsclass->form_code_js}&code=remove&id={$r['lid']}\\\")'>Удалить</a></center>\",\n\t\t\t\t\t\t\t\t\t\t\t\t ) );\n\n\t\t\t\t$used_ids[] = $r['lid'];\n\n\t\t\t\t$form_array[] = array( $r['lid'], $r['lname'] );\n\n\t\t\t}\n\n\t\t\t$this->ipsclass->html .= $this->ipsclass->adskin->end_table();\n\t\t}\n\n\t\tif ( count($used_ids) < 1 )\n\t\t{\n\t\t\t$used_ids[] = '0';\n\t\t}\n\n\t\t$this->ipsclass->DB->simple_construct( array( 'select' => 'lid, ldir, lname', 'from' => 'languages', 'where' => \"lid NOT IN(\".implode(\",\",$used_ids).\")\" ) );\n\t\t$this->ipsclass->DB->simple_exec();\n\n\t\tif ( $this->ipsclass->DB->get_num_rows() )\n\t\t{\n\n\t\t\t$this->ipsclass->adskin->td_header[] = array( \"Название\" , \"40%\" );\n\t\t\t$this->ipsclass->adskin->td_header[] = array( \"Экспорт\" , \"10%\" );\n\t\t\t$this->ipsclass->adskin->td_header[] = array( \"Изменение\" , \"30%\" );\n\t\t\t$this->ipsclass->adskin->td_header[] = array( \"Удаление\" , \"20%\" );\n\n\t\t\t$this->ipsclass->html .= $this->ipsclass->adskin->start_table( \"Текущие неиспользуемые языки\" );\n\n\n\n\t\t\twhile ( $r = $this->ipsclass->DB->fetch_row() )\n\t\t\t{\n\n\t\t\t\tif ($this->ipsclass->vars['default_language'] == $r['ldir'])\n\t\t\t\t{\n\t\t\t\t\t$root = \"<span style='color:red;font-weight:bold'> (используется по умолчанию)</span>\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$root = \" ( <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=makedefault&id=\".urlencode($r['ldir']).\"'>Сделать языком по умолчанию</a> )\";\n\t\t\t\t}\n\n\t\t\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>\".stripslashes($r['lname']).\"</b> $root\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"<center><a href='\".$this->ipsclass->base_url.\"&{$this->ipsclass->form_code}&code=export&id={$r['lid']}'>Экспорт</a></center>\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"<center><a href='\".$this->ipsclass->base_url.\"&{$this->ipsclass->form_code}&code=edit&id={$r['lid']}'>Изменить</a></center>\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"<center><a href='javascript:checkdelete(\\\"{$this->ipsclass->form_code_js}&code=remove&id={$r['lid']}\\\")'>Удалить</a></center>\",\n\t\t\t\t\t\t\t\t\t\t\t\t ) );\n\n\t\t\t\t$form_array[] = array( $r['lid'], $r['lname'] );\n\n\t\t\t}\n\n\t\t\t$this->ipsclass->html .= $this->ipsclass->adskin->end_table();\n\t\t}\n\n\t\t//-----------------------------------------\n\t\t// Create new set?\n\t\t//-----------------------------------------\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->start_form( array( 1 => array( 'code' , 'add' ),\n\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t 2 => array( 'act' , 'lang' ),\n\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t 4 => array( 'section', $this->ipsclass->section_code ),\n\t\t\t\t\t\t\t\t\t \t\t\t\t) );\n\n\t\t$this->ipsclass->adskin->td_header[] = array( \"&nbsp;\" , \"40%\" );\n\t\t$this->ipsclass->adskin->td_header[] = array( \"&nbsp;\" , \"60%\" );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->start_table( \"Создание языка\" );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Создать новый язык, используя существующий...</b>\" ,\n\t\t\t\t\t\t\t\t\t\t \t\t \t\t\t $this->ipsclass->adskin->form_dropdown( \"id\", $form_array)\n\t\t\t\t\t\t\t\t \t\t\t\t\t\t) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->end_form(\"Создать новый язык\");\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->end_table();\n\n\t\t//-----------------------------------------\n\t\t// Create new set?\n\t\t//-----------------------------------------\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->start_form( array( 1 => array( 'code' , 'swap' ),\n\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t 2 => array( 'act' , 'lang' ),\n\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t 4 => array( 'section', $this->ipsclass->section_code ),\n\t\t\t\t\t\t\t\t\t \t\t\t\t) );\n\n\t\t$this->ipsclass->adskin->td_header[] = array( \"&nbsp;\" , \"40%\" );\n\t\t$this->ipsclass->adskin->td_header[] = array( \"&nbsp;\" , \"60%\" );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->start_table( \"Переустановка языка у пользователей форума\" );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Пользователи использующие язык...</b>\" ,\n\t\t\t\t\t\t\t\t\t\t \t\t \t\t\t $this->ipsclass->adskin->form_dropdown( \"old\", array_merge( array( -1 => array( 'none', 'по умолчанию' ) ), $form_array ) )\n\t\t\t\t\t\t\t\t \t\t\t\t\t\t) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Изменить язык на...</b>\" ,\n\t\t\t\t\t\t\t\t\t\t \t\t \t\t\t $this->ipsclass->adskin->form_dropdown( \"new\", $form_array)\n\t\t\t\t\t\t\t\t \t\t\t\t\t\t) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->end_form(\"Переустановить\");\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->end_table();\n\n\n\t\t//-----------------------------------------\n\t\t//-------------------------------\n\n\t\t$this->ipsclass->admin->output();\n\n\t}", "function contributor_list() {\r\n $this->showFields = array('NAME', 'LOCATION', 'COUNTRY');\r\n print '<ul>';\r\n\r\n $xml_parser = xml_parser_create();\r\n xml_parser_set_option($xml_parser, XML_OPTION_CASE_FOLDING, true);\r\n xml_set_element_handler($xml_parser, array($this, \"start_element\"), array($this, \"end_element\"));\r\n xml_set_character_data_handler($xml_parser, array($this, \"character_data\"));\r\n\r\n if ( !(@$fp = fopen('http://grandslambert.com/xml/custom-page-extensions/contributors.xml', \"r\")) ) {\r\n print 'There was an error getting the list. Try again later.';\r\n return;\r\n }\r\n\r\n while ($data = fread($fp, 4096)) {\r\n if ( !xml_parse($xml_parser, $data, feof($fp)) ) {\r\n die(sprintf(\"XML error: %s at line %d\",\r\n xml_error_string(xml_get_error_code($xml_parser)),\r\n xml_get_current_line_number($xml_parser)));\r\n }\r\n }\r\n\r\n xml_parser_free($xml_parser);\r\n print '</ul>';\r\n }", "public function list_user()\n\t{\n\t\tcheck_access_level_superuser();\n\t\t$data = [\n\t\t\t'list_user' => $this->user_m->get_cabang(),\n\t\t\t'list_cabang' => $this->data_m->get('tb_cabang')\n\t\t];\n\t\t$this->template->load('template2', 'user/list_user', $data);\n\t}", "public function getListmenu(){\r\n $data[] = array('url'=>'changepass', 'name'=>'Thay đổi mật khẩu');\r\n $data[] = array('url'=>'add', 'name'=>'Thêm tài khoản quản lý');\r\n return $data;\r\n }", "public function listarbiofinCE(){\n $stmt = $this->objPDO->prepare(\"SELECT b.id_biopsia,b.num_biopsia,b.fecha_ingreso,db.fecha_informe,(e.emp_nombres||' '||e.emp_appaterno||' '||e.emp_apmaterno) as medico,\n list(m.descr_muestra)as muestras from sisanatom.biopsia b \n inner join sisanatom.detalle_bioce db on b.id_biopsia=db.id_biopsia\n inner join sisanatom.muestras_biopsia mb on b.id_biopsia=mb.id_biopsia inner join empleados e on b.patologo_responsable=e.emp_id\n inner join sisanatom.muestra m on m.id_muestra=mb.id_muestrarem\n where b.estado_biopsia=3 and b.condicion_biopsia='A'\n group by b.id_biopsia,b.num_biopsia,b.fecha_ingreso,db.fecha_informe,medico\");\n $stmt->execute();\n $pacientes = $stmt->fetchAll(PDO::FETCH_OBJ);\n return $pacientes;\n }", "function cargar_privilegios3(){\n\t\t$res = $this->lis_privs();\n\t\t$comboBox = '<select id=\"selectPrivs3\" name=\"Privilegio\">';\n\t\t$vals = array();\n\t\t$i = 0;\n\t\t$j = 0;\n\t\tforeach($res as $row){\n\t\t\t$vals[$i] = $row;\n\t\t\t$i = $i +1;\n\t\t}\n\t\twhile($j < $i){\n\t\t\t$comboBox .= '<option value = \"'.$vals[$j].'\">'.$vals[$j+1].'</option>';\n\t\t\t$j = $j+2;\n\t\t}\t\t\n\t\t$comboBox .= '</select>';\n\t\treturn $comboBox;\n\t}", "function cargar_privilegios2(){\n\t\t$res = $this->lis_privs();\n\t\t$comboBox = '<select id=\"selectPrivs2\" name=\"Privilegio\">';\n\t\t$vals = array();\n\t\t$i = 0;\n\t\t$j = 0;\n\t\tforeach($res as $row){\n\t\t\t$vals[$i] = $row;\n\t\t\t$i = $i +1;\n\t\t}\n\t\twhile($j < $i){\n\t\t\t$comboBox .= '<option value = \"'.$vals[$j].'\">'.$vals[$j+1].'</option>';\n\t\t\t$j = $j+2;\n\t\t}\t\t\n\t\t$comboBox .= '</select>';\n\t\treturn $comboBox;\n\t}", "function _lista($mod=FALSE){\n\t\t$mSQL=\"SELECT titulo, modulo, codigo FROM intramenu WHERE MID(modulo,1,1)!= '0' ORDER BY modulo\";\n\t\t$mc = $this->db->query($mSQL);\n\t\tif( strlen($mod)>1) $esde=$mod[0]; else $esde=$mod;\n\t\t$out = \"<ul><li><b>Men&uacute;</b> <a href='\".base_url().\"index.php/menu/agregar'>\".image('list-add.png','Agregar',array('border'=>'0')).\"</a>\".'</li><ul>';\n\t\t$o=$i=$u=0;\n\t\tforeach( $mc->result() as $row ){\n\t\t\tif(strlen($row->modulo)==1){\n\t\t\t\tif($i>0){ $out .= '</ul>';}\n\t\t\t\tif($u){ $out .= '</ul>'; $u=0; }\n\t\t\t\tif($esde===$row->codigo) $visible=''; else $visible='style=\"display: none;\"';\n\t\t\t\t$out .= \"<li><a href='\".base_url().\"index.php/menu/editar/$row->codigo'>\".image('editor.png','Editar',array('border'=>'0')).\"</a> <a href='\".base_url().\"index.php/menu/agregar/$row->codigo'>\".image('list-add.png','Agregar',array('border'=>'0')).\"</a><a href='\".base_url().\"index.php/menu/eliminar/$row->codigo'>\".image('list-remove.png','Eliminar',array('border'=>'0')).'</a>'.anchor('#',$row->codigo.'-'.$row->titulo,\"onclick=\\\"Effect.toggle('ml$o', 'appear'); return false;\\\"\").\"</li><ul id='ml$o' $visible>\";\n\t\t\t\t$o++;\n\t\t\t}elseif(strlen($row->modulo)>3){\n\t\t\t\tif (!$u){$out .= '<ul>'; }\n\t\t\t\t$u=1;\n\t\t\t\t$out .= \"<li><a href='\".base_url().\"index.php/menu/editar/$row->codigo'>\".image('editor.png','Editar',array('border'=>'0')).\"</a><a href='\".base_url().\"index.php/menu/eliminar/$row->codigo'>\".image('list-remove.png','Eliminar',array('border'=>'0')).'</a>'.$row->codigo.'-'.$row->titulo.'</li>';\n\t\t\t}else{\n\t\t\t\tif($u){ $out .= '</ul>'; $u=0; }\n\t\t\t\t$out .= \"<li><a href='\".base_url().\"index.php/menu/editar/$row->codigo'>\".image('editor.png','Editar',array('border'=>'0')).\"</a> <a href='\".base_url().\"index.php/menu/agregar/$row->codigo'>\".image('list-add.png','Agregar',array('border'=>'0')).\"</a><a href='\".base_url().\"index.php/menu/eliminar/$row->codigo'>\".image('list-remove.png','Eliminar',array('border'=>'0')).'</a>'.$row->codigo.'-'.$row->titulo.'</li>';\n\t\t\t\t$i++;\n\t\t\t\t$o++;\n\t\t\t}\n\t\t}\n\t\t$out .= '</ul></ul></ul>';\n\t\treturn ($out);\n\t}", "public function listar() {\n\t\t//Esta funcion solo la puede hacer el organizador, hay que poner al inicio de todo una comprobacion\n\t\t//de sesion, falta cambiar\n\t\t$juradoL = $this -> JuradoMapper -> findAll();\n\t\t$this -> view -> setVariable(\"jurado\", $juradoL);\n\t\t//falta agregar la vista, no se continuar\n\t\t$this -> view -> render(\"jurado\", \"listar\");\n\t\t//falta cambiar\n\t}", "public function listeLesLangues()\r\n\t\t{\r\n\t\t$liste = '<TABLE>';\r\n\t\tforeach ($this->lesLangues as $uneLangue)\r\n\t\t\t{\r\n\t\t\t$liste = $liste.'<TR><TD>';\r\n\t\t\t$liste = $liste.'Langue \"'.$uneLangue->getLibelleLangue();\r\n\t\t\t$liste = $liste.'<TD><A href = \"index.php?vue=langue&action=detail&numero='.$uneLangue->getIdLangue().'\">Voir le detail des guides</A></TD></TR>';\r\n\t\t\t}\r\n\t\treturn $liste.'</TABLE>';\r\n\t\t}", "public function getAllFirstLetters()\n {\n global $sids;\n\n if ($this->groupSupport) {\n $permPart = sprintf('( fdg.group_id IN (%s)\n OR\n (fdu.user_id = %d AND fdg.group_id IN (%s)))',\n implode(', ', $this->groups),\n $this->user,\n implode(', ', $this->groups));\n } else {\n $permPart = sprintf('( fdu.user_id = %d OR fdu.user_id = -1 )',\n $this->user);\n }\n\n $writeLetters = '<ul class=\"nav navbar-nav\">';\n\n if ($this->_config->getDb() instanceof PMF_DB_Sqlite3) {\n $query = sprintf(\"\n SELECT\n DISTINCT UPPER(SUBSTR(fd.thema, 1, 1)) AS letters\n FROM\n %sfaqdata fd\n LEFT JOIN\n %sfaqdata_group AS fdg\n ON\n fd.id = fdg.record_id\n LEFT JOIN\n %sfaqdata_user AS fdu\n ON\n fd.id = fdu.record_id\n WHERE\n fd.lang = '%s'\n AND\n fd.active = 'yes'\n AND\n %s\n ORDER BY\n letters\",\n PMF_Db::getTablePrefix(),\n PMF_Db::getTablePrefix(),\n PMF_Db::getTablePrefix(),\n $this->_config->getLanguage()->getLanguage(),\n $permPart\n );\n } else {\n $query = sprintf(\"\n SELECT\n DISTINCT UPPER(SUBSTRING(fd.thema, 1, 1)) AS letters\n FROM\n %sfaqdata fd\n LEFT JOIN\n %sfaqdata_group AS fdg\n ON\n fd.id = fdg.record_id\n LEFT JOIN\n %sfaqdata_user AS fdu\n ON\n fd.id = fdu.record_id\n WHERE\n fd.lang = '%s'\n AND\n fd.active = 'yes'\n AND\n %s\n ORDER BY\n letters\",\n PMF_Db::getTablePrefix(),\n PMF_Db::getTablePrefix(),\n PMF_Db::getTablePrefix(),\n $this->_config->getLanguage()->getLanguage(),\n $permPart\n );\n }\n\n $result = $this->_config->getDb()->query($query);\n while ($row = $this->_config->getDb()->fetchObject($result)) {\n $letters = PMF_String::strtoupper($row->letters);\n if (PMF_String::preg_match(\"/^\\w+/iu\", $letters)) {\n $url = sprintf(\n '%s?%saction=sitemap&amp;letter=%s&amp;lang=%s',\n PMF_Link::getSystemRelativeUri(),\n $sids,\n $letters,\n $this->_config->getLanguage()->getLanguage()\n );\n $oLink = new PMF_Link($url, $this->_config);\n $oLink->text = (string)$letters;\n $writeLetters .= '<li>'.$oLink->toHtmlAnchor().'</li>';\n }\n }\n $writeLetters .= '</ul>';\n\n return $writeLetters;\n }", "function exam_list() {\n \n //$vNumberOfColumns = 4;\n \n $vContent = t(ExamInstance::getListingOfExams());\n \n return $vContent;\n \n //foreach ($links as $link) {\n // $items[] = l($link['title'], $link['href'], $item['localized_options'])\n // . ': ' . filter_xss_admin($link['description']);\n //}\n\n //return theme('item_list', array('items' => $items));\n \n}", "public function membres()\n {\n $this->membres = $this->Member->list($_SESSION['guild_id']);\n }", "function skin_sets_overview($content) {\n\n$IPBHTML = \"\";\n//--starthtml--//\n\n$IPBHTML .= <<<EOF\n<div class='tableborder'>\n <div class='tableheaderalt'>\n <table cellpadding='0' cellspacing='0' border='0' width='100%'>\n <tr>\n <td align='left' width='95%' style='font-size:12px; vertical-align:middle;font-weight:bold; color:#FFF;'>Стили</td>\n <td align='right' width='5%' nowrap='nowrap'>\n <img id=\"menumainone\" src='{$this->ipsclass->skin_acp_url}/images/filebrowser_action.gif' border='0' alt='Опции' class='ipd' /> &nbsp;\n </td>\n </tr>\n</table>\n </div>\n <table cellpadding='0' cellspacing='0' width='100%'>\n $content\n </table>\n <div align='center' class='tablefooter'>&nbsp;</div>\n</div>\n<br />\n<div><strong>Информация:</strong><br />\n<img src='{$this->ipsclass->skin_acp_url}/images/skin_item_altered.gif' border='0' alt='+' title='Изменен от начального варианта шаблона' /> Изменен от начального варианта шаблона.\n<br /><img src='{$this->ipsclass->skin_acp_url}/images/skin_item_unaltered.gif' border='0' alt='-' title='Не изменен от начального варианта шаблона' /> Не изменен от начального варианта шаблона.\n<br /><img src='{$this->ipsclass->skin_acp_url}/images/skin_item_inherited.gif' border='0' alt='|' title='Унаследованный от начального варианта шаблона' /> Унаследованный от начального варианта шаблона.\n</div>\n<div id='menumainone_menu' style='display:none' class='popupmenu'>\n\t<form action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=addset&id=-1' method='POST'>\n\t<div align='center'><strong>Создать новый стиль</strong></div>\n\t<div align='center'><input type='text' name='set_name' size='20' value='Введите название стиля' onfocus='this.value=\"\"'></center></div>\n\t<div align='center'><input type='submit' value='Создать' class='realdarkbutton' /></div>\n\t</form>\n</div>\n<script type=\"text/javascript\">\n\tipsmenu.register( \"menumainone\" );\n</script>\nEOF;\nif ( IN_DEV == 1 )\n{\n$IPBHTML .= <<<EOF\n<br />\n<div align='center'>\n Экспорт данных: <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=exportmaster'>Все HTML шаблоны главного стиля</a>\n &middot; <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=exportbitschoose'>Выбрать HTML шаблоны</a>\n &middot; <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=exportmacro'>Макросы главного стиля</a>\n</div>\n<br />\nEOF;\n}\n\n//--endhtml--//\nreturn $IPBHTML;\n}", "public static function displayUserMemos() {\n\n if(login::isLoggedIn()) {\n \n $userId = login::isLoggedIn();\n\n $memos = database::query('SELECT memo_id, memo_title, memo_text FROM memo WHERE fk_user = :userId', array(\":userId\"=>$userId));\n\n\n //prepare memoHtml variable and get the html for the memo's\n $memoHtml = '<div class=\"memo-container row\">';\n $memoSkeleton = controller::curl_file_get_contents('http://boris.codefactory.live/memorize/view/components/crudMemo.html');\n\n foreach($memos as $memo){\n //reset memoPrep to standard html for the memo\n $memoPrep = $memoSkeleton;\n\n //replace the placeholder title and text\n $memoPrep = str_replace('{memoTitle}', $memo['memo_title'], $memoPrep);\n $memoPrep = str_replace('{memoText}', $memo['memo_text'], $memoPrep);\n\n //replace the memoId placeholder with the id of the memo\n $memoPrep = str_replace('{memoId}', $memo['memo_id'], $memoPrep);\n\n\n //append the finished memo into variable\n $memoHtml.= $memoPrep;\n }\n\n //append closing tag to memoContainer\n $memoHtml .= \"</div>\";\n\n //Echo the HTML \n echo $memoHtml;\n\n } else {\n controller::redirectTo(\"home\");\n }\n\n }", "public function listarParaUnirP() {\n\t\t//de sesion, falta cambiar\n\t\t$juradoL = $this -> JuradoMapper -> findAllPro();\n\n\t\t$this -> view -> setVariable(\"jurado\", $juradoL);\n\t\t//falta agregar la vista, no se continuar\n\t\t$this -> view -> render(\"jurado\", \"listarParaPincho\");\n\t\t//falta cambiar\n\t}", "function spiplistes_listes_boite_abonnements ($id_liste, $statut_liste, $tri, $debut, $script_retour) {\n\n\t$boite_abonnements = \"\"\n\t\t. \"<div id='\" . _SPIPLISTES_ID_GROSSE_BOITE . \"' class='verdana1'>\\n\"\n\t\t. spiplistes_listes_boite_abonnes($id_liste, $statut_liste, $tri, $debut, $script_retour)\n\t\t. spiplistes_listes_boite_elligibles ($id_liste, $statut_liste, $tri, $debut)\n\t\t. \"</div>\\n\"\n\t\t;\n\treturn($boite_abonnements);\n}", "public function actionLst()\n {\n return $this->render('lst',\n [\n 'name'=>'王聪',\n 'age'=>18,\n ]);\n }", "function liste_utilisateur(){\n\t\tglobal $bdd;\n\n\t\t$req = $bdd->prepare(\"SELECT id_utilisateur, pseudo FROM utilisateur WHERE status_utilisateur = ? AND fqdn_blog NOT LIKE 'supprimer'\");\n\t\t$req->execute(array(0));\n\t\t$result = $req->fetchAll();\n\t\t\n\t\t$req->closeCursor();\n\t\treturn $result;\n\t}", "public function getAllManuscriptPages() {\n $this->db->select('manuscripts.xmlid, manuscripts.settlement, manuscripts.repository, manuscripts.shelfmark, manuscripts.msTitle, manuscript_pages.manuscripts_xmlid, manuscript_pages.filename, manuscript_pages.pagelabel');\n $this->db->join('manuscripts', 'manuscript_pages.manuscripts_xmlid = manuscripts.xmlid');\n $query = $this->db->get('manuscript_pages');\n return $query->num_rows > 0 ? $query->result() : FALSE;\n }", "function listuser(){\n\t\t\tif(!empty($_GET['paginado'])){\n\t\t\t\t$pag = $_GET['paginado'];\n\t\t\t\t$list = $this -> model -> selectuser($pag);\n\t\t\t}else{\n\t\t\t\t$list = $this -> model -> selectuser();\n\t\t\t}\n\t\t\t$this -> ajax_set($list);\n\t\t}", "public function menu_perfil(){\n\t\t$this->menu_del_dia();\n\n\t\t$return = '<ul class=\"nav nav-sidebar\">';\n\t\tforeach($this->menu_del_dia as $key => $value){\n\t\t//menus que se muestran\n\t\t\tif(!empty($value['show'])){\n\t\t\t\tif ($value['show'] == 'true') {\n\t\t\t\t\t$return .= '<li>';\n\t\t\t\t\t$return .= '<a href=\"'.$value['link'].'\"><i class=\"icon-magic-wand\"></i><span class=\"text\">'.$value['text'].'</span></a>';\t\n\t\t\t\t\t$return .= '</li>';\n\t\t\t\t}\n\t\t\t//menus desplegables\t\n\t\t\t}else if (is_array($value)){\n\t\t\t\t$interlist = '';\n\t\t\t\t//var_dump($value);\n\t\t\t\tforeach ($value as $key2 => $value2) {\n\t\t\t\t\t$title = $value2['title'];\t\n\t\t\t\t\t//var_dump($title);\t\t\t\t\t\n\t\t\t\t\t$titulo = '<li><a href=\"#\"><i class=\"icon-magic-wand\"></i><span class=\"text\">'.$title.'</span><span class=\"indicator\"></span></a>';;\n\t\t\t\t\t$interlist .= '<li><a href=\"'.$value2['link'].'\"><i class=\"icon-magic-wand\"></i><span class=\"text\">'.$value2['text'].'</span></a></li>';\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t$return .= $titulo;\n\t\t\t\t$return .= '<ul>';\n\t\t\t\t$return .= $interlist;\n\t\t\t\t$return .= '</ul>';\n\t\t\t\t$return .= '</li>';\n\n\t\t\t}\t\n\t\t}\t\n\t\t$return .= '</ul>';\n\n\n\t\t// $return .= '</ul>';\n\t\treturn $return;\t \n\t}", "function listadeMembroPorNome($nome){\r\n require_once (\"conexao.php\");\r\n require_once (\"modelo/objetoMembro.php\");\r\n \r\n $objDao = Connection::getInstance();\r\n \r\n $resultado = mysql_query(\"SELECT Matricula,Nome,Naturalidade,Fone FROM membros WHERE Nome LIKE '%$nome%'\") or die (\"Nao foi possivel realizar a busca\".mysql_error());\r\n $listaMembro = array();\r\n \r\n $i=0;\r\n \r\n \r\n while ($registro = mysql_fetch_assoc($resultado)){\r\n \r\n// if($registro[\"Nome\"] != \"\"){\r\n \r\n\t $membro = new objetoMembro();\r\n \r\n $membro->setMatricula($registro['Matricula']);\r\n $membro->setNome($registro['Nome']);\r\n $membro->setNatural($registro['Naturalidade']); \r\n\t $membro->setFone($registro['Fone']); \r\n \r\n\t $listaMembro[$i] = $membro;\r\n \r\n//\t}\r\n $i++;\r\n }\r\n\t\treturn $listaMembro;\r\n\t\tmysql_free_result($resultado);\r\n $objDao->freebanco();\r\n }", "public function marca()\n {\n $lista_marcas=Marca::TraerLista_Marca();\n\n //logica de las marcas\n $alfabeto = array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','Ñ','O','P','Q','R','S','T','U','V','W','X','Y','Z'); \n $seccion_marcas=\"\";\n foreach ($alfabeto as $char)\n { \n $ul1=\"\";\n $ul2=\"\";\n $ul3=\"\";\n $flag=1;\n $letraok=false;\n foreach ($lista_marcas as $indice => $item)\n {\n $n=ucfirst($item->nombre);\n if (substr($n, 0, 1)==$char)\n { \n switch ($flag)\n {\n case 1:\n $letraok=true; \n $ul1.='<li>'.$n.'</li>';\n $flag=2;\n break;\n case 2:\n $ul2.='<li>'.$n.'</li>'; \n $flag=3;\n break;\n case 3:\n $ul3.='<li>'.$n.'</li>'; \n $flag=1;\n break;\n } \n unset($lista_marcas[$indice]);\n } \n }\n if ($letraok)\n {\n $seccion_marcas.='<h5>'.$char.'</h5>';\n $seccion_marcas.='<div class=\"row\">';\n $seccion_marcas.='<div class=\"col-md-4\"> <ul>'. $ul1.'</ul> </div>';\n $seccion_marcas.='<div class=\"col-md-4\"> <ul>'. $ul2.'</ul> </div>';\n $seccion_marcas.='<div class=\"col-md-4\"> <ul>'. $ul3.'</ul> </div>';\n $seccion_marcas.='</div>';\n } \n\n }\n //\n return view('web.marca',compact('seccion_marcas'));\n }", "function cl_far_listacontroladomed() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"far_listacontroladomed\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "public function lista(){\n\t\t\tglobal $app;\n\t\t\t$sth = $this->PDO->prepare(\"SELECT * FROM sedecchamados\");\n\t\t\t$sth->execute();\n\t\t\t$result = $sth->fetchAll(\\PDO::FETCH_ASSOC);\n\t\t\t$app->render('default.php',[\"data\"=>$result],200); \n\t\t}", "public function listadoUnidadmedida(){\n \n\t\t$data= $this->Model_maestras->BuscarUmedida();\n\t\n\t\techo($data); \n\t \n\n\t}", "public function getPengajuan() {\n $dataPengajuan = Pengajuan::model()->findAll('NIM=:NIM', array(':NIM' => Yii::app()->user->getUsername()));\n return CHtml::listData($dataPengajuan, 'IDPengajuan', 'Judul');\n }", "private static function StructureList ()\n {\n return array (\n \"a\" => \"<a ###>$$$</a>\",\n \"button\" => \"<button ###>$$$</button>\"\n );\n }", "public function liababyMenuLinks() {\n\n\t\tif(Session::getSess('logged') == false) {\n\t\t\t$this->liababyMenuLinks .= '\n\t\t\t\t<li><a href=\"'. $this->dataInfo['BASE_URL'] .'user/regUser\" title=\"\" subtitle=\"Присъедини се\">Регистрация</a></li>\n\t\t\t\t<li><a href=\"'. $this->dataInfo['BASE_URL'] .'user/logIn\" title=\"\" subtitle=\"Влез в сайта\" class=\"last\">Вход</a></li>\n\t\t\t';\n\t\t} else {\n\t\t\t$username = $this->setUrl('userNameDisplay');\n\t\t\t$this->liababyMenuLinks .= '\n\t\t<li><a href=\"'. $this->dataInfo['BASE_URL'] .'user/userProfile/'. $username .'\" title=\"\" subtitle=\"вашият профил\">Профил</a></li>\n\t\t<li><a href=\"'. $this->dataInfo['BASE_URL'] .'user/logOut\" title=\"\" subtitle=\"от профила\" class=\"last\">Изход</a></li>\n\t\t\t';\n\t\t}\n\t}", "protected function listar() {\r\n\r\n\r\n\r\n\t\t$lista=\"\";\r\n\t\t//$valores_db = mysql_query();\r\n\r\n\t\t$query = \"SELECT * FROM fornecedores\";\r\n\r\n\t\t$valores_db = $this->model->query($query);\r\n\t\t$letra = \"B\";\r\n\r\n\r\n\t\twhile ($linha = mysql_fetch_array($valores_db)) {\r\n\r\n\t\t\tif ($letra==\"B\") {\r\n\t\t\t\t$letra=\"A\";\r\n\t\t\t}elseif ($letra==\"A\") {\r\n\t\t\t\t$letra = \"B\";\r\n\t\t\t}\r\n\r\n\t\t\t\t\r\n\t\t\t$lista.= \"\r\n\t\t\r\n\t\t\t<tr class='grade\".$letra.\"'>\r\n\t\t\t<td class='center'>\".$linha[\"id\"].\"</td>\r\n\t\t\t<td class='center'>\".html_entity_decode($linha[\"nome\"]).\"</td>\r\n\t\t\t<td class='center'>\".html_entity_decode($linha[\"cidade\"]).\"</td>\r\n\t\t\t<td class='center'>\".$linha[\"fone\"].\"</td>\r\n\t\t\t<td class='center'>\".$linha[\"email\"].\"</td>\r\n\t\t\t\t<td class='actBtns'>\r\n\t\t\t\t<a href='\".URL.$_GET[\"var1\"].\"/Editar/\".$linha[\"id\"].\"' title='Editar' class='tipS'><img\r\n\t\t\t\t\t\tsrc='\". Folder.\"images/icons/control/16/pencil.png'\r\n\t\t\t\t\t\talt='' /> </a> <a href='\".URL.$_GET[\"var1\"].\"/Deletar/\".$linha[\"id\"].\"' title='Deletar' class='tipS'><img\r\n\t\t\t\t\t\tsrc='\". Folder.\"images/icons/control/16/clear.png' alt='' />\r\n\t\t\t\t</a>\r\n\t\t\t\t</td>\r\n\t\t\t</tr>\";\r\n\r\n\t\t}\r\n\r\n\t\t$this->view->lista = $lista;\r\n\r\n\t}", "function getListEntry()\n {\n $fields = goService::getListEntry();\n $fields['Message'] = _(\"Spamassassin\");\n#$fields['AllowEdit'] = true;\n return($fields);\n }", "function index(){\n\t\t$list = $this->user->ambil_semua_data();\n\n\t\t/* hasil data */\n\t\t$data['result'] = $list;\n\n\t\t/* Load view */\n\t\t$this->template->write_view('list', $data);\n\t}", "public function renderHTML() {\r\n\t\t$aff = $this->renderstyle ();\r\n\t\t$aff .= '<div id=\"FilAriane\"><a href=\"../../index.php?menu=4\">Site Emploi</a>&nbsp;>&nbsp;Liste des pages d\\'informations</div><br /><br />';\r\n\t\t$aff .= '<input type=\"button\" value=\"Nouveau\" onclick=\"location.href=\\'?action=newpage\\'\" /><br/><br/>';\r\n\t\t$aff .= '<table id=\"TableList\" width=\"100%\">';\r\n\t\t$aff .= '<tr class=\"title\">';\r\n\t\t$aff .= '\t<td align=\"center\" width=\"50\"><b>#</b></td>';\r\n\t\t$aff .= '\t<td align=\"center\"><b>Titre</b></td>';\r\n\t\t$aff .= '\t<td align=\"center\"><b>Espace</b></td>';\r\n\t\t$aff .= '\t<td align=\"center\"><b>Affichage</b></td>';\r\n\t\t$aff .= '\t<td width=\"50\" align=\"center\"><b>Action</b></td>';\r\n\t\t$aff .= '</tr>';\r\n\t\t$row = 1;\r\n\t\tforeach ( $this->myList->getList () as $aVerif ) {\r\n\t\t\t$aff .= '<tr>';\r\n\t\t\t$aff .= '\t<td align=\"center\" width=\"50\" class=\"' . ($row == 1 ? 'row1' : 'row2') . '\">' . $aVerif->getidpageinfo () . '</td>';\r\n\t\t\t$aff .= '\t<td align=\"center\" class=\"' . ($row == 1 ? 'row1' : 'row2') . '\">' . $aVerif->gettitre () . '</td>';\r\n\t\t\t$aff .= '\t<td align=\"center\" class=\"' . ($row == 1 ? 'row1' : 'row2') . '\">';\r\n\t\t\tif ($aVerif->getespace () == 1) {\r\n\t\t\t\t$aff .= '\tConcessionnaire</td>';\r\n\t\t\t} else {\r\n\t\t\t\t$aff .= '\tCandidat</td>';\r\n\t\t\t}\r\n\t\t\t$aff .= ' </td>';\r\n\t\t\t$aff .= '\t<td class=\"' . ($row == 1 ? 'row1' : 'row2') . '\" align=\"center\">';\r\n\t\t\tif ($aVerif->getaffichage () == 1) {\r\n\t\t\t\t$aff .= '\t<img src=\"../../include/images/icone_oui.png\" alt=\"\">';\r\n\t\t\t} else {\r\n\t\t\t\t$aff .= '\t<img src=\"../../include/images/icone_non.png\" alt=\"\">';\r\n\t\t\t}\r\n\t\t\t$aff .= '</td>';\r\n\r\n\t\t\t$aff .= '\t<td class=\"' . ($row == 1 ? 'row1' : 'row2') . '\" width=\"50\" align=\"center\"><a style=\"cursor:pointer;\" onclick=\"ok(\\'' . $aVerif->getidpageinfo () . '\\', \\'' . $aVerif->gettitre () . '\\')\"><img src=\"../../include/images/add.png\" border=0/></a></td>';\r\n\t\t\t$aff .= '</tr>';\r\n\t\t\t$row = ($row == 1 ? 2 : 1);\r\n\t\t}\r\n\r\n\t\t$aff .= '</table>';\r\n\r\n\t\techo $aff;\r\n\t}", "public function listar(){\r\n }", "function cheezeList($cheezeList){\n $cheezeListView = \"\\nLes frommages : \\n\";\n for($i=0;$i<count($cheezeList);$i++){\n $cheezeListView .= $i.\")\".$cheezeList[$i].\"\\n\";\n }\n return $cheezeListView;\n }", "public static function accueilDatas(){\n return ['title'=>'Notre page d\\'accueil',\n 'h1'=>'Bienvenue',\n 'h2'=>'sur notre site',\n 'content' => [\"premier paragraphe\",\"Deuxieme paragraphe\",\"Paragraphe final\"]\n\n ];\n }", "private function ListaNoticias(){\r\n \r\n $tabela = '<table id=\"tabela\" class=\"noticia\">\r\n <tr>\r\n \t<th>Data</th>\r\n \t<th>Titulo</th>\r\n <th>Editar</th>\r\n <th>Excluir</th>\r\n </tr>\r\n ';\r\n $a = $this -> __bdnoticia -> GetNoticia();\r\n while ($not = mysql_fetch_array($a)){ \r\n $tabela = $tabela . '\r\n <tr>\r\n <td>'. funcoes::DecorarData(funcoes::ConvertDateBD(substr($not['datahora'],0,10))).'</td>\r\n <td>'.stripslashes(base64_decode($not['titulo'])).'</td>\r\n <td><center><a href=\"#\" class=\"editar\" id=\"'.$not[0].'\"><img src=\"images/edit.png\" alt=\"\" /></a></center></td>\r\n <td><center><a href=\"#\" class=\"excluir\" id=\"'.$not[0].'\"><img src=\"images/excluir.png\" alt=\"\" /></a></center></td>\r\n </tr>';\r\n \r\n }\r\n \r\n $tabela = $tabela .'\r\n </table>';\r\n \r\n \r\n \r\n return $tabela;\r\n \r\n }", "public function getUl() {}", "function users(){\n\t$listado= mysql_query(\"select us.name as name, us.email as email , co.name as pais\n\tfrom users us\n\tjoin country co on co.Code=us.countryCode\");\n\t\n\t$i = 1;\n\t\n\twhile ($reg = mysql_fetch_array($listado)) {\n\t\techo '<tr>';\n\t\techo '<td >' . $i . '</td>';\n\t\techo '<td >' . mb_convert_encoding($reg['name'], \"UTF-8\") . '</td>';\n\t\techo '<td >' . mb_convert_encoding($reg['email'], \"UTF-8\") . '</td>';\n\t\techo '<td >' . mb_convert_encoding($reg['pais'], \"UTF-8\") . '</td>';\n\t\techo '</tr>';\n\t\t$i++;\n\t}\n}", "function absender_bestimmen($absender,$db){\n$query1=\"select * from user\";\n\t$antwort1=$db->query($query1);\n\t$antwort1=array_bildung($antwort1);\n\t\n\t$i=0;\n\tforeach($absender[Absender] as $name => $inhalt){\n\tif($inhalt==0){\n\t\t$absender[Absender][$i]=\"Information an Alle !\";\n\t}\n\t\n\t\t$k=0;\n\t\tforeach($antwort1[id] as $name1 => $inhalt1){\n\t\t\tif($inhalt==$inhalt1){\n\t\t\t\t$absender[Absender][$i]=$antwort1[Name][$k].\"&nbsp;&nbsp;\".$antwort1[Vorname][$k].\"&nbsp;&nbsp;- \".$antwort1[Bemerkung][$k].\" -\";\n\t\t\t}\n\t\t$k++;\n\t\t}\n\t$i++;\n\t}\n\treturn $absender;\n}", "function meatsList($meatsList){\n $meatListView = \"\\nLes viandes : \\n\";\n for($i=0;$i<count($meatsList);$i++){\n $meatListView .= $i.\")\".$meatsList[$i].\"\\n\";\n }\n return $meatListView;\n }", "function __toString(){\n\n $contenu = file_get_contents($this->template.\"/index.twig\");\n \n //foreach($this->personnalisations as $key=>$value){\n // $contenu = str_replace(\"{{ $key }}\",$value, $contenu);\n //}\n\n //on a pas besoin de sortir du dossier classes car il prend le html a la source\n\n return $contenu;\n\n }", "function TieuChuan_List(){\n\t\t$sql = \"SELECT * FROM dvt_ks_tieuchuan ORDER BY idTC\";\n\t\t$rs = mysql_query($sql) or die(mysql_error());\n\t\treturn $rs;\n\t}", "function listar_meses()\n{\n $meses = [\n '1' => 'Enero',\n '2' => 'Febrero',\n '3' => 'Marzo',\n '4' => 'Abril',\n '5' => 'Mayo',\n '6' => 'Junio',\n '7' => 'Julio',\n '8' => 'Agosto',\n '9' => 'Septiembre',\n '10' => 'Octubre',\n '11' => 'Noviembre',\n '12' => 'Diciembre',\n ];\n\n return $meses;\n}", "public function getListUnParseHtml()\n\t{\n\t\treturn $this->listUnFilterHtmlFunction;\n\t}", "function listitems($name)\r\n\t\t{\r\n\t\t \t\r\n\t\t}", "public function generate()\n {\n if (TL_MODE == 'BE')\n {\n $objTemplate = new \\BackendTemplate('be_wildcard');\n \n $objTemplate->wildcard = '### EINSATZLISTE ###';\n $objTemplate->href = 'contao/main.php?do=themes&table=tl_module&act=edit&id=' . $this->id;\n \n return $objTemplate->parse();\n }\n \n return parent::generate();\n }", "public function getListeTypeContent () \n {\n $db = $this->getModel('db');\n $sql = \"SHOW TABLES LIKE '\" . $this->table_cms_contenu . \"_%'\";\n $stmt = $db->query($sql);\n for (true; $res = $db->fetch_assoc($stmt); true) {\n $liste_type_content[] = $res['Tables_in_' . Clementine::$config['clementine_db']['name'] . ' (' . $this->table_cms_contenu . '_%)']; \n }\n return $liste_type_content;\n }", "public function generate()\r\n {\r\n if (TL_MODE == 'BE')\r\n {\r\n $objTemplate = new \\BackendTemplate('be_wildcard');\r\n \r\n $objTemplate->wildcard = '### ' . utf8_strtoupper($GLOBALS['TL_LANG']['FMD']['bericht_list'][0]) . ' ###';\r\n $objTemplate->title = $this->headline;\r\n $objTemplate->id = $this->id;\r\n $objTemplate->link = $this->name;\r\n $objTemplate->href = 'contao/main.php?do=themes&table=tl_module&act=edit&id=' . $this->id;\r\n \r\n return $objTemplate->parse();\r\n }\r\n \r\n return parent::generate();\r\n }", "function displayAllReason($listingAllReason){\n\t$contents='<label for=\"allReason\">Motif :</label>\n <select name=\"allReason\" required >\n <option value=\"\" selected >--choix motif--</option>';\n\tforeach ($listingAllReason as $line ) {\n\t\t$sentence='<option value=\"'.$line->libelle_motif.'\" >'.$line->libelle_motif.'</option>';\n\t\t$contents.=$sentence;\n\t}\n\t$contents.='</select>';\n\treturn $contents;\n}", "function berita(){\n\t\tcek_session_admin();\n\t\t$data['record'] = $this->model_berita->list_berita();\n\t\t$this->load->view('administrator/mod_berita/view_berita2',$data);\n\t}", "public function getAvatarList(){\n return $this->_get(5);\n }", "public static function findAll()\n {\n $PDO = singleton::getInsance();\n $resulatBDD = $PDO->query(\"SELECT * FROM Memebre\")->fetchAll();\n\n $resultat = [];\n foreach ($resulatBDD as $ligne)\n {\n $membre = new self(\n $ligne[\"Prenom\"],\n $ligne[\"Nom\"],\n $ligne[\"Mail\"],\n $ligne[\"Role\"]);\n $membre->id = $ligne[\"ID_membre\"];\n\n array_push($resultat, $membre);\n }\n return $resultat;\n }", "public function wxr_authors_list()\n {\n $db = Typecho_Db::get();\n $dbPrefix = $db->getPrefix();\n\n $user_table = $dbPrefix . 'users';\n $authors = $db->fetchAll($db->query(\"select uid,name,mail from {$user_table} where activated != 0\"));\n $html = '';\n foreach ( $authors as $author ) {\n $html .= \"\\t<wp:author>\";\n $html .= '<wp:author_id>' . $author['uid'] . '</wp:author_id>';\n $html .= '<wp:author_login>' . $author['name'] . '</wp:author_login>';\n $html .= '<wp:author_email>' . $author['mail'] . '</wp:author_email>';\n $html .= '<wp:author_display_name>' . $this->wxr_cdata($author['name']) . '</wp:author_display_name>';\n $html .= '<wp:author_first_name>' . $this->wxr_cdata('') . '</wp:author_first_name>';\n $html .= '<wp:author_last_name>' . $this->wxr_cdata('') . '</wp:author_last_name>';\n $html .= \"</wp:author>\\n\";\n }\n return $html;\n }", "function TablaListarItems()\n {\n //Logo\n $this->Image(\"./assets/img/logo.png\" , 20 ,12, 60 , 20 , \"PNG\"); \n //Arial bold 15\n $this->SetFont('Courier','B',15);\n //Movernos a la derecha\n $this->Cell(100);\n //Título\n $this->Cell(65,20,'LISTADO GENERAL DE SERVICIOS',0,0,'C');\n //Salto de línea\n $this->Ln(25);\n\t\n\t$con = new Login();\n $con = $con->ConfiguracionPorId();\n\t\n\t$this->SetFont('courier','B',9);\n\t$this->SetFillColor(2,157,116);\n\t$this->Cell(10,5,'',0,0,'');\n\t$this->Cell(35,5,'CÉDULA GERENTE: ',0,0,'');\n\t$this->Cell(44,5,$con[0]['cedresponsable'],0,0,'');\n\t$this->Cell(30,5,'NOMBRE GERENTE:',0,0,'');\n\t$this->Cell(83,5,$con[0]['nomresponsable'],0,1,'');\n \n $this->Cell(10,5,'',0,0,'');\n\t$this->Cell(35,5,'TELÉFONO GERENTE: ',0,0,'');\n $this->Cell(44,5,utf8_decode($con[0]['tlfresponsable']),0,0,'');\n $this->Cell(30,5,'CORREO GERENTE:',0,0,'');\n $this->Cell(83,5,utf8_decode($con[0]['correoresponsable']),0,0,'');\n $this->Ln(8);\n\t\t\n\t$this->SetFont('courier','B',10);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es BLANCO)\n $this->SetFillColor(249, 187, 31); // establece el color del fondo de la celda (en este caso es NARANJA)\n\t$this->Cell(10,8,'N°',1,0,'C', True);\n\t$this->Cell(20,8,'CÓDIGO',1,0,'C', True);\n\t$this->Cell(120,8,'NOMBRE DE ITEMS',1,0,'C', True);\n\t$this->Cell(25,8,'COSTO',1,0,'C', True);\n\t$this->Cell(18,8,'STATUS',1,1,'C', True);\n\t\n $tra = new Login();\n $reg = $tra->ListarItems();\n\t$a=1;\n for($i=0;$i<sizeof($reg);$i++){\n\t$this->SetFont('courier','',8); \n\t$this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es negro)\n $this->Cell(10,5,$a++,1,0,'C');\n\t$this->CellFitSpace(20,5,utf8_decode($reg[$i][\"coditems\"]),1,0,'C');\n $this->CellFitSpace(120,5,utf8_decode($reg[$i][\"nombreitems\"]),1,0,'C');\n\t$this->CellFitSpace(25,5,utf8_decode(number_format($reg[$i][\"costoitems\"], 2, '.', ',')),1,0,'C');\n\t$this->CellFitSpace(18,5,utf8_decode($reg[$i][\"statusitems\"]),1,0,'C');\n $this->Ln();\n\t\n }\n $this->Ln(12); \n $this->SetFont('courier','B',9);\n $this->Cell(5,6,'',0,0,'');\n $this->Cell(100,6,'ELABORADO POR: '.utf8_decode($_SESSION[\"nombres\"]),0,0,'');\n $this->Cell(60,6,'RECIBIDO:__________________________________',0,0,'');\n $this->Ln();\n $this->Cell(5,6,'',0,0,'');\n $this->Cell(100,6,'FECHA/HORA ELABORACIÓN: '.date('d-m-Y h:i:s A'),0,0,'');\n $this->Cell(60,6,'',0,0,'');\n $this->Ln(4);\n }", "function LI_LAST_PASIEN_REGISTER(){\r\n\tglobal $sql, $pengaturan;\r\n\t$teks = '';\r\n\t\r\n\t$sql -> db_Select(\"info_pasien\", \"id_pasien, nama_pasien, create_date\", \"status='1' ORDER BY create_date DESC LIMIT 5\");\r\n\t\r\n\twhile($row = $sql-> db_Fetch()){\r\n\t\t$teks .= \"<li><a class='tooltip' href=\\\"\".c_MODULEDIR.\"loket/info_pasien.php?umum.{$row['id_pasien']}\\\" title=\\\"U P 4 &mdash; {$row['id_pasien']} - Terdaftar \".$pengaturan->_ago($row['create_date']).\" yang lalu\\\">{$row['nama_pasien']}</a></li>\r\n\t\";\r\n\t}\r\n\treturn $teks;\r\n}", "function maquetacioItemsNotHoudini($model, $columna, $nomCaixa, $tipusCaixa, $ordre, $estilCaixa, $estilLlistat, $estilElement, $id_registre, $id_newsletter, $registre, $pathEditora)\n{\n global $CONFIG_URLBASE, $CONFIG_URLUPLOADIM, $CONFIG_estilsElement;\n\n $parametres = '<input type=\"hidden\" name=\"newsletter['.htmlspecialchars($model).']['.htmlspecialchars($columna).']['.htmlspecialchars($nomCaixa).']['.htmlspecialchars($tipusCaixa).'][]['.htmlspecialchars($estilCaixa).']['.htmlspecialchars($estilLlistat).']['.htmlspecialchars($estilElement).']\" value=\"'.htmlspecialchars($id_registre).'\" />';\n\n $imatge = $registre['IMATGE1'] != '' ? '<img src=\"' . $CONFIG_URLUPLOADIM . $registre['IMATGE1'] . '\" style=\"width: 159px;\" class=\"left\"/>' : '';\n return '<li id=\"noth_reg' . $id_registre . '\" class=\"box removable stylable clearfix '.$estilElement.'\">\n\t\t\t'.$parametres.'\n\t\t\t<div class=\"spacer clearfix\">\n\t\t\t\t'. $imatge .'\n\t\t\t\t<h4><a href=\"'.$CONFIG_URLBASE . $pathEditora . '/' . $registre['ID'] . '/' . $registre['URL_TITOL'].'\" rel=\"external\">'.$registre['TITOL'].'</a></h4>\n\t\t\t\t<p>'.$registre['RESUM'].'</p>\n\t\t\t</div>\n\t\t</li>';\n}", "function listerUtilisateur()\n\t{\n\t\t$req=\"select idUti, nomUti, prenomUti, photoUti, telPorUti, mailUti, statutUti from utilisateur\";\n\t\t$exereq = mysql_query($req) or die(mysql_error());\n\t\n\t\twhile($ligne=mysql_fetch_array($exereq))\n\t\t{\n\t\t\t$tab[]=$ligne;\n\t\t}\n\n\t\treturn $tab;\n\t}", "function listerTout() {\r\n echo \"Liste des impayes disponibles dans la base : <br/>\";\r\n $listeImpayes = Impaye::findAll();\r\n foreach ($listeImpayes as $value) {\r\n $value->afficher();\r\n }\r\n}", "public static function getList(){\n\t\t\t$sql = new sql();\n\n\t\t\treturn $sql->select(\"SELECT * FROM tb_usuarios ORDER BY deslogim\");\n\t\t}", "function ListeUtilisateurs(){\r\n\t\t$conn = mysqli_connect(\"localhost\", \"root\", \"\", \"bddfinale\");\r\n\t\t$requete=\"SELECT Pseudo FROM allinformations\";\r\n\t\t$ligne= mysqli_query($conn, $requete);\r\n\t\t$n = mysqli_num_rows($ligne);\r\n\t\t$Tab =array();\t\r\n\t\tif ($n > 0) {\r\n\t\t\twhile ($TabLigne = mysqli_fetch_assoc($ligne)) { \r\n\t\t\t\t$Tab[] = $TabLigne[\"Pseudo\"];\r\n\t\t\t} \r\n\t\t}\t\t\r\n\t\treturn $Tab;\r\n\t\tmysqli_close($conn);\r\n\t\t}", "public function lista2() { // Aqui define o ação: /users/lista\n $usuarios = new Users(); // Aqui carrega o model: Users\n $dados['usuarios'] = $usuarios->getUsuarios();\t\n if(isset($_GET['id']) && !empty($_GET['id'])) {\t\n $this->loadTemplate('usuario', $dados);\n }\n }", "function showMemberList()\r\n\t{\r\n\t\tglobal $skin;\r\n\t\tglobal $title;\r\n\t\tglobal $codex;\r\n\t\t$count=0;\r\n\t\t$start=\"users/\";\r\n\r\n\t\techo \"<div class='barre'>\";\r\n\t\techo \" <a class='barreLien' href='index.php' title='Index'>\". $title . \"</a> | \".$GLOBALS['l_menuMembers'];\r\n\t\techo \"</div>\";\r\n\r\n\t\techo \"<table border='0' cellpadding='0' cellspacing='0' width='100%'>\\n\";\r\n\t\techo \"<tr>\\n\";\r\n\t\techo \" <td class='col1tp' width='55%'>\".$GLOBALS['l_profUsername'].\"</td>\\n\";\r\n\t\techo \" <td class='col2tp' width='15%'>\".$GLOBALS['l_profLang'].\"</td>\\n\";\r\n\t\techo \" <td class='col3tp' width='15%'>\".$GLOBALS['l_profSkin'].\"</td>\\n\";\r\n\t\techo \" <td class='col4tp' width='15%'>\".$GLOBALS['l_getPosts'].\"</td>\\n\";\r\n\t\techo \"</tr>\\n\";\r\n\t\t$members=$codex->select_where(\"users\");\r\n\t\t\r\n\t\t\r\n\t\tforeach($members as $member)\r\n\t\t{\t\r\n\r\n\t\t\t\t\t\techo \"<tr>\\n <td class='filler' colspan='4'>\\n</td>\\n</tr>\\n\";\r\n\t\t\t\t\t\techo \"<tr valign='top'>\";\r\n\r\n\t\t\t\t\t\t// Username\r\n\t\t\t\t\t\techo \"<td class='col1bt'>\\n\";\r\n\t\t\t\t\t\techo \" <a class='topicLink' href='profile.php?action=view&amp;uname=\" .$member[\"username\"]. \"'>\" .$member[\"username\"]. \"</a>\\n\";\r\n\t\t\t\t\t\techo \"</td>\\n\";\r\n\r\n\t\t\t\t\t\t// Lang\r\n\t\t\t\t\t\techo \"<td class='col2bt'>\\n\";\r\n\t\t\t\t\t\techo $member[\"language\"].\"\\n\";\r\n\t\t\t\t\t\techo \"</td>\\n\";\r\n\r\n\t\t\t\t\t\t// Skin\r\n\t\t\t\t\t\techo \"<td class='col3bt'>\\n\";\r\n\t\t\t\t\t\techo $member[\"skin\"].\"\\n\";\r\n\t\t\t\t\t\techo \"</td>\\n\";\r\n\r\n\t\t\t\t\t\t// Num posts\r\n\t\t\t\t\t\techo \"<td class='col4bt'>\\n\";\r\n\t\t\t\t\t\tif (file_exists(\"users/\".$member[\"username\"].\".hits\")) echo getFile(\"users/\".$member[\"username\"].\".hits\") . \"\\n\";\r\n\t\t\t\t\t\telse echo \" -\";\r\n\t\t\t\t\t\techo \"</td>\\n\";\r\n\r\n\t\t\t\t\t\techo \"</tr>\\n\";\r\n\t\t\t\t\t\techo \"<tr valign='top'>\\n\";\r\n\r\n\t\t\t\t\t\t// Statement\r\n\t\t\t\t\t\techo \"<td class='coltxt' colspan='4'>\\n\";\r\n\t\t\t\t\t\techo \" <em>\".$member[\"statement\"].\"&nbsp;</em>\\n\";\r\n\t\t\t\t\t\techo \"</td>\\n\";\r\n\t\t\t\t\t\t\r\n\t\t}\t\t\r\n\t\t\techo \"<tr>\\n <td class='filler' colspan='4'>\\n</td>\\n</tr>\\n\";\r\n\t\t\r\n\t\t\r\n\t\techo \"</table>\";\r\n\t}", "public function lista() { // Aqui define o ação: /users/lista\n $usuarios = new Users(); // Aqui carrega o model: Users\n $dados['usuarios'] = $usuarios->getUsuarios();\t\n if(isset($_GET['id']) && !empty($_GET['id'])) {\t\n $this->loadTemplate('user_contact', $dados);\n }else { $this->loadTemplate('users_list', $dados);\n }\n }", "public function listRead_a() {\n //\n return view('perfils.aprendiz.aprendiz_mensajes_leidos');\n }", "public function liste() {\n // Charger la vue liste compteur\n $this->loadView('liste', 'content');\n // Lire les compteurs à partir de la bd et formater\n //$reglements = $this->em->selectAll('reglement');\n //$reglements = $this->em->getRefined($reglements);\n $liste = $this->em->selectAll('facture');\n $html = '';\n foreach ($liste as $key => $entity) {\n $state = 'impayée';\n if ($entity->getPaye()) {\n $state = 'payée';\n }\n $consommation = $this->em->selectById('consommation', $entity->getId());\n $compteur = $this->em->selectById('compteur', $consommation->getIdCompteur());\n $html .= '<tr>';\n $html .= '<td>' . $entity->getId() . '</td>';\n $html .= '<td><a href=\"reglements/facture/' . $entity->getNumero() . '\">' . $entity->getNumero() . '</a></td>';\n $html .= '<td>' . $compteur->getNumero() . '</td>';\n $html .= '<td>' . $consommation->getQuantiteChiffre() . ' litres</td>';\n $html .= '<td>' . $entity->getMontant() . ' FCFA</td>';\n $html .= '<td>' . $state . '</td>';\n $html .= '</tr>';\n }\n // Ajouter les compteurs à la vue\n $this->loadHtml($html, 'list');\n }", "private function pagProbleem()\n\t{\n\t\t$pageOutput = $this->menu();\n\t\t$pageOutput.= $this->div('open', 'id=\"inhoud\"');\n\t\t$pageOutput.= $this->h1('full', '', 'Er is iets misgelopen!');\n\t\t$pageOutput.= $this->div('close');\n\t\treturn $pageOutput;\n\t}", "public function listarParaUnir() {\n\t\t//de sesion, falta cambiar\n\t\t$_SESSION[\"nomCon\"] = $_GET[\"NombreCon\"];\n\t\t$juradoL = $this -> JuradoMapper -> findAllPro();\n\n\t\t$this -> view -> setVariable(\"jurado\", $juradoL);\n\t\t//falta agregar la vista, no se continuar\n\t\t$this -> view -> render(\"jurado\", \"listarUnir\");\n\t\t//falta cambiar\n\t}", "function _get_mms_member_description($response) {\r\n\tif(!empty($response->data)){\r\n\t\t$results = array();\r\n\t\t$search_query = db_select('user_getmms', 'u')\r\n ->fields('u', array('code', 'description'))\r\n ->execute()->fetchall();\r\n foreach($search_query as $result){\r\n \t$results[$result->code] = $result->description;\r\n }\r\n \r\n\t\t$rows = array();\r\n for ($n=0; $n <count($response->data); $n=$n+2) {\r\n $code = array();\r\n $m =$n+1;\r\n $code = $response->data[$n];\r\n $desc = $response->data[$m];\r\n $codecolumn = '';\r\n $codeexplode = explode(\"eduPersonOrgUnitDN=\", $response->data[$n]);\r\n $codecolumn =str_replace(')', '', $codeexplode[1]);\r\n $descex = explode(\"=\", $desc);\r\n $desccolumn = $descex[1];\r\n $ws_result[preg_replace('/\\s+/', '', $codecolumn)]= $desccolumn;\r\n } \r\n $final_diff_value = array_diff_assoc($ws_result,$results);\r\n\r\n if(!empty($final_diff_value)) {\r\n foreach($final_diff_value as $key=>$value) {\r\n $rows[] = array('data' => array('code' => $key, 'description' => $value));\r\n }\r\n }\r\n \r\n $header= array(\r\n 'code' => array('data' => t('Code')),\r\n 'description' => array('data' => t('Description')),\r\n );\r\n $tree = array();\r\n if(isset($rows)){\r\n foreach ($rows as $key => $value) {\r\n $tree[] =(object) $value;\r\n }\r\n }\r\n if(!empty($tree)){\r\n $tree = pager_array_splice($tree, 4);\r\n //Limit the no.of rows to 15\r\n $rows = pager_array_splice($rows, 10);\r\n }\r\n \r\n $rows = array_map(\"unserialize\", array_unique(array_map(\"serialize\", $rows)));\r\n \r\n $output = '<div class =\"table-trans-replace\">';\r\n $output .= theme('table', array('header' => $header, 'rows' => $rows, ));\r\n $output .= theme('pager', array('quantity' => 4));\r\n $output .= '</div>';\r\n return $output;\r\n\t}\r\n}", "public static function liste(){\n\t\t\t$sql=\"SELECT * from Genre\";\n\t\t\t$res=DB::get_instance()->prepare($sql);\n\t\t\t$res->execute();\n\t\t\t// gérer les erreurs éventuelles\n\t\t\tif($res->rowCount()==0){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t$p= $res->fetchAll();\n\t\t\treturn $p;\n\t\t\t\n\t\t}", "function mostrarDetalles($list,$app,$emailUsuario){\n echo \"<tbody class=\\\"tablalistado\\\">\";\n\n foreach($list as $fila)\n { //Rellena la columna tipo de correo con el color del correo correspondiente\n $remitente= $fila['remitente'];\n $tipoCorreo = $app->getCorreoEmailRemitente($emailUsuario,$remitente); \n \n echo \"<tr>\";\n echo \"<td scope=\\\"row\\\"> <a href='detalleCorreo.php?id_correo=\".$fila['idCorreo'].\"'/>\".$fila['idCorreo'].\"</td>\".\n \"<td scope=\\\"row\\\">\".\"<span id=\\\"marcacorreo\\\">\".$tipoCorreo.\"</span>\".\"</td>\".\n \"<td scope=\\\"row\\\">\".$fila['destinatario'].\"</td>\".\n \"<td scope=\\\"row\\\">\".$fila['fecha'].\"</td>\".\n \"<td scope=\\\"row\\\">\".$fila['asunto'].\"</td>\";\n echo \"</tr>\"; \n }\n echo \"</tbody>\";\n echo \"</table>\";\n}", "function modalidades_juegos_admin_listar ( ) {\t\n\t$result_set_Modalidad_Juego = db_query( \"SELECT * FROM {eSM_Modalidad_Juego} ORDER BY id_Modalidad_Juego ASC\" );\n\t\t\n\t$output = '<div class=\"form_item\">Lista de modalidades dadas de alta en la base de datos.</div>';\n\t$header = array (t('Name'), t('Plataforma'), t('Game'), t('Min Jugadores'), t('Max Jugadores'), '');\n\t\n\t//Pondremos un listado de modalidads disponibles\n\twhile( $Modalidad_Juego = db_fetch_object( $result_set_Modalidad_Juego ) ) {\n\t\t$result_set_Plataforma = db_query( \"SELECT * from {eSM_Plataforma} WHERE id_Plataforma = %d \", $Modalidad_Juego->id_Plataforma );\n\t\t\n\t\t$Plataforma = db_fetch_object( $result_set_Plataforma );\n\t\t\n\t\t$row = array();\n\t\t$row[] = $Modalidad_Juego->Nombre;\t\t\t\n\t\t$row[] = $Plataforma->Nombre;\n\t\t$row[] = $Modalidad_Juego->Nombre_Juego;\n\t\t$row[] = $Modalidad_Juego->Minimo_Jugadores;\n\t\t$row[] = $Modalidad_Juego->Maximo_Jugadores;\n\t\t$row[] = l( t( 'Editar' ), 'admin/base_datos_externa/modalidades/'.$Modalidad_Juego->id_Modalidad_Juego.'/editar' );\n\t\t\n\t\t$rows[] = $row;\n\t}\n\t$output .= theme('table', $header, $rows);\n\t\n\t$output .= l(t('Agregar modalidad'), 'admin/base_datos_externa/modalidades/insertar');\n\treturn $output;\n}", "function content($word) {\n $link = new Db;\n $link2 = new Db;\n $link->query(sprintf(\"select path,descr,razd.id as rid,razd.type_user from texts,razd where razd.site='%d' and texts.razd=razd.id and messages like '%%%s%%'\",$this->sitenumber,addslashes($word)));\n $y=$link->num_rows();\n $j=0;\n for ($i=0;$i<$y;$i++) {\n $res[$i]=$link->next_record();\n if ($this->auth->verify($res[$i])) {\n $result[$j]=$res[$i];\n $result[$j]['msg']=$this->muntree($result[$j]['rid'],$link2);\n\t $j++;\n }\n }\n $smarty = new Smarty; \n $smarty->assign(\"res\",$result);\n $smarty->assign(\"word\",$word);\n $smarty->assign(\"from\",$this->from);\n $res=$smarty->fetch(\"{$this->path}sres-cont.tpl\");\n// $link2->close();\n return $res;\n }", "public function pagina_principal() {\n\t\t$customData['barrios'] = $this->Data_model->list_barrios();\n\t\t$customData['generos'] = $this->Data_model->list_generos();\n\t\treturn $this->parser->parse('content.html', $customData, true);\n\t}", "function listadeMembroativosDao(){\r\n require_once (\"conexao.php\");\r\n require_once (\"modelo/objetoMembro.php\");\r\n \r\n $objDao = Connection::getInstance();\r\n \r\n $resultado = mysql_query(\"Select Matricula,Nome,Naturalidade,Fone from membros where Status = 'ATIVO' order by Nome\") or die (\"Nao foi possivel realizar a busca\".mysql_error());\r\n $listaMembro = array();\r\n \r\n $i=0;\r\n \r\n while ($registro = mysql_fetch_array($resultado, MYSQL_ASSOC)){\r\n \r\n\t $membro = new objetoMembro();\r\n \r\n $membro->setMatricula($registro['Matricula']);\r\n $membro->setNome($registro['Nome']);\r\n $membro->setNatural($registro['Naturalidade']); \r\n\t $membro->setFone($registro['Fone']); \r\n \r\n\t $listaMembro[$i] = $membro;\r\n \r\n\t $i++;\r\n\t}\r\n\r\n\t\treturn $listaMembro;\r\n\t\tmysql_free_result($resultado);\r\n $objDao->freebanco();\r\n \r\n }", "public function listarAction()\n {\n// Config::$mvc_bd_clave, Config::$mvc_bd_hostname);\n\n// $m = $this->get('jamab.model');\n\n $em = $this->getDoctrine()->getManager();\n $alimentos = $em->getRepository('JazzywebAulasMentorAlimentosBundle:Alimento')->dameAlimentos();\n\n $params = array(\n 'alimentos' => $alimentos,\n );\n\n return $this->render(\n 'JazzywebAulasMentorAlimentosBundle:Default:mostrarAlimentos.html.twig',\n $params\n );\n }", "function skin_sets_overview_row_menulist( $r ) {\n\n$IPBHTML = \"\";\n//--starthtml--//\n\n$IPBHTML .= <<<EOF\nimg_edit + \" <!--ALTERED.wrappper--><a href='{$this->ipsclass->base_url}&section={$this->ipsclass->section_code}&act=wrap&code=edit&id={$r['set_skin_set_id']}&p={$r['set_skin_set_parent']}'>Изменить общий шаблон форума</a>\",\nimg_edit + \" <!--ALTERED.templates--><a href='{$this->ipsclass->base_url}&section={$this->ipsclass->section_code}&act=templ&code=template-sections-list&id={$r['set_skin_set_id']}&p={$r['set_skin_set_parent']}'>Изменить HTML шаблоны</a>\",\nimg_edit + \" <!--ALTERED.css--><a href='{$this->ipsclass->base_url}&section={$this->ipsclass->section_code}&act=style&code=edit&id={$r['set_skin_set_id']}&p={$r['set_skin_set_parent']}'>Изменить таблицу стилей (CSS — расширенный режим)</a>\",\nimg_edit + \" <!--ALTERED.css--><a href='{$this->ipsclass->base_url}&section={$this->ipsclass->section_code}&act=style&code=colouredit&id={$r['set_skin_set_id']}&p={$r['set_skin_set_parent']}'>Изменить цвета (CSS — простой режим)</a>\",\nimg_edit + \" <!--ALTERED.macro--><a href='{$this->ipsclass->base_url}&section={$this->ipsclass->section_code}&act=image&code=edit&id={$r['set_skin_set_id']}&p={$r['set_skin_set_parent']}'>Изменить макросы</a>\",\nimg_edit + \" <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=edit&id={$r['set_skin_set_id']}'>Настройки</a>\",\nEOF;\nif ( $r['set_skin_set_id'] != 1 )\n{\n$IPBHTML .= <<<EOF\n\nimg_item + \" <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=revertallform&id={$r['set_skin_set_id']}'>Удалить все внесенные изменения</a>\",\nimg_export + \" <a href='{$this->ipsclass->base_url}&section={$this->ipsclass->section_code}&act=import&code=showexportpage&id={$r['set_skin_set_id']}'>Экспортировать</a>\",\nimg_view + \" <a href='{$this->ipsclass->base_url}&section={$this->ipsclass->section_code}&act=skindiff&code=skin_diff_from_skin&skin_id={$r['set_skin_set_id']}'>Создать отчет сравнения</a>\",\nimg_delete + \" <a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=remove&id={$r['set_skin_set_id']}'>Удалить</a>\",\nEOF;\n}\nif ( $r['set_skin_set_id'] != 1 AND ! $r['set_skin_set_parent'] )\n{\n$IPBHTML .= <<<EOF\n\nimg_add + \" <a href='#' onclick=\\\"addnewpop('{$r['set_skin_set_id']}','menu_{$r['set_skin_set_id']}')\\\">Добавить подстиль с настройками текущего</a>\",\nEOF;\n}\n\n//--endhtml--//\nreturn $IPBHTML;\n}", "public function getBannedAccountsList() {\n\t\t$result = $this->db->queryFetch(\"SELECT \"._CLMN_MEMBID_.\", \"._CLMN_USERNM_.\", \"._CLMN_EMAIL_.\" FROM \"._TBL_MI_.\" WHERE \"._CLMN_BLOCCODE_.\" = 1 ORDER BY \"._CLMN_MEMBID_.\" ASC\");\n\t\tif(!is_array($result)) return;\n\t\treturn $result;\n\t}" ]
[ "0.6277091", "0.6066718", "0.5942826", "0.59394896", "0.58651376", "0.5859542", "0.58530647", "0.5820939", "0.5807368", "0.57999176", "0.5798653", "0.57639146", "0.575", "0.5725659", "0.57024866", "0.5701009", "0.5692349", "0.56683546", "0.5652621", "0.56430817", "0.56220007", "0.56155926", "0.55835223", "0.55643976", "0.5555933", "0.55551064", "0.55524427", "0.5542711", "0.553441", "0.5533395", "0.5519329", "0.5512395", "0.549966", "0.549437", "0.5493566", "0.54867077", "0.54846585", "0.54816437", "0.54795873", "0.5460208", "0.5453546", "0.5451136", "0.5449315", "0.54297704", "0.54218704", "0.5420764", "0.5411192", "0.5409262", "0.5409223", "0.5407782", "0.53963786", "0.5394479", "0.53890824", "0.5388986", "0.5388092", "0.537528", "0.5373579", "0.53735226", "0.5368285", "0.53665376", "0.5365456", "0.53597975", "0.53570414", "0.53553313", "0.535287", "0.5351842", "0.533549", "0.5335029", "0.5334789", "0.5330785", "0.5329068", "0.53278357", "0.531898", "0.53130895", "0.5311848", "0.5305891", "0.5301195", "0.52990353", "0.5296217", "0.52961284", "0.52939904", "0.5292549", "0.52862054", "0.5284868", "0.5284616", "0.52842283", "0.5282035", "0.52803934", "0.5279618", "0.5275744", "0.5269818", "0.5266654", "0.52651864", "0.5264914", "0.5261505", "0.5259828", "0.52580124", "0.52579993", "0.52569574", "0.525335", "0.5251481" ]
0.0
-1
Get the path of the file to create
private function get_path($action) { return APP_ROOT . 'views/' . $this->name . '/' . $action . '.php'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFilePath()\n {\n\n if (is_writable($_SERVER['DOCUMENT_ROOT'])) {\n return $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . $this->getFileName();\n }\n\n }", "public function getPathToFile(): string;", "public function path(): string\n {\n return 'files/' . $this->model->filename();\n }", "public function getFilePath(): string\n {\n return oas_path(\n $this->version . '/components/schemas/' . $this->getFileName() . '.json'\n );\n }", "public function getFilePath();", "public function getFilePath();", "public function getFilePath();", "public function getFilePath();", "public function fullPath(){\n if ( strpos( $this->template, DIRECTORY_SEPARATOR ) === 0 ) {\n return $this->template . '.php';\n } else {\n return $this->path . DIRECTORY_SEPARATOR . $this->template . '.php';\n }\n }", "private function getFilePath() {\n\t\treturn $this->options['path'].'/'.md5($this->options['revision']).'/'.$this->path;\n\t}", "private function getFilePath() {\n return FileService::getInstance()->getTempDirPath() . DIRECTORY_SEPARATOR . $this->fileBaseName;\n }", "protected function getFileGenerationPath()\n {\n $path = $this->getPathByOptionOrConfig('path', 'migration_target_path');\n $fileName = $this->getDatePrefix() . '_' . $this->argument('migrationName') . '.php';\n\n return \"{$path}/{$fileName}\";\n }", "public static function getFilePath(): string\n {\n return static::getInstance()->getFilePath();\n }", "public function getFilePath(): string\n {\n return $this->targetDir . '/' . $this->getFileName();\n }", "public function file()\n {\n return rtrim($this->destinationPath, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.$this->fileName;\n }", "public function getFilepath();", "public function generatePath($filename);", "public function getWritePath();", "private function pathFilename() {\n return $this->directory . \"/\" . $this->formatFilename();\n }", "public function getFilepath()\n {\n $filepath = $this->_path['dirname'].DIRECTORY_SEPARATOR.$this->_path['filename'];\n\n if ($this->_path['extension'])\n $filepath .= '.'.$this->_path['extension'];\n\n return $filepath;\n }", "public function getPath(){\n $ext = $this->getExt();\n $filename = $this->id.'.'.$ext;\n return str_replace( $filename, '', $this->filename ); \n }", "public function getPath(){\n\t \treturn $this->dirname.'/'.$this->filename.'.'.$this->extension;\n\t }", "public static function getFilePath()\n\t{\n\t\treturn __FILE__;\n\t}", "public static function getFilePath()\n\t{\n\t\treturn __FILE__;\n\t}", "public function getFilePath(): string;", "public function getFilePath(): string;", "public function path(): string\n {\n return realpath($this->file);\n }", "public function getFilepath()\n {\n return $this->folder.'/'.$this->file.'.json';\n }", "public function getScreenshotFilePath() {\n $uploadPath = $this->getScreenshotUploadPath();\n if (!is_dir($uploadPath)) {\n mkdir($uploadPath);\n }\n return $uploadPath . $this->id . \".\" . $this->screenshotFile->extension;\n }", "protected function outputPath()\n {\n $destination = $this->ask('Where do you want to save the file? (Press enter for the current directory)'); \n $output_path = !is_null($destination) ? $destination : generate_path($this->config('source'));\n \n if (!file_exists($output_path)) {\n mkdir($output_path, 0744, true);\n }\n\n return $output_path;\n }", "protected function _generateFilePath() {\n\t\treturn self::normalPaths(\n\t\t\tMage::getBaseDir(),\n\t\t\tMage::helper('pepperjam_network/config', $this->getStore())->getExportFilePath(),\n\t\t\t$this->_getFileName()\n\t\t);\n\t}", "protected function createFile() {}", "public function path() {\n return $this->filepath();\n }", "public function getFilePath() {\n\t\t$path = SPREADSHEET_FILES_DIR . \"/\" . $this->file_name;\n\t\tif (file_exists($path)) {\n\t\t\treturn $path;\n\t\t}\n\t}", "public function filePath() {\n return $this->baseDir() . '/' . $this->fileName();\n }", "private function tempFilePath()\n {\n $path = 'exports/'.Str::random();\n\n // Make sure the file exists\n Storage::put($path, null);\n\n return Storage::path($path);\n }", "public function getFilepath() {\n\t\treturn $this->directory.$this->fileprefix.'-'.$this->filename.'.'.static::EXTENSION;\n\t}", "public function getFilePath()\n {\n return $this->file_path;\n }", "protected function createPath($file)\n\t{\n\t\treturn str_replace(DIRECTORY_SEPARATOR, '/', dirname(__DIR__)) . '/' . $file;\n\t}", "private function getSavePath()\n\t{\n\t\t$todoDir = $this->todoDir;\n\t\t$fileExtendedName = $this->addExtension();\n\t\treturn $todoDir . $fileExtendedName;\n\t}", "private function buildFilePath(): string\n\t{\n\t\tif ($this->taskName === null) {\n\t\t\tthrow new EmptyTaskNameException('Task name was not set.');\n\t\t}\n\n\t\treturn SafeStream::PROTOCOL . '://' . $this->directory . '/' . sha1($this->taskName);\n\t}", "protected function initFilePath() {\n \n $result = $this->profiler->getLogsPath();\n \n $result .= $this->key.'.log';\n \n if ( !file_exists( $result ) ) {\n touch( $result );\n }\n \n return $result;\n }", "protected function get_file() {\r\n\t\t$file = '';\r\n\r\n\t\tif ( @file_exists( $this->file ) ) {\r\n\t\t\tif ( ! is_writeable( $this->file ) ) {\r\n\t\t\t\t$this->is_writable = false;\r\n\t\t\t}\r\n\r\n\t\t\t$file = @file_get_contents( $this->file );\r\n\t\t} else {\r\n\t\t\t@file_put_contents( $this->file, '' );\r\n\t\t\t@chmod( $this->file, 0664 );\r\n\t\t}\r\n\r\n\t\treturn $file;\r\n\t}", "public function getFilepath()\n {\n return $this->filepath;\n }", "public function getFilepath() {\n\t\treturn RuntimeDirectoryManager::getDocumentRoot().$this->filename;\n\t}", "public function getFile(): string\n {\n return $this->filePath;\n }", "public function getTemplateFilePath() {\n\t}", "public function getPath() {\n return FILES_LOCATION . DS . $this->getType() . DS . $this->getId();\n }", "protected function get_file() {\n\n\t\t$file = '';\n\n\t\tif ( @file_exists( $this->file ) ) {\n\n\t\t\tif ( ! is_writeable( $this->file ) ) {\n\t\t\t\t$this->is_writable = false;\n\t\t\t}\n\n\t\t\t$file = @file_get_contents( $this->file );\n\n\t\t} else {\n\n\t\t\t@file_put_contents( $this->file, '' );\n\t\t\t@chmod( $this->file, 0664 );\n\n\t\t}\n\n\t\treturn $file;\n\t}", "public function getFullPath(): string;", "public function getFilename()\n {\n return __FILE__;\n }", "protected function getFilePath()\n {\n return $this->filePath;\n }", "public function getFilePath()\n {\n return $this->filePath;\n }", "public function getPathname(): string\n {\n return $this->directory->getPath().'/'.$this->filename;\n }", "public function getPath()\n {\n $path = Yii::getAlias('@webroot') .\n DIRECTORY_SEPARATOR . \"uploads\" .\n DIRECTORY_SEPARATOR . $this->folder_uploads .\n DIRECTORY_SEPARATOR . $this->guid;\n\n if (!is_dir($path)) {\n mkdir($path);\n }\n\n return $path;\n }", "public function getFilePath() {\n return $this->path;\n }", "public function createFile()\n {\n return $this->addExcludesNameEntry($this->files);\n }", "public function filePath();", "protected function generateFullPathToUploadFile()\n {\n // $this->fullPathToUploadFile = str_replace(\"/\", \"\\\\\", storage_path('app/' . $this->pathToFile));\n $this->fullPathToUploadFile = storage_path('app/' . $this->pathToFile);\n }", "public function createPath()\n {\n return config('maxolex.config.views').'/'.$this->parser->singular().'/'.'create.blade.php';\n }", "protected function makeFilename()\n {\n return getcwd().'/bolt_'.md5(time().uniqid()).'.zip';\n }", "protected function getStorageFile()\n\t{\n\t\t$this->createDirectory();\n\t\treturn $this->storagePath.$this->storageFileName;\n\t}", "public function createPath(string $path): string;", "public function path(): string;", "public function path(): string;", "public function getPath() {\r\n\t\t\treturn $this->filePath;\r\n\t\t}", "protected function makeFilename()\n {\n return getcwd().'/october_installer_'.md5(time().uniqid()).'.zip';\n }", "protected function get_file() {\n\n\t\treturn __FILE__;\n\t}", "function _getFilePath($key){\n return $this->savePath .'/'. $this->prefix . md5($key);\n }", "function getFilename()\n {\n return __FILE__;\n }", "private function getLoggerFile()\n {\n return $this->getLoggerFolder() . DIRECTORY_SEPARATOR . self::FILE_NAME;\n }", "public function getFilename()\n {\n return static::filename($this->path);\n }", "protected function makeTemporaryFile(): string\n {\n return DIRECTORY_SEPARATOR . trim(sys_get_temp_dir(), DIRECTORY_SEPARATOR) .\n DIRECTORY_SEPARATOR . ltrim(uniqid('epp', true), DIRECTORY_SEPARATOR);\n }", "public function getPath()\n {\n return $this->_folder . DIRECTORY_SEPARATOR . $this->_name;\n }", "function get_new_file($id_progetto) {\n return sys_get_temp_dir() . DIRECTORY_SEPARATOR . \"ReportQuestionariProgetto-\" . str_pad($id_progetto, 4, '0', STR_PAD_LEFT) . \".xlsx\";\n }", "protected function getPath () {\n\tglobal $Config;\n\treturn $Config->get('dir_root').'/'.$this->dir.'/'.$this->name;\n }", "protected function filepath() {\n if (is_null($this->path)) {\n try {\n $path = $this->config->get('path');\n $jar = $this->config->get('jar');\n\n $this->path = rtrim($path, '/') . DIRECTORY_SEPARATOR . $jar;\n } catch (Exception $exception) {\n $this->setErrorFromException($exception);\n }\n }\n\n return $this->path;\n }", "private function getVersionFile()\n {\n return $this->dir . DIRECTORY_SEPARATOR . self::VERSION_FILE;\n }", "private function filePath()\n {\n return $this->filePath;\n }", "public function getFilePath() {\n return $this->filePath;\n }", "public function getFilePath() {\n return base_path() . '/lam.json';\n }", "function getAtomEntryFilePath() {\n\t\treturn $this->_outPath .'/'. $this->_fileDir .'/'. $this->_atomEntryFileName;\n\t}", "public function getFileName();", "public function getFileName();", "public function getFileName();", "public function getFilePath() {\n\t\treturn $this->filePath;\n\t}", "function getPath(): string;", "public function createFolderPath()\n {\n return \"uploads/\".date('Y').\"/\".date('m').\"/\";\n }", "public function getDestinationFilePath(): string\n {\n return self::$DESTINATION_DIRECTORY . '/' . $this->outputFileName;\n }", "public function getPath(): string;", "public function getPath(): string;", "public function getPath(): string;", "public function getPath(): string;", "public function getPath(): string;", "public function getPath(): string;", "public function getPath(): string;", "public function getPath(): string;", "public function getNewFilePath()\r\n {\r\n return $this->_newFilePath;\r\n }", "public function getFullPath();", "protected function ensureTestFilePath()\n {\n $path = $this->getTestFilePath();\n FileHelper::createDirectory($path);\n return $path;\n }", "public function getFilePath() {\n\t\t$spec = self::$specs[$this->id];\n\t\treturn array_value($spec, \"filepath\", NULL);\n\t}" ]
[ "0.7242557", "0.7231793", "0.7221965", "0.72081345", "0.71832395", "0.71832395", "0.71832395", "0.71832395", "0.71613145", "0.7099384", "0.7089555", "0.70774937", "0.7069211", "0.706392", "0.6979205", "0.69607794", "0.6958469", "0.693589", "0.6905637", "0.6883355", "0.6875427", "0.6869617", "0.6860115", "0.6860115", "0.6855531", "0.6855531", "0.6855039", "0.6835571", "0.68257844", "0.6822186", "0.68151265", "0.67994773", "0.67760396", "0.67753226", "0.6774239", "0.67666405", "0.67625993", "0.6751931", "0.6714889", "0.66883886", "0.6657404", "0.66570306", "0.664258", "0.6641127", "0.66237754", "0.6607495", "0.6593601", "0.6566243", "0.65527874", "0.6529617", "0.6529164", "0.6526162", "0.6511705", "0.65015715", "0.64998925", "0.64971334", "0.64868385", "0.6477819", "0.64777774", "0.64655787", "0.6465352", "0.6463019", "0.64561045", "0.6448751", "0.6448751", "0.6438516", "0.64362365", "0.6421451", "0.63934886", "0.6393485", "0.63831484", "0.63796765", "0.6372943", "0.6368208", "0.63582003", "0.63463783", "0.63357824", "0.6334286", "0.6326405", "0.6324681", "0.63219744", "0.6320817", "0.63208103", "0.63208103", "0.63208103", "0.6320517", "0.6319066", "0.63120234", "0.63112694", "0.6307625", "0.6307625", "0.6307625", "0.6307625", "0.6307625", "0.6307625", "0.6307625", "0.6307625", "0.6296789", "0.6292053", "0.6289397", "0.62875617" ]
0.0
-1
Configure the CrudPanel object. Apply settings to all operations.
public function setup() { CRUD::setModel(\App\Models\About::class); CRUD::setRoute(config('backpack.base.route_prefix') . '/about'); CRUD::setEntityNameStrings('запись', 'О нас'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setup()\n {\n $this->crud->setModel('App\\Models\\Category');\n $this->crud->setRoute(config('backpack.base.route_prefix') . '/category');\n $this->crud->setEntityNameStrings('category', 'categories');\n\n /*\n |--------------------------------------------------------------------------\n | CrudPanel Configuration\n |--------------------------------------------------------------------------\n */\n\n // TODO: remove setFromDb() and manually define Fields and Columns\n// $this->crud->setFromDb();\n $arr=\n [\n [\n 'name'=>'orderBy',\n 'label'=>'Order',\n 'type'=>'number'\n ]\n , [\n 'name'=>'name',\n 'label'=>'Name',\n 'type'=>'text'\n ]\n ,[\n 'name' => 'image', // The db column name\n 'label' => \"Category image\", // Table column heading\n 'type' => 'upload',\n 'prefix'=>'uploads/category',\n 'height'=>'150px',\n 'width'=>'150px',\n 'upload' => true,\n ]\n ];\n $this->crud->addFields([\n [\n 'name'=>'orderBy',\n 'label'=>'orderBy',\n 'type'=>'number'\n ],\n [\n 'name'=>'name',\n 'label'=>'Name',\n 'type'=>'text'\n ]\n ,[\n 'name' => 'image', // The db column name\n 'label' => \"Category image\", // Table column heading\n 'type' => 'upload',\n 'prefix'=>'uploads/',\n 'upload' => true,\n ],\n [\n 'name' => 'active',\n 'label' => 'Active',\n 'type' => 'checkbox'\n ]\n ]);\n\n $this->crud->addColumns([\n [\n 'name'=>'orderBy',\n 'label'=>'Order',\n 'type'=>'number'\n ],\n [\n 'name'=>'name',\n 'label'=>'Name',\n 'type'=>'text'\n ]\n ,[\n 'name' => 'image', // The db column name\n 'label' => \"Category image\", // Table column heading\n 'type' => 'image',\n 'prefix'=>'uploads/',\n 'height'=>'300px',\n 'width'=>'300px',\n ],\n [\n 'name' => 'active',\n 'label' => 'Active',\n 'type' => 'boolean'\n ]\n ]);\n\n $this->crud->enableBulkActions();\n $this->crud->addBulkDeleteButton();\n// $this->crud->enableDetailsRow();\n// $this->crud->allowAccess('details_row');\n $this->crud->allowAccess('show');\n $this->crud->enableExportButtons();\n // add asterisk for fields that are required in CategoryRequest\n $this->crud->setRequiredFields(StoreRequest::class, 'create');\n $this->crud->setRequiredFields(UpdateRequest::class, 'edit');\n }", "public function setup()\n {\n $this->crud->setModel('App\\Models\\ExpiredCompany');\n $this->crud->setRoute(config('backpack.base.route_prefix') . '/expired-company');\n $this->crud->setEntityNameStrings('Expired Company', 'Expired Companies');\n\n /*\n |--------------------------------------------------------------------------\n | CrudPanel Configuration\n |--------------------------------------------------------------------------\n */\n\n // TODO: remove setFromDb() and manually define Fields and Columns\n // $this->crud->setFromDb();\n $this->setupColumns();\n $this->setupFilters();\n\n // add asterisk for fields that are required in ExpiredCompanyRequest\n $this->crud->setRequiredFields(StoreRequest::class, 'create');\n $this->crud->setRequiredFields(UpdateRequest::class, 'edit');\n\n $this->crud->removeAllButtonsFromStack('top');\n $this->crud->addButtonFromView('line', 'renew', 'renew_company');\n $this->crud->removeButton('update');\n $this->crud->setListView('crud::customize.list');\n $this->crud->removeButtonFromStack('create', 'top');\n $this->crud->enableExportButtons();\n\n if (backpack_user()->hasAnyRole([CAG_VIEWER_ROLE, COMPANY_VIEWER_ROLE])) {\n $this->crud->denyAccess('delete');\n $this->crud->denyAccess('update');\n }\n $this->crud->setEditView('crud::companies.renew');\n }", "public function setup()\n {\n $this->crud->setListView('crud::customize.list');\n $this->crud->setCreateView('crud::customize.create');\n $this->crud->setEditView('crud::customize.edit');\n $this->crud->setShowView('crud::customize.show');\n// $this->crud->allowAccess('show');\n\n /*\n |--------------------------------------------------------------------------\n | CrudPanel Configuration\n |--------------------------------------------------------------------------\n */\n }", "public function setup()\n {\n $this->crud->setModel('App\\Models\\Sala');\n $this->crud->setRoute(config('backpack.base.route_prefix') . '/sala');\n $this->crud->setEntityNameStrings('sala', 'salas');\n\n /*\n |--------------------------------------------------------------------------\n | CrudPanel Configuration\n |--------------------------------------------------------------------------\n */\n\n // TODO: remove setFromDb() and manually define Fields and Columns\n $this->crud->setFromDb();\n $this->crud->modifyField(\n 'nome',\n [\n 'name' => 'nome',\n 'label' => 'Nome da Sala',\n 'type' => 'text',\n 'attributes' => [\n 'maxlength' => '50',\n ]\n ]\n );\n\n $this->crud->modifyField(\n 'capacidade',\n [\n 'name' => 'capacidade',\n 'label' => 'Capacidade da Sala',\n 'type' => 'textnumeric',\n 'max' => '9'\n ]\n );\n // add asterisk for fields that are required in SalaRequest\n $this->crud->setRequiredFields(StoreRequest::class, 'create');\n $this->crud->setRequiredFields(UpdateRequest::class, 'edit');\n }", "public function setup()\n {\n $this->crud->setModel('App\\Models\\Manufacturer');\n $this->crud->setRoute(config('backpack.base.route_prefix') . '/manufacturer');\n $this->crud->setEntityNameStrings('manufacturer', 'manufacturers');\n\n $this->crud->logFrom = 'manufacturer';\n $this->crud->addButtonFromView('line','showLog','show_log','end');\n\n /*\n |--------------------------------------------------------------------------\n | CrudPanel Configuration\n |--------------------------------------------------------------------------\n */\n\n // TODO: remove setFromDb() and manually define Fields and Columns\n $this->crud->addFields\n ([\n [\n 'label' => 'Название',\n 'type' => 'text',\n 'name' => 'title'\n ],\n [\n 'label' => 'Описание',\n 'type' => 'summernote',\n 'name' => 'description'\n ],\n [\n 'label' => 'Мета H1',\n 'type' => 'text',\n 'name' => 'h1'\n ],\n [\n 'label' => 'Мета title',\n 'type' => 'text',\n 'name' => 'meta_title'\n ],\n [\n 'label' => 'Мета description',\n 'type' => 'text',\n 'name' => 'meta_description'\n ],\n [\n 'label' => 'Фото',\n 'type' => 'browse_custom',\n 'name' => 'image'\n ],\n [\n 'label' => 'Порядок сортировки',\n 'type' => 'number',\n 'name' => 'sort_order',\n 'default' => 0\n ],\n [\n 'label' => 'Статус',\n 'type' => 'select_from_array',\n 'name' => 'active',\n 'options' => [\n 0 => 'Выкл',\n 1 => 'Вкл'\n ]\n ],\n [\n 'label' => 'Поле object_type таблицы urls',\n 'name' => 'object_type',\n 'type' => 'hidden',\n 'entity' => 'url',\n 'model' => 'App\\Models\\Url',\n 'value' => 'manufacturer'\n ],\n [\n 'label' => 'SEO Url товара',\n 'name' => 'url',\n 'type' => 'text',\n 'entity' => 'url',\n 'model' => 'App\\Models\\Url',\n ],\n ]);\n\n $this->crud->getCurrentEntry();\n if($this->crud->entry && $this->crud->entry->url->url){\n $this->crud->addfield([\n 'label' => 'Ссылка',\n 'name' => 'href',\n 'type' => 'href',\n 'value' => url($this->crud->entry->url->url),\n ]);\n }\n\n $this->crud->addColumn([\n 'label' => 'Название',\n 'type' => 'text',\n 'name' => 'title'\n ]);\n\n // add asterisk for fields that are required in ManufacturerRequest\n $this->crud->setRequiredFields(StoreRequest::class, 'create');\n $this->crud->setRequiredFields(UpdateRequest::class, 'edit');\n }", "public function setup()\n {\n $this->crud->setModel('App\\Models\\ActionsOption');\n $this->crud->setRoute(config('backpack.base.route_prefix') . '/actions-options');\n $this->crud->setEntityNameStrings(trans('fields.action_option'), trans('fields.action_options'));\n\n /*\n |--------------------------------------------------------------------------\n | CrudPanel Configuration\n |--------------------------------------------------------------------------\n */\n\n\n $this->crud->removeButton('delete');\n\n $this->crud->addButtonFromView('line', 'delete-mandatory', 'delete-mandatory', 'end');\n\n\n $this->crud->setColumns([\n [\n // 1-n relationship\n 'label' => trans('fields.event'),\n 'type' => \"select\",\n 'name' => 'event_id', // the column that contains the ID of that connected entity;\n 'entity' => 'event', // the method that defines the relationship in your Model\n 'attribute' => \"name\", // foreign key attribute that is shown to user\n 'model' => \"App\\Models\\Event\", // foreign key model\n ],\n [\n // 1-n relationship\n 'label' => trans('fields.device'),\n 'type' => \"select\",\n 'name' => 'device_id', // the column that contains the ID of that connected entity;\n 'entity' => 'device', // the method that defines the relationship in your Model\n 'attribute' => \"name\", // foreign key attribute that is shown to user\n 'model' => \"App\\Models\\Device\", // foreign key model\n ],\n [ // Enum\n 'name' => 'type',\n 'label' => trans('fields.type'),\n 'type' => 'enum'\n ],\n [\n 'name' => 'key',\n 'label' => trans('fields.key'),\n 'type' => 'number',\n ],\n [\n 'name' => 'name',\n 'label' => trans('fields.name'),\n 'type' => 'text',\n ],\n ]);\n\n // Fields\n $this->crud->addFields([\n [\n 'name' => 'name',\n 'label' => trans('fields.name'),\n 'type' => 'text',\n ],\n [\n 'name' => 'key',\n 'label' => trans('fields.key'),\n 'type' => 'number',\n ],\n [ // Select2\n 'label' => trans('fields.event'),\n 'type' => 'select2',\n 'name' => 'event_id', // the db column for the foreign key\n 'entity' => 'event', // the method that defines the relationship in your Model\n 'attribute' => 'name', // foreign key attribute that is shown to user\n 'model' => \"App\\Models\\Event\", // foreign key model\n ],\n [ // Enum\n 'name' => 'type',\n 'label' => trans('fields.type'),\n 'type' => 'enum'\n ],\n [ // Select2\n 'label' => trans('fields.device'),\n 'type' => 'select2',\n 'name' => 'device_id', // the db column for the foreign key\n 'entity' => 'device', // the method that defines the relationship in your Model\n 'attribute' => 'name', // foreign key attribute that is shown to user\n 'model' => \"App\\Models\\Device\", // foreign key model\n ],\n [\n 'name' => 'company_id',\n 'type' => 'hidden',\n 'value' => backpack_user()->company->id\n ],\n ]);\n\n // add asterisk for fields that are required in EmployeeActionOptionRequest\n $this->crud->setRequiredFields(StoreRequest::class, 'create');\n $this->crud->setRequiredFields(UpdateRequest::class, 'edit');\n }", "public function setup()\n {\n $this->crud->setModel('App\\Models\\User');\n $this->crud->setRoute(config('backpack.base.route_prefix') . '/user');\n $this->crud->setEntityNameStrings('user', 'users');\n\n /*\n |--------------------------------------------------------------------------\n | CrudPanel Configuration\n |--------------------------------------------------------------------------\n */\n\n ## Custom columns;\n $this->crud->addColumn([\n 'name' => 'name',\n 'label' => \"Name\",\n ]);\n $this->crud->addColumn([\n 'name' => 'surname',\n 'label' => \"Surname\",\n ]);\n $this->crud->addColumn([\n 'name' => 'email',\n 'label' => \"Email\",\n 'type' => 'email'\n ]);\n\n ## Custom fields\n $this->crud->addField([\n 'name' => 'name',\n 'label' => \"Name\"\n ]);\n $this->crud->addField([\n 'name' => 'surname',\n 'label' => \"Surname\"\n ]);\n $this->crud->addField([\n 'name' => 'birthday',\n 'label' => \"Birthday\",\n 'type' => 'date_picker',\n ]);\n $this->crud->addField([\n 'name' => 'gender',\n 'label' => \"Gender\",\n 'type' => 'select_from_array',\n 'options' => ['null' => 'Select Gender', 'male' => 'Male', 'female' => 'Female'],\n 'allows_null' => false,\n ]);\n $this->crud->addField([\n 'name' => 'phone',\n 'label' => \"Phone\"\n ]);\n $this->crud->addField([\n 'name' => 'address',\n 'label' => \"Address\"\n ]);\n $this->crud->addField([\n 'name' => 'password',\n 'label' => \"Password\"\n ]);\n $this->crud->addField([\n 'name' => 'email',\n 'label' => \"Email\",\n 'type' => 'email'\n ]);\n $this->crud->addField([ // Upload\n 'name' => 'avatar',\n 'label' => 'Avatar',\n 'type' => 'upload',\n 'upload' => true,\n 'disk' => 'public'\n ]);\n $this->crud->addField([ // Select2 = 1-n relationship\n 'label' => 'Blood Type',\n 'type' => 'select',\n 'name' => 'blood_type_id', // the db column for the foreign key\n 'entity' => 'bloodType', // the method that defines the relationship in your Model\n 'attribute' => 'title',\n 'model' => \"App\\Models\\BloodType\",\n ]);\n $this->crud->addField([\n 'name' => 'is_admin',\n 'label' => \"Administrator\",\n 'type' => 'select_from_array',\n 'options' => ['0' => 'No', '1' => 'Yes',],\n 'allows_null' => false,\n ]);\n\n // add asterisk for fields that are required in UserRequest\n $this->crud->setRequiredFields(StoreRequest::class, 'create');\n $this->crud->setRequiredFields(UpdateRequest::class, 'edit');\n }", "public function setup()\n {\n $this->crud->setModel('App\\Models\\Employee');\n $this->crud->setRoute(config('backpack.base.route_prefix') . '/employees');\n $this->crud->setEntityNameStrings(trans('fields.employee'), trans('fields.employees'));\n $this->crud->addButtonFromModelFunction('line', 'calendar', 'get_calendar_button', 'end'); // add a button whose HTML is returned by a method in the CRUD model\n $this->crud->addButtonFromModelFunction('line', 'password', 'change_password_button');\n// $this->crud->setEditView('change_password');\n /*\n |--------------------------------------------------------------------------\n | CrudPanel Configuration\n |--------------------------------------------------------------------------\n */\n\n $this->crud->enableExportButtons();\n\n $this->crud->allowAccess('show');\n\n $this->crud->setColumns([\n [\n 'label'=> trans('fields.name'),\n 'type' => \"select\",\n 'name' => 'user_id', // the column that contains the ID of that connected entity;\n 'entity' => 'user', // the method that defines the relationship in your Model\n 'attribute' => \"name\", // foreign key attribute that is shown to user\n// 'model' => \"App\\Users\", // foreign key model\n 'searchLogic' => function ($query, $column, $searchTerm) {\n $query->orWhereHas('user', function ($q) use ($column, $searchTerm) {\n $q->where('name', 'like', '%'.$searchTerm.'%');\n });\n },\n 'orderable' => true,\n 'orderLogic' => function ($query, $column, $columnDirection) {\n $query->leftJoin('users', 'users.id', '=', 'employees.user_id')\n ->orderBy('users.name', $columnDirection)->select('employees.*');\n }\n ],\n [\n 'name' => 'employee_uid',\n 'label' => trans('fields.employee_id'),\n 'type' => 'text',\n 'orderable' => false,\n ],\n [\n 'name' => 'email',\n 'label' => trans('fields.email'),\n 'type' => 'email',\n 'searchLogic' => function ($query, $column, $searchTerm) {\n $query->orWhereHas('user', function ($q) use ($column, $searchTerm) {\n $q->where('email', 'like', '%'.$searchTerm.'%');\n });\n }\n ],\n [\n 'name' => 'photo',\n 'label' => trans('fields.photo'),\n 'type' => 'image',\n 'orderable' => false,\n ],\n [\n 'name' => 'nif',\n 'label' => trans('fields.nif'),\n 'type' => 'text',\n 'orderable' => false,\n ],\n [\n 'name' => 'affiliation',\n 'label' => trans('fields.affiliation'),\n 'type' => 'text',\n 'orderable' => false,\n ],\n [\n 'name' => 'holidays',\n 'label' => trans('fields.holiday_days'),\n 'type' => 'text',\n 'orderable' => true,\n ],\n [\n 'label' => trans('fields.work_centers'),\n 'type' => \"select\",\n 'name' => 'workcenter_id', // the method that defines the relationship in your Model\n 'entity' => 'workcenter', // the method that defines the relationship in your Model\n 'attribute' => \"name\", // foreign key attribute that is shown to user\n 'model' => \"App\\Models\\Workcenter\", // foreign key model\n 'orderable' => false,\n ],\n [\n 'label' => trans('fields.departments'),\n 'type' => \"select\",\n 'name' => 'department_id', // the method that defines the relationship in your Model\n 'entity' => 'department', // the method that defines the relationship in your Model\n 'attribute' => \"name\", // foreign key attribute that is shown to user\n 'model' => \"App\\Models\\Department\", // foreign key model\n 'orderable' => false,\n ],\n ]);\n\n\n\n // Fields (both - create, update)\n $this->crud->addFields([\n [\n 'name' => 'name',\n 'label' => trans('fields.name'),\n 'type' => 'text',\n ]\n ]);\n // Fields (only create)\n $this->crud->addField(\n [\n 'name' => 'employee_uid',\n 'label' => trans('fields.employee_id'),\n 'type' => 'text',\n 'value' => $this->employee_uid(),\n 'hint' => trans('fields.employee_id_hint'),\n ], 'create')->afterField('name');\n\n // Fields (only update)\n $this->crud->addField(\n [\n 'name' => 'employee_uid',\n 'label' => trans('fields.employee_id'),\n 'type' => 'text',\n 'hint' => trans('fields.employee_id_hint'),\n ], 'update')->afterField('name');\n\n // Fields (both - create, update)\n $this->crud->addFields([\n [\n 'name' => 'email',\n 'label' => trans('fields.email'),\n 'type' => 'email',\n ]\n ]);\n // Fields (only create)\n $this->crud->addField(\n [\n 'name' => 'password',\n 'label' => trans('fields.password'),\n 'type' => 'password',\n ],'create')->afterField('email');\n $this->crud->addField(\n [\n 'name' => 'password_confirmation',\n 'label' => trans('fields.password_confirmation'),\n 'type' => 'password',\n ], 'create')->afterField('password');\n\n // Fields (both - create, update)\n $this->crud->addFields([\n [\n 'label' => trans('fields.photo'),\n 'name' => \"photo\",\n 'type' => 'image',\n 'upload' => true,\n 'crop' => false,\n 'aspect_ratio' => 1,\n ],\n [\n 'name' => 'nif',\n 'label' => trans('fields.nif'),\n 'type' => 'text',\n ],\n [\n 'name' => 'affiliation',\n 'label' => trans('fields.affiliation'),\n 'type' => 'text',\n ],\n [\n 'label' => trans('fields.work_centers'),\n 'type' => 'select2',\n 'name' => 'workcenter_id', // the method that defines the relationship in your Model\n 'entity' => 'workcenter', // the method that defines the relationship in your Model\n 'attribute' => 'name', // foreign key attribute that is shown to user\n 'model' => \"App\\Models\\Workcenter\", // foreign key model\n ],\n [\n 'label' => trans('fields.departments'),\n 'type' => 'select2',\n 'name' => 'department_id', // the db column for the foreign key\n 'entity' => 'department', // the method that defines the relationship in your Model\n 'attribute' => 'name', // foreign key attribute that is shown to user\n 'model' => \"App\\Models\\Department\", // foreign key model\n ],\n [\n 'name' => 'user_id',\n 'type' => 'hidden'\n ],\n ]);\n\n $this->crud->addField(\n [\n 'label' => trans('fields.working_days'),\n 'type' => 'working_day',\n 'name' => 'workingDays',\n 'entity' => 'workingDays',\n 'attribute' => 'id',\n 'model' => \"App\\Models\\WorkingDays\",\n 'pivot' => true,\n ], 'update')->afterField('affiliation');\n\n $this->crud->addField(\n [\n 'name' => 'holidays',\n 'label' => trans('fields.number_holidays'),\n 'type' => 'number'\n ], 'update')->afterField('affiliation');\n\n\n // add asterisk for fields that are required in EmployeeRequest\n $this->crud->setRequiredFields(StoreRequest::class, 'create');\n $this->crud->setRequiredFields(UpdateRequest::class, 'edit');\n }", "public function setup()\n {\n $this->crud->setModel('App\\Models\\Bio');\n $this->crud->setRoute(config('backpack.base.route_prefix') . '/bio');\n $this->crud->setEntityNameStrings('bio', 'bio');\n\n /*\n |--------------------------------------------------------------------------\n | CrudPanel Configuration\n |--------------------------------------------------------------------------\n */\n\n // TODO: remove setFromDb() and manually define Fields and Columns\n $this->crud->setColumns(['first_name', 'other_name', 'last_name', 'bio_description', 'gender', 'date_of_birth', 'residential_address', 'current_location', 'state_of_origin', 'nationality', 'profile_picture', 'email', 'phone_number', 'user_id']);\n\n $this->crud->addField( [\n 'name' => 'first_name',\n 'label' => 'First name',\n 'type' => 'text',\n 'placeholder' => 'First name'\n ], 'update/create/both');\n\n $this->crud->addField( [\n 'name' => 'other_name',\n 'label' => 'Other name',\n 'type' => 'text',\n 'placeholder' => 'Other name'\n ], 'update/create/both');\n\n $this->crud->addField( [\n 'name' => 'last_name',\n 'label' => 'Last name',\n 'type' => 'text',\n 'placeholder' => 'Last name'\n ], 'update/create/both');\n\n $this->crud->addField( [\n 'name' => 'bio_description',\n 'label' => 'Description',\n 'type' => 'summernote'\n ], 'update/create/both');\n\n $this->crud->addField( [\n 'name' => 'gender',\n 'label' => 'Gender',\n 'type' => 'radio',\n 'options' => [\n 'Male' => 'Male',\n 'Female' => 'Female'\n ]\n ], 'update/create/both');\n\n $this->crud->addField( [\n 'name' => 'date_of_birth',\n 'label' => 'Birthday',\n 'type' => 'date_picker',\n 'date_picker_options' => [\n 'format' => 'dd-mm-yyyy',\n 'language' => 'en'\n ]\n ], 'update/create/both');\n\n $this->crud->addField( [\n 'name' => 'residential_address',\n 'label' => 'Home Address',\n 'type' => 'address',\n 'store_as_json' => true\n ], 'update/create/both');\n\n $this->crud->addField( [\n 'name' => 'current_location',\n 'label' => 'Current location',\n 'type' => 'address',\n 'store_as_json' => true\n ], 'update/create/both');\n\n $this->crud->addField( [\n 'name' => 'state_of_origin',\n 'label' => 'State Of Origin',\n 'type' => 'address',\n 'store_as_json' => true\n ], 'update/create/both');\n\n $this->crud->addField( [\n 'name' => 'nationality',\n 'label' => 'Nationality',\n 'type' => 'text',\n 'store_as_json' => true\n ], 'update/create/both');\n\n $this->crud->addField( [\n 'name' => 'profile_picture',\n 'label' => 'Profile Picture',\n 'type' => 'image',\n 'upload' => true,\n 'crop' => true,\n 'prefix' => 'images/profile_pictures/'\n ], 'update/create/both');\n\n $this->crud->addField( [\n 'name' => 'email',\n 'label' => 'Email address',\n 'type' => 'email'\n ], 'update/create/both');\n\n $this->crud->addField( [\n 'name' => 'phone_number',\n 'label' => 'Phone number',\n 'type' => 'number'\n ], 'update/create/both');\n\n $this->crud->addField( [\n 'name' => 'user_id',\n 'label' => 'User',\n 'type' => 'select',\n 'entity' => 'user',\n 'attribute' => 'name',\n 'model' => 'Backpack\\Base\\app\\Models\\BackpackUser'\n ], 'update/create/both');\n\n // add asterisk for fields that are required in TagRequest\n $this->crud->setRequiredFields(StoreRequest::class, 'create');\n $this->crud->setRequiredFields(UpdateRequest::class, 'edit');\n }", "public function configureCrud(Crud $crud): Crud\n {\n return $crud\n ->showEntityActionsAsDropdown()\n ->setEntityLabelInSingular('Ingreso Almacen') //Form\n ->setEntityLabelInPlural('Ingresos Almacen') //Index\n ;\n }", "public function setup()\n {\n $this->crud->setModel('App\\Models\\Social');\n $this->crud->setRoute(config('backpack.base.route_prefix') . '/social');\n $this->crud->setEntityNameStrings('Mạng xã hội', 'Mạng xã hội');\n\n /*\n |--------------------------------------------------------------------------\n | CrudPanel Configuration\n |--------------------------------------------------------------------------\n */\n\n $this->crud->addColumn(['name' => 'social', 'type' => 'text', 'label' => 'Mạng xã hội']);\n $this->crud->addColumn(['name' => 'link', 'type' => 'text', 'label' => 'Đường dẫn']);\n\n $this->crud->addField([\n 'name' => 'social',\n 'type' => 'select_from_array',\n 'label' => 'Mạng xã hội',\n 'options' => ['Facebook' => 'Facebook', 'Instagram' => 'Instagram', 'Twitter' => 'Twitter'],\n 'allows_null' => false,\n 'default' => 'Facebook',\n ]);\n\n $this->crud->addField([\n 'name' => 'link',\n 'type' => 'text',\n 'label' => 'Đường dẫn',\n 'hint' => 'Nhập vào đường dẫn mạng xã hội của bạn'\n ]);\n\n // add asterisk for fields that are required in SocialRequest\n $this->crud->setRequiredFields(StoreRequest::class, 'create');\n $this->crud->setRequiredFields(UpdateRequest::class, 'edit');\n }", "public function configure()\n {\n if ($this->getOption('security_context')->isGranted('ROLE_PLATFORM_ADMIN')) {\n $companies = $this->getOption('entity_manager')->getRepository('Acme\\CrmBundle\\Entity\\Company')->findBy(array());\n $companiesForSelect = array('' => null);\n\n foreach ($companies as $company) {\n $companiesForSelect[$company->getId()] = $company->getCompanyName();\n }\n $companyTransformer = new EntityToIDTransformer(array(\n 'em' => $this->getOption('entity_manager'),\n 'className' => 'Acme\\CrmBundle\\Entity\\Company'\n ));\n $this->add(new ChoiceField('company', array(\n 'choices' => $companiesForSelect,\n 'value_transformer' => $companyTransformer,\n )));\n $this->add(new TextField('bundleName'));\n }\n\n // PREPARE THE EXTENSION CHOICES\n $extensions = $this->getOption('extension_manager')->getExtensions();\n $extensionChoices = array();\n foreach ($extensions as $extension) {\n $extensionChoices[$extension->getName()] = $extension->getTitle();\n }\n\n $this->add(new TextField('title'));\n $this->add(new TextField('host'));\n $this->add(new TextField('localesAsCsv'));\n $this->add(new TextField('defaultLocale'));\n\n $statisticsEngines = array(\n Site::STATS_NONE => \"\",\n Site::STATS_GOOGLE => Site::STATS_GOOGLE,\n Site::STATS_ACME => Site::STATS_YPROXIMITE,\n );\n $this->add(new ChoiceField('statisticsEngine', array('choices' => $statisticsEngines)));\n\n $this->add(new CheckboxField('enableExternalLinks'));\n $this->add(new CheckboxField('enableDir'));\n }", "public function setup()\n {\n $this->crud->setModel('App\\Models\\ProductSpec');\n $this->crud->setRoute(config('backpack.base.route_prefix') . '/product-spec');\n $this->crud->setEntityNameStrings('product-spec', 'product speces');\n\n /*\n |--------------------------------------------------------------------------\n | CrudPanel Configuration\n |--------------------------------------------------------------------------\n */\n // TODO: remove setFromDb() and manually define Fields and Columns\n\n $this->crud->addColumn([\n 'name'=>'name',\n 'label'=>'Name',\n ]);\n $this->crud->addColumn([\n 'name'=>'price',\n 'label'=>'Price',\n 'type'=>'enum',\n ]);\n $this->crud->addColumn([\n 'name'=>'cost',\n 'label'=>'Cost',\n 'type'=>'enum',\n ]);\n $this->crud->addColumn([\n 'name'=>'status',\n 'label'=>'Status',\n 'type'=>'enum',\n ]);\n $this->crud->addColumn([\n 'name'=>'image',\n 'label'=>'Image',\n 'type'=>'enum',\n ]);\n\n $this->crud->addColumn([\n 'label'=>'Category',\n 'type'=>'select',\n 'name'=>'categories',//categories ជាឈ្មោះfuntionដែលមានក្នុង Modelsរបស់spec ខុសពីុធម្មតា\n 'entity'=>'categories',\n 'attribute'=>'name',//name is category name from product_categories\n 'model'=>'App\\Models\\ProductSpec'\n\n ]);\n\n $this->crud->addField([\n 'name'=>'name',\n 'label'=>'Name',\n 'wrapperAttributes'=>[\n 'class'=>'form-group col-md-4'\n ]\n ]);\n $this->crud->addField([\n 'name'=>'price',\n 'label'=>'Price',\n 'type'=>'enum',\n 'wrapperAttributes'=>[\n 'class'=>'form-group col-md-4'\n ]\n ]);\n $this->crud->addField([\n 'name'=>'cost',\n 'label'=>'Cost',\n 'type'=>'enum',\n 'wrapperAttributes'=>[\n 'class'=>'form-group col-md-4'\n ]\n ]);\n $this->crud->addField([\n 'name'=>'image',\n 'label'=>'Image',\n 'type'=>'enum',\n 'wrapperAttributes'=>[\n 'class'=>'form-group col-md-4'\n ]\n\n ]);\n $this->crud->addField([\n 'name'=>'status',\n 'label'=>'Status',\n 'type'=>'enum',\n 'wrapperAttributes'=>[\n 'class'=>'form-group col-md-4'\n ]\n ]);\n\n $this->crud->addField([\n 'label'=>'Category',\n 'type'=>'select2_multiple',\n 'name'=>'categories',//categories ជាឈ្មោះfuntionដែលមានក្នុង Modelsរបស់spec ខុសពីុធម្មតា\n 'entity'=>'categories',\n 'attribute'=>'name',\n 'model'=>'App\\Models\\ProductCategory',//ខុសពី addColumn ។ វាជាModelរបស់tabel មួយទៀតដែលមានទំនាក់ទំនងជាមួយវា\n 'placeholder'=>\"\",\n 'minimum_input_length'=>0,\n 'pivot'=> true,\n 'wrapperAttributes'=>[\n 'class'=>'form-group col-md-4'\n ]\n ]);\n\n\n\n\n $this->crud->setFromDb();\n\n // add asterisk for fields that are required in ProductSpecRequest\n $this->crud->setRequiredFields(StoreRequest::class, 'create');\n $this->crud->setRequiredFields(UpdateRequest::class, 'edit');\n }", "public function setup()\n {\n\n /*\n |--------------------------------------------------------------------------\n | CrudPanel Basic Information\n |--------------------------------------------------------------------------\n */\n $this->crud->setModel('App\\Models\\Application');\n $this->crud->setRoute(config('backpack.base.route_prefix') . '/application');\n $this->crud->setEntityNameStrings('application', 'applications');\n $this->crud->orderBy('id', 'DESC');\n $this->crud->enableExportButtons();\n $this->crud->denyAccess('create');\n $this->crud->allowAccess('show');\n /*\n |--------------------------------------------------------------------------\n | CrudPanel Configuration\n |--------------------------------------------------------------------------\n */\n $this->crud->addColumns([\n [\n 'name' => 'id',\n 'label' => 'ID'\n ],\n [\n 'name' => 'full_name',\n 'label' => 'Full Name'\n ],\n [\n 'name' => 'phone',\n 'label' => 'Phone'\n ],\n [\n 'name' => 'email',\n 'label' => 'Email'\n ],\n [\n 'name' => 'status',\n 'type' => 'text',\n ],\n ]);\n $this->crud->addFields([\n [\n 'name' => 'full_name',\n 'label' => 'Full Name',\n 'wrapperAttributes' => [\n 'class' => 'form-group col-md-6',\n ],\n 'attributes' => [\n 'disabled' => 'disabled',\n ],\n ],\n [\n 'name' => 'phone',\n 'label' => 'Phone',\n 'wrapperAttributes' => [\n 'class' => 'form-group col-md-6',\n ],\n 'attributes' => [\n 'disabled' => 'disabled',\n ],\n ],\n\n [\n 'name' => 'message',\n 'type' => 'textarea',\n 'label' => 'Message',\n 'wrapperAttributes' => [\n 'class' => 'form-group col-md-12',\n ],\n 'attributes' => [\n 'style' => \"resize: none;\",\n 'rows' => 5,\n 'disabled' => 'disabled',\n ],\n ],\n [\n 'name' => 'email',\n 'label' => 'Email',\n 'type' => 'text',\n 'wrapperAttributes' => [\n 'class' => 'form-group col-md-8',\n ],\n 'attributes' => [\n 'disabled' => 'disabled',\n ],\n ],\n [\n 'name' => 'status',\n 'label' => 'Status',\n 'type' => 'enum',\n 'wrapperAttributes' => [\n 'class' => 'form-group col-md-4',\n ],\n ],\n\n [\n 'name' => 'admin_note',\n 'type' => 'textarea',\n 'label' => 'Admin note',\n 'wrapperAttributes' => [\n 'class' => 'form-group col-md-12',\n ],\n 'attributes' => [\n 'style' => \"resize: none;\",\n 'rows' => 5,\n ],\n ],\n ]);\n\n // add asterisk for fields that are required in ApplicationRequest\n $this->crud->setRequiredFields(StoreRequest::class, 'create');\n $this->crud->setRequiredFields(UpdateRequest::class, 'edit');\n }", "public function configureCrud(Crud $crud): Crud\n {\n return $crud\n ->setDefaultSort(['createdAt' => 'DESC'])\n // ...\n ;\n }", "public function setup()\n {\n $this->crud->setModel('App\\Models\\Permission');\n $this->crud->setRoute(config('backpack.base.route_prefix') . '/permission');\n $this->crud->setEntityNameStrings('permission', 'permissions');\n\n /*\n |--------------------------------------------------------------------------\n | CrudPanel Configuration\n |--------------------------------------------------------------------------\n */\n// $this->crud->enableBulkActions();\n// $this->crud->addBulkDeleteButton();\n\n $this->crud->addButtonFromModelFunction('top', 'generatePermissions', 'generatePermissionsButton', 'beginning');\n\n $this->crud->addFields([\n [\n 'label'=>'Name',\n 'name'=>'name'\n ],\n [\n 'label'=>'Guard',\n 'name'=>'guard_name',\n 'default'=>'web',\n 'type'=>'hidden'\n ],\n// [\n// 'label' => \"Roles\",\n// 'type' => 'checklist',\n// 'name' => 'roles', // the method that defines the relationship in your Model\n// 'entity' => 'roles', // the method that defines the relationship in your Model\n// 'attribute' => 'name', // foreign key attribute that is shown to user\n//\n// ],\n ], 'update/create/both');\n\n $this->crud->addColumns([\n [\n 'label'=>'Name',\n 'name'=>'name'\n ],\n [\n 'label'=>'Guard',\n 'name'=>'guard_name',\n ],\n [ // Select2Multiple = n-n relationship (with pivot table)\n 'label' => \"Roles\",\n 'type' => 'select_multiple',\n 'name' => 'roles', // the method that defines the relationship in your Model\n 'entity' => 'roles', // the method that defines the relationship in your Model\n 'attribute' => 'name', // foreign key attribute that is shown to user\n 'model' => \"App\\Models\\Role\", // foreign key model\n 'pivot' => true, // on create&update, do you need to add/delete pivot table entries?\n ],\n ]);\n\n\n// $this->crud->addButtonFromModelFunction('top', 'generatePermissionsButton', 'generatePermissionsButton', 'end');\n\n // add asterisk for fields that are required in PermissionRequest\n $this->crud->setRequiredFields(StoreRequest::class, 'create');\n $this->crud->setRequiredFields(UpdateRequest::class, 'edit');\n\n\n\n $this->crud->denyAccess(['list', 'create', 'update', 'reorder', 'delete', 'generatePermissions']);\n if(request()->user()->can('list permission'))\n $this->crud->allowAccess('list');\n if(request()->user()->can('create permission'))\n $this->crud->allowAccess('create');\n if(request()->user()->can('update permission'))\n $this->crud->allowAccess('update');\n if(request()->user()->can('delete permission'))\n $this->crud->allowAccess('delete');\n if(request()->user()->can('generate permission'))\n $this->crud->allowAccess(['generatePermissions']);\n }", "public function setup()\n {\n $this->crud->setModel('App\\Models\\Mobil');\n $this->crud->setRoute(config('backpack.base.route_prefix') . '/mobil');\n $this->crud->setEntityNameStrings('mobil', 'Mobil');\n\n /*\n |--------------------------------------------------------------------------\n | CrudPanel Configuration\n |--------------------------------------------------------------------------\n */\n\n $this->crud->setColumns([\n [\n 'name' => 'no_polisi',\n 'label' => 'No Polisi',\n 'type' => 'text'\n ],\n [\n 'label' => 'QS',\n 'type' => 'select',\n 'name' => 'qs_id',\n 'entity' => 'qs',\n 'attribute' => 'name',\n 'model' => \"App\\Models\\QS\",\n\n ],\n // PM\n [\n 'label' => 'PM',\n 'type' => 'select',\n 'name' => 'pm_id',\n 'entity' => 'pm',\n 'attribute' => 'name',\n 'model' => \"App\\Models\\PM\",\n\n ],\n\n // GR\n [\n 'label' => 'GR',\n 'type' => 'select',\n 'name' => 'gr_id',\n 'entity' => 'gr',\n 'attribute' => 'name',\n 'model' => \"App\\Models\\GR\",\n\n ],\n\n // Part\n [\n 'label' => 'Konfirmasi Part',\n 'type' => 'select',\n 'name' => 'part_id',\n 'entity' => 'part',\n 'attribute' => 'name',\n 'model' => \"App\\Models\\Part\",\n\n ],\n\n // Part\n [\n 'label' => 'Pekerjaan Tambahan',\n 'type' => 'select',\n 'name' => 'tambahan_id',\n 'entity' => 'tambahan',\n 'attribute' => 'name',\n 'model' => \"App\\Models\\Tambahan\",\n\n ],\n // Part\n [\n 'label' => 'Spooring & Balancing',\n 'type' => 'select',\n 'name' => 'sbalance_id',\n 'entity' => 'sbalance',\n 'attribute' => 'name',\n 'model' => \"App\\Models\\SBalance\",\n\n ],\n\n // Inspect\n [\n 'label' => 'Final Inspection',\n 'type' => 'select',\n 'name' => 'inspect_id',\n 'entity' => 'inspect',\n 'attribute' => 'name',\n 'model' => \"App\\Models\\Inspect\",\n\n ],\n\n // Inspect\n [\n 'label' => 'Cuci',\n 'type' => 'select',\n 'name' => 'cuci_id',\n 'entity' => 'cuci',\n 'attribute' => 'name',\n 'model' => \"App\\Models\\Cuci\",\n\n ],\n\n // Inspect\n [\n 'label' => 'Delivery',\n 'type' => 'select',\n 'name' => 'delivery_id',\n 'entity' => 'delivery',\n 'attribute' => 'name',\n 'model' => \"App\\Models\\Delivery\",\n\n ],\n\n ]);\n\n\n $this->crud->addFields([\n [\n 'name' => 'no_polisi',\n 'label' => 'No Polisi',\n 'type' => 'text'\n ],\n\n // QS\n [\n 'label' => 'QS',\n 'type' => 'select2',\n 'name' => 'qs_id',\n 'entity' => 'qs',\n 'attribute' => 'name',\n 'model' => \"App\\Models\\QS\",\n\n\n ],\n // PM\n [\n 'label' => 'PM',\n 'type' => 'select2',\n 'name' => 'pm_id',\n 'entity' => 'pm',\n 'attribute' => 'name',\n 'model' => \"App\\Models\\PM\",\n\n\n ],\n\n // GR\n [\n 'label' => 'GR',\n 'type' => 'select2',\n 'name' => 'gr_id',\n 'entity' => 'gr',\n 'attribute' => 'name',\n 'model' => \"App\\Models\\GR\",\n\n\n ],\n\n // Part\n [\n 'label' => 'Konfirmasi Part',\n 'type' => 'select2',\n 'name' => 'part_id',\n 'entity' => 'part',\n 'attribute' => 'name',\n 'model' => \"App\\Models\\Part\",\n\n\n ],\n\n // Part\n [\n 'label' => 'Pekerjaan Tambahan',\n 'type' => 'select2',\n 'name' => 'tambahan_id',\n 'entity' => 'tambahan',\n 'attribute' => 'name',\n 'model' => \"App\\Models\\Tambahan\",\n\n\n ],\n // Part\n [\n 'label' => 'Spooring & Balancing',\n 'type' => 'select2',\n 'name' => 'sbalance_id',\n 'entity' => 'sbalance',\n 'attribute' => 'name',\n 'model' => \"App\\Models\\SBalance\",\n\n\n ],\n\n // Inspect\n [\n 'label' => 'Final Inspection',\n 'type' => 'select2',\n 'name' => 'inspect_id',\n 'entity' => 'inspect',\n 'attribute' => 'name',\n 'model' => \"App\\Models\\Inspect\",\n\n\n ],\n\n // Inspect\n [\n 'label' => 'Cuci',\n 'type' => 'select2',\n 'name' => 'cuci_id',\n 'entity' => 'cuci',\n 'attribute' => 'name',\n 'model' => \"App\\Models\\Cuci\",\n\n\n ],\n\n // Inspect\n [\n 'label' => 'Delivery',\n 'type' => 'select2',\n 'name' => 'delivery_id',\n 'entity' => 'delivery',\n 'attribute' => 'name',\n 'model' => \"App\\Models\\Delivery\",\n\n\n ],\n\n ]);\n\n // TODO: remove setFromDb() and manually define Fields and Columns\n // $this->crud->setFromDb();\n\n // add asterisk for fields that are required in MobilRequest\n $this->crud->setRequiredFields(StoreRequest::class, 'create');\n $this->crud->setRequiredFields(UpdateRequest::class, 'edit');\n }", "public function setup()\n {\n $this->crud->setModel('App\\Models\\Product');\n $this->crud->setRoute(config('backpack.base.route_prefix') . '/product');\n $this->crud->setEntityNameStrings('Sản phẩm', 'Sản phẩm');\n $this->crud->orderBy('created_at', 'desc');\n /*\n |--------------------------------------------------------------------------\n | CrudPanel Configuration\n |--------------------------------------------------------------------------\n */\n\n $this->crud->addColumn(['name' => 'name', 'type' => 'text', 'label' => 'Name']);\n $this->crud->addColumn([\n 'name' => 'categories_id',\n 'type' => 'select',\n 'label' => 'Danh mục',\n 'entity' => 'category',\n 'attribute' => 'name',\n 'model' => 'App\\Models\\Category'\n ]);\n $this->crud->addColumn(['name' => 'price', 'type' => 'number', 'label' => 'Giá cả']);\n $this->crud->addColumn(['name' => 'description', 'type' => 'text', 'label' => 'Mô tả']);\n $this->crud->addColumn(['name' => 'short_description', 'type' => 'text', 'label' => 'Mô tả ngắn']);\n $this->crud->addColumn(['name' => 'status', 'type' => 'text', 'label' => 'Tình trạng']);\n $this->crud->addColumn([\n 'name' => 'top',\n 'type' => 'select_from_array',\n 'label' => 'Top',\n 'options' => ['false' => 'Không', 'true' => 'Có']\n ]);\n\n $this->crud->addField(['name' => 'name', 'type' => 'text', 'label' => 'Name']);\n $this->crud->addField([\n 'name' => 'categories_id',\n 'label' => 'Danh mục',\n 'type' => 'select',\n 'entity' => 'category',\n 'attribute' => 'name',\n 'model' => 'App\\Models\\Category'\n ]);\n $this->crud->addField(['name' => 'price', 'type' => 'number', 'number' => 'Giá cả']);\n $this->crud->addField([\n 'name' => 'description',\n 'type' => 'ckeditor',\n 'label' => 'Mô tả'\n ]);\n $this->crud->addField(['name' => 'short_description', 'type' => 'text', 'number' => 'Mô tả ngắn']);\n $this->crud->addField([\n 'name' => 'images',\n 'label' => 'Hình ảnh',\n 'type' => 'upload_multiple',\n 'upload' => true,\n 'disk' => 'public',\n 'hint' => 'Không nên chọn quá 4 ảnh để tối ưu trải nghiệm người dùng, ảnh đầu tiên sẽ là hình ảnh đại diện cho sản phẩm!'\n ]);\n $this->crud->addField([\n 'name' => 'status',\n 'type' => 'select_from_array',\n 'label' => 'Tình trạng',\n 'options' => ['Còn hàng' => 'Còn hàng', 'Hết hàng' => 'Hết hàng'],\n 'allows_null' => false,\n 'default' => 'Còn hàng'\n ]);\n $this->crud->addField([\n 'name' => 'top',\n 'type' => 'select_from_array',\n 'label' => 'Top',\n 'options' => ['false' => 'Không', 'true' => 'Có'],\n 'allows_null' => false,\n 'default' => 'false',\n 'hint' => 'Nếu bạn muốn đẩy sản phẩm ra phần các sản phẩm tốt nhất, hãy chọn Có!'\n ]);\n\n // add asterisk for fields that are required in ProductRequest\n $this->crud->setRequiredFields(StoreRequest::class, 'create');\n $this->crud->setRequiredFields(UpdateRequest::class, 'edit');\n }", "public function setup()\n {\n $this->crud->setModel('App\\Models\\LandingPage');\n $this->crud->setRoute(config('backpack.base.route_prefix') . '/landingPage');\n $this->crud->setEntityNameStrings('صفحه فرود', 'صفحات فرود');\n\n /*\n |--------------------------------------------------------------------------\n | CrudPanel Configuration\n |--------------------------------------------------------------------------\n */\n\n $this->crud->addFields([\n [\n 'name' => 'name',\n 'label' => '* نام',\n 'type' => 'text',\n 'attributes' => [\n 'dir' => 'rtl',\n ],\n 'wrapperAttributes' => [\n 'dir' => 'rtl',\n ],\n ],\n [\n 'name' => 'title',\n 'label' => '* عنوان',\n 'type' => 'text',\n 'attributes' => [\n 'dir' => 'rtl',\n ],\n 'wrapperAttributes' => [\n 'dir' => 'rtl',\n ],\n ],\n [\n 'name' => 'second_title',\n 'label' => '* عنوان دوم',\n 'type' => 'text',\n 'attributes' => [\n 'dir' => 'rtl',\n ],\n 'wrapperAttributes' => [\n 'dir' => 'rtl',\n ],\n ],\n [\n 'name' => 'button_text',\n 'label' => '* متن دکمه فرم ثبت نام (حداکثر 20 کاراکتر)',\n 'type' => 'text',\n 'default' => 'ثبت نام در طرح',\n 'attributes' => [\n 'dir' => 'rtl',\n ],\n 'wrapperAttributes' => [\n 'dir' => 'rtl',\n ],\n ],\n [ // Select\n 'label' => \"طرح مرتبط\",\n 'type' => 'select2',\n 'name' => 'plan_id', // the db column for the foreign key\n 'entity' => 'plan', // the method that defines the relationship in your Model\n 'attribute' => 'title', // foreign key attribute that is shown to user\n 'model' => \"App\\Models\\Plan\", // foreign key model\n 'allows_null' => true,\n 'attributes' => [\n 'dir' => 'rtl',\n ],\n 'wrapperAttributes' => [\n 'dir' => 'rtl',\n ],\n ],\n [\n 'name' => 'video_link',\n 'label' => 'لینک ویدیو',\n 'type' => 'text',\n 'attributes' => [\n 'dir' => 'rtl',\n ],\n 'wrapperAttributes' => [\n 'dir' => 'rtl',\n ],\n ],\n [\n 'name' => 'description',\n 'label' => '* توضیحات',\n 'type' => 'summernote',\n 'options' => [\n 'lang' => 'fa-IR',\n 'maximumImageFileSize' => '1100000',\n 'height' => '300',\n ],\n ],\n [\n 'label' => '<label style=\"color:#e55619\">( فایل انتخابی باید به فرمت\n <label style=\"font-family:Arial, Helvetica, sans-serif;\">jpeg, jpg</label> و حداکثر حجم 5 مگابایت باشد )</label> کاور *',\n 'name' => \"cover\",\n 'type' => 'image',\n 'upload' => true,\n 'crop' => true, // set to true to allow cropping, false to disable\n 'aspect_ratio' => 0, // ommit or set to 0 to allow any aspect ratio\n 'disk' => 'public', // in case you need to show images from a different disk\n // 'prefix' => 'images' // in case you only store the filename in the database, this text will be prepended to the database value\n ],\n ], 'update/create/both');\n\n\n $this->crud->addColumns([\n [\n 'name' => 'name',\n 'label' => 'نام',\n ],\n [\n 'name' => 'title',\n 'label' => 'عنوان',\n ],[\n 'name' => 'second_title',\n 'label' => 'عنوان دوم',\n ],\n [\n 'name' => 'lp_link',\n 'label' => 'لینک اشتراک گزاری',\n ],\n [\n 'name' => 'visit_count',\n 'label' => 'تعداد بازدید',\n ],\n ]);\n\n $this->crud->addButtonFromView('line', 'export_lp_students', 'export_lp_students', 'beginning');\n\n }", "public function setup() {\n\t\t/*\n\t\t|--------------------------------------------------------------------------\n\t\t| BASIC CRUD INFORMATION\n\t\t|--------------------------------------------------------------------------\n\t\t*/\n $this->crud->setModel(\"App\\Models\\CoursEnLigne\");\n $this->crud->setRoute(\"admin/coursenligne\");\n $this->crud->setEntityNameStrings('cours en ligne', 'cours en ligne');\n\t\t/*\n\t\t|--------------------------------------------------------------------------\n\t\t| COLUMNS AND FIELDS\n\t\t|--------------------------------------------------------------------------\n\t\t*/\n\t\t// ------ CRUD COLUMNS\n $this->crud->setColumns(['titre', ['label' => \"Nom du formateur\",\n \t\t 'type' => 'select',\n 'name' => 'formateur_id',\n \t\t 'entity' => 'formateur',\n \t\t 'attribute' => 'full_name',\n \t\t 'model' => \"App\\Models\\Formateur\"\n \t\t\t ]\n ]);\n\t\t// ------ CRUD FIELDS\n $this->crud->addField([\n\t\t\t'name' => 'titre',\n\t\t\t'label' => \"Titre*\"\n\t\t]);\n\t\t$this->crud->addField([ // SELECT\n 'label' => \"Formateur*\",\n 'type' => 'select2',\n 'name' => 'formateur_id',\n 'entity' => 'formateur',\n 'attribute' => 'full_name',\n 'model' => \"App\\Models\\Formateur\",\n ]);\n $this->crud->addField([\n\t\t\t'name' => 'texte',\n\t\t\t'label' => \"Texte\",\n\t\t\t'type' => 'wysiwyg'\n\t\t]);\n\t\t$this->crud->addField([ // date_picker\n\t\t 'name' => 'date',\n\t\t 'type' => 'date_picker',\n\t\t 'label' => 'Date',\n\t\t // optional:\n\t\t 'date_picker_options' => [\n\t\t 'todayBtn' => true,\n\t\t 'format' => 'dd-mm-yyyy',\n\t\t 'language' => 'fr'\n\t\t ],\n\t\t]);\n\n\t\t$this->crud->addField([ // Time\n \t\t 'name' => 'heure',\n \t\t'label' => 'Heure',\n \t\t'type' => 'time'\n\t\t]);\n\t\t$this->crud->addField([\n\t\t\t'name' => 'prix',\n\t\t\t'label' => \"Prix*\",\n\t\t\t'type' => 'number'\n\t\t]);\n\t\t$this->crud->addField([\n\t\t\t'name' => 'stock',\n\t\t\t'label' => \"En stock\",\n\t\t\t'type' => 'checkbox'\n\t\t]);\n\n }", "public function __construct($config)\n {\n $this->component = component($this->componentName)->prop('table', $this);\n $this->config = $config;\n $this->table = new CrudTable($config);\n $this->setDefaults();\n }", "public function configure()\n\t{\n\t\tparent::setup();\n\t\t\n\t\tunset($this['created_at'],$this['updated_at']);\n\n\t\t$this->setWidget('published', new sfWidgetFormSelectRadio(array('choices' => $this->getPublishedChoices())));\n\t\t$this->setWidget('stylesheets', new sfWidgetFormSelect(array('choices' => $this->getLocalStylesheets(true))));\n\t\t$this->setWidget('javascripts', new sfWidgetFormSelect(array('choices' => $this->getLocalJavascripts(true))));\n\t\t$this->setWidget('layout', new sfWidgetFormSelect(array('choices' => $this->getLocalLayouts(true))));\n\t}", "public function setup()\n {\n $this->crud->setModel('SmartyStudio\\EcommerceCrud\\app\\Models\\Currency');\n $this->crud->setRoute(config('backpack.base.route_prefix') . '/currencies');\n $this->crud->setEntityNameStrings('currency', 'currencies');\n\n\t\t/*\n |--------------------------------------------------------------------------\n | COLUMNS\n |--------------------------------------------------------------------------\n */\n\t\t$this->crud->addColumns(\n\t\t\t$this->getColumns()\n\t\t);\n\n\t\t/*\n |--------------------------------------------------------------------------\n | FIELDS\n |--------------------------------------------------------------------------\n */\n\t\t$this->crud->addFields(\n\t\t\t$this->getFields()\n\t\t);\n\n\t\t/*\n |--------------------------------------------------------------------------\n | PERMISSIONS\n |-------------------------------------------------------------------------\n */\n\t\t$this->setPermissions();\n\n /*\n |--------------------------------------------------------------------------\n | AJAX TABLE VIEW\n |--------------------------------------------------------------------------\n */\n $this->crud->enableAjaxTable();\n\t}", "public function setup()\n {\n $this->crud->setModel('App\\Models\\Experience');\n $this->crud->setRoute(config('backpack.base.route_prefix').'/experience');\n $this->crud->setEntityNameStrings('experience', 'experiences');\n\n /*\n |--------------------------------------------------------------------------\n | CrudPanel Configuration\n |--------------------------------------------------------------------------\n */\n $this->crud->addColumns([\n ['name' => 'position', 'type' => 'text', 'label' => 'Position'],\n ['name' => 'employer', 'type' => 'text', 'label' => 'Employer'],\n ['name' => 'from', 'type' => 'date', 'label' => 'From', 'format' => 'M-Y'],\n ['name' => 'to', 'type' => 'date', 'label' => 'To', 'format' => 'M-Y'],\n ['name' => 'ongoing', 'type' => 'boolean', 'label' => 'Ongoing'],\n ]);\n $this->crud->addFields([\n ['name' => 'position', 'type' => 'text', 'label' => 'Position'],\n ['name' => 'employer', 'type' => 'text', 'label' => 'Employer'],\n ['name' => 'website', 'type' => 'url', 'label' => 'Website'],\n ['name' => 'from', 'type' => 'date_picker', 'label' => 'From', 'date_picker_options' => ['format' => 'mm-yyyy', 'viewMode' => 'months', 'minViewMode' => 'months']],\n ['name' => 'to', 'type' => 'date_picker', 'label' => 'To', 'date_picker_options' => ['format' => 'mm-yyyy', 'viewMode' => 'months', 'minViewMode' => 'months']],\n ['name' => 'ongoing', 'type' => 'checkbox', 'label' => 'Ongoing'],\n ['name' => 'logo', 'type' => 'image', 'upload' => true, 'crop' => false, 'aspect_ratio' => 1, 'disk' => 'public'],\n ]);\n\n // add asterisk for fields that are required in ExperienceRequest\n $this->crud->setRequiredFields(StoreRequest::class, 'create');\n $this->crud->setRequiredFields(UpdateRequest::class, 'edit');\n }", "public function configure()\n {\n if (sfContext::getInstance()->getModuleName() == 'file') {\n unset($this['judge_id'], $this['result'], $this['instruction'], \n $this['user_file_id'], $this['court_note_id'], $this['coordinator_id'],\n $this['barrister_id'], $this['appearing_type_id']/*, $this['appearing_id']*/\n );\n \n $this->widgetSchema['appearing_id']->setOption('method', 'obtainFullName');\n $this->widgetSchema['appearing_id']->setOption('table_method', 'getSolicitorsCB');\n \n $this->widgetSchema['court_id']->setAttribute('style', 'width:200px');\n $this->widgetSchema['listing_id']->setAttribute('style', 'width:150px');\n }\n else {\n //unset($this['coordinator_id']);\n $this->widgetSchema['result']->setAttributes(array('cols' => '70', 'rows' => '12'));\n $this->widgetSchema['user_file_id']->setOption('method', 'getClientName');\n $this->widgetSchema['court_note_id']->setLabel('Note');\n \n $this->widgetSchema['instruction'] = new sfWidgetFormTextarea(array(), array('cols' => '70', 'rows' => '4'));\n \n $this->widgetSchema['judge_id'] = new sfWidgetFormAjaxDoctrineChoice(array(\n 'model' => $this->getRelatedModelName('Judge'), \n 'form_module' => 'judge', \n 'add_empty' => true,\n 'method' => 'obtainFullName',\n 'table_method' => 'getJudgesCB'\n ));\n \n $this->widgetSchema['judge_id']->setLabel('Before');\n $this->validatorSchema['judge_id']->setOption('required', false);\n //$this->widgetSchema['judge_id']->setOption('method', 'obtainFullName');\n //$this->widgetSchema['judge_id']->setOption('table_method', 'getJudgesCB');\n \n $this->widgetSchema['appearing_id'] = new sfWidgetFormAjaxDoctrineChoice(array(\n 'model' => $this->getRelatedModelName('Appearing'), \n 'form_module' => 'user?_frm=MyAccount', \n 'add_empty' => true,\n 'method' => 'obtainFullName',\n 'table_method' => 'getSolicitorsCB'\n ));\n \n // added by William, 26/05/2013: add barrister\n $this->widgetSchema['barrister_id'] = new sfWidgetFormAjaxDoctrineChoice(array(\n 'model' => $this->getRelatedModelName('Barrister'), \n 'form_module' => 'user?_frm=MyAccount', \n 'add_empty' => true,\n 'method' => 'obtainFullName',\n 'table_method' => 'getBarristersCB'\n ));\n \n //$this->widgetSchema['appearing_id']->setOption('method', 'obtainFullName');\n //$this->widgetSchema['appearing_id']->setOption('table_method', 'getSolicitorsCB');\n \n // for the add/edit button widget\n if (!sfContext::getInstance()->getRequest()->getParameter('shbx') ) {\n $this->widgetSchema['court_id'] = new sfWidgetFormAjaxDoctrineChoice(array(\n 'model' => 'Agency', \n 'form_module' => 'agency?code=COU', \n 'add_empty' => true,\n ));\n }\n \n // for the add/edit button widget\n //if (!sfContext::getInstance()->getRequest()->getParameter('shbx') ) {\n $this->widgetSchema['listing_id'] = new sfWidgetFormAjaxDoctrineChoice(array(\n 'model' => 'Listing', \n 'form_module' => 'listing', \n 'add_empty' => true,\n 'order_by' => array('name', 'asc') \n ));\n \n $this->widgetSchema['court_note_id'] = new sfWidgetFormAjaxDoctrineChoice(array(\n 'model' => 'CourtNote', \n 'form_module' => 'courtNote', \n 'add_empty' => true,\n 'method' => 'getValue',\n 'order_by' => array('value', 'asc') \n ));\n //}\n \n $this->hideField('user_file_id');\n \n $this->addFee();\n $this->widgetSchema['Fee']->setLabel(false);\n }\n \n // add class to year to validate past dates\n $this->widgetSchema['date']->setAttribute('class', 'validateYear');\n\n // set method to load values to show\n $this->widgetSchema['court_id']->setOption('table_method', 'getCourtsCB');\n \n //$this->widgetSchema['coordinator_id']->setOption('method', 'obtainFullName');\n //$this->widgetSchema['coordinator_id']->setOption('table_method', 'getCoordinatorsCB');\n \n if (sfContext::getInstance()->getModuleName() == 'file') {\n // remove emptys\n $this->widgetSchema['court_id']->setOption('add_empty', false);\n }\n \n // sort some dropboxes\n $this->widgetSchema['listing_id']->addOption('order_by', array('name', 'asc'));\n \n // adding some extra validators\n //$this->widgetSchema['time'] = new sfWidgetFormTime();\n $this->widgetSchema['time'] = $this->formattedWidgetFormTime();\n $this->validatorSchema['time'] = new sfValidatorTime(array('required' => false));\n $this->validatorSchema['court_id']->setOption('required', true);\n \n /*$this->validatorSchema->setPostValidator(\n new sfValidatorCallback(array('callback' => array($this, 'setSpecialValues')))\n );*/\n $this->validatorSchema->setPostValidator(new sfValidatorAnd(array(\n new sfValidatorCallback(array('callback' => array($this, 'setSpecialValues'))),\n new sfValidatorCallback(array('callback' => array($this, 'setSpecialFeeValues')))\n )));\n \n // adding asterisk for required fields\n $this->setAsteriskForRequiredFields();\n \n // this formatting is applied only if form is called directly, without admin generator templates\n $first = ($this->getOption('first') !== null) ? $this->getOption('first') : false;\n $custom_decorator = new ExtendedFormSchemaFormatter($this->getWidgetSchema(), array('header' => $first));\n $this->widgetSchema->addFormFormatter('Myformatter', $custom_decorator);\n $this->widgetSchema->setFormFormatterName('Myformatter');\n }", "public function setup()\n {\n CRUD::setModel(ArticleCategory::class);\n CRUD::setRoute(config('backpack.base.route_prefix') . '/articlecategory');\n CRUD::setEntityNameStrings(_('backpack.articlecategory'), _('backend.articlecategories'));\n $this->crud->set('show.setFromDb', false);\n }", "public function init()\n {\n $this->fillFromConfig([\n 'columns',\n 'model',\n 'recordUrl',\n 'recordOnClick',\n 'noRecordsMessage',\n 'showPageNumbers',\n 'recordsPerPage',\n 'showSorting',\n 'defaultSort',\n 'showCheckboxes',\n 'showSetup',\n 'showTree',\n 'treeExpanded',\n 'showPagination',\n 'customViewPath',\n ]);\n\n /*\n * Configure the list widget\n */\n $this->recordsPerPage = $this->getSession('per_page', $this->recordsPerPage);\n\n if ($this->showPagination == 'auto') {\n $this->showPagination = $this->recordsPerPage && $this->recordsPerPage > 0;\n }\n\n if ($this->customViewPath) {\n $this->addViewPath($this->customViewPath);\n }\n\n $this->validateModel();\n $this->validateTree();\n }", "protected function setupCreateOperation()\n {\n CRUD::setValidation(SettingRequest::class);\n\n CRUD::field('key')->type('text')->label('ID key');\n CRUD::field('name')->type('text')->label('Nom');\n CRUD::field('type')\n ->type('select_from_array')\n ->label('Type de widget')\n ->options([\n 'ckeditor' => 'ckeditor',\n 'textarea' => 'textarea',\n 'text' => 'text',\n ]);\n }", "public function configuracion()\n {\n $usuarioDato = new UsuarioDatoEntity();\n $usuarioDato->buscarPorPk($this->_userdata->idUser());\n\n $tarifa = new TarifasModel();\n\n $this->_view->_tarifas = $tarifa->getAll();\n\n $this->_view->_social = $usuarioDato;\n $this->_view->paneltitle = \"Configura tu cuenta\";\n $this->_view->titulo = $this->_view->getConfigure()->title;\n $this->_view->meta_descripcion = \"Sistema Perreras\";\n $this->_view->titulo_page = \"Panel principal\";\n $this->_view->renderizar(\"configuracion\", 'index');\n }", "protected function setupListOperation()\n {\n // $this->crud->addButtonFromView('top', 'all_com', 'all_com', 'begining');\n // $this->crud->addButtonFromView('top', 'complaint', 'complaint', 'begining');\n // $this->crud->addButtonFromView('top', 'evaluation', 'evaluation', 'begining');\n // $this->crud->addButtonFromView('top', 'price', 'price', 'begining');\n // $this->crud->addButtonFromView('top', 'outofstock', 'outofstock', 'begining');\n // $this->crud->addButtonFromView('top', 'outoflist', 'outoflist', 'begining');\n // $this->crud->addButtonFromView('top', 'sells', 'sells', 'begining');\n\n\n // $this->crud->addColumn([\n // 'label' => 'Communication',\n // 'type' => 'select',\n // 'name' => 'communication_types_id',\n // 'type' => 'select_from_array',\n // 'options' => [\n // 'Out Of Stock' => 'Out Of Stock',\n // 'Out Of List' => 'Out Of List',\n // 'Complaint' => 'Complaint',\n // 'Price' => 'Price',\n // 'Evaluation' => 'Evaluation',\n // ],\n\n // ]);\n // $this->crud->addColumn([\n // 'label' => 'Case Number',\n // 'type' => 'text',\n // 'name' => 'id',\n // ]);\n\n $this->crud->addColumn([\n 'label' => 'Lead Name',\n 'type' => 'select',\n 'name' => \"person_id\",\n 'entity' => 'person',\n 'model' => 'App\\Models\\person',\n 'wrapper' => [\n 'class' => 'form-group col-md-12',\n 'font-weight' => 'bold'\n ]\n ]);\n $this->crud->addColumn([\n 'label' => 'Company',\n 'type' => 'select',\n 'name' => 'personcompany_id',\n 'attribute' =>'company_name',\n 'entity' => 'person',\n 'model' => 'App\\Models\\person',\n ]);\n\n\n // $this->crud->addColumn([\n // 'type' => 'text',\n // 'label' => \"Landline\",\n // 'name' => 'personphone_id',\n // 'attribute' =>'Landline',\n // 'entity' => 'person',\n // 'model' => 'App\\Models\\person',\n // ]);\n $this->crud->addColumn([\n 'name' => 'personemail_id',\n 'type' => 'select',\n 'label' => \"Mobile\",\n 'entity' => 'person',\n 'attribute' =>'mobile_number',\n 'model' => 'App\\Models\\person',\n 'wrapper' => [\n 'class' => 'form-group col-md-12'\n ]\n ]);\n $this->crud->addColumn([\n 'name' => 'personsource_id',\n 'type' => 'select',\n 'label' => \"lead Source\",\n 'entity' => 'person',\n 'attribute' =>'source',\n 'model' => 'App\\Models\\person',\n 'wrapper' => [\n 'class' => 'form-group col-md-12'\n ]\n ]);\n $this->crud->addColumn([\n 'label' => 'Lead Owner',\n 'type' => 'select',\n 'name' => 'user_id',\n 'attribute' =>'name',\n 'entity' => 'user',\n 'model' => 'App\\Models\\user',\n ]);\n $this->crud->addColumn([\n 'name' => 'person_id',\n 'type' => 'select',\n 'label' => \"Email\",\n 'entity' => 'person',\n 'attribute' =>'created_at',\n 'model' => 'App\\Models\\person',\n 'wrapper' => [\n 'class' => 'form-group col-md-12'\n ]\n ]);\n\n\n\n // $this->crud->addColumn([\n // 'label' => 'Communicated_By',\n // 'type' => 'select',\n // 'name' => 'user_id',\n // 'attribute' =>'name',\n // 'entity' => 'user',\n // 'model' => 'App\\Models\\user',\n\n // ]);\n // $this->crud->addColumn([\n // 'label' => 'Company',\n // 'type' => 'select',\n // 'name' => 'person_id',\n // 'attribute' =>'company_name',\n // 'entity' => 'person',\n // 'model' => 'App\\Models\\person',\n\n // ]);\n // $this->crud->addColumn([\n // 'label' => 'Type',\n // 'type' => 'select',\n // 'name' => 'type',\n // 'attribute' =>'type',\n // 'entity' => 'person',\n // 'model' => 'App\\Models\\person',\n // ]);\n // $this->crud->addColumn([\n // 'label' => 'Communication',\n // 'type' => 'select_from_array',\n // 'name' => 'communication_ways_id',\n // 'allows_null' => true,\n // 'options' => [\n // 'Phone' => 'Phone',\n // 'Telegram' => 'Telegram',\n // 'Physical' => 'Physical',\n // 'E-Mail' => 'E-Mail',\n // 'Facebook' => 'Facebook',\n // ],\n\n // ]);\n // $this->crud->addColumn([\n // 'label' => 'Product',\n // 'type' => 'text',\n // 'name' => 'product',\n\n // ]);\n // $this->crud->addColumn([\n // 'label' => 'Quantity',\n // 'type' => 'number',\n // 'name' => 'quantity',\n\n // ]);\n // $this->crud->addColumn([\n // 'label' => 'Second',\n // 'type' => 'time',\n // 'name' => 'second',\n\n // ]);\n\n }", "public function initializeAdminPanel() {}", "protected function setupCreateOperation()\n {\n CRUD::setValidation(CommunicationRequest::class);\n $this->crud->setCreateContentClass('col-md-12');\n // $this->crud->addField([\n // 'label' => 'Case Number',\n // 'type' => 'text',\n // 'name' => 'code',\n // 'wrapper' => [\n // 'class' => 'form-group col-md-6'\n // ]\n // ]);\n $this->crud->addField([\n 'label' => 'Owner',\n 'type' => 'select',\n 'name' => 'user_id',\n 'attribute' =>'name',\n 'entity' => 'user',\n 'model' => 'App\\Models\\user',\n 'wrapper' => [\n 'class' => 'form-group col-md-6'\n ]\n ]);\n $this->crud->addField([\n\n 'label' => 'Company',\n 'type' => 'hidden',\n 'name' => 'person_id',\n 'attribute' =>'company_name',\n 'attributes' => [\n 'readonly' => 'readonly',\n ],\n 'default' => request()->input('person_id', ''),\n\n ]);\n $this->crud->addField([\n 'label' => 'Type',\n 'type' => 'select',\n 'name' => 'communication_types_id',\n 'type' => 'select_from_array',\n 'options' => [\n 'Out Of Stock' => 'Out Of Stock',\n 'Out Of List' => 'Out Of List',\n 'Complaint' => 'Complaint',\n 'Price' => 'Price',\n 'Evaluation' => 'Evaluation',\n ],\n 'allows_null' => true,\n 'wrapper' => [\n 'class' => 'form-group col-md-6'\n ]\n ]);\n $this->crud->addField([\n 'label' => 'Communication',\n 'type' => 'select_from_array',\n 'name' => 'communication_ways_id',\n 'allows_null' => true,\n 'options' => [\n 'Phone' => 'Phone',\n 'Telegram' => 'Telegram',\n 'Physical' => 'Physical',\n 'E-Mail' => 'E-Mail',\n 'Facebook' => 'Facebook',\n ],\n 'wrapper' => [\n 'class' => 'form-group col-md-6'\n ]\n ]);\n $this->crud->addField([\n 'label' => 'All Day(If Complaint)',\n 'type' => 'radio',\n 'name' => 'comp_type',\n 'options' => [\n 0 => \"product\",\n 1 => \"Service\",\n ],\n 'wrapper' => [\n 'class' => 'form-group col-md-6'\n ]\n ]);\n $this->crud->addField([\n 'label' => 'Product',\n 'type' => 'text',\n 'name' => 'product',\n 'wrapper' => [\n 'class' => 'form-group col-md-6'\n ]\n ]);\n $this->crud->addField([\n 'label' => 'Quantity',\n 'type' => 'number',\n 'name' => 'quantity',\n 'wrapper' => [\n 'class' => 'form-group col-md-6'\n ]\n ]);\n $this->crud->addField([\n 'label' => 'Second',\n 'type' => 'number',\n 'name' => 'second',\n 'wrapper' => [\n 'class' => 'form-group col-md-6'\n ]\n ]);\n $this->crud->addField([\n 'label' => 'Remarks',\n 'type' => 'textarea',\n 'name' => 'remarks',\n 'wrapper' => [\n 'class' => 'form-group col-md-12'\n ]\n ]);\n\n }", "protected function setupCreateOperation()\n {\n CRUD::setValidation(UserRequest::class);\n\n $this->crud->setOperationSetting('contentClass', 'col-md-12 bold-labels');\n $this->crud->addFields([\n [ \n 'name' => 'name',\n 'label' => 'Name',\n 'type' => 'text',\n ],\n [ \n 'name' => 'password',\n 'label' => 'Password',\n 'type' => 'password',\n ],\n [ \n 'name' => 'email',\n 'label' => 'Email',\n 'type' => 'email',\n ],\n [ // radio\n 'name' => 'type_id', // the name of the db column\n 'label' => 'Type', // the input label\n 'type' => 'radio',\n 'options' => [\n // the key will be stored in the db, the value will be shown as label; \n 0 => \"Collector\",\n 1 => \"Administrator\"\n ],\n 'inline' => true, // show the radios all on the same line?\n ],\n ]);\n }", "public function setup()\n {\n $this->crud->setModel('App\\Models\\Skills\\Skill');\n $this->crud->setRoute(config('backpack.base.route_prefix') . '/courseskill');\n $this->crud->setEntityNameStrings('courseskill', 'courseskills');\n\n\n $this->crud->denyAccess('show');\n $this->crud->denyAccess('update');\n $this->crud->denyAccess('delete');\n $this->crud->denyAccess('create');\n $this->crud->removeAllButtons();\n\n $permissions = backpack_user()->getAllPermissions();\n if($permissions->contains('name', 'courses.delete'))\n {\n $this->crud->addButtonFromView('top', 'attachSkills', 'attachSkills', 'end');\n }\n\n $course = $this->course;\n $this->crud->course = $course;\n $this->crud->query = $this->crud->query->whereHas('course', function ($query) use ($course) {\n $query->where('course_id', $course);\n });\n \n\n /*\n |--------------------------------------------------------------------------\n | CrudPanel Configuration\n |--------------------------------------------------------------------------\n */\n //$this->crud->setFromDb();\n $this->crud->setColumns([\n\n [ // skill type\n 'label' => 'Type', // Table column heading\n 'type' => 'select',\n 'name' => 'skill_type', // the method that defines the relationship in your Model\n 'entity' => 'skill_type', // the method that defines the relationship in your Model\n 'attribute' => 'name', // foreign key attribute that is shown to user\n 'model' => 'skill_type', // foreign key model\n ],\n\n [\n 'label' => \"Name\", // skill description\n 'type' => \"text\",\n 'name' => 'name'\n ],\n\n [ // skill level\n 'label' => 'Level', // Table column heading\n 'type' => 'select',\n 'name' => 'level', // the method that defines the relationship in your Model\n 'entity' => 'level', // the method that defines the relationship in your Model\n 'attribute' => 'name', // foreign key attribute that is shown to user\n 'model' => 'level', // foreign key model\n ],\n\n [\n 'label' => \"Weight\", // skill description\n 'type' => \"text\",\n 'name' => 'weight'\n ],\n\n ]);\n }", "public function cbInit()\n\t{\n\t\t$this->title_field = \"donor_nama\";\n\t\t$this->limit = \"20\";\n\t\t$this->orderby = \"id,desc\";\n\t\t$this->global_privilege = false;\n\t\t$this->button_table_action = true;\n\t\t$this->button_bulk_action = false;\n\t\t$this->button_action_style = \"button_dropdown\";\n\t\t$this->button_add = true;\n\t\t$this->button_edit = true;\n\t\t$this->button_delete = true;\n\t\t$this->button_detail = true;\n\t\t$this->button_show = true;\n\t\t$this->button_filter = true;\n\t\t$this->button_import = false;\n\t\t$this->button_export = true;\n\t\t$this->table = \"ref_donor\";\n\t\t# END CONFIGURATION DO NOT REMOVE THIS LINE\n\n\t\t\t# START COLUMNS DO NOT REMOVE THIS LINE\n\t\t\t$this->col = [];\n\t\t\t$this->col[] = [\"label\"=>\"Donor Id\",\"name\"=>\"donor_id\"];\n\t\t\t$this->col[] = [\"label\"=>\"Donor Noktp\",\"name\"=>\"donor_noktp\"];\n\t\t\t$this->col[] = [\"label\"=>\"Donor Nama\",\"name\"=>\"donor_nama\"];\n\t\t\t$this->col[] = [\"label\"=>\"Donor Jeniskelamin\",\"name\"=>\"donor_jeniskelamin\",\"join\"=>\"jeniskelamin,nama\"];\n\t\t\t$this->col[] = [\"label\"=>\"Donor Status\",\"name\"=>\"donor_status\"];\n\t\t\t$this->col[] = [\"label\"=>\"Donor Alamatrumah\",\"name\"=>\"donor_alamatrumah\"];\n\t\t\t$this->col[] = [\"label\"=>\"Donor Nohp\",\"name\"=>\"donor_nohp\"];\n\t\t\t$this->col[] = [\"label\"=>\"Donor Pekerjaan\",\"name\"=>\"donor_pekerjaan\",\"join\"=>\"pekerjaan,pekerjaan_nama\"];\n\t\t\t# END COLUMNS DO NOT REMOVE THIS LINE\n\n\t\t\t# START FORM DO NOT REMOVE THIS LINE\n\t\t$this->form = [];\n\t\t$this->form[] = ['label' => 'No Donor', 'name' => 'donor_id', 'type' => 'text', 'validation' => 'required|min:1|max:255', 'width' => 'col-sm-10'];\n\t\t$this->form[] = ['label' => 'No KTP/SIM/Paspor', 'name' => 'donor_noktp', 'type' => 'text', 'validation' => 'required', 'width' => 'col-sm-10', 'placeholder' => 'Mohon ditulis dengan format No KTP/SIM/Paspor Jika tidak ada tulis - contoh : No KTP/SIM/-', 'value' => 'string'];\n\t\t$this->form[] = ['label' => 'Nama Lengkap', 'name' => 'donor_nama', 'type' => 'text', 'validation' => 'required|min:1|max:255', 'width' => 'col-sm-10'];\n\t\t$this->form[] = ['label' => 'Jenis Kelamin', 'name' => 'donor_jeniskelamin', 'type' => 'select2', 'validation' => 'required', 'width' => 'col-sm-10', 'datatable' => 'jeniskelamin,nama'];\n\t\t$this->form[] = ['label' => 'Status', 'name' => 'donor_status', 'type' => 'select2', 'validation' => 'required', 'width' => 'col-sm-10', 'dataenum' => 'Nikah;Belum Nikah'];\n\t\t$this->form[] = ['label' => 'Alamat Rumah', 'name' => 'donor_alamatrumah', 'type' => 'textarea', 'validation' => 'required|string|min:5|max:5000', 'width' => 'col-sm-10'];\n\t\t$this->form[] = ['label' => 'No HP', 'name' => 'donor_nohp', 'type' => 'text', 'validation' => 'required|min:1|max:255', 'width' => 'col-sm-10'];\n\t\t$this->form[] = ['label' => 'Wilayah', 'name' => 'donor_wilayah', 'type' => 'select2', 'validation' => 'required', 'width' => 'col-sm-10', 'datatable' => 'wilayah,wilayah_nama'];\n\t\t$this->form[] = ['label' => 'Kecamatan', 'name' => 'donor_kecamatan', 'type' => 'select2', 'validation' => 'required', 'width' => 'col-sm-10', 'datatable' => 'kecamatan,kecamatan_nama'];\n\t\t$this->form[] = ['label' => 'Kelurahan/Desa', 'name' => 'donor_kelurahan', 'type' => 'select2', 'validation' => 'required', 'width' => 'col-sm-10', 'datatable' => 'desa,desa_nama'];\n\t\t$this->form[] = ['label' => 'Alamat Kantor', 'name' => 'donor_alamatkantor', 'type' => 'textarea', 'validation' => 'required|string|min:5|max:5000', 'width' => 'col-sm-10'];\n\t\t$this->form[] = ['label' => 'Pekerjaan', 'name' => 'donor_pekerjaan', 'type' => 'select2', 'validation' => 'required', 'width' => 'col-sm-10', 'datatable' => 'pekerjaan,pekerjaan_nama'];\n\t\t$this->form[] = ['label' => 'Tempat Kelahiran', 'name' => 'donor_tempatkelahiran', 'type' => 'text', 'validation' => 'required|min:1|max:255', 'width' => 'col-sm-10'];\n\t\t$this->form[] = ['label' => 'Tanggallahir', 'name' => 'donor_tanggallahir', 'type' => 'date', 'validation' => 'required', 'width' => 'col-sm-10'];\n\t\t$this->form[] = ['label' => 'Apharesis', 'name' => 'donor_apharesis', 'type' => 'select2', 'validation' => 'required', 'width' => 'col-sm-10', 'dataenum' => 'Ya;Tidak'];\n\t\t$this->form[] = ['label' => 'Penghargaan', 'name' => 'donor_penghargaan', 'type' => 'select2', 'validation' => 'required', 'width' => 'col-sm-10', 'dataenum' => 'Belum Ada Penghargaan;25 kali;50 kali;75 kali;100 kali'];\n\t\t$this->form[] = ['label' => 'Puasa', 'name' => 'donor_puasa', 'type' => 'select2', 'validation' => 'required', 'width' => 'col-sm-10', 'dataenum' => 'Ya;Tidak'];\n\t\t$this->form[] = ['label' => 'Mau Donor saat dibutuhkan?', 'name' => 'donor_butuh', 'type' => 'select2', 'validation' => 'required', 'width' => 'col-sm-10', 'dataenum' => 'Ya;Tidak'];\n\t\t$this->form[] = ['label' => 'Donor Terakhir', 'name' => 'donor_terakhir', 'type' => 'date', 'validation' => 'required', 'width' => 'col-sm-10'];\n\t\t$this->form[] = ['label' => 'Donor Ke', 'name' => 'donor_ke', 'type' => 'text', 'validation' => 'required|min:1|max:255', 'width' => 'col-sm-10'];\n\t\t$this->form[] = ['label' => 'Nama Dokter', 'name' => 'donor_namadokter', 'type' => 'select2', 'validation' => 'required', 'width' => 'col-sm-10', 'datatable' => 'dokter,dokter_nama'];\n\t\t$this->form[] = ['label' => 'Riwayat Medis', 'name' => 'donor_riwayatmedis', 'type' => 'text', 'validation' => 'required|min:1|max:255', 'width' => 'col-sm-10'];\n\t\t$this->form[] = ['label' => 'Diambil Sebanyak', 'name' => 'donor_diambil', 'type' => 'select2', 'validation' => 'required', 'width' => 'col-sm-10', 'dataenum' => '350;450'];\n\t\t$this->form[] = ['label' => 'Kantong', 'name' => 'donor_kantong', 'type' => 'select2', 'validation' => 'required', 'width' => 'col-sm-10', 'dataenum' => 'S;D;T;Q;P'];\n\t\t$this->form[] = ['label' => 'Tensi', 'name' => 'donor_tensi', 'type' => 'number', 'validation' => 'required|integer|min:0', 'width' => 'col-sm-10'];\n\t\t$this->form[] = ['label' => 'Nadi', 'name' => 'donor_nadi', 'type' => 'number', 'validation' => 'required|integer|min:0', 'width' => 'col-sm-10'];\n\t\t$this->form[] = ['label' => 'Berat Badan', 'name' => 'donor_bb', 'type' => 'number', 'validation' => 'required|integer|min:0', 'width' => 'col-sm-10'];\n\t\t$this->form[] = ['label' => 'Tinggi Badan', 'name' => 'donor_tb', 'type' => 'number', 'validation' => 'required|integer|min:0', 'width' => 'col-sm-10'];\n\t\t$this->form[] = ['label' => 'Suhu', 'name' => 'donor_suhu', 'type' => 'text', 'validation' => 'required|min:1|max:255', 'width' => 'col-sm-10'];\n\t\t$this->form[] = ['label' => 'Petugas Administrasi', 'name' => 'donor_petugasadministrasi', 'type' => 'select2', 'validation' => 'required', 'width' => 'col-sm-10', 'datatable' => 'petugasadministrasi,petugasadministrasi_nama'];\n\t\t$this->form[] = ['label' => 'Validasi', 'name' => 'donor_validasi', 'type' => 'checkbox', 'validation' => 'required', 'width' => 'col-sm-10', 'dataenum' => 'Kartu Donor;KTP;SIM;Paspor'];\n\t\t$this->form[] = ['label' => 'Petugas Hemoglobin', 'name' => 'donor_petugashb', 'type' => 'select2', 'validation' => 'required', 'width' => 'col-sm-10', 'datatable' => 'petugashb,petugashb_nama'];\n\t\t$this->form[] = ['label' => 'Macam Donor', 'name' => 'donor_macamdonor', 'type' => 'select2', 'validation' => 'required', 'width' => 'col-sm-10', 'dataenum' => 'Sukarela;Pengganti'];\n\t\t$this->form[] = ['label' => 'Metode', 'name' => 'donor_metode', 'type' => 'select2', 'validation' => 'required', 'width' => 'col-sm-10', 'dataenum' => 'Biasa;Apharesis;Autologus'];\n\t\t$this->form[] = ['label' => 'Hemoglobin', 'name' => 'donor_hb', 'type' => 'number', 'validation' => 'required|integer|min:0', 'width' => 'col-sm-10'];\n\t\t$this->form[] = ['label' => 'Golongan Darah', 'name' => 'donor_goldar', 'type' => 'select2', 'validation' => 'required', 'width' => 'col-sm-10', 'dataenum' => 'A+;A-;AB+;AB-;O+;O-;B+;B-'];\n\t\t$this->form[] = ['label' => 'Petugas Aftap', 'name' => 'donor_petugasaftap', 'type' => 'select2', 'validation' => 'required', 'width' => 'col-sm-10', 'datatable' => 'petugasaftap,petugasaftap_nama'];\n\t\t$this->form[] = ['label' => 'Kode Timbangan', 'name' => 'donor_kodetimbangan', 'type' => 'text', 'validation' => 'required|min:1|max:255', 'width' => 'col-sm-10'];\n\t\t$this->form[] = ['label' => 'Penusukan Ulang', 'name' => 'donor_penusukanulang', 'type' => 'select2', 'validation' => 'required', 'width' => 'col-sm-10', 'dataenum' => 'tanpa penusukan ulang;1 kali;2 kali'];\n\t\t$this->form[] = ['label' => 'Lama Pengambilan', 'name' => 'donor_lamapengambilan', 'type' => 'radio', 'validation' => 'required', 'width' => 'col-sm-10', 'dataenum' => '>=12 menit;12-15 menit;>15 menit'];\n\t\t$this->form[] = ['label' => 'No Kantong', 'name' => 'donor_nokantong', 'type' => 'text', 'validation' => 'required', 'width' => 'col-sm-10'];\n\t\t$this->form[] = ['label' => 'Tanggal Donor', 'name' => 'donor_tanggaldonor', 'type' => 'date', 'validation' => 'required', 'width' => 'col-sm-10'];\n\t\t# END FORM DO NOT REMOVE THIS LINE\n\n\t\t# OLD START FORM\n\t\t//$this->form = [];\n\t\t//$this->form[] = ['label'=>'No Donor','name'=>'donor_id','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10'];\n\t\t//$this->form[] = ['label'=>'No KTP/SIM/Paspor','name'=>'donor_noktp','type'=>'text','validation'=>'required','width'=>'col-sm-10','placeholder'=>'Mohon ditulis dengan format No KTP/SIM/Paspor Jika tidak ada tulis - contoh : No KTP/SIM/-'];\n\t\t//$this->form[] = ['label'=>'Nama Lengkap','name'=>'donor_nama','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10'];\n\t\t//$this->form[] = ['label'=>'Jenis Kelamin','name'=>'donor_jeniskelamin','type'=>'select2','validation'=>'required','width'=>'col-sm-10','datatable'=>'jeniskelamin,nama'];\n\t\t//$this->form[] = ['label'=>'Status','name'=>'donor_status','type'=>'select2','validation'=>'required','width'=>'col-sm-10','dataenum'=>'Nikah;Belum Nikah'];\n\t\t//$this->form[] = ['label'=>'Alamat Rumah','name'=>'donor_alamatrumah','type'=>'textarea','validation'=>'required|string|min:5|max:5000','width'=>'col-sm-10'];\n\t\t//$this->form[] = ['label'=>'No HP','name'=>'donor_nohp','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10'];\n\t\t//$this->form[] = ['label'=>'Wilayah','name'=>'donor_wilayah','type'=>'select2','validation'=>'required','width'=>'col-sm-10','datatable'=>'wilayah,wilayah_nama'];\n\t\t//$this->form[] = ['label'=>'Kecamatan','name'=>'donor_kecamatan','type'=>'select2','validation'=>'required','width'=>'col-sm-10','datatable'=>'kecamatan,kecamatan_nama'];\n\t\t//$this->form[] = ['label'=>'Kelurahan/Desa','name'=>'donor_kelurahan','type'=>'select2','validation'=>'required','width'=>'col-sm-10','datatable'=>'desa,desa_nama'];\n\t\t//$this->form[] = ['label'=>'Alamat Kantor','name'=>'donor_alamatkantor','type'=>'textarea','validation'=>'required|string|min:5|max:5000','width'=>'col-sm-10'];\n\t\t//$this->form[] = ['label'=>'Pekerjaan','name'=>'donor_pekerjaan','type'=>'select2','validation'=>'required','width'=>'col-sm-10','datatable'=>'pekerjaan,pekerjaan_nama'];\n\t\t//$this->form[] = ['label'=>'Tempat Kelahiran','name'=>'donor_tempatkelahiran','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10'];\n\t\t//$this->form[] = ['label'=>'Tanggallahir','name'=>'donor_tanggallahir','type'=>'date','validation'=>'required','width'=>'col-sm-10'];\n\t\t//$this->form[] = ['label'=>'Apharesis','name'=>'donor_apharesis','type'=>'select2','validation'=>'required','width'=>'col-sm-10','dataenum'=>'Ya;Tidak'];\n\t\t//$this->form[] = ['label'=>'Penghargaan','name'=>'donor_penghargaan','type'=>'select2','validation'=>'required','width'=>'col-sm-10','dataenum'=>'Belum Ada Penghargaan;25 kali;50 kali;75 kali;100 kali'];\n\t\t//$this->form[] = ['label'=>'Puasa','name'=>'donor_puasa','type'=>'select2','validation'=>'required','width'=>'col-sm-10','dataenum'=>'Ya;Tidak'];\n\t\t//$this->form[] = ['label'=>'Mau Donor saat dibutuhkan?','name'=>'donor_butuh','type'=>'select2','validation'=>'required','width'=>'col-sm-10','dataenum'=>'Ya;Tidak'];\n\t\t//$this->form[] = ['label'=>'Donor Terakhir','name'=>'donor_terakhir','type'=>'date','validation'=>'required','width'=>'col-sm-10'];\n\t\t//$this->form[] = ['label'=>'Donor Ke','name'=>'donor_ke','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10'];\n\t\t//$this->form[] = ['label'=>'Nama Dokter','name'=>'donor_namadokter','type'=>'select2','validation'=>'required','width'=>'col-sm-10','datatable'=>'dokter,dokter_nama'];\n\t\t//$this->form[] = ['label'=>'Riwayat Medis','name'=>'donor_riwayatmedis','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10'];\n\t\t//$this->form[] = ['label'=>'Diambil Sebanyak','name'=>'donor_diambil','type'=>'select2','validation'=>'required','width'=>'col-sm-10','dataenum'=>'350;450'];\n\t\t//$this->form[] = ['label'=>'Kantong','name'=>'donor_kantong','type'=>'select2','validation'=>'required','width'=>'col-sm-10','dataenum'=>'S;D;T;Q;P'];\n\t\t//$this->form[] = ['label'=>'Tensi','name'=>'donor_tensi','type'=>'number','validation'=>'required|integer|min:0','width'=>'col-sm-10'];\n\t\t//$this->form[] = ['label'=>'Nadi','name'=>'donor_nadi','type'=>'number','validation'=>'required|integer|min:0','width'=>'col-sm-10'];\n\t\t//$this->form[] = ['label'=>'Berat Badan','name'=>'donor_bb','type'=>'number','validation'=>'required|integer|min:0','width'=>'col-sm-10'];\n\t\t//$this->form[] = ['label'=>'Tinggi Badan','name'=>'donor_tb','type'=>'number','validation'=>'required|integer|min:0','width'=>'col-sm-10'];\n\t\t//$this->form[] = ['label'=>'Suhu','name'=>'donor_suhu','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10'];\n\t\t//$this->form[] = ['label'=>'Petugas Administrasi','name'=>'donor_petugasadministrasi','type'=>'select2','validation'=>'required','width'=>'col-sm-10','datatable'=>'petugasadministrasi,petugasadministrasi_nama'];\n\t\t//$this->form[] = ['label'=>'Validasi','name'=>'donor_validasi','type'=>'checkbox','validation'=>'required','width'=>'col-sm-10','dataenum'=>'Kartu Donor;KTP;SIM;Paspor'];\n\t\t//$this->form[] = ['label'=>'Petugas Hemoglobin','name'=>'donor_petugashb','type'=>'select2','validation'=>'required','width'=>'col-sm-10','datatable'=>'petugashb,petugashb_nama'];\n\t\t//$this->form[] = ['label'=>'Macam Donor','name'=>'donor_macamdonor','type'=>'select2','validation'=>'required','width'=>'col-sm-10','dataenum'=>'Sukarela;Pengganti'];\n\t\t//$this->form[] = ['label'=>'Metode','name'=>'donor_metode','type'=>'select2','validation'=>'required','width'=>'col-sm-10','dataenum'=>'Biasa;Apharesis;Autologus'];\n\t\t//$this->form[] = ['label'=>'Hemoglobin','name'=>'donor_hb','type'=>'number','validation'=>'required|integer|min:0','width'=>'col-sm-10'];\n\t\t//$this->form[] = ['label'=>'Golongan Darah','name'=>'donor_goldar','type'=>'select2','validation'=>'required','width'=>'col-sm-10','dataenum'=>'A+;A-;AB+;AB-;O+;O-;B+;B-'];\n\t\t//$this->form[] = ['label'=>'Petugas Aftap','name'=>'donor_petugasaftap','type'=>'select2','validation'=>'required','width'=>'col-sm-10','datatable'=>'petugasaftap,petugasaftap_nama'];\n\t\t//$this->form[] = ['label'=>'Kode Timbangan','name'=>'donor_kodetimbangan','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10'];\n\t\t//$this->form[] = ['label'=>'Penusukan Ulang','name'=>'donor_penusukanulang','type'=>'select2','validation'=>'required','width'=>'col-sm-10','dataenum'=>'tanpa penusukan ulang;1 kali;2 kali'];\n\t\t//$this->form[] = ['label'=>'Lama Pengambilan','name'=>'donor_lamapengambilan','type'=>'radio','validation'=>'required','width'=>'col-sm-10','dataenum'=>'>=12 menit;12-15 menit;>15 menit'];\n\t\t//$this->form[] = ['label'=>'No Kantong','name'=>'donor_nokantong','type'=>'text','validation'=>'required','width'=>'col-sm-10'];\n\t\t//$this->form[] = ['label'=>'Tanggal Donor','name'=>'donor_tanggaldonor','type'=>'date','validation'=>'required','width'=>'col-sm-10'];\n\t\t# OLD END FORM\n\n\t\t/* \n\t | ---------------------------------------------------------------------- \n\t | Sub Module\n\t | ---------------------------------------------------------------------- \n\t\t\t| @label = Label of action \n\t\t\t| @path = Path of sub module\n\t\t\t| @foreign_key \t = foreign key of sub table/module\n\t\t\t| @button_color = Bootstrap Class (primary,success,warning,danger)\n\t\t\t| @button_icon = Font Awesome Class \n\t\t\t| @parent_columns = Sparate with comma, e.g : name,created_at\n\t | \n\t */\n\t\t$this->sub_module = array();\n\n\n\t\t/* \n\t | ---------------------------------------------------------------------- \n\t | Add More Action Button / Menu\n\t | ---------------------------------------------------------------------- \n\t | @label = Label of action \n\t | @url = Target URL, you can use field alias. e.g : [id], [name], [title], etc\n\t | @icon = Font awesome class icon. e.g : fa fa-bars\n\t | @color \t = Default is primary. (primary, warning, succecss, info) \n\t | @showIf \t = If condition when action show. Use field alias. e.g : [id] == 1\n\t | \n\t */\n\t\t$this->addaction = array();\n\n\n\t\t/* \n\t | ---------------------------------------------------------------------- \n\t | Add More Button Selected\n\t | ---------------------------------------------------------------------- \n\t | @label = Label of action \n\t | @icon \t = Icon from fontawesome\n\t | @name \t = Name of button \n\t | Then about the action, you should code at actionButtonSelected method \n\t | \n\t */\n\t\t$this->button_selected = array();\n\n\n\t\t/* \n\t | ---------------------------------------------------------------------- \n\t | Add alert message to this module at overheader\n\t | ---------------------------------------------------------------------- \n\t | @message = Text of message \n\t | @type = warning,success,danger,info \n\t | \n\t */\n\t\t$this->alert = array();\n\n\n\n\t\t/* \n\t | ---------------------------------------------------------------------- \n\t | Add more button to header button \n\t | ---------------------------------------------------------------------- \n\t | @label = Name of button \n\t | @url = URL Target\n\t | @icon = Icon from Awesome.\n\t | \n\t */\n\t\t$this->index_button = array();\n\n\n\n\t\t/* \n\t | ---------------------------------------------------------------------- \n\t | Customize Table Row Color\n\t | ---------------------------------------------------------------------- \n\t | @condition = If condition. You may use field alias. E.g : [id] == 1\n\t | @color = Default is none. You can use bootstrap success,info,warning,danger,primary. \n\t | \n\t */\n\t\t$this->table_row_color = array();\n\n\n\t\t/*\n\t | ---------------------------------------------------------------------- \n\t | You may use this bellow array to add statistic at dashboard \n\t | ---------------------------------------------------------------------- \n\t | @label, @count, @icon, @color \n\t |\n\t */\n\t\t$this->index_statistic = array();\n\n\n\n\t\t/*\n\t | ---------------------------------------------------------------------- \n\t | Add javascript at body \n\t | ---------------------------------------------------------------------- \n\t | javascript code in the variable \n\t | $this->script_js = \"function() { ... }\";\n\t |\n\t */\n\t\t$this->script_js = NULL;\n\n\n\t\t/*\n\t | ---------------------------------------------------------------------- \n\t | Include HTML Code before index table \n\t | ---------------------------------------------------------------------- \n\t | html code to display it before index table\n\t | $this->pre_index_html = \"<p>test</p>\";\n\t |\n\t */\n\t\t$this->pre_index_html = null;\n\n\n\n\t\t/*\n\t | ---------------------------------------------------------------------- \n\t | Include HTML Code after index table \n\t | ---------------------------------------------------------------------- \n\t | html code to display it after index table\n\t | $this->post_index_html = \"<p>test</p>\";\n\t |\n\t */\n\t\t$this->post_index_html = null;\n\n\n\n\t\t/*\n\t | ---------------------------------------------------------------------- \n\t | Include Javascript File \n\t | ---------------------------------------------------------------------- \n\t | URL of your javascript each array \n\t | $this->load_js[] = asset(\"myfile.js\");\n\t |\n\t */\n\t\t$this->load_js = array();\n\n\n\n\t\t/*\n\t | ---------------------------------------------------------------------- \n\t | Add css style at body \n\t | ---------------------------------------------------------------------- \n\t | css code in the variable \n\t | $this->style_css = \".style{....}\";\n\t |\n\t */\n\t\t$this->style_css = \"<style> .str{ mso-number-format:\\@; } </style>\";\n\n\n\n\t\t/*\n\t | ---------------------------------------------------------------------- \n\t | Include css File \n\t | ---------------------------------------------------------------------- \n\t | URL of your css each array \n\t | $this->load_css[] = asset(\"myfile.css\");\n\t |\n\t */\n\t\t$this->load_css = array();\n\t}", "public function actionConfig()\r\n\t{\r\n $this->layout = 'table_scroller';\r\n $model = new UserRrhh;\r\n\r\n $this->render('config',array(\r\n 'model'=>$model\r\n ));\r\n\t}", "protected function setupUpdateOperation()\n {\n CRUD::setValidation(SettingRequest::class);\n\n $readonly = [];\n if (User::min('id') !== backpack_user()->id) {\n $readonly = ['readonly' => 'readonly'];\n }\n\n CRUD::field('key')->type('text')->label('ID key')->attributes($readonly);\n CRUD::field('name')->type('text')->label('Nom');\n CRUD::field('value')->type(CRUD::getCurrentEntry()->type)->label('Contenu');\n }", "protected function setupListOperation()\n {\n // $this->crud->setFromDb();\n $this->crud->addColumns([\n ['name' => 'name', 'type' => 'text', 'label' => 'Name'],\n ['name' => 'description', 'type' => 'text', 'label' => 'Description'],\n ['name' => 'location' , 'type' => 'text' , 'label' => 'Location'],\n ['name' => 'date' , 'type' => 'date' , 'label' => 'Date'],\n [\n 'label' => \"Image\",\n 'name' => \"image\",\n 'type' => 'image',\n 'upload' => true,\n 'crop' => false,\n 'aspect_ratio' => 0,\n ],\n [ // Select\n 'label' => \"Instructor\",\n 'type' => 'select',\n 'name' => 'user_id', // the db column for the foreign key\n 'entity' => 'user', // the method that defines the relationship in your Model\n 'attribute' => 'name', // foreign key attribute that is shown to user\n ]\n ]);\n // $this->crud->addButton();\n $this->crud->filters();\n }", "function configure()\n\t{\n\t\t$option = JRequest::getCMD('option');\n $mainframe=JFactory::getApplication();\n\t\t// orden\n\t\t$filter_order\t\t= $mainframe->getUserStateFromRequest( $this->_context.'filter_order', 'filter_order', $this->_orderfield, 'cmd' );\n\t\t$filter_order_Dir\t= $mainframe->getUserStateFromRequest( $this->_context.'filter_order_Dir', 'filter_order_Dir', 'asc', 'word' );\n\t\t// cadena de búsqueda\n\t\t$search = $mainframe->getUserStateFromRequest( $this->_context.'search', 'search', '', 'string' );\n\t\t$search\t= JString::strtolower( $search );\n\n\t\t// Configuramos el modelo\n\t\t$model =& $this->getModel();\n\t\t$model->_orderby_filter_order = $filter_order;\n\t\t$model->_orderby_filter_order_dir = $filter_order_Dir;\n\n\t\t// seteamos búsqueda en el modelo\n\t\t$db = JFactory::getDBO();\n\t\tif ( $search ) {\n\t\t\t$model->setWhere('LOWER('. $this->_searchfield . ') LIKE '. $db->Quote( '%'.$db->getEscaped( $search, true ).'%', false ));\n\t\t}\n\n\t\t// table ordering\n\t\t$this->_lists['order_Dir']\t= $filter_order_Dir;\n\t\t$this->_lists['order']\t\t= $filter_order;\n\t\t$this->_lists['search'] \t= $search;\n\n\t\t$this->assignRef('lists', $this->_lists);\n\t}", "protected function setupListOperation()\n {\n $this->crud->setFromDb();\n }", "protected function setupListOperation()\n {\n $this->crud->setFromDb();\n }", "public function cbInit() {\n\t\t\t$this->title_field = \"id\";\n\t\t\t$this->limit = \"20\";\n\t\t\t$this->orderby = \"id,desc\";\n\t\t\t$this->global_privilege = false;\n\t\t\t$this->button_table_action = true;\n\t\t\t$this->button_bulk_action = true;\n\t\t\t$this->button_action_style = \"button_icon\";\n\t\t\t$this->button_add = false;\n\t\t\t$this->button_edit = false;\n\t\t\t$this->button_delete = false;\n\t\t\t$this->button_detail = false;\n\t\t\t$this->button_show = true;\n\t\t\t$this->button_filter = true;\n\t\t\t$this->button_import = false;\n\t\t\t$this->button_export = false;\n//\t\t\t$this->table = \"prd_order_statuses\";\n\t\t\t$this->table = \"prd_orders\";\n\t\t\t# END CONFIGURATION DO NOT REMOVE THIS LINE\n\n\t\t\t# START COLUMNS DO NOT REMOVE THIS LINE\n\t\t\t$this->col = [];\n\t\t\t$this->col[] = [\"label\"=>\"کد سفارش\",\"name\"=>\"order_code\"];\n\t\t\t$this->col[] = [\"label\"=>\"تاریخ سفارش\",\"name\"=>\"order_date\"];\n\t\t\t$this->col[] = [\"label\"=>\"شماره تماس مشتری\",\"name\"=>\"customer_id\",\"join\"=>\"app_users,mobile_number\"];\n//\t\t\t$this->col[] = [\"label\"=>\"مبلغ سفارش\",\"name\"=>\"total_amount\"];\n\t\t\t$this->col[] = [\"label\"=>\"وضعیت سفارش\",\"name\"=>\"id\",\"join\"=>\"shop_orders,order_status_title\"];\n//\t\t\t$this->col[] = [\"label\"=>\"وضعیت سفارش\",\"name\"=>\"(select prd_ostatus.title from ((prd_orders join prd_order_statuses on prd_orders.id = prd_order_statuses.order_id) join prd_order_statuses on prd_ostatus prd_order_statuses.status_id = prd_ostatus.id) where prd_order_statues.status_id = prd_orders.id) as status\"];\n//\t\t\t$this->col[] = [\"label\"=>\"نوع حیوان\",\"name\"=>\"(select aml_types.title from ((aml_animals join aml_types on aml_animals.type_id = aml_types.id) join fc_requests on aml_animals.id = fc_requests.animal_id) where fc_requests.id = request_id) as animal_type\"];\n\n\t\t\t# END COLUMNS DO NOT REMOVE THIS LINE\n\n\t\t\t# START FORM DO NOT REMOVE THIS LINE\t\t\n//\t\t\t$this->form = [];\n//\t\t\t$this->form[] = ['label'=>'Order Code','name'=>'order_code','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10'];\n//\t\t\t$this->form[] = ['label'=>'Customer Id','name'=>'customer_id','type'=>'select2','validation'=>'required|integer|min:0','width'=>'col-sm-10','datatable'=>'customer,id'];\n//\t\t\t$this->form[] = ['label'=>'Order Date','name'=>'order_date','type'=>'datetime','validation'=>'required|date_format:Y-m-d H:i:s','width'=>'col-sm-10'];\n//\t\t\t$this->form[] = ['label'=>'Shipment Time','name'=>'shipment_time','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10'];\n//\t\t\t$this->form[] = ['label'=>'Shipment Cost','name'=>'shipment_cost','type'=>'number','validation'=>'required|integer|min:0','width'=>'col-sm-10'];\n//\t\t\t$this->form[] = ['label'=>'Coupon Value','name'=>'coupon_value','type'=>'number','validation'=>'required|integer|min:0','width'=>'col-sm-10'];\n//\t\t\t$this->form[] = ['label'=>'Transferee','name'=>'transferee','type'=>'number','validation'=>'required|integer|min:0','width'=>'col-sm-10'];\n//\t\t\t$this->form[] = ['label'=>'Delivery Date','name'=>'delivery_date','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10'];\n//\t\t\t$this->form[] = ['label'=>'Total Amount','name'=>'total_amount','type'=>'number','validation'=>'required|integer|min:0','width'=>'col-sm-10'];\n//\t\t\t$this->form[] = ['label'=>'Is Completed','name'=>'is_completed','type'=>'radio','validation'=>'required|integer','width'=>'col-sm-10','dataenum'=>'Array'];\n\t\t\t# END FORM DO NOT REMOVE THIS LINE\n\n\t\t\t# OLD START FORM\n\t\t\t//$this->form = [];\n\t\t\t//$this->form[] = [\"label\"=>\"Order Code\",\"name\"=>\"order_code\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"Customer Id\",\"name\"=>\"customer_id\",\"type\"=>\"select2\",\"required\"=>TRUE,\"validation\"=>\"required|integer|min:0\",\"datatable\"=>\"customer,id\"];\n\t\t\t//$this->form[] = [\"label\"=>\"Order Date\",\"name\"=>\"order_date\",\"type\"=>\"datetime\",\"required\"=>TRUE,\"validation\"=>\"required|date_format:Y-m-d H:i:s\"];\n\t\t\t//$this->form[] = [\"label\"=>\"Shipment Time\",\"name\"=>\"shipment_time\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"Shipment Cost\",\"name\"=>\"shipment_cost\",\"type\"=>\"number\",\"required\"=>TRUE,\"validation\"=>\"required|integer|min:0\"];\n\t\t\t//$this->form[] = [\"label\"=>\"Coupon Value\",\"name\"=>\"coupon_value\",\"type\"=>\"number\",\"required\"=>TRUE,\"validation\"=>\"required|integer|min:0\"];\n\t\t\t//$this->form[] = [\"label\"=>\"Transferee\",\"name\"=>\"transferee\",\"type\"=>\"number\",\"required\"=>TRUE,\"validation\"=>\"required|integer|min:0\"];\n\t\t\t//$this->form[] = [\"label\"=>\"Delivery Date\",\"name\"=>\"delivery_date\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"Total Amount\",\"name\"=>\"total_amount\",\"type\"=>\"number\",\"required\"=>TRUE,\"validation\"=>\"required|integer|min:0\"];\n\t\t\t//$this->form[] = [\"label\"=>\"Is Completed\",\"name\"=>\"is_completed\",\"type\"=>\"radio\",\"required\"=>TRUE,\"validation\"=>\"required|integer\",\"dataenum\"=>\"Array\"];\n\t\t\t# OLD END FORM\n\n\t\t\t/* \n\t | ---------------------------------------------------------------------- \n\t | Sub Module\n\t | ---------------------------------------------------------------------- \n\t\t\t| @label = Label of action \n\t\t\t| @path = Path of sub module\n\t\t\t| @foreign_key \t = foreign key of sub table/module\n\t\t\t| @button_color = Bootstrap Class (primary,success,warning,danger)\n\t\t\t| @button_icon = Font Awesome Class \n\t\t\t| @parent_columns = Sparate with comma, e.g : name,created_at\n\t | \n\t */\n\t $this->sub_module = array();\n\n\n\t /* \n\t | ---------------------------------------------------------------------- \n\t | Add More Action Button / Menu\n\t | ---------------------------------------------------------------------- \n\t | @label = Label of action \n\t | @url = Target URL, you can use field alias. e.g : [id], [name], [title], etc\n\t | @icon = Font awesome class icon. e.g : fa fa-bars\n\t | @color \t = Default is primary. (primary, warning, succecss, info) \n\t | @showIf \t = If condition when action show. Use field alias. e.g : [id] == 1\n\t | \n\t */\n\t $this->addaction = array(\n\t\t \t\t[\"label\"=>\"مشاهده سبد\",\"color\"=>\"success\",\"url\"=>CRUDBooster::mainpath('show-shopping-cart').'/[order_code]'],\n \t\t);\n\n\n\t /* \n\t | ---------------------------------------------------------------------- \n\t | Add More Button Selected\n\t | ---------------------------------------------------------------------- \n\t | @label = Label of action \n\t | @icon \t = Icon from fontawesome\n\t | @name \t = Name of button \n\t | Then about the action, you should code at actionButtonSelected method \n\t | \n\t */\n\t $this->button_selected = array();\n\n\t \n\t /* \n\t | ---------------------------------------------------------------------- \n\t | Add alert message to this module at overheader\n\t | ---------------------------------------------------------------------- \n\t | @message = Text of message \n\t | @type = warning,success,danger,info \n\t | \n\t */\n\t $this->alert = array();\n\t \n\n\t \n\t /* \n\t | ---------------------------------------------------------------------- \n\t | Add more button to header button \n\t | ---------------------------------------------------------------------- \n\t | @label = Name of button \n\t | @url = URL Target\n\t | @icon = Icon from Awesome.\n\t | \n\t */\n\t $this->index_button = array();\n\n\n\n\t /* \n\t | ---------------------------------------------------------------------- \n\t | Customize Table Row Color\n\t | ---------------------------------------------------------------------- \n\t | @condition = If condition. You may use field alias. E.g : [id] == 1\n\t | @color = Default is none. You can use bootstrap success,info,warning,danger,primary. \n\t | \n\t */\n\t $this->table_row_color = array(); \t \n\n\t \n\t /*\n\t | ---------------------------------------------------------------------- \n\t | You may use this bellow array to add statistic at dashboard \n\t | ---------------------------------------------------------------------- \n\t | @label, @count, @icon, @color \n\t |\n\t */\n\t $this->index_statistic = array();\n\n\n\n\t /*\n\t | ---------------------------------------------------------------------- \n\t | Add javascript at body \n\t | ---------------------------------------------------------------------- \n\t | javascript code in the variable \n\t | $this->script_js = \"function() { ... }\";\n\t |\n\t */\n\t $this->script_js = NULL;\n\n\n /*\n\t | ---------------------------------------------------------------------- \n\t | Include HTML Code before index table \n\t | ---------------------------------------------------------------------- \n\t | html code to display it before index table\n\t | $this->pre_index_html = \"<p>test</p>\";\n\t |\n\t */\n\t $this->pre_index_html = null;\n\t \n\t \n\t \n\t /*\n\t | ---------------------------------------------------------------------- \n\t | Include HTML Code after index table \n\t | ---------------------------------------------------------------------- \n\t | html code to display it after index table\n\t | $this->post_index_html = \"<p>test</p>\";\n\t |\n\t */\n\t $this->post_index_html = null;\n\t \n\t \n\t \n\t /*\n\t | ---------------------------------------------------------------------- \n\t | Include Javascript File \n\t | ---------------------------------------------------------------------- \n\t | URL of your javascript each array \n\t | $this->load_js[] = asset(\"myfile.js\");\n\t |\n\t */\n\t $this->load_js = array();\n\t \n\t \n\t \n\t /*\n\t | ---------------------------------------------------------------------- \n\t | Add css style at body \n\t | ---------------------------------------------------------------------- \n\t | css code in the variable \n\t | $this->style_css = \".style{....}\";\n\t |\n\t */\n\t $this->style_css = NULL;\n\t \n\t \n\t \n\t /*\n\t | ---------------------------------------------------------------------- \n\t | Include css File \n\t | ---------------------------------------------------------------------- \n\t | URL of your css each array \n\t | $this->load_css[] = asset(\"myfile.css\");\n\t |\n\t */\n\t $this->load_css = array();\n\t \n\t \n\t }", "public function configure()\n\t{\n\t\tif (!$this->form)\n\t\t{\n\t\t\t$this->form = new WebForm\\Form($this->getId());\n\t\t}\n\n\t\t$data = $this->form->get();\n\t\t$isCloud = Loader::includeModule('bitrix24');\n\n\t\t$this->fileDir = 'form';\n\t\t$this->fileName = str_replace(\n\t\t\t['#id#', '#sec#'],\n\t\t\t[$this->getId(), $data['SECURITY_CODE']],\n\t\t\t$isCloud ? 'loader_#id#.js' : 'loader_#id#_#sec#.js'\n\t\t);\n\n\t\t$name = 'crm.site.form.embed.unit';\n\t\t$this->addExtension($name);\n\t\t$module = $this->getModule($name);\n\t\t$module->getProfile()->setCallParameter($this->getCallParameter());\n\n\t\t$this->embeddedModuleName = 'crm.site.form.unit.loader';\n\t}", "public function cbInit() {\n\t\t\t$this->title_field = \"id\";\n\t\t\t$this->limit = \"20\";\n\t\t\t$this->orderby = \"id,desc\";\n\t\t\t$this->global_privilege = false;\n\t\t\t$this->button_table_action = true;\n\t\t\t$this->button_bulk_action = true;\n\t\t\t$this->button_action_style = \"button_icon\";\n\t\t\t$this->button_add = true;\n\t\t\t$this->button_edit = true;\n\t\t\t$this->button_delete = true;\n\t\t\t$this->button_detail = true;\n\t\t\t$this->button_show = true;\n\t\t\t$this->button_filter = true;\n\t\t\t$this->button_import = true;\n\t\t\t$this->button_export = true;\n\t\t\t$this->table = \"pegawai\";\n\t\t\t# END CONFIGURATION DO NOT REMOVE THIS LINE\n\n\t\t\t# START COLUMNS DO NOT REMOVE THIS LINE\n\t\t\t$this->col = [];\n\t\t\t$this->col[] = [\"label\"=>\"nama_lengkap\",\"name\"=>\"nama_lengkap\"];\n\t\t\t$this->col[] = [\"label\"=>\"tempat_lahir\",\"name\"=>\"tempat_lahir\"];\n\t\t\t$this->col[] = [\"label\"=>\"tanggal_lahir\",\"name\"=>\"tanggal_lahir\"];\n\t\t\t$this->col[] = [\"label\"=>\"unit_detail\",\"name\"=>\"unit_detail\"];\n\t\t\t$this->col[] = [\"label\"=>\"pangkat\",\"name\"=>\"pangkat\"];\n\t\t\t$this->col[] = [\"label\"=>\"golongan\",\"name\"=>\"golongan\"];\n\t\t\t$this->col[] = [\"label\"=>\"jenis_pegawai\",\"name\"=>\"jenis_pegawai\"];\n\t\t\t$this->col[] = [\"label\"=>\"status_pegawai\",\"name\"=>\"status_pegawai\"];\n\t\t\t$this->col[] = [\"label\"=>\"photo\",\"name\"=>\"photo\",\"image\"=>true];\n\t\t\t# END COLUMNS DO NOT REMOVE THIS LINE\n\n\t\t\t# START FORM DO NOT REMOVE THIS LINE\n\t\t\t$this->form = [];\n\t\t\t$this->form[] = ['label'=>'Nama Lengkap','name'=>'nama_lengkap','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10'];\n\t\t\t$this->form[] = ['label'=>'Tempat Lahir','name'=>'tempat_lahir','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10'];\n\t\t\t$this->form[] = ['label'=>'Tanggal Lahir','name'=>'tanggal_lahir','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10'];\n\t\t\t$this->form[] = ['label'=>'Unit','name'=>'unit_detail','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10'];\n\t\t\t$this->form[] = ['label'=>'pangkat','name'=>'pangkat','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10'];\n\t\t\t$this->form[] = ['label'=>'golongan','name'=>'golongan','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10'];\n\t\t\t$this->form[] = ['label'=>'Jabatan','name'=>'jabatan','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10'];\n\t\t\t$this->form[] = ['label'=>'Jenis Pegawai','name'=>'jenis_pegawai','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10'];\n\t\t\t$this->form[] = ['label'=>'Status Pegawai','name'=>'Status Pegawai','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10'];\n\t\t\t$this->form[] = ['label'=>'Photo','name'=>'photo','type'=>'upload','validation'=>'required|min:1|max:255','width'=>'col-sm-10'];\n\t\t\t# END FORM DO NOT REMOVE THIS LINE\n\n\t\t\t# OLD START FORM\n\t\t\t//$this->form = [];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t//$this->form[] = [\"label\"=>\"\",\"name\"=>\"\",\"type\"=>\"text\",\"required\"=>TRUE,\"validation\"=>\"required|min:1|max:255\"];\n\t\t\t# OLD END FORM\n\n\t\t\t/* \n\t | ---------------------------------------------------------------------- \n\t | Sub Module\n\t | ---------------------------------------------------------------------- \n\t\t\t| @label = Label of action \n\t\t\t| @path = Path of sub module\n\t\t\t| @foreign_key \t = foreign key of sub table/module\n\t\t\t| @button_color = Bootstrap Class (primary,success,warning,danger)\n\t\t\t| @button_icon = Font Awesome Class \n\t\t\t| @parent_columns = Sparate with comma, e.g : name,created_at\n\t | \n\t */\n\t $this->sub_module = array();\n\n\n\t /* \n\t | ---------------------------------------------------------------------- \n\t | Add More Action Button / Menu\n\t | ---------------------------------------------------------------------- \n\t | @label = Label of action \n\t | @url = Target URL, you can use field alias. e.g : [id], [name], [title], etc\n\t | @icon = Font awesome class icon. e.g : fa fa-bars\n\t | @color \t = Default is primary. (primary, warning, succecss, info) \n\t | @showIf \t = If condition when action show. Use field alias. e.g : [id] == 1\n\t | \n\t */\n\t $this->addaction = array();\n\n\n\n\t /* \n\t | ---------------------------------------------------------------------- \n\t | Add More Button Selected\n\t | ---------------------------------------------------------------------- \n\t | @label = Label of action \n\t | @icon \t = Icon from fontawesome\n\t | @name \t = Name of button \n\t | Then about the action, you should code at actionButtonSelected method \n\t | \n\t */\n\t $this->button_selected = array();\n\n\t \n\t /* \n\t | ---------------------------------------------------------------------- \n\t | Add alert message to this module at overheader\n\t | ---------------------------------------------------------------------- \n\t | @message = Text of message \n\t | @type = warning,success,danger,info \n\t | \n\t */\n\t $this->alert = array();\n\t \n\n\t \n\t /* \n\t | ---------------------------------------------------------------------- \n\t | Add more button to header button \n\t | ---------------------------------------------------------------------- \n\t | @label = Name of button \n\t | @url = URL Target\n\t | @icon = Icon from Awesome.\n\t | \n\t */\n\t $this->index_button = array();\n $this->index_button[] = [\"label\" => \"sync\",\"url\" => CRUDBooster::mainpath(\"sync\"),\"icon\" => \"fa fa-bars\"];\n\n\n\n\t /* \n\t | ---------------------------------------------------------------------- \n\t | Customize Table Row Color\n\t | ---------------------------------------------------------------------- \n\t | @condition = If condition. You may use field alias. E.g : [id] == 1\n\t | @color = Default is none. You can use bootstrap success,info,warning,danger,primary. \n\t | \n\t */\n\t $this->table_row_color = array(); \t \n\n\t \n\t /*\n\t | ---------------------------------------------------------------------- \n\t | You may use this bellow array to add statistic at dashboard \n\t | ---------------------------------------------------------------------- \n\t | @label, @count, @icon, @color \n\t |\n\t */\n\t $this->index_statistic = array();\n\n\n\n\t /*\n\t | ---------------------------------------------------------------------- \n\t | Add javascript at body \n\t | ---------------------------------------------------------------------- \n\t | javascript code in the variable \n\t | $this->script_js = \"function() { ... }\";\n\t |\n\t */\n\t $this->script_js = NULL;\n\n\n /*\n\t | ---------------------------------------------------------------------- \n\t | Include HTML Code before index table \n\t | ---------------------------------------------------------------------- \n\t | html code to display it before index table\n\t | $this->pre_index_html = \"<p>test</p>\";\n\t |\n\t */\n\t $this->pre_index_html = null;\n\t \n\t \n\t \n\t /*\n\t | ---------------------------------------------------------------------- \n\t | Include HTML Code after index table \n\t | ---------------------------------------------------------------------- \n\t | html code to display it after index table\n\t | $this->post_index_html = \"<p>test</p>\";\n\t |\n\t */\n\t $this->post_index_html = null;\n\t \n\t \n\t \n\t /*\n\t | ---------------------------------------------------------------------- \n\t | Include Javascript File \n\t | ---------------------------------------------------------------------- \n\t | URL of your javascript each array \n\t | $this->load_js[] = asset(\"myfile.js\");\n\t |\n\t */\n\t $this->load_js = array();\n\t \n\t \n\t \n\t /*\n\t | ---------------------------------------------------------------------- \n\t | Add css style at body \n\t | ---------------------------------------------------------------------- \n\t | css code in the variable \n\t | $this->style_css = \".style{....}\";\n\t |\n\t */\n\t $this->style_css = NULL;\n\t \n\t \n\t \n\t /*\n\t | ---------------------------------------------------------------------- \n\t | Include css File \n\t | ---------------------------------------------------------------------- \n\t | URL of your css each array \n\t | $this->load_css[] = asset(\"myfile.css\");\n\t |\n\t */\n\t $this->load_css = array();\n\t \n\t \n\t }", "protected function setupCreateOperation()\n {\n $this->addUserFields();\n $this->crud->setValidation(StoreRequest::class);\n// CRUD::setValidation(UserRequest::class);\n//\n// CRUD::setFromDb(); // fields\n\n /**\n * Fields can be defined using the fluent syntax or array syntax:\n * - CRUD::field('price')->type('number');\n * - CRUD::addField(['name' => 'price', 'type' => 'number']));\n */\n }", "public function setup()\n {\n CRUD::setModel(\\App\\Models\\Setting::class);\n CRUD::setRoute(config('backpack.base.route_prefix').'/setting');\n CRUD::setEntityNameStrings('paramètre', 'paramètres');\n\n if (User::min('id') !== backpack_user()->id) {\n CRUD::denyAccess(['delete', 'create']);\n }\n }", "protected function setupUpdateOperation()\n {\n // $this->crud->modifyField('status', 'Enabled');\n //$password = bcrypt('Password');\n //$this->crud->modifyField('password', bcrypt('Password'));\n $this->setupCreateOperation();\n }", "public function setup()\n {\n $this->crud->setModel('App\\Models\\Order');\n $this->crud->setRoute(config('backpack.base.route_prefix') . '/order');\n $this->crud->setEntityNameStrings('order', 'orders');\n\n /*\n |--------------------------------------------------------------------------\n | BASIC CRUD INFORMATION\n |--------------------------------------------------------------------------\n */\n\n // $this->crud->setFromDb();\n\n // ------ CRUD COLUMNS\n /* $this->crud->addColumn([ // SELECT\n 'label' => 'Hotel Category',\n 'type' => 'select2',\n 'name' => 'hotel_categories_id',\n 'entity' => 'hotel_categories',\n 'attribute' => 'name',\n 'model' => \"App\\Models\\HotelCategory\",\n ]);*/\n $this->crud->addColumn([\n 'name' => 'mihpayid',\n 'label' => 'Order ID',\n ]);\n $this->crud->addColumn([\n 'name' => 'firstname',\n 'label' => 'Name',\n ]);\n\n $this->crud->addColumn([\n 'name' => 'email',\n 'label' => 'Email',\n ]);\n\n $this->crud->addColumn([\n 'name' => 'amount',\n 'label' => 'Amount',\n ]);\n $this->crud->addColumn([\n 'name' => 'status',\n 'label' => 'Status',\n ]);\n $this->crud->addColumn([\n 'name' => 'City',\n 'label' => 'City',\n ]);\n $this->crud->addColumn([\n 'name' => 'created_at',\n 'label' => 'Date',\n ]);\n $this->crud->enableAjaxTable();\n\n \n }", "public function setup()\n {\n $this->crud->setModel('App\\Models\\Trip');\n $this->crud->setRoute(config('backpack.base.route_prefix') . '/trip');\n $this->crud->setEntityNameStrings('trip', 'trips');\n\n /*\n |--------------------------------------------------------------------------\n | CrudPanel Configuration\n |--------------------------------------------------------------------------\n */\n\n $this->crud->addButtonFromView('line', 'risk_assessment', 'risk_assessment', 'end');\n $this->crud->addButtonFromView('top', 'download_assessment_form','download_assessment_form','end');\n\n $this->crud->addColumns([\n [\n 'name' => 'user_id',\n 'type' => 'select',\n 'label' => 'Traveller',\n 'entity' => 'user',\n 'model' => User::class,\n 'attribute' => 'name',\n ],\n [\n 'name' => 'start_date',\n 'type' => 'date',\n 'label' => 'Start Date'\n ],\n [\n 'name' => 'end_date',\n 'type' => 'date',\n 'label' => 'End Date'\n ],\n [\n 'name' => 'destination',\n 'type' => 'text',\n 'label' => 'Destination'\n ],\n [\n 'name' => 'itinerary',\n 'type' => 'upload_multiple',\n 'label' => 'Itenerary Docs',\n 'disk' => 'public',\n ],\n [\n 'name' => 'local_contact',\n 'type' => 'Text',\n 'label' => 'Local Contact Info',\n ],\n [\n 'name' => 'status',\n 'type' => 'text',\n 'label' => 'Risk Assessment Status',\n ],\n [\n 'name' => 'risk_assessment',\n 'type' => 'upload_multiple',\n 'label' => 'Risk Assessment Docs',\n 'disk' => 'public',\n ],\n [\n 'name' => 'carbon',\n 'type' => 'number',\n 'label' => 'Carbon Emissions in Tons',\n 'suffix' => ' Tons',\n 'decimals' => 2,\n ],\n [\n 'name' => 'compensation',\n 'type' => 'number',\n 'prefix' => '£',\n\n 'label' => 'Estimated offset cost (£)',\n 'decimals' => 2,\n ],\n ]);\n\n\n\n // add asterisk for fields that are required in TripRequest\n $this->crud->setRequiredFields(StoreRequest::class, 'create');\n $this->crud->setRequiredFields(UpdateRequest::class, 'edit');\n }", "public function setUp()\n {\n $this->crud->setModel('SmartyStudio\\EcommerceCrud\\app\\Models\\Carrier');\n $this->crud->setRoute(config('backpack.base.route_prefix') . '/carriers');\n $this->crud->setEntityNameStrings('carrier', 'carriers');\n\n\t\t/*\n |--------------------------------------------------------------------------\n | COLUMNS\n |--------------------------------------------------------------------------\n */\n\t\t$this->crud->addColumns(\n\t\t\t$this->getColumns()\n\t\t);\n\n\t\t/*\n |--------------------------------------------------------------------------\n | FIELDS\n |--------------------------------------------------------------------------\n */\n\t\t$this->crud->addFields(\n\t\t\t$this->getFields()\n\t\t);\n\n /*\n |--------------------------------------------------------------------------\n | PERMISSIONS\n |-------------------------------------------------------------------------\n */\n $this->setPermissions();\n\n /*\n |--------------------------------------------------------------------------\n | AJAX TABLE VIEW\n |--------------------------------------------------------------------------\n */\n $this->crud->enableAjaxTable();\n\n }", "protected function setupListOperation()\n {\n CRUD::setFromDb(); // columns\n\n $this->crud->setColumns([\n [ \n 'name' => 'id',\n 'label' => 'ID',\n 'type' => 'number',\n\n ],\n [\n 'name' => 'name',\n 'type' => 'text',\n 'label' => 'Name',\n 'orderable' => false,\n ],\n [\n // non-relationship count\n 'name' => 'Customer', // name of relationship method in the model\n 'type' => 'relationship_count', \n 'label' => 'Customers', // Table column heading\n // OPTIONAL\n 'suffix' => '', // to show \"123 tags\" instead of \"123 items\"\n ],\n [\n 'name' => 'type_id',\n 'label' => 'Permission',\n 'type' => 'boolean',\n 'options' => [0 => 'Collector', 1 => 'Administrator']\n ],\n\n ]);\n\n $this->crud->addButtonFromModelFunction('line', 'open_google', 'openReceive', 'beginning');\n }", "protected function setupListOperation()\n {\n // simple filter\n \n\n\n // $this->crud->addFilter([\n // 'name' => 'status',\n // 'type' => 'dropdown',\n // 'label' => 'Status'\n // ], [\n // 1 => 'Enabled',\n // 2 => 'Disabled',\n // ], function($value) { // if the filter is active\n // $this->crud->addClause('where', 'status', $value);\n // // return User::all()->where('status', $value);\n // });\n\n $this->crud->addFilter([\n 'type' => 'text',\n 'name' => 'description',\n 'label' => 'Description'\n ], \n false, \n function($value) { // if the filter is active\n $this->crud->addClause('where', 'username', 'LIKE', \"%$value%\");\n });\n\n $this->crud->addFilter([\n 'type' => 'date',\n 'name' => 'date',\n 'label' => 'Date'\n ],\n false,\n function ($value) { // if the filter is active, apply these constraints\n $this->crud->addClause('where', 'created_at', 'LIKE', \"$value%\");\n });\n\n $this->crud->addFilter([\n 'type' => 'date_range',\n 'name' => 'from_to',\n 'label' => 'Date range'\n ],\n false,\n function ($value) { // if the filter is active, apply these constraints\n $dates = json_decode($value);\n $this->crud->addClause('where', 'created_at', '>=', $dates->from);\n $this->crud->addClause('where', 'created_at', '<=', $dates->to . ' 23:59:59');\n });\n\n \n CRUD::column('id');\n CRUD::column('first_name');\n CRUD::column('last_name');\n // CRUD::column('username');\n $this->crud->column('username');\n CRUD::column('email');\n $this->crud->column('status');\n CRUD::column('password');\n $this->crud->column('created_at');\n\n\n $this->crud->enableExportButtons();\n\n $this->crud->addFilter([\n 'type' => 'simple',\n 'name' => 'active',\n 'label' => 'Disabled'\n ], \n false, \n function() { // if the filter is active\n $this->crud->addClause('where', 'status', 'Disabled'); // apply the \"active\" eloquent scope \n } );\n\n // dd($this->crud->column('status'));\n // $users = DB::table('users')\n // ->select('status')\n // ->get();\n\n // // dd($users);\n // $u = array();\n // for($i = 0; $i < count($users); $i++) {\n // // if ($user->status == 'Enabled') {\n // // $this->crud->addButtonFromView('line', 'disable', 'disable', 'end');\n // // }\n // $u[] = $users[$i]->status;\n // }\n // // dd($u);\n // // dd($user);\n\n // if (in_array('Enabled', $u)) {\n \n // $this->crud->addButtonFromView('line', 'enable', 'enable', 'end');\n // }\n $this->crud->addButtonFromView('line', 'enable', 'enable', 'end');\n $this->crud->addButtonFromView('line', 'disable', 'disable', 'end');\n $this->crud->addButtonFromView('line', 'reset', 'reset', 'end');\n\n \n // $this->crud->addButton('line', 'Suspend', 'suspend', 'beginning');\n \n $this->crud->denyAccess('delete');\n\n\n\n /**\n * Columns can be defined using the fluent syntax or array syntax:\n * - CRUD::column('price')->type('number');\n * - CRUD::addColumn(['name' => 'price', 'type' => 'number']); \n */\n }", "protected function setupListOperation()\n {\n\n /**\n * Columns can be defined using the fluent syntax or array syntax:\n * - CRUD::column('price')->type('number');\n * - CRUD::addColumn(['name' => 'price', 'type' => 'number']);\n */\n\n $this->crud->addColumn('id');\n\n $this->crud->addColumn([\n 'name' => 'name',\n 'label' => trans('backpack::base.name'),\n ]);\n\n $this->crud->addColumn([\n 'name' => 'address1',\n 'label' => trans('macyo_custom.address1'),\n ]);\n\n $this->crud->addColumn([\n 'name' => 'zip',\n 'label' => trans('macyo_custom.zip'),\n ]);\n\n $this->crud->addColumn([\n 'name' => 'city',\n 'label' => trans('macyo_custom.city'),\n ]);\n\n $this->crud->addColumn([\n 'name' => 'state',\n 'label' => trans('macyo_custom.state'),\n 'type' => 'select_from_array',\n 'options' => $this->tableauState,\n 'wrapper' => [\n 'element' => 'span',\n 'class' => function ($crud, $column, $entry, $related_key) {\n\n switch ($entry->state) {\n case 1: return 'badge badge-error';\n case 2: return 'badge badge-warning';\n case 3: return 'badge badge-info';\n case 4: return 'badge badge-success';\n default: return null;\n }\n\n },\n ],\n ]);\n\n $this->crud->addColumn([\n 'name' => 'manager_id',\n 'label' => trans('macyo_custom.manager'),\n 'type' => 'relationship',\n 'attribute' => 'fullname',\n 'wrapper' => [\n 'element' => 'a',\n 'href' => function ($crud, $column, $entry, $related_key) {\n return backpack_url('user/'.$related_key.'/show');\n },\n ]\n ]);\n\n // dropdown filter\n $this->crud->addFilter([\n 'name' => 'state',\n 'type' => 'dropdown',\n 'label' => trans('macyo_custom.state_long')\n ],\n $this->tableauState\n , function($value) { // if the filter is active\n $this->crud->addClause('where', 'state', $value);\n });\n\n $this->crud->removeButton('create');\n $this->crud->removeButton('update');\n $this->crud->removeButton('delete');\n\n }", "protected function setupShowOperation(): void\n {\n $this->crud->addColumn([\n 'name' => 'name',\n 'type' => 'text',\n 'label' => 'Наименование',\n ]);\n $this->crud->addColumn([\n 'name' => 'category_id',\n 'type' => 'select',\n 'label' => 'Категория',\n 'entity' => 'category',\n 'attribute' => \"name\",\n 'model' => Category::class,\n ]);\n $this->crud->addColumn([\n 'name' => 'photos',\n 'label' => 'Фотографии',\n 'type' => 'upload_multiple',\n 'disk' => 'public'\n ]);\n $this->crud->addColumn([\n 'name' => 'attributes',\n 'label' => 'Атрибуты',\n 'type' => 'attributes',\n 'entity_singular' => 'атрибут',\n 'columns' => [\n 'name' => 'Название атрибута',\n 'value' => 'Значение',\n ],\n 'min' => 0,\n ]);\n }", "protected function setupCreateOperation()\n {\n CRUD::setValidation(CustomerRequest::class);\n\n $this->crud->setOperationSetting('contentClass', 'col-md-12 bold-labels');\n $this->crud->addFields([\n [ \n 'name' => 'name',\n 'label' => 'Name',\n 'type' => 'text',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n\n\n ],\n [ \n 'name' => 'national_id',\n 'label' => 'National ID',\n 'type' => 'text',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n\n ],\n [ \n 'name' => 'trademark',\n 'label' => 'Trademark',\n 'type' => 'text',\n\n ],\n [ \n 'name' => 'district',\n 'label' => 'District',\n 'type' => 'text',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ],\n [ \n 'name' => 'address',\n 'label' => 'Address',\n 'type' => 'text',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ],\n [ \n 'name' => 'mobile_one',\n 'label' => 'Mobile 1',\n 'type' => 'text',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ],\n [ \n 'name' => 'mobile_two',\n 'label' => 'Mobile 2',\n 'type' => 'text',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ],\n [ \n 'name' => 'target',\n 'label' => 'Target',\n 'type' => 'number',\n ],\n [ // relationship\n 'type' => \"relationship\",\n 'name' => 'user_id', // the method on your model that defines the relationship\n 'label' => \"Collector\",\n 'attribute' => \"name\", // foreign key attribute that is shown to user (identifiable attribute)\n 'placeholder' => \"Select a Collector\", // placeholder for the select2 input\n 'entity' => 'User', // the method that defines the relationship in your Model\n\n // OPTIONALS:\n // 'attribute' => \"name\", // foreign key attribute that is shown to user (identifiable attribute)\n // 'model' => \"App\\Models\\Category\", // foreign key Eloquent model\n ],\n ]);\n }", "public function setup()\n {\n $this->crud->setModel(\"App\\Article\");\n $this->crud->setRoute(config('backpack.base.route_prefix', 'admin').'/article');\n $this->crud->setEntityNameStrings('article', 'articles');\n\n $this->crud->addButtonFromView('line', 'admin_preview', 'admin_preview', 'beginning');\n if (!backpack_user()->can('view_all_articles'))\n $this->crud->addClause('where','user_id','=', backpack_user()->id);\n\n /*\n |--------------------------------------------------------------------------\n | LIST OPERATION\n |--------------------------------------------------------------------------\n */\n $this->crud->operation('list', function () {\n $this->crud->removeButtonFromStack('clone', 'line');\n $this->crud->removeButtonFromStack('show', 'line');\n\n $this->crud->addColumn([\n\n 'label' => 'Author',\n 'type' => 'select',\n 'name' => 'user_id',\n 'entity' => 'user',\n 'attribute' => 'name',\n// 'model' => 'App\\Models\\BackpackUser'\n ]);\n $this->crud->addColumn('title');\n $this->crud->addColumn('description');\n $this->crud->addColumn([\n 'name' => 'post_type',\n 'label' => \"Post Type\",\n 'type' => 'select_from_array',\n 'options' => [\n 0 => \"Normal\",\n 1 => \"Main Post\",\n 2 => \"Post up\",\n 3 => \"Post down\",]\n ]);\n $this->crud->addColumn('status');\n $this->crud->addColumn([\n 'name' => 'featured',\n 'label' => 'Featured',\n 'type' => 'check',\n ]);\n $this->crud->addColumn([\n 'label' => 'Category',\n 'type' => 'select',\n 'name' => 'category_id',\n 'entity' => 'category',\n 'attribute' => 'name',\n ]);\n });\n\n /*\n |--------------------------------------------------------------------------\n | CREATE & UPDATE OPERATIONS\n |--------------------------------------------------------------------------\n */\n $this->crud->operation(['create', 'update'], function () {\n $this->crud->setValidation(\\App\\Http\\Requests\\ArticleRequest::class);\n\n $this->crud->addField([\n 'name' => 'title',\n 'label' => 'Title',\n 'type' => 'text',\n 'placeholder' => 'Your title here',\n ]);\n\n $this->crud->addField([\n 'name' => 'description',\n 'label' => 'Description',\n 'hint' => 'A small description of what the article is about',\n 'type' => 'text',\n 'placeholder' => 'Your description here',\n ]);\n\n $this->crud->addField([\n 'name' => 'slug',\n 'label' => 'Slug (URL)',\n 'type' => 'text',\n 'hint' => 'Will be automatically generated from your title, if left empty.',\n // 'disabled' => 'disabled'\n ]);\n $this->crud->addField([\n 'name' => 'date',\n 'label' => 'Date',\n 'type' => 'date',\n 'default' => date('Y-m-d'),\n ]);\n $this->crud->addField([\n 'name' => 'content',\n 'label' => 'Content',\n 'type' => 'ckeditor',\n 'extra_plugins' => ['image2','widget', 'colorbutton', 'justify', 'find', 'codesnippet', 'embed', 'iframe' ],\n 'options' => [\n 'autoGrow_minHeight' => 200,\n 'autoGrow_bottomSpace' => 50,\n ],\n// 'removePlugins' => 'image,maximize',\n ]);\n $this->crud->addField([\n 'name' => 'image',\n 'label' => 'Image',\n 'type' => 'browse',\n ]);\n $this->crud->addField([\n 'label' => 'Category',\n 'type' => 'select2_multiple',\n 'name' => 'category',\n 'entity' => 'category',\n 'attribute' => 'name',\n 'pivot' => true,\n ]);\n $this->crud->addField([\n 'label' => 'Tags',\n 'type' => 'select2_multiple',\n 'name' => 'tags', // the method that defines the relationship in your Model\n 'entity' => 'tags', // the method that defines the relationship in your Model\n 'attribute' => 'name', // foreign key attribute that is shown to user\n 'pivot' => true, // on create&update, do you need to add/delete pivot table entries?\n ]);\n $this->crud->addField([\n 'name' => 'status',\n 'label' => 'Status',\n 'type' => 'enum',\n ]);\n\n if (backpack_user()->can('make important')){\n $this->crud->addField([\n 'name' => 'post_type',\n 'label' => 'Post Type',\n 'type' => 'radio',\n 'options' => [\n // the key will be stored in the db, the value will be shown as label;\n 0 => \"Normal\",\n 1 => \"Main Post\",\n 2 => \"Post up\",\n 3 => \"Post down\"\n ],\n 'inline' => true,\n ]);\n }\n\n $this->crud->addField([\n 'name' => 'featured',\n 'label' => 'Featured item',\n 'type' => 'checkbox',\n ]);\n\n $this->crud->addField([\n 'name' => 'user_id',\n 'type'=> 'hidden',\n 'value'=> backpack_user()->id,\n ]);\n });\n }", "protected function setupListOperation()\n {\n if (About::count() > 0) {\n $this->crud->denyAccess((array)'create');\n }\n// CRUD::addColumn(['name' => 'text_one', 'label' => 'Текст первый']); // columns\n CRUD::addColumn(['name' => 'image_one', 'type' => 'image', 'label' => 'Изображение первое']); // columns\n// CRUD::addColumn(['name' => 'text_two', 'label' => 'Текст второй']); // columns\n CRUD::addColumn(['name' => 'image_two', 'type' => 'image', 'label' => 'Изображение второе']); // columns\n CRUD::addColumn(['name' => 'image_third', 'type' => 'image', 'label' => 'Изображение второе']); // columns\n CRUD::addColumn(['name' => 'image_four', 'type' => 'image', 'label' => 'Изображение второе']); // columns\n\n /**\n * Columns can be defined using the fluent syntax or array syntax:\n * - CRUD::column('price')->type('number');\n * - CRUD::addColumn(['name' => 'price', 'type' => 'number']);\n */\n }", "protected function setupListOperation()\n {\n\n $this->crud->setColumns([\n [ \n 'name' => 'id',\n 'label' => 'ID',\n 'type' => 'number',\n\n ],\n [\n 'name' => 'name',\n 'type' => 'text',\n 'label' => 'Customer',\n 'orderable' => false,\n ],\n [\n 'name' => 'target',\n 'type' => 'number',\n 'label' => 'Target',\n 'orderable' => false,\n ],\n [\n // non-relationship count\n 'name' => 'Machines', // name of relationship method in the model\n 'type' => 'relationship_count', \n 'label' => 'Machines', // Table column heading\n // OPTIONAL\n 'suffix' => '', // to show \"123 tags\" instead of \"123 items\"\n ],\n [\n 'name' => 'balance',\n 'type' => 'text',\n 'label' => 'Balance',\n ],\n [ \n // any type of relationship\n 'name' => 'User', // name of relationship method in the model\n 'type' => 'relationship',\n 'label' => 'Collector', // Table column heading\n // OPTIONAL\n // 'entity' => 'tags', // the method that defines the relationship in your Model\n // 'attribute' => 'name', // foreign key attribute that is shown to user\n // 'model' => App\\Models\\Category::class, // foreign key model\n ],\n ]);\n\n }", "protected function setupCreateOperation()\n {\n CRUD::setValidation(TaskRequest::class);\n\n // CRUD::setFromDb(); // fields\n\n /**\n * Fields can be defined using the fluent syntax or array syntax:\n * - CRUD::field('price')->type('number');\n * - CRUD::addField(['name' => 'price', 'type' => 'number'])); \n */\n CRUD::addField(['label' => \"Name\",\n 'name' => 'name',]\n );\n CRUD::addField([ // Select\n 'label' => \"Project\",\n 'type' => 'select',\n 'name' => 'project_id', // the db column for the foreign key\n \n // optional \n // 'entity' should point to the method that defines the relationship in your Model\n // defining entity will make Backpack guess 'model' and 'attribute'\n 'entity' => 'project', \n \n // optional - manually specify the related model and attribute\n 'model' => \"App\\Models\\Project\", // related model\n 'attribute' => 'name', // foreign key attribute that is shown to user\n \n // optional - force the related options to be a custom query, instead of all();\n ]);\n\n }", "protected function setupListOperation()\n {\n $this->crud->addColumn([\n 'name' => 'row_number',\n 'type' => 'row_number',\n 'label' => '#',\n 'orderable' => false,\n ])->makeFirstColumn();\n\n $this->crud->addColumn([\n 'name' => 'school_id',\n 'type' => 'select',\n 'label' => 'School Name',\n 'entity' => 'School', // the method that defines the relationship in your Model\n 'attribute' => 'name', // foreign key attribute that is shown to user\n 'model' => \"App\\Models\\School\", // foreign key model\n 'wrapper' => [\n 'href' => function ($crud, $column, $entry, $related_key) {\n return backpack_url('/school/'.$related_key);\n },\n ]\n ]);\n\n $this->crud->addColumn([\n 'name' => 'name',\n 'type' => 'text',\n 'label' => 'Name',\n 'wrapper' => [\n 'href' => function ($crud, $column, $entry, $related_key) {\n return backpack_url('/school/'.$entry->school_id.'/sclass/'.$entry->id);\n },\n ]\n ]);\n $this->crud->addColumn([\n 'name' => 'school_id',\n 'type' => 'select',\n 'label' => 'School Name',\n 'entity' => 'School', // the method that defines the relationship in your Model\n 'attribute' => 'name', // foreign key attribute that is shown to user\n 'model' => \"App\\Models\\School\", // foreign key model\n 'wrapper' => [\n 'href' => function ($crud, $column, $entry, $related_key) {\n return backpack_url('/school/'.$related_key);\n },\n ]\n ]);\n $this->crud->addColumn([\n 'name' => 'students_count',\n 'label' => 'Student Count',\n 'type' => 'closure',\n 'function' => function($entry) {\n return $entry->students()->count() . ' student';\n }\n ]);\n\n $this->addCustomCrudFilters();\n\n /**\n * Columns can be defined using the fluent syntax or array syntax:\n * - CRUD::column('price')->type('number');\n * - CRUD::addColumn(['name' => 'price', 'type' => 'number']);\n */\n }", "protected function setupListOperation()\n {\n $this->crud->removeAllButtons();\n $this->crud->disableResponsiveTable();\n CRUD::column('name');\n CRUD::column('cron_expression');\n CRUD::column('grace_time_in_minutes');\n CRUD::column('last_failed_at');\n CRUD::column('last_finished_at');\n// CRUD::column('last_pinged_at');\n CRUD::column('last_skipped_at');\n CRUD::column('last_started_at');\n// CRUD::column('ping_url');\n// CRUD::column('registered_on_oh_dear_at');\n CRUD::column('timezone');\n CRUD::column('type');\n CRUD::column('updated_at');\n\n /**\n * Columns can be defined using the fluent syntax or array syntax:\n * - CRUD::column('price')->type('number');\n * - CRUD::addColumn(['name' => 'price', 'type' => 'number']);\n */\n }", "protected function setupListOperation()\n {\n //CRUD::setFromDb(); // columns\n\n /**\n * Columns can be defined using the fluent syntax or array syntax:\n * - CRUD::column('price')->type('number');\n * - CRUD::addColumn(['name' => 'price', 'type' => 'number']);\n */\n $this->crud->addColumn('nama_penyakit');\n //$this->crud->allowAccess('details_row');\n //$this->crud->enableDetailsRow();\n\n\n }", "protected function setupListOperation()\n {\n $this->crud->addColumns([\n [\n 'name' => 'name',\n 'label' => 'Название',\n ],\n [\n 'name' => 'description',\n 'label' => 'Описание',\n\n ],\n [\n 'name' => 'price',\n 'label' => 'Цена',\n ],\n [\n 'name' => 'time_start',\n 'label' => 'Дата начало',\n 'type' => \"date\",\n ],\n [\n 'name' => 'time_finish',\n 'label' => 'Дата финиша',\n 'type' => \"date\",\n ],\n [\n 'name' => 'car_id',\n 'label' => 'Автомобиль',\n 'type' => 'select',\n 'entity' => 'car',\n 'attribute' => 'register_id',\n 'model' => 'App\\Models\\Car',\n ],\n [\n 'name' => 'employee_id',\n 'label' => 'Сотрудник',\n 'type' => 'select',\n 'entity' => 'employee',\n 'attribute' => 'full_name',\n 'model' => 'App\\Models\\Employee',\n ],\n ]);\n }", "protected function configure() {\n fORMDate::configureDateCreatedColumn($this, 'created_at');\n fORMDate::configureDateUpdatedColumn($this, 'updated_at');\n }", "public function index() {\n\n\t\t$this->Crud->addListener('SettingsSubSection', 'SettingsSubSection');\n\n\t\t$this->set('title_for_layout', __('Visualisation Settings'));\n\t\t$this->set('subtitle_for_layout', __('Use visualisations to control what is displayed to the logged user. By default they are enabled, meaning users will only see items that relate to them.'));\n\t\t\n\t\t$this->Crud->on('beforePaginate', array($this, '_beforePaginate'));\n\t\t$this->Crud->execute();\n\t}", "protected function setupListOperation()\n {\n // CRUD::setFromDb(); // columns\n\n \n CRUD::column('name');\n CRUD::column('project_id');\n CRUD::column('priority');\n \n /**\n * Columns can be defined using the fluent syntax or array syntax:\n * - CRUD::column('price')->type('number');\n * - CRUD::addColumn(['name' => 'price', 'type' => 'number']); \n */\n \n $this->crud->addButtonFromView('top', 'tasks-reorder', 'tasks-reorder');\n $this->crud->denyAccess('reorder');\n \n }", "public function setup()\n {\n $this->crud->setModel('App\\Models\\ItemCategories');\n $this->crud->setRoute(config('backpack.base.route_prefix') . '/itemcategories');\n $this->crud->setEntityNameStrings('Item Category', 'Item Categories');\n\n /*\n |--------------------------------------------------------------------------\n | COLUMNS AND FIELDS\n |--------------------------------------------------------------------------\n */\n\n $this->crud->allowAccess('reorder');\n $this->crud->enableReorder('name', 2);\n\n // ------ CRUD COLUMNS\n $this->crud->addColumn([\n 'name' => 'name',\n 'label' => 'Name',\n ]);\n $this->crud->addColumn([\n 'name' => 'slug',\n 'label' => 'Slug',\n ]);\n $this->crud->addColumn([\n 'label' => 'Parent',\n 'type' => 'select',\n 'name' => 'parent_id',\n 'entity' => 'parent',\n 'attribute' => 'name',\n 'model' => \"App\\Models\\ItemCategories\",\n ]);\n\n // ------ CRUD FIELDS\n $this->crud->addField([\n 'name' => 'name',\n 'label' => 'Name',\n ]);\n $this->crud->addField([\n 'name' => 'slug',\n 'label' => 'Slug (URL)',\n 'type' => 'text',\n 'hint' => 'Will be automatically generated from your name, if left empty.',\n // 'disabled' => 'disabled'\n ]);\n $this->crud->addField([\n 'label' => 'Parent',\n 'type' => 'select',\n 'name' => 'parent_id',\n 'entity' => 'parent',\n 'attribute' => 'name',\n 'model' => \"App\\Models\\ItemCategories\",\n ]);\n }", "protected function setupListOperation()\n {\n /*$this->crud->setFromDb();*/\n $this->crud->addColumn(['name' => 'name', 'type' => 'text', 'label' => 'Name']);\n $this->crud->addColumn(['name' => 'sku', 'type' => 'text', 'label' => 'SKU / Product Unique ID']);\n $this->crud->addColumn(['name' => 'price', 'type' => 'text', 'label' => 'Price / €']);\n $this->crud->addColumn(['name' => 'status', 'type' => 'text', 'label' => 'Status']);\n $this->crud->addColumn(['name' => 'user.name', 'type' => 'text', 'label' => 'User Name']);\n $this->crud->addColumn(['name' => 'category.name', 'type' => 'text', 'label' => 'Category']);\n $this->crud->addColumn(['name' => 'publish_date', 'type' => 'text', 'label' => 'Publish Date']);\n $this->crud->addColumn(['name' => 'blocking_date', 'type' => 'text', 'label' => 'Blocking Date']);\n $this->crud->addColumn(['name' => 'created_at', 'type' => 'text', 'label' => 'Created Om']);\n $this->crud->addColumn(['name' => 'updated_at', 'type' => 'text', 'label' => 'Updated On']);\n }", "public function setup() {\n $this->crud->setModel('App\\Models\\Logistics');\n $this->crud->setRoute(config('backpack.base.route_prefix') . '/logistics');\n $this->crud->setEntityNameStrings('logistics', 'logistics');\n $this->crud->setColumns(['cedula', 'nombres', 'apellido1', 'apellido2', 'fecha_nacimiento', 'genero', 'fecha_ingreso', 'numero_empleado', 'cargo', 'jefe', 'zona', 'municipio', 'departamento', 'ventas_2019', 'email', 'password', 'imagen', 'celular']);\n $this->crud->addField([\n 'name' => 'cedula',\n 'type' => 'number',\n 'label' => \"Cedula\"\n ]);\n $this->crud->addField([\n 'name' => 'nombres',\n 'type' => 'text',\n 'label' => \"Nombres\"\n ]);\n $this->crud->addField([\n 'name' => 'apellido1',\n 'type' => 'text',\n 'label' => \"Primer Apellido\"\n ]);\n $this->crud->addField([\n 'name' => 'apellido2',\n 'type' => 'text',\n 'label' => \"Segundo Apellido\"\n ]);\n $this->crud->addField([\n 'name' => 'fecha_nacimiento',\n 'type' => 'date',\n 'label' => \"Fecha Nacimiento\"\n ]);\n $this->crud->addField([\n 'name' => 'genero',\n 'type' => 'text',\n 'label' => \"Sexo\"\n ]);\n $this->crud->addField([\n 'name' => 'fecha_ingreso',\n 'type' => 'date',\n 'label' => \"Fecha Ingreso\"\n ]);\n $this->crud->addField([\n 'name' => 'numero_empleado',\n 'type' => 'number',\n 'label' => \"Numero Empleados\"\n ]);\n $this->crud->addField([\n 'name' => 'cargo',\n 'type' => 'text',\n 'label' => \"Cargo\"\n ]);\n $this->crud->addField([\n 'name' => 'jefe',\n 'type' => 'text',\n 'label' => \"Jefe\"\n ]);\n $this->crud->addField([\n 'name' => 'zona',\n 'type' => 'text',\n 'label' => \"Zona\"\n ]);\n $this->crud->addField([\n 'name' => 'municipio',\n 'type' => 'text',\n 'label' => \"Municipio\"\n ]);\n $this->crud->addField([\n 'name' => 'departamento',\n 'type' => 'text',\n 'label' => \"Departamento\"\n ]);\n $this->crud->addField([\n 'name' => 'ventas_2019',\n 'type' => 'number',\n 'label' => \"Ventas\"\n ]);\n $this->crud->addField([\n 'name' => 'email',\n 'type' => 'email',\n 'label' => \"Correo Electronico\"\n ]);\n $this->crud->addField([\n 'name' => 'password',\n 'type' => 'password',\n 'label' => \"Contraseña\"\n ]);\n $this->crud->addField([\n 'name' => 'imagen',\n 'type' => 'text',\n 'label' => \"Imagen\"\n ]);\n $this->crud->addField([\n 'name' => 'celular',\n 'type' => 'number',\n 'label' => \"Numero Celular\"\n ]);\n\n /*\n |--------------------------------------------------------------------------\n | CrudPanel Configuration\n |--------------------------------------------------------------------------\n */\n\n // TODO: remove setFromDb() and manually define Fields and Columns\n $this->crud->setFromDb();\n\n // add asterisk for fields that are required in LogisticsRequest\n// $this->crud->setRequiredFields(StoreRequest::class, 'create');\n// $this->crud->setRequiredFields(UpdateRequest::class, 'edit');\n $this->crud->enableExportButtons();\n }", "protected function setupCreateOperation()\n {\n CRUD::setValidation(ArticleCategoryRequest::class);\n\n //Tab Main Info\n $this->crud->addFields([\n [\n 'name' => 'status',\n 'label' => _('Publish status'),\n 'type' => 'checkbox',\n 'tab' => _('Main info'),\n ],\n [\n 'name' => 'title',\n 'title' => _('Title'),\n 'type' => 'text',\n 'hint' => _('For admin panel & slug generator'),\n 'tab' => _('Main info'),\n ],\n [\n 'name' => 'slug',\n 'title' => _('Slug'),\n 'type' => 'text',\n 'hint' => _('auto generate'),\n 'tab' => _('Main info'),\n ],\n [\n 'name' => 'thumbnail',\n 'label' => _('Preview'),\n 'type' => 'browse',\n 'mime_types' => ['image'],\n 'tab' => _('Main info'),\n ]\n ]);\n $this->crud->addField([\n 'label' => _(\"Tags\"),\n 'type' => 'select2_multiple',\n 'name' => 'tags', // the method that defines the relationship in your Model\n 'entity' => 'tags', // the method that defines the relationship in your Model\n 'attribute' => 'name', // foreign key attribute that is shown to user\n 'pivot' => true, // on create&update, do you need to add/delete pivot table entries?\n 'tab' => _('Main info'),\n ]);\n\n\n\n //Tab Locale Info\n $this->crud->addFields([\n [\n 'name' => 'name',\n 'label' => _('name'),\n 'type' => 'text',\n 'tab' => _('Localization'),\n ],\n [\n 'name' => 'seo_title',\n 'label' => _('SEO title'),\n 'type' => 'text',\n 'tab' => _('Localization'),\n ],\n [\n 'name' => 'seo_h1',\n 'label' => _('SEO H1'),\n 'type' => 'text',\n 'tab' => _('Localization'),\n ],\n [\n 'name' => 'seo_description',\n 'label' => _('SEO description'),\n 'type' => 'text',\n 'tab' => _('Localization'),\n ],\n [\n 'name' => 'seo_keywords',\n 'label' => _('SEO keywords'),\n 'type' => 'text',\n 'tab' => _('Localization'),\n ],\n [\n 'name' => 'short_description',\n 'label' => _('Short description'),\n 'type' => 'ckeditor',\n 'tab' => _('Localization'),\n ],\n [\n 'name' => 'content',\n 'label' => _('Content'),\n 'type' => 'ckeditor',\n 'tab' => _('Localization'),\n ],\n ]);\n\n\n /**\n * Fields can be defined using the fluent syntax or array syntax:\n * - CRUD::field('price')->type('number');\n * - CRUD::addField(['name' => 'price', 'type' => 'number']));\n */\n }", "protected function setupListOperation()\n {\n $this->crud->addColumn([\n 'name' => 'title',\n 'label'=> _('Title'),\n 'type' =>'text'\n ]);\n $this->crud->addColumn([\n 'name' => 'status',\n 'label' => _('Status'),\n 'type' => 'boolean',\n // optionally override the Yes/No texts\n 'options' => [\n 1 => '<i class=\"lar la-check-circle\" style=\"color: green\"></i>',\n 0 => '<i class=\"las la-times-circle\" style=\"color: red\"></i>'\n ]\n ]);\n $this->crud->addColumn([\n 'name' => 'thumbnail',\n 'label' => _('Preview'),\n 'type' => 'image',\n 'prefix' => config('app.upload_patch'),\n 'width' => '100px',\n 'height' => 'auto'\n\n ]);\n\n\n /**\n * Columns can be defined using the fluent syntax or array syntax:\n * - CRUD::column('price')->type('number');\n * - CRUD::addColumn(['name' => 'price', 'type' => 'number']);\n */\n }", "public function configureModel()\n {\n /** @var PluginController $controller */\n $controller = $this->getController();\n\n /** @var Table $Users */\n $Users = $controller->loadModel($this->getConfig('userModel'));\n $Users->addBehavior($this->getConfig('behavior.className'), $this->getConfig('behavior.options'));\n }", "protected function setupUpdateOperation()\n {\n $this->crud->setUpdateContentClass('col-md-12');\n $this->setupCreateOperation();\n\n\n }", "protected function setupCreateOperation()\n {\n $this->crud->addField(['name' => 'name', 'type' => 'text', 'label' => 'Name']);\n $this->crud->addField([\n 'name' => 'school_id',\n 'type' => 'select',\n 'label' => 'School Name',\n 'entity' => 'School', // the method that defines the relationship in your Model\n 'attribute' => 'name', // foreign key attribute that is shown to user\n 'model' => \"App\\Models\\School\", // foreign key model\n ]);\n\n /**\n * Fields can be defined using the fluent syntax or array syntax:\n * - CRUD::field('price')->type('number');\n * - CRUD::addField(['name' => 'price', 'type' => 'number']));\n */\n }", "protected function configure()\n {\n $this->setName('plenty_importexport:products:importconfigurable')\n ->setDescription('Import Configurable Products ');\n\n $this->setBehavior(Import::BEHAVIOR_APPEND);\n $this->setEntityCode('catalog_product');\n\n parent::configure();\n }", "public function initSettings() {\n $this->setArguments();\n\n // Create the sections and fields\n $this->setSections();\n\n if (!isset($this->args['opt_name'])) { // No errors please\n return;\n }\n\n // If Redux is running as a plugin, this will remove the demo notice and links\n add_action( 'redux/loaded', array( $this, 'cpt_remove_demo' ) );\n \n // Function to test the compiler hook and demo CSS output.\n // Above 10 is a priority, but 2 in necessary to include the dynamically generated CSS to be sent to the function.\n // add_filter('redux/options/'.$this->args['opt_name'].'/compiler', array( $this, 'compiler_action' ), 10, 2);\n \n // Change the arguments after they've been declared, but before the panel is created\n //add_filter('redux/options/'.$this->args['opt_name'].'/args', array( $this, 'change_arguments' ) );\n \n // Change the default value of a field after it's been set, but before it's been useds\n //add_filter('redux/options/'.$this->args['opt_name'].'/defaults', array( $this,'change_defaults' ) );\n\n $this->ReduxFramework = new ReduxFramework($this->sections, $this->args);\n }", "public function setup()\n {\n $this->crud->setModel('App\\Models\\Vote');\n $this->crud->setRoute(config('backpack.base.route_prefix') . '/vote');\n $this->crud->setEntityNameStrings('نظرسنجی', 'نظرسنجی ها');\n\n /*\n |--------------------------------------------------------------------------\n | BASIC CRUD INFORMATION\n |--------------------------------------------------------------------------\n */\n\n $this->crud->addField([ // Select\n 'name' => 'shop_id',\n 'label' => 'فروشگاه',\n 'type' => 'select_shop',\n 'entity' => 'shop', // the method that defines the relationship in your Model\n 'attribute' => 'name', // foreign key attribute that is shown to user\n 'model' => \"App\\Models\\Shop\",// foreign key model\n\n ]);\n\n $this->crud->addField([\n 'name' => 'name',\n 'label' => 'عنوان نظر سنجی',\n 'type' => 'text',\n ]);\n\n $this->crud->addField([\n 'name' => 'question',\n 'label' => 'سوال نظر سنجی',\n 'type' => 'textarea',\n ]);\n\n $this->crud->addField([\n 'name' => 'a1',\n 'label' => 'پاسخ #1',\n 'type' => 'text',\n ]);\n\n $this->crud->addField([\n 'name' => 'a2',\n 'label' => 'پاسخ #2',\n 'type' => 'text',\n ]);\n\n $this->crud->addField([\n 'name' => 'a3',\n 'label' => 'پاسخ #3',\n 'type' => 'text',\n ]);\n\n $this->crud->addField([\n 'name' => 'a4',\n 'label' => 'پاسخ #4',\n 'type' => 'text',\n ]);\n\n $this->crud->addField([\n 'name' => 'a5',\n 'label' => 'پاسخ #5',\n 'type' => 'text',\n ]);\n\n\n\n $this->crud->enableAjaxTable();\n\n\n\n $votes = Vote::\n join('shop_user','shop_user.shop_id' , '=' ,'votes.shop_id')\n ->select('votes.*')\n ->where('shop_user.user_id',Auth::user()->id)\n ->get();\n\n foreach ($votes as $vote)\n {\n $this->crud->addClause('orWhere', 'shop_id', $vote->shop_id);\n\n }\n\n\n $shops = Shop::rep()->get();\n\n\n foreach ($shops as $shop) {\n $my_shop[$shop['id']] = $shop['name'];\n }\n\n $this->crud->addFilter([ // simple filter\n 'type' => 'dropdown',\n 'name' => 'shop_id',\n 'label' => 'فروشگاه'\n ], $my_shop, function ($value) { // if the filter is active\n $this->crud->addClause('where', 'shop_id', $value);\n });\n\n\n\n\n\n }", "public function configure() \n\t{\n $this->widgetSchema->setNameFormat('statistique_filter[%s]');\n }", "protected function setupUpdateOperation()\n {\n// $this->setupCreateOperation();\n $this->addUserFields();\n $this->crud->setValidation(UpdateRequest::class);\n }", "public function init()\n {\n $this->vars['CRUD']['Object'] = $this;\n $this->kernel = kernel();\n\n // Dynamic initialization\n if (! $this->modelName) {\n $modelRefl = new ReflectionClass($this->modelClass);\n $this->modelName = $modelRefl->getShortName();\n }\n\n\n if (! $this->crudId) {\n $this->crudId = \\Phifty\\Inflector::getInstance()->underscore($this->modelName);;\n }\n if (! $this->templateId) {\n $this->templateId = $this->crudId;\n }\n\n // Derive options from request\n if ($request = $this->getRequest()) {\n if ($useFormControls = $request->param('_form_controls')) {\n $this->actionViewOptions['submit_btn'] = true;\n $this->actionViewOptions['_form_controls'] = true;\n }\n }\n\n $this->reflect = new ReflectionClass($this);\n $this->namespace = $ns = $this->reflect->getNamespaceName();\n\n // XXX: currently we use FooBundle\\FooBundle as the main bundle class.\n $bundleClass = \"$ns\\\\$ns\";\n if (class_exists($bundleClass)) {\n $this->bundle = $this->vars['Bundle'] = $bundleClass::getInstance($this->kernel);\n } else {\n $bundleClass = \"$ns\\\\Application\";\n $this->bundle = $this->vars['Bundle'] = $bundleClass::getInstance($this->kernel);\n }\n\n $this->vars['Handler'] = $this;\n $this->vars['Controller'] = $this;\n\n // anyway, we have the model classname, and the namespace, \n // we should be able to registerRecordAction automatically, so we don't have to write the code.\n if ($this->registerRecordAction) {\n $self = $this;\n $this->kernel->event->register('phifty.before_action',function() use($self) {\n $self->kernel->action->registerAction('RecordActionTemplate', array(\n 'namespace' => $self->namespace,\n 'model' => $self->modelName,\n 'types' => (array) $self->registerRecordAction\n ));\n });\n }\n\n\n $this->initPermissions();\n\n /*\n * TODO: Move this to before render CRUD page, keep init method simple\n\n if ( $this->isI18NEnabled() ) {\n $this->primaryFields[] = 'lang';\n }\n */\n $this->initNavBar();\n }", "private function init_configuraciones(): controler\n {\n $this->titulo_lista = 'Registro de Clientes';\n\n return $this;\n }", "function Cofiguration()\n\t{\n\t\t//$this->objConMgr = new ConnectionMgr();\n\t}", "public function setup()\n {\n $this->crud->setModel('App\\Models\\User');\n $this->crud->setRoute(config('backpack.base.route_prefix') . '/user');\n $this->crud->setEntityNameStrings('user', 'users');\n\n // TODO: remove setFromDb() and manually define Fields and Columns\n\n // add asterisk for fields that are required in UserRequest\n\n $this->crud->addColumns([\n 'title',\n 'name',\n [\n 'name' => 'email', // The db column name\n 'label' => \"Email Address\", // Table column heading\n 'type' => 'email',\n ],\n [\n 'name' => 'isActive',\n 'label' => 'Active',\n 'type' => 'boolean',\n // optionally override the Yes/No texts\n 'options' => [1 => 'Active', 0 => 'Inactive']\n\n\n ],\n [\n 'name' => \"bdate\", // The db column name\n 'label' => \"Birthday\", // Table column heading\n 'type' => \"date\",\n ],\n [\n 'name' => 'image', // The db column name\n 'label' => \"Profile image\", // Table column heading\n 'type' => 'image',\n 'prefix'=>'uploads/'\n ],\n ]);\n\n\n $this->crud->addFields([\n [\n 'name' => 'title',\n 'label' => 'Title',\n 'type' => 'text'\n ],\n [\n 'name' => 'name',\n 'label' => 'Name',\n 'type' => 'text'\n ],\n [\n 'name' => 'email',\n 'label' => 'Email Address',\n 'type' => 'email'\n ],\n [\n 'name' => 'des',\n 'label' => 'Description',\n 'type' => 'textarea'\n ],\n [ // date_picker\n 'name' => 'bdate',\n 'type' => 'date',\n 'label' => 'Birthday',\n // optional:\n 'date_picker_options' => [\n 'todayBtn' => 'linked',\n 'format' => 'dd-mm-yyyy',\n 'language' => 'fr'\n ],\n ],\n [\n 'label' => \"Profile Image\",\n 'name' => 'image',\n 'type' => 'upload',\n 'upload' => true,\n ],\n [ // Password\n 'name' => 'password',\n 'label' => 'Password',\n 'type' => 'password'\n ],\n [ // Password\n 'name' => 'password_confirmation',\n 'label' => 'password Confirmation',\n 'type' => 'password'\n ],\n [\n 'name' => 'isActive',\n 'label' => \"Active\",\n 'type' => 'select2_from_array',\n 'options' => [1 => 'Active', 0 => 'not Active'],\n 'allows_null' => false,\n 'default' => 1,\n ],\n [\n 'name' => 'is_admin',\n 'label' => \"Admin\",\n 'type' => 'select2_from_array',\n 'options' => [0 => 'User',1 => 'Admin'],\n 'allows_null' => false,\n 'default' => 0,\n ]\n ]);\n $this->crud->enableBulkActions();\n $this->crud->addBulkDeleteButton();\n// $this->crud->enableDetailsRow();\n// $this->crud->allowAccess('details_row');\n $this->crud->allowAccess('show');\n $this->crud->enableExportButtons();\n// $this->crud->allowAccess('clone');\n $this->crud->setRequiredFields(StoreRequest::class, 'create');\n $this->crud->setRequiredFields(UpdateRequest::class, 'edit');\n }", "public function addFields()\n {\n // add field\n $this->addField(new DataObject([\n 'key' => 'css_class',\n 'type' => 'multiselect',\n 'values' => $this->cssClassRowModel->toOptionArray(),\n 'label' => __('CSS Class'),\n ]));\n\n // add save button\n $this->addField(new DataObject([\n 'key' => 'save',\n 'type' => 'note',\n 'label' => ' ',\n 'options' => [\n 'text' => $this->getButtonHtml(\n __('Save'),\n 'window.pageDesignerConfig.setSettings.bind(this)()',\n 'action-primary save-settings'\n ),\n ],\n ]));\n\n return $this;\n }", "private function configure()\n {\n\n $QryStr = \"SELECT SENDER, PORT,HOST, USER_ID,PASSWRD, EMAIL FROM SYSSETTINGS\";\n try {\n $stmt = $this->dbh->dbConn->prepare($QryStr);\n $stmt->execute();\n\n $result = $stmt->fetch(\\PDO::FETCH_OBJ);\n\n $this->sender = $result->sender;\n $this->port = $result->port;\n $this->host = $result->host;\n $this->user_id = $result->user_id;\n $this->password = $result->password;\n $this->sender_mail = $result->email;\n } catch (\\PDOException $ex) {\n $ex->getMessage();\n }\n }", "protected function setupShowOperation()\n {\n CRUD::addColumn(['name' => 'text_one', 'label' => 'Текст первый.']); // columns\n CRUD::addColumn(['name' => 'image_one', 'type' => 'image', 'label' => 'Изображение первое.']); // columns\n CRUD::addColumn(['name' => 'text_two', 'label' => 'Текст второй.']); // columns\n CRUD::addColumn(['name' => 'image_two', 'type' => 'image', 'label' => 'Изображение второе.']); // columns\n CRUD::addColumn(['name' => 'text_third', 'label' => 'Текст третий.']); // columns\n CRUD::addColumn(['name' => 'image_third', 'type' => 'image', 'label' => 'Изображение третье.']); // columns\n CRUD::addColumn(['name' => 'image_four', 'type' => 'image', 'label' => 'Изображение четвертое.']); // columns\n\n /**\n * Columns can be defined using the fluent syntax or array syntax:\n * - CRUD::column('price')->type('number');\n * - CRUD::addColumn(['name' => 'price', 'type' => 'number']);\n */\n }", "protected function setupListOperation()\n {\n // $this->crud->setFromDb();\n $name = $this->textCol('name', ' Name');\n $email = $this->emailCol('email', 'Email');\n CRUD::addColumns([$name, $email]);\n }", "protected function setupListOperation()\n {\n\n if (auth()->user()->can('manage_all_student') == false) {\n\n $this->crud->addClause('whereHas', 'school', function ($query) {\n $query->whereHas('manager_user', function ($query) {\n $query->where('id', '=', auth()->user()->id);\n });\n });\n }\n\n CRUD::column('candidate_name');\n CRUD::column('father_name');\n CRUD::column('cnic');\n\n $this->crud->addColumns([\n [\n 'label' => 'School Name',\n 'name' => 'school.name', // relation.column_name\n ],\n [\n 'label' => 'School Contact',\n 'name' => 'school.phone', // relation.column_name\n ],\n [\n 'label' => 'School Code',\n 'name' => 'school.school_code', // relation.column_name\n ],\n [\n 'name' => 'image', // The db column name\n 'label' => \"Student image\", // Table column heading\n 'type' => 'image',\n 'height' => '150px',\n 'width' => '150px',\n ]\n ]);\n\n\n /**\n * Columns can be defined using the fluent syntax or array syntax:\n * - CRUD::column('price')->type('number');\n * - CRUD::addColumn(['name' => 'price', 'type' => 'number']);\n */\n }", "public function setSettings() {\n $this->setName(lang('Add New Comment'));\n $this->setDescription(lang('Add new comment to project object.'));\n $this->setTemplateName('incoming_mail_add_comment_action');\n $this->setCanUse(true);\n $this->setModuleName(COMMENTS_FRAMEWORK);\n }", "public function setup()\n\t{\n\t\t$this->xPanel->setModel('App\\Models\\HomeSection');\n\t\t$this->xPanel->setRoute(config('larapen.admin.route_prefix', 'admin') . '/homepage');\n\t\t$this->xPanel->setEntityNameStrings(trans('admin::messages.homepage section'), trans('admin::messages.homepage sections'));\n\t\t$this->xPanel->denyAccess(['create', 'delete']);\n\t\t$this->xPanel->allowAccess(['reorder']);\n\t\t$this->xPanel->enableReorder('name', 1);\n\t\tif (!request()->input('order')) {\n\t\t\t$this->xPanel->orderBy('lft', 'ASC');\n\t\t}\n\t\t\n\t\t$this->xPanel->addButtonFromModelFunction('top', 'reset_homepage_reorder', 'resetHomepageReOrderBtn', 'end');\n\t\t$this->xPanel->addButtonFromModelFunction('top', 'reset_homepage_settings', 'resetHomepageSettingsBtn', 'end');\n\t\t$this->xPanel->removeButton('update');\n\t\t$this->xPanel->addButtonFromModelFunction('line', 'configure', 'configureBtn', 'beginning');\n\t\t\n\t\t/*\n\t\t|--------------------------------------------------------------------------\n\t\t| COLUMNS AND FIELDS\n\t\t|--------------------------------------------------------------------------\n\t\t*/\n\t\t// COLUMNS\n\t\t$this->xPanel->addColumn([\n\t\t\t'name' => 'name',\n\t\t\t'label' => trans(\"admin::messages.Section\"),\n\t\t\t'type' => 'model_function',\n\t\t\t'function_name' => 'getNameHtml',\n\t\t]);\n\t\t$this->xPanel->addColumn([\n\t\t\t'name' => 'active',\n\t\t\t'label' => trans(\"admin::messages.Active\"),\n\t\t\t'type' => 'model_function',\n\t\t\t'function_name' => 'getActiveHtml',\n\t\t]);\n\t\t\n\t\t// FIELDS\n\t\t// ...\n\t}", "protected function setupUpdateOperation()\n {\n CRUD::setValidation(StudentUpdateRequest::class);\n CRUD::addField([\n 'name' => 'candidate_name',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n CRUD::addField([\n 'name' => 'father_name',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n CRUD::addField([\n 'name' => 'phone',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n CRUD::addField([\n 'name' => 'address',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n CRUD::addField([\n 'name' => 'cnic',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n CRUD::addField([\n 'label' => 'School Roll Number',\n 'name' => 'school_rollnumber',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n CRUD::addField([\n 'name' => 'religion',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n $this->crud->addField([ // select_from_array\n 'name' => 'gender',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n 'label' => \"Gender\",\n 'type' => 'select_from_array',\n 'options' => ['male' => 'Male', 'female' => 'Female'],\n 'allows_null' => false,\n 'default' => 'male',\n // 'allows_multiple' => true, // OPTIONAL; needs you to cast this to array in your model;\n ]);\n $this->crud->addField(\n [ // date_picker\n 'name' => 'date_of_birth',\n\n 'type' => 'date_picker',\n 'label' => 'Date',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n // optional:\n 'date_picker_options' => [\n 'todayBtn' => 'linked',\n 'format' => 'dd-mm-yyyy',\n 'language' => 'en'\n ],\n ],\n );\n $this->crud->addField([\n 'label' => \"Student Image\",\n 'name' => \"image\",\n 'type' => 'image',\n 'crop' => true, // set to true to allow cropping, false to disable\n 'aspect_ratio' => 0, // ommit or set to 0 to allow any aspect ratio\n // 'disk' => 's3_bucket', // in case you need to show images from a different disk\n // 'prefix' => 'uploads/images/profile_pictures/' // in case your db value is only the file name (no path), you can use this to prepend your path to the image src (in HTML), before it's shown to the user;\n ]);\n if (auth()->user()->can('manage_all_student')) {\n $this->crud->addField([\n 'label' => 'School',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n 'type' => 'relationship',\n 'name' => 'school_id', // the db column for the foreign key\n 'entity' => 'school', // the method that defines the relationship in your Model\n 'attribute' => 'name', // foreign key attribute that is shown to user\n 'model' => 'App\\Models\\School',\n\n ]);\n } else {\n $this->crud->addField([\n 'label' => 'School',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n 'type' => 'hidden',\n 'name' => 'school_id', // the db column for the foreign key\n 'value' => auth()->user()->school->id,\n\n ]);\n }\n }", "public function SetPanelSettings()\n\t{\n\t\t$this->productClass = GetClass('ISC_PRODUCT');\n\t\t$this->db = $GLOBALS['ISC_CLASS_DB'];\n\n\t\tif(!empty($_SESSION['ProductErrorMessage'])) {\n\t\t\tFlashMessage($_SESSION['ProductErrorMessage'], 'error');\n\t\t}\n\t\t$GLOBALS['ProductDetailFlashMessages'] = GetFlashMessageBoxes();\n\n\t\t$GLOBALS['ProductName'] = isc_html_escape($this->productClass->GetProductName());\n\t\t$GLOBALS['ProductNamedBy'] = $this->productClass->GetProductNamedBy();\n\t\t$GLOBALS['ProductId'] = $this->productClass->GetProductId();\n\t\t$GLOBALS['ProductPrice'] = '';\n\t\t\n\t\t$funnyDesc = $this->productClass->GetFunnyDesc();\n\t\tif(!empty($funnyDesc)) {\n\t\t\t$GLOBALS['FunnyDescription'] = $funnyDesc;\n\t\t} else {\n\t\t\t$GLOBALS['ShowFunnyDescription'] = \"display:none;\";\n\t\t}\n\n\t\tif(isset($_SESSION['ProductErrorMessage']) && $_SESSION['ProductErrorMessage']!='') {\n\t\t\t$GLOBALS['HideProductErrorMessage']='';\n\t\t\t$GLOBALS['ProductErrorMessage']=$_SESSION['ProductErrorMessage'];\n\t\t\tunset($_SESSION['ProductErrorMessage']);\n\t\t}\n\n\t\t$product = $this->productClass->getProduct();\n\t\t\n\t\t// We've got a lot to do on this page, so to make it easier to follow,\n\t\t// everything is broken down in to smaller functions.\n\t\t$this->SetProductImages();\n\t\t$this->SetPricingDetails();\n\n\t\tif (GetConfig('ShowAddThisLink')) {\n\t\t\t$GLOBALS['AddThisLink'] = $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet('AddThisLink');\n\t\t}\n\t}", "public function setup()\n {\n CRUD::setModel(Plugin::class);\n CRUD::setRoute(config('backpack.base.route_prefix') . '/plugin');\n CRUD::setEntityNameStrings('plugin', 'plugins');\n $this->crud->denyAccess('update');\n }", "protected function setupListOperation()\n {\n CRUD::setFromDb(); // columns\n\n /**\n * Columns can be defined using the fluent syntax or array syntax:\n * - CRUD::column('price')->type('number');\n * - CRUD::addColumn(['name' => 'price', 'type' => 'number']);\n */\n }", "public function configure()\n {\n unset(\n $this['root_id'],\n $this['lft'],\n $this['rgt'],\n $this['level'],\n $this['slug'],\n $this['created_at'],\n $this['updated_at'],\n $this['created_by'],\n $this['updated_by']\n );\n $this->validatorSchema['question'] = new sfValidatorStringQuestion();\n $this->widgetSchema->setFormFormatterName('list');\n }", "protected function setupListOperation()\n {\n $this->crud->addColumn([\n 'name' => 'name',\n 'type' => 'test',\n 'label' => 'Название',\n ]);\n $this->crud->addColumn([\n 'name' => 'category_id',\n 'type' => 'select',\n 'label' => 'Категория',\n 'entity' => 'category',\n 'attribute' => \"name\",\n 'model' => Category::class,\n ]);\n }", "protected function setupCreateOperation()\n {\n CRUD::setValidation(StudentRequest::class);\n CRUD::addField([\n 'name' => 'candidate_name',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n CRUD::addField([\n 'name' => 'father_name',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n CRUD::addField([\n 'name' => 'phone',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n CRUD::addField([\n 'name' => 'address',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n CRUD::addField([\n 'name' => 'cnic',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n CRUD::addField([\n 'label' => 'School Roll Number',\n 'name' => 'school_rollnumber',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n CRUD::addField([\n 'name' => 'religion',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n ]);\n $this->crud->addField([ // select_from_array\n 'name' => 'gender',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n 'label' => \"Gender\",\n 'type' => 'select_from_array',\n 'options' => ['male' => 'Male', 'female' => 'Female'],\n 'allows_null' => false,\n 'default' => 'male',\n // 'allows_multiple' => true, // OPTIONAL; needs you to cast this to array in your model;\n ]);\n $this->crud->addField(\n [ // date_picker\n 'name' => 'date_of_birth',\n 'type' => 'date_picker',\n 'label' => 'Date',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n // optional:\n 'date_picker_options' => [\n 'todayBtn' => 'linked',\n 'format' => 'dd-mm-yyyy',\n 'language' => 'en'\n ],\n ],\n );\n if (auth()->user()->can('manage_all_student')) {\n $this->crud->addField([\n 'label' => 'School',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n 'type' => 'relationship',\n 'name' => 'school_id', // the db column for the foreign key\n 'entity' => 'school', // the method that defines the relationship in your Model\n 'attribute' => 'name', // foreign key attribute that is shown to user\n 'model' => 'App\\Models\\School',\n\n ]);\n } else {\n $this->crud->addField([\n 'label' => 'School',\n 'wrapper' => ['class' => 'form-group col-md-6'],\n 'type' => 'hidden',\n 'name' => 'school_id', // the db column for the foreign key\n 'value' => auth()->user()->school->id,\n\n ]);\n }\n\n $this->crud->addField([\n 'label' => \"Student Image\",\n 'name' => \"image\",\n 'type' => 'image',\n 'crop' => true, // set to true to allow cropping, false to disable\n 'aspect_ratio' => 0, // ommit or set to 0 to allow any aspect ratio\n // 'disk' => 's3_bucket', // in case you need to show images from a different disk\n // 'prefix' => 'uploads/images/profile_pictures/' // in case your db value is only the file name (no path), you can use this to prepend your path to the image src (in HTML), before it's shown to the user;\n ]);\n $this->crud->addFields(static::getFieldsArrayForLoginTab());\n\n\n /**\n * Fields can be defined using the fluent syntax or array syntax:\n * - CRUD::field('price')->type('number');\n * - CRUD::addField(['name' => 'price', 'type' => 'number']));\n */\n }", "protected function setupCreateOperation()\n {\n CRUD::setValidation(StoreRequest::class);\n\n /**\n * Fields can be defined using the fluent syntax or array syntax:\n * - CRUD::field('price')->type('number');\n * - CRUD::addField(['name' => 'price', 'type' => 'number']));\n */\n }", "public function _config_para_view() {\n $this->controller->set('ControleAcessoConfig', $this->config);\n }", "protected function configure()\n {\n $this->setName(static::NAME);\n $this->setDescription(static::DESCRIPTION);\n foreach (static::ARGUMENTS as $argment) {\n $this->addArgument(...$argment);\n }\n foreach (static::OPTIONS as $option) {\n $this->addOption(...$option);\n }\n $this->setHelperSet(new HelperSet([new QuestionHelper()]));\n }", "private function configure() {\n\t\t$statement = $this -> database -> query(\"SELECT * FROM worlds\");\n\t\twhile ($worldData = $statement -> fetch(PDO::FETCH_ASSOC)) {\n\t\t\t$this -> worlds[$worldData['world']] = new World($worldData);\n\t\t}\n\t\t$statement = $this -> database -> query(\"SELECT * FROM server.configs\");\n\t\twhile ($configData = $statement -> fetch(PDO::FETCH_ASSOC)) {\n\t\t\t$this -> configs[$configData['key_']] = new Config($configData['key_'], $configData['value'], $configData['dataType']);\n\t\t}\n\t}" ]
[ "0.63615", "0.6317148", "0.63146126", "0.6205532", "0.6194056", "0.60752773", "0.60741657", "0.6059413", "0.60487264", "0.60423326", "0.5947626", "0.58963376", "0.58702195", "0.586876", "0.5861068", "0.58127517", "0.5789164", "0.5742342", "0.57364506", "0.57312375", "0.5689492", "0.56291914", "0.56221265", "0.5618453", "0.561792", "0.5592825", "0.5573737", "0.556876", "0.55537325", "0.55530345", "0.5551487", "0.5535232", "0.54830563", "0.54702437", "0.54687536", "0.5456084", "0.5429345", "0.5425316", "0.54200625", "0.5409668", "0.5409668", "0.5406407", "0.5403821", "0.5402003", "0.5379188", "0.5371787", "0.53632677", "0.53513825", "0.5351331", "0.5338601", "0.53369534", "0.53317577", "0.532265", "0.5319502", "0.53190464", "0.53178746", "0.5316391", "0.5283423", "0.5270607", "0.52548003", "0.52468574", "0.5246195", "0.523719", "0.52101684", "0.5208788", "0.5204768", "0.5202241", "0.5201891", "0.519283", "0.51901513", "0.5187997", "0.5174884", "0.5170088", "0.5168972", "0.5162898", "0.5154488", "0.5139557", "0.5134092", "0.51190746", "0.5105246", "0.5102282", "0.51007164", "0.5095916", "0.5092056", "0.50836605", "0.50836056", "0.5078062", "0.5073634", "0.5068467", "0.5042877", "0.5034029", "0.50298804", "0.50262153", "0.5023347", "0.50178003", "0.50042146", "0.49985278", "0.49914667", "0.4981413", "0.4981336", "0.49777025" ]
0.0
-1
Define what happens when the List operation is loaded.
protected function setupListOperation() { if (About::count() > 0) { $this->crud->denyAccess((array)'create'); } // CRUD::addColumn(['name' => 'text_one', 'label' => 'Текст первый']); // columns CRUD::addColumn(['name' => 'image_one', 'type' => 'image', 'label' => 'Изображение первое']); // columns // CRUD::addColumn(['name' => 'text_two', 'label' => 'Текст второй']); // columns CRUD::addColumn(['name' => 'image_two', 'type' => 'image', 'label' => 'Изображение второе']); // columns CRUD::addColumn(['name' => 'image_third', 'type' => 'image', 'label' => 'Изображение второе']); // columns CRUD::addColumn(['name' => 'image_four', 'type' => 'image', 'label' => 'Изображение второе']); // columns /** * Columns can be defined using the fluent syntax or array syntax: * - CRUD::column('price')->type('number'); * - CRUD::addColumn(['name' => 'price', 'type' => 'number']); */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function load()\n\t{\n\t\t$this->list_table->load();\n\t}", "protected function setupListOperation()\n {\n $this->crud->setFromDb();\n }", "protected function setupListOperation()\n {\n $this->crud->setFromDb();\n }", "function _elggx_lists_init() {\n\telgg_register_plugin_hook_handler('elggx_lists:can', 'all', '_elggx_list_perms_handler');\n\t\n\telgg_register_plugin_hook_handler('unit_test', 'system', '_elggx_lists_test');\n\n\tforeach (array('add_item', 'remove_item', 'rearrange_items') as $action) {\n\t\telgg_register_action(\n\t\t\t\"elggx_lists/$action\",\n\t\t\tdirname(__FILE__) . \"/actions/elggx_lists/$action.php\"\n\t\t);\n\t}\n}", "public function LoadList()\n {\n $this->SetCulture();\n $this->subscriptions_list = $this->GetSubscriptionsList();\n }", "protected abstract function fetchLists();", "public function getListLoad(): string {\n return $this->listLoad;\n }", "protected function setupListOperation()\n {\n //CRUD::setFromDb(); // columns\n\n /**\n * Columns can be defined using the fluent syntax or array syntax:\n * - CRUD::column('price')->type('number');\n * - CRUD::addColumn(['name' => 'price', 'type' => 'number']);\n */\n $this->crud->addColumn('nama_penyakit');\n //$this->crud->allowAccess('details_row');\n //$this->crud->enableDetailsRow();\n\n\n }", "public function lister()\r\n {\r\n }", "public function fetchList();", "protected function setupListOperation()\n {\n CRUD::column('key')->label('ID key')->type('text');\n CRUD::column('name')->label('Nom')->type('text')->limit(200);\n }", "public function load()\n\t{\n\t\tif (!$this->cache->contains($this->cache_id)) {\n\t\t\t$this->generateCacheList();\n\t\t}\n\n\t\t$this->list = $this->cache->fetch($this->cache_id);\n\n\t\t$this->num = count($this->list);\n\t\t$this->unique = (boolean)($this->num == 1);\n\t}", "public function handel()\n {\n $this->run($this->listKey);\n }", "protected function setupListOperation()\n {\n CRUD::setFromDb(); // columns\n\n /**\n * Columns can be defined using the fluent syntax or array syntax:\n * - CRUD::column('price')->type('number');\n * - CRUD::addColumn(['name' => 'price', 'type' => 'number']);\n */\n }", "public function listView(): void\n {\n $this->_data = $this->_entity->fetch();\n if (!$this->special) {\n $newData = $this->_builder->submitCreate();\n if ($newData) {\n array_push($this->_data, $newData);\n }\n }\n require VF . \"{$this->route}/list.php\";\n require VF . \"{$this->route}/create.php\";\n }", "public function listsList()\n {\n\tthrow new Exception('Not implemented');\n }", "public function listAction() {}", "protected function setupListOperation()\n {\n // $this->crud->setFromDb();\n $name = $this->textCol('name', ' Name');\n $email = $this->emailCol('email', 'Email');\n CRUD::addColumns([$name, $email]);\n }", "function SetupListOptions() {\r\n\t\tglobal $Security, $Language;\r\n\r\n\t\t// \"view\"\r\n\t\t$item = &$this->ListOptions->Add(\"view\");\r\n\t\t$item->CssStyle = \"white-spaceJAMES: nowrapJAMES;\";\r\n\t\t$item->Visible = $Security->CanView();\r\n\t\t$item->OnLeft = FALSE;\r\n\r\n\t\t// \"edit\"\r\n\t\t$item = &$this->ListOptions->Add(\"edit\");\r\n\t\t$item->CssStyle = \"white-spaceJAMES: nowrapJAMES;\";\r\n\t\t$item->Visible = $Security->CanEdit();\r\n\t\t$item->OnLeft = FALSE;\r\n\r\n\t\t// \"copy\"\r\n\t\t$item = &$this->ListOptions->Add(\"copy\");\r\n\t\t$item->CssStyle = \"white-spaceJAMES: nowrapJAMES;\";\r\n\t\t$item->Visible = $Security->CanAdd();\r\n\t\t$item->OnLeft = FALSE;\r\n\r\n\t\t// \"delete\"\r\n\t\t$item = &$this->ListOptions->Add(\"delete\");\r\n\t\t$item->CssStyle = \"white-spaceJAMES: nowrapJAMES;\";\r\n\t\t$item->Visible = $Security->CanDelete();\r\n\t\t$item->OnLeft = FALSE;\r\n\r\n\t\t// Call ListOptions_Load event\r\n\t\t$this->ListOptions_Load();\r\n\t}", "protected function setupListOperation()\n {\n $this->crud->removeAllButtons();\n $this->crud->disableResponsiveTable();\n CRUD::column('name');\n CRUD::column('cron_expression');\n CRUD::column('grace_time_in_minutes');\n CRUD::column('last_failed_at');\n CRUD::column('last_finished_at');\n// CRUD::column('last_pinged_at');\n CRUD::column('last_skipped_at');\n CRUD::column('last_started_at');\n// CRUD::column('ping_url');\n// CRUD::column('registered_on_oh_dear_at');\n CRUD::column('timezone');\n CRUD::column('type');\n CRUD::column('updated_at');\n\n /**\n * Columns can be defined using the fluent syntax or array syntax:\n * - CRUD::column('price')->type('number');\n * - CRUD::addColumn(['name' => 'price', 'type' => 'number']);\n */\n }", "protected function setupListOperation()\n {\n CRUD::setFromDb();\n\n $this->crud->addButtonFromView('line', 'more_items', 'more.items', 'end');\n }", "public function postLoad() {}", "public function modload()\n\t{\n\t\tmodules::init_module( 'cs_list', self::MOD_VERSION, self::MOD_AUTHOR, 'chanserv', 'default' );\n\t\t// these are standard in module constructors\n\t\t\n\t\tchanserv::add_help( 'cs_list', 'help', &chanserv::$help->CS_HELP_LIST_1, true );\n\t\tchanserv::add_help( 'cs_list', 'help list', &chanserv::$help->CS_HELP_LIST_ALL, true );\n\t\t// add the help\n\t\t\n\t\tchanserv::add_command( 'list', 'cs_list', 'list_command' );\n\t\t// add the list command\n\t}", "protected function actionList() {\r\n /** @var $strType interface_model|class_model */\r\n $strType = $this->getCurObjectClassName();\r\n\r\n if(!is_null($strType)) {\r\n $objArraySectionIterator = new class_array_section_iterator($strType::getObjectCount($this->getSystemid()));\r\n $objArraySectionIterator->setPageNumber((int)($this->getParam(\"pv\") != \"\" ? $this->getParam(\"pv\") : 1));\r\n $objArraySectionIterator->setArraySection($strType::getObjectList($this->getSystemid(), $objArraySectionIterator->calculateStartPos(), $objArraySectionIterator->calculateEndPos()));\r\n\r\n //pass the internal action in order to get a proper paging\r\n $strOriginalAction = $this->getAction();\r\n $this->setAction($this->strOriginalAction);\r\n $strList = $this->renderList($objArraySectionIterator, false, \"list\".$this->getStrCurObjectTypeName());\r\n $this->setAction($strOriginalAction);\r\n return $strList;\r\n }\r\n else\r\n throw new class_exception(\"error loading list current object type not known \", class_exception::$level_ERROR);\r\n }", "public function __construct()\n {\n parent::__construct();\n self::$_listType[true][true] = 'all';\n self::$_listType[true][false] = 'uncommitted';\n self::$_listType[false][true] = 'committed';\n self::$_listType[false][false] = 'all';\n\n $this->_includeUncommittedBlobs = false;\n $this->_includeCommittedBlobs = false;\n }", "public function postLoad() { }", "function SetupListOptions() {\n\t\tglobal $Security, $Language;\n\n\t\t// \"view\"\n\t\t$item = &$this->ListOptions->Add(\"view\");\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->CanView();\n\t\t$item->OnLeft = FALSE;\n\n\t\t// \"edit\"\n\t\t$item = &$this->ListOptions->Add(\"edit\");\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->CanEdit();\n\t\t$item->OnLeft = FALSE;\n\n\t\t// \"copy\"\n\t\t$item = &$this->ListOptions->Add(\"copy\");\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->CanAdd();\n\t\t$item->OnLeft = FALSE;\n\n\t\t// \"delete\"\n\t\t$item = &$this->ListOptions->Add(\"delete\");\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->CanDelete();\n\t\t$item->OnLeft = FALSE;\n\n\t\t// \"userpermission\"\n\t\t$item = &$this->ListOptions->Add(\"userpermission\");\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->IsAdmin();\n\t\t$item->OnLeft = FALSE;\n\n\t\t// Call ListOptions_Load event\n\t\t$this->ListOptions_Load();\n\t}", "function SetupListOptions() {\n\t\tglobal $Security, $tbl_slide;\n\n\t\t// \"view\"\n\t\t$this->ListOptions->Add(\"view\");\n\t\t$item =& $this->ListOptions->Items[\"view\"];\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->IsLoggedIn();\n\t\t$item->OnLeft = FALSE;\n\n\t\t// \"edit\"\n\t\t$this->ListOptions->Add(\"edit\");\n\t\t$item =& $this->ListOptions->Items[\"edit\"];\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->IsLoggedIn();\n\t\t$item->OnLeft = FALSE;\n\n\t\t// \"copy\"\n\t\t$this->ListOptions->Add(\"copy\");\n\t\t$item =& $this->ListOptions->Items[\"copy\"];\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->IsLoggedIn();\n\t\t$item->OnLeft = FALSE;\n\n\t\t// \"delete\"\n\t\t$this->ListOptions->Add(\"delete\");\n\t\t$item =& $this->ListOptions->Items[\"delete\"];\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->IsLoggedIn();\n\t\t$item->OnLeft = FALSE;\n\n\t\t// Call ListOptions_Load event\n\t\t$this->ListOptions_Load();\n\t\tif ($tbl_slide->Export <> \"\" ||\n\t\t\t$tbl_slide->CurrentAction == \"gridadd\" ||\n\t\t\t$tbl_slide->CurrentAction == \"gridedit\")\n\t\t\t$this->ListOptions->HideAllOptions();\n\t}", "protected function setupListOperation()\n {\n // CRUD::setFromDb(); // columns\n\n \n CRUD::column('name');\n CRUD::column('project_id');\n CRUD::column('priority');\n \n /**\n * Columns can be defined using the fluent syntax or array syntax:\n * - CRUD::column('price')->type('number');\n * - CRUD::addColumn(['name' => 'price', 'type' => 'number']); \n */\n \n $this->crud->addButtonFromView('top', 'tasks-reorder', 'tasks-reorder');\n $this->crud->denyAccess('reorder');\n \n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "function SetupListOptions() {\r\n\t\tglobal $Security, $Language;\r\n\r\n\t\t// \"view\"\r\n\t\t$item = &$this->ListOptions->Add(\"view\");\r\n\t\t$item->CssStyle = \"white-spaceJAMES: nowrapJAMES;\";\r\n\t\t$item->Visible = $Security->IsLoggedIn();\r\n\t\t$item->OnLeft = FALSE;\r\n\r\n\t\t// Call ListOptions_Load event\r\n\t\t$this->ListOptions_Load();\r\n\t}", "public function list();", "public function list();", "public function list();", "public function admin_load()\n {\n }", "function SetupListOptions() {\r\n\t\tglobal $Security, $fs_multijoin_v;\r\n\r\n\t\t// Call ListOptions_Load event\r\n\t\t$this->ListOptions_Load();\r\n\t\tif ($fs_multijoin_v->Export <> \"\" ||\r\n\t\t\t$fs_multijoin_v->CurrentAction == \"gridadd\" ||\r\n\t\t\t$fs_multijoin_v->CurrentAction == \"gridedit\")\r\n\t\t\t$this->ListOptions->HideAllOptions();\r\n\t}", "public function listAction() {\n\n\t}", "abstract protected function collectionLoader();", "function _ajax_fetch_custom_list_callback() {\n\n\t$wp_list_table = new TT_Example_List_Table();\n\t$wp_list_table->ajax_response();\n}", "function SetupListOptions() {\r\n\t\tglobal $Security, $Language, $rekeningju;\r\n\r\n\t\t// \"griddelete\"\r\n\t\tif ($rekeningju->AllowAddDeleteRow) {\r\n\t\t\t$item =& $this->ListOptions->Add(\"griddelete\");\r\n\t\t\t$item->CssStyle = \"white-space: nowrap;\";\r\n\t\t\t$item->OnLeft = TRUE;\r\n\t\t\t$item->Visible = FALSE; // Default hidden\r\n\t\t}\r\n\r\n\t\t// Call ListOptions_Load event\r\n\t\t$this->ListOptions_Load();\r\n\t}", "public function getList()\n {\n }", "public function afterLoad() { }", "function listing() {\r\n\r\n }", "public function listInit(){\n\t\t$this->setNameModelController('helpdesks');\n\t\t\n\t\t$this->setReportDownload(true, true, true);\n\t\t\n\t\t$this->setConfig('Lista Mesas de Ayuda', 'id_helpdesk');\n\t\t$this->nameTopics = 'Mesas de Ayuda';\n\t\t$this->nameTopic = 'Mesa de Ayuda';\n\t\t$this->defaultSort = 'is_default_hld';\n\t\t$this->fixSortDesc();\n\t\t\n\t\t$this->autoAddColsNameUserDateRegister();\n\t\t$this->getView()->setForceFit(false);\n\t}", "function SetupListOptions() {\r\n\t\tglobal $Security, $Language;\r\n\r\n\t\t// \"edit\"\r\n\t\t$item = &$this->ListOptions->Add(\"edit\");\r\n\t\t$item->CssStyle = \"white-space: nowrap;\";\r\n\t\t$item->Visible = $Security->CanEdit();\r\n\t\t$item->OnLeft = TRUE;\r\n\r\n\t\t// Call ListOptions_Load event\r\n\t\t$this->ListOptions_Load();\r\n\t}", "public function __construct(){\n get_instance()->load->model('lists');\n }", "function ajaxList() {\r\n $this->rdAuth->noStudentsAllowed();\r\n // Set up the list\r\n $this->setUpAjaxList();\r\n // Process the request for data\r\n $this->AjaxList->asyncGet();\r\n }", "public function listAction()\n {\n // some logic\n }", "protected function postLoad(){\n\t\t\t\n\t\t}", "protected function setupListOperation()\n {\n CRUD::setFromDb(); // columns\n\n $this->crud->setColumns([\n [ \n 'name' => 'id',\n 'label' => 'ID',\n 'type' => 'number',\n\n ],\n [\n 'name' => 'name',\n 'type' => 'text',\n 'label' => 'Name',\n 'orderable' => false,\n ],\n [\n // non-relationship count\n 'name' => 'Customer', // name of relationship method in the model\n 'type' => 'relationship_count', \n 'label' => 'Customers', // Table column heading\n // OPTIONAL\n 'suffix' => '', // to show \"123 tags\" instead of \"123 items\"\n ],\n [\n 'name' => 'type_id',\n 'label' => 'Permission',\n 'type' => 'boolean',\n 'options' => [0 => 'Collector', 1 => 'Administrator']\n ],\n\n ]);\n\n $this->crud->addButtonFromModelFunction('line', 'open_google', 'openReceive', 'beginning');\n }", "public function beforeListModel(){\n\n }", "protected function setupListOperation()\n {\n if (!backpack_user()->hasPermissionTo('Browse plugin')) {\n abort(403);\n }\n\n CRUD::column('name')->label('Plugin')->type('text');\n CRUD::column('version')->label('Version')->type('text');\n $this->crud->addButtonFromModelFunction('line', 'editBtn', 'editBtn', 'beginning');\n $this->crud->addButtonFromModelFunction('line', 'openBtn', 'openBtn', 'beginning');\n }", "public function onRefresh()\n {\n $this->prepareVars();\n return ['#'.$this->getId() => $this->makePartial('list')];\n }", "public abstract function get_lists();", "abstract public function getList();", "function _cmd_list(SGL_Registry $input, SGL_Output $output)\n {\n SGL::logMessage(null, PEAR_LOG_DEBUG);\n $output->template = 'pageList.html';\n $output->mode = 'Browse';\n\n // get all sections\n $aSections = $this->da->getSectionTree();\n $output->results = $aSections;\n\n $output->pageArrayJS = $this->_createNodesArrayJS($aSections);\n $output->addOnLoadEvent(\"switchRowColorOnHover()\");\n }", "public function lists();", "function loadListColor()\n\t{\n\t\tif($this->new_size)\n\t\t\t$this->list_color = 'orange';\n\t}", "public function listdataAction() {\n $this->view->dataList = $this->adm_listdata_serv->getDataList('%');\n }", "protected function _afterLoadCollection()\n {\n $this->getCollection()->walk('afterLoad');\n parent::_afterLoadCollection();\n }", "public function\r\n\tList() {\r\n\t\techo __METHOD__, PHP_EOL;\r\n\t}", "public function defaultLoading() {}", "protected function initList()\n {\n $this->lang = true;\n $this->addRowAction('edit');\n $this->addRowAction('delete');\n\n $this->fields_list = [\n GamificationsReward::$definition['primary'] => [\n 'title' => $this->l('ID'),\n 'width' => 20,\n 'type' => 'text',\n ],\n 'name' => [\n 'title' => $this->l('Reward name'),\n 'type' => 'text',\n ],\n 'reward_type' => [\n 'title' => $this->l('Reward type'),\n 'type' => 'select',\n 'list' => GamificationsReward::getRewardsTranslations(),\n 'filter_key' => 'a!reward_type',\n ],\n ];\n }", "public function init()\r\n\t{\r\n\t\t$dbvos = $this;\r\n\r\n\t\t{CLASS_LIST}\r\n\t\t\t\r\n\t\t$this->_loaded = true;\r\n\t}", "function SetupListOptions() {\n\t\tglobal $Security, $scholarship_package;\n\n\t\t// \"edit\"\n\t\t$this->ListOptions->Add(\"edit\");\n\t\t$item =& $this->ListOptions->Items[\"edit\"];\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->CanEdit();\n\t\t$item->OnLeft = FALSE;\n\n\t\t// \"detail_scholarship_payment\"\n\t\t$this->ListOptions->Add(\"detail_scholarship_payment\");\n\t\t$item =& $this->ListOptions->Items[\"detail_scholarship_payment\"];\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->AllowList('scholarship_payment');\n\t\t$item->OnLeft = FALSE;\n\n\t\t// Call ListOptions_Load event\n\t\t$this->ListOptions_Load();\n\t\tif ($scholarship_package->Export <> \"\" ||\n\t\t\t$scholarship_package->CurrentAction == \"gridadd\" ||\n\t\t\t$scholarship_package->CurrentAction == \"gridedit\")\n\t\t\t$this->ListOptions->HideAllOptions();\n\t}", "protected function setupListOperation()\n {\n // $this->crud->setFromDb();\n $this->crud->addColumns([\n ['name' => 'name', 'type' => 'text', 'label' => 'Name'],\n ['name' => 'description', 'type' => 'text', 'label' => 'Description'],\n ['name' => 'location' , 'type' => 'text' , 'label' => 'Location'],\n ['name' => 'date' , 'type' => 'date' , 'label' => 'Date'],\n [\n 'label' => \"Image\",\n 'name' => \"image\",\n 'type' => 'image',\n 'upload' => true,\n 'crop' => false,\n 'aspect_ratio' => 0,\n ],\n [ // Select\n 'label' => \"Instructor\",\n 'type' => 'select',\n 'name' => 'user_id', // the db column for the foreign key\n 'entity' => 'user', // the method that defines the relationship in your Model\n 'attribute' => 'name', // foreign key attribute that is shown to user\n ]\n ]);\n // $this->crud->addButton();\n $this->crud->filters();\n }", "public function actionList() {\n $this->_getList();\n }", "public function load()\n {\n ObserverHandler::addMHook('init_view_registered_engines', $this->getName(), 'init_view_registered_engines');\n ObserverHandler::addMHook('result_search', $this->getName(), 'result_search');\n }", "function my_list()\n\t{\n\t\t$data = filter_forwarded_data($this);\n\t\t$data['list'] = $this->_bid->my_list();\n\t\t\n\t\t$this->load->view('bids/my_list', $data);\n\t}", "final public function load() {\n $this->childLoad();\n \\add_action('admin_menu', [$this, 'addAdminMenuEntries']);\n }", "private function loadItems()\n {\n if ($this->items === null) {\n $this->items = $this->storage->load();\n }\n }", "function listContent()\n {\n }", "function SetupListOptions() {\n\t\tglobal $Security, $t_tinbai_mainsite;\n\n\t\t// \"view\"\n\t\t$this->ListOptions->Add(\"view\");\n\t\t$item =& $this->ListOptions->Items[\"view\"];\n\t\t$item->CssStyle = \"white-space: nowrap;width:15px\";\n\t\t$item->Visible = $Security->CanView();\n\t\t$item->OnLeft = TRUE;\n\n\t\t// \"edit\"\n\t\t$this->ListOptions->Add(\"edit\");\n\t\t$item =& $this->ListOptions->Items[\"edit\"];\n\t\t$item->CssStyle = \"white-space: nowrap;width:15px\";\n\t\t$item->Visible = $Security->CanEdit();\n\t\t$item->OnLeft = TRUE;\n\n\t\t// \"checkbox\"\n\t\t$this->ListOptions->Add(\"checkbox\");\n\t\t$item =& $this->ListOptions->Items[\"checkbox\"];\n\t\t$item->CssStyle = \"white-space: nowrap;width:15px\";\n\t\t$item->Visible = ($Security->CanDelete() || $Security->CanEdit());\n\t\t$item->OnLeft = TRUE;\n\t\t$item->Header = \"<input type=\\\"checkbox\\\" name=\\\"key\\\" id=\\\"key\\\" class=\\\"phpmaker\\\" onclick=\\\"t_tinbai_mainsite_list.SelectAllKey(this);\\\">\";\n\t\t$this->ListOptions->MoveItem(\"checkbox\", 0); // Move to first column\n\n\t\t// Call ListOptions_Load event\n\t\t$this->ListOptions_Load();\n\t\tif ($t_tinbai_mainsite->Export <> \"\" ||\n\t\t\t$t_tinbai_mainsite->CurrentAction == \"gridadd\" ||\n\t\t\t$t_tinbai_mainsite->CurrentAction == \"gridedit\")\n\t\t\t$this->ListOptions->HideAllOptions();\n\t}", "function wp_ajax_fetch_list()\n {\n }", "public function findAllLoaded() {}", "protected function setupListOperation()\n {\n $this->crud->addColumns([\n [\n 'name' => 'name',\n 'label' => 'Название',\n ],\n [\n 'name' => 'description',\n 'label' => 'Описание',\n\n ],\n [\n 'name' => 'price',\n 'label' => 'Цена',\n ],\n [\n 'name' => 'time_start',\n 'label' => 'Дата начало',\n 'type' => \"date\",\n ],\n [\n 'name' => 'time_finish',\n 'label' => 'Дата финиша',\n 'type' => \"date\",\n ],\n [\n 'name' => 'car_id',\n 'label' => 'Автомобиль',\n 'type' => 'select',\n 'entity' => 'car',\n 'attribute' => 'register_id',\n 'model' => 'App\\Models\\Car',\n ],\n [\n 'name' => 'employee_id',\n 'label' => 'Сотрудник',\n 'type' => 'select',\n 'entity' => 'employee',\n 'attribute' => 'full_name',\n 'model' => 'App\\Models\\Employee',\n ],\n ]);\n }", "public function onRefreshList()\n {\n $this->prepareComponent();\n\n return $this->refreshList();\n }", "function LoadDynamicList($listname,&$rows)\r\n {\r\n return false;\r\n }", "abstract public function loadAll();", "public function load(): void\n {\n $list = $this->localCache->getObject($this->key);\n $value = $this->resultExtractor->extractObjectFromList($list, $this->targetType);\n $this->resultObject->setValue($this->property, $value);\n }", "function rest_api_loaded()\n {\n }", "public function testFetchList() {\n\t\t$jsonpad = parent::_getJsonpadInstance();\n\t\t\n\t\t// Create a list\n\t\t$listData = parent::_createTestListData(false, false);\n\t\t$list = $jsonpad->createList($listData[\"name\"]);\n\t\t\n\t\t// Fetch the list\n\t\t$listCopy = $jsonpad->fetchList($listData[\"name\"]);\n\t\t$this->assertSame($list->getName(), $listCopy->getName());\n\t\t\n\t\t// Delete the list\n\t\t$listCopy->delete();\n\t}", "protected function setupListOperation()\n {\n /*$this->crud->setFromDb();*/\n $this->crud->addColumn(['name' => 'name', 'type' => 'text', 'label' => 'Name']);\n $this->crud->addColumn(['name' => 'sku', 'type' => 'text', 'label' => 'SKU / Product Unique ID']);\n $this->crud->addColumn(['name' => 'price', 'type' => 'text', 'label' => 'Price / €']);\n $this->crud->addColumn(['name' => 'status', 'type' => 'text', 'label' => 'Status']);\n $this->crud->addColumn(['name' => 'user.name', 'type' => 'text', 'label' => 'User Name']);\n $this->crud->addColumn(['name' => 'category.name', 'type' => 'text', 'label' => 'Category']);\n $this->crud->addColumn(['name' => 'publish_date', 'type' => 'text', 'label' => 'Publish Date']);\n $this->crud->addColumn(['name' => 'blocking_date', 'type' => 'text', 'label' => 'Blocking Date']);\n $this->crud->addColumn(['name' => 'created_at', 'type' => 'text', 'label' => 'Created Om']);\n $this->crud->addColumn(['name' => 'updated_at', 'type' => 'text', 'label' => 'Updated On']);\n }", "public function listdataSDMAction() {\n $this->view->dataList = $this->adm_listdata_serv->getDataList('SDM');\n }", "protected function is_list_page() {\n\t\treturn false;\n\t}", "protected function childLoad() {}", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}", "public function main_load() {\n\t\tadd_action( 'admin_init', array( $this, 'custom_admin_init_action' ) );\n\t\tadd_action( 'add_meta_boxes', array( $this, 'add_meta_boxes_action' ) );\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'custom_admin_enqueue_scripts' ) );\n\t\tadd_action( 'pre_get_posts', array( $this, 'custom_pre_get_posts_action' ) );\n\t\tadd_action( 'restrict_manage_posts', array( $this, 'custom_restrict_manage_posts_action' ) );\n\t\tadd_filter( 'posts_where', array( $this, 'custom_posts_where_filter' ), 10, 2 );\n\t}", "protected function PostLoadHook()\n {\n parent::PostLoadHook();\n $oListFilterItemType = $this->GetFieldPkgShopListfilterItemType();\n if ($oListFilterItemType) {\n $this->sVariantTypeIdentifier = $this->fieldVariantIdentifier;\n }\n }", "public function init()\n {\n extract($this->data);\n\n //Set default values to items array\n $this->data['items'] = $this->fillItemsData($items);\n\n //Endpoint for async fetching\n if(isset($endpoint)) {\n $this->data['attributeList']['data-endpoint'] = $endpoint; \n }\n\n //Add unlist class\n $this->data['classList'][] = \"unlist\"; \n\n //Direction of nav\n if($direction) {\n $this->data['classList'][] = $this->getBaseClass() . \"--\" . $direction; \n }\n\n //Attributes\n $this->data['attributeList']['aria-orientation'] = $direction; \n }", "protected function setupListOperation()\n {\n $this->crud->addColumn([\n 'name' => 'name',\n 'type' => 'test',\n 'label' => 'Название',\n ]);\n $this->crud->addColumn([\n 'name' => 'category_id',\n 'type' => 'select',\n 'label' => 'Категория',\n 'entity' => 'category',\n 'attribute' => \"name\",\n 'model' => Category::class,\n ]);\n }", "public function preRetrieve();", "function edit_event_load() {\n\n\t\tadd_filter( 'request', array( $this, 'sort_events' ) );\n\t}", "public function listing();", "public function ajaxProcessRenderList()\n {\n $tpl = $this->createTemplate('shortcodelist.tpl');\n // get list module installed by hook position\n $list_modules = array();\n\n\n if (Tools::getValue('reloadModule')) {\n # ReLoad : write to config\n $list_modules = apPageHelper::getModules();\n\n $ap_cache_module = apPageHelper::correctEnCodeData(Tools::jsonEncode($list_modules));\n Configuration::updateValue('AP_CACHE_MODULE', $ap_cache_module);\n } else {\n $ap_cache_module = Configuration::get('AP_CACHE_MODULE');\n if ($ap_cache_module === false || $ap_cache_module === '') {\n # First Time : write to config\n $list_modules = apPageHelper::getModules();\n\n $ap_cache_module = apPageHelper::correctEnCodeData(Tools::jsonEncode($list_modules));\n Configuration::updateValue('AP_CACHE_MODULE', $ap_cache_module);\n } else {\n # Second Time : read from config\n $list_modules = Tools::jsonDecode(apPageHelper::correctDeCodeData($ap_cache_module), true);\n }\n }\n\n // Get list author\n $author = array();\n foreach ($list_modules as $mi) {\n $str = Tools::ucwords(Tools::strtolower($mi['author'] ? $mi['author'] : ''));\n if (!in_array($str, $author) && $str) {\n array_push($author, $str);\n }\n }\n //Get list of image or shortcodeFile\n $tpl->assign(array(\n 'author' => $author,\n 'listModule' => $list_modules,\n 'shortCodeList' => ApShortCodeBase::getShortCodeInfos()\n ));\n $array = array('hasError' => false, 'result' => $tpl->fetch());\n die(Tools::jsonEncode($array));\n }", "function privAddList($p_filedescr_list, &$p_result_list, &$p_options)\n {\n }", "public function afterLoad(){\n $this->getType()->afterLoadProcess($this);\n return parent::afterLoad();\n }", "function admin_load() {\n\n\t}", "protected function emitLoadMessages() {}", "function privList(&$p_list)\n {\n }", "protected function performActionList()\n\t{\n\t\t// copy order\n\t\t$this->performActionCopyOrder();\n\n\t\t// some other ...\n\t}" ]
[ "0.67031527", "0.66282344", "0.66282344", "0.6516725", "0.6330709", "0.62441796", "0.6166992", "0.6155439", "0.61514795", "0.61483693", "0.6111905", "0.61093676", "0.61043656", "0.60734457", "0.6062088", "0.6045679", "0.6043487", "0.6012025", "0.60086644", "0.6000302", "0.5987628", "0.5987073", "0.5964675", "0.5943295", "0.5942284", "0.5942251", "0.5937034", "0.5935082", "0.5934903", "0.5909318", "0.5897462", "0.5871198", "0.5871198", "0.5871198", "0.5869903", "0.58690566", "0.586706", "0.58666575", "0.5859988", "0.5852899", "0.5851544", "0.5819442", "0.5814907", "0.5812742", "0.57927364", "0.5787733", "0.5785532", "0.5780526", "0.5767673", "0.5762206", "0.5760194", "0.5759182", "0.5758911", "0.5752483", "0.575202", "0.574854", "0.5744024", "0.57428646", "0.5742509", "0.57404894", "0.5728285", "0.5728045", "0.57026887", "0.5689323", "0.5684413", "0.5675492", "0.5664379", "0.56531495", "0.5652262", "0.56450427", "0.56439143", "0.5636368", "0.5587665", "0.55736643", "0.5570903", "0.55708045", "0.5570257", "0.5568572", "0.5564058", "0.5562696", "0.55582917", "0.5555725", "0.5551239", "0.554726", "0.55442005", "0.55369633", "0.5533956", "0.5533104", "0.5525", "0.5511589", "0.5511389", "0.5507251", "0.55071265", "0.55032", "0.549659", "0.5493371", "0.54858106", "0.5482047", "0.54807377", "0.5480524", "0.54701704" ]
0.0
-1
Define what happens when the List operation is loaded.
protected function setupShowOperation() { CRUD::addColumn(['name' => 'text_one', 'label' => 'Текст первый.']); // columns CRUD::addColumn(['name' => 'image_one', 'type' => 'image', 'label' => 'Изображение первое.']); // columns CRUD::addColumn(['name' => 'text_two', 'label' => 'Текст второй.']); // columns CRUD::addColumn(['name' => 'image_two', 'type' => 'image', 'label' => 'Изображение второе.']); // columns CRUD::addColumn(['name' => 'text_third', 'label' => 'Текст третий.']); // columns CRUD::addColumn(['name' => 'image_third', 'type' => 'image', 'label' => 'Изображение третье.']); // columns CRUD::addColumn(['name' => 'image_four', 'type' => 'image', 'label' => 'Изображение четвертое.']); // columns /** * Columns can be defined using the fluent syntax or array syntax: * - CRUD::column('price')->type('number'); * - CRUD::addColumn(['name' => 'price', 'type' => 'number']); */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function load()\n\t{\n\t\t$this->list_table->load();\n\t}", "protected function setupListOperation()\n {\n $this->crud->setFromDb();\n }", "protected function setupListOperation()\n {\n $this->crud->setFromDb();\n }", "function _elggx_lists_init() {\n\telgg_register_plugin_hook_handler('elggx_lists:can', 'all', '_elggx_list_perms_handler');\n\t\n\telgg_register_plugin_hook_handler('unit_test', 'system', '_elggx_lists_test');\n\n\tforeach (array('add_item', 'remove_item', 'rearrange_items') as $action) {\n\t\telgg_register_action(\n\t\t\t\"elggx_lists/$action\",\n\t\t\tdirname(__FILE__) . \"/actions/elggx_lists/$action.php\"\n\t\t);\n\t}\n}", "public function LoadList()\n {\n $this->SetCulture();\n $this->subscriptions_list = $this->GetSubscriptionsList();\n }", "protected abstract function fetchLists();", "public function getListLoad(): string {\n return $this->listLoad;\n }", "protected function setupListOperation()\n {\n //CRUD::setFromDb(); // columns\n\n /**\n * Columns can be defined using the fluent syntax or array syntax:\n * - CRUD::column('price')->type('number');\n * - CRUD::addColumn(['name' => 'price', 'type' => 'number']);\n */\n $this->crud->addColumn('nama_penyakit');\n //$this->crud->allowAccess('details_row');\n //$this->crud->enableDetailsRow();\n\n\n }", "public function lister()\r\n {\r\n }", "public function fetchList();", "protected function setupListOperation()\n {\n CRUD::column('key')->label('ID key')->type('text');\n CRUD::column('name')->label('Nom')->type('text')->limit(200);\n }", "public function load()\n\t{\n\t\tif (!$this->cache->contains($this->cache_id)) {\n\t\t\t$this->generateCacheList();\n\t\t}\n\n\t\t$this->list = $this->cache->fetch($this->cache_id);\n\n\t\t$this->num = count($this->list);\n\t\t$this->unique = (boolean)($this->num == 1);\n\t}", "public function handel()\n {\n $this->run($this->listKey);\n }", "protected function setupListOperation()\n {\n CRUD::setFromDb(); // columns\n\n /**\n * Columns can be defined using the fluent syntax or array syntax:\n * - CRUD::column('price')->type('number');\n * - CRUD::addColumn(['name' => 'price', 'type' => 'number']);\n */\n }", "public function listView(): void\n {\n $this->_data = $this->_entity->fetch();\n if (!$this->special) {\n $newData = $this->_builder->submitCreate();\n if ($newData) {\n array_push($this->_data, $newData);\n }\n }\n require VF . \"{$this->route}/list.php\";\n require VF . \"{$this->route}/create.php\";\n }", "public function listsList()\n {\n\tthrow new Exception('Not implemented');\n }", "public function listAction() {}", "protected function setupListOperation()\n {\n // $this->crud->setFromDb();\n $name = $this->textCol('name', ' Name');\n $email = $this->emailCol('email', 'Email');\n CRUD::addColumns([$name, $email]);\n }", "function SetupListOptions() {\r\n\t\tglobal $Security, $Language;\r\n\r\n\t\t// \"view\"\r\n\t\t$item = &$this->ListOptions->Add(\"view\");\r\n\t\t$item->CssStyle = \"white-spaceJAMES: nowrapJAMES;\";\r\n\t\t$item->Visible = $Security->CanView();\r\n\t\t$item->OnLeft = FALSE;\r\n\r\n\t\t// \"edit\"\r\n\t\t$item = &$this->ListOptions->Add(\"edit\");\r\n\t\t$item->CssStyle = \"white-spaceJAMES: nowrapJAMES;\";\r\n\t\t$item->Visible = $Security->CanEdit();\r\n\t\t$item->OnLeft = FALSE;\r\n\r\n\t\t// \"copy\"\r\n\t\t$item = &$this->ListOptions->Add(\"copy\");\r\n\t\t$item->CssStyle = \"white-spaceJAMES: nowrapJAMES;\";\r\n\t\t$item->Visible = $Security->CanAdd();\r\n\t\t$item->OnLeft = FALSE;\r\n\r\n\t\t// \"delete\"\r\n\t\t$item = &$this->ListOptions->Add(\"delete\");\r\n\t\t$item->CssStyle = \"white-spaceJAMES: nowrapJAMES;\";\r\n\t\t$item->Visible = $Security->CanDelete();\r\n\t\t$item->OnLeft = FALSE;\r\n\r\n\t\t// Call ListOptions_Load event\r\n\t\t$this->ListOptions_Load();\r\n\t}", "protected function setupListOperation()\n {\n $this->crud->removeAllButtons();\n $this->crud->disableResponsiveTable();\n CRUD::column('name');\n CRUD::column('cron_expression');\n CRUD::column('grace_time_in_minutes');\n CRUD::column('last_failed_at');\n CRUD::column('last_finished_at');\n// CRUD::column('last_pinged_at');\n CRUD::column('last_skipped_at');\n CRUD::column('last_started_at');\n// CRUD::column('ping_url');\n// CRUD::column('registered_on_oh_dear_at');\n CRUD::column('timezone');\n CRUD::column('type');\n CRUD::column('updated_at');\n\n /**\n * Columns can be defined using the fluent syntax or array syntax:\n * - CRUD::column('price')->type('number');\n * - CRUD::addColumn(['name' => 'price', 'type' => 'number']);\n */\n }", "public function postLoad() {}", "protected function setupListOperation()\n {\n CRUD::setFromDb();\n\n $this->crud->addButtonFromView('line', 'more_items', 'more.items', 'end');\n }", "public function modload()\n\t{\n\t\tmodules::init_module( 'cs_list', self::MOD_VERSION, self::MOD_AUTHOR, 'chanserv', 'default' );\n\t\t// these are standard in module constructors\n\t\t\n\t\tchanserv::add_help( 'cs_list', 'help', &chanserv::$help->CS_HELP_LIST_1, true );\n\t\tchanserv::add_help( 'cs_list', 'help list', &chanserv::$help->CS_HELP_LIST_ALL, true );\n\t\t// add the help\n\t\t\n\t\tchanserv::add_command( 'list', 'cs_list', 'list_command' );\n\t\t// add the list command\n\t}", "public function postLoad() { }", "public function __construct()\n {\n parent::__construct();\n self::$_listType[true][true] = 'all';\n self::$_listType[true][false] = 'uncommitted';\n self::$_listType[false][true] = 'committed';\n self::$_listType[false][false] = 'all';\n\n $this->_includeUncommittedBlobs = false;\n $this->_includeCommittedBlobs = false;\n }", "protected function actionList() {\r\n /** @var $strType interface_model|class_model */\r\n $strType = $this->getCurObjectClassName();\r\n\r\n if(!is_null($strType)) {\r\n $objArraySectionIterator = new class_array_section_iterator($strType::getObjectCount($this->getSystemid()));\r\n $objArraySectionIterator->setPageNumber((int)($this->getParam(\"pv\") != \"\" ? $this->getParam(\"pv\") : 1));\r\n $objArraySectionIterator->setArraySection($strType::getObjectList($this->getSystemid(), $objArraySectionIterator->calculateStartPos(), $objArraySectionIterator->calculateEndPos()));\r\n\r\n //pass the internal action in order to get a proper paging\r\n $strOriginalAction = $this->getAction();\r\n $this->setAction($this->strOriginalAction);\r\n $strList = $this->renderList($objArraySectionIterator, false, \"list\".$this->getStrCurObjectTypeName());\r\n $this->setAction($strOriginalAction);\r\n return $strList;\r\n }\r\n else\r\n throw new class_exception(\"error loading list current object type not known \", class_exception::$level_ERROR);\r\n }", "function SetupListOptions() {\n\t\tglobal $Security, $Language;\n\n\t\t// \"view\"\n\t\t$item = &$this->ListOptions->Add(\"view\");\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->CanView();\n\t\t$item->OnLeft = FALSE;\n\n\t\t// \"edit\"\n\t\t$item = &$this->ListOptions->Add(\"edit\");\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->CanEdit();\n\t\t$item->OnLeft = FALSE;\n\n\t\t// \"copy\"\n\t\t$item = &$this->ListOptions->Add(\"copy\");\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->CanAdd();\n\t\t$item->OnLeft = FALSE;\n\n\t\t// \"delete\"\n\t\t$item = &$this->ListOptions->Add(\"delete\");\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->CanDelete();\n\t\t$item->OnLeft = FALSE;\n\n\t\t// \"userpermission\"\n\t\t$item = &$this->ListOptions->Add(\"userpermission\");\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->IsAdmin();\n\t\t$item->OnLeft = FALSE;\n\n\t\t// Call ListOptions_Load event\n\t\t$this->ListOptions_Load();\n\t}", "function SetupListOptions() {\n\t\tglobal $Security, $tbl_slide;\n\n\t\t// \"view\"\n\t\t$this->ListOptions->Add(\"view\");\n\t\t$item =& $this->ListOptions->Items[\"view\"];\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->IsLoggedIn();\n\t\t$item->OnLeft = FALSE;\n\n\t\t// \"edit\"\n\t\t$this->ListOptions->Add(\"edit\");\n\t\t$item =& $this->ListOptions->Items[\"edit\"];\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->IsLoggedIn();\n\t\t$item->OnLeft = FALSE;\n\n\t\t// \"copy\"\n\t\t$this->ListOptions->Add(\"copy\");\n\t\t$item =& $this->ListOptions->Items[\"copy\"];\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->IsLoggedIn();\n\t\t$item->OnLeft = FALSE;\n\n\t\t// \"delete\"\n\t\t$this->ListOptions->Add(\"delete\");\n\t\t$item =& $this->ListOptions->Items[\"delete\"];\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->IsLoggedIn();\n\t\t$item->OnLeft = FALSE;\n\n\t\t// Call ListOptions_Load event\n\t\t$this->ListOptions_Load();\n\t\tif ($tbl_slide->Export <> \"\" ||\n\t\t\t$tbl_slide->CurrentAction == \"gridadd\" ||\n\t\t\t$tbl_slide->CurrentAction == \"gridedit\")\n\t\t\t$this->ListOptions->HideAllOptions();\n\t}", "protected function setupListOperation()\n {\n // CRUD::setFromDb(); // columns\n\n \n CRUD::column('name');\n CRUD::column('project_id');\n CRUD::column('priority');\n \n /**\n * Columns can be defined using the fluent syntax or array syntax:\n * - CRUD::column('price')->type('number');\n * - CRUD::addColumn(['name' => 'price', 'type' => 'number']); \n */\n \n $this->crud->addButtonFromView('top', 'tasks-reorder', 'tasks-reorder');\n $this->crud->denyAccess('reorder');\n \n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "function SetupListOptions() {\r\n\t\tglobal $Security, $Language;\r\n\r\n\t\t// \"view\"\r\n\t\t$item = &$this->ListOptions->Add(\"view\");\r\n\t\t$item->CssStyle = \"white-spaceJAMES: nowrapJAMES;\";\r\n\t\t$item->Visible = $Security->IsLoggedIn();\r\n\t\t$item->OnLeft = FALSE;\r\n\r\n\t\t// Call ListOptions_Load event\r\n\t\t$this->ListOptions_Load();\r\n\t}", "public function admin_load()\n {\n }", "function SetupListOptions() {\r\n\t\tglobal $Security, $fs_multijoin_v;\r\n\r\n\t\t// Call ListOptions_Load event\r\n\t\t$this->ListOptions_Load();\r\n\t\tif ($fs_multijoin_v->Export <> \"\" ||\r\n\t\t\t$fs_multijoin_v->CurrentAction == \"gridadd\" ||\r\n\t\t\t$fs_multijoin_v->CurrentAction == \"gridedit\")\r\n\t\t\t$this->ListOptions->HideAllOptions();\r\n\t}", "abstract protected function collectionLoader();", "public function list();", "public function list();", "public function list();", "public function listAction() {\n\n\t}", "function _ajax_fetch_custom_list_callback() {\n\n\t$wp_list_table = new TT_Example_List_Table();\n\t$wp_list_table->ajax_response();\n}", "function SetupListOptions() {\r\n\t\tglobal $Security, $Language, $rekeningju;\r\n\r\n\t\t// \"griddelete\"\r\n\t\tif ($rekeningju->AllowAddDeleteRow) {\r\n\t\t\t$item =& $this->ListOptions->Add(\"griddelete\");\r\n\t\t\t$item->CssStyle = \"white-space: nowrap;\";\r\n\t\t\t$item->OnLeft = TRUE;\r\n\t\t\t$item->Visible = FALSE; // Default hidden\r\n\t\t}\r\n\r\n\t\t// Call ListOptions_Load event\r\n\t\t$this->ListOptions_Load();\r\n\t}", "public function getList()\n {\n }", "public function afterLoad() { }", "function listing() {\r\n\r\n }", "public function listInit(){\n\t\t$this->setNameModelController('helpdesks');\n\t\t\n\t\t$this->setReportDownload(true, true, true);\n\t\t\n\t\t$this->setConfig('Lista Mesas de Ayuda', 'id_helpdesk');\n\t\t$this->nameTopics = 'Mesas de Ayuda';\n\t\t$this->nameTopic = 'Mesa de Ayuda';\n\t\t$this->defaultSort = 'is_default_hld';\n\t\t$this->fixSortDesc();\n\t\t\n\t\t$this->autoAddColsNameUserDateRegister();\n\t\t$this->getView()->setForceFit(false);\n\t}", "function SetupListOptions() {\r\n\t\tglobal $Security, $Language;\r\n\r\n\t\t// \"edit\"\r\n\t\t$item = &$this->ListOptions->Add(\"edit\");\r\n\t\t$item->CssStyle = \"white-space: nowrap;\";\r\n\t\t$item->Visible = $Security->CanEdit();\r\n\t\t$item->OnLeft = TRUE;\r\n\r\n\t\t// Call ListOptions_Load event\r\n\t\t$this->ListOptions_Load();\r\n\t}", "public function __construct(){\n get_instance()->load->model('lists');\n }", "function ajaxList() {\r\n $this->rdAuth->noStudentsAllowed();\r\n // Set up the list\r\n $this->setUpAjaxList();\r\n // Process the request for data\r\n $this->AjaxList->asyncGet();\r\n }", "public function listAction()\n {\n // some logic\n }", "protected function postLoad(){\n\t\t\t\n\t\t}", "protected function setupListOperation()\n {\n CRUD::setFromDb(); // columns\n\n $this->crud->setColumns([\n [ \n 'name' => 'id',\n 'label' => 'ID',\n 'type' => 'number',\n\n ],\n [\n 'name' => 'name',\n 'type' => 'text',\n 'label' => 'Name',\n 'orderable' => false,\n ],\n [\n // non-relationship count\n 'name' => 'Customer', // name of relationship method in the model\n 'type' => 'relationship_count', \n 'label' => 'Customers', // Table column heading\n // OPTIONAL\n 'suffix' => '', // to show \"123 tags\" instead of \"123 items\"\n ],\n [\n 'name' => 'type_id',\n 'label' => 'Permission',\n 'type' => 'boolean',\n 'options' => [0 => 'Collector', 1 => 'Administrator']\n ],\n\n ]);\n\n $this->crud->addButtonFromModelFunction('line', 'open_google', 'openReceive', 'beginning');\n }", "public function beforeListModel(){\n\n }", "protected function setupListOperation()\n {\n if (!backpack_user()->hasPermissionTo('Browse plugin')) {\n abort(403);\n }\n\n CRUD::column('name')->label('Plugin')->type('text');\n CRUD::column('version')->label('Version')->type('text');\n $this->crud->addButtonFromModelFunction('line', 'editBtn', 'editBtn', 'beginning');\n $this->crud->addButtonFromModelFunction('line', 'openBtn', 'openBtn', 'beginning');\n }", "public function onRefresh()\n {\n $this->prepareVars();\n return ['#'.$this->getId() => $this->makePartial('list')];\n }", "abstract public function getList();", "public abstract function get_lists();", "function _cmd_list(SGL_Registry $input, SGL_Output $output)\n {\n SGL::logMessage(null, PEAR_LOG_DEBUG);\n $output->template = 'pageList.html';\n $output->mode = 'Browse';\n\n // get all sections\n $aSections = $this->da->getSectionTree();\n $output->results = $aSections;\n\n $output->pageArrayJS = $this->_createNodesArrayJS($aSections);\n $output->addOnLoadEvent(\"switchRowColorOnHover()\");\n }", "function loadListColor()\n\t{\n\t\tif($this->new_size)\n\t\t\t$this->list_color = 'orange';\n\t}", "public function lists();", "public function listdataAction() {\n $this->view->dataList = $this->adm_listdata_serv->getDataList('%');\n }", "protected function _afterLoadCollection()\n {\n $this->getCollection()->walk('afterLoad');\n parent::_afterLoadCollection();\n }", "public function defaultLoading() {}", "public function\r\n\tList() {\r\n\t\techo __METHOD__, PHP_EOL;\r\n\t}", "protected function initList()\n {\n $this->lang = true;\n $this->addRowAction('edit');\n $this->addRowAction('delete');\n\n $this->fields_list = [\n GamificationsReward::$definition['primary'] => [\n 'title' => $this->l('ID'),\n 'width' => 20,\n 'type' => 'text',\n ],\n 'name' => [\n 'title' => $this->l('Reward name'),\n 'type' => 'text',\n ],\n 'reward_type' => [\n 'title' => $this->l('Reward type'),\n 'type' => 'select',\n 'list' => GamificationsReward::getRewardsTranslations(),\n 'filter_key' => 'a!reward_type',\n ],\n ];\n }", "public function init()\r\n\t{\r\n\t\t$dbvos = $this;\r\n\r\n\t\t{CLASS_LIST}\r\n\t\t\t\r\n\t\t$this->_loaded = true;\r\n\t}", "function SetupListOptions() {\n\t\tglobal $Security, $scholarship_package;\n\n\t\t// \"edit\"\n\t\t$this->ListOptions->Add(\"edit\");\n\t\t$item =& $this->ListOptions->Items[\"edit\"];\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->CanEdit();\n\t\t$item->OnLeft = FALSE;\n\n\t\t// \"detail_scholarship_payment\"\n\t\t$this->ListOptions->Add(\"detail_scholarship_payment\");\n\t\t$item =& $this->ListOptions->Items[\"detail_scholarship_payment\"];\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->AllowList('scholarship_payment');\n\t\t$item->OnLeft = FALSE;\n\n\t\t// Call ListOptions_Load event\n\t\t$this->ListOptions_Load();\n\t\tif ($scholarship_package->Export <> \"\" ||\n\t\t\t$scholarship_package->CurrentAction == \"gridadd\" ||\n\t\t\t$scholarship_package->CurrentAction == \"gridedit\")\n\t\t\t$this->ListOptions->HideAllOptions();\n\t}", "protected function setupListOperation()\n {\n // $this->crud->setFromDb();\n $this->crud->addColumns([\n ['name' => 'name', 'type' => 'text', 'label' => 'Name'],\n ['name' => 'description', 'type' => 'text', 'label' => 'Description'],\n ['name' => 'location' , 'type' => 'text' , 'label' => 'Location'],\n ['name' => 'date' , 'type' => 'date' , 'label' => 'Date'],\n [\n 'label' => \"Image\",\n 'name' => \"image\",\n 'type' => 'image',\n 'upload' => true,\n 'crop' => false,\n 'aspect_ratio' => 0,\n ],\n [ // Select\n 'label' => \"Instructor\",\n 'type' => 'select',\n 'name' => 'user_id', // the db column for the foreign key\n 'entity' => 'user', // the method that defines the relationship in your Model\n 'attribute' => 'name', // foreign key attribute that is shown to user\n ]\n ]);\n // $this->crud->addButton();\n $this->crud->filters();\n }", "public function actionList() {\n $this->_getList();\n }", "public function load()\n {\n ObserverHandler::addMHook('init_view_registered_engines', $this->getName(), 'init_view_registered_engines');\n ObserverHandler::addMHook('result_search', $this->getName(), 'result_search');\n }", "function my_list()\n\t{\n\t\t$data = filter_forwarded_data($this);\n\t\t$data['list'] = $this->_bid->my_list();\n\t\t\n\t\t$this->load->view('bids/my_list', $data);\n\t}", "final public function load() {\n $this->childLoad();\n \\add_action('admin_menu', [$this, 'addAdminMenuEntries']);\n }", "private function loadItems()\n {\n if ($this->items === null) {\n $this->items = $this->storage->load();\n }\n }", "function listContent()\n {\n }", "function SetupListOptions() {\n\t\tglobal $Security, $t_tinbai_mainsite;\n\n\t\t// \"view\"\n\t\t$this->ListOptions->Add(\"view\");\n\t\t$item =& $this->ListOptions->Items[\"view\"];\n\t\t$item->CssStyle = \"white-space: nowrap;width:15px\";\n\t\t$item->Visible = $Security->CanView();\n\t\t$item->OnLeft = TRUE;\n\n\t\t// \"edit\"\n\t\t$this->ListOptions->Add(\"edit\");\n\t\t$item =& $this->ListOptions->Items[\"edit\"];\n\t\t$item->CssStyle = \"white-space: nowrap;width:15px\";\n\t\t$item->Visible = $Security->CanEdit();\n\t\t$item->OnLeft = TRUE;\n\n\t\t// \"checkbox\"\n\t\t$this->ListOptions->Add(\"checkbox\");\n\t\t$item =& $this->ListOptions->Items[\"checkbox\"];\n\t\t$item->CssStyle = \"white-space: nowrap;width:15px\";\n\t\t$item->Visible = ($Security->CanDelete() || $Security->CanEdit());\n\t\t$item->OnLeft = TRUE;\n\t\t$item->Header = \"<input type=\\\"checkbox\\\" name=\\\"key\\\" id=\\\"key\\\" class=\\\"phpmaker\\\" onclick=\\\"t_tinbai_mainsite_list.SelectAllKey(this);\\\">\";\n\t\t$this->ListOptions->MoveItem(\"checkbox\", 0); // Move to first column\n\n\t\t// Call ListOptions_Load event\n\t\t$this->ListOptions_Load();\n\t\tif ($t_tinbai_mainsite->Export <> \"\" ||\n\t\t\t$t_tinbai_mainsite->CurrentAction == \"gridadd\" ||\n\t\t\t$t_tinbai_mainsite->CurrentAction == \"gridedit\")\n\t\t\t$this->ListOptions->HideAllOptions();\n\t}", "function wp_ajax_fetch_list()\n {\n }", "public function findAllLoaded() {}", "protected function setupListOperation()\n {\n $this->crud->addColumns([\n [\n 'name' => 'name',\n 'label' => 'Название',\n ],\n [\n 'name' => 'description',\n 'label' => 'Описание',\n\n ],\n [\n 'name' => 'price',\n 'label' => 'Цена',\n ],\n [\n 'name' => 'time_start',\n 'label' => 'Дата начало',\n 'type' => \"date\",\n ],\n [\n 'name' => 'time_finish',\n 'label' => 'Дата финиша',\n 'type' => \"date\",\n ],\n [\n 'name' => 'car_id',\n 'label' => 'Автомобиль',\n 'type' => 'select',\n 'entity' => 'car',\n 'attribute' => 'register_id',\n 'model' => 'App\\Models\\Car',\n ],\n [\n 'name' => 'employee_id',\n 'label' => 'Сотрудник',\n 'type' => 'select',\n 'entity' => 'employee',\n 'attribute' => 'full_name',\n 'model' => 'App\\Models\\Employee',\n ],\n ]);\n }", "function LoadDynamicList($listname,&$rows)\r\n {\r\n return false;\r\n }", "abstract public function loadAll();", "public function onRefreshList()\n {\n $this->prepareComponent();\n\n return $this->refreshList();\n }", "public function load(): void\n {\n $list = $this->localCache->getObject($this->key);\n $value = $this->resultExtractor->extractObjectFromList($list, $this->targetType);\n $this->resultObject->setValue($this->property, $value);\n }", "function rest_api_loaded()\n {\n }", "public function testFetchList() {\n\t\t$jsonpad = parent::_getJsonpadInstance();\n\t\t\n\t\t// Create a list\n\t\t$listData = parent::_createTestListData(false, false);\n\t\t$list = $jsonpad->createList($listData[\"name\"]);\n\t\t\n\t\t// Fetch the list\n\t\t$listCopy = $jsonpad->fetchList($listData[\"name\"]);\n\t\t$this->assertSame($list->getName(), $listCopy->getName());\n\t\t\n\t\t// Delete the list\n\t\t$listCopy->delete();\n\t}", "protected function setupListOperation()\n {\n /*$this->crud->setFromDb();*/\n $this->crud->addColumn(['name' => 'name', 'type' => 'text', 'label' => 'Name']);\n $this->crud->addColumn(['name' => 'sku', 'type' => 'text', 'label' => 'SKU / Product Unique ID']);\n $this->crud->addColumn(['name' => 'price', 'type' => 'text', 'label' => 'Price / €']);\n $this->crud->addColumn(['name' => 'status', 'type' => 'text', 'label' => 'Status']);\n $this->crud->addColumn(['name' => 'user.name', 'type' => 'text', 'label' => 'User Name']);\n $this->crud->addColumn(['name' => 'category.name', 'type' => 'text', 'label' => 'Category']);\n $this->crud->addColumn(['name' => 'publish_date', 'type' => 'text', 'label' => 'Publish Date']);\n $this->crud->addColumn(['name' => 'blocking_date', 'type' => 'text', 'label' => 'Blocking Date']);\n $this->crud->addColumn(['name' => 'created_at', 'type' => 'text', 'label' => 'Created Om']);\n $this->crud->addColumn(['name' => 'updated_at', 'type' => 'text', 'label' => 'Updated On']);\n }", "public function listdataSDMAction() {\n $this->view->dataList = $this->adm_listdata_serv->getDataList('SDM');\n }", "protected function is_list_page() {\n\t\treturn false;\n\t}", "protected function childLoad() {}", "public function main_load() {\n\t\tadd_action( 'admin_init', array( $this, 'custom_admin_init_action' ) );\n\t\tadd_action( 'add_meta_boxes', array( $this, 'add_meta_boxes_action' ) );\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'custom_admin_enqueue_scripts' ) );\n\t\tadd_action( 'pre_get_posts', array( $this, 'custom_pre_get_posts_action' ) );\n\t\tadd_action( 'restrict_manage_posts', array( $this, 'custom_restrict_manage_posts_action' ) );\n\t\tadd_filter( 'posts_where', array( $this, 'custom_posts_where_filter' ), 10, 2 );\n\t}", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}", "protected function PostLoadHook()\n {\n parent::PostLoadHook();\n $oListFilterItemType = $this->GetFieldPkgShopListfilterItemType();\n if ($oListFilterItemType) {\n $this->sVariantTypeIdentifier = $this->fieldVariantIdentifier;\n }\n }", "public function init()\n {\n extract($this->data);\n\n //Set default values to items array\n $this->data['items'] = $this->fillItemsData($items);\n\n //Endpoint for async fetching\n if(isset($endpoint)) {\n $this->data['attributeList']['data-endpoint'] = $endpoint; \n }\n\n //Add unlist class\n $this->data['classList'][] = \"unlist\"; \n\n //Direction of nav\n if($direction) {\n $this->data['classList'][] = $this->getBaseClass() . \"--\" . $direction; \n }\n\n //Attributes\n $this->data['attributeList']['aria-orientation'] = $direction; \n }", "protected function setupListOperation()\n {\n $this->crud->addColumn([\n 'name' => 'name',\n 'type' => 'test',\n 'label' => 'Название',\n ]);\n $this->crud->addColumn([\n 'name' => 'category_id',\n 'type' => 'select',\n 'label' => 'Категория',\n 'entity' => 'category',\n 'attribute' => \"name\",\n 'model' => Category::class,\n ]);\n }", "public function preRetrieve();", "function edit_event_load() {\n\n\t\tadd_filter( 'request', array( $this, 'sort_events' ) );\n\t}", "public function listing();", "public function ajaxProcessRenderList()\n {\n $tpl = $this->createTemplate('shortcodelist.tpl');\n // get list module installed by hook position\n $list_modules = array();\n\n\n if (Tools::getValue('reloadModule')) {\n # ReLoad : write to config\n $list_modules = apPageHelper::getModules();\n\n $ap_cache_module = apPageHelper::correctEnCodeData(Tools::jsonEncode($list_modules));\n Configuration::updateValue('AP_CACHE_MODULE', $ap_cache_module);\n } else {\n $ap_cache_module = Configuration::get('AP_CACHE_MODULE');\n if ($ap_cache_module === false || $ap_cache_module === '') {\n # First Time : write to config\n $list_modules = apPageHelper::getModules();\n\n $ap_cache_module = apPageHelper::correctEnCodeData(Tools::jsonEncode($list_modules));\n Configuration::updateValue('AP_CACHE_MODULE', $ap_cache_module);\n } else {\n # Second Time : read from config\n $list_modules = Tools::jsonDecode(apPageHelper::correctDeCodeData($ap_cache_module), true);\n }\n }\n\n // Get list author\n $author = array();\n foreach ($list_modules as $mi) {\n $str = Tools::ucwords(Tools::strtolower($mi['author'] ? $mi['author'] : ''));\n if (!in_array($str, $author) && $str) {\n array_push($author, $str);\n }\n }\n //Get list of image or shortcodeFile\n $tpl->assign(array(\n 'author' => $author,\n 'listModule' => $list_modules,\n 'shortCodeList' => ApShortCodeBase::getShortCodeInfos()\n ));\n $array = array('hasError' => false, 'result' => $tpl->fetch());\n die(Tools::jsonEncode($array));\n }", "function privAddList($p_filedescr_list, &$p_result_list, &$p_options)\n {\n }", "public function afterLoad(){\n $this->getType()->afterLoadProcess($this);\n return parent::afterLoad();\n }", "function admin_load() {\n\n\t}", "protected function emitLoadMessages() {}", "function privList(&$p_list)\n {\n }", "protected function performActionList()\n\t{\n\t\t// copy order\n\t\t$this->performActionCopyOrder();\n\n\t\t// some other ...\n\t}" ]
[ "0.6704702", "0.66282463", "0.66282463", "0.65155464", "0.6330519", "0.6242326", "0.6168534", "0.615509", "0.6149448", "0.6147334", "0.6112424", "0.6111077", "0.61012685", "0.6073263", "0.6060854", "0.6042805", "0.60412997", "0.6011449", "0.60096955", "0.5999568", "0.5989506", "0.5986994", "0.59653944", "0.59446657", "0.5943624", "0.59424317", "0.59379977", "0.5935689", "0.5934527", "0.590651", "0.58986276", "0.58725846", "0.5869843", "0.5869125", "0.5868987", "0.5868987", "0.5868987", "0.5865108", "0.5858245", "0.5853966", "0.58499783", "0.5821417", "0.5813458", "0.58124197", "0.57937926", "0.5788601", "0.57840884", "0.57783216", "0.5770379", "0.5761259", "0.5760005", "0.57596576", "0.575679", "0.5750511", "0.57500285", "0.5746879", "0.5742799", "0.5741931", "0.57412994", "0.57407147", "0.573146", "0.5726106", "0.57022136", "0.5691211", "0.5684922", "0.5675446", "0.56623983", "0.56553525", "0.5650741", "0.56468", "0.5645887", "0.56356204", "0.5588211", "0.55720365", "0.55712706", "0.55700386", "0.5567862", "0.5566982", "0.5566449", "0.55651206", "0.55604595", "0.55536896", "0.5550955", "0.5545587", "0.5543755", "0.5539826", "0.5535326", "0.5533118", "0.5527066", "0.551283", "0.5511556", "0.55096334", "0.5507998", "0.55019015", "0.5494846", "0.549189", "0.5488033", "0.5485084", "0.54808503", "0.5478516", "0.5468183" ]
0.0
-1
Define what happens when the Create operation is loaded.
protected function setupCreateOperation() { if (About::count() === 0) { $this->createUpdate(); } /** * Fields can be defined using the fluent syntax or array syntax: * - CRUD::field('price')->type('number'); * - CRUD::addField(['name' => 'price', 'type' => 'number'])); */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setupCreateOperation()\n {\n CRUD::setValidation(CodeRequest::class);\n\n $this->addFieldDescriptionText();\n $this->addFieldIsVisibleCheckbox();\n }", "function before_create() {}", "function on_creation() {\n $this->init();\n }", "protected function _precreate() {\n }", "protected function setupCreateOperation()\n {\n CRUD::setValidation(StoreRequest::class);\n\n /**\n * Fields can be defined using the fluent syntax or array syntax:\n * - CRUD::field('price')->type('number');\n * - CRUD::addField(['name' => 'price', 'type' => 'number']));\n */\n }", "protected function setupCreateOperation()\n {\n $this->addUserFields();\n $this->crud->setValidation(StoreRequest::class);\n// CRUD::setValidation(UserRequest::class);\n//\n// CRUD::setFromDb(); // fields\n\n /**\n * Fields can be defined using the fluent syntax or array syntax:\n * - CRUD::field('price')->type('number');\n * - CRUD::addField(['name' => 'price', 'type' => 'number']));\n */\n }", "public function beforeCreate()\n {\n // init fields by default\n $this->setDateCreate(new \\DateTime());\n }", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "function Create()\r\n\t{\r\n\r\n\t}", "protected function setupCreateOperation()\n {\n abort(404);\n /**\n * Fields can be defined using the fluent syntax or array syntax:\n * - CRUD::field('price')->type('number');\n * - CRUD::addField(['name' => 'price', 'type' => 'number']));\n */\n }", "protected function setupCreateOperation()\n {\n CRUD::setValidation(DeliveryNoteDetailRequest::class);\n\n CRUD::setFromDb(); // fields\n\n /**\n * Fields can be defined using the fluent syntax or array syntax:\n * - CRUD::field('price')->type('number');\n * - CRUD::addField(['name' => 'price', 'type' => 'number']));\n */\n }", "public function creating()\n {\n # code...\n }", "public function create() {\n\t\t\t//\n\t\t}", "public function create()\n\t{\n\t\t\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}", "public function create()\n\t{\n\t\t//\n\t}" ]
[ "0.72505623", "0.7247977", "0.71901476", "0.70957226", "0.69738483", "0.69301224", "0.6805015", "0.6798057", "0.6798057", "0.6798057", "0.6798057", "0.6798057", "0.6798057", "0.6798057", "0.6798057", "0.6798057", "0.6798057", "0.6798057", "0.6798057", "0.67888725", "0.6785619", "0.67834556", "0.6728075", "0.6725767", "0.6700533", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276", "0.6693276" ]
0.6743446
22
Define what happens when the Update operation is loaded.
protected function setupUpdateOperation() { $this->createUpdate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function before_update() {}", "public function after_update() {}", "protected function loadUpdate() {\r\n $this->update = new \\App\\Table\\UpdateTable(App::getInstance()->getDb());\r\n }", "protected function beforeUpdating()\n {\n }", "public function onUpdate();", "public function onUpdate();", "public function onUpdate();", "protected function performUpdate() {}", "protected function beforeUpdate()\n {\n }", "function after_update() {}", "protected function _preupdate() {\n }", "protected function afterUpdating()\n {\n }", "public function onPreUpdate()\n {\n $this->updated = new \\DateTime(\"now\");\n }", "public function onPreUpdate()\n {\n $this->updated = new \\DateTime('now');\n }", "public function onPreUpdate()\n {\n $this->setUpdated(new \\DateTime(\"now\"));\n }", "public function preUpdate()\n {\n $this->updated = new \\DateTime();\n }", "public function preUpdate()\n {\n }", "public function preUpdate()\n {\n $this->updated = new \\DateTime(\"now\");\n }", "public function preUpdate()\n {\n $this->updated = new \\DateTime(\"now\");\n }", "protected function afterUpdate() {\n\t}", "protected function _update()\n\t{\n\t}", "protected function afterUpdate()\n {\n }", "protected function afterUpdate()\n {\n }", "protected function update() {}", "protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }", "protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }", "protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }", "protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }", "protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }", "protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }", "protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }", "protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }", "protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }", "protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }", "protected function _update()\n {\n \n }", "protected function _update()\n {\n \n }", "public function beforeUpdate()\n {\n\t\t// Asignar fecha y hora de ultima actualizacion\n// $this->updatedon = time();\n }", "public function postLoad() {}", "public function update()\n\t{\n\n\t}", "public function postLoad() { }", "public function updating()\n {\n # code...\n }", "protected function _postUpdate()\n\t{\n\t}", "public function update() {\r\n\r\n\t}", "public function beforeUpdate()\n {\n $this->update_at=time();\n }", "public function preUpdateCallback()\n {\n $this->performPreUpdateCallback();\n }", "public function preUpdateCallback()\n {\n $this->performPreUpdateCallback();\n }", "public function onPreUpdate()\n {\n $this->lastUpdatedDateTime = new \\DateTime(\"now\");\n }", "public function update() {\r\n }", "public function _get_update_callback()\n {\n }", "public function preUpdate()\n {\n $this->dateModification = new \\DateTime();\n }", "public function preUpdate()\n {\n $this->dateUpdated = new \\DateTime();\n }", "public function fetchUpdates()\n\t{\n\t}", "public function Update() {\n }", "public function onPreUpdate()\n {\n $this->dateUpdated = new DateTime('now');\n }", "public function onPreUpdate()\n {\n $this->dateUpdated = new DateTime('now');\n }", "public function onPreUpdate()\n {\n $now = new \\DateTime();\n $this->setUpdatedAt($now);\n }", "protected function setupUpdateOperation()\n {\n// $this->setupCreateOperation();\n $this->addUserFields();\n $this->crud->setValidation(UpdateRequest::class);\n }", "public function Do_update_Example1(){\n\n\t}", "public function update()\r\n {\r\n //\r\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function update()\n {\n }", "public function _update()\n\t {\n\t \t$this->notifyObservers(__FUNCTION__);\n\t }", "public function testUpdate(): void { }", "public function onPreUpdate()\n {\n $this->updatedAt = new \\DateTime(\"now\");\n }", "public function update();", "public function update();", "public function update();", "public function update();", "public static function update(){\r\n }", "protected function onUpdate(): Update\r\n {\r\n }", "public function onPreUpdate()\n {\n $this->updatedAt = new \\DateTime(\"now\");\n }", "public function onPreUpdate()\n {\n $this->updatedAt = new \\DateTime(\"now\");\n }", "public function onPreUpdate()\r\n {\r\n $this->updated_at = new \\DateTime(\"now\");\r\n }", "public function onPreUpdate()\n {\n $this->updatedAt = new \\DateTime('now');\n }", "public function update () {\n\n }", "public function update()\n {\n }", "public function update()\r\n {\r\n \r\n }", "public function preUpdate()\n {\n $this->updatedAt = new \\DateTime();\n }", "public static function Update(){\r\n }", "public abstract function update();", "public static function update(){\n }", "public function onPreUpdate()\n {\n $this->modified_at = new \\DateTime(\"now\");\n }", "function update() {\n\n\t\t\t}", "public function onPreUpdate(): void\n {\n $this->updated = new DateTime(\"now\", new DateTimeZone(\"UTC\"));\n }", "public function onPreUpdate(): void\n {\n $this->updated = new DateTime(\"now\", new DateTimeZone(\"UTC\"));\n }", "public function doPreUpdate()\n {\n $this->updatedAt = new \\DateTime( 'now', new \\DateTimeZone( 'UTC' ) );\n }", "protected function saveUpdate()\n {\n }", "public function afterLoad() { }", "public function preUpdate()\n {\n $this->updatedAt = new \\DateTime;\n }", "public function updateAction()\n {\n }" ]
[ "0.7229792", "0.6943881", "0.6888782", "0.6752275", "0.67464155", "0.67464155", "0.67464155", "0.6711424", "0.67087144", "0.6701424", "0.6674162", "0.66186833", "0.65985805", "0.65869445", "0.658321", "0.6562314", "0.65573347", "0.6546851", "0.6546851", "0.6537816", "0.65294534", "0.6521435", "0.6521435", "0.6494114", "0.64808923", "0.64808923", "0.64808923", "0.64808923", "0.64808923", "0.64808923", "0.64808923", "0.64808923", "0.64808923", "0.64808923", "0.64474803", "0.64474803", "0.64204407", "0.64173776", "0.6384009", "0.6370833", "0.63534194", "0.6348036", "0.63340634", "0.6324128", "0.631325", "0.631325", "0.63099337", "0.62929165", "0.62895286", "0.6274014", "0.6258556", "0.62575734", "0.6257542", "0.62567586", "0.62567586", "0.6243787", "0.62305456", "0.6221846", "0.62133735", "0.6208859", "0.6208859", "0.6208859", "0.6208859", "0.6208859", "0.6208859", "0.6208859", "0.6208859", "0.6208859", "0.6208859", "0.6208859", "0.6208859", "0.62074727", "0.6200539", "0.61893296", "0.6188926", "0.6188926", "0.6188926", "0.6188926", "0.6185699", "0.61836344", "0.6175054", "0.6175054", "0.61620194", "0.6153615", "0.6147775", "0.61458474", "0.6144253", "0.6144048", "0.6138354", "0.61376965", "0.6137628", "0.61256087", "0.6106698", "0.6092379", "0.6092379", "0.6091812", "0.60899466", "0.60872215", "0.6084123", "0.6080066" ]
0.6736574
7
Retorna null em caso da varivavel nao existir
public function __get($var){ if(isset($this->$var)) return $this->$var; return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ifset(&$var)\n{\n\treturn isset($var) ? $var : null;\n}", "function initVar(&$var){\n\t\treturn isset($var) ? $var :null;\n\t}", "function safe_retrieve($varname, $default='', $null_is_default=false) {\n $arr = array(&$_REQUEST, &$_SESSION, &$_SERVER, &$_ENV);\n foreach ( array_keys($arr) as $key ) {\n if ( is_array($arr[$key]) && \n\t array_key_exists($varname, $arr[$key]) &&\n\t ( ($arr[$key][$varname] != null) || (!$null_is_default) ) ) \n return $arr[$key][$varname];\n }\n // $varname not found or \n // value null and $null_is_default == true\n return $default;\n}", "function get( $a, $k ) {\n if( array_key_exists( $k, $a ) ) {\n return empty( $a[$k] ) ? null : $a[$k];\n }\n \n return null;\n }", "function __get($name) {\n\t\t\t\t\tif (array_key_exists($name,$this->vars)) {\n\t\t\t\t\t\treturn $this->vars[$name];\n\t\t\t\t\t}\n\t\t\t\t\treturn null;\n\t\t\t\t}", "public function recordExists($data = null) {\n return null;\n }", "public function get_id_poblacion(){ \n return (isset($this->_id_poblacion)) ? $this->_id_poblacion: null;\n}", "static function get($key){\n \n //si existe te retorna\n if (array_key_exists($key, self::$dades)) \n { \n return self::$dades[$key]; //si existe le pasamos el valor\n }else \n { \n return null; //ni no existe le pasamos null\n } \n \n }", "public function findExistRecord(): ?int\n\t{\n\t\tif (empty($this->row['NIP'])) {\n\t\t\treturn null;\n\t\t}\n\t\t$queryGenerator = (new \\App\\QueryGenerator(self::MODULE_NAME));\n\t\t$queryGenerator->permissions = false;\n\t\t$queryGenerator->setFields(['id']);\n\t\t$queryGenerator->addCondition('vat_id', $this->row['NIP'], 'e');\n\t\t$recordId = $queryGenerator->createQuery()->scalar();\n\t\treturn $recordId ?: null;\n\t}", "public abstract function findFirst(): Optional;", "function no_existe_versiculo_en_referencia($versiculo_id, $cita)\n{\n $dato = torrefuerte\\Models\\Referencia::where('versiculo_id', $versiculo_id)\n ->where('cita', $cita)->first();\n\n if( is_null($dato)){\n return true;\n }else{\n return false;\n }\n}", "public function valid()\n\t{\n\t\t$key = key($this->var);\n\t\t$var = ($key !== NULL && $key !== FALSE);\n\t\techo \"valid: $var\\n\";\n\t\treturn $var;\t\n\t}", "public function find(): ?object {\n\t\tforeach ( $this->filter_item_keys() as $item_key ) {\n\t\t\tif ( ! isset( $this->items[ $item_key ] ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$item = $this->filter_item( $this->items[ $item_key ] );\n\n\t\t\tif ( $item ) {\n\t\t\t\treturn $item;\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "public function __get($name) {\n\t\t if(array_key_exists($name, $this->data)) { \n\t\t\t // then return the value from the array \n\t\t\t return $this->data[$name]; \n\t\t } \n\t\t return null; \n\t }", "public static function getUniquePlace(){\n if(!static::withPlaces()){\n return Lugares::find()->one()->id;\n }else{\n return null;\n }\n }", "function exists($data){\n if(isset($data) and !empty($data)){\n return true;\n }\n return false;\n}", "public function getVara()\n { return $this->hasOne(Vara::className(), ['id' => 'vara'])->one(); }", "public function getIfExists($key, $default_value=null);", "public function hasNullValue(){\n return $this->_has(1);\n }", "function get_var($query=null,$x=0,$y=0) {\n\n\t\t\t// If there is a query then perform it if not then use cached results..\n\t\t\tif ( $query ) {\n\t\t\t\t$this->query($query);\n\t\t\t}\n\n\t\t\t// Extract var out of cached results based x,y vals\n\t\t\tif ( $this->last_result[$y] ) {\n\t\t\t\t$values = array_values(get_object_vars($this->last_result[$y]));\n\t\t\t}\n\n\t\t\t// If there is a value return it else return null\n\t\t\treturn (isset($values[$x]) && $values[$x]!=='')?$values[$x]:null;\n\t\t}", "function get($name) {\n if ($this->exists($name)) {\n return $this->store[$name];\n }\n\n return null;\n }", "function Get($var='') {\n\t\tif ($var == '') return false;\n\t\tif (!isset($this->_ExternalVars[$var])) return false;\n\t\treturn $this->_ExternalVars[$var];\n\t}", "function safe_value_isset( $data , $key ){\n \n if( isset($data[$key])){\n return $data[$key];\n }\n else {\n return \"\";\n } \n}", "public function get($key){\n\t\treturn (isset($this->data[$key])?$this->data[$key]:null);\n\t}", "function createPersona()\n {\n return isset($this->source['persona']) && $this->source['persona'] ? $this->source['persona'] : null;\n }", "function does_not_exist( &$variable )\n{\n\treturn ( !isset( $variable ) || empty( $variable ) );\n}", "function issetor(&$variable, $placeholder = ''){\n if(isset($variable)){\n return $variable;\n } else {\n return $placeholder;\n }\n}", "function __isset($name) {\n\t\treturn array_key_exists($name,$this->object);\n\t}", "function exists() {\n\t return !empty($this->id);\n\t}", "function getUserVariable( $name, $valuekey ) {\n $d = loadDB();\n \n $found = false;\n foreach ($d['users'] as $key => $user) {\n if (strcmp($name, $user['name']) == 0 || \n strcmp($name, $user['email']) == 0 ) {\n //unset($d['users'][$key]);\n if (array_key_exists($valuekey, $d['users'][$key])) {\n \t return $d['users'][$key][$valuekey];\n } else\n\t return FALSE;\n }\n }\n return FALSE;\n }", "public function __get($var = null)\n {\n return self::getEntry($var);\n }", "function tf_first_set()\r\n {\r\n $args = func_get_args();\r\n foreach ($args as $v) {\r\n if (isset($v)) {\r\n return $v;\r\n }\r\n }\r\n return null;\r\n }", "function findone($key,$val) {\n\t\treturn ($data=$this->find($key,$val))?$data[0]:FALSE;\n\t}", "function check() {\n\t\t//{\n\t\t//return 'company id is null';\n\t\t//}\n\n\n\t\t//$this->company_id = intval($this->company_id);\n\n\n\t\treturn NULL;\n\t}", "function val(array $array, $key) {\r\n\treturn array_key_exists($key, $array) ? $array[$key] : null;\r\n}", "public function exists()\n {\n return ! is_null($this->first([Grammar::VIRTUAL_META_ID_COLUMN]));\n }", "function exists($var)\n\t{\n\t\treturn isset($var) && !empty($var);\n\t}", "function exists()\n {\n return false;\n }", "public static function notNull()\r\n\t{\r\n\t\tforeach(func_get_args() as $key)\r\n\t\t\tif( $key || is_array($key) || $is_object($key) )\r\n\t\t\t\treturn $key;\r\n\t\treturn null;\r\n\t}", "public function findDefault();", "public function exists() {\n\t\treturn !is_null($this->id);\n\t}", "public function orNull();", "function exists( &$variable )\n{\n\treturn ( isset( $variable ) && !empty( $variable ) );\n}", "public function __isset($name){\n return !empty($this->vars[$name]);\n }", "private function emptyPlaces(){\n //$direccion=;\n //var_dump($direccion);\n return (is_null(Lugares::find()->one()))?true:false;\n }", "public function get($name = null)\n {\n return array_key_exists($name, $this->vars) ? $this->vars[$name] : false;\n }", "function safe_retrieve_gp($varname, $default='', $null_is_default=false) {\n if ( is_array($_REQUEST) && \n array_key_exists($varname, $_REQUEST) &&\n ( ($_REQUEST[$varname] != null) || (!$null_is_default) ) ) \n return $_REQUEST[$varname];\n return $default;\n}", "private function checkIsExists(): bool\n {\n $where = [\n $this->table. '.vendorId' => $this->vendorId,\n $this->table. '.campaign' => $this->campaign,\n ];\n\n if (!is_null($this->id)) {\n $where[$this->table. '.id !='] = $this->id;\n }\n\n $id = $this->readImproved([\n 'what' => [$this->table. '.id'],\n 'where' => $where\n ]);\n\n return !is_null($id);\n }", "function pre_load_value( $null, $post_id, $field ) {\n\t\tif( isset($this->meta[ $post_id ][ $field['name'] ]) ) {\n\t\t\treturn $this->meta[ $post_id ][ $field['name'] ];\n\t\t}\n\t\treturn $null;\n\t}", "function acf_maybe_get($array = array(), $key = 0, $default = \\null)\n{\n}", "public function __get ( $name )\n {\n if ( array_key_exists ( $name , $this -> data )) {\n return $this -> data [ $name ];\n }\n\n// $trace = debug_backtrace ();\n// trigger_error (\n// 'Undefined property via __get(): ' . $name .\n// ' in ' . $trace [ 0 ][ 'file' ] .\n// ' on line ' . $trace [ 0 ][ 'line' ],\n// E_USER_NOTICE );\n return null ;\n }", "public function Exists();", "public function __get($var){\n\t\tif (!isset($this->$var)) {\n\t\t\t// if (isset($this->membersNumbers[$var])) {\n\t\t\t// \treturn $this->membersNumbers[$var];\n\t\t\t// }elseif (isset($this->icamAndTheirMembers[$var])) {\n\t\t\t// \treturn $this->icamAndTheirMembers[$var];\n\t\t\t// }elseif (isset($this->nightOptions[$var])) {\n\t\t\t// \treturn $this->nightOptions[$var];\n\t\t\t// }else{\n\t\t\t\treturn false;\n\t\t\t// }\n\t\t}else return $this->$var;\n\t}", "protected function _getVar($name)\n {\n $store = $this->_getVariableStore();\n\n if ($store instanceof \\Zend_Session_Namespace) {\n if ($store->__isset($name)) {\n return $store->__get($name);\n }\n } else {\n if ($store->offsetExists($name)) {\n return $store->offsetGet($name);\n }\n }\n\n return null;\n }", "public function exists(){\n\n\t\treturn (!empty($this->_data)) ? true : false;\n\n\t}", "public function get($key) {\n\t\tif(array_key_exists($key, $this->data)) return $this->data[$key]; \n\t\t\telse return null;\n\t}", "function get($index) {\n\t\treturn isset($this->variable[$index]) ? $this->variable[$index] : null;\n\t}", "public function __get($var)\n {\n return isset($this->_vars[$var]) ? $this->_vars[$var] : null;\n }", "static private function __isset($name) {}", "static public function has($key)\r\n {\r\n /* Let's make sure we have a valid variable name */\r\n self::validateKey($key);\r\n\r\n /* Fset::get returns null if the specified variable does not exist */\r\n $value = Fset::get(self::$values, $key);\r\n return !is_null($value);\r\n }", "public function val($vname)\n{\nif (!$this->valIsSet($vname)) throw new \\Exception(\"$vname: Variable not set\");\nreturn $this->vars[$vname];\n}", "public function getValue(string $name): ?string;", "public function __get($name)\n\t\t{\n\n\t\t\tif(array_key_exists($name, (array)$this->data))\n\t\t\t{\n\n\t\t\t\treturn $this->data[$name];\n\n\t\t\t}\n\n\t\t\treturn null;\n\n\t\t}", "function exists()\r\n\t{\r\n\t\treturn ( ! empty($this->id));\r\n\t}", "function variableExists ($variableName) {\n if (!$this->templateValid) {$this->triggerError (\"Template not valid.\"); return false; }\n return $this->lookupVariableName($variableName,$varNo); }", "abstract protected function handle_isset($name);", "function __get($name)\r\n {\r\n if (array_key_exists($name, $this->data)) \r\n {\r\n return $this->data[$name];\r\n }\r\n else \r\n {\r\n $trace = debug_backtrace();\r\n trigger_error(\r\n 'Undefined property via __get(): ' . $name .\r\n ' in ' . $trace[0]['file'] .\r\n ' on line ' . $trace[0]['line'],\r\n E_USER_NOTICE);\r\n \r\n return null;\r\n }\r\n }", "function in_vars($name){ // check the template variable\n\treturn array_key_exists($name, $this->vars);\n}", "function getDefined($key, $defined, $undefined)\n{\n return get($key) === null ? $undefined : $defined;\n}", "public function __get($var) {\n return (isset($this->$var)) ? $this->$var : NULL;\n }", "public function __get( $name ) {\n\t\tif ( array_key_exists( $name, $this->get_data() ) ) {\n\t\t\treturn $this->get_data( $name );\n\t\t}\n\t\treturn null;\n\t}", "public function __get($name) \r\n {\r\n if (array_key_exists($name, $this->filterFields)) \r\n return $this->filterFields[$name];\r\n \r\n return null;\r\n }", "function getvar($varname){\n\t\t// for example, getvar('name') will return 'name_fr' (provided it exists and is non-empty) in a french context\n\t\t$locname = $varname.'_'.CURLANG;\n\t\t$otherlang = $varname.'_'.(CURLANG=='fr'?'de':'fr');\n\t\tif(isset($this->$locname)){\n\t\t\tif($this->$locname == '' && $this->$otherlang != ''){\n\t\t\t\t// if the current language variable is empty, return the other language's value\n\t\t\t\treturn $this->$otherlang;\n\t\t\t}else{\n\t\t\t\treturn $this->$locname;\n\t\t\t}\n\t\t}elseif(isset($this->$varname)){\n\t\t\treturn $this->$varname;\n\t\t}\n\t\treturn false;\n\t}", "function get_var( $query = null, $x = 0, $y = 0 ) {\n\t\t$this->dbcr_wpdb->func_call = \"\\$db->get_var(\\\"$query\\\", $x, $y)\";\n\t\tif ( $query )\n\t\t\t$this->dbcr_query( $query );\n\n\t\t// Extract var out of cached results based x,y vals\n\t\tif ( !empty( $this->dbcr_wpdb->last_result[$y] ) ) {\n\t\t\t$values = array_values( get_object_vars( $this->dbcr_wpdb->last_result[$y] ) );\n\t\t}\n\n\t\t// If there is a value return it else return null\n\t\treturn ( isset( $values[$x] ) && $values[$x] !== '' ) ? $values[$x] : null;\n\t}", "function ifenr($var, $default = null) {\n\tif (empty($var)) {\n\t\treturn $default;\n\t}\n\n\treturn $var;\n}", "function getRequiredParam($var, $info = \"\") {\n\t\t\tif (isset($this->obj[$var]))\n\t\t\t\treturn $this->obj[$var];\n\t\t\t// Set up the error if the parameter was not set\n\t\t\t$this->addError(\"The parameter \".$var.\" was not set. \" . $info);\n\t\t\treturn false;\n\t\t}", "public function isDefined();", "function set_or_empty($a)\n{\n\tif (isset($a)) {\n\t\techo \"Variable is set\" . PHP_EOL;\n\t} else {\n\t\techo \"Variable is empty\" . PHP_EOL;\n\t}\n\treturn;\n}", "public function findScopeByScope(string $scope): ?object;", "private function exist() {\n $stmt = $this->pdo->prepare(\"SELECT * FROM $this->table WHERE \"\n . \"product_category_id= :cat_id and product_id= :prod_id \");\n $stmt->bindValue(\":cat_id\", $this->product_category_id, \\PDO::PARAM_INT);\n $stmt->bindValue(\":prod_id\", $this->product_id, \\PDO::PARAM_INT);\n $stmt->execute();\n return $stmt->fetch();\n }", "public function findFirst() {\r\n\t\t$aux = $this->fetchAllPg(1);\r\n\t\tif($aux == null)\r\n\t\t\treturn null;\r\n\t\treturn $aux[0];\r\n\t}", "public static function exists($_name) {\n\t\tif (!$_name) {\n\t\t\ttrigger_error(self::TEXT_Variable);\n\t\t\treturn array(FALSE,NULL);\n\t\t}\n\t\t$_var=&self::ref(self::resolve($_name));\n\t\treturn isset($_var);\n\t}", "public function getNoeudLocal(): ?bool {\n return $this->noeudLocal;\n }", "function __isset( $var_name ){\n\t\tif( $var_name == 'categories' ){\n\t\t\treturn !empty($this->terms);\n\t\t}\n\t\treturn !empty($this->$var_name);\n\t}", "public function has($key)\n {\n return isset($this->container[$key]) ? $this->container[$key] : null;\n }", "function get_var($query=null,$x=0,$y=0)\n\t\t{\n\n\t\t\t// Log how the function was called\n\t\t\t$this->func_call = \"\\$db->get_var(\\\"$query\\\",$x,$y)\";\n\n\t\t\t// If there is a query then perform it if not then use cached results..\n\t\t\tif ( $query )\n\t\t\t{\n\t\t\t\t$this->query($query);\n\t\t\t}\n\n\t\t\t// Extract var out of cached results based x,y vals\n\t\t\tif ( $this->last_result[$y] )\n\t\t\t{\n\t\t\t\t$values = array_values(get_object_vars($this->last_result[$y]));\n\t\t\t}\n\n\t\t\t// If there is a value return it else return null\n\t\t\treturn (isset($values[$x]) && $values[$x]!=='')?$values[$x]:null;\n\t\t}", "function getValueOrNull($value) {\n global $db;\n if(strlen($value) == 0) return \"NULL\";\n else return \"'\".$db->validate($value).\"'\";\n}", "public function __get(string $name) {\n\t\treturn $this->data[$name] ?? null;\n\t}", "public function getValue(): ?string;", "function getVal(array $data, string $target)\n{\n return isset($data[$target]) ? $data[$target] : null;\n}", "public function __get($key) {\n if(isset($this->storage[$key]) ) {\n return $this->storage[$key];\n }\n return null;\n }", "public function getValue($key){\n\t\tif (isset($this->_storage[$key])){\n\t\t\treturn $this->_storage[$key];\n\t\t}else{\n\t\t\treturn null;\n\t\t}\n\t}", "public function __isset( $var ){\n\t\t//if isset is invoked on $EM_Bookings->bookings then we'll assume it's only set if the bookings property is empty, not if null.\n\t\t$result = false;\n\t\tif( $var == 'bookings' ){\n\t\t\t$result = $this->bookings !== null;\n\t\t}\n\t\treturn $result;\n\t}", "function __get($name)\n {\n if($this->offsetExists($name)) {\n return $this->item[$name];\n }\n \n return null;\n }", "public function __isset($varName) {\n\t\treturn $this->get($varName) !== null;\n\t}", "function get_var($query=null,$x=0,$y=0, $use_prepare=false)\n\t\t{\n\t\t\t// Log how the function was called\n\t\t\t$this->log_query(\"\\$db->get_var(\\\"$query\\\",$x,$y)\");\n\n\t\t\t// If there is a query then perform it if not then use cached results..\n\t\t\tif ( $query)\n\t\t\t{\n\t\t\t\t$this->query($query, $use_prepare);\n\t\t\t}\n\n\t\t\t// Extract public out of cached results based x,y vals\n\t\t\tif ( $this->last_result[$y] )\n\t\t\t{\n\t\t\t\t$values = array_values(get_object_vars($this->last_result[$y]));\n\t\t\t}\n\t\t\t\n\t\t\t// If there is a value return it else return null\n\t\t\treturn (isset($values[$x]) && $values[$x]!=='')?$values[$x]:null;\n\t\t}", "public function __get($var)\n\t{\n\t\t$entity = $this->execute();\n\t\tif($entity) {\n\t\t\treturn $entity->$var;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "function __isset($name) {\n $empty = empty($this->_vars[$name]);\n return ! $empty;\n }", "public function get_item_notnull()\n {\n $this->db->select(\"komoku_id,kubun,komoku_name_1\");\n $this->db->from('m_komoku');\n $this->db->where('del_flg','0');\n $this->db->where('kubun','000');\n $this->db->order_by('komoku_name_1', 'ASC');\n // $this->db->order_by('kubun', 'ASC');\n\n $query = $this->db->get();\n $result = $query->result_array();\n if (sizeof($result) > 0) {\n return $result;\n }\n return null;\n }", "function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('DataObjects_Notahistorico',$k,$v); }" ]
[ "0.61236715", "0.5843432", "0.57309675", "0.56989664", "0.5671648", "0.5644795", "0.5617439", "0.5590111", "0.5580863", "0.5552899", "0.55261075", "0.5525808", "0.54966396", "0.54742855", "0.54590064", "0.54375464", "0.5428301", "0.5424459", "0.5419782", "0.535191", "0.53243285", "0.5306372", "0.5294774", "0.5287473", "0.52874506", "0.52773297", "0.5276445", "0.52680373", "0.526672", "0.5264119", "0.5259845", "0.52542335", "0.52467793", "0.5242773", "0.52387923", "0.5232717", "0.521937", "0.520576", "0.5189725", "0.5186631", "0.5181573", "0.5176291", "0.5175656", "0.5171263", "0.5168595", "0.51638305", "0.5160721", "0.51604635", "0.51597065", "0.5157503", "0.51496863", "0.5134035", "0.51276433", "0.51263684", "0.5126111", "0.51204944", "0.51198846", "0.5106675", "0.5106412", "0.51030755", "0.5098466", "0.5097688", "0.5087499", "0.50856894", "0.50834644", "0.5079244", "0.5078948", "0.5075149", "0.5074801", "0.50724834", "0.5070271", "0.506308", "0.50585085", "0.50550973", "0.5051694", "0.5049217", "0.50471836", "0.50405663", "0.5031068", "0.50305355", "0.502788", "0.50204355", "0.5019077", "0.50178605", "0.501431", "0.50108135", "0.50042194", "0.49997836", "0.49946117", "0.49922937", "0.49891412", "0.49862108", "0.49854398", "0.49833047", "0.49818155", "0.49798095", "0.4979245", "0.49785212", "0.4978145", "0.49755123" ]
0.51432025
51
Retorna false em caso da varivavel nao existir
public function __set($var,$val){ if(!isset($this->$var)) return false; $this->$var=$val; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function exists()\n {\n return false;\n }", "public function exists(){\n\n\t\treturn (!empty($this->_data)) ? true : false;\n\n\t}", "function exists() {\n\t\tif ($this->exists) return true;\n\t\treturn false;\n\t}", "public function exists()\n {\n return false;\n }", "public function Exists();", "public static function isExist()\n\t{\n\t\t$fields = self::getFields();\n\t\treturn !empty($fields);\n\t}", "function exists($var)\n\t{\n\t\treturn isset($var) && !empty($var);\n\t}", "protected function exists() {}", "public function exists(): bool;", "public function exists(): bool;", "public function exists(): bool;", "function exists() {\n\t return !empty($this->id);\n\t}", "public function exists(){\n\t\treturn ($this->count() > 0);\n\t}", "public function exists() {}", "public function exists();", "public function exists();", "public function exists();", "public function isExist() {\n\t\tif (!empty($this->enCryptKey) && !empty($this->deCryptKey) && !empty($this->certKey)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function isExists()\n\t{\n\t\treturn $this->storage->isExists() && $this->dictionary->isExists();\n\t}", "public function exists()\n {\n return ($this->id) ? true : false;\n }", "public function exists() {\n\t\treturn !is_null($this->id);\n\t}", "function exists() {\n\t\t$ret = (bool) (\n\t\t\t$this->getAddLine1() ||\n\t\t\t$this->getAddLine2() ||\n\t\t\t$this->getTown() ||\n\t\t\t$this->getPostalCode() ||\n\t\t\t$this->getLat() ||\n\t\t\t$this->getLng()\n\t\t);\n\t\treturn $ret;\n\t}", "public function exists()\n {\n return true;\n }", "function exists($data){\n if(isset($data) and !empty($data)){\n return true;\n }\n return false;\n}", "public function exists() {\n\t\treturn !isset($userData);\n\t}", "abstract public function exists();", "abstract public function exists();", "function exists()\r\n\t{\r\n\t\treturn ( ! empty($this->id));\r\n\t}", "public function exists() {\n\t\ttry {\n\t\t\t$this->load();\n\t\t\treturn true;\n\t\t} catch ( \\Exception $e ) {\n\t\t\treturn false;\n\t\t}\n\t}", "public function exists()\n {\n return !empty($this->data);\n }", "public function exists()\n {\n return ($this->id > 0) ? true : false;\n }", "public function has(string $variable): bool;", "public function exists(): bool {\n return property_exists($this, 'exists') && $this->exists;\n }", "function __isset($name) {\n\t\treturn array_key_exists($name,$this->object);\n\t}", "public function isExist(){\n\t\t\tif(file_exists($this->_nameFile)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "public function has(string $variableName): bool;", "public function exists() {\n\t\treturn $this->_exists;\n\t}", "public function exists($value) {\n return FALSE;\n }", "public function exists()\n {\n return !empty($this->ID);\n }", "public function exist(string $key): bool\r\n {\r\n return isset($this->$key) === true;\r\n }", "private function checkIsExists(): bool\n {\n $where = [\n $this->table. '.vendorId' => $this->vendorId,\n $this->table. '.campaign' => $this->campaign,\n ];\n\n if (!is_null($this->id)) {\n $where[$this->table. '.id !='] = $this->id;\n }\n\n $id = $this->readImproved([\n 'what' => [$this->table. '.id'],\n 'where' => $where\n ]);\n\n return !is_null($id);\n }", "public function exists() {\n return $this->shareData !== false;\n }", "function exists( &$variable )\n{\n\treturn ( isset( $variable ) && !empty( $variable ) );\n}", "private function checkIsExists(): bool\n {\n $id = $this->readImproved([\n 'what' => [$this->table. '.id'],\n 'where' => [\n $this->table. '.listId' => $this->listId,\n $this->table. '.campaignId' => $this->campaignId,\n ]\n ]);\n\n return !is_null($id);\n }", "function exists() {\n \n return !empty($this->cache);\n \n }", "public function exists()\r\n {\r\n }", "public function has($name) {\n if ($this->get($name, false) != false)\n return true;\n else \n return false;\n }", "static public function has($key)\r\n {\r\n /* Let's make sure we have a valid variable name */\r\n self::validateKey($key);\r\n\r\n /* Fset::get returns null if the specified variable does not exist */\r\n $value = Fset::get(self::$values, $key);\r\n return !is_null($value);\r\n }", "public function __isset($var) {\n return $this->__exists($var, false) && isset($this->$var);\n }", "public function exists($key) {\n return false;\n }", "public function exist()\n {\n return ($this->count() > 0);\n }", "function varExists($sectionName, $varKey, $sectionID='', $attr='VALUE') {\n if (isset($this->sectionList[$sectionName])) \n return $this->sectionList[$sectionName]->varExists($sectionID, $varKey, $attr);\n else { \n return false;\n }\n }", "public function exist($key) {\n return isset($this->objects[$key]);\n }", "public function exists(string $key): bool\n {\n return array_key_exists($key, $this->variables);\n }", "public function has(): bool\n\t{\n\t\treturn isset(\n\t\t\tstatic::getInputArray()[$this->key]\n\t\t);\n\t}", "private function flag_exists()\n {\n //check the flag\n return \\Storage::exists($this->getFlagPath());\n }", "function exists($name) {\n return isset($this->store[$name]);\n }", "public function isExists(){\n\t\treturn file_exists($this->getFullName());\n\t}", "public function exists(){\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\t$bReturn = false;\r\n\r\n\t\t\tif (! isset ( $this->id )) {\r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$dsh_id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t$sql = \"SELECT COUNT(*) as totalRow FROM $this->sqlTable WHERE dsh_id = ?\";\r\n\r\n\t\t\t//count how many rows found\r\n\t\t\t$totalRow = $ks_db->fetchOne ( $sql, $this->id );\r\n\r\n\t\t\tif ($totalRow > 0) {\r\n\t\t\t\t$bReturn = true;\r\n\t\t\t}else {\r\n\t\t\t\t$bReturn = false;\r\n\t\t\t}\r\n\r\n\t\t\treturn $bReturn;\r\n\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql);\r\n\t\t\techo \"Fatal Error: \" . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "public static function exists($key) {\n return isset(self::$vars[$key]);\n }", "public function exists($key) {\n\t\treturn $this -> get($key) === FALSE;\n\t}", "public function has($key){\n return (array_key_exists($key,$this->settings));\n }", "public function __isset($name)\n {\n return $this->var_holder->has($name);\n }", "public function exists($key): bool;", "public function exist($key)\n {\n return isset($this->_data[$key]);\n }", "public function exists()\n {\n }", "public function exists()\n {\n }", "public function exists() {\n\t\tglobal $wpdb, $bp;\n\n\t\t// Check cache first\n\t\t$cached = wp_cache_get( $this->field_id, 'bp_xprofile_data_' . $this->user_id );\n\n\t\tif ( $cached && ! empty( $cached->id ) ) {\n\t\t\t$retval = true;\n\t\t} else {\n\t\t\t$retval = $wpdb->get_row( $wpdb->prepare( \"SELECT id FROM {$bp->profile->table_name_data} WHERE user_id = %d AND field_id = %d\", $this->user_id, $this->field_id ) );\n\t\t}\n\n\t\treturn apply_filters_ref_array( 'xprofile_data_exists', array( (bool)$retval, $this ) );\n\t}", "public static function exist($key) ;", "public function __isset($varName) {\n\t\treturn $this->get($varName) !== null;\n\t}", "function exists($key) {\n\t\treturn array_key_exists($key,$this->item);\n\t}", "public function exist($key);", "public function isset(): bool\n\t{\n\t\treturn isset($this->_value);\n\t}", "public function exists()\n {\n if (get_post($this->id)) {\n return true;\n }\n\n return false;\n }", "public function offsetExists($name)\n {\n return isset($this->vars[$name]);\n }", "public static function exists($_name) {\n\t\tif (!$_name) {\n\t\t\ttrigger_error(self::TEXT_Variable);\n\t\t\treturn array(FALSE,NULL);\n\t\t}\n\t\t$_var=&self::ref(self::resolve($_name));\n\t\treturn isset($_var);\n\t}", "function __isset($name) {\n $empty = empty($this->_vars[$name]);\n return ! $empty;\n }", "public function exists(){\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\t\t\t\r\n\t\t\t$bReturn = false;\r\n\t\t\t\r\n\t\t\tif (! isset ( $this->id )) { \r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t$sql = \"SELECT COUNT(*) as totalRow FROM $this->sqlTable WHERE lp_id = ?\";\r\n\r\n\t\t\t//count how many rows found\r\n\t\t\t$totalRow = $ks_db->fetchOne ( $sql, $this->id );\r\n\t\t\t\r\n\t\t\tif ($totalRow > 0) {\r\n\t\t\t\t$bReturn = true;\r\n\t\t\t}else {\r\n\t\t\t\t$bReturn = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn $bReturn;\r\n\t\t\t\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql);\r\n\t\t\techo \"Fatal Error: \" . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "public function exist()\n {\n return ( !! ldap_get_name($this->username));\n }", "function in_vars($name){ // check the template variable\n\treturn array_key_exists($name, $this->vars);\n}", "public function __isset($name)\n\t{\n\t\treturn (bool) array_key_exists($name, $this->_data);\n\t}", "public function exists()\n {\n return $this->exists;\n }", "public function exists($name) {\r\n\t return $this->_data->exists($name);\r\n\t}", "public function has($name) {\n \treturn $this->view->hasVar($name);\n }", "public function exists(): bool\n {\n if ($this->shouldEmulateExecution()) {\n return false;\n }\n\n return $this->one() !== null;\n }", "function exists($name, $key=null) {\n if ($key) {\n if(!$this->cache[$name]) {\n return false;\n }\n return array_key_exists($key, $this->cache[$name]);\n }\n return array_key_exists($name, $this->cache);\n }", "public function hasValueForKey($key) {\n\t\treturn array_key_exists($key, $this->store);\n\t}", "static function exists($id) {\n $result = self::get($id);\n if (count($result) > 0) return true;\n return false;\n }", "function __isset($name)\n {\n return $this->exists($name);\n }", "public function __isset($name) {\n return array_key_exists($name, $this->data);\n }", "public function productExist()\n {\n if ($this->product) {\n $ret = true;\n } else {\n $ret = false;\n }\n \n return $ret;\n }", "public function valid()\n\t{\n\t\t$key = key($this->var);\n\t\t$var = ($key !== NULL && $key !== FALSE);\n\t\techo \"valid: $var\\n\";\n\t\treturn $var;\t\n\t}", "public function existsField($key){ return array_key_exists($key,$this->field_map); }", "public function __isset($name)\n {\n return $this->varHolder->has($name);\n }", "public function __isset($name){\n return !empty($this->vars[$name]);\n }", "public function offsetExists($index)\n\t{\n\t\tif (isset(self::$global[$index]))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\treturn parent::offsetExists($index);\n\t}", "function exists($key);", "public function has ($value);", "function exists() {\n\t\tif ( !$this->postID )\n\t\t\treturn false;\n\t\t\t\n\t\t$sql = \"SELECT post_id FROM $this->cacheTable WHERE post_id = \" . $this->db->escape( $this->postID ) . \"\";\n\t\t\n\t\t$results = $this->db->get_results( $sql );\n\t\t\n\t\tif ( $results[0] )\n\t\t\treturn true;\n\t\t\t\n\t\treturn false;\n\t\t\n\t}", "public function exists() {\n return $this->sessionData !== false;\n }", "public function exists($key){return array_key_exists($key,$this->items_array);}" ]
[ "0.76794213", "0.7575873", "0.7468266", "0.7303706", "0.72400653", "0.72040135", "0.7193973", "0.7192371", "0.71799886", "0.71799886", "0.71799886", "0.71757257", "0.7134647", "0.712213", "0.71114194", "0.71114194", "0.71114194", "0.709535", "0.70927507", "0.7076352", "0.7065455", "0.7048132", "0.699538", "0.6988665", "0.69817406", "0.69777", "0.69777", "0.6975522", "0.6965827", "0.694946", "0.6935209", "0.6897736", "0.6873159", "0.6857572", "0.685377", "0.6841763", "0.6835393", "0.6829636", "0.6805249", "0.67998385", "0.67759275", "0.6773306", "0.67567194", "0.6744995", "0.67412484", "0.6735401", "0.6729268", "0.67077094", "0.67029065", "0.6678888", "0.66780865", "0.6660859", "0.6659275", "0.66569406", "0.6654163", "0.6652219", "0.66442925", "0.6641701", "0.66370004", "0.66369236", "0.66330403", "0.6630833", "0.6615502", "0.6609556", "0.6602104", "0.66004616", "0.6600234", "0.65955997", "0.65944624", "0.65862256", "0.6584106", "0.65830535", "0.65817696", "0.6577367", "0.6574847", "0.6569167", "0.6563033", "0.65570265", "0.65481013", "0.6547815", "0.6544934", "0.6538259", "0.65366393", "0.6536243", "0.6534089", "0.6532277", "0.6523507", "0.65221626", "0.6520298", "0.6519679", "0.6505486", "0.6504116", "0.65019375", "0.64980847", "0.64975035", "0.6480851", "0.648029", "0.64738923", "0.6472681", "0.64725727", "0.6468243" ]
0.0
-1
trims the value of a property and converts the string values "true" and "false" to boolean
public function trim(string $propertyValue): bool|string { switch ($propertyValue) { case 'true': $propertyValue = true; break; case 'false': $propertyValue = false; break; default: $propertyValue = trim($propertyValue); break; } return $propertyValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toBoolean()\n {\n $key = $this->toLowerCase()->str;\n $map = array(\n 'true' => true,\n '1' => true,\n 'on' => true,\n 'yes' => true,\n 'false' => false,\n '0' => false,\n 'off' => false,\n 'no' => false,\n );\n\n if (array_key_exists($key, $map)) {\n return $map[$key];\n } elseif (is_numeric($this->str)) {\n return ((int) $this->str > 0);\n } else {\n return (bool) $this->regexReplace('[[:space:]]', '')->str;\n }\n }", "public function wt_parse_bool_field($value) {\n if ('0' === $value) {\n return false;\n }\n\n if ('1' === $value) {\n return true;\n }\n\n // Don't return explicit true or false for empty fields or values like 'notify'.\n return wc_clean($value);\n }", "function toBoolean(){\n\t\tif(in_array($this->lower(),array('','false','off','no','n','f'))){\n\t\t\treturn false;\n\t\t}\n\t\treturn (bool)$this->toString();\n\t}", "function rest_sanitize_boolean($value)\n {\n }", "private function strToBoolean($value) {\r\n\t\tif ($value && strtolower($value) === \"true\") {\r\n\t\t return true;\r\n\t\t} else {\r\n\t\t return false;\r\n\t\t}\r\n\t}", "public function getBool($prop) {\n\n\t\t\t// Get property\n\t\t\t$val = $this->get($prop);\n\n\t\t\t// String/numeric bool?\n\t\t\tif ($val === 'false') { \n\t\t\t\t$val = false; \n\t\t\t} elseif ($val === 'true') {\n\t\t\t\t$val = true;\n\t\t\t} elseif ($val === 1 || $val === '1') {\n\t\t\t\t$val = true;\n\t\t\t} elseif ($val === 0 || $val === '0') {\n\t\t\t\t$val = false;\n\t\t\t}\n\n\n\n\n\t\t\t// Boolean?\n\t\t\tif (is_bool($val)) {\n\t\t\t\treturn $val;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t}", "function to_boolean($val);", "private function convert_to_boolean_attributes() {\n foreach ($this->attributes() as $attr => $val) {\n if (preg_match('/^can_/', $attr) || preg_match('/^is_/', $attr)) {\n $this->$attr = ($val == '1');\n }\n }\n }", "public function bool()\n {\n return filter_var($this->value, FILTER_VALIDATE_BOOLEAN);\n }", "function convert_string_to_boolean($string)\n{\n return filter_var($string, FILTER_VALIDATE_BOOLEAN);\n}", "function sanitize_bool( $value, $key, array $data ) {\n\tif ( is_bool( $value ) ) {\n\t\treturn $value;\n\t} elseif ( is_numeric( $value ) ) {\n\t\treturn (bool) $value;\n\t} elseif ( is_string( $value ) ) {\n\t\tif ( in_array( strtolower( $value ), array( 'true', 'on', 'yes' ), true ) ) {\n\t\t\treturn true;\n\t\t} elseif ( in_array( strtolower( $value ), array( 'false', 'off', 'no' ), true ) ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\t\n\treturn (bool) $value;\n}", "public function toBool() : bool\n {\n return boolval($this->value);\n }", "public function toBoolean(): bool\n {\n return !!$this->getValue();\n }", "function bool($val,$str=false){\n if(is_string($val)) {\n $val=strtolower($val);\n $val=$val && $val!=\"false\" && $val !=\"no\" && $val !=\"n\" && $val !=\"f\" && $val !=\"off\";\n }else $val=(bool)$val;\n return $str?($val?\"true\":\"false\"):$val;\n}", "public function scrubBool(bool $data) : bool;", "function to_boolean ($value) {\n\tif (\n\n\t\t// Falsy\n\t\t!$value or\n\n\t\t// Empty\n\t\tempty($value) or\n\n\t\t// Zero or less\n\t\t(is_numeric($value) and strval($value) <= 0) or\n\n\t\t// Keyword\n\t\t(is_string($value) and in_array(trim(strtolower($value)), array('null', 'nul', 'nil', 'false')))\n\n\t) {\n\t\treturn false;\n\t} else {\n\t\treturn true;\n\t}\n}", "public function castToBool($value);", "static function toBoolean ($v)\n {\n return is_string ($v) ? get (self::$BOOLEAN_VALUES, $v, false) : boolval ($v);\n }", "public function filter($value)\n {\n return filter_var($value, FILTER_VALIDATE_BOOLEAN);\n }", "private function fixTrueFalse(&$value, $key) {\r\n if ($value == 'false') {\r\n \t$value = false;\r\n } elseif ($value == 'true') {\r\n $value = true;\r\n }\r\n }", "public static function tryParseBoolean(mixed $value): mixed\n {\n if (! is_string($value)) {\n return $value;\n }\n\n if (ArrayUtils::inArrayI($value, ['true', 'false'])) {\n return stripos($value, 'true') === 0;\n }\n\n return $value;\n }", "public function clean_boolean($input)\r\n {\r\n settype($input, 'boolean');\r\n return $input;\r\n }", "function boolval($val){\n return $val === 'true' ? true : false;\n}", "abstract public function unescapeBoolean($bool);", "public function stringToBoolean($val) {\n return ($val === \"true\");\n }", "private function parseBoolean($str)\n {\n return $str == \"true\" ? true : false;\n }", "static function toBoolean($data)\r\n {\r\n if(!is_string($data))\r\n return (bool) $data;\r\n switch(strtolower($data)) {\r\n case '1':\r\n case 'TRUE':\r\n case 'on':\r\n case 'yes':\r\n case 'y':\r\n return TRUE;\r\n default:\r\n return FALSE;\r\n }\r\n }", "function o_castBool($value) {\n\t\t\treturn Obj::singleton()->castBool($value);\n\t\t}", "public function convertToBoolean($value) {\r\n return $value !== 'false' && $value !== 0 && $value !== false && $value !== '' && $value !== '0';\r\n }", "public function set($value)\n\t{\n\t\treturn filter_var($value, FILTER_VALIDATE_BOOLEAN);\n\t}", "public function set($value)\n\t{\n\t\treturn filter_var($value, FILTER_VALIDATE_BOOLEAN);\n\t}", "protected function toBool($value)\n\t{\n\t\tif ($value === true) {\n\t\t\treturn 'yes';\n\t\t}\n\t\treturn 'no';\n\t}", "public static function toBool($val) {\n return ($val === true || in_array($val, array('true', 'yes', 'on', 'checked', '1', 1))) ? true : false;\n }", "private function _convert_boolean(mixed $value): bool {\n\t\treturn Types::toBool($value);\n\t}", "public function isTrue()\n {\n \n return !!$this->value;\n \n }", "function erp_validate_boolean( $value ) {\n return filter_var( $value, FILTER_VALIDATE_BOOLEAN );\n}", "protected function filterBoolean($value) {\n $boolValue = filter_var($value, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE);\n if(!is_null($boolValue) && preg_match('/(true|false)/i', $value)) {\n $value = $boolValue;\n }\n\n return $value;\n }", "public function toBool(): bool\n\t{\n\t\treturn false;\n\t}", "protected function removeLeadingBoolean(string $value)\n {\n return preg_replace('/and |or /i', '', $value, 1);\n }", "function bool ($value)\r\n{\r\n\tif ($value === true || $value === false)\r\n\t\treturn $value;\r\n\r\n\treturn $value === 'true' || ($value !== 'false' && !!$value);\r\n}", "public function toBooleanFilter($value)\n {\n return $value == '1' || $value == '0'\n ? filter_var($value, FILTER_VALIDATE_BOOLEAN)\n : $value;\n }", "public static function toBool($string)\n\t{\n\t\t$string = trim((string)$string);\n\t\t$string = strtolower($string);\n\n\t\tif (in_array($string, array(1, 'true', 'yes', 'on', 'enabled'), true))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\tif (in_array($string, array(0, 'false', 'no', 'off', 'disabled'), true))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn (bool)$string;\n\t}", "protected function _toBoolean($value)\n\t{\n\t\tif (is_bool($value)) {\n\t\t\treturn $value;\n\t\t}\n\t\tif (is_int($value) || is_float($value)) {\n\t\t\treturn ($value !== 0);\n\t\t}\n\t\tif (is_string($value)) {\n\t\t\treturn ($value === 't' || $value === 'T' || $value === 'true');\n\t\t}\n\t\treturn (boolean)$value;\n\t}", "public function toBool()\n {\n $this->value = (bool) $this->value;\n\n return $this;\n }", "public function toBoolean(): bool\n {\n return $this->boolean;\n }", "protected function fix_boolean_settings() {\n\t\tforeach ($this->boolean_settings as $setting) {\n\t\t\t$val = $this->get_setting($setting);\n\t\t\tif ($val) {\n\t\t\t\t$this->add_setting($setting, filter_var($val, FILTER_VALIDATE_BOOLEAN));\n\t\t\t}\n\t\t}\n\t}", "public static function normalize($value)\n {\n if ($value === true) {\n $value = \"true\";\n } elseif ($value === false) {\n $value = \"false\";\n }\n\n return $value;\n }", "public function getBool(): bool;", "protected function value($value)\n {\n if ($value === 'null') {\n $value = null;\n } elseif ($value === 'true') {\n $value = true;\n } elseif ($value ==='false') {\n $value = false;\n } else {\n $value = str_replace('\\n', \"\\n\", $value);\n }\n return trim($value);\n }", "abstract function appliedOnProperty(mixed $value = null): null|string|bool;", "function converter(&$value, $key){\n if($value === \"true\") {\n $value = TRUE;\n } elseif ($value === \"false\") {\n $value = FALSE;\n }\n if ($key === \"not\") {\n if ($value === \"1\") {\n $value = TRUE;\n }\n if ($value === \"0\") {\n $value = FALSE;\n }\n }\n }", "private function filter_settings(&$value, $key)\n {\n if ($value === TRUE OR $value === FALSE)\n {\n $value = ($value === TRUE) ? 'true' : 'false';\n }\n }", "function booleanValuefromString($s) {\r\n\t\treturn ((strcmp($s, '0') != 0) && (strcasecmp($s, 'false') != 0));\r\n\t}", "function ToBool($var) \n{\n if (!is_string($var)) \n return (bool) $var;\n \n switch (strtolower($var)) \n { \n case '1':\n case 'true':\n case 'on':\n case 'yes':\n case 'y':\n return true;\n default:\n return false;\n }\n}", "public static function normalize_values($settings) {\n\t\treturn array_map(function($value) {\n\t\t\tif ($value === 'true') {\n\t\t\t\treturn true;\n\t\t\t} else if ($value === 'false') {\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\treturn $value;\n\t\t\t}\n\t\t}, $settings);\n\t}", "protected function escapeBoolean($value)\n {\n return ($value) ? $this->booleanTrue : $this->booleanFalse;\n }", "function toBool($var) {\n\tif (true === $var || 1 === $var) {\n\t\treturn true;\n\t}\n\tswitch (strtolower($var)) {\n\t\tcase \"yes\":\n\t\tcase \"on\":\n\t\tcase \"1\":\n\t\tcase \"y\":\n\t\tcase \"true\":\n\t\tcase \"t\":\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn false;\n\t}\n}", "function bool2str($data)\n {\n TRUE === $data && $data = 'true';\n FALSE === $data && $data = 'false';\n return $data;\n }", "public function boolValue()\n {\n return $this->value;\n }", "public function getRealValue(string $value)\n {\n if ($value === \"true\") {\n return true;\n }\n\n if ($value === \"false\") {\n return false;\n }\n\n return $value;\n }", "function fastshop_sanitize_checkbox( $checked ) {\n return (bool) $checked;\n}", "function wpsl_bool_check( $atts ) {\n\n foreach ( $atts as $key => $val ) {\n if ( in_array( $val, array( 'true', '1', 'yes', 'on' ) ) ) {\n $atts[$key] = true;\n } else if ( in_array( $val, array( 'false', '0', 'no', 'off' ) ) ) {\n $atts[$key] = false;\n }\n }\n\n return $atts;\n}", "public static function prepareBool($value)\n {\n return (bool) $value;\n }", "function readBoolean();", "public static function toBoolean($obj)\n {\n return filter_var($obj, FILTER_VALIDATE_BOOLEAN);\n }", "public function cleanOnUpdate()\n {\n $value = $this->getAttribute('clean');\n \n return 'true' == $value?true:false;\n \n }", "public function getBoolField()\n {\n $value = $this->get(self::BOOL_FIELD);\n return $value === null ? (boolean)$value : $value;\n }", "function boolval($var) {\r\n if (is_bool($var)) { return $var; }\r\n switch ($var) {\r\n case 'true': return true;\r\n case 'false': return false;\r\n default: throw new InvalidArgumentException('Cannot parse value '.$var);\r\n }\r\n}", "public function value(): bool\n {\n if (($val = $this->raw()) === null) {\n return false;\n }\n\n return (new Boolean)->decode($val);\n }", "public static function parse($param) {\n if (!is_array($param) && !is_object($param)) {\n $compare = trim(strtolower($param));\n if (in_array($compare, array('yes', 'true', 'on', '1'))) {\n return true;\n }\n if (in_array($compare, array('no', 'false', 'off', '0'))) {\n return false;\n }\n }\n return $param;\n }", "function _parseBooleanEnv($s) {\n return strtoupper(getenv($s)) == 'TRUE';\n}", "function stage_bool_to_string($bool)\n{\n if (! is_bool($bool)) {\n $bool = wc_string_to_bool($bool);\n }\n return true === $bool ? 'yes' : 'no';\n}", "function str_bool($string) {\n if (strtolower($string) === 'true') {\n return true;\n } elseif (strtolower($string) === 'false') {\n return false;\n }\n\n return $string;\n}", "private function toBoolean($string)\n\t{\n\t\tif ($string === 'true') {\n\t\t\treturn true;\n\t\t}\n\t\tif ($string === 'false') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn null;\n\t}", "function mm_auto_update_make_bool( $value, $default = true ) {\n\tif ( 'false' === $value ) { $value = false; }\n\tif ( 'true' === $value ) { $value = true; }\n\tif ( true !== $value && false !== $value ) { $value = $default; }\n\treturn $value;\n}", "private function bool($value)\n\t{\n\t\t// We do *not* follow the string 0 php casting rule.\n\t\t// {if field} should be true if the user entered\n\t\t// something. Doesn't matter what it is.\n\t\tif ($value === '0')\n\t\t{\n\t\t\treturn TRUE;\n\t\t}\n\n\t\treturn (bool) $value;\n\t}", "static public function GetBooleanValue( $value )\r\n\t{\r\n\t\tif( gettype( $value ) == 'boolean')\r\n\t\t{\r\n\t\t\tif( $value == true )\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\telseif( is_numeric( $value ) )\r\n\t\t{\r\n\t\t\tif( $value > 0 )\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$cleaned = strtoupper( trim( $value ) );\r\n\r\n\t\t\tif( $cleaned == 'ON' )\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telseif( $cleaned == 'SELECTED' || $cleaned == 'CHECKED' )\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telseif( $cleaned == 'YES' || $cleaned == 'Y')\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telseif( $cleaned == 'TRUE' || $cleaned == 'T')\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function boolval($in, $strict = false) {\n\t\tif (is_bool($in)){\n\t\t\treturn $in;\n\t\t}\n\t\t$in = strtolower($in);\n\t\t$out = null;\n\t\tif (in_array($in, array('false', 'no', 'n', 'off', '0', 0, null), true)) {\n\t\t\t$out = false;\n\t\t} else if ($strict) {\n\t\t\tif (in_array($in, array('true', 'yes', 'y', 'on', '1', 1), true)) {\n\t\t\t\t$out = true;\n\t\t\t}\n\t\t} else {\n\t\t\t$out = ($in ? true : false);\n\t\t}\n\t\treturn $out;\n\t}", "public function testBooleanAttribute() : void\n {\n $string = $this->basicSanitizer->sanitize('<a href=\"#\" download=\"true\">Link</a>');\n $this->assertEquals('<a href=\"#\" download=\"\">Link</a>', $string);\n }", "function isTrue($value) {\r\n\treturn is_bool($value) ? $value : (bool)preg_match('/^(1|y|yes|true|on)$/i',(string)$value);\r\n}", "function boolval( $val ) {\r\n\t\treturn (bool) $val;\r\n\t}", "private static function bool2str($v)\n {\n //convert boolean to text value.\n $v = $v === true ? 'true' : $v;\n $v = $v === false ? 'false' : $v;\n return $v;\n }", "public function testToStringWithBooleanValueTrue()\n\t{\n\t // initialize a new Boolean instance\n\t $boolean = new TechDivision_Lang_Boolean(true);\n\t\t// check that the two booleans are equal\n\t\t$this->assertEquals('true', $boolean->__toString());\n\t}", "public function testToStringWithStringValueOff()\n\t{\n\t // initialize a new Boolean instance\n\t $boolean = new TechDivision_Lang_Boolean('off');\n\t\t// check that the two boolean are equal\n\t\t$this->assertEquals('false', $boolean->__toString());\n\t}", "function bool_to_string($value) {\n return $value ? 'true' : 'false';\n }", "private function isValid( $prop )\n\t{\n\t\treturn ($prop !== 'false');\n\t}", "private function isValid( $prop )\n\t{\n\t\treturn ($prop !== 'false');\n\t}", "function format_bool(mixed $input): string\n{\n return $input ? 'true' : 'false';\n}", "public function boolean_style($value){\n\t\t//if it is null, it fails, if it isn't null then it succeeds\n\t\t$this->set_message('boolean_style', 'The %s field does not evaluate to a boolean.');\n\t\t$bool = filter_var($value, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE);\n\t\treturn !is_null($bool);\n\n\t}", "function wp_validate_boolean($value)\n {\n }", "function bool($value)\n{\n return ! in_array(strtolower($value), ['no', 'false', '0', '', '-1']);\n}", "function validBool($value)\n {\n return filter_var($value, FILTER_VALIDATE_BOOLEAN);\n }", "public static function plainBoolean($value)\n {\n if ($value === true) {\n return 'Yes';\n } elseif ($value === false) {\n return 'No';\n }\n\n return '---';\n }", "public function testToStringWithBooleanValueFalse()\n\t{\n\t // initialize a new Boolean instance\n\t $boolean = new TechDivision_Lang_Boolean(false);\n\t\t// check that the two boolean are equal\n\t\t$this->assertEquals('false', $boolean->__toString());\n\t}", "static public function Boolean( $var ) {\r\n\r\n\t\t$options = array('flags' => FILTER_NULL_ON_FAILURE);\r\n\t\t$result = filter_var( $var, FILTER_VALIDATE_BOOLEAN, $options);\r\n\r\n\t}", "#[@test]\n public function boolCast() {\n $this->assertSourcecodeEquals(\n '$s= (bool)$num;',\n $this->emit('$s= (bool)$num;')\n );\n }", "private function sanitizeValue($value): string\n {\n if (is_bool($value)) {\n return $value ? 'true' : 'false';\n }\n\n return (string)$value;\n }", "public function testConvertToBoolean() {\r\n $data = array(\r\n true => true,\r\n false => false,\r\n 'true' => true,\r\n 'false' => false,\r\n 'test' => true,\r\n 0 => false,\r\n '0' => false,\r\n 1 => true\r\n );\r\n\r\n foreach ($data as $value => $expected) {\r\n $this->assertSame($expected, $this->_utils->convertToBoolean($value));\r\n }\r\n }", "function serendipity_ini_bool($var) {\n return ($var === 'on' || $var == '1');\n}", "public function hasValue()\n {\n return $this->property_value->isNotEmpty();\n }" ]
[ "0.6883545", "0.6675164", "0.6520769", "0.6492062", "0.6467755", "0.6393641", "0.6277944", "0.6259679", "0.6248257", "0.6179267", "0.61771524", "0.60993636", "0.6073928", "0.6069417", "0.6052751", "0.5997373", "0.5989429", "0.5969313", "0.59636426", "0.5936935", "0.5933895", "0.5919447", "0.5897504", "0.58883107", "0.5879422", "0.5847677", "0.5814283", "0.5801073", "0.5787857", "0.57674664", "0.57674664", "0.57441527", "0.5741481", "0.5739742", "0.5710778", "0.5697824", "0.5692168", "0.5665478", "0.56612927", "0.5660772", "0.56346816", "0.5626405", "0.5599519", "0.5598829", "0.5588026", "0.5576892", "0.5572906", "0.5572676", "0.55715585", "0.55714536", "0.55592734", "0.5559236", "0.55489457", "0.5548366", "0.5543274", "0.55386037", "0.5505109", "0.54996586", "0.54972255", "0.5496675", "0.5485559", "0.54852444", "0.5480673", "0.5480009", "0.5478157", "0.5477791", "0.5473511", "0.5471537", "0.5467801", "0.54566336", "0.54538333", "0.54531956", "0.5450649", "0.5441323", "0.5435723", "0.54340386", "0.54122186", "0.54118055", "0.5408337", "0.5396685", "0.5380425", "0.5371662", "0.5371159", "0.5365882", "0.53645766", "0.5364225", "0.5364225", "0.5361461", "0.53546554", "0.5354002", "0.53389263", "0.53286374", "0.5303318", "0.5301348", "0.53004676", "0.5283467", "0.52809304", "0.52800065", "0.5275202", "0.527421" ]
0.6566186
2
Do nothing. This should be implemented in subclasses.
protected function displayConfigHeader() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function __() {\n }", "private function __construct()\r\n\t\t{\r\n\r\n\t\t\t/* Do Nothing */\r\n\r\n\t\t}", "public function nothing(): void;", "public function nullberry(): void\n\t{\n\t}", "function __construct() {\n\t\t\t\n\t\t\t/* Do nothing here */\n\t\t\t\n\t\t}", "public function noop()\n {\n }", "protected function __construct() {\n // Do nothing.\n }", "protected function initialize() {\n // NOOP\n }", "public function oops () {\n }", "public function init()\n {\n // Do nothing\n }", "protected function fixSelf() {}", "protected function fixSelf() {}", "private function __construct()\n {\n // Do nothing\n }", "protected function __init__() { }", "private function __construct() { /* Do nothing here */ }", "private function __construct() { /* Do nothing here */ }", "public function __construct() {\n\t\t// Intentionally left empty.\n\t}", "abstract protected function doEvil();", "private function init()\n\t{\n\t\treturn;\n\t}", "protected function reset() {}", "protected function reset() {}", "protected function reset() {}", "final public function onOutOfBand (): void {\n // do nothing\n }", "public function nop()\n {\n }", "public function __construct()\n\t{\n\t\t// nothing to do\t\n\t}", "final private function __construct() {}", "final private function __construct() {}", "private function __clone() {\n // do nothing here\n }", "final private function __construct(){\r\r\n\t}", "public function testNothing()\n {\n $this->markTestIncomplete('This test has not been implemented yet.');\n }", "private function __construct()\t{}", "final private function __construct() { }", "final private function __construct() { }", "final private function __construct() { }", "public function __construct() {\n\t\t// Nothing to do.\n\t}", "final private function __construct() {\n\t\t\t}", "protected function __construct()\n\t{\n\t\t// Nothing here\n\t}", "final private function __construct()\n\t{\n\t}", "final private function __construct()\r\n\t{\r\n\t\treturn false;\r\n\t}", "function noop()\n {\n }", "final private function __construct()\n {\n }", "function __construct()\r\n {\r\n //NOP\r\n }", "abstract protected function _unimplemented() : Exception;", "abstract protected function _unimplemented() : Exception;", "abstract protected function _unimplemented() : Exception;", "protected final function __construct() {}", "protected function clear() {}", "public static function dummy() {}", "public function run()\n {\n /* this particular object won't run */\n }", "public function doNothing()\n\t{\n\t\treturn '';\n\t}", "public function process()\n {\n // do nothing here\n }", "protected function preprocessInternal()\n\t{\n\t\t// void\n\t}", "protected function init()\n\t{\n\t\t// Override this method as required.\n\t}", "public function getBase(): void {}", "private function __construct() {\r\n\t\t\r\n\t}", "private function __construct()\t// Private to prevent object being instantiated outside class\r\n {\r\n // Do nothing\r\n }", "private function __construct() {\r\n\t\r\n\t}", "private function _i() {\n }", "final private function __construct()\n {\n }", "final private function __construct()\n {\n }", "private function __construct()\r\n\t{\r\n\t\r\n\t}", "private function __construct()\r\n\t{\r\n\t}", "private function __construct()\r\r\n\t{\r\r\n\t}", "public function no_op() {\n\t\t\texit( 'Not permitted' );\n\t\t}", "public function reset()\n {\n parent::reset();\n }", "public function __construct()\n\t{\n\t\t// Nothing here\n\t}", "private function __construct()\n\t{\n\t\t\n\t}", "public function init()\n {\n \treturn;\n }", "public function reset()\r\n {\r\n }", "private function __construct()\r\n {}", "protected function reset(): void\n {\n }", "public function custom()\n\t{\n\t}", "private final function __construct() {}", "protected function init() {return;}", "private function __construct () \n\t{\n\t}", "private function __construct()\n {\n // nothing to do here\n }", "protected function _clearAndOutput() {}", "private function __construct( )\n {\n\t}", "function __construct()\r\n\t{\r\n parent::__construct();\r\n\t\t$this->reset();\r\n }", "protected function __construct()\r\n\t\t{\r\n\t\t}", "protected function init()\n\t{\n\t\t\n\t}", "protected function initialize() {}", "protected function initialize() {}", "protected function initialize() {}", "protected function initialize() {}", "private function __construct()\n {\n // disabled method\n }", "protected function __construct() {\n\t\t\n\t}", "protected function __construct() {\n\t\t\n\t}", "public function quash_unused() {\n\t\t// Don't put any code in here.\n\t}", "protected abstract function applyNoArg();", "private function __construct () {}", "private function __construct() {\r\n\t}", "private function __construct() {\r\n\t}", "private function __construct() {\n\t\t}", "public function init() {\n // nothing to do here\n }", "public function onOutOfBand (): void;", "private function __construct()\n\t{\n\t}", "private function __construct()\n\t{\n\t}", "private function __construct()\n\t{\n\t}", "private function __construct()\n\t{\n\t}", "private function __construct()\n\t{\n\t}" ]
[ "0.68121874", "0.6520083", "0.64145255", "0.64137787", "0.63987553", "0.63848495", "0.6285876", "0.6281642", "0.62577003", "0.6226644", "0.6220163", "0.6220163", "0.61998385", "0.6199071", "0.61911345", "0.61911345", "0.61803854", "0.6124378", "0.60969573", "0.605429", "0.60527265", "0.6050895", "0.6042101", "0.6032846", "0.60051733", "0.6001806", "0.6001806", "0.59919596", "0.5986262", "0.5977979", "0.5965372", "0.59613717", "0.59613717", "0.59613717", "0.59507644", "0.59439147", "0.5930463", "0.5922666", "0.5907085", "0.58832836", "0.58753115", "0.58748615", "0.58604586", "0.58604586", "0.58604586", "0.5858249", "0.58557224", "0.58237106", "0.58183223", "0.58166796", "0.5797371", "0.57948935", "0.5794", "0.5761016", "0.57529724", "0.5744089", "0.5738893", "0.57136405", "0.5710759", "0.5710759", "0.5704564", "0.5692781", "0.56785774", "0.5677598", "0.56762916", "0.5670134", "0.56680524", "0.5667798", "0.56640536", "0.56564605", "0.56535363", "0.5652943", "0.5649483", "0.5643373", "0.56342113", "0.5626861", "0.56266594", "0.562121", "0.5615196", "0.5608666", "0.56085736", "0.5600033", "0.5600033", "0.5600033", "0.5600033", "0.55998945", "0.5597897", "0.5597897", "0.5592944", "0.55908954", "0.5587942", "0.5582561", "0.5582561", "0.5582069", "0.558101", "0.55809563", "0.55745816", "0.55745816", "0.55745816", "0.55745816", "0.55745816" ]
0.0
-1
Close anything or shut down do in here.
function __destruct(){}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function close() {}", "public function close() {}", "public function close() {}", "public function close() {}", "public static function close() {}", "function _close() {}", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close()\n\t{\n\t\treturn;\n\t}", "abstract public function close();", "abstract public function close();", "abstract public function close();", "abstract public function close();", "abstract public function close();", "abstract protected function close();", "public function __destruct() {\n $this->close();\n }", "public function __destruct() {\n $this->close();\n }", "public function __destruct()\n {\n if ($this->handle[self::PHP]) {\n $this->_close(self::PHP);\n }\n if (is_resource($this->handle[self::PERL])) {\n $this->_close(self::PERL);\n }\n if (is_resource($this->handle[self::PERL_COMPLETE])) {\n $this->_close(self::PERL_COMPLETE);\n }\n if (is_resource($this->handle[self::ERROR])) {\n $this->_close(self::ERROR);\n }\n }", "function _close() {\n }", "function close() {}", "public function close() {\n // DO NOTHING!!!!\n }", "function __destruct() {\n\t\t$this->close();\n\t}", "public function close() {\n\t\twhile ( count( $this->mWorkStack ) ) {\n\t\t\t$this->profileOut( 'close' );\n\t\t}\n\t}", "public function close() {\n\t}", "public function __destruct() {\r\n\t\t$this->close();\r\n\t}", "public function __destruct()\n {\n $this->close();\n }", "public function __destruct()\n {\n $this->close();\n }", "public function __destruct()\n {\n $this->close();\n }", "public function __destruct()\n {\n $this->close();\n }", "public function __destruct()\n {\n $this->close();\n }", "public function __destruct()\n {\n $this->close();\n }", "public function __destruct() {\n\t\t$this->close();\n\t}", "public function __destruct()\n {\n if ($this->handle[self::PHP]) {\n $this->_close(self::PHP);\n }\n if (is_resource($this->handle[self::PERL])) {\n $this->_close(self::PERL);\n }\n if (is_resource($this->handle[self::PERL_COMPLETE])) {\n $this->_close(self::PERL_COMPLETE);\n }\n if (is_resource($this->handle[self::ERROR])) {\n $this->_close(self::ERROR);\n }\n }", "public function close()\n {\n $this->fclose();\n }", "public function close()\n {\n }", "public function close()\n {\n }", "public function close()\n {\n $this->_c->close();\n }", "function __destruct() {\n\t\t$this->Close();\n }", "public function close() {\n }", "function _close()\n\t{\n\t}", "protected function close(): void\n {\n }", "function close() {\n\t\t$this->disconnect();\n\t}", "function __destruct(){ $this->close(); }", "public function __destroy()\n {\n $this->close();\n }", "public function close()\n {\n $this->_manager->close();\n }", "public function __destruct()\n\t\t{\n\t\t\t$this->close();\n\t\t}", "public function __destruct() {\n\n \t$this->close();\n\n }", "public function close()\n {\n }", "public function close()\n {\n }", "public function close()\n {\n }", "public function close()\n {\n }", "public function close()\n {\n }", "public function close()\n {\n }", "public function close()\n {\n }", "public function close()\n {\n }", "public function close()\n {\n }", "public function __destruct()\n\t\t{\n\t\t\tfclose($this->getHandle());\n\t\t}", "public function close(): void;", "public function close(): void;", "public function close(): void;", "public function __destruct()\n {\n foreach ($this->drivers as $key => $driver) $this->close($key);\n }", "public function close()\n {\n if ( $this->mh ){\n curl_multi_close( $this->mh );\n $this->mh = null;\n }\n }", "public function close()\n {\n if (isset($this->handle)) {\n $this->stats->benchmark('bedrockWorkerManager.db.close', function () {\n $startTime = microtime(true);\n $this->handle->close();\n unset($this->handle);\n });\n }\n }", "public function dispose()\n {\n exit(0);\n }", "protected function close() {\n fclose($this->handle);\n }", "public function __destruct()\n {\n $this->closeFiles();\n }", "public function close() {\n if($this->isOpen()) {\n closedir($this->getPointer());\n parent::close();\n }\n }", "function __destruct()\n {\n\t$this->close();\n }", "public function __destruct() \n\t{\n\t\tif (isset($this->handle)) {\n\t\t\tfclose($this->handle);\n\t\t}\n\t}", "public function __destruct()\n {\n if ($this->handle !== null) {\n \\fclose($this->handle);\n }\n }", "public function selfClosing();", "public function close(){\n\t\t@fclose($this->handler);\n\t}", "public function close(): void\n {\n }", "protected function _close()\n\t{\n\t\t$this->connID->close();\n\t}", "function close();", "function close();", "function close();", "public function close()\n {\n if (null !== $this->handle && \\is_resource($this->handle)) {\n fclose($this->handle);\n $this->handle = null;\n }\n }", "public function cleanResources()\n {\n if (!empty($this->clients)) {\n foreach ($this->clients as $client) {\n $this->close($client);\n }\n\n unset($this->clients);\n }\n\n $this->close($this->socket);\n unset($this->socket);\n }", "static function shutdown()\n\t{\n\t\tif (!empty(self::$channel))\n\t\t{\n\t\t\tself::$channel->close();\n\t\t\tself::$channel = null;\n\t\t}\n\n\t\tif (!empty(self::$connection))\n\t\t{\n\t\t\tself::$connection->close();\n\t\t\tself::$connection = null;\n\t\t}\n\t}", "public function close()\n {\n // Does nothing, since connections are persistent\n }" ]
[ "0.7822811", "0.7822811", "0.7822811", "0.78226125", "0.77408683", "0.77073866", "0.760393", "0.760393", "0.760393", "0.760393", "0.760393", "0.760393", "0.760393", "0.760393", "0.760393", "0.760393", "0.760393", "0.760393", "0.760393", "0.760393", "0.760393", "0.760393", "0.760393", "0.760393", "0.760393", "0.760393", "0.760393", "0.760393", "0.75320524", "0.7475119", "0.7475119", "0.7475119", "0.7475119", "0.7475119", "0.7428058", "0.7394568", "0.7368955", "0.7359033", "0.73221684", "0.7318288", "0.73054016", "0.72977865", "0.72934556", "0.72900236", "0.7285659", "0.7279731", "0.7279731", "0.7279731", "0.7279731", "0.7279731", "0.7279731", "0.7276077", "0.7258635", "0.72532344", "0.7243944", "0.72428983", "0.72271895", "0.7222901", "0.72091794", "0.71957064", "0.7194323", "0.7173677", "0.7154996", "0.71546155", "0.7117232", "0.71134144", "0.7093004", "0.7091237", "0.7091237", "0.7091237", "0.7091237", "0.7091237", "0.7091237", "0.7091237", "0.7091237", "0.7091237", "0.708205", "0.7067832", "0.7067832", "0.7067832", "0.7024397", "0.7013393", "0.7000678", "0.6988176", "0.6986084", "0.69839096", "0.69834566", "0.6977669", "0.6965572", "0.69507456", "0.6917127", "0.6909659", "0.6876432", "0.68642", "0.6839602", "0.6839602", "0.6839602", "0.68271965", "0.68234694", "0.68193966", "0.67795545" ]
0.0
-1
Call any plugins we require.
public function getPlugins() { $this->getPlugin('base'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function plugins()\n {\n $files = ['Plugins'];\n $folder = static::$root.'Plugins'.'/';\n\n self::call($files, $folder);\n\n $files = ['AutoloadFileNotFoundException', 'InfoStructureException'];\n $folder = static::$root.'Plugins/Exceptions'.'/';\n\n self::call($files, $folder);\n }", "private static function runAll () {\n\t\tif(empty(self::$registered)) return;\n\n\t\tforeach(self::$registered as $plugin) {\n\t\t\t$plugin->run();\n\t\t}\n\t}", "public function index() {\n\t\t$params = func_get_args();\n\t\t$this->_loadPlugin(...$params);\n\t}", "public function run () {\n\t\trequire_once $this->pluginFile;\n\t}", "public static function bootstrap () {\n\t\t$files = glob(TH_ROOT.TH_PLUGINS.'*/plugin.php');\n\t\tforeach($files as $file) {\n\t\t\trequire_once $file;\n\t\t\t// $plugin is a full path, we don't want that.\n\t\t\t$plugin = explode(TH_ROOT.TH_PLUGINS, $file, 2);\n\t\t\t$plugin = explode('/plugin.php', $plugin[1]);\n\t\t\t$possiblePlugins[] = $plugin[0];\n\t\t}\n\n\t\t$db = DB::select('plugins', '*', array('active = ?', 1));\n\t\t$activePlugins = $db->fetchAll(PDO::FETCH_ASSOC);\n\n\t\tforeach($activePlugins as $row) {\n\t\t\tif(array_search($row['name'], $possiblePlugins) !== false) {\n\t\t\t\tself::$active[$row['name']]->bootstrap();\n\t\t\t}\n\t\t}\n\n\t\tself::runAll();\n\t}", "public function plugin(){\r\n\t$args=func_get_args();\r\n\t$plugin_name=$args[0];\r\n\t$plugin_method=$args[1];\r\n\t$plugin_method_args = array_slice($args, 2);\r\n\tPlugins::instance()->Base=$this;\r\n\t$response=Plugins::instance()->call_method($plugin_name, $plugin_method, $plugin_method_args);\r\n\t$this->response($response);\r\n }", "public function bootPlugin();", "function Plugin()\n\t{\n\t\t$this->Plugin_Base();\n\t}", "function loadPlugins() {\n\n\t\t// load and parse the plugins file ...\n\t\tif ($plugins = $this->xml_parser->parseXml('plugins.xml')) {\n\n\t\t\t// take each plugin tag ...\n\t\t\tforeach ($plugins['ASECO_PLUGINS']['PLUGIN'] as $plugin) {\n\n\t\t\t\t// showup message\n\t\t\t\t$this->console_text('[Aseco] Load plugin [' . $plugin . ']');\n\n\t\t\t\t// and include the value between ...\n\t\t\t\trequire_once('plugins/' . $plugin);\n\t\t\t}\n\t\t}\n\t}", "protected function _initPlugins()\n {\n $front = Zend_Controller_Front::getInstance();\n $front->registerPlugin(new Mylib_Controller_Plugin_Auth());\n $front->registerPlugin(new Mylib_Controller_Plugin_Routes());\n }", "private function setup_actions() {\n\t\tadd_option( self::OPTION_ACTIVE_PLUGINS, array() );\n\n\t\t// Loaded at priority 5 because all plugins are typically loaded before 'plugins_loaded'\n\t\tadd_action( 'plugins_loaded', array( $this, 'include_active_plugins' ), 5 );\n\n\t\tadd_action( 'init', array( $this, 'action_init' ) );\n\t}", "protected function _registerPlugins()\n\t{\n\t\t//$aclPlugin = new AclPlugins($adminAclController);\n\t\t//$logPlugin = new LogPlugins();\n\t\t\n\t\t//Daophp::getInstance() -> registerPlugin('acl', $aclPlugin);\n\t\t//Daophp::getInstance() -> registerPlugin('log', $logPlugin);\n\t}", "function loadPlugins() {\n // @todo make this more efficient\n $plugin_dirs = $this->listDir(MWG_BASE . '/plugins/');\n foreach($plugin_dirs as $ptypes) {\n $this->loadPluginGroup($ptypes);\n } \n }", "public function init()\n {\n // TODO: initialize by config ordering\n foreach ($this->plugins as $name => $plugin) {\n $plugin->init();\n }\n }", "protected function get_installed_plugins()\n {\n }", "function installPlugins()\n{\n outputString(PHP_EOL.'Installing plugins', Console::FG_YELLOW);\n $installPluginCmd = './craft install/plugin ';\n foreach (INSTALL_PLUGINS as $pluginHandle) {\n outputString('- installing plugin '.$pluginHandle);\n executeShellCommand($installPluginCmd . $pluginHandle);\n }\n}", "private function load_dependencies()\n\t{\n\t\t$dependencies = [\n\t\t\t'Routing',\n\t\t\t'Loader',\n\t\t\t'Base',\n\t\t];\n\n\t\tforeach($dependencies as $file)\n\t\t{\n\t\t\trequire_once plugin_dir_path(__FILE__) . $file . '.php';\n\t\t}\n\t}", "private function initializePlugins() {\r\n if (isset($this->settings[\"loadJsPlugins\"])) {\r\n if (count($this->settings[\"loadJsPlugins\"])) {\r\n foreach ($this->settings[\"loadJsPlugins\"] as $pluginName) {\r\n $this->addPlugin($pluginName);\r\n }\r\n }\r\n }\r\n unset($this->settings[\"loadJsPlugins\"]);\r\n }", "function getPlugins();", "abstract protected function activate_plugin();", "public function initializePlugin();", "function loadPlugins() {\n\n\t\t// load and parse the plugins file\n\t\tif ($plugins = $this->xml_parser->parseXml('plugins.xml')) {\n\t\t\tif (!empty($plugins['XASECO2_PLUGINS']['PLUGIN'])) {\n\t\t\t\t// take each plugin tag\n\t\t\t\tforeach ($plugins['XASECO2_PLUGINS']['PLUGIN'] as $plugin) {\n\t\t\t\t\t// log plugin message\n\t\t\t\t\t$this->console_text('[XAseco2] Load plugin [' . $plugin . ']');\n\t\t\t\t\t// include the plugin\n\t\t\t\t\trequire_once('plugins/' . $plugin);\n\t\t\t\t\t$this->plugins[] = $plugin;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\ttrigger_error('Could not read/parse plugins list plugins.xml !', E_USER_ERROR);\n\t\t}\n\t}", "public function loadPlugins()\n\t{\n\t\t$this->pluginsToLoad = array_unique($this->pluginsToLoad);\n\n\t\t$pluginsToLoad = $this->pluginsToLoad;\n\n\t\tif($this->doLoadAlwaysActivatedPlugins)\n\t\t{\n\t\t\t$pluginsToLoad = array_merge($this->pluginsToLoad, $this->pluginToAlwaysEnable);\n\t\t}\n\n\t\tforeach($pluginsToLoad as $pluginName)\n\t\t{\n\t\t\t$newPlugin = $this->loadPlugin($pluginName);\n\n\t\t\t// if we have to load the plugins\n\t\t\t// and if this plugin is activated\n\t\t\tif($this->doLoadPlugins\n\t\t\t\t&& $this->isPluginEnabled($pluginName))\n\t\t\t{\n\t\t\t\t$newPlugin->registerTranslation( $this->languageToLoad );\n\t\t\t\t$this->addPluginObservers( $newPlugin );\n\t\t\t\t$this->addLoadedPlugin( $pluginName, $newPlugin);\n\n\t\t\t\t$newPlugin->postLoad();\n\t\t\t}\n\t\t}\n\t}", "public function plugins_loaded()\n\t{\n\t\t//If base plugin isn't active yet, warn the user\n\t\tif(!$this->base_plugin_active())\n\t\t{\n\t\t\t//If we are in the admin, let's print a warning then return\n\t\t\tif(is_admin())\n\t\t\t{\n\t\t\t\tadd_action('admin_notices', array($this, 'base_plugin_inactive_notice'));\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif(!$this->base_plugin_version_supported())\n\t\t{\n\t\t\t//If we are in the admin, let's print a warning then return\n\t\t\tif(is_admin())\n\t\t\t{\n\t\t\t\tadd_action('admin_notices', array($this, 'base_plugin_version_unsupported_notice'));\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif(is_admin() && $this->base_plugin_active() && class_exists('mtekk_adminKit'))\n\t\t{\n\t\t\t//Check to see if someone else has setup the extensions settings tab\n\t\t\tif(has_action('bcn_after_settings_tabs', 'bcn_extensions_tab') === false)\n\t\t\t{\n\t\t\t\t//All versions prior to 6.3.0 used a different extensions tab format\n\t\t\t\tif(!defined('breadcrumb_navxt::version') || version_compare(breadcrumb_navxt::version, '6.2.60', '<'))\n\t\t\t\t{\n\t\t\t\t\trequire_once(dirname(__FILE__) . '/bcn_extensions_tab_62.php');\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\trequire_once(dirname(__FILE__) . '/bcn_extensions_tab.php');\n\t\t\t\t}\n\t\t\t\tadd_action('bcn_after_settings_tabs', 'bcn_extensions_tab');\n\t\t\t}\n\t\t\t$this->admin_setup();\n\t\t}\n\t}", "public function loadPlugins()\n {\n try {\n $pluginModel = Plugin::model(); \n $records = $pluginModel->findAllByAttributes(array('active'=>1));\n \n foreach ($records as $record) {\n $this->loadPlugin($record->name, $record->id);\n }\n } catch (Exception $exc) {\n // Something went wrong, maybe no database was present so we load no plugins\n }\n\n $this->dispatchEvent(new PluginEvent('afterPluginLoad', $this)); // Alow plugins to do stuff after all plugins are loaded\n }", "abstract protected function get_prerequisite_plugins();", "function pkg_call_plugins($plugin_type, $plugin_params) {\n\tglobal $g;\n\t$results = array();\n\tforeach (config_get_path('installedpackages/package') as $package) {\n\t\tforeach (array_get_path($package, 'plugins/item', []) as $plugin) {\n\t\t\tif (!is_array($plugin) || empty($plugin)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif ($plugin['type'] == $plugin_type) {\n\t\t\t\tif (file_exists($package['include_file'])) {\n\t\t\t\t\trequire_once($package['include_file']);\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$pkgname = substr(reverse_strrchr($package['configurationfile'], \".\"), 0, -1);\n\t\t\t\t$plugin_function = $pkgname . '_'. $plugin_type;\n\t\t\t\t$results[$pkgname] = call_user_func($plugin_function, $plugin_params);\n\t\t\t}\n\t\t}\n\t}\n\treturn $results;\n}", "public function run_etc() {\n\n\t\t// If Requirements are not met.\n\t\tif ( ! $this->plugin_requirements_checker() ) {\n\n\t\t\tadd_action( 'admin_notices', array( $this, 'requirements_errors' ) );\n\n\t\t\t// Deactivate if requirements are not met.\n\t\t\trequire_once( ABSPATH . 'wp-admin/includes/plugin.php' );\n\t\t\tdeactivate_plugins( plugin_basename( __FILE__ ) );\n\n\t\t\treturn false;\n\t\t}\n\n\t\trequire_once ET_CORE_DIR . 'inc/core.php';\n\n\t\t// Fire the plugin\n\t\tnew ETC\\Inc\\Core();\n\n\t\tregister_activation_hook( __FILE__, array( new ETC\\Inc\\Activator(), 'activate' ) );\n\t\tregister_deactivation_hook( __FILE__, array( new ETC\\Inc\\Deactivator(), 'deactivate' ) );\n\t}", "public function loadPlugins() {\n return $this->getScenario()->runStep(new \\Codeception\\Step\\Action('loadPlugins', func_get_args()));\n }", "protected function preRun()\n {\n if (@class_exists('Plugin_PreRun') &&\n in_array('Iface_PreRun', class_implements('Plugin_PreRun'))) {\n $preRun = new Plugin_PreRun();\n $preRun->process();\n }\n }", "function load_plugins() {\n\tglobal $root;\n\t$plugins = get_option('active_plugins');\n\n\tif (! $plugins) {\n\t\t$plugins = array();\n\t}\n\tforeach ($plugins as $key => $path) {\n\t\tif (file_exists($root.$path)) {\n\t\t\trequire $root.$path;\n\t\t}\n\t}\n}", "public static function init()\n {\n add_action('plugins_loaded', array(self::instance(), '_setup'));\n }", "private function load_dependencies() {\n /**\n * \"BEHIND THE SCENCE\" CLASSES\n * Note: usually the admin and public do not directly use them, they are\n * necessary for the plugin (eg. i18n)\n */\n require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-i18n.php';\n\n /* ADMIN */\n require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-admin.php';\n require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-api.php';\n\n /* PUBLIC */\n require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-public.php';\n }", "protected function _initLoadPlugin() {\n\t\t$front = Zend_Controller_Front::getInstance();\n\t\t$front->registerPlugin(new Plugins_Myplugin() );\t\n\t}", "public function init_plugin()\n {\n }", "public function activatePlugin();", "function callAll($arg) {\n\n $action = $this->action;\n\n $results = array();\n foreach ($this->filterPlugins($arg) as $plugin) {\n $results[] = $plugin->$action($arg);\n }\n\n return $results;\n\n }", "function _manually_load_plugin() {\n \n require TEST_PLUGIN_FILE;\n \n // Make sure plugin is installed here ...\n}", "function _manually_load_plugin() {\n\trequire dirname( dirname( __FILE__ ) ) . '/news-parser.php';\n\t\n\n}", "public function add_dependencies(self ...$plugins): static;", "public function registerPlugins()\n {\n foreach ($this->getPlugins() as $plugin) {\n try {\n $this->smarty->registerPlugin($plugin->getType(), $plugin->getName(), $plugin->getCallback());\n } catch (SmartyException $e) {\n if (null !== $this->logger) {\n $this->logger->debug(sprintf(\"SmartyException caught: %s.\", $e->getMessage()));\n }\n }\n }\n }", "static private function loadPlugins() {\n\n $config = Application::getConfig();\n\n if ($handle = opendir($config[\"system\"][\"plugin-folder\"])) {\n\n /* Das ist der korrekte Weg, ein Verzeichnis zu durchlaufen. */\n while (false !== ($entry = readdir($handle))) {\n if($entry != \".\" && $entry != \"..\") {\n require $config[\"system\"][\"plugin-folder\"] . \"/\" .$entry;\n }\n }\n closedir($handle);\n }\n }", "public function run() {\n $this->load_dependencies();\n $this->load_localization();\n $this->load_admin();\n $this->load_public();\n }", "public function run()\n {\n $this->call(SocialIcons::class);\n $this->call(BackgroundImages::class);\n $this->call(UserAdminAcount::class);\n }", "public function run() {\n\t\t// include other classes\n\t\trequire_once plugin_dir_path ( __FILE__ ) . 'class-top-ratter-render.php';\n\t\trequire_once plugin_dir_path ( __FILE__ ) . 'class-top-ratter-sso.php';\n\t\t\n\t\t// enque styles for this plugin\n\t\tadd_action ( 'wp_enqueue_scripts', array (\n\t\t\t\t$this,\n\t\t\t\t'register_plugin_styles' \n\t\t) );\n\t\t// enque jquery scripts for this plugin\n\t\tadd_action ( 'wp_enqueue_scripts', array (\n\t\t\t\t$this,\n\t\t\t\t'register_plugin_script' \n\t\t) );\n\t\t// add submit action form to redirect and catch from admin.php\n\t\tadd_action ( 'admin_post_tr_action', array (\n\t\t\t\t$this,\n\t\t\t\t'prefix_admin_tr_action' \n\t\t) );\n\t\t\n\t\t// check if plugin tables exist\n\t\t$this->table_check ();\n\t\t\n\t\t// instantiate the render class for shortcodes to work\n\t\t$shortcodes = new Top_Ratter_Render ();\n\t}", "public static function loadPlugins(){\n\n\t\t// check to make sure the plugins directory exists\n\t\tif( !self::_pluginsDirectoryExists() )\n\t\t\treturn;\n\n\t\t// scan the directory, searching for plugins that fit the stereotype\n\t\tself::_scanForPlugins();\n\t}", "function run_conductor() {\n\n\t$plugin = new Conductor();\n\t$plugin->run();\n\n}", "private function initRequirePlugin(){\n\t\t$this->addRequiredPlugin(array(\n\t\t\t'name' => 'Options Framework', // The plugin name\n\t\t 'slug' => 'options-framework', // The plugin slug (typically the folder name)\n\t\t 'required' => true, // If false, the plugin is only 'recommended' instead of required\n\t\t));\n\n\t\t$this->addRequiredPlugin(array(\n\t\t\t'name' => 'WooCommerce', // The plugin name\n\t\t 'slug' => 'woocommerce', // The plugin slug (typically the folder name)\n\t\t 'required' => true, // If false, the plugin is only 'recommended' instead of required\n\t\t));\n\n\t\t$this->addRequiredPlugin(array(\n\t\t\t'name' => 'Contact Form 7', // The plugin name\n\t\t 'slug' => 'contact-form-7', // The plugin slug (typically the folder name)\n\t\t 'required' => true, // If false, the plugin is only 'recommended' instead of required\n\t\t 'source'\t\t\t\t => get_stylesheet_directory_uri() . '/sub/plugins/contact-form-7.zip', // The plugin source\n\t\t));\n\n\t\t$this->addRequiredPlugin(array(\n\t\t\t'name' => 'WPBakery Visual Composer', // The plugin name\n\t\t 'slug' => 'js_composer', // The plugin slug (typically the folder name)\n\t\t 'required' => true,\n\t\t 'source' => get_stylesheet_directory_uri() . '/sub/plugins/js_composer.zip', // The plugin source\n\t\t));\n\n\t\t$this->addRequiredPlugin(array(\n\t\t\t'name' => 'Revolution Slider', // The plugin name\n 'slug' => 'revslider', // The plugin slug (typically the folder name)\n 'required' => true, // If false, the plugin is only 'recommended' instead of required\n 'source' => get_stylesheet_directory_uri() . '/sub/plugins/revslider.zip', // The plugin source\n\t\t));\n\n\t\t$this->addRequiredPlugin(array(\n\t\t\t'name' => 'YITH WooCommerce Wishlist', // The plugin name\n 'slug' => 'yith-woocommerce-wishlist', // The plugin slug (typically the folder name)\n 'required' => true\n\t\t));\n\n\t\t$this->addRequiredPlugin(array(\n\t\t\t'name' => 'YITH Woocommerce Compare', // The plugin name\n 'slug' => 'yith-woocommerce-compare', // The plugin slug (typically the folder name)\n 'required' => true\n\t\t));\n\n\t\t$this->addRequiredPlugin(array(\n\t\t\t'name' => 'YITH WooCommerce Zoom Magnifier', // The plugin name\n\t\t 'slug' => 'yith-woocommerce-zoom-magnifier', // The plugin slug (typically the folder name)\n\t\t 'required' => true\n\t\t));\n\n\t\t$this->addRequiredPlugin(array(\n\t\t\t'name' => 'MailChimp', // The plugin name\n\t\t 'slug' => 'mailchimp-for-wp', // The plugin slug (typically the folder name)\n\t\t 'required' => true\n\t\t));\n\t}", "public function discoverPlugins() {\n foreach($this->fs->roots(false) as $root) {\n $this->findAvailablePlugins($root);\n }\n }", "private function load_dependencies() {\n\n /**\n * The class responsible for defining options functionality\n * of the plugin.\n */\n include plugin_dir_path(dirname(__FILE__)) . 'envato_setup/envato_setup.php';\n include plugin_dir_path(dirname(__FILE__)) . 'envato_setup/envato_setup_init.php';\n include plugin_dir_path(dirname(__FILE__)) . 'includes/class-form-fields.php';\n // common functions file\n include plugin_dir_path(dirname(__FILE__)) . 'includes/common-functions.php';\n include plugin_dir_path(dirname(__FILE__)) . 'includes/careerfy-detail-pages.php';\n \n include plugin_dir_path(dirname(__FILE__)) . 'includes/careerfyframe-end-jsfile.php';\n\n // redux frameworks extension loader files\n include plugin_dir_path(dirname(__FILE__)) . 'admin/redux-ext/loader.php';\n\n // icons manager\n include plugin_dir_path(dirname(__FILE__)) . 'icons-manager/icons-manager.php';\n\n // visual composer files\n include plugin_dir_path(dirname(__FILE__)) . 'includes/vc-support/vc-actions.php';\n include plugin_dir_path(dirname(__FILE__)) . 'includes/vc-support/vc-shortcodes.php';\n // visual icon files\n include plugin_dir_path(dirname(__FILE__)) . 'includes/vc-icons/icons.php';\n // Mailchimp\n include plugin_dir_path(dirname(__FILE__)) . 'includes/mailchimp/vendor/autoload.php';\n include plugin_dir_path(dirname(__FILE__)) . 'includes/mailchimp/mailchimp-functions.php';\n\n // post types\n include plugin_dir_path(dirname(__FILE__)) . 'includes/post-types/faq.php';\n\n // meta box file\n include plugin_dir_path(dirname(__FILE__)) . 'admin/meta-boxes.php';\n\n // Custom Typography\n include plugin_dir_path(dirname(__FILE__)) . 'includes/custom-typography.php';\n\n // twitter oauth\n include plugin_dir_path(dirname(__FILE__)) . 'includes/twitter-tweets/twitteroauth.php';\n // maintenace mode\n include plugin_dir_path(dirname(__FILE__)) . 'includes/maintenance-mode/maintenance-mode.php';\n\n // redux frameworks files\n include plugin_dir_path(dirname(__FILE__)) . 'admin/ReduxFramework/class-redux-framework-plugin.php';\n include plugin_dir_path(dirname(__FILE__)) . 'admin/ReduxFramework/careerfy-options/options-config.php';\n\n include plugin_dir_path(dirname(__FILE__)) . 'admin/user/user-custom-fields.php';\n\n // instagram admin actions\n include plugin_dir_path(dirname(__FILE__)) . 'admin/instagram.php';\n // load Elementor Extension\n require plugin_dir_path(dirname(__FILE__)) . 'includes/class-careerfy-elementor.php';\n\n }", "function attempt_to_hook_domain_mapping_plugins() {\n\t\tif ( ! Constants::is_defined( 'SUNRISE' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$hooked = false;\n\t\t$count = count( self::$test_methods );\n\t\tfor ( $i = 0; $i < $count && ! $hooked; $i++ ) {\n\t\t\t$hooked = call_user_func( array( $this, self::$test_methods[ $i ] ) );\n\t\t}\n\t}", "function loadPlugins() {\n\t\t$pathname = $GLOBALS['mosConfig_absolute_path'].'/administrator/components/com_joomap/plugins/';\n\t\t$plugins = JoomapPlugins::listPlugins();\n\t\tforeach( $plugins as $plugin ) {\n\t\t\tinclude_once( $pathname.$plugin );\n\t\t}\n\t}", "protected function boot()\n {\n foreach ($this->getKernel()->getPlugins() as $plugin) {\n $plugin->boot($this);\n }\n }", "function aione_register_required_plugins() {\n\t/**\n\t * Array of plugin arrays. Required keys are name and slug.\n\t * If the source is NOT from the .org repo, then source is also required.\n\t */\n\t$plugins = array(\n\t\tarray(\n\t\t\t'name' => 'Oxo Core',\n\t\t\t'slug' => 'oxo-core',\n\t\t\t'source' => get_template_directory() . '/framework/plugins/oxo-core.zip',\n\t\t\t'required' => true,\n\t\t\t'version' => '1.8.3',\n\t\t\t'force_activation' => false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' => '',\n\t\t\t'image_url' => Aione()->get_framework_dir() . '/assets/images/oxo_core.png',\n\t\t),\n\t\tarray(\n\t\t\t'name' => 'LayerSlider WP',\n\t\t\t'slug' => 'LayerSlider',\n\t\t\t'source' => get_template_directory() . '/framework/plugins/LayerSlider.zip',\n\t\t\t'required' => false,\n\t\t\t'version' => '5.6.2',\n\t\t\t'force_activation' => false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' => '',\n\t\t\t'image_url' => Aione()->get_framework_dir() . '/assets/images/layer_slider.png',\n\t\t),\n\t\tarray(\n\t\t\t'name' => 'Revolution Slider',\n\t\t\t'slug' => 'revslider',\n\t\t\t'source' => get_template_directory() . '/framework/plugins/revslider.zip',\n\t\t\t'required' => false,\n\t\t\t'version' => '5.1.6',\n\t\t\t'force_activation' => false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' => '',\n\t\t\t'image_url' => Aione()->get_framework_dir() . '/assets/images/rev_slider.png',\n\t\t),\n\t\tarray(\n\t\t\t'name' => 'WooCommerce',\n\t\t\t'slug' => 'woocommerce',\n\t\t\t'required' => false,\n\t\t\t'image_url' => Aione()->get_framework_dir() . '/assets/images/woocommerce.png',\n\t\t),\n\t\tarray(\n\t\t\t'name' => 'bbPress',\n\t\t\t'slug' => 'bbpress',\n\t\t\t'required' => false,\n\t\t\t'image_url' => Aione()->get_framework_dir() . '/assets/images/bbpress.png',\n\t\t),\n\t\tarray(\n\t\t\t'name' => 'The Events Calendar',\n\t\t\t'slug' => 'the-events-calendar',\n\t\t\t'required' => false,\n\t\t\t'image_url' => Aione()->get_framework_dir() . '/assets/images/the_events_calendar.png',\n\t\t),\n\t\tarray(\n\t\t\t'name' => 'Contact Form 7',\n\t\t\t'slug' => 'contact-form-7',\n\t\t\t'required' => false,\n\t\t\t'image_url' => Aione()->get_framework_dir() . '/assets/images/contact_form_7.jpg',\n\t\t),\n\t);\n\n\t// Change this to your theme text domain, used for internationalising strings\n\t$theme_text_domain = 'Aione';\n\n\t/**\n\t * Array of configuration settings. Amend each line as needed.\n\t * If you want the default strings to be available under your own theme domain,\n\t * leave the strings uncommented.\n\t * Some of the strings are added into a sprintf, so see the comments at the\n\t * end of each line for what each argument will be.\n\t */\n\t$config = array(\n\n\t\t'domain' \t=> $theme_text_domain,\n\t\t'default_path' \t=> '',\n\t\t'parent_slug' \t\t=> 'themes.php',\n\t\t'menu' \t=> 'install-required-plugins',\n\t\t'has_notices' \t=> true,\n\t\t'is_automatic' \t=> true,\n\t\t'message' \t=> '',\n\t\t'strings' \t=> array(\n\t\t\t'page_title' => __( 'Install Required Plugins', 'Aione' ),\n\t\t\t'menu_title' => __( 'Install Plugins', 'Aione' ),\n\t\t\t'installing' => __( 'Installing Plugin: %s', 'Aione' ), // %1$s = plugin name\n\t\t\t'oops' => __( 'Something went wrong with the plugin API.', 'Aione' ),\n\t\t\t'notice_can_install_required' => _n_noop( 'This theme requires the following plugin installed or updated: %1$s.', 'This theme requires the following plugins installed or updated: %1$s.', 'Aione' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_install_recommended' => _n_noop( str_replace( '{{system-status}}', admin_url( 'admin.php?page=aione-system-status' ), 'This theme recommends the following plugin installed or updated: %1$s.<br />IMPORTANT: If your hosting plan has low resources, activating additional plugins can lead to fatal \"out of memory\" errors. We recommend at least 128MB of memory. Check your resources on the <a href=\"{{system-status}}\" target=\"_self\">System Status</a> tab.' ), str_replace( '{{system-status}}', admin_url( 'admin.php?page=aione-system-status' ), 'This theme recommends the following plugins installed or updated: %1$s.<br />IMPORTANT: If your hosting plan has low resources, activating additional plugins can lead to fatal \"out of memory\" errors. We recommend at least 128MB of memory. Check your resources on the <a href=\"{{system-status}}\" target=\"_self\">System Status</a> tab.' ), 'Aione' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_install' => _n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.', 'Aione' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_activate_required' => _n_noop( 'The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.', 'Aione' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_activate_recommended' => _n_noop( str_replace( '{{system-status}}', admin_url( 'admin.php?page=aione-system-status' ), 'The following recommended plugin is currently inactive: %1$s.<br />IMPORTANT: If your hosting plan has low resources, activating additional plugins can lead to fatal \"out of memory\" errors. We recommend at least 128MB of memory. Check your resources on the <a href=\"{{system-status}}\" target=\"_self\">System Status</a> tab.' ), str_replace( '{{system-status}}', admin_url( 'admin.php?page=aione-system-status' ), 'The following recommended plugins are currently inactive: %1$s.<br />IMPORTANT: If your hosting plan has low resources, activating additional plugins can lead to fatal \"out of memory\" errors. We recommend at least 128MB of memory. Check your resources on the <a href=\"{{system-status}}\" target=\"_self\">System Status</a> tab.' ), 'Aione' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_activate' => _n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.', 'Aione' ), // %1$s = plugin name(s)\n\t\t\t'notice_ask_to_update' => _n_noop( '<span class=\"oxo-update-heading\" style=\"margin-top:-0.4em\">%1$s Update Required</span>The plugin needs to be updated to its latest version to ensure maximum compatibility with Aione.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.', 'Aione' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_update' => _n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.', 'Aione' ), // %1$s = plugin name(s)\n\t\t\t'install_link' => _n_noop( 'Go Install Plugin', 'Go Install Plugins', 'Aione' ),\n\t\t\t'activate_link' => _n_noop( 'Go Activate Plugin', 'Go Activate Plugins', 'Aione' ),\n\t\t\t'return' => __( 'Return to Required Plugins Installer', 'Aione' ),\n\t\t\t'plugin_activated' => __( 'Plugin activated successfully.', 'Aione' ),\n\t\t\t'complete' => __( 'All plugins installed and activated successfully. %s', 'Aione' ), // %1$s = dashboard link\n\t\t\t'nag_type' => 'error' // Determines admin notice type - can only be 'updated' or 'error'\n\t\t)\n\t);\n\n\ttgmpa( $plugins, $config );\n}", "function _manually_load_plugin() {\n\trequire dirname( dirname( __FILE__ ) ) . '/plugin.php';\n}", "public function plugins_loaded()\n\t{\n\t\t// Have the login plugin use frontend notifictions plugin\n\t\tif ( apply_filters( \"{$this->prefix}/create_object/use_sewn_notifications\", true ) )\n\t\t{\n\t\t\tif (! class_exists('Sewn_Notifications') ) {\n\t\t\t\tadd_filter( \"{$this->prefix}/create_object/use_sewn_notifications\", '__return_false', 9999 );\n\t\t\t}\n\t\t}\n\t}", "function ldaACFBlocks_run_plugin() {\n\t$plugin = new ldaACFBlocks();\n\t$plugin->run();\n}", "function wp_dashboard_plugins()\n {\n }", "public function plugin_classes() {\n\t\t$this->options = new Options( $this ) ;\n\t\t$this->helpers = new Helpers( $this );\n\t\t$this->core = new Core( $this );\n\t}", "function wp_aff_3rd_party_handle_plugins_loaded_hook() {\n wp_aff_pp_ipn_listener();\n wp_aff_check_clickbank_transaction();\n wp_aff_check_gumroad_ping();\n}", "function _maybe_update_plugins()\n {\n }", "protected function sayHello()\n {\n // Plugin functionality\n }", "abstract public function register_plugin();", "public function installPlugins(){\n\n $listPlugin = $this->sanitizePluginsArray();\n\n foreach ($listPlugin as $Plugin) {\n $command = \"{$this->node} {$this->ltpm} install {$Plugin['filename']}\";\n\n exec($command,$output);\n\n Artisan::call('lt-plugin:update',['--vendor-name'=> $Plugin['vendor'].','.$Plugin['name'], '--silent' => true]);\n\n Artisan::call('lt-migration:up',['--vendor-name'=>$Plugin['vendor'].','.$Plugin['name'], '--silent' => true]);\n }\n }", "public function include_active_plugins() {\n\t\tforeach ( $this->get_active_plugins_option() as $plugin ) {\n\t\t\twpcom_vip_load_plugin( $plugin );\n\t\t}\n\t}", "public function load_plugins() {\n\t\t\t$load_compatibility_plugins = apply_filters( 'black_studio_tinymce_load_compatibility_plugins', array( 'siteorigin_panels', 'wpml', 'jetpack_after_the_deadline', 'wp_page_widget', 'elementor' ) );\n\t\t\tif ( ! empty( $load_compatibility_plugins ) ) {\n\t\t\t\tinclude_once( plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-compatibility-plugins.php' );\n\t\t\t\tself::$plugins = Black_Studio_TinyMCE_Compatibility_Plugins::instance( $load_compatibility_plugins );\n\t\t\t}\n\t\t}", "public function activatePlugins() {\n return $this->getScenario()->runStep(new \\Codeception\\Step\\Action('activatePlugins', func_get_args()));\n }", "private static function load_plugins()\n\t{\n\t\tstatic $loaded;\n\t\t\n\t\tif ($loaded === NULL)\n\t\t{\n\t\t\tglobal $doc;\n\t\t\t\n\t\t\t$key = $doc['page_id'];\n\t\t\t\n\t\t\t$plugins = TC::config('tc.plugins');\n\t\t\t\n\t\t\t$plugin_files = $plugins['global'];\n\t\t\t\n\t\t\tif (isset($plugins[$key]) && is_array($plugins[$key]))\n\t\t\t{\n\t\t\t\t$plugin_files = array_merge($plugin_files, $plugins[$key]);\n\t\t\t}\n\t\t\t\n\t\t\t//echo '<div style=\"padding:20px; background:#efefef;font-size:16px;color:#333;text-align:left;\"><pre>';\n\t\t\t\n\t\t\tforeach ($plugin_files as $plugin)\n\t\t\t{\n\t\t\t\t$plugin = TC_PLUGINS_PATH.'/plugins.'.$plugin.'.php';\n\t\t\t\t$plugin_basename = basename($plugin);\n\t\t\t\t\n\t\t\t\tif (file_exists($plugin))\n\t\t\t\t{\n\t\t\t\t\tinclude($plugin);\n\t\t\t\t\t\n\t\t\t\t\t$cleanup = array('plugins.', '.php', '.');\n\t\t\t\t\t$cleaned = array('', '', '_');\n\t\t\t\t\t\n\t\t\t\t\t$plugin_name = ucwords(strtolower(str_replace($cleanup, $cleaned, $plugin_basename)));\n\t\t\t\t\t$plugin_class_name = 'TC_'.$plugin_name;\n\t\t\t\t\t\n\t\t\t\t\tglobal ${$plugin_name};\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\t//$plugin_class = new ReflectionClass($plugin_class_name);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// autoload? // ${$plugin_name} = $plugin_class->newInstance();\n\t\t\t\t\t\tTC::$plugins[$plugin_name] = 1;\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception $e)\n\t\t\t\t\t{\n\t\t\t\t\t\t/* ... */\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//echo '<div style=\"padding:20px; background:#efefef;font-size:16px;color:#333;text-align:left;\"><pre>';\n\t\t\t\t\t//var_dump($plugin_name);\n\t\t\t\t\t//var_dump($plugin_class);\n\t\t\t\t\t//var_dump($contact_form);\n\t\t\t\t\t//echo '</pre></div>';\n\t\t\t\t\t\n\t\t\t\t\t//echo \"\\n\";\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//echo \"\\nskipped:\\n\";\n\t\t\t\t\t//var_dump(basename($plugin));\n\t\t\t\t\t//echo \"\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//echo '</pre></div>';\n\t\t\t\n\t\t\t$loaded = true;\n\t\t}\n\t}", "function plugin_integration(){\r\n\r\n\t\t$dir = WPJM_FIELD_EDITOR_PLUGIN_DIR . \"/classes/plugins/*\";\r\n\r\n\t\tforeach( glob( $dir ) as $file ) {\r\n\t\t\tif( ! is_dir( $file ) ) include_once( $file );\r\n\t\t}\r\n\r\n\t}", "function get_mu_plugins()\n {\n }", "private function hooks() {\n\t\t\t// check for EDD when plugin is activated\n\t\t\tadd_action( 'admin_init', array( $this, 'activation' ), 1 );\n\t\t\t\n\t\t\t// plugin meta\n\t\t\tadd_filter( 'plugin_row_meta', array( $this, 'plugin_meta' ), null, 2 );\n\n\t\t\t// settings link on plugin page\n\t\t\tadd_filter( 'plugin_action_links_' . $this->basename, array( $this, 'settings_link' ), 10, 2 );\n\t\t\t\n\t\t\t// insert actions\n\t\t\tdo_action( 'edd_sd_setup_actions' );\n\t\t}", "public function getRequiredPlugins() {}", "function init_hooks() {\n\tregister_activation_hook( __FILE__, __NAMESPACE__ . '\\activate_plugin' );\n\tregister_deactivation_hook( __FILE__, __NAMESPACE__ . '\\deactivate_plugin' );\n\tregister_uninstall_hook( __FILE__, __NAMESPACE__ . '\\uninstall_plugin' );\n}", "private function load_dependencies() {\n\n\t\t/**\n\t\t * The class responsible for orchestrating the actions and filters of the\n\t\t * core plugin.\n\t\t */\n\t\trequire_once plugin_dir_path(dirname(__FILE__)).'includes/class-facebook-stats-loader.php';\n\n\t\t/**\n\t\t * The class responsible for defining internationalization functionality\n\t\t * of the plugin.\n\t\t */\n\t\trequire_once plugin_dir_path(dirname(__FILE__)).'includes/class-facebook-stats-i18n.php';\n\n\t\t/**\n\t\t * The class responsible for defining all actions that occur in the admin area.\n\t\t */\n\t\trequire_once plugin_dir_path(dirname(__FILE__)).'admin/class-facebook-stats-admin.php';\n\n\t\t/**\n\t\t * The class responsible for defining all actions that occur in the public-facing\n\t\t * side of the site.\n\t\t */\n\t\trequire_once plugin_dir_path(dirname(__FILE__)).'public/class-facebook-stats-public.php';\n\n\t\t$this->loader = new Facebook_Stats_Loader();\n\n\t}", "function jp_hook_addjs_after_get_results()\r\n{\r\n\tglobal $plugin_num, $plugin_array, $plugin_conf;\r\n\t\r\n\tfor ($i=0; $i<$plugin_num; $i++)\r\n\t{\r\n\t\t\t//trigger_error(\"yes no\");\r\n\t\tif (function_exists($plugin_array[$i].\"_addjs_after_get_results\"))\r\n\t\t\techo call_user_func($plugin_array[$i].\"_addjs_after_get_results\", $plugin_conf[$plugin_array[$i]]);\r\n\t}\r\n}", "function run_horses() {\n\n\t$plugin = new horses();\n\t$plugin->run();\n\n}", "function wcfmos_plugins_loaded_callback() {\n\trun_wcfm_order_splitter();\n}", "function plugins_loaded(){\r\n\r\n\t\t$this->plugin_integration();\r\n\r\n\t\tWP_Job_Manager_Field_Editor_Job_Writepanels::get_instance();\r\n\t\tif( $this->wprm_active() ) WP_Job_Manager_Field_Editor_Resume_Writepanels::get_instance();\r\n\t}", "function loadPlugins() {\r\n\t\tforeach ($this->modx->ms2Plugins->plugins as $plugin) {\r\n\t\t\tif (!empty($plugin['manager']['msProductData'])) {\r\n\t\t\t\t$this->addJavascript($plugin['manager']['msProductData']);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function onRun()\n {\n try {\n $api = new PluginApi($this->secret, $this->dataFolder);\n $this->setResult($api->basicGet(\"/information\"));\n } catch (\\Exception $e) {\n $this->setResult($e);\n }\n }", "function skudo_register_required_plugins() {\n\t\n\t\t$plugins = array(\n\t\t\t\n\t\t\tarray(\n\t\t\t\t'name' => 'Contact Form 7',\n\t\t\t\t'slug' => 'contact-form-7',\n\t\t\t\t'required' => true,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'Widget Importer & Exporter',\n\t\t\t\t'slug' => 'widget-importer-exporter',\n\t\t\t\t'required' => false,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'Really Simple CAPTCHA',\n\t\t\t\t'slug' => 'really-simple-captcha',\n\t\t\t\t'required' => false,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'WPBakery Visual Composer',\n\t\t\t\t'slug' => 'js_composer',\n\t\t\t\t'source' => 'http://demos.upperthemes.com/plugins/skudo/js_composer.zip',\n\t\t\t\t'required' => true,\n\t\t\t\t'version' => '6.2.0'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' \t=> 'Revolution Slider',\n\t\t\t\t'slug' \t \t=> 'revslider',\n\t\t\t\t'source' => 'http://demos.upperthemes.com/plugins/skudo/revslider.zip',\n\t\t\t\t'required' \t=> true,\n\t\t\t\t'version' => '6.2.15'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'Ultimate Addons for Visual Composer',\n\t\t\t\t'slug' => 'Ultimate_VC_Addons',\n\t\t\t\t'source' => 'http://demos.upperthemes.com/plugins/skudo/Ultimate_VC_Addons.zip',\n\t\t\t\t'required' => true,\n\t\t\t\t'version' => '3.19.4'\n\t\t\t),\n\t\t\t\n\t\t\tarray(\n\t\t\t\t'name' \t=> 'Skudo Custom Post Types',\n\t\t\t\t'slug' \t \t=> 'skudo_custom_post_types',\n\t\t\t\t'source' => 'http://demos.upperthemes.com/plugins/skudo/skudo_custom_post_types.zip',\n\t\t\t\t'required' \t=> true,\n\t\t\t\t'version' => '2.3'\n\t\t\t),\n\t\t\t\n\t\t\tarray(\n\t\t\t\t'name' => 'Cube Portfolio',\n\t\t\t\t'slug' => 'cubeportfolio',\n\t\t\t\t'source' => 'http://demos.upperthemes.com/plugins/skudo/cubeportfolio.zip',\n\t\t\t\t'required' => true,\n\t\t\t\t'version' => '4.0'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' \t=> 'Envato Market',\n\t\t\t\t'slug' \t \t=> 'envato-market',\n\t\t\t\t'source' => 'http://demos.upperthemes.com/plugins/skudo/envato-market.zip',\n\t\t\t\t'required' \t=> true,\n\t\t\t\t'version' => '2.0.3'\n\t\t\t),\n\t\t\t\n\t\t\tarray(\n\t\t\t\t'name' => 'LayerSlider WP',\n\t\t\t\t'slug' => 'LayerSlider',\n\t\t\t\t'source' => 'http://demos.upperthemes.com/plugins/skudo/LayerSlider.zip',\n\t\t\t\t'required' => false,\n\t\t\t\t'version' => '6.9.2'\n\t\t\t)\n\t\t\t\n\t\t);\n\t\n\t\t// Change this to your theme text domain, used for internationalising strings\n\t\t$config = array(\n\t\t\t'domain' \t\t=> 'skudo', \t// Text domain - likely want to be the same as your theme.\n\t\t\t'default_path' \t\t=> '',\n\t\t\t'parent_slug' => 'themes.php', \t\t\t// Parent menu slug.\n\t\t\t'menu' \t\t=> 'install-required-plugins', \t// Menu slug\n\t\t\t'has_notices' \t=> true, \t// Show admin notices or not\n\t\t\t'is_automatic' \t=> false,\t\t\t\t\t \t// Automatically activate plugins after installation or not\n\t\t\t'message' \t\t\t=> '',\t\t\t\t\t\t\t// Message to output right before the plugins table\n\t\t\t'strings' \t\t=> array(\n\t\t\t\t'page_title' \t\t\t=> esc_html__( 'Install Required Plugins', 'skudo' ),\n\t\t\t\t'menu_title' \t\t\t=> esc_html__( 'Install Plugins', 'skudo' ),\n\t\t\t\t'installing' \t\t\t=> esc_html__( 'Installing Plugin: %s', 'skudo' ), // %1$s = plugin name\n\t\t\t\t'oops' \t\t\t=> esc_html__( 'Something went wrong with the plugin API.', 'skudo' ),\n\t\t\t\t'notice_can_install_required' \t\t\t=> _n_noop( 'This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.', 'skudo' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_install_recommended'\t\t\t=> _n_noop( 'This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.', 'skudo' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_install' \t\t\t\t\t=> _n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.', 'skudo' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_activate_required' \t\t\t=> _n_noop( 'The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.', 'skudo' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_activate_recommended'\t\t\t=> _n_noop( 'The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.', 'skudo' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_activate' \t\t\t\t\t=> _n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.', 'skudo' ), // %1$s = plugin name(s)\n\t\t\t'notice_ask_to_update' \t\t\t\t\t\t=> _n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.', 'skudo' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_update' \t\t\t\t\t\t=> _n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.', 'skudo' ), // %1$s = plugin name(s)\n\t\t\t\t'install_link' \t\t\t\t\t \t\t\t=> _n_noop( 'Begin installing plugin', 'Begin installing plugins', 'skudo' ),\n\t\t\t\t'activate_link' \t\t\t\t \t\t\t=> _n_noop( 'Activate installed plugin', 'Activate installed plugins', 'skudo' ),\n\t\t\t\t'return' \t\t\t=> esc_html__( 'Return to Required Plugins Installer', 'skudo' ),\n\t\t\t\t'plugin_activated' \t\t\t=> esc_html__( 'Plugin activated successfully.', 'skudo' ),\n\t\t\t\t'complete' \t\t\t\t\t\t\t\t\t=> esc_html__( 'All plugins installed and activated successfully. %s', 'skudo' ), // %1$s = dashboard link\n\t\t\t\t'nag_type'\t\t\t\t\t\t\t\t\t=> 'updated' // Determines admin notice type - can only be 'updated' or 'error'\n\t\t\t)\n\t\t);\n\t\n\t\ttgmpa( $plugins, $config );\n\t\n\t}", "public function loadPlugins()\n\t{\n\t\tif (!$this->_pluginsLoaded && !$this->_loadingPlugins)\n\t\t{\n\t\t\tif (craft()->isInstalled())\n\t\t\t{\n\t\t\t\t// Prevent this function from getting called twice.\n\t\t\t\t$this->_loadingPlugins = true;\n\n\t\t\t\t// Find all of the enabled plugins\n\t\t\t\t// TODO: swap the SELECT statements after next breakpoint\n\t\t\t\t$rows = craft()->db->createCommand()\n\t\t\t\t\t//->select('id, class, version, schemaVersion, settings, installDate')\n\t\t\t\t\t->select('*')\n\t\t\t\t\t->from('plugins')\n\t\t\t\t\t->where('enabled=1')\n\t\t\t\t\t->queryAll();\n\n\t\t\t\t$names = array();\n\n\t\t\t\tforeach ($rows as $row)\n\t\t\t\t{\n\t\t\t\t\t$plugin = $this->_getPlugin($row['class']);\n\n\t\t\t\t\tif ($plugin)\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->_autoloadPluginClasses($plugin);\n\n\t\t\t\t\t\t// Clean it up a bit\n\t\t\t\t\t\t$row['settings'] = JsonHelper::decode($row['settings']);\n\t\t\t\t\t\t$row['installDate'] = DateTime::createFromString($row['installDate']);\n\n\t\t\t\t\t\t$this->_enabledPluginInfo[$row['class']] = $row;\n\n\t\t\t\t\t\t$lcPluginHandle = mb_strtolower($plugin->getClassHandle());\n\t\t\t\t\t\t$this->_plugins[$lcPluginHandle] = $plugin;\n\t\t\t\t\t\t$this->_enabledPlugins[$lcPluginHandle] = $plugin;\n\t\t\t\t\t\t$names[] = $plugin->getName();\n\n\t\t\t\t\t\t$plugin->setSettings($row['settings']);\n\n\t\t\t\t\t\t$plugin->isInstalled = true;\n\t\t\t\t\t\t$plugin->isEnabled = true;\n\n\t\t\t\t\t\t// If we're not updating, check if the plugin's version number changed, but not its schema version.\n\t\t\t\t\t\tif (!craft()->isInMaintenanceMode() && $this->hasPluginVersionNumberChanged($plugin) && !$this->doesPluginRequireDatabaseUpdate($plugin))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// Update our record of the plugin's version number\n\t\t\t\t\t\t\tcraft()->db->createCommand()->update(\n\t\t\t\t\t\t\t\t'plugins',\n\t\t\t\t\t\t\t\tarray('version' => $plugin->getVersion()),\n\t\t\t\t\t\t\t\t'id = :id',\n\t\t\t\t\t\t\t\tarray(':id' => $row['id'])\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Sort plugins by name\n\t\t\t\t$this->_sortPlugins($names, $this->_enabledPlugins);\n\n\t\t\t\t// Now that all of the components have been imported, initialize all the plugins\n\t\t\t\tforeach ($this->_enabledPlugins as $plugin)\n\t\t\t\t{\n\t\t\t\t\t$plugin->init();\n\t\t\t\t}\n\n\t\t\t\t$this->_loadingPlugins = false;\n\t\t\t}\n\n\t\t\t$this->_pluginsLoaded = true;\n\n\t\t\t// Fire an 'onLoadPlugins' event\n\t\t\t$this->onLoadPlugins(new Event($this));\n\t\t}\n\t}", "function mt_load_plugins($mod) {\n\n global $CONFIG;\n\n if (is_plugin_enabled($mod)) {\n if (file_exists($CONFIG->pluginspath . $mod)) {\n if (!include($CONFIG->pluginspath . $mod . \"/start.php\")) {\n // misconfigured plugin\n }\n \n// if (!$cached_view_paths) {\n if (is_dir($CONFIG->pluginspath . $mod . \"/views\")) {\n if ($handle = opendir($CONFIG->pluginspath . $mod . \"/views\")) {\n while ($viewtype = readdir($handle)) {\n if (!in_array($viewtype,array('.','..','.svn','CVS')) && is_dir($CONFIG->pluginspath . $mod . \"/views/\" . $viewtype)) {\n mt_autoregister_views(\"\",$CONFIG->pluginspath . $mod . \"/views/\" . $viewtype,$CONFIG->pluginspath . $mod . \"/views/\", $viewtype);\n }\n }\n }\n }\n// }\n }\n }\n}", "public function onPluginsInitialized()\n {\n if ($this->isAdmin()) {\n // For speed-up when the admin plugin is active\n $this->active = false;\n } else {\n if ($this->config->get('plugins.googlemaps.enabled')) {\n // if the plugin is active globally, subscribe to additional events\n $this->enable([\n 'onTwigTemplatePaths' => ['onTwigTemplatePaths', 0],\n 'onPageInitialized' => ['onPageInitialized', 0]\n ]);\n }\n }\n }", "public function bootstrap() : void\n {\n $includes = require_once 'autoload.php';\n\n $this->include($includes['shared']);\n\n if (is_admin()) {\n $this->include($includes['admin']);\n\n add_action('init', [$this->instantiate('Admin\\Settings'), 'init']);\n add_filter('plugin_action_links_' . plugin_basename(__FILE__), [$this, 'links']);\n } else {\n $this->include($includes['frontend']);\n\n add_action('rest_api_init', [$this->instantiate('Frontend\\Endpoint'), 'init']);\n }\n\n add_action('plugins_loaded', [$this, 'languages']);\n }", "public static function run () {\n if( ! defined('ICL_SITEPRESS_VERSION') ) return;\n\n // init our plugin on the p2p_init action hook\n if(isset($_REQUEST['icl_ajx_action']) && function_exists('_p2p_init') ){\n add_action('init', array(__CLASS__, 'early_init') );\n }\n else {\n add_action('p2p_init', array(__CLASS__, 'init'), 14 );\n }\n\n // shows admin notices\n add_action('admin_notices', array(__CLASS__,'admin_notices') );\n\n }", "public function register_plugins() {\n\t\t$plugins = array(\n\t\t\tarray(\n\t\t\t\t'name' => 'Developer',\n\t\t\t\t'slug' => 'developer',\n\t\t\t\t'required' => false\n\t\t\t)\n\t\t);\n\n\t\t$config = array();\n\n\t\ttgmpa( $plugins, $config );\n\t}", "function lambert_register_required_plugins() {\n /*\n * Array of plugin arrays. Required keys are name and slug.\n * If the source is NOT from the .org repo, then source is also required.\n */\n $plugins = array(\n\n array('name' => esc_html__('WPBakery Page Builder','lambert'),\n // The plugin name.\n 'slug' => 'js_composer',\n // The plugin slug (typically the folder name).\n 'source' => 'http://assets.cththemes.com/plugins/js_composer.zip',\n // The plugin source.\n 'required' => true,\n 'external_url' => esc_url(lambert_relative_protocol_url().'://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431' ),\n // If set, overrides default API URL and points to an external URL.\n\n 'function_to_check' => '',\n 'class_to_check' => 'Vc_Manager'\n ), \n\n array(\n 'name' => esc_html__('WooCommerce','lambert'),\n // The plugin name.\n 'slug' => 'woocommerce',\n // The plugin slug (typically the folder name).\n 'required' => true,\n // If false, the plugin is only 'recommended' instead of required.\n 'external_url' => esc_url(lambert_relative_protocol_url().'://wordpress.org/plugins/woocommerce/' ), \n // If set, overrides default API URL and points to an external URL.\n\n 'function_to_check' => '',\n 'class_to_check' => 'WooCommerce'\n ), \n\n array('name' => esc_html__('Redux Framework','lambert'),\n // The plugin name.\n 'slug' => 'redux-framework',\n // The plugin source.\n 'required' => true,\n // If false, the plugin is only 'recommended' instead of required.\n 'external_url' => esc_url(lambert_relative_protocol_url().'://wordpress.org/plugins/redux-framework/' ),\n // If set, overrides default API URL and points to an external URL.\n 'function_to_check' => '',\n 'class_to_check' => 'ReduxFramework'\n ), \n\n array(\n 'name' => esc_html__('Contact Form 7','lambert'),\n // The plugin name.\n 'slug' => 'contact-form-7',\n // The plugin slug (typically the folder name).\n 'required' => true,\n // If false, the plugin is only 'recommended' instead of required.\n 'external_url' => esc_url(lambert_relative_protocol_url().'://wordpress.org/plugins/contact-form-7/' ),\n // If set, overrides default API URL and points to an external URL.\n\n 'function_to_check' => 'wpcf7',\n 'class_to_check' => 'WPCF7'\n ), \n\n\n array(\n 'name' => esc_html__('CMB2','lambert'),\n // The plugin name.\n 'slug' => 'cmb2',\n // The plugin slug (typically the folder name).\n 'required' => true,\n // If false, the plugin is only 'recommended' instead of required.\n 'external_url' => esc_url(lambert_relative_protocol_url().'://wordpress.org/support/plugin/cmb2'),\n // If set, overrides default API URL and points to an external URL.\n\n 'function_to_check' => 'cmb2_bootstrap',\n 'class_to_check' => 'CMB2_Base'\n ),\n \n\n array(\n 'name' => esc_html__('Lambert Add-ons','lambert' ),\n // The plugin name.\n 'slug' => 'lambert-add-ons',\n // The plugin slug (typically the folder name).\n 'source' => 'lambert-add-ons.zip',\n // The plugin source.\n 'required' => true,\n // If false, the plugin is only 'recommended' instead of required.\n\n 'force_deactivation' => true,\n\n 'function_to_check' => '',\n 'class_to_check' => 'Lambert_Addons'\n ), \n\n array(\n 'name' => esc_html__('Loco Translate','lambert'),\n // The plugin name.\n 'slug' => 'loco-translate',\n // The plugin slug (typically the folder name).\n 'required' => false,\n // If false, the plugin is only 'recommended' instead of required.\n 'external_url' => esc_url(lambert_relative_protocol_url().'://wordpress.org/plugins/loco-translate/'),\n // If set, overrides default API URL and points to an external URL.\n\n 'function_to_check' => 'loco_autoload',\n 'class_to_check' => 'Loco_Locale'\n ),\n\n \n array(\n 'name' => esc_html__('Envato Market','lambert' ),\n // The plugin name.\n 'slug' => 'envato-market',\n // The plugin slug (typically the folder name).\n 'source' => esc_url(lambert_relative_protocol_url().'://envato.github.io/wp-envato-market/dist/envato-market.zip' ),\n // The plugin source.\n 'required' => true,\n // If false, the plugin is only 'recommended' instead of required.\n 'external_url' => esc_url('//envato.github.io/wp-envato-market/' ),\n // If set, overrides default API URL and points to an external URL.\n\n 'function_to_check' => 'envato_market',\n 'class_to_check' => 'Envato_Market'\n ),\n\n array('name' => esc_html__('One Click Demo Import','lambert'),\n // The plugin name.\n 'slug' => 'one-click-demo-import',\n // The plugin slug (typically the folder name).\n 'required' => false,\n // If false, the plugin is only 'recommended' instead of required.\n 'external_url' => esc_url(lambert_relative_protocol_url().'://wordpress.org/plugins/one-click-demo-import/'),\n // If set, overrides default API URL and points to an external URL.\n\n 'function_to_check' => '',\n 'class_to_check' => 'OCDI_Plugin'\n ),\n\n array('name' => esc_html__('Regenerate Thumbnails','lambert'),\n // The plugin name.\n 'slug' => 'regenerate-thumbnails',\n // The plugin slug (typically the folder name).\n 'required' => false,\n // If false, the plugin is only 'recommended' instead of required.\n 'external_url' => esc_url(lambert_relative_protocol_url().'://wordpress.org/plugins/regenerate-thumbnails/' ),\n // If set, overrides default API URL and points to an external URL.\n\n 'function_to_check' => 'RegenerateThumbnails',\n 'class_to_check' => 'RegenerateThumbnails'\n ),\n\n \n\n\n );\n\n /*\n * Array of configuration settings. Amend each line as needed.\n *\n * TGMPA will start providing localized text strings soon. If you already have translations of our standard\n * strings available, please help us make TGMPA even better by giving us access to these translations or by\n * sending in a pull-request with .po file(s) with the translations.\n *\n * Only uncomment the strings in the config array if you want to customize the strings.\n */\n $config = array(\n 'id' => 'lambert', // Unique ID for hashing notices for multiple instances of TGMPA.\n 'default_path' => get_template_directory() . '/lib/plugins/', // Default absolute path to bundled plugins.\n 'menu' => 'tgmpa-install-plugins', // Menu slug.\n 'has_notices' => true, // Show admin notices or not.\n 'dismissable' => true, // If false, a user cannot dismiss the nag message.\n 'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag.\n 'is_automatic' => false, // Automatically activate plugins after installation or not.\n 'message' => '', // Message to output right before the plugins table.\n\n \n );\n\n tgmpa( $plugins, $config );\n}", "public function setup() {\n\t\tadd_action( 'plugins_loaded', array( $this, 'manually_load_api' ), 100 );\n\t\tadd_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );\n\t\tadd_filter( 'plugin_row_meta', array( $this, 'filter_plugin_row_meta' ), 10, 4 );\n\t\tadd_action( 'admin_notices', array( $this, 'permalink_warning' ) );\n\t\tadd_action( 'admin_init', array( $this, 'flush_rewrites' ), 10000 );\n\t}", "function jswp_env_core_plugins() {\n return array(\n \"sqlite-integration/sqlite-integration.php\",\n \"jumpstarter/jumpstarter.php\"\n );\n}", "private static function load_plugin_files() {\n\t\t\t/* File to register all blocks */\n\t\t\trequire_once RRI_DIR . 'classes/class-rri-register-blocks.php';\n\n\t\t\t/* Group block */\n\t\t\trequire_once RRI_DIR . 'classes/class-rri-group-block.php';\n\n\t\t\t/* Related posts block */\n\t\t\trequire_once RRI_DIR . 'classes/class-rri-related-posts-block.php';\n\t\t}", "function lbmn_register_required_plugins() {\n\t// there is a bug in tgmpa that prevents me from using 'default_path' in config\n\t$default_path = LBMN_INSTALLER . LBMN_PLUGINS;\n\t//get_template_directory_uri() . '/inc/plugins-integration/plugin-installables/';\n\t$plugins = array(\n\n\t\t// Include amazing 'Live Composer' plugin pre-packaged with a theme\n\t\t// http://codecanyon.net/item/live-composer-frontend-wordpress-page-builder/6594028?ref=lumbermandesigns\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'Live Composer',\n\t\t\t'slug' \t\t\t\t=> 'ds-live-composer',\n\t\t\t'source' \t\t\t\t=> $default_path . 'ds-live-composer.1.0.8.zip',\n\t\t\t'required' \t\t\t\t=> true,\n\t\t\t'version' \t\t\t\t=> '1.0.8', // make sure to update THEME_LC_VER constant too\n\t\t\t'force_activation' \t=> false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' \t\t=> '',\n\t\t),\n\n\t\t// Include 'Mega Main Menu' plugin pre-packaged with a theme\n\t\t// http://codecanyon.net/item/mega-main-menu-wordpress-menu-plugin/6135125?ref=lumbermandesigns\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'Mega Main Menu',\n\t\t\t'slug' \t\t\t\t=> 'mega_main_menu',\n\t\t\t'source' \t\t\t\t=> $default_path . 'mega_main_menu.2.0.3.zip',\n\t\t\t'required' \t\t\t\t=> true,\n\t\t\t'version' \t\t\t\t=> '2.0.3',\n\t\t\t'force_activation' \t=> false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' \t\t=> '',\n\t\t),\n\n\t\t// Include 'Meta Box' plugin pre-packaged with a theme\n\t\t// http://wordpress.org/plugins/meta-box/\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'Meta Box',\n\t\t\t'slug' \t\t\t\t=> 'meta-box',\n\t\t\t'required' \t\t\t\t=> true,\n\t\t\t'version' \t\t\t\t=> '', //'4.3.8',\n\t\t\t'force_activation' \t=> false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' \t\t=> '',\n\t\t),\n\n\t\t// Include 'WPFW - Menus Management' plugin pre-packaged with a theme\n\t\t// http://codecanyon.net/item/wordpress-menus-management/7814552?ref=lumbermandesigns\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'WPFW - Menus Management',\n\t\t\t'slug' \t\t\t\t=> 'wpfw_menus_management',\n\t\t\t'source' \t\t\t\t=> $default_path . 'wpfw_menus_management.0.0.1.zip',\n\t\t\t'required' \t\t\t\t=> true,\n\t\t\t'version' \t\t\t\t=> '0.0.1',\n\t\t\t'force_activation' \t=> false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' \t\t=> '',\n\t\t),\n\n\t\t// Include 'MasterSlider' plugin pre-packaged with a theme\n\t\t// http://codecanyon.net/item/master-slider-wordpress-responsive-touch-slider/7467925?ref=lumbermandesigns\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'MasterSlider',\n\t\t\t'slug' \t\t\t\t=> 'masterslider',\n\t\t\t'source' \t\t\t\t=> $default_path . 'masterslider.2.9.2.zip',\n\t\t\t'required' \t\t\t\t=> false,\n\t\t\t'version' \t\t\t\t=> '2.9.2',\n\t\t\t'force_activation' \t=> false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' \t\t=> '',\n\t\t),\n\n\t\t// Include 'Easy Social Share Buttons for WordPress' plugin pre-packaged with a theme\n\t\t// http://codecanyon.net/item/easy-social-share-buttons-for-wordpress/6394476?ref=lumbermandesigns\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'Easy Social Share Buttons for WordPress',\n\t\t\t'slug' \t\t\t\t=> 'easy-social-share-buttons',\n\t\t\t'source' \t\t\t\t=> $default_path . 'easy-social-share-buttons.2.0.1.zip',\n\t\t\t'required' \t\t\t\t=> false,\n\t\t\t'version' \t\t\t\t=> '2.0.1',\n\t\t\t'force_activation' \t=> false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' \t\t=> '',\n\t\t),\n\n\t\t// Include 'NEX-Forms' plugin pre-packaged with a theme\n\t\t// http://codecanyon.net/item/nexforms-the-ultimate-wordpress-form-builder/7103891?ref=lumbermandesigns\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'NEX-Forms',\n\t\t\t'slug' \t\t\t\t=> 'nex-forms/main.php',\n\t\t\t'source' \t\t\t\t=> $default_path . 'nex-forms.2.3.zip',\n\t\t\t'required' \t\t\t\t=> false,\n\t\t\t'version' \t\t\t\t=> '2.3',\n\t\t\t'force_activation' \t=> false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' \t\t=> '',\n\t\t),\n\n\t\t// Include 'Simplified Google Maps' plugin pre-packaged with a theme\n\t\t// http://cetabo.com\n\t\t// array(\n\t\t// \t'name' \t\t\t\t=> 'Simplified Google Maps', // Cetabo_GoogleMaps\n\t\t// \t'slug' \t\t\t\t=> 'cetabo-googlemaps',\n\t\t// \t'source' \t\t\t\t=> $default_path . 'cetabo-googlemaps.2.0.2.zip',\n\t\t// \t'required' \t\t\t\t=> false,\n\t\t// \t'version' \t\t\t\t=> '2.0.2',\n\t\t// \t'force_activation' \t=> false,\n\t\t// \t'force_deactivation' => false,\n\t\t// \t'external_url' \t\t=> '',\n\t\t// ),\n\t\t//\n\t\t// Replaced with another (better) alternative\n\t\t//\n\t\t// http://www.sbthemes.com/plugins/responsive-google-map-plugin/\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'SB Multilingual Responsive Google Map with Styles',\n\t\t\t'slug' \t\t\t\t=> 'sb-google-map',\n\t\t\t'source' \t\t\t\t=> $default_path . 'sb-google-map.1.5.zip',\n\t\t\t'required' \t\t\t\t=> false,\n\t\t\t'version' \t\t\t\t=> '1.5',\n\t\t\t'force_activation' \t=> false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' \t\t=> '',\n\t\t),\n\n\t\t// Include 'Rotating Tweets' plugin pre-packaged with a theme\n\t\t// http://wordpress.org/plugins/rotatingtweets/\n\t\t//\n\t\t// Removed due to performance issues\n\t\t//\n\t\t// array(\n\t\t// \t'name' \t\t\t\t=> 'Rotating Tweets (Twitter widget and shortcode)',\n\t\t// \t'slug' \t\t\t\t=> 'rotatingtweets',\n\t\t// \t'required' \t\t\t\t=> false,\n\t\t// \t'version' \t\t\t\t=> '', //'4.3.8',\n\t\t// \t'force_activation' \t=> false,\n\t\t// \t'force_deactivation' => false,\n\t\t// \t'external_url' \t\t=> '',\n\t\t// ),\n\n\t\t// Include 'Newsletter Sign-Up' plugin pre-packaged with a theme\n\t\t// http://wordpress.org/plugins/rotatingtweets/?ref=lumbermandesigns\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'Newsletter Sign-Up',\n\t\t\t'slug' \t\t\t\t=> 'newsletter-sign-up',\n\t\t\t'required' \t\t\t\t=> false,\n\t\t\t'version' \t\t\t\t=> '', //'4.3.8',\n\t\t\t'force_activation' \t=> false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' \t\t=> '',\n\t\t),\n\n\t\t// Include 'Fresh Favicon' premium plugin pre-packaged with a theme\n\t\t// http://codecanyon.net/item/fresh-favicon/8111680?ref=lumbermandesigns\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'Fresh Framework',\n\t\t\t'slug' \t\t\t\t=> 'fresh-framework',\n\t\t\t'source' \t\t\t\t=> $default_path . 'fresh-framework.1.4.6.zip',\n\t\t\t'required' \t\t\t\t=> false,\n\t\t\t'version' \t\t\t\t=> '1.4.6',\n\t\t\t'force_activation' \t=> false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' \t\t=> '',\n\t\t),\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'Fresh Favicon',\n\t\t\t'slug' \t\t\t\t=> 'fresh-favicon',\n\t\t\t'source' \t\t\t\t=> $default_path . 'fresh-favicon.1.1.1.0.zip',\n\t\t\t'required' \t\t\t\t=> false,\n\t\t\t'version' \t\t\t\t=> '1.1.1',\n\t\t\t'force_activation' \t=> false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' \t\t=> '',\n\t\t),\n\n\t\t// Include 'Rankie' premium plugin pre-packaged with our theme\n\t\t// http://codecanyon.net/item/rankie-wordpress-rank-tracker-plugin/7605032?ref=lumbermandesigns\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'Wordpress Rankie',\n\t\t\t'slug' \t\t\t\t=> 'wp-rankie',\n\t\t\t'source' \t\t\t\t=> $default_path . 'wp-rankie.1.2.3.zip',\n\t\t\t'required' \t\t\t\t=> false,\n\t\t\t'version' \t\t\t\t=> '1.2.3',\n\t\t\t'force_activation' \t=> false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' \t\t=> '',\n\t\t),\n\n\t\t// Include 'PageLoader' premium plugin pre-packaged with our theme\n\t\t// http://codecanyon.net/item/pageloader-a-preloader-with-content-slidein-/6629805?ref=lumbermandesigns\n\t\t/* Not yet...\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'PageLoader, by Bonfire',\n\t\t\t'slug' \t\t\t\t=> 'pageloader-by-bonfire',\n\t\t\t'source' \t\t\t\t=> $default_path . 'pageloader-by-bonfire.1.7.zip',\n\t\t\t'required' \t\t\t\t=> false,\n\t\t\t'version' \t\t\t\t=> '1.7',\n\t\t\t'force_activation' \t=> false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' \t\t=> '',\n\t\t),\n\t\t*/\n\t);\n\n\t/**\n\t * Array of configuration settings.\n\t */\n\t$config = array(\n\t\t'domain' \t\t=> 'lbmn', \t// Text domain - likely want to be the same as your theme.\n\t\t'default_path' \t\t=> '', // Default absolute path to pre-packaged plugins\n\t\t'parent_menu_slug' \t=> 'themes.php', \t\t\t\t// Default parent menu slug\n\t\t'parent_url_slug' \t=> 'themes.php', \t\t\t\t// Default parent URL slug\n\t\t'menu' \t\t=> 'install-required-plugins', \t// Menu slug\n\t\t'has_notices' \t=> true, \t// Show admin notices or not\n\t\t'is_automatic' \t=> true,\t\t\t\t\t \t// Automatically activate plugins after installation or not\n\t\t'message' \t\t\t=> '',\t\t\t\t\t\t\t// Message to output right before the plugins table\n\t\t'strings' \t\t=> array(\n\t\t\t'page_title' \t\t\t=> __( 'Install Required Plugins', 'lbmn' ),\n\t\t\t'menu_title' \t\t\t=> __( 'Install Plugins', 'lbmn' ),\n\t\t\t'installing' \t\t\t=> __( 'Installing Plugin: %s', 'lbmn' ), // %1$s = plugin name\n\t\t\t'oops' \t\t\t=> __( 'Something went wrong with the plugin API.', 'lbmn' ),\n\t\t\t'notice_can_install_required' \t\t\t=> _n_noop( 'This theme requires the following plugin (the plugin is already included, you need only to install/activate it): %1$s.', 'This theme requires the following plugins (the plugins are already included, you need only to install/activate them): %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_install_recommended'\t\t\t=> _n_noop( 'This theme recommends the following plugin (the plugin is already included, you need only to install/activate it): %1$s.', 'This theme recommends the following plugins (the plugins are already included, you need only to install/activate them): %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_install' \t\t\t\t\t=> _n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_activate_required' \t\t\t=> _n_noop( 'The following required plugin is installed but inactive: %1$s.', 'The following required plugins are installed but inactive: %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_activate_recommended'\t\t\t=> _n_noop( 'The following recommended plugin is installed but inactive: %1$s.', 'The following recommended plugins are installed but inactive: %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_activate' \t\t\t\t\t=> _n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.' ), // %1$s = plugin name(s)\n\t\t\t'notice_ask_to_update' \t\t\t\t\t\t=> _n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_update' \t\t\t\t\t\t=> _n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.' ), // %1$s = plugin name(s)\n\t\t\t'install_link' \t\t\t\t\t \t\t\t=> _n_noop( 'Begin installing plugin', 'Begin installing plugins' ),\n\t\t\t'activate_link' \t\t\t\t \t\t\t=> _n_noop( 'Activate installed plugin', 'Activate installed plugins' ),\n\t\t\t'return' \t\t\t=> __( 'Return to Required Plugins Installer', 'lbmn' ),\n\t\t\t'plugin_activated' \t\t\t=> __( 'Plugin activated successfully.', 'lbmn' ),\n\t\t\t'complete' \t\t\t\t\t\t\t\t\t=> __( 'All plugins installed and activated successfully. %s', 'lbmn' ), // %1$s = dashboard link\n\t\t\t'nag_type'\t\t\t\t\t\t\t\t\t=> 'updated' // Determines admin notice type - can only be 'updated' or 'error'\n\t\t)\n\t);\n\n\ttgmpa( $plugins, $config );\n}", "private function hooks() {\n\n\t\t\t// plugin meta\n\t\t\tadd_filter( 'plugin_row_meta', array( $this, 'plugin_meta' ), null, 2 );\n\n\t\t\t// Add template folder\n\t\t\tadd_filter( 'affwp_template_paths', array( $this, 'template' ) );\n\n\t\t}", "public function onPluginsInitialized()\n\t{\n\t\tif ($this->isAdmin())\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$this->enable([\n\t\t\t'onTwigExtensions' => ['onTwigExtensions', 0]\n\t\t]);\n\t}", "function hello_yoda_load(){\n if (current_user_can('activate_plugins')){\n add_action( 'admin_head', 'vader_css' );\n add_action( 'admin_notices', 'hello_yoda' );\n } else{\n add_action( 'admin_head', 'yoda_css' );\n add_action( 'admin_notices', 'hello_yoda' );\n }\n\n }", "function install_plugins_upload()\n {\n }", "public function run()\n {\n $this->call(specialites::class);\n $this->call(cancers::class);\n $this->call(organes::class);\n $this->call(wilayas::class);\n $this->call(dairas::class);\n $this->call(communes::class);\n $this->call(employes::class);\n $this->call(permissions::class);\n $this->call(roles::class);\n $this->call(users::class);\n }", "public function plugin_classes() {\r\n\t\t$this->filesystem = new PDT_Filesystem( $this );\r\n\t\t$this->auth = new PDT_Auth( $this );\r\n\t\t$this->api = new PDT_Api( $this );\r\n\t\t$this->plugins = new PDT_Plugins( $this );\r\n\t\t$this->installed = new PDT_Installed( $this );\r\n\t\t$this->cases = new PDT_Cases( $this );\r\n\t\t$this->clues = new PDT_Clues( $this );\r\n\t\t$this->detective = new PDT_Detective( $this );\r\n\t}", "private function load_dependencies() {\n\n\t\t/**\n\t\t * The class responsible for contants\n\t\t */\n\t\trequire_once plugin_dir_path( dirname( __FILE__ ) ) . 'lib/class-aps-constants.php';\n\n\t\t/**\n\t\t * The class responsible for orchestrating the actions and filters of the\n\t\t * core plugin.\n\t\t */\n\t\t/* The class responsible to load all libraries */\n\t\trequire_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-aps-loader.php';\n\n\t\t/**\n\t\t * The class responsible for defining internationalization functionality\n\t\t * of the plugin.\n\t\t */\n\t\trequire_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-aps-i18n.php';\n\n\t\t/**\n\t\t * The class responsible for defining all actions that occur in the admin area.\n\t\t */\n\t\trequire_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-aps-admin.php';\n\n\t\t/**\n\t\t * The class responsible for defining all actions that occur in the public-facing\n\t\t * side of the site.\n\t\t */\n\t\trequire_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-aps-public.php';\n\n\t\t/**\n\t\t * The class responsible for loading config fields\n\t\t */\n\t\trequire_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-aps-fields-loader.php';\n\n\t\t/**\n\t\t * The class responsible for defining all actions that occur in the aps gateway\n\t\t */\n\t\trequire_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-gateway-loader.php';\n\n\t\t/**\n\t\t * The class responsible for defining all ajax actions that occur in the aps gateway\n\t\t */\n\t\trequire_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-aps-ajax.php';\n\n\t\t/**\n\t\t * This class is responsible to all common woocommerce hooks\n\t\t */\n\t\trequire_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-aps-wc-hooks.php';\n\n\t\t$this->loader = new APS_Loader();\n\n\t}", "function _wp_call_all_hook($args)\n {\n }" ]
[ "0.7654632", "0.7422796", "0.6929365", "0.67454964", "0.67298126", "0.6683715", "0.65507096", "0.650267", "0.6413707", "0.640654", "0.63999164", "0.6384823", "0.6356321", "0.6297172", "0.6270897", "0.6258434", "0.6258386", "0.6253776", "0.6247812", "0.6247162", "0.6234848", "0.62300915", "0.622524", "0.6196788", "0.6185359", "0.6175855", "0.6156007", "0.615338", "0.61386096", "0.6129067", "0.6065074", "0.6051378", "0.60391116", "0.6032514", "0.6025723", "0.6021725", "0.6018075", "0.6012425", "0.6003576", "0.60012126", "0.59992695", "0.599874", "0.59927076", "0.5982484", "0.5976399", "0.5972668", "0.59722507", "0.5970413", "0.5966328", "0.5965621", "0.5958562", "0.5947102", "0.59402794", "0.5929665", "0.5908995", "0.58907485", "0.5882714", "0.5880661", "0.58795804", "0.5861409", "0.58521307", "0.5850849", "0.58438575", "0.5836404", "0.5824988", "0.5824668", "0.5823573", "0.5821159", "0.58141065", "0.5794987", "0.57875407", "0.57803625", "0.57790434", "0.57768446", "0.5767504", "0.5767455", "0.5763973", "0.5763558", "0.574139", "0.5734916", "0.5734389", "0.5731991", "0.57218945", "0.5721019", "0.57205355", "0.5716674", "0.570948", "0.57024866", "0.5699805", "0.56932515", "0.5692093", "0.5691305", "0.5686841", "0.5684714", "0.5683304", "0.56826764", "0.5677461", "0.567724", "0.56763285", "0.56721896" ]
0.57679725
74
When server stuff happens this is called.
public function trigger($type, $data){}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function doComplete(Server $server): void;", "public function run(){\n // server response object \n $requestMethod = $this->requestBuilder->getRequestMethod();\n $this->response = new Response($requestMethod);\n\n try{\n $route = $this->router->validateRequestedRoute($this->requestBuilder);\n\n // serve request object\n $this->requestBuilder->setQuery();\n $this->requestBuilder->setBody();\n $requestParams = $this->requestBuilder->getParam();\n $requestQuery = $this->requestBuilder->getQuery();\n $requestBody = $this->requestBuilder->getBody(); \n $this->request = new Request($requestParams, $requestQuery, $requestBody);\n\n $callback = $route->getCallback();\n $callback($this->request, $this->response);\n }catch(RouteNotImplementedException $e){\n $this->response->statusCode(404)->json($e->getMessage()); \n }\n \n }", "public function sync()\n {\n SyncServer::dispatch($this);\n }", "public static function Main()\n\t\t{\n\t\t\tEventManager::Instance()->TriggerEvent(\"YageCMS.Core.PreRendering\");\n\t\t\t\n\t\t\t/*\n\t\t\t * This event shouldn't be altered!\n\t\t\t * It calls the URI-Handler\n\t\t\t */\n\t\t\tEventManager::Instance()->TriggerEvent(\"YageCMS.Core.Rendering\");\n\t\t\t\n\t\t\t/*\n\t\t\t * Use this event to call functions when everything else has been executed\n\t\t\t */\n\t\t\tEventManager::Instance()->TriggerEvent(\"YageCMS.Core.PostRendering\");\n\t\t}", "public function run()\n\t{\n\t\t$response = $this->dispatch($this['request']);\n\n\t\t$response->send();\n\n\t\t$this->callFinishMiddleware($response);\n\t}", "public function run()\n {\n // dispatch all routes [between events]\n $this->trigger('horus.dispatch.before');\n\n // execute/disptach all routes relates to current request\n if ( isset($this->router) && $this->router instanceof Horus_Router )\n {\n if($this->router->state == false)\n $this->e404();\n else\n $this->output .= $this->router->output;\n }\n\n // trigger after router exec events\n $this->trigger('horus.dispatch.after');\n\n // get the output\n // prepare then only send if the request is not head\n $this->output .= ob_get_clean();\n\n // trigger before output events\n $this->trigger('horus.output.before', array($this));\n\n // trigger output filters\n $this->output = $this->trigger('horus.output.filter', $this->output, $this->output);\n\n // only send output if not HEAD request\n (strtoupper($_SERVER['REQUEST_METHOD']) == 'HEAD') || (print $this->output);\n\n // trigger after output events\n $this->trigger('horus.output.after', array($this));\n\n // end\n @ob_end_flush(); exit;\n }", "public function serve_request()\n {\n }", "public function call()\n {\n $this->dispatchRequest($this['request'], $this['response']);\n }", "public function postDispatch() {\n\t\t\n\t\t}", "public function after_run(){}", "function go() {\r\n $this->basic_handler();\r\n }", "function go() {\r\n $this->basic_handler();\r\n\r\n }", "public function onStart(\\swoole_server $server)\n {\n }", "public function preDispatch() {\n\t\t\n\t\t}", "public function dispatch()\n {\n $this->response = $this->frontController->execute();\n }", "protected function socketPerform() {}", "public function onReady() {\n\t\tif ($this->isEnabled()) {\n\t\t\t$this->updateTimer = setTimeout(function ($timer) {\n\t\t\t\t$this->updateAllServers();\n\t\t\t\t$timer->timeout(2e6);\n\t\t\t}, 1);\n\t\t}\n\t}", "public function run()\n { \n $output = (string) $this->get('router')->dispatch();\n $response = $this->get('response');\n $response->setBody($output);\n $response->send();\n\n }", "public function onRun()\n {\n\n $sql = new \\mysqli($this->host, $this->username, $this->pass, $this->database, $this->port);\n\n $this->sql->setElo($sql, $this->winner, $this->queue, $this->winnerElo);\n $this->sql->setElo($sql, $this->loser, $this->queue, $this->loserElo);\n }", "private function onPing()\n {\n $this->send($this->replyEvent());\n }", "public function run()\n\t{\n\t\t//\n\t}", "public function run()\n\t\t{\n\t\t\t// Sets up the Applog, any other pre-requisites in the parent\n\t\t\tparent::run();\n\t\t\t\n\t\t\t$this->CSO_Defaulted_Loans($this->server, $this->start_date);\n\t\t}", "public function preDispatch()\n\t{\n\n\t\t\n\t\t\n\t}", "public function preSend()\n {\n }", "public function after_run() {}", "public function dispatchLoopStartup()\n {\n //...\n }", "public function run()\n {\n //\n $this->grabData();\n }", "public function run()\n {\n // dispatch all routes [between events]\n $this->trigger('horus.dispatch.before');\n if(($o = $this->router->exec()) !== false) echo $o;\n else $this->e404();\n $this->trigger('horus.dispatch.after');\n\n // get the output\n // prepare then only send if the request is not head\n $this->output .= ob_get_clean();\n $this->trigger('horus.output.before', array($this));\n $this->output = $this->trigger('horus.output.filter', $this->output, $this->output);\n (strtoupper($_SERVER['REQUEST_METHOD']) == 'HEAD') or print $this->output;\n $this->trigger('horus.output.after', array($this));\n\n // end\n ob_get_level() < 1 or ob_end_flush(); exit;\n }", "protected function doExecute()\n\t{\n\t\t// Your application routines go here.\n\t}", "function onRequest(){\n\n\t// check if we need to reload the application\n\tcheckApplicationState();\n\n\t// initialize the ViewSate for every request\n\tsetViewState( getFactory()->getBean( 'ViewState' ) );\n\n\t// decide what to do, the front controller\n\thandleAction();\n\n\t// render the application\n\trenderApplication();\n}", "function handleRequest() ;", "function serverSync() {\n\n\t\t// get current players on the server ...\n\t\t$this->client->query('GetPlayerList', 100, 0);\n\t\t$response['playerlist'] = $this->client->getResponse();\n\n\t\t// get game version the server runs on ...\n\t\t$this->client->query('GetVersion');\n\t\t$response['version'] = $this->client->getResponse();\n\n\t\t$this->client->query('GetCurrentGameInfo');\n\t\t$response['gameinfo'] = $this->client->getResponse();\n\n\t\t$this->client->query('GetStatus');\n\t\t$response['status'] = $this->client->getResponse();\n\n\t\t// update player list ...\n\t\tif (!empty($response['playerlist'])) {\n\t\t\tforeach ($response['playerlist'] as $player) {\n\t\t\t \n\t\t\t\t// PRELOAD\n\t\t\t\t// create player object of every player response ...\n\t\t\t\t$player_item = new Player($player);\n\t\t\t\t$player_item->mistral['displayPlayerInfo']=true;\n\n\t\t\t\t// add player object to player list ...\n\t\t\t\t$this->server->players->addPlayer($player_item);\n\n\t\t\t\t// GET ALL INFOS LATER - wtf no wins \n//\t\t\t\t$this->addCall('GetPlayerInfo', array($player['Login']), '', 'initPlayer');\n\t\t\t \n\t\t\t\t// NO RASPWAY\n//\t\t\t\t$this->playerConnect(array($player['Login'], ''));\t\t\t\t\t// fake it into thinking it's a connecting player, it gets team & ladder info this way\n\t\t\t}\n\t\t}\n\n\t\t// get game ...\n\t\t$this->server->game = $response['version']['Name'];\n\n\t\t// get mode ...\n\t\t$this->server->gameinfo = new Gameinfo($response['gameinfo']);\n\n\t\t// get status ...\n\t\t$this->server->status = $response['getstatus']['Code'];\n\n\t\t// get trackdir\n\t\t$this->client->query('GetTracksDirectory');\n\t\t$this->server->trackdir = $this->client->getResponse();\n\t\t// throw new synchronisation event ...\n\t\t$this->releaseEvent('onSync', array());\n\t}", "public function onRun()\n {\n $this->prepareVars();\n\n // Exceptions\n $this->populateFilters();\n\n $this->tags = $this->listTags();\n }", "public function onStart()\n {\n }", "abstract public function handler() : void;", "protected function main()\r\n {\r\n // save incomming data and chop the leading white space\r\n $this->_raw = chop( fgets( $this->_conn ) );\r\n \r\n $this->debug( '<- ' . $this->_raw );\r\n \r\n $data = explode( ' ', $this->_raw );\r\n \r\n // first make sure we are connected and registered on the server\r\n if ( ! $this->_loggedOn )\r\n {\r\n // if not logged on, wait with processing events till we can login\r\n if ( strstr( $this->_raw, \"Found your hostname\" ) )\r\n {\r\n // save the servername so we can use it to identify server notices\r\n $this->_serverName = substr( $data[0], 1 );\r\n \r\n // start login\r\n $this->login();\r\n }\r\n }\r\n else\r\n {\r\n $this->observe( $data );\r\n }\r\n \r\n // if we are still connecting continue monitoring the data\r\n if ( ! feof( $this->_conn ) )\r\n {\r\n $this->main();\r\n }\r\n else\r\n {\r\n // we are disconnected so remove the socket\r\n unset( $this->_conn );\r\n \r\n // reconnect if required\r\n if ( $this->_autoReconnect )\r\n {\r\n $this->reconnect();\r\n }\r\n else\r\n {\r\n $this->log( \"Disconnected from server.\" );\r\n \r\n exit;\r\n }\r\n }\r\n }", "public function onStart() {\r\n\r\n }", "public function onStart();", "public function onRun()\n {\n $this->prepareWallStream();\n }", "private function responseHandle() {\n // call hook function\n is_callable(config('hooks.onResponse')) && call_user_func(config('hooks.onResponse'), $this);\n // response data\n $this->responder->output();\n }", "public function handle() {}", "public function onFinish() {\n\t\t$this->onResponse->executeAll(false);\n\t\tparent::onFinish();\n\t}", "public function postDispatch();", "public function postDispatch()\n {\n \n parent::postDispatch();\n }", "public function run()\n {\n }", "public function run()\n {\n $this->initiateData();\n }", "public function run()\n {\n $this->initiateData();\n }", "public function onRequest() {\n $whoops = $this->getWhoops();\n $whoops->register();\n\n // Ensure that Drupal registers the shutdown function.\n ErrorHandler::register([$whoops, Whoops::ERROR_HANDLER]);\n ExceptionHandler::register([$whoops, Whoops::EXCEPTION_HANDLER]);\n drupal_register_shutdown_function([$whoops, Whoops::SHUTDOWN_HANDLER]);\n }", "public function preDispatch(){\t\t\t\t\t\r\n\t\t\tparent::preDispatch();\t\r\n\t\t\t\r\n\t\t\t//Zend_Debug::dump($_SERVER);\r\n\t\t}", "public function run()\n {\n $this->server->start();\n }", "public static function client_responce()\n {\n // Find out Request Type\n $req_type = self::client_request_type();\n\n // Fire Responce\n self::{$req_type}();\n\n // End..\n die();\n }", "public function run()\n {\n\n // Base path of the API requests\n $basePath = trim($this->settings['application.path']);\n if( $basePath != '/' ){\n $basePath = '/'.trim($basePath, '/').'/';\n }\n\n // Setup dynamic routing\n $this->map($basePath.':args+', array($this, 'dispatch'))->via('GET', 'POST', 'HEAD', 'PUT', 'DELETE', 'OPTIONS');\n\n //Invoke middleware and application stack\n $this->middleware[0]->call();\n\n //Fetch status, header, and body\n list($status, $header, $body) = $this->response->finalize();\n\n //Send headers\n if (headers_sent() === false) {\n\n //Send status\n header(sprintf('HTTP/%s %s', $this->config('http.version'), \\Slim\\Http\\Response::getMessageForCode($status)));\n\n //Send headers\n foreach ($header as $name => $value) {\n $hValues = explode(\"\\n\", $value);\n foreach ($hValues as $hVal) {\n header(\"$name: $hVal\", true);\n }\n }\n }\n\n // Send body\n echo $body;\n }", "protected function _run()\n\t{\n\t\t$this->_oBootstrap->beforeRoute(self::$_oInstance, $this->_oDispatcher);\n\t\t//Begin Route\n\t\tRouter::BeginRoute($this->_oRequest);\n\t\t//After Route\n\t\t$this->_oBootstrap->afterRoute(self::$_oInstance, $this->_oDispatcher);\n\n\t\t//Dispatcher Initialize\n\t\t$this->_oDispatcher = Dispatcher::GetInstance();\n\n\n\t\t//Prepare to Begin Dispatch\n\t\t$this->_oBootstrap->beforeDispatch(self::$_oInstance, $this->_oDispatcher);\n\t\t//Dispatch\n\t\t$this->_oDispatcher->dispatch();\n\t\t//After Dispatch\n\t\t$this->_oBootstrap->afterDispatch(self::$_oInstance, $this->_oDispatcher);\n\n\t\t//Output Result\n\t\t$this->_oDispatcher->outputResult();\n\t}", "public function run()\n\t{\n\t\tif ( $this->notFound() ) {\n\t\t $this->setNotFoundContent();\n\t\t}\n elseif ( $this->success() ) {\n\t\t $this->setSuccessContent();\n\t\t}\n else {\n $this->setFormContent();\n }\n\t}", "public function onStartDispatch()\n {\n /** @var Enlight_Event_EventManager $eventManager */\n $eventManager = $this->get('events');\n $container = $this->get('service_container');\n\n $resourceSubscriber = new Resource($this->get('models'), $this->get('config'));\n $eventManager->addSubscriber($resourceSubscriber);\n\n /** @var Sorting $sortingComponent */\n $sortingComponent = $container->get('swagcustomsort.sorting_component');\n /** @var Listing $listingComponent */\n $listingComponent = $this->get('swagcustomsort.listing_component');\n\n $subscribers = [\n new Resource($this->get('models'), $this->get('config')),\n new ControllerPath($this->Path(), $this->get('template')),\n new Frontend($this),\n new Backend($this, $this->get('models')),\n new Sort($this->get('models'), $sortingComponent, $listingComponent),\n new StoreFrontBundle($container, $sortingComponent)\n ];\n\n foreach ($subscribers as $subscriber) {\n $eventManager->addSubscriber($subscriber);\n }\n }", "public function preDispatch();", "public function callback();", "public static function post_process() {}", "public function execute() {\n\n $this->parseRequestHeaders();\n\n $uri = $this->loadUrl(); // Loads the called URL\n String::arrayTrimNumericIndexed($uri); // Trim the URL array indexes\n\n /**\n * When server is running as a RESTful server\n */\n if (RESTFUL == '1') {\n RestServer::runRestMethod($uri);\n $this->terminate();\n }\n\n /**\n * When the request is not running over ajax,\n * then call the home for full page rendering\n * before calling the requested method\n */\n if (!$this->isAjax()) {\n\n $this->controller = $this->requireHome();\n $this->controller->itStarts($uri);\n $this->terminate();\n }\n\n /**\n * Normal Ajax Request, call the method only\n */\n $this->runMethod($uri);\n $this->terminate();\n }", "private function get_server()\n {\n }", "function handle() ;", "public function send()\n {\n $this->sendHttpHeaders();\n $this->sendContent();\n\n if (function_exists('fastcgi_finish_request'))\n {\n $this->dispatcher->notify(new sfEvent($this, 'response.fastcgi_finish_request'));\n fastcgi_finish_request();\n }\n }", "public function process()\n {\n $this->send_status();\n $this->send_headers();\n $this->send_content();\n exit(0);\n }", "public function run(): void\n {\n $requestBody = $this->getConfig()->getInputAdapter()::getParsedBody();\n $request = ServerRequestFactory::fromGlobals(\n $_SERVER,\n $_GET,\n $requestBody,\n $_COOKIE,\n $_FILES\n );\n\n $queue = [];\n\n $queue[] = new \\Middlewares\\Emitter();\n $queue[] = new ErrorHandler([new JsonFormatter()]);\n $queue[] = (new \\Middlewares\\PhpSession())->name('VENUSSESSID')\n ->regenerateId(60); // Prevent session fixation attacks\n\n $queue[] = (new \\Middlewares\\FastRoute(\n $this->getConfig()->getDispatcher()\n ))->attribute('handler');\n\n $queue = array_merge($queue, $this->getConfig()->getMiddlewares());\n\n // Use router access permission check\n if ($this->getConfig()->usePermission()) {\n $queue[] = (new Permission(\n $this->getConfig()->getContainer()\n ))->handlerAttribute('handler');\n }\n\n $queue[] = (new RequestHandler(\n $this->getConfig()->getContainer()\n ))->handlerAttribute('handler');\n\n $dispatcher = new Dispatcher($queue);\n $dispatcher->dispatch($request);\n }", "abstract public function serve();", "public function requestDataSending()\n {\n $this->start();\n }", "public function onRun()\n {\n try {\n $api = new PluginApi($this->secret, $this->dataFolder);\n $this->setResult($api->basicGet(\"/information\"));\n } catch (\\Exception $e) {\n $this->setResult($e);\n }\n }", "protected function _process() {}", "protected function _process() {}", "protected function _process() {}", "protected function _process() {}", "abstract public function handle_request();", "public function init()\n\t{\n\t\t$this->serversInit();\n\t}", "public function run()\n {\n $this['events']->applyHook('before');\n\n if ($this['env'] !== 'console') {\n ob_start('mb_output_handler');\n }\n\n $this->boot();\n\n // Invoke middleware and application stack\n try {\n $this['middleware'][0]->call();\n } catch (\\Exception $e) {\n $this['response']->write($this['exception']->handleException($e), true);\n }\n\n // Finalize and send response\n $this->finalize();\n\n $this['events']->applyHook('after');\n }", "public function after_update() {}", "public function postDispatch()\n {\n //...\n }", "public function run() {}", "public function afterSyncing() {}", "public function handleRequest() {}", "public function postDispatch()\n {\n\n }", "public function run() {\r\n $this->routeRequest(new Request());\r\n }", "function dispatch() {\n\t\t$this->header();\n\n\t\t$step = empty( $_GET['step'] ) ? 0 : (int) $_GET['step'];\n\t\tswitch ( $step ) {\n\t\t\tcase 0:\n\t\t\t\t$this->greet();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tcheck_admin_referer( 'import-upload' );\n\t\t\t\t$file = $this->handle_upload();\n\t\t\t\tif ( $file )\n\t\t\t\t\t$this->import( $file );\n\t\t\t\tbreak;\n\t\t}\n\n\t\t$this->footer();\n\t}", "function after_update() {}", "public function run()\n {\n // $this->call\n }", "public function run() {\n\t\t$this->addFields();\n\t\t$this->addData();\n\t}", "public function run() {\n //fire off any events that are a associated with this event\n $event = new Event(KernelEvents::REQUEST_START);\n\n $this->container->get('EventDispatcher')->dispatch('all', KernelEvents::REQUEST_START, $event);\n\n $this->container->get('EventDispatcher')->dispatch($this->httpRequest->getRequestParams()->getYmlKey(), KernelEvents::REQUEST_START, $event);\n\n //initialize the MVC\n $nodeConfig = $this->httpRequest->getNodeConfig();\n \n $cmd = $this->getKernelRunner();\n\n\n $result = $cmd->execute($nodeConfig);\n\n $this->httpResponse->setAttribute('result', $result['data']);\n\n //file_put_contents('/var/www/glenmeikle.com/logs/db-debug.log', print_r($this->httpRequest, true), FILE_APPEND);\n // echo \"node filters\\r\\n\";\n runFilters($this->httpRequest->getSiteParams()->getSitePath(). DIRECTORY_SEPARATOR . $this->httpRequest->getNodeConfig()['componentPath'] . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'filters.yml', $this->httpRequest->getRequestParams()->getYmlKey(),FilterEvents::FILTER_REQUEST_FORWARD);\n // echo \"all filters\\r\\n\";\n runFilters($this->httpRequest->getSiteParams()->getConfigPath() . 'filters.yml', 'all',FilterEvents::FILTER_REQUEST_FORWARD);\n\n \n $event = new Event(KernelEvents::RESPONSE_END, $result);\n $this->container->get('EventDispatcher')->dispatch('all', KernelEvents::RESPONSE_END, $event);\n $this->container->get('EventDispatcher')->dispatch($this->httpRequest->getRequestParams()->getYmlKey(), KernelEvents::RESPONSE_END, $event);\n\n /**\n * now we dump the response to the page\n */\n renderResult($result, $this->httpResponse->getHeaders(), $this->httpResponse->getCookies());\n }", "public function runRequest() {\n }", "public function handler() {\n\t\t$type = Router::verify_type();\n\n\t\tswitch ( $type ) {\n\t\t\tcase self::TYPE_REFRESH_MAP:\n\t\t\t\t$this->cls( 'Crawler_Map' )->gen();\n\t\t\t\tbreak;\n\n\t\t\tcase self::TYPE_EMPTY:\n\t\t\t\t$this->cls( 'Crawler_Map' )->empty_map();\n\t\t\t\tbreak;\n\n\t\t\tcase self::TYPE_BLACKLIST_EMPTY:\n\t\t\t\t$this->cls( 'Crawler_Map' )->blacklist_empty();\n\t\t\t\tbreak;\n\n\t\t\tcase self::TYPE_BLACKLIST_DEL:\n\t\t\t\tif ( ! empty( $_GET[ 'id' ] ) ) {\n\t\t\t\t\t$this->cls( 'Crawler_Map' )->blacklist_del( $_GET[ 'id' ] );\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase self::TYPE_BLACKLIST_ADD:\n\t\t\t\tif ( ! empty( $_GET[ 'id' ] ) ) {\n\t\t\t\t\t$this->cls( 'Crawler_Map' )->blacklist_add( $_GET[ 'id' ] );\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t// Handle the ajax request to proceed crawler manually by admin\n\t\t\tcase self::TYPE_START:\n\t\t\t\tself::start( true );\n\t\t\t\tbreak;\n\n\t\t\tcase self::TYPE_RESET:\n\t\t\t\t$this->reset_pos();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\n\t\tAdmin::redirect();\n\t}", "public function preDispatch() { }", "public function serve()\n\t{\n\t\tif($this->getDomain(FALSE) !== $_SERVER['SERVER_NAME'])\n\t\t{\n\t\t\theader('HTTP/1.0 307 Temporary Redirect');\n\t\t\theader('Location: ' . $this->getUrl(TRUE));\n\t\t\texit;\n\t\t}\n\n\t\techo 'SERVING IMAGE: ' . $this->getSlug();\n\t}", "public function onRun()\n {\n }", "public function requests()\n\t{\n\t\t$this->checkRequest();\n\t\t$this->getResponse();\n\t}", "public function onReady() {\n\t\t$this->connected = true;\n\t\tif ($this->onConnected) {\n\t\t\t$this->onConnected->executeAll($this);\n\t\t\t$this->onConnected = null;\n\t\t}\n\t}", "public function run()\r\n {\r\n\r\n }", "public function postDispatch(){\n\t\t\n }", "protected function onInit() {}", "protected function _postExec()\n {\n }", "public function run(){}", "public function postLoad() {}", "public function requestRun()\n {\n }", "public function _after_render() {\n $this->after_render();\n App::Module('Hook')->getHandler('Callback', 'after_render');\n\n if (App::AdminManager()->isLoggedIn()) {\n $this->after_adminpanel_render();\n App::Module('Hook')->getHandler('Callback', 'after_adminpanel_render');\n }\n\n $this->printQuries();\n }" ]
[ "0.6215753", "0.6210422", "0.62049073", "0.6177144", "0.6140976", "0.61157125", "0.60953826", "0.60814375", "0.606133", "0.60467166", "0.60088396", "0.5997914", "0.598766", "0.59718376", "0.596596", "0.59601295", "0.5928965", "0.5927278", "0.59140015", "0.5909467", "0.5881763", "0.585719", "0.5854197", "0.5853772", "0.5846286", "0.58365464", "0.5826163", "0.5816334", "0.58067924", "0.580112", "0.5786535", "0.5786007", "0.5784283", "0.57814556", "0.5780186", "0.57750964", "0.57717395", "0.5769814", "0.57694376", "0.57684505", "0.57614356", "0.5748742", "0.5742976", "0.57377195", "0.5731922", "0.57268935", "0.57268935", "0.5722062", "0.5719778", "0.5709822", "0.57081985", "0.56884235", "0.56864", "0.5679507", "0.56772465", "0.5674942", "0.5670111", "0.5665729", "0.565593", "0.565266", "0.56502527", "0.564552", "0.56387484", "0.56297445", "0.5623875", "0.56206477", "0.5620266", "0.5614539", "0.5614539", "0.5614539", "0.5614539", "0.5614444", "0.5611784", "0.5611749", "0.56081533", "0.5607611", "0.5602988", "0.5598469", "0.5581877", "0.55813897", "0.55802155", "0.557623", "0.557552", "0.55751634", "0.5575033", "0.55748117", "0.5572967", "0.55663097", "0.55656755", "0.5561708", "0.55610734", "0.55596834", "0.5554959", "0.55463386", "0.5542633", "0.55359656", "0.55327773", "0.5530456", "0.55294466", "0.5524987", "0.5512901" ]
0.0
-1
Triggered when a IRC response is a PRIVMSG or NOTICE
public function message($m){}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function onResponse()\n {\n if ($this->event->getCode() != Phergie_Event_Response::RPL_NAMREPLY) {\n return;\n }\n\n $array = explode(' ', $this->event->getDescription());\n $chan = trim(strtolower($array[1]));\n $count = count($array);\n\n for ($i = 3; $i < $count; $i++) {\n\n if (empty($array[$i])) {\n continue;\n }\n\n $user = trim($array[$i]);\n\n $flag = self::REGULAR;\n if ($user[0] == '~') {\n $flag |= self::OWNER;\n } else if ($user[0] == '&') {\n $flag |= self::ADMIN;\n } else if ($user[0] == '@') {\n $flag |= self::OP;\n } else if ($user[0] == '%') {\n $flag |= self::HALFOP;\n } else if ($user[0] == '+') {\n $flag |= self::VOICE;\n }\n\n if ($flag != self::REGULAR) {\n $user = substr($user, 1);\n }\n\n $this->store[$chan][$user] = $flag;\n }\n }", "public function onPrivmsg()\n {\n $source = $this->getEvent()->getSource();\n $user = $this->getEvent()->getNick();\n\n $pattern = '#'.($this->detectSchemeless ? '' : 'https?://').'(?:([0-9]{1,3}(?:\\.[0-9]{1,3}){3})(?![^/]) | ('\n .($this->detectSchemeless ? '(?<!http:/|https:/)[@/\\\\\\]' : '').')?(?:(?:[a-z0-9_-]+\\.?)+\\.[a-z0-9]{1,6}))[^\\s]*#xis';\n\n // URL Match\n if (preg_match_all($pattern, $this->getEvent()->getArgument(1), $matches, PREG_SET_ORDER)) {\n $responses = array();\n foreach ($matches as $m) {\n $url = trim(rtrim($m[0], ', ].?!;'));\n\n // Check to see if the URL was from an email address, is a directory, etc\n if (!empty($m[2])) {\n $this->debug('Invalid Url: URL is either an email or a directory path. (' . $url . ')');\n continue;\n }\n\n // Parse the given URL\n if (!$parsed = $this->parseUrl($url)) {\n $this->debug('Invalid Url: Could not parse the URL. (' . $url . ')');\n continue;\n }\n\n // allow out-of-class renderers to handle this URL\n foreach ($this->renderers as $renderer) {\n if ($renderer->renderUrl($parsed) === true) {\n // renderers should return true if they've fully\n // rendered the passed URL (they're responsible\n // for their own output)\n $this->debug('Handled by renderer: ' . get_class($renderer));\n continue 2;\n }\n }\n\n // Check to see if the given IP/Host is valid\n if (!empty($m[1]) and !$this->checkValidIP($m[1])) {\n $this->debug('Invalid Url: ' . $m[1] . ' is not a valid IP address. (' . $url . ')');\n continue;\n }\n\n // Process TLD if it's not an IP\n if (empty($m[1])) {\n // Get the TLD from the host\n $pos = strrpos($parsed['host'], '.');\n $parsed['tld'] = ($pos !== false ? substr($parsed['host'], ($pos+1)) : '');\n\n // Check to see if the URL has a valid TLD\n if (is_array($this->tldList) && !in_array(strtolower($parsed['tld']), $this->tldList)) {\n $this->debug('Invalid Url: ' . $parsed['tld'] . ' is not a supported TLD. (' . $url . ')');\n continue;\n }\n }\n\n // Check to see if the URL is to a secured site or not and handle it accordingly\n if ($parsed['scheme'] == 'https' && !extension_loaded('openssl')) {\n if (!$this->sslFallback) {\n $this->debug('Invalid Url: HTTPS is an invalid scheme, OpenSSL isn\\'t available. (' . $url . ')');\n continue;\n } else {\n $parsed['scheme'] = 'http';\n }\n }\n\n if (!in_array($parsed['scheme'], array('http', 'https'))) {\n $this->debug('Invalid Url: ' . $parsed['scheme'] . ' is not a supported scheme. (' . $url . ')');\n continue;\n }\n $url = $this->glueURL($parsed);\n unset($parsed);\n\n // Convert url\n $shortenedUrl = $this->shortener->shorten($url);\n if (!$shortenedUrl) {\n $this->debug('Invalid Url: Unable to shorten. (' . $url . ')');\n continue;\n }\n\n // Prevent spamfest\n if ($this->checkUrlCache($url, $shortenedUrl)) {\n $this->debug('Invalid Url: URL is in the cache. (' . $url . ')');\n continue;\n }\n\n $title = self::getTitle($url);\n if (!empty($title)) {\n $responses[] = str_replace(\n array(\n '%title%',\n '%link%',\n '%nick%'\n ), array(\n $title,\n $shortenedUrl,\n $user\n ), $this->messageFormat\n );\n }\n\n // Update cache\n $this->updateUrlCache($url, $shortenedUrl);\n unset($title, $shortenedUrl, $title);\n }\n /**\n * Check to see if there were any URL responses, format them and handle if they\n * get merged into one message or not\n */\n if (count($responses) > 0) {\n if ($this->mergeLinks) {\n $message = str_replace(\n array(\n '%message%',\n '%nick%'\n ), array(\n implode('; ', $responses),\n $user\n ), $this->baseFormat\n );\n $this->doPrivmsg($source, $message);\n } else {\n foreach ($responses as $response) {\n $message = str_replace(\n array(\n '%message%',\n '%nick%'\n ), array(\n implode('; ', $responses),\n $user\n ), $this->baseFormat\n );\n $this->doPrivmsg($source, $message);\n }\n }\n }\n }\n }", "private function onPing()\n {\n $this->send($this->replyEvent());\n }", "public function doWhois($nick)\n {\n $this->send('WHOIS', $nick);\n }", "function nick_change(&$irc, &$data)\n\t{\n\t\tglobal $pickup;\n\t\tglobal $users;\n global $pickupstatus;\n\n\t\t$users->nick_change($data->nick, $data->message);\n\t\t$pickup->nick_change($data->nick, $data->message);\n\n\t\t//Update topic\n if($pickup->is_added($users->nicktoqauth($data->nick)) == true)\n {\n if($pickupstatus === true)\n {\n SetTopic();\n }\n }\n\t}", "public function onDataReceived($data)\n\t{\n\t\tif (!($data->type === Aki\\Irc\\Event\\Request::TYPE_PING && !$data->isCtcp())) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->message->send('PONG ' . $data->server);\n\t}", "function notifyServer($type);", "public function onPrivmsg()\n {\n // Populate the methods cache if needed\n if (empty($this->methods)) {\n $this->populateMethodCache();\n }\n\n // Check for a prefixed message\n $msg = $this->plugins->message->getMessage();\n if ($msg === false) {\n return;\n }\n\n // Separate the command and arguments\n $parsed = preg_split('/\\s+/', $msg, 2);\n $command = strtolower(array_shift($parsed));\n $args = count($parsed) ? array_shift($parsed) : '';\n\n // Resolve aliases to their corresponding commands\n $aliases = $this->getConfig('command.aliases', array());\n $result = preg_grep(\n '/^' . preg_quote($command, '/')\n . '$/i', array_keys($aliases)\n );\n\n if ($result) {\n $command = $aliases[array_shift($result)];\n }\n\n // Check to ensure the command exists\n $method = self::METHOD_PREFIX . ucfirst($command);\n if (empty($this->methods[$method])) {\n return;\n }\n\n // If no arguments are passed...\n if (empty($args)) {\n\n // If the method requires no arguments, call it\n if (empty($this->methods[$method]['required'])) {\n $this->getPluginHandler()->$method();\n }\n\n } else {\n // If arguments are passed...\n\n // Parse the arguments\n if ('\"' == substr($args, 0, 1)) {\n preg_match_all('/(\"[^\"]*\")|(\\S+)/', $args, $args);\n $argsIn = $args[0];\n $i = 1;\n $args = array();\n $methodArgsTotal = $this->methods[$method]['total'];\n foreach ($argsIn as $arg) {\n if ($i < $methodArgsTotal) {\n $args[] = $arg;\n $i++;\n } else {\n if (empty($args[$methodArgsTotal])) {\n $args[$methodArgsTotal] = $arg;\n } else {\n $args[$methodArgsTotal] .= ' '.$arg;\n }\n }\n }\n $args = array_values($args);\n } else {\n $args = preg_split('/\\s+/', $args, $this->methods[$method]['total']);\n }\n\n // If the minimum arguments are passed, call the method\n if ($this->methods[$method]['required'] <= count($args)) {\n call_user_func_array(\n array($this->getPluginHandler(), $method),\n $args\n );\n }\n }\n\n }", "private function _identifyYourself()\n {\n // If there is a nickserv password and it's us joining\n if ($this->_identifyPassword AND ($this->_data->nick == $this->_irc->_nick))\n {\n $this->_privMessage('identify '. $this->_identifyPassword, 'NickServ');\n }\n }", "protected function _process($line) {\n\t\tif (stripos($line, 'PING') !== false) {\n\t\t\tlist($ping, $pong) = $this->_parse(':', $line, 2);\n\t\t\t$this->_write('PONG', $pong);\n\t\t\treturn;\n\t\t}\n\n\t\tif ($line[0] !== ':') {\n\t\t\treturn;\n\t\t}\n\t\t$params = $this->_parse(\"(\\s|(?<=\\s):|^:)\", $line, 5);\n\n\t\tif (!isset($params[2])) {\n\t\t\treturn null;\n\t\t}\n\t\t$cmd = $params[2];\n\t\t$msg = !empty($params[4]) ? $params[4] : null;\n\n\t\tswitch ($cmd) {\n\t\t\tcase 'PRIVMSG':\n\t\t\t\t$channel = $params[3];\n\t\t\t\t$user = $this->_parse(\"!\", $params[1], 3);\n\n\t\t\t\t$data = array(\n\t\t\t\t\t'channel' => $channel,\n\t\t\t\t\t'nick'=> $this->_nick,\n\t\t\t\t\t'user' => $user[0],\n\t\t\t\t\t'message' => $msg\n\t\t\t\t);\n\t\t\t\tforeach ($this->_plugins['process'] as $class) {\n\t\t\t\t\t$this->_respond((array) $channel, $class->process($data));\n\t\t\t\t}\n\t\t\tbreak;\n\n\t\t\tcase '461':\n\t\t\tcase '422':\n\t\t\tcase '376':\n\t\t\t\tforeach ($this->_channels as $channel) {\n\t\t\t\t\tif (empty($this->_joined[$channel])) {\n\t\t\t\t\t\t$this->_write('JOIN', $channel);\n\t\t\t\t\t\t$this->_joined[$channel] = true;\n\n\t\t\t\t\t\tLogger::debug(\"Bot `{$this->_nick}` joined channel `{$channel}`.\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tbreak;\n\n\t\t\tcase '433': // Nick already registerd\n\t\t\t\tLogger::debug(\"Nick {$this->_nick} already in use.\");\n\n\t\t\t\t$this->_disconnect();\n\t\t\t\t$this->_nick .= '_';\n\t\t\t\t$this->_connect();\n\n\t\t\tbreak;\n\n\t\t\tcase '353':\n\t\t\t\t// Logger::debug('Names on ' . str_replace('=', '', $msg) . '.');\n\t\t\tbreak;\n\n\t\t\tcase 'NOTICE':\n\t\t\t\tif (preg_match('/identify.*NickServ.*identify/', $msg) && $this->_password) {\n\t\t\t\t\tLogger::debug(\"Identifying as {$this->_nick}.\");\n\t\t\t\t\t$this->_write('PRIVMSG', \"NickServ :IDENTIFY {$this->_nick} {$this->_password}\");\n\t\t\t\t}\n\t\t\tbreak;\n\n\t\t\tcase 'MODE':\n\t\t\t\tif ($msg === '+i') { // We're now identified.\n\t\t\t\t\tif ($this->_password && $this->_nick !== $this->_originalNick) {\n\t\t\t\t\t\t$this->_nick = $this->_originalNick;\n\t\t\t\t\t\tLogger::debug(\"Reclaiming nick {$this->_nick}.\");\n\n\t\t\t\t\t\t$this->_write('PRIVMSG', \"NickServ :GHOST {$this->_nick} {$this->_password}\");\n\t\t\t\t\t\tsleep(2);\n\t\t\t\t\t\t$this->_write('PRIVMSG', \"NickServ :RELEASE {$this->_nick} {$this->_password}\");\n\t\t\t\t\t\tsleep(2);\n\t\t\t\t\t\t$this->_write('PRIVMSG', \"NickServ :IDENTIFY {$this->_nick} {$this->_password}\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tdefault:\n\t\t\t\treturn;\n\t\t\tbreak;\n\t\t}\n\t}", "public function route_chat_nick($observed) {\r\n $input = json_decode($this->payload, TRUE);\r\n $user_id = $observed->get_user()->get_user_id();\r\n $user_ids = SimpleUser::purge($user_id);\r\n unset($user_ids[$user_id]);\r\n\r\n $message = array(\r\n 'type' => 'nick',\r\n 'message' => $input['payload']['message'],\r\n );\r\n Chat::add($user_ids, $user_id, $message);\r\n }", "public function event_notice($who, $message)\r\n\t{\r\n\t\r\n\t}", "public function onJoin()\n {\n $chan = ltrim(trim(strtolower($this->event->getArgument(0))), \":\");\n $nick = trim($this->event->getNick());\n\n $this->store[$chan][$nick] = self::REGULAR;\n }", "static public function on_user_login( $nick )\n\t{\n\t\tself::umode( core::$config->nickserv->nick, $nick, '+r' );\n\t}", "function playerServerMessageAnswer($answer) {\n\t\tif ($answer[2]) {\n\n\t\t\t// throw new event ...\n\t\t\t$this->releaseEvent('onPlayerServerMessageAnswer', $answer);\n\t\t}\n\t}", "function sendNotice($user, $message)\n\t{\n\t\t$this->sendMessageToServer(\"NOTICE $user :$message\");\n\t}", "protected function handleMessage($data)\n {\n // check whether the message was for us\n if (strpos($data, self::DISCOVERY_FROM_HEADER) !== false)\n {\n // if it was, pull out the sending IP so we know where to respond to\n preg_match(\"/\" . self::DISCOVERY_FROM_HEADER . \": (\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}):(\\d+)/\", $data, $matches);\n\n if (count($matches) > 1)\n {\n $callerIp = $matches[1];\n $callerPort = $matches[2];\n }\n\n // connect to the sender, telling them we exist.\n $replySocket = new HumptySimpleSocket();\n\n try\n {\n // connect to the broadcast ip and port\n $replySocket->connect(\n $callerIp,\n $callerPort\n );\n\n // compose the discovery message\n $message = HumptyDiscoveryServer::DISCOVERY_RESPONSE_HEADER . ': ' .\n $replySocket->getIp() . ':' . $this->config->getSetting('server-port');\n\n $this->logger->log(\"Discovery server sending response to: $callerIp:$callerPort\");\n\n // try to write the discovery message to the socket\n $replySocket->write($message);\n\n $replySocket->close();\n }\n catch (HumptySocketException $e)\n {\n $this->logger->log($e->getMessage());\n }\n }\n }", "public function getEvent()\n {\n // Check for a new event on the current connection\n $buffer = '';\n do {\n $buffer .= fgets($this->socket, 512);\n } while (!empty($buffer) && !preg_match('/\\v+$/', $buffer));\n $buffer = trim($buffer);\n\n // If no new event was found, return NULL\n if (empty($buffer)) {\n return null;\n }\n\n // If the event has a prefix, extract it\n $prefix = '';\n if (substr($buffer, 0, 1) == ':') {\n $parts = explode(' ', $buffer, 3);\n $prefix = substr(array_shift($parts), 1);\n $buffer = implode(' ', $parts);\n }\n\n // Parse the command and arguments\n list($cmd, $args) = array_pad(explode(' ', $buffer, 2), 2, null);\n\n // Parse the server name or hostmask\n if (strpos($prefix, '@') === false) {\n $hostmask = new Phergie_Hostmask(\n null, null, $prefix\n );\n } else {\n $hostmask = Phergie_Hostmask::fromString($prefix);\n }\n\n // Parse the event arguments depending on the event type\n $cmd = strtolower($cmd);\n switch ($cmd) {\n case 'names':\n case 'nick':\n case 'quit':\n case 'ping':\n case 'pong':\n case 'error':\n case 'part':\n $args = array_filter(array(ltrim($args, ':')));\n break;\n\n case 'privmsg':\n case 'notice':\n $args = $this->parseArguments($args, 2);\n list($source, $ctcp) = $args;\n if (substr($ctcp, 0, 1) === \"\\001\" && substr($ctcp, -1) === \"\\001\") {\n $ctcp = substr($ctcp, 1, -1);\n $reply = ($cmd == 'notice');\n list($cmd, $args) = array_pad(explode(' ', $ctcp, 2), 2, array());\n $cmd = strtolower($cmd);\n switch ($cmd) {\n case 'version':\n case 'time':\n case 'finger':\n case 'ping':\n if ($reply) {\n $args = array($args);\n }\n break;\n case 'action':\n $args = array($source, $args);\n break;\n }\n }\n // This fixes the issue that seems to occur, but why does it?\n if (!is_array($args)) {\n $args = array($args);\n }\n break;\n\n case 'topic':\n case 'invite':\n case 'join':\n $args = $this->parseArguments($args, 2);\n break;\n\n case 'kick':\n case 'mode':\n $args = $this->parseArguments($args, 3);\n break;\n\n // Remove target and colon preceding description from responses\n default:\n $args = substr($args, strpos($args, ' ') + 2);\n break;\n }\n\n // Create, populate, and return an event object\n if (ctype_digit($cmd)) {\n $event = new Phergie_Event_Response;\n $event\n ->setCode($cmd)\n ->setDescription($args);\n } else {\n $event = new Phergie_Event_Request;\n $event\n ->setType($cmd)\n ->setArguments($args);\n $event->setHostmask($hostmask);\n }\n $event->setRawData($buffer);\n return $event;\n }", "public function onPing(ConnectionContract $conn, $msg)\n {\n // TODO: Implement onPing() method.\n }", "public function handle(ThreadHasNewReply $event)\n {\n preg_match_all('/@([\\w\\-]+)/', $event->reply->body, $matches);\n\n $names = $matches[1];\n\n foreach ($names as $name) {\n $user = User::whereName($name)->first();\n\n if ($user) {\n $user->notify(new YouWereMentioned($event->reply));\n }\n }\n }", "public function onMessage($msgData) {\r\n\r\n }", "public function isMessage($str)\n\t{\n\t\treturn strpos($str, 'PRIVMSG') !== false;\n\t}", "private function _seen()\n {\n $nick = str_replace(array(\"!seen \", \"!seen\"), \"\", $this->_data->message);\n \n if (trim($nick) == '')\n return;\n \n $dbh = $this->_connectToDb();\n \n $stmt = $dbh->query(\"SELECT * FROM log_table WHERE channel = '\". $this->_data->channel .\"' AND LOWER(nick) = '\". strtolower(trim($nick)) .\"' ORDER BY id DESC LIMIT 1\");\n \n $row = $stmt->fetch(PDO::FETCH_OBJ);\n\n if (isset($row->when)) {\n $this->_message($this->_data->nick.': I last saw '. trim($nick) .' at '. $row->when .' saying \"'. trim($row->said) .'\"'); \n }\n else {\n $this->_message($this->_data->nick.': I\\'ve never seen '. trim($nick));\n }\n \n \n }", "function wsOnMessage($clientID, $message, $messageLength, $binary) {\n\tglobal $Server;\n\tglobal $userlist;\n\t$ip = long2ip( $Server->wsClients[$clientID][6] );\n\n\tif ($messageLength == 0) {\n\t\t$Server->wsClose($clientID);\n\t\treturn;\n\t}\n\t\n\t// TODO: Add handling of different events\n\t// addmms\n\t// chatmsg\n\t// accept\n\t// decline\n\t\n\t// Params contain type and data\n\t$params = json_decode($message, true);\n\n\t// Parse command based on type\n\tswitch ($params['type']) {\n\t\tcase 'chatmsg':\n//The speaker is the only person in the room. Don't let them feel lonely.\n//\t\tif ( sizeof($Server->wsClients) == 1 ) {\n//\t\t\t$Server->wsSend($clientID, 'You are the only one here.');\n//\t\t}\n\t\t\t$message = $params['data'][0];\n\t\t\t$data = array(\n\t\t\t\t'clientid' => $clientID,\n\t\t\t\t'ip' => $ip,\n\t\t\t\t'nickname' => $userlist[$clientID],\n\t\t\t\t'message' => $message\n\t\t\t);\n\t\t\tSendToAllClients('chatmsg', $data);\n\t\tbreak;\n\t\t\t\n\t\tcase 'setnick':\n\t\t\t// If clientID already has a nick, we pass the old nickname on aswell\n\t\t\t$oldnickname = array_key_exists($clientID, $userlist) ? $userlist[$clientID] : '';\n\t\t\t$newnickname = $params['data'][0]; \n\t\t\t\n\t\t\t// Avoid confusion, disallow two users the same nickname, add trailing number\n\t\t\t$i = 0;\n\t\t\tforeach ($userlist as $id => $nickname) {\n\t\t\t\tif ($i > 0 && $newnickname.$i == $nickname) {\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t\tif ($newnickname == $nickname) {\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($i > 0) {\n\t\t\t\t$newnickname = $newnickname.$i;\n\t\t\t}\n\t\t\t$userlist[$clientID] = $newnickname;\n\n\t\t\t$data = array(\n\t\t\t\t'clientid' => $clientID,\n\t\t\t\t'ip' => $ip,\n\t\t\t\t'newnickname' => $newnickname,\n\t\t\t\t'oldnickname' => $oldnickname\n\t\t\t);\n\t\t\tSendToAllClientsExcept($clientID, 'setnick', $data);\n\t\t\t$data = array(\n\t\t\t\t'userlist' => $userlist\n\t\t\t);\n\t\t\tSendToAllClients('updateuserlist', $data); // At the moment this means that userlist is updated whenver anyone connects\n\t\tbreak;\n\t\t\t\n\t\tdefault:\n\t\t\t// :|\n\t\tbreak;\n\t}\n}", "public function event_msg($who, $message)\r\n\t{\r\n\t\r\n\t}", "function network_admin_notices()\n {\n }", "function sendmsg_load() {\n\tglobal $CBot;\n\t\n\t$CBot->hooks->addHook('privmsg_chan', 'sendmsg_chan');\n\t$CBot->hooks->addHook('privmsg_chancmds', 'sendmsg_cmd');\n}", "function info(&$irc, &$data)\n\t{\n\t\t$command = explode(\" \", $data->message);\n\t\t$command[0] = strtolower($command[0]);\n\t\t$command[0] = str_replace(\"!\", \"\", $command[0]);\n\n\t\tglobal $pickupchannel;\n\t\tglobal $pickup;\n\t\tglobal $queue;\n\t\tglobal $skill;\n\t\tglobal $messages;\n\t\tglobal $users;\n\t\tglobal $invites;\n\t\tglobal $messageflood;\n\t\tglobal $skillstack;\n\n\t\t$nick = $data->nick;\n\n\t\t//Check for set message command\n\t\tif($command[0] == \"setmessage\")\n\t\t{\n\t\t\t//Check if issuer was an admin\n\t\t\tif($users->is_admin($nick))\n\t\t\t{\n\t\t\t\t$new_command = strtolower($command[1]);\n\t\t\t\t$preload = \"!setmessage \".$command[1].\" \";\n\t\t\t\t$new_message = str_replace($preload, \"\", $data->message);\n\n\t\t\t\tif(isset($command[1]) || ($command[1] != \"\"))\n\t\t\t\t{\n\t\t\t\t\tif(isset($command[2]) || ($command[2] != \"\"))\n\t\t\t\t\t{\n\t\t\t\t\t\t//Check if it exists\n\t\t\t\t\t\t$counter1 = 0;\n\t\t\t\t\t\t$exists = false;\n\t\t\t\t\t\twhile($counter1 < count($messages))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($messages[$counter1][\"command\"] == $new_command)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$exists = $counter1;\n\t\t\t\t\t\t\t\t$counter1 = count($messages) + 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$counter1++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($exists === false)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$position = count($messages);\n\t\t\t\t\t\t\t$messages[$position][\"command\"] = $new_command;\n\t\t\t\t\t\t\t$messages[$position][\"message\"] = $new_message;\n\t\t\t\t\t\t\t//Add to MySQL\n\t\t\t\t\t\t\tmysql_pu_addmessage($new_command, $new_message);\n\t\t\t\t\t\t\t//Inform the channel\n\t\t\t\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $pickupchannel, \"\\x0302,00New message successfully added: !\".$new_command);\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$messages[$exists][\"message\"] = $new_message;\n\t\t\t\t\t\t\t//Update on MySQL\n\t\t\t\t\t\t\tmysql_pu_updatemessage($new_command, $new_message);\n\t\t\t\t\t\t\t//Inform the channel\n\t\t\t\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $pickupchannel, \"\\x0302,00Existing message successfully updated: !\".$new_command);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Change input so the new command will be displayed\n\t\t\t\t\t\t$command[0] = $new_command;\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\t\t\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $pickupchannel, \"\\x0302,00No Message was entered\");\n\t\t\t\t\t}\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $pickupchannel, \"\\x0302,00No command was entered\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Check for delete message command\n\t\tif($command[0] == \"delmessage\")\n\t\t{\n\t\t\t//Check if issuer was an admin\n\t\t\tif($users->is_admin($nick))\n\t\t\t{\n\t\t\t\t$old_command = strtolower($command[1]);\n\n\t\t\t\t//Check if it exists\n\t\t\t\t$counter1 = 0;\n\t\t\t\t$exists = false;\n\t\t\t\twhile($counter1 < count($messages))\n\t\t\t\t{\n\t\t\t\t\tif($messages[$counter1][\"command\"] == $old_command)\n\t\t\t\t\t{\n\t\t\t\t\t\t$exists = $counter1;\n\t\t\t\t\t\t$counter1 = count($messages) + 1;\n\t\t\t\t\t}\n\t\t\t\t\t$counter1++;\n\t\t\t\t}\n\n\t\t\t\tif($exists === false)\n\t\t\t\t{\n\t\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $pickupchannel, \"\\x0302,00No such message exists: !\".$old_command);\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\t//Remove from the messages list\n\t\t\t\t\t$messages[$exists][\"command\"] = \"\";\n\t\t\t\t\t$messages[$exists][\"message\"] = \"\";\n\n\t\t\t\t\t//Check if the array should be re-oredered\n\t\t\t\t\t$counter2 = $exists + 1;\n\t\t\t\t\t$messages_size = count($messages);\n\t\t\t\t\tif($counter2 < $messages_size)\n\t\t\t\t\t{\n\t\t\t\t\t\t$counter3 = $exists;\n\t\t\t\t\t\twhile($counter2 < $messages_size)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$messages[$counter3][\"command\"] = $messages[$counter2][\"command\"];\n\t\t\t\t\t\t\t$messages[$counter3][\"message\"] = $messages[$counter2][\"message\"];\n\t\t\t\t\t\t\t$messages[$counter2][\"command\"] = \"\";\n\t\t\t\t\t\t\t$messages[$counter2][\"message\"] = \"\";\n\n\t\t\t\t\t\t\t//Unset $counter2 element if it is the end of the array\n\t\t\t\t\t\t\t$unset = $counter2 + 1;\n\t\t\t\t\t\t\tif(($unset) == $messages_size)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tunset($messages[$counter2]);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//Increment both counters\n\t\t\t\t\t\t\t$counter2++;\n\t\t\t\t\t\t\t$counter3++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\t\t\t\t\t\t//Unset current position\n\t\t\t\t\t\tunset($messages[$exists]);\n\t\t\t\t\t}\n\t\t\t\t\t//Remove in MySQL\n\t\t\t\t\tmysql_pu_delmessage($old_command);\n\n\t\t\t\t\t//Inform the channel\n\t\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $pickupchannel, \"\\x0302,00Successfully deleted message: !\".$old_command);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t////////////////////////////////////////////////\n\t\t//This functionality has now been replaced by MessageBot (messagebot.php)\n\t\t\n\t\t//!skill command to let players see their skill rating in the bot\n\t\t/*if(strtolower($command[0]) == \"skill\")\n\t\t{\n\t\t\tif($command[1] == \"\")\n\t\t\t{\n\t\t\t\t$user = $nick;\n\t\t\t\t$user = $users->nicktoqauth($nick);\n\t\t\t} else\n\t\t\t{\n\t\t\t\tif($users->nicktoqauth($command[1]) != false)\n\t\t\t\t{\n\t\t\t\t\t$user = $users->nicktoqauth($command[1]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Get the players skill as each class\n\t\t\t$scout = $users->Get_Skill($user, \"scout\");\n\t\t\t$demo = $users->get_skill($user, \"demo\");\n\t\t\t$soldier = $users->get_skill($user, \"soldier\");\n\t\t\t$medic = $users->get_skill($user, \"medic\");\n\t\t\t\n\t\t\t//Create output message\n\t\t\t$output = \"\\x0302,00\\x02Skill:\\x02 \" . $users->qauthtonick($user) . \" || Scout: \".$scout.\" / Demo: \".$demo.\" / Soldier: \".$soldier.\" / Medic: \".$medic;\n\t\t\t\n\t\t\t//Check spam class\n\t\t\tif($skillstack->trigger($user) == true)\n\t\t\t{\n\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $data->channel, $output);\n\t\t\t}\n\t\t}*/\n\t\t\n\t\tif(strtolower($command[0]) == \"matches\")\n\t\t{\n\t\t\t//Look up match info from web server\n\t\t\t$stats = file_get_contents(\"http://pickup.pixelgaming.eu/dynamic.php?job=stats\");\n\t\t\t$stats = explode(\":\", $stats);\n\t\t\t$stats = $stats[0];\n\t\t\t\n\t\t\t//Generate output\n\t\t\t$output = \"\\x0302,00\" . $stats . \" matches have been played since 8th February 2011\";\n\t\t\t\n\t\t\t//Check messageflood\n\t\t\tif((time() - $messageflood['matches']) > 20)\n\t\t\t{\n\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $data->channel, $output);\n\t\t\t}\n\t\t\t\n\t\t\t$messageflood['matches'] = time();\n\t\t}\n\t\t\n\t\tif(strtolower($command[0]) == \"players\")\n\t\t{\n\t\t\t//Look up match info from web server\n\t\t\t$stats = file_get_contents(\"http://pickup.pixelgaming.eu/dynamic.php?job=stats\");\n\t\t\t$stats = explode(\":\", $stats);\n\t\t\t$stats = $stats[1];\n\t\t\t\n\t\t\t//Generate output\n\t\t\t$output = \"\\x0302,00There are currently \" . $stats . \" players invited to this channel\";\n\t\t\t\n\t\t\t//Check messageflood\n\t\t\tif((time() - $messageflood['players']) > 20)\n\t\t\t{\n\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $data->channel, $output);\n\t\t\t}\n\t\t\t\n\t\t\t$messageflood['players'] = time();\n\t\t}\n\n\t\t//Change command name for some commonly used commands\n\t\tswitch($command[0])\n\t\t{\n\t\t\tcase \"mum\": case \"voice\": case \"vent\": case \"ventrilo\": case \"ventrillo\":\n\t\t\t\t$command[0] = \"mumble\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"req\": case \"reqs\": case \"requis\": case \"requi\": case \"requirements\":\n\t\t\t\t$command[0] = \"requirements\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"rule\": case \"rul\": case \"ruls\":\n\t\t\t\t$command[0] = \"rules\";\n\t\t\t\tbreak;\n\t\t}\n\n\t\t//Check message array and display if it matches\n\t\t/*$counter = 0;\n\t\twhile($counter < count($messages))\n\t\t{\n\t\t\tif($messages[$counter][\"command\"] == $command[0])\n\t\t\t{\n\t\t\t\t//Check messages anti flood\n\t\t\t\tif((time() - $messageflood[$command[0]]) > 15)\n\t\t\t\t{\n\t\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $data->channel, \"\\x0302,00\".ucfirst($command[0]).\": \".$messages[$counter][\"message\"]);\n\t\t\t\t\t$messageflood[$command[0]] = time();\n\t\t\t\t}\n\t\t\t}\n\t\t\t$counter++;\n\t\t}*/\n\t\t////////////////////////////////////////////////\n\t\t//This functionality has now been replaced by MessageBot (messagebot.php)\n\t}", "public function whoisEditing() {\n\n\t\t$channel_name = $this->input->post('channel_name');\n\n\t\t$message = array(\n\t\t\t'pusher_member_id' => $this->session->userdata('pusher_member_id'),\n\t\t\t'username' => $this->session->userdata('username'));\n\n\t\t$this->pusher->trigger($channel_name, 'whos_editing', array('message' => $message));\n\n\t\techo json_encode(array(\n\t\t\t'message' => $message,\n\t\t\t'success' => true,\n\t\t));\n\t}", "public function onNotice($callback)\n {\n $handler = new EventListener(null, $callback);\n $this->dispatcher->addListener('server.notice', array($handler, 'testAndExecute'));\n }", "function onesignin_client_handle_after_update_notification($account) {\n watchdog('onesignin', 'Updating user %name on request of One Signin server.', array('%name' => $account->name), WATCHDOG_INFO);\n onesignin_client_userdata_synchronize($account->server_uid);\n}", "function process($user,$msg){\n $c=0;\n \t$this->say(\"(user: \".$user->id.\") msg> \".$msg);\n //$this->say(\"< \".$msg);\n\t\n switch($msg){\n\t case \"ping\" : $this->send($user->socket,\"pong\"); break; //heartbeat frame reply with pong\n case \"hello\" : $this->send($user->socket,\"hello human\"); break;\n case \"name\" : $this->send($user->socket,\"My Name is\".php_uname(\"n\") ); \t\tbreak;\n\t case \"temp\" : $this->send($user->socket,\"Temp. in NYC:\".$this->getTemp() ); break;\n case \"date\" : $this->send($user->socket,\"today is \".date(\"Y.m.d\")); break;\n case \"time\" : $this->send($user->socket,\"server time is \".date(\"H:i:s\")); break;\n case \"thanks\": $this->send($user->socket,\"you're welcome\"); break;\n\t case \"id\" : \t$this->send($user->socket,\"You are user: \".$user.\" \\r\\n\"); break;\n\t case \"users\": $list=\"User's List \\r\\n\";\n\t\t\t\t\t\tforeach($this->users as $u)\n\t\t\t\t\t\t $list.=\"user #\".++$c.\". $u \\r\\n\";\n\t\t\t\t\t\t \n\t\t\t\t\t\t$this->send($user->socket,$list); \n\t\t\t\t\t break;\n\t\t\t\t\t\n case \"bye\" : $this->send($user->socket,\"bye\"); \n\t\t\t\t\t\t$this->disconnect($user->socket);\n\t\t\t\t\t\tbreak;\n default : $this->send($user->socket,$msg.\" not understood - \".date(\"H:i:s\") ); break;\n }\n }", "private function notify($msg)\n {\n if ($this->output !== null) {\n $this->output->writeln(\"<comment> {$msg}</comment>\");\n }\n }", "public function doNick($nick)\n {\n $this->send('NICK', $nick);\n }", "private function _checkMessageFor()\n {\n return;\n \n $dbh = $this->_connectToDb();\n \n $stmt = $dbh->query(\"SELECT message, when, from FROM messages WHERE LOWER(nick) = '\". strtolower(trim($this->_data->nick)) .\"' AND seen = 0 ORDER BY id DESC LIMIT 1\");\n \n $row = $stmt->fetch(PDO::FETCH_OBJ);\n\n if (isset($row->when)) {\n\n $this->_privmessage(\n 'I have a message for you from '. $row->from,\n $this->_data->nick\n );\n $this->_privmessage(\n 'Message begin: '. $row->message .' :: Message End',\n $this->_data->nick\n );\n $this->_privmessage(\n 'Send: '. $row->when,\n $this->_data->nick\n );\n }\n }", "public function onUdpPacket($pct) {}", "protected function say($msg, $source) {\n\t\t$this->connection->sendData(\n\t\t\t\t'PRIVMSG ' . $source . ' :' . $msg\n\t\t);\n\t}", "function onTextmessage(TeamSpeak3_Adapter_ServerQuery_Event $event, TeamSpeak3_Node_Host $host)\n{\n global $ts3, $name, $debug; \n $msg = $event[\"msg\"];\n $invoker = $event[\"invokername\"];\n \n if($invoker != $name) {\n \n if($debug) echo($invoker.\": \".$msg.\"\\n\");\n \n if($debug) echo(\"User \".$invoker.\" passed security check\\n\");\n \n $invoker_db = $ts3->clientGetByName($invoker);\n \n if($invoker_db[\"client_unique_identifier\"] == \"DOgQ0YV9+wZ9YMdD3JPfhvlv/xqM=\" OR $invoker_db[\"client_unique_identifier\"] == \"gWszaxdv1W+8KlIHafUe+ZdOaiI=\") {\n\n // preparing the command arguments\n $block = array(11, 26, 2);\n $values[1] = intval( $uid );\n $id_a = $ts3->getId();\n $arguments = explode(\" \", $msg);\n if($debug) echo(\"Arguments:\\n\"); print_r($arguments);echo(\"\\n\"); \n switch ($arguments[0]) {\n\tcase \"!ping\":\n\t\tgizisent(\"Pong!\",$ts3,$id_a);\n\t\tbreak;\n\tcase \"!add\":\n\t\tif (in_array($arguments[1], $block)){\n\t\tgizisent(\"Access denied\",$ts3,$id_a);\n\t\t} else {\n\t\t$ts3->serverGroupClientAdd($arguments[1],$arguments[2]);\t\t\n\t\tgizisent(\"Rank was add\",$ts3,$id_a);\n\t\t}\n\t\tbreak;\t \n\tcase \"!del\":\n\t\tif (in_array($arguments[1], $block)){\n\t\tgizisent(\"Access denied\",$ts3,$id_a);\n\t\t} else {\n\t\t$ts3->serverGroupClientDel($arguments[1],$arguments[2]);\t\t\n\t\tgizisent(\"Rank was remove\",$ts3,$id_a);\n\t\t}\n\t\tbreak;\t\t\t\n\tcase \"!info\":\n\t\tgizisent(\"Project GzPro.net\",$ts3,$id_a);\n\t\tbreak;\t \n\tcase \"!help\":\n\t\tgizisent(\"Commands:\n\t\t!ping - test\n\t\t!add <id ServerGroup> <dbid user> - Giving Rank\n\t\t!del <id ServerGroup> <dbid user> - Remove Rank\n\t\t!info - Information Bot\",$ts3,$id_a);\n }\n \n}\n}\n}", "function sendMessage($vars) {\r\n extract($vars);\r\n\t\r\n\tlist($dbconn) = lnDBGetConn();\r\n\t$lntable = lnDBGetTables();\r\n\r\n\t$privmsgstable = $lntable['privmsgs'];\r\n\t$privmsgscolumn = &$lntable['privmsgs_column'];\r\n\r\n\t$id = getMaxPrivMsgID();\r\n\t$type = _MESSAGESEND; \r\n\t$send_time = time();\r\n\t$ip = getenv(\"REMOTE_ADDR\");\r\n\tif (empty($from_uid)) {\r\n\t\t$from_uid = lnSessionGetVar('uid');\r\n\t}\r\n\tif (empty($to_uid)) {\r\n\t\t$to_uid = lnUserGetUid($nickname);\r\n\t\tmessageHead($vars);\r\n\t}\r\n\t\r\n\tif (empty($to_uid)) {\r\n\t\techo '<P><TABLE CELLPADDING=10 CELLSPACING=1 BGCOLOR=\"#FF0000\" HEIGHT=\"50\"><TR><TD BGCOLOR=\"#FFFFFF\" ALIGN=\"CENTER\">';\r\n\t\techo '<B>Sorry but no such user exists</B>';\r\n\t\techo '<P><< <A HREF=\"javascript:history.go(-1)\">Back</A>';\r\n\t\techo '</TD></TR></TABLE>';\r\n\t}\r\n\telse {\r\n\t\t$query = \"INSERT INTO $privmsgstable (\r\n\t\t\t\t\t\t$privmsgscolumn[id],\r\n\t\t\t\t\t\t$privmsgscolumn[type],\r\n\t\t\t\t\t\t$privmsgscolumn[priority],\r\n\t\t\t\t\t\t$privmsgscolumn[subject],\r\n\t\t\t\t\t\t$privmsgscolumn[message],\r\n\t\t\t\t\t\t$privmsgscolumn[from_uid],\r\n\t\t\t\t\t\t$privmsgscolumn[to_uid],\r\n\t\t\t\t\t\t$privmsgscolumn[date],\r\n\t\t\t\t\t\t$privmsgscolumn[ip],\r\n\t\t\t\t\t\t$privmsgscolumn[enable]\r\n\t\t\t\t\t\t)\r\n\t\t\t\t\t\tVALUES (\r\n\t\t\t\t\t\t'\". lnVarPrepForStore($id) .\"',\r\n\t\t\t\t\t\t'\". lnVarPrepForStore($type) .\"',\r\n\t\t\t\t\t\t'\". lnVarPrepForStore($priority) .\"',\r\n\t\t\t\t\t\t'\". lnVarPrepForStore($subject) .\"',\r\n\t\t\t\t\t\t'\". lnVarPrepForStore($message) .\"',\r\n\t\t\t\t\t\t'\". lnVarPrepForStore($from_uid) .\"',\r\n\t\t\t\t\t\t'\". lnVarPrepForStore($to_uid) .\"',\r\n\t\t\t\t\t\t'\". lnVarPrepForStore($send_time) .\"',\r\n\t\t\t\t\t\t'\". lnVarPrepForStore($ip) .\"',\r\n\t\t\t\t\t\t'1'\r\n\t\t\t\t\t\t) \";\r\n\t\t\t$result = $dbconn->Execute($query);\r\n\r\n\t\t\t/*\r\n\t\t\techo '<P><TABLE CELLPADDING=10 CELLSPACING=1 BGCOLOR=\"#0066CC\" HEIGHT=\"50\"><TR><TD BGCOLOR=\"#FFFFFF\" ALIGN=\"CENTER\">';\r\n\t\t\techo '<B>Your message has been sent</B>';\r\n\t\t\techo '<P>Click <A HREF=\"index.php?mod=Private_Messages&amp;op=inbox\">Here</A> to return to your Inbox';\r\n\t\t\techo '</TD></TR></TABLE>';\r\n\t\t\t*/\r\n\r\n\r\n\t}\r\n}", "private function send_msg() {\r\n }", "public function notify()\n\t\t{\n\t\t\techo \"Notifying via YM\\n\";\n\t\t}", "function new_user_email_admin_notice()\n {\n }", "public function onReceivedMessage($data)\n {\n try {\n // Decode incoming data and log it\n $message = json_decode($data, true, 512, JSON_THROW_ON_ERROR);\n echo print_r($message, true);\n } catch (\\JsonException $e) {\n // If it's not valid JSON, we can ignore it, but we should send and\n // ACK regardless. NOTE: This is probably the opening message from\n // OOCSI\n $this->connection->send('.');\n return;\n }\n \n // Send back a dot as acknowledgement\n $this->connection->send('.');\n\n // Check if the message contains a timestamp\n if (!$message['timestamp']) {\n onDataReceived($message);\n }\n\n // Pass the data off to the next function\n $this->handleData($message);\n }", "public function onCommandChat(CommandSender $p, Command $cmd, $label, array $args) {\n if ($p instanceof Player) {\n $p->sendMessage(\"Chat was called...\");\n\n # Pruefe Anzahl der Parameter\n if (count($args)<2) {\n $p->sendMessage(\"Parameter missing, read the help\");\n }\n\n # Verbinde hintere Parameter zu einer Message\n $message=$args[1];\n for ($i=2; $i<count($args); $i=$i+1) { \n $message=$message . \" \" . $args[$i];\n $this->getLogger()->info($message);\n }\n\n # Suche den Adressaten der Message\n $playername=$args[0];\n $player=$this->getServer()->getPlayer($playername);\n\n # Wenn gefunden, schicke die Message\n if ($player==null) {\n $p->sendMessage(\"Player is offline\");\n } else {\n $player->sendMessage($message);\n } \n }\n }", "private function _message($message)\n {\n if ($this->_data->channel)\n {\n $this->_irc->message(SMARTIRC_TYPE_CHANNEL, $this->_data->channel, $message);\n }\n else {\n $this->_privmessage($message, $this->_data->nick);\n }\n\n \n }", "public function onNick()\n {\n $nick = trim($this->event->getNick());\n $newNick = trim($this->event->getArgument(0));\n\n foreach ($this->store as $chan => $store) {\n if (isset($store[$nick])) {\n $this->store[$chan][$newNick] = $store[$nick];\n unset($this->store[$chan][$nick]);\n }\n }\n }", "public function receivedNotice()\r\n {\r\n try {\r\n $notice = $this->getNotificationRequest()->takeNotification();\r\n if (!$this->getNotificationRequest()->verifySignature($notice, $this->pin)) {\r\n throw new \\Exception('Invalid notification');\r\n }\r\n array_walk($this->observators,\r\n function (Notification $n) use ($notice) {\r\n $n->callNotification($notice);\r\n });\r\n return 'OK';\r\n } catch (\\Exception $e) {\r\n return 'ERROR';\r\n }\r\n }", "public function doPrivmsg($target, $text)\n {\n $this->send('PRIVMSG', array($target, $text));\n }", "public function responseMsg()\n {\n $postStr = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n\n //extract post data\n if (!empty($postStr)) {\n\n $postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);\n $fromUsername = $postObj->FromUserName;\n $toUsername = $postObj->ToUserName;\n $keyword = trim($postObj->Content);\n $time = time();\n $textTpl = \"<xml>\n\t\t\t\t\t\t\t<ToUserName><![CDATA[%s]]></ToUserName>\n\t\t\t\t\t\t\t<FromUserName><![CDATA[%s]]></FromUserName>\n\t\t\t\t\t\t\t<CreateTime>%s</CreateTime>\n\t\t\t\t\t\t\t<MsgType><![CDATA[%s]]></MsgType>\n\t\t\t\t\t\t\t<Content><![CDATA[%s]]></Content>\n\t\t\t\t\t\t\t<FuncFlag>0</FuncFlag>\n\t\t\t\t\t\t\t</xml>\";\n if (!empty($keyword)) {\n $msgType = \"text\";\n $contentStr = \"Welcome to wechat world!\";\n $resultStr = sprintf($textTpl, $fromUsername, $toUsername, $time, $msgType, $contentStr);\n echo $resultStr;\n } else {\n echo \"Input something...\";\n }\n\n } else {\n echo \"\";\n exit;\n }\n }", "public function responseMsg()\n {\n $postStr = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n\n //extract post data\n if (!empty($postStr)){\n \n $postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);\n $RX_TYPE = trim($postObj->MsgType);\n\n switch($RX_TYPE)\n {\n case \"text\":\n $resultStr = $this->handleText($postObj);\n break;\n case \"event\":\n $resultStr = $this->handleEvent($postObj);\n break;\n default:\n $resultStr = \"Unknow msg type: \".$RX_TYPE;\n break;\n }\n echo $resultStr;\n }else {\n echo \"\";\n exit;\n }\n }", "public function responseMsg()\n {\n $postStr = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n\n //extract post data\n if (!empty($postStr)){\n \n $postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);\n $RX_TYPE = trim($postObj->MsgType);\n\n switch($RX_TYPE)\n {\n case \"text\":\n $resultStr = $this->handleText($postObj);\n break;\n case \"event\":\n $resultStr = $this->handleEvent($postObj);\n break;\n default:\n $resultStr = \"Unknow msg type: \".$RX_TYPE;\n break;\n }\n echo $resultStr;\n }else {\n echo \"\";\n exit;\n }\n }", "function onMessage(ConnectionInterface $from, $msg);", "private function parseMessage() {\n\n\t\t# Regexp to parse a formatted message\n\t\t# The message should come in format of\n\t\t# :(.*)\\!(.*)\\@(.*) PRIVMSG #channelname \\:(.*) for regular chatter\n\t\t# thus returning nickname, realname, hostmask, (command, arguments) || (botname: command (arguments)) || (chatter)\n\t\t$matched = false;\n\n # Try to match against the bots name!\n # This could mean it is a direct message in chan followed by a command request\n if(!$matched) {\n $pattern = '/:(.*)\\!(.*)\\@(.*) PRIVMSG '.$this->config['destinationChannel'].' \\:('.$this->config['username'].')\\:(?: +)?([^\\s]*) (.*)/';\n preg_match($pattern, $this->inbound, $matches);\n if(count($matches) > 1) {\n $matched = true;\n $this->lastMessage = array(\n 'nickname' => $matches[1],\n 'realname' => $matches[2],\n 'hostname' => $matches[3],\n 'command' => $matches[5],\n 'args' => rtrim($matches[6],\"\\n\\r\"),\n 'chatter' => ''\n );\n # Have to match a case whereby a command of 'botname: command' with no args is provided (for help)\n # If this case occurs we have to do some arg movement otherwise the command parser won't get a hit\n if($this->lastMessage['args'] != \"\" && $this->lastMessage['command'] == '') {\n $this->lastMessage['command'] = $this->lastMessage['args'];\n $this->lastMessage['args'] = \"\";\n }\n }\n }\n\n\t\tif(!$matched) {\n\t\t\t$pattern = '/:(.*)\\!(.*)\\@(.*) PRIVMSG '.$this->config['destinationChannel'].' \\:(.*)/';\n\t\t\tpreg_match($pattern, $this->inbound, $matches);\n\t\t\tif(count($matches) > 1) {\n\t\t\t\t$this->lastMessage = array(\n\t\t\t\t\t'nickname' => $matches[1],\n\t\t\t\t\t'realname' => $matches[2],\n\t\t\t\t\t'hostname' => $matches[3],\n\t\t\t\t\t'command' => '',\n\t\t\t\t\t'args' => '',\n\t\t\t\t\t'chatter' => rtrim($matches[4],\"\\n\\r\")\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}", "public function responseMsg()\n {\n\t\t$postStr = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n\n \t//extract post data\n\t\tif (!empty($postStr)){\n /* libxml_disable_entity_loader is to prevent XML eXternal Entity Injection,\n the best way is to check the validity of xml by yourself */\n libxml_disable_entity_loader(true);\n \t$postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);\n $fromUsername = $postObj->FromUserName;\n $toUsername = $postObj->ToUserName;\n $keyword = trim($postObj->Content);\n $time = time();\n $textTpl = \"<xml>\n\t\t\t\t\t\t\t<ToUserName><![CDATA[%s]]></ToUserName>\n\t\t\t\t\t\t\t<FromUserName><![CDATA[%s]]></FromUserName>\n\t\t\t\t\t\t\t<CreateTime>%s</CreateTime>\n\t\t\t\t\t\t\t<MsgType><![CDATA[%s]]></MsgType>\n\t\t\t\t\t\t\t<Content><![CDATA[%s]]></Content>\n\t\t\t\t\t\t\t<FuncFlag>0</FuncFlag>\n\t\t\t\t\t\t\t</xml>\"; \n\t\t\t\tif(!empty( $keyword ))\n {\n \t\t$msgType = \"text\";\n \t$contentStr = \"Welcome to wechat world!\";\n \t$resultStr = sprintf($textTpl, $fromUsername, $toUsername, $time, $msgType, $contentStr);\n \techo $resultStr;\n }else{\n \techo \"Input something...\";\n }\n\n }else {\n \techo \"\";\n \texit;\n }\n }", "function send_user_pm($data)\n\t{\n\t\tglobal $db;\n\n\t\t$this->update_single_field(USERS_TABLE, 'user_new_privmsg', '1', 'user_id', $data['user_id']);\t\n\t\t$this->update_single_field(USERS_TABLE, 'user_last_privmsg', '9999999999', 'user_id', $data['user_id']);\t\n\t\t$sql = \"INSERT INTO \" . PRIVMSGS_TABLE . \" (privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid, privmsgs_date, privmsgs_enable_html, privmsgs_enable_bbcode, privmsgs_enable_smilies, privmsgs_attach_sig) VALUES ('0', '\".$data['pm_subject'].\"', '\".$data['author_id'].\"', '\".$data['user_id'].\"', '\".$data['date'].\"', '0', '1', '1', '0')\";\n \t\n\t \tif ( !$db->sql_query($sql) )\n \t{\n \t\tmessage_die(GENERAL_ERROR, 'Could Not Insert PM Sent Info', '', __LINE__, __FILE__, $sql);\n \t}\n \n \t\t$id = $db->sql_nextid();\n\n\t\t$sql = \"INSERT INTO \" . PRIVMSGS_TEXT_TABLE . \" (privmsgs_text_id, privmsgs_text) VALUES ($id, '\".$data['pm_text'].\"' )\";\n\n \tif ( !$db->sql_query($sql) )\n \t{\n \t\tmessage_die(GENERAL_ERROR, 'Could Not Insert PM Sent Text', '', __LINE__, __FILE__, $sql);\n \t}\n\n\t\treturn ;\n\t}", "function user_notification($mode, &$post_data, &$topic_title, &$forum_id, &$topic_id, &$post_id, &$notify_user)\n{\n\tglobal $bb_cfg, $lang, $db;\n\tglobal $userdata;\n\n\tif (!$bb_cfg['topic_notify_enabled'])\n\t{\n\t\treturn;\n\t}\n\n\t$current_time = time();\n\n\tif ($mode != 'delete')\n\t{\n\t\tif ($mode == 'reply')\n\t\t{\n\t\t\t$sql = \"SELECT ban_userid\n\t\t\t\tFROM bb_banlist\";\n\t\t\tif (!($result = $db->sql_query($sql)))\n\t\t\t{\n\t\t\t\tmessage_die(GENERAL_ERROR, 'Could not obtain banlist', '', __LINE__, __FILE__, $sql);\n\t\t\t}\n\n\t\t\t$user_id_sql = '';\n\t\t\twhile ($row = $db->sql_fetchrow($result))\n\t\t\t{\n\t\t\t\tif (isset($row['ban_userid']) && !empty($row['ban_userid']))\n\t\t\t\t{\n\t\t\t\t\t$user_id_sql .= ', ' . $row['ban_userid'];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$sql = \"SELECT u.user_id, u.user_email, u.user_lang\n\t\t\t\tFROM bb_topics_watch tw, bb_users u\n\t\t\t\tWHERE tw.topic_id = $topic_id\n\t\t\t\t\tAND tw.user_id NOT IN (\" . $userdata['user_id'] . \", \" . ANONYMOUS . $user_id_sql . \")\n\t\t\t\t\tAND tw.notify_status = \" . TOPIC_WATCH_UN_NOTIFIED . \"\n\t\t\t\t\tAND u.user_id = tw.user_id\";\n\t\t\tif (!($result = $db->sql_query($sql)))\n\t\t\t{\n\t\t\t\tmessage_die(GENERAL_ERROR, 'Could not obtain list of topic watchers', '', __LINE__, __FILE__, $sql);\n\t\t\t}\n\n\t\t\t$update_watched_sql = '';\n\t\t\t$bcc_list_ary = array();\n\n\t\t\tif ($row = $db->sql_fetchrow($result))\n\t\t\t{\n\t\t\t\t// Sixty second limit\n\t\t\t\t@set_time_limit(60);\n\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\tif ($row['user_email'] != '')\n\t\t\t\t\t{\n\t\t\t\t\t\t$bcc_list_ary[$row['user_lang']][] = $row['user_email'];\n\t\t\t\t\t}\n\t\t\t\t\t$update_watched_sql .= ($update_watched_sql != '') ? ', ' . $row['user_id'] : $row['user_id'];\n\t\t\t\t}\n\t\t\t\twhile ($row = $db->sql_fetchrow($result));\n\n\t\t\t\t//\n\t\t\t\t// Let's do some checking to make sure that mass mail functions\n\t\t\t\t// are working in win32 versions of php.\n\t\t\t\t//\n\t\t\t\tif (preg_match('/[c-z]:\\\\\\.*/i', getenv('PATH')) && !$bb_cfg['smtp_delivery'])\n\t\t\t\t{\n\t\t\t\t\t$ini_val = (@phpversion() >= '4.0.0') ? 'ini_get' : 'get_cfg_var';\n\n\t\t\t\t\t// We are running on windows, force delivery to use our smtp functions\n\t\t\t\t\t// since php's are broken by default\n\t\t\t\t\tif (!@$ini_val('sendmail_path')) {\n\t\t\t\t\t$bb_cfg['smtp_delivery'] = 1;\n\t\t\t\t\t$bb_cfg['smtp_host'] = @$ini_val('SMTP');\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (sizeof($bcc_list_ary))\n\t\t\t\t{\n\t\t\t\t\trequire SITE_DIR . 'includes/emailer.php';\n\t\t\t\t\t$emailer = new emailer($bb_cfg['smtp_delivery']);\n\n\t\t\t\t\t$script_name = preg_replace('/^\\/?(.*?)\\/?$/', '\\1', trim($bb_cfg['script_path']));\n\t\t\t\t\t$script_name = ($script_name != '') ? $script_name . '/viewtopic.php' : 'viewtopic.php';\n\t\t\t\t\t$server_name = trim($bb_cfg['server_name']);\n\t\t\t\t\t$server_protocol = ($bb_cfg['cookie_secure']) ? 'https://' : 'http://';\n\t\t\t\t\t$server_port = ($bb_cfg['server_port'] <> 80) ? ':' . trim($bb_cfg['server_port']) . '/' : '/';\n\n\t\t\t\t\t$orig_word = array();\n\t\t\t\t\t$replacement_word = array();\n\t\t\t\t\tobtain_word_list($orig_word, $replacement_word);\n\n\t\t\t\t\t$emailer->from($bb_cfg['board_email']);\n\t\t\t\t\t$emailer->replyto($bb_cfg['board_email']);\n\n\t\t\t\t\t$topic_title = (count($orig_word)) ? preg_replace($orig_word, $replacement_word, unprepare_message($topic_title)) : unprepare_message($topic_title);\n\n\t\t\t\t\t@reset($bcc_list_ary);\n\t\t\t\t\twhile (list($user_lang, $bcc_list) = each($bcc_list_ary))\n\t\t\t\t\t{\n\t\t\t\t\t\t$emailer->use_template('topic_notify', $user_lang);\n\n\t\t\t\t\t\tfor ($i = 0; $i < count($bcc_list); $i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$emailer->bcc($bcc_list[$i]);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// The Topic_reply_notification lang string below will be used\n\t\t\t\t\t\t// if for some reason the mail template subject cannot be read\n\t\t\t\t\t\t// ... note it will not necessarily be in the posters own language!\n\t\t\t\t\t\t$emailer->set_subject($lang['Topic_reply_notification']);\n\n\t\t\t\t\t\t// This is a nasty kludge to remove the username var ... till (if?)\n\t\t\t\t\t\t// translators update their templates\n\t\t\t\t\t\t$emailer->msg = preg_replace('#[ ]?{USERNAME}#', '', $emailer->msg);\n\n\t\t\t\t\t\t$emailer->assign_vars(array(\n\t\t\t\t\t\t\t'EMAIL_SIG' => (!empty($bb_cfg['board_email_sig'])) ? str_replace('<br />', \"\\n\", \"-- \\n\" . $bb_cfg['board_email_sig']) : '',\n\t\t\t\t\t\t\t'SITENAME' => $bb_cfg['sitename'],\n\t\t\t\t\t\t\t'TOPIC_TITLE' => $topic_title,\n\n\t\t\t\t\t\t\t'U_TOPIC' => $server_protocol . $server_name . $server_port . $script_name . '?' . POST_POST_URL . \"=$post_id#$post_id\",\n\t\t\t\t\t\t\t'U_STOP_WATCHING_TOPIC' => $server_protocol . $server_name . $server_port . $script_name . '?' . POST_TOPIC_URL . \"=$topic_id&unwatch=topic\")\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\t$emailer->send();\n\t\t\t\t\t\t$emailer->reset();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$db->sql_freeresult($result);\n\n\t\t\tif ($update_watched_sql != '')\n\t\t\t{\n\t\t\t\t$sql = \"UPDATE bb_topics_watch\n\t\t\t\t\tSET notify_status = \" . TOPIC_WATCH_NOTIFIED . \"\n\t\t\t\t\tWHERE topic_id = $topic_id\n\t\t\t\t\t\tAND user_id IN ($update_watched_sql)\";\n\t\t\t\t$db->sql_query($sql);\n\t\t\t}\n\t\t}\n\n\t\t$sql = \"SELECT topic_id\n\t\t\tFROM bb_topics_watch\n\t\t\tWHERE topic_id = $topic_id\n\t\t\t\tAND user_id = \" . $userdata['user_id'];\n\t\tif (!($result = $db->sql_query($sql)))\n\t\t{\n\t\t\tmessage_die(GENERAL_ERROR, 'Could not obtain topic watch information', '', __LINE__, __FILE__, $sql);\n\t\t}\n\n\t\t$row = $db->sql_fetchrow($result);\n\n\t\tif (!$notify_user && !empty($row['topic_id']))\n\t\t{\n\t\t\t$sql = \"DELETE FROM bb_topics_watch\n\t\t\t\tWHERE topic_id = $topic_id\n\t\t\t\t\tAND user_id = \" . $userdata['user_id'];\n\t\t\tif (!$db->sql_query($sql))\n\t\t\t{\n\t\t\t\tmessage_die(GENERAL_ERROR, 'Could not delete topic watch information', '', __LINE__, __FILE__, $sql);\n\t\t\t}\n\t\t}\n\t\telse if ($notify_user && empty($row['topic_id']))\n\t\t{\n\t\t\t$sql = \"INSERT INTO bb_topics_watch (user_id, topic_id, notify_status)\n\t\t\t\tVALUES (\" . $userdata['user_id'] . \", $topic_id, 0)\";\n\t\t\tif (!$db->sql_query($sql))\n\t\t\t{\n\t\t\t\tmessage_die(GENERAL_ERROR, 'Could not insert topic watch information', '', __LINE__, __FILE__, $sql);\n\t\t\t}\n\t\t}\n\t}\n}", "public function aim_parse_command($cmd, $args)\r\n\t{\r\n\t\tswitch ($cmd) {\r\n\t\t\tcase 'SIGN_ON':\r\n\t\t\t\tif ($args == $this->core->conn['protocol']) $this->core->aim_debug('Protocol versions match ('.$this->core->conn['protocol'].'), continuing login..');\r\n\t\t\t\tbreak;\r\n\r\n case 'NEW_BUDDY_REPLY2':\r\n case 'INSERTED2':\r\n case 'UPDATED2':\r\n case 'DELETED2':\r\n\t\t\tcase 'CONFIG2':\r\n if ($this->core->user['debug']) {\r\n \t\t\t\tprint $cmd.' ';\r\n var_dump($args);\r\n }\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'ERROR':\r\n if (strstr($args, ':')) {\r\n @list($errno, $errtxt) = explode(':', $args, 2);\r\n } else {\r\n $errno = $args; $errtxt = null;\r\n }\r\n $this->core->errorhandler->handleError((int)$errno, $errtxt);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'NICK':\r\n\t\t\t\t$this->core->aim_debug('You have successfully identified as ' . $args);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'ADMIN_NICK_STATUS':\r\n\t\t\t\tif ($args == 0) $this->core->aim_debug('You have successfully reformatted your nick');\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'ADMIN_PASSWD_STATUS':\r\n\t\t\t\tif ($args == 0) $this->core->aim_debug('You have successfully changed your password');\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'GOTO_URL': \r\n\t\t\t\t// only supported in graphical clients (PHP isn't one of them ;)\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'UPDATE_BUDDY2':\r\n $data = array();\r\n @list($data['screenname'], $data['online'], $data['evil'],\r\n $data['signon'], $data['idle'], $data['class'],\r\n $data['unknown']) = explode(':', $args, 7);\r\n $data['screenname'] = $this->core->aim_normalize($data['screenname']);\r\n $data['online'] = ($data['online'] == 'T') ? true : false;\r\n $data['class'] = $this->core->buddy->aim_get_user_class($data['class']);\r\n\r\n if ($this->core->user['debug']) {\r\n \t\t\t\tprint $cmd.' ';\r\n var_dump($data);\r\n }\r\n\r\n // don't post our own information... duh?\r\n if ($data['screenname'] != $this->core->user['screenname']) {\r\n if (!in_array($data['screenname'], $this->core->pounce['buddies'])) {\r\n $this->core->pounce['buddies'][$data['screenname']] = false;\r\n }\r\n $this->aim_parse_buddy_update($data);\r\n }\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'EVILED':\r\n\t\t\t\tpreg_match('/^(.+)\\:(.*)$/', $args, $matches);\r\n\t\t\t\t$who = (empty($matches[2])) ? 'an anonymous user' : $matches[2];\r\n\t\t\t\t$this->core->aim_debug('You have just been warned (' . $matches[1] . '%) by ' . $who, AIM_RECV);\r\n\t\t\t\tif ($this->core->user['defensive'] === true && !empty($matches[2])) {\r\n\t\t\t\t\t$this->core->utilities->aim_send_im($matches[2], 'Fine, have it your way...', true);\r\n\t\t\t\t\tsleep(1);\r\n\t\t\t\t\t$this->core->utilities->aim_warn($matches[2]);\r\n\t\t\t\t} \r\n\t\t\t\tbreak;\r\n \r\n case 'IM_IN_ENC2':\r\n // utf8_decode the data\r\n if ($this->core->user['debug']) {\r\n \t\t\t\tprint $cmd.' ';\r\n var_dump($args);\r\n }\r\n break;\r\n\r\n\t\t\tcase 'IM_IN2':\r\n\t\t\t\t$data = array();\r\n\t\t\t\tpreg_match(\"/^([A-Za-z0-9\\s]{3,16})\\:(T|F)\\:(T|F)\\:(.*)$/\", $args, $matches);\r\n\t\t\t\t$this->core->aim_debug('You have just recieved an IM from ' . $matches[1] . '' . (($matches[2] == 'T') ? ' (autoresponse)' : ''), AIM_RECV);\r\n\t\t\t\t$data['screenname'] = $this->core->aim_normalize($matches[1]);\r\n\t\t\t\t$data['autoresponse'] = ($matches[2] == 'T') ? true : false;\r\n $data['unknown'] = $matches[3];\r\n\t\t\t\t$data['message'] = trim(strip_tags($matches[4]));\r\n\t\t\t\t$data['message_type'] = AIM_MSG_IM;\r\n\r\n // Search for the away message callback\r\n // --------------------------------------------------------\r\n // If none is found, the bot dies... We should include this\r\n // into the constructor somehow, and issue the error from\r\n // there, letting the user know it's a required callback\r\n foreach ($this->core->handlers as $h) {\r\n if ($h['type'] == CLIENT_AWAY) {\r\n $message = '!'.$h['name']; break;\r\n } else {\r\n $this->core->aim_debug('No client away callback specified!', AIM_ERR);\r\n }\r\n }\r\n\r\n // Issue the command\r\n\t\t\t\tif ($this->core->away['isaway'] === true && $data['message'] != $message) {\r\n\t\t\t\t\t$this->core->utilities->aim_send_im($matches[1], $this->core->away['message'], true, true);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->aim_parse_im($data);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'CHAT_JOIN':\r\n\t\t\t\tpreg_match('/^(.+)\\:(.*)$/', $args, $matches);\r\n\t\t\t\t$this->core->aim_debug('You have successfully joined \"' . $matches[2] . '\"');\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'CHAT_LEFT':\r\n\t\t\t\t$this->core->aim_debug('You have successfully left the chat');\r\n\t\t\t\tbreak;\r\n\r\n case 'CHAT_INVITE_ENC':\r\n // utf8_decode the data\r\n if ($this->core->user['debug']) {\r\n \t\t\t\tprint $cmd.' ';\r\n var_dump($args);\r\n }\r\n break;\r\n\r\n\t\t\tcase 'CHAT_INVITE':\r\n\t\t\t\tpreg_match('/^(.+)\\:(.+)\\:(.+)\\:(.*)$/', $args, $matches);\r\n\t\t\t\t$this->core->aim_debug('You have been invited to join \"' . $matches[1] . '\"');\r\n\t\t\t\t$this->core->user['chats'][$matches[2]] = $matches[1];\r\n\t\t\t\t$this->core->chat->aim_chat_join_invite($matches[2]);\r\n\t\t\t\tbreak;\r\n\r\n case 'CHAT_IN_ENC':\r\n // utf8_decode the data\r\n if ($this->core->user['debug']) {\r\n \t\t\t\tprint $cmd.' ';\r\n var_dump($args);\r\n }\r\n break;\r\n\r\n\t\t\tcase 'CHAT_IN':\r\n\t\t\t\t$data = array();\r\n\t\t\t\tpreg_match('/^(.+)\\:(.+)\\:(T|F)\\:(.*)$/', $args, $matches);\r\n\t\t\t\t$this->core->aim_debug($matches[2] . \" has spoken in \\\"\" . $this->core->user['chats'][$matches[1]] . \"\\\"\" . (($matches[3] == 'T')?' (whisper)':''), AIM_RECV);\r\n\t\t\t\t$data['screenname'] = $this->core->aim_normalize($matches[2]);\r\n\t\t\t\t$data['message'] = trim(strip_tags($matches[4]));\r\n\t\t\t\t$data['whisper'] = ($matches[3] == 'T') ? true : false;\r\n\t\t\t\t$data['cid'] = $matches[1];\r\n\t\t\t\t$data['message_type'] = AIM_MSG_CHAT;\r\n\t\t\t\t$this->aim_parse_im($data);\r\n\t\t\t\tbreak;\r\n\r\n case 'CHAT_UPDATE_BUDDY':\r\n if ($this->core->user['debug']) {\r\n \t\t\t\tprint $cmd.' ';\r\n var_dump($args);\r\n }\r\n break;\r\n\r\n\t\t\tcase 'PAUSE':\r\n $this->core->aim_debug('TAC has recieved a PAUSE command from the TOC server. Any messages sent to this client will not be recieved until the PAUSE period is completed');\r\n\t\t\t\tbreak;\r\n\r\n\t\t} \r\n\t}", "public function handleChargeResp($ch){\n $this->chargeSuccess = $ch->outcome->network_status == 'approved_by_network';\n $this->msgToUser = $ch->outcome->seller_message;\n }", "function server_parse($socket, $expected_response)\n{\n $server_response = '';\n $counter = 0;\n while (substr($server_response, 3, 1) != ' ') {\n if (!($server_response = fgets($socket, 256))) {\n $counter++;\n if ($counter % 100 == 0) {\n echo json_encode([\"message\" => \"Error fetching response from server $expected_response\"]);\n sleep(1);\n }\n }\n }\n if (!(substr($server_response, 0, 3) == $expected_response)) {\n echo json_encode([\"message\" => 'Unable to send e-mail.\"' . $server_response . '\"' . \" $expected_response\"]);\n }\n}", "public function responseMsg()\n {\n\t\t$postStr = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n //接收微信公众平台发送过来的用户消息,该消息数据结构为XML,不是php默认的识别数据类型,因此这里用了$GLOBALS['HTTP_RAW_POST_DATA']来接收,同时赋值给了$postStr\n\n \t//extract post data\n\t\tif (!empty($postStr)){\n \n \t$postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);\n \t//使用simplexml_load_string() 函数将接收到的XML消息数据载入对象$postObj中。这个严谨的写法后面还得加个判断是否载入成功的条件语句,不过不写也没事。\n \t$RX_TYPE = trim($postObj->MsgType); \n \t//接收信息的类型\n \t\n \tswitch($RX_TYPE)\n {\n case \"text\":\n $resultStr = $this->handleText($postObj);\n break;\n \n case \"event\":\n $resultStr = $this->handleEvent($postObj);\n break;\n \n default:\n $resultStr = \"Unknow msg type:\".$RX_TYPE.\"\\n\".$postObj->Event.\"\\n\".$postObj->EventKey;\n break;\n }\n \techo $resultStr;\n \n }else{ \n \techo \"\";\n \texit;\n }\n }", "public function responseMsg()\n {\n $postStr = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n global $textTpl;\n if (!empty($postStr))\n {\n $postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);\n $type = $postObj->MsgType;\n\n switch ($type)\n {\n case \"event\":\n $resultStr = GetEventMessage($postObj);\n break;\n case \"location\":\n $resultStr = GetLocationMessage($postObj);\n break;\n case \"text\":\n $resultStr = GetTextMessage($postObj);\n break;\n default:\n $resultStr = GetTextMessage($postObj);\n //$resultStr = GetDefaultMessage($postObj);\n break;\n }\n\n RecordInputContent($postObj); //保存用户输入的所有内容\n RefleshUserLoginTime($postObj); // 更新用户登录的最新时间\n\n echo $resultStr;\n }\n else\n {\n echo \"\";\n exit;\n }\n }", "public function broadcastOn()\n {\n return (new PrivateChannel('editor-notify'));\n }", "function report(&$irc, &$data)\n\t{\n\t\tglobal $adminchannel;\n\t\tglobal $users;\n\t\t$input = explode(\" \", $data->message);\n\n\t\t//Report command - used by normal players to report another player to the admins\n\t\tif(strtolower(substr($data->message, 0, 7)) == \"!report\")\n\t\t{\n\t\t\t//If a nick was entered\n\t\t\t$input = explode(\" \", $data->message);\n\t\t\tif($input[1] != \"\")\n\t\t\t{\n\t\t\t\t//If the user is in the channel\n\t\t\t\tif($users->is_added($users->nicktoqauth($input[1])) == true)\n\t\t\t\t{\n\t\t\t\t\t$reasoncheck = $input[0] . \" \" . $input[1];\n\t\t\t\t\t$reason = str_replace($reasoncheck, \"\", $data->message);\n\t\t\t\t\tif($reason != \"\")\n\t\t\t\t\t{\n\t\t\t\t\t\t//Tell user the report is successful\n\t\t\t\t\t\t$irc->message(SMARTIRC_TYPE_QUERY, $data->nick, \"\\x0302,00Report: The user has been successfully reported to the admins\");\n\t\t\t\t\t\t//Tell the admins in the admin channel\n\t\t\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $adminchannel, \"\\x02\\x0304Report:\\x02\\x03 \".$data->nick.\" reported \".$input[1].\" (via PM) for:\".$reason);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Record in MySQL\n\t\t\t\t\t\tmysql_pu_addreport($data->nick, $input[1], $reason);\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\t\t\t\t\t\t$irc->message(SMARTIRC_TYPE_QUERY, $data->nick, \"\\x0302,00Report: Please enter a reason when attempting to report another player\");\n\t\t\t\t\t}\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\t$irc->message(SMARTIRC_TYPE_QUERY, $data->nick, \"\\x0302,00Report: The person you reported is not invited to this pickup, please double-check you entered the name correctly\");\n\t\t\t\t}\n\t\t\t} else\n\t\t\t{\n\t\t\t\t$irc->message(SMARTIRC_TYPE_QUERY, $data->nick, \"\\x0302,00Report: !report <nick> <reason>\");\n\t\t\t}\n\t\t}\n\t}", "protected function handlePlayerMessage(Array $arrPacket, Sweater\\Client $objClient){\n\t\t\t$strMessage = $arrPacket[5];\n\t\t\t$blnCommand = substr($strMessage, 0, 1) == '!';\n\t\t\tif($blnCommand){\n\t\t\t\t$strStripped = substr($strMessage, 1);\n\t\t\t\t$blnArguments = strpos($strStripped, ' ') > -1;\n\t\t\t\t$arrArguments = [];\n\t\t\t\tif($blnArguments){\n\t\t\t\t\t$arrArguments = explode(' ', $strStripped);\n\t\t\t\t\t$strCommand = $arrArguments[0];\n\t\t\t\t\tunset($arrArguments[0]);\n\t\t\t\t\t$arrArguments = array_values($arrArguments);\n\t\t\t\t\tunset($arrFixed);\n\t\t\t\t} else {\n\t\t\t\t\t$strCommand = $strStripped;\n\t\t\t\t}\n\t\t\t\t$strCommand = strtoupper($strCommand);\n\t\t\t\tif(array_key_exists($strCommand, $this->arrCommands)){\n\t\t\t\t\t$strHandler = $this->arrCommands[$strCommand];\n\t\t\t\t\tcall_user_func([$this, $strHandler], $arrArguments, $objClient);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "function talker_status()\n{\n\tflush();\n\t$errno = 0;\n\t$errstr = \"\";\n\t$fp = fsockopen($GLOBALS['livehost'], $GLOBALS['liveport'], $errno, $errstr, 5);\n\n\tif (!$fp )\n\t{\n\t\treturn -1;\n\t}\n\telse\n\t{\n\t\tfputs($fp, \"stats_info\\n\");\n\t\t\n\t\twhile (!feof($fp))\n\t\t{\n\t\t\t$str = \"\";\n\t\t\t$str = fgets($fp, 255);\n\t\t\n\t\t\tif (strlen($str) > 0 && strstr($str, \"users:\") == $str)\n\t\t\t{\n\t\t\t\tlist($name,$value) = explode(\": \", $str);\n\t\t\t\t$users = $value;\n\t\t\t}\n\t\t}\n\t\treturn $users;\n\t\tfclose($fp);\n\t}\n}", "public function onSend($msg){\n $data = json_decode($msg);\n $action = isset($data['action'])? $data['action']:'';\n echo \"Message has been sent\";\n \n if(array_key_exists($action,$this->subscriber_topics)){\n echo \"Received msg, broacasting to $action\";\n $this->subscriber_topics[$action]->broadcast($msg);\n }\n }", "protected function sendIrcResponseLine(Event $event, Queue $queue, $ircResponseLine)\n {\n $queue->ircPrivmsg($event->getSource(), $ircResponseLine);\n }", "public function set_message_right_hand_side_guild_info(&$event) {\n $poster_id = $event[\"row\"][\"user_id\"];\n if(!isset($this->user_cache[$poster_id]) || $this->user_cache[$poster_id]['GUILD']['done'] != true) {\n $guild = $this->db->sql_query(\"SELECT pf_handle,pf_handle_public,pf_guild_public,pf_guild FROM testfo_profile_fields_data WHERE user_id='\".$poster_id.\"' \");\n $raw = $this->db->sql_fetchrow($guild);\n if($raw['pf_guild_public'] == 1)\n $this->user_cache[$poster_id]['GUILD'][\"G_SHOW_G\"] = true;\n if($raw['pf_handle_public'] == 1)\n $this->user_cache[$poster_id]['GUILD'][\"G_SHOW_H\"] = true;\n if($raw['pf_handle'] != '')\n $this->user_cache[$poster_id]['GUILD'][\"G_U_HANDLE\"] = $raw['pf_handle'];\n\n if($raw['pf_guild'] != '') {\n $this->user_cache[$poster_id]['GUILD'][\"has_guild\"] = true;\n $this->user_cache[$poster_id]['GUILD'][\"guild\"] = $raw['pf_guild'];\n if(isset($this->user_cache[$poster_id]['GUILD'][\"G_SHOW_G\"]) && $this->user_cache[$poster_id]['GUILD'][\"G_SHOW_G\"]) {\n $logos = $this->db->sql_query(\"SELECT logo FROM api_organizations_rsi_info WHERE sid='\".$this->user_cache[$poster_id]['GUILD'][\"guild\"].\"' ORDER BY scrape_date DESC\");\n while($logo = $this->db->sql_fetchrow($logos)) {\n if($logo['logo'] != '') {\n $logo['logo'] = str_replace('http://','//', $logo['logo']);\n $this->user_cache[$poster_id]['GUILD'][\"G_SQ_LOGO\"] = $logo['logo'];\n $this->user_cache[$poster_id]['GUILD'][\"G_HAS_GUILD\"] = $logo['logo'];\n break;\n }\n }\n $logos = $this->db->sql_query(\"SELECT title FROM api_organizations_rsi_info WHERE sid='\".$this->user_cache[$poster_id]['GUILD'][\"guild\"].\"' ORDER BY scrape_date DESC\");\n while($logo = $this->db->sql_fetchrow($logos)) {\n if($logo['title'] != '') {\n $this->user_cache[$poster_id]['GUILD'][\"G_SQ_NAME\"] = $logo['title'];\n break;\n }\n }\n\n $t_raw = $this->db->sql_query(\"SELECT topic FROM star_ambassade WHERE SSID='{$this->user_cache[$poster_id]['GUILD']['guild']}' LIMIT 1\");\n $topic = $this->db->sql_fetchrow($t_raw);\n\n if($topic['topic'] > 0) $topic = $topic['topic'];\n else $topic = false;\n\n if($topic) $this->user_cache[$poster_id]['GUILD'][\"G_U_SQ\"] = \"https://starcitizen.fr/Forum/viewtopic.php?f=29&t=\".$topic;\n else $this->user_cache[$poster_id]['GUILD'][\"G_U_SQ\"] = \"https://starcitizen.fr/Forum/viewforum.php?f=29\";\n }\n }\n $this->user_cache[$poster_id]['GUILD']['done'] = true;\n }\n\n $cache = $event[\"post_row\"];\n $cache = array_merge($cache, $this->user_cache[$poster_id]['GUILD']);\n $event[\"post_row\"] = $cache;\n }", "function onMessage(ConnectionInterface $conn, $msg)\n {\n /** @noinspection PhpComposerExtensionStubsInspection */\n $event = json_decode($msg);\n $this->mEventsController->onNewEvent($event, function ($person, $roomId,$alert) {\n $res = json_encode([\"person\" => $person, \"room\" => $roomId,\"type\"=>\"position\"]);\n foreach ($this->clients as $client) {\n $client->send($res);\n if ($alert != null) {\n $client->send(json_encode([\"person\" => $person, \"room\" => $roomId,\"type\"=>\"alert\"]));\n }\n }\n });\n }", "function onGetStatus($mynumber, $from, $requested, $id, $time, $data) {\n\tglobal $DBH;\n\t$number = explode(\"@\", $from)[0];\n\t$privacy_enabled = ($time == null ? true : false);\n\n\tif(!$privacy_enabled) {\n\t\t$latest_statusmsg = $DBH->prepare('SELECT 1 FROM statusmessage_history WHERE \"number\"=:number AND \"changed_at\" = to_timestamp(:time)');\n\t\t$latest_statusmsg -> execute(array(':number' => $number,\n\t\t\t\t\t\t\t\t\t\t ':time' => (string)$time));\n\n\t\tif($latest_statusmsg -> rowCount() == 0) {\n\t\t\t// Update database\n\t\t $insert = $DBH->prepare('INSERT INTO statusmessage_history (\n\t\t\t \t\t\t\"number\", status, changed_at)\n\t\t\t \t\t\t\t\t\t VALUES (:number, :status, to_timestamp(:time));');\n\t\t\t$insert->execute(array(':status' => $data,\n\t\t\t\t\t\t\t\t ':number' => $number,\n\t\t\t\t\t\t\t\t ':time' => (string)$time));\n\t\t\techo ' -[status-msg] Inserted new status message for '.$number.' ('.htmlentities($data).').'.\"\\n\";\n\t\t}\n\t}\n\n\t// Update privacy\n\t$privacy_status = $DBH->prepare('SELECT \"statusmessage_privacy\" FROM accounts WHERE \"id\"=:number');\n\t$privacy_status -> execute(array(':number' => $number));\n\t$row = $privacy_status -> fetch();\n\tif($privacy_enabled != (boolean)$row['statusmessage_privacy']) {\n\t\t$update = $DBH->prepare('UPDATE accounts\n\t\t\t\t\t\t\t\tSET \"statusmessage_privacy\" = :privacy WHERE \"id\" = :number;');\n\t\t$update->execute(array(':number' => $number, ':privacy' => (int)$privacy_enabled));\n\t\tif($privacy_enabled) {\n\t\t\techo ' -[status-msg] '.$number.' has the statusmessage privacy option ENABLED! '.\"\\n\";\n\t\t} else {\n\t\t\techo ' -[status-msg] '.$number.' has the statusmessage privacy option DISABLED! '.\"\\n\";\n\t\t}\n\t}\n\n\n}", "public function notify() {\n\t\tif(sm_get_conf('email_status') == false && sm_get_conf('sms_status') == false && sm_get_conf('log_status') == false) {\n\t\t\t// seems like we have nothing to do. skip the rest\n\t\t\treturn false;\n\t\t}\n\t\t$notify = false;\n\n\t\t// check which type of alert the user wants\n\t\tswitch(sm_get_conf('alert_type')) {\n\t\t\tcase 'always':\n\t\t\t\tif($this->status_new == 'off') {\n\t\t\t\t\t// server is offline. we are in error state.\n\t\t\t\t\t$notify = true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'offline':\n\t\t\t\t// only send a notification if the server goes down for the first time!\n\t\t\t\tif($this->status_new == 'off' && $this->status_org == 'on') {\n\t\t\t\t\t$notify = true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'status':\n\t\t\t\tif($this->status_new != $this->status_org) {\n\t\t\t\t\t// status has been changed!\n\t\t\t\t\t$notify = true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif(!$notify) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// first add to log (we use the same text as the SMS message because its short..)\n\t\tif(sm_get_conf('log_status')) {\n\t\t\tsm_add_log(\n\t\t\t\t$this->server['server_id'],\n\t\t\t\t'status',\n\t\t\t\tsm_parse_msg($this->status_new, 'sms', $this->server)\n\t\t\t);\n\t\t}\n\n\t\t// check if email is enabled for this server\n\t\tif(sm_get_conf('email_status') && $this->server['email'] == 'yes') {\n\t\t\t// send email\n\t\t\t$this->notifyByEmail();\n\t\t}\n\t\t// check if sms is enabled for this server\n\t\tif(sm_get_conf('sms_status') && $this->server['sms'] == 'yes') {\n\t\t\t// yay lets wake those nerds up!\n\t\t\t$this->notifyByTxtMsg();\n\t\t}\n\t\treturn true;\n\t}", "protected function handlePlayerMessage(Array $arrPacket, Sweater\\Client $objClient){\n\t\t$strMessage = $arrPacket[5];\n\t\t$blnCommand = substr($strMessage, 0, 1) == '!';\n\t\tif($blnCommand){\n\t\t\t$strStripped = substr($strMessage, 1);\n\t\t\t$blnArguments = strpos($strStripped, ' ') > -1;\n\t\t\t$arrArguments = [];\n\t\t\tif($blnArguments){\n\t\t\t\t$arrArguments = explode(' ', $strStripped);\n\t\t\t\t$strCommand = $arrArguments[0];\n\t\t\t\tunset($arrArguments[0]);\n\t\t\t\t$arrArguments = array_values($arrArguments);\n\t\t\t\tunset($arrFixed);\n\t\t\t} else {\n\t\t\t\t$strCommand = $strStripped;\n\t\t\t}\n\t\t\t$strCommand = strtoupper($strCommand);\n\t\t\tif(array_key_exists($strCommand, $this->arrCommands)){\n\t\t\t\t$strHandler = $this->arrCommands[$strCommand];\n\t\t\t\tcall_user_func([$this, $strHandler], $arrArguments, $objClient);\n\t\t\t}\n\t\t}\n\t}", "public function kick_user($nick, $message)\r\n\t{\r\n\t\t$this->server->send_line(\"KICK {$this->channel} {$nick} :{$message}\");\r\n\t}", "function ChannelSay(&$irc, &$data)\n\t{\n\t\t$input = strtolower($data->message);\n\t\t$input = str_replace(\"!\", \"\", $input);\n\t\t$command = explode(\" \", $input, 2);\n\n\t\tglobal $pickupchannel;\n\t\tglobal $pickup;\n\t\tglobal $queue;\n\t\tglobal $users;\n\t\tglobal $waitbot;\n\t\tglobal $afk;\n\t\tglobal $classflood;\n global $startstatus;\n\n\t\t$nick = $data->nick;\n\n\t\tswitch($command[0])\n\t\t{\n\t\t\t//Admin remove user from pickup command\n\t\t\tcase \"adel\":\n\t\t\t\tif($users->is_admin($data->nick))\n\t\t\t\t{\n\t\t\t\t\t//Get entered nick\n\t\t\t\t\t$user = explode(\" \", $data->message);\n\t\t\t\t\t$user = $user[1];\n\t\t\t\t\t\n\t\t\t\t\tif($user != \"\")\n\t\t\t\t\t{\n\t\t\t\t\t\t$userq = $users->nicktoqauth($user);\n\t\t\t\t\t\tif($userq != false)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\trm_player($userq);\n\n\t\t\t\t\t\t\t//Kill the pickup start process if this person was 12th\n\t\t\t\t\t\t\tif($waitbot->status == true)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif($waitbot->type > 0)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$waitbot->KillBot();\n global $afk;\n\t\t\t\t\t\t\t\t}\n $afk->clear();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $data->message, \"\\x0302,00\".$data->nick.\": The user you entered could not be found\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\t\t\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $data->message, \"\\x0302,00!adel: Admin Delete Command: !adel <nick>\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\n\t\t\t//Add as Scout\n\t\t\tcase \"sc\": case \"sco\": case \"scout\": case \"scoot\":\n\t\t\t\tif($pickup->count_class(\"scout\") < 4)\n\t\t\t\t{\n\t\t\t\t\t$nick = $data->nick;\n\t\t\t\t\t$class = \"scout\";\n\t\t\t\t\t$map = $command[1];\n\t\t\t\t\t$qauth = $users->nicktoqauth($nick);\n\n\t\t\t\t\t//Check if this player has not hit flood\n\n\t\t\t\t\t//Perform a whois check if qauth is false\n\t\t\t\t\tif($qauth == false)\n\t\t\t\t\t{\n\t\t\t\t\t\t$queue->add_item($data->nick, \"check\");\n\t\t\t\t\t\t$irc->whois($data->nick);\n\t\t\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $pickupchannel, \"\\x0302,00\".$data->nick.\": You have 2 logins with your Q account in this channel, if you definitely wish to add, type the command again\");\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t\t//Add the player\n\t\t\t\t\t\tadd_player($qauth, $nick, $class, 2 ,$map);\n\n\t\t\t\t\t\t//Check if the pickup is now full\n\t\t\t\t\t\tif($pickup->player_count() == 12)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tstart_pickup_s1();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $pickupchannel, \"\\x0302,00Sorry \".$data->nick.\", All of the scout spots are already filled. :(\");\n\t\t\t\t\t//Check if the pickup is now full\n /*if($pickup->player_count() == 12)\n\t\t\t\t\t{\n\t\t\t\t\t\tstart_pickup_s1();\n\t\t\t\t\t}*/\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t//Add as Soldier\n\t\t\tcase \"sol\": case \"soldier\": case \"sold\": case \"soulja\": case \"soli\": case \"solli\": case \"solly\":\n\t\t\t\tif($pickup->count_class(\"soldier\") < 4)\n\t\t\t\t{\n\t\t\t\t\t$nick = $data->nick;\n\t\t\t\t\t$class = \"soldier\";\n\t\t\t\t\t$map = $command[1];\n\t\t\t\t\t$qauth = $users->nicktoqauth($nick);\n\t\t\t\t\t//Perform a whois check if qauth is false\n\t\t\t\t\tif($qauth == false)\n\t\t\t\t\t{\n\t\t\t\t\t\t$queue->add_item($data->nick, \"check\");\n\t\t\t\t\t\t$irc->whois($data->nick);\n\t\t\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $pickupchannel, \"\\x0302,00\".$data->nick.\": You have 2 logins with your Q account in this channel, try to add again\");\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\t\t\t\t\t\t//Add the player\n\t\t\t\t\t\tadd_player($qauth, $nick, $class, 2, $map);\n\n\t\t\t\t\t\t//Check if the pickup is now full\n\t\t\t\t\t\tif($pickup->player_count() == 12)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tstart_pickup_s1();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $pickupchannel, \"\\x0302,00Sorry \".$data->nick.\", All of the soldier spots are already filled. :(\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t//Add as Demoman\n\t\t\tcase \"de\": case \"dem\": case \"demo\": case \"demoman\": case \"negro\":\n\t\t\t\tif($pickup->count_class(\"demoman\") < 2)\n\t\t\t\t{\n\t\t\t\t\t$nick = $data->nick;\n\t\t\t\t\t$class = \"demoman\";\n\t\t\t\t\t$map = $command[1];\n\t\t\t\t\t$qauth = $users->nicktoqauth($nick);\n\n\t\t\t\t\t//Perform a whois check if qauth is false\n\t\t\t\t\tif($qauth == false)\n\t\t\t\t\t{\n\t\t\t\t\t\t$queue->add_item($data->nick, \"check\");\n\t\t\t\t\t\t$irc->whois($data->nick);\n\t\t\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $pickupchannel, \"\\x0302,00\".$data->nick.\": You have 2 logins with your Q account in this channel, try to add again\");\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\t\t\t\t\t\t//Add the player\n\t\t\t\t\t\tadd_player($qauth, $nick, $class, 2, $map);\n\n\t\t\t\t\t\t//Check if the pickup is now full\n\t\t\t\t\t\tif($pickup->player_count() == 12)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tstart_pickup_s1();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $pickupchannel, \"\\x0302,00Sorry \".$data->nick.\", All of the demo spots are already filled. :(\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t//Add as Medic\n\t\t\tcase \"med\": case \"medic\": case \"madic\":\n\t\t\t\tif($pickup->count_class(\"medic\") < 2)\n\t\t\t\t{\n\t\t\t\t\t$nick = $data->nick;\n\t\t\t\t\t$class = \"medic\";\n\t\t\t\t\t$map = $command[1];\n\t\t\t\t\t$qauth = $users->nicktoqauth($nick);\n\n\t\t\t\t\t//Perform a whois check if qauth is false\n\t\t\t\t\tif($qauth == false)\n\t\t\t\t\t{\n\t\t\t\t\t\t$queue->add_item($data->nick, \"check\");\n\t\t\t\t\t\t$irc->whois($data->nick);\n\t\t\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $pickupchannel, \"\\x0302,00\".$data->nick.\": You have 2 logins with your Q account in this channel, try to add again\");\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\t\t\t\t\t\t//Add the player\n\t\t\t\t\t\tadd_player($qauth, $nick, $class, 2, $map);\n\n\t\t\t\t\t\t//Check if the pickup is now full\n\t\t\t\t\t\tif($pickup->player_count() == 12)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tstart_pickup_s1();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $pickupchannel, \"\\x0302,00Sorry \".$data->nick.\", All of the medic spots are already filled. :(\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t//Delete from the pickup\n\t\t\tcase \"del\": case \"delete\": case \"rem\": case \"remove\":\n\t\t\t\t$nick = $data->nick;\n\t\t\t\t$qauth = $users->nicktoqauth($nick);\n\t\t\t\trm_player($qauth);\n\n\t\t\t\t//Kill the pickup start process if this person was 12th\n\t\t\t\tif($waitbot->status == true)\n\t\t\t\t{\n\t\t\t\t\tif($waitbot->type > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$waitbot->KillBot();\n global $afk;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$afk->clear();\n\t\t\t\tbreak;\n\n\t\t\t//Map Vote\n\t\t\tcase \"map\": case \"vote\":\n\t\t\t\t$nick = $data->nick;\n\t\t\t\t$qauth = $users->nicktoqauth($nick);\n\t\t\t\t$map = $command[1];\n\n //Check if the user was added\n if($pickup->is_added($qauth) == true)\n {\n //Change topic if this map was not already voted for\n if($pickup->mapvote($qauth, find_map($map)) != true)\n {\n SetTopic();\n }\n }\n\n\t\t\t\tbreak;\n\n\t\t\tcase \"rdy\": case \"ready\":\n\t\t\t\tif($waitbot->status == true)\n\t\t\t\t{\n\t\t\t\t\tif($waitbot->type == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\t//Check if the user was marked as afk\n\t\t\t\t\t\tif($afk->is_afk($users->nicktoqauth($data->nick)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$afk->rm_player($users->nicktoqauth($data->nick));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Check if everyone has now readied up\n\t\t\t\t\t\tif(count($afk->afklist) == 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//Run straight to stage 2\n\t\t\t\t\t\t\tstart_pickup_s2();\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\trupmessage();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase \"afk\":\n\t\t\t\tif($waitbot->status == false)\n\t\t\t\t{\n\t\t\t\t\t//Mark the user afk\n\t\t\t\t\t$users->mark_afk($users->nicktoqauth($data->nick));\n\t\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $pickupchannel, \"\\x0302,00\".$data->nick.\": You have been marked as afk, simply type something in the channel to be marked as back.\");\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t $irc->message(SMARTIRC_TYPE_CHANNEL, $pickupchannel, \"\\x0302,00\".$data->nick.\": You cannot mark yourself as afk during this time\");\n\t\t\t\t}\n\t\t}\n\t}", "private function _issue_warning_pm()\n\t{\n\t\tglobal $context;\n\n\t\t$id_notice = 0;\n\t\tif (!empty($this->_req->post->warn_notify) && empty($this->_issueErrors))\n\t\t{\n\t\t\t$warn_sub = $this->_req->getPost('warn_sub', 'trim', '');\n\t\t\t$warn_body = $this->_req->getPost('warn_body', 'trim', '');\n\n\t\t\tif (empty($warn_sub) || empty($warn_body))\n\t\t\t{\n\t\t\t\t$this->_issueErrors[] = 'warning_notify_blank';\n\t\t\t}\n\t\t\t// Send the PM?\n\t\t\telse\n\t\t\t{\n\t\t\t\trequire_once(SUBSDIR . '/PersonalMessage.subs.php');\n\t\t\t\t$from = array(\n\t\t\t\t\t'id' => 0,\n\t\t\t\t\t'name' => $context['forum_name'],\n\t\t\t\t\t'username' => $context['forum_name'],\n\t\t\t\t);\n\t\t\t\tsendpm(array('to' => array($this->_memID), 'bcc' => array()), $warn_sub, $warn_body, false, $from);\n\n\t\t\t\t// Log the notice.\n\t\t\t\t$id_notice = logWarningNotice($warn_sub, $warn_body);\n\t\t\t}\n\t\t}\n\n\t\treturn $id_notice;\n\t}", "function NotifyReply ($pEMAIL, $pREPLIEDUSER, $pREPLIEDUSERNAME, $pREPLYINGUSER) {\n global $zOLDAPPLE, $zFOCUSUSER;\n\n // Return if post notification is turned off.\n if ($zFOCUSUSER->userSettings->Get (\"GroupReplyNotification\") == NOTIFICATION_OFF) {\n return (FALSE);\n } // \n\n if (!$pREPLYINGUSER) {\n $pREPLYINGUSER = __( \"Anonymous User\" );\n } // if\n\n global $gREPLYINGUSER, $gREPLIEDUSER;\n $gREPLYINGUSER = $pREPLYINGUSER;\n $gREPLIEDUSER = $pREPLIEDUSER;\n\n global $gINFOURL, $gSITEURL;\n global $gGROUPREQUEST;\n global $gSITEDOMAIN;\n\n $gINFOURL = $gSITEURL . 'group/' . $gGROUPREQUEST . '/thread/' . $this->groupContent->tID; \n\n $to = $pEMAIL;\n\n $subject = __(\"Group Subject\", array ( \"fromusername\" => $gREPLYINGUSER ) );\n\n $body = __(\"Group Body\", array ( \"touser\" => $gREPLIEDUSER, \"fromuser\" => $gREPLYINGUSER, \"link\" => $gINFOURL ) );\n\n $from = __(\"groups@site\", array ( \"domain\" => $gSITEDOMAIN ) );\n\n $fromname = __( \"Group From\" );\n\n $zOLDAPPLE->Mailer->From = $from;\n $zOLDAPPLE->Mailer->FromName = $fromname;\n $zOLDAPPLE->Mailer->Body = $body;\n $zOLDAPPLE->Mailer->Subject = $subject;\n $zOLDAPPLE->Mailer->AddAddress ($to);\n $zOLDAPPLE->Mailer->AddReplyTo ($from);\n\n $zOLDAPPLE->Mailer->Send();\n\n $zOLDAPPLE->Mailer->ClearAddresses();\n\n unset ($to);\n unset ($subject);\n unset ($body);\n\n return (TRUE);\n\n }", "protected function listen()\n {\n do {\n $data = fgets($this->socket, 512);\n if (!empty($data)) {\n $request = $this->receive($data);\n $cmd = strtolower($request->getCommand());\n\n if ($cmd === 'privmsg') {\n $event_name = 'message.' . ($request->isPrivateMessage() ? 'private' : 'channel');\n } else {\n $event_name = 'server.' . $cmd;\n }\n\n // Skip processing if the incoming message is from the bot\n if ($request->getSendingUser() === $this->config['nick']) {\n continue;\n }\n\n $event = new Event($request);\n $this->dispatcher->dispatch($event_name, $event);\n $responses = $event->getResponses();\n\n if (!empty($responses)) {\n $this->send($responses);\n }\n }\n } while (!feof($this->socket));\n }", "public function receiveAuth(array $authReply)\n {\n }", "public function onMessage($clientChat, $receivedText)\n\t{\n\t}", "public function onMessage(ConnectionInterface $from, $msg) {\n\t\t\t//log the received message to the cmd\n\t\t\techo \"New message from \".$from->resourceId.\" :\\n\".$msg.\"\\n\";\n\t\t\t$this->logEvent(\"New Message from interface \".$from->resourceId.\" :\\n\".$msg.\"\");\n\t\t\t//load the message helper\n\t\t\t//$this->load->helper(\"message_helper\");\n\t\t\t//the json decoded message\n\t\t\t$decoded_msg = \"\";\n\t\t\t//check if the message is in JSON format\n\t\t\ttry{\n\t\t\t\t//echo \"\\n\".$msg.\"\\n\";\n\t\t\t\t$decoded_msg = json_decode($msg);\n\t\t\t\t//echo \"\\n\".$decoded_msg.\"\\n\";\n\t\t\t\t//get the message sequence \n\t\t\t\t$message_sequence = $decoded_msg->msg_seq;\n\t\t\t\tif($message_sequence != \"\")// if the message sequence is valid\n\t\t\t\t{\n\t\t\t\t\t//echo \"\\n\".$message_sequence.\"\\n\";\n\t\t\t\t\t//echo \"\\n\".$from->last_message_seq.\"\\n\";\n\t\t\t\t\tif($message_sequence != $from->last_message_seq){//if the message wasn't a duplicate to the last message\n\t\t\t\t\t\t//parse the not allowed characters using the url_encode\n\t\t\t\t\t\t$msg = urlencode($msg);\n\t\t\t\t\t\t//if the connection is not authorized yet then this message should be the authentication message\n\t\t\t\t\t\tif(!$from->authenticated){\n\t\t\t\t\t\t\t//get the satation_ID from the message\n\t\t\t\t\t\t\t$station_ID = $decoded_msg->station_id;\n\t\t\t\t\t\t\techo \"\\n\".$station_ID.\"\\n\";\n\t\t\t\t\t\t\t//check this station existence in the database\n\t\t\t\t\t\t\t$station_exists = shell_exec(\"php index.php main checkStation \".$station_ID.\" &\");\n\t\t\t\t\t\t\techo \"\\n\".$station_exists.\"\\n\";\n\t\t\t\t\t\t\t//if the returned station id > 0 then the station was found\n\t\t\t\t\t\t\tif($station_exists > 0){\n\t\t\t\t\t\t\t\t$this->logEvent(\"Station \".$station_ID.\" connected on interface \".$from->resourceId.\".\");\n\t\t\t\t\t\t\t\t//check for station id duplication\n\t\t\t\t\t\t\t\t$duplicate = $this->check_duplicate_station_ID($station_ID);\n\t\t\t\t\t\t\t\tif(!$duplicate){\n\t\t\t\t\t\t\t\t\t//if the station exists in the database then set the connection authenticated field to true \n\t\t\t\t\t\t\t\t\t$from->authenticated = true;\n\t\t\t\t\t\t\t\t\t//and add the station id to the connection object\n\t\t\t\t\t\t\t\t\t$from->station_id = $station_exists * 1;\n\t\t\t\t\t\t\t\t\t$from->station_ID = $station_ID;\n\t\t\t\t\t\t\t\t\t$this->logEvent(\"Parsing and executing message(seq = \".$message_sequence.\") from interface \".$from->resourceId.\".\");\n\t\t\t\t\t\t\t\t\t//send the message to the station controller to be parsed and executed\n\t\t\t\t\t\t\t\t\t$result = shell_exec(\"php index.php main receiveMessage \".$msg.\" &\");\n\t\t\t\t\t\t\t\t\techo $result;\n\t\t\t\t\t\t\t\t\t//log the action to the cmd\n\t\t\t\t\t\t\t\t\t//echo sprintf('Connection %d sending main \"%s\"\\n', $from->resourceId, $msg);\n\t\t\t\t\t\t\t\t\t//if the result came back from the execution == valid then acknoledge the \n\t\t\t\t\t\t\t\t\t//message else just return the error message\n\t\t\t\t\t\t\t\t\t//echo $result.\"\\n\";\n\t\t\t\t\t\t\t\t\t//if($result == SUCCESS){\n\t\t\t\t\t\t\t\t\t//setting the last message sequence as the current message\n\t\t\t\t\t\t\t\t\t$from->last_message_seq = $message_sequence;\n\t\t\t\t\t\t\t\t\t//send back the result message to the station\n\t\t\t\t\t\t\t\t\t$this->sendToClient($from,$result,$message_sequence);\n\t\t\t\t\t\t\t\t\t/*}else{\n\t\t\t\t\t\t\t\t\t\t//send back the returned error message to the station\n\t\t\t\t\t\t\t\t\t\t$this->sendToClient($from,$result,$message_sequence);\n\t\t\t\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\techo \"Station (\".$station_ID.\") on interface has a the same station id as an already connected station\\n\";\n\t\t\t\t\t\t\t\t\t$this->logEvent(\"Station (\".$station_ID.\") on interface has a the same station id as an already connected station.\");\n\t\t\t\t\t\t\t\t\t$result = shell_exec(\"php index.php sendMail send \".$station_ID.\" &\");\n\t\t\t\t\t\t\t\t\techo \"Closing connectin with Stattion(\".$station_ID.\") on interface {$from->resourceId}..\\n\";\n\t\t\t\t\t\t\t\t\t$this->logEvent(\"Closing connectin with Stattion(\".$station_ID.\") on interface {$from->resourceId}..\");\n\t\t\t\t\t\t\t\t\techo \"closing\\n\";\n\t\t\t\t\t\t\t\t\t$from->close();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$this->logEvent(\"Connected on interface \".$from->resourceId.\" is not authorized.\");\n\t\t\t\t\t\t\t\techo \"Unauthorized connection {$from->resourceId} closed 1\\n\";\n\t\t\t\t\t\t\t\t$this->sendToClient($from,$this->UNAUTHORIZED,\"\");\n\t\t\t\t\t\t\t\techo \"closing\\n\";\n\t\t\t\t\t\t\t\t$from->close();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t//echo sprintf('Connection %d sending message \"%s\"\\n', $from->resourceId, $msg);\n\t\t\t\t\t\t\t$this->logEvent(\"Parsing and executing message(seq = \".$message_sequence.\") from interface \".$from->resourceId.\".\");\n\t\t\t\t\t\t\t//send the message to the station controller to be parsed\n\t\t\t\t\t\t\t$result = shell_exec(\"php index.php main receiveMessage \".$msg.\" &\");\n\t\t\t\t\t\t\t//if the result came back from the execution == valid then acknoledge the \n\t\t\t\t\t\t\t//message else just return the error message\n\t\t\t\t\t\t\t//echo \"\\n\".$result.\"\\n\";\n\t\t\t\t\t\t\t//if($result == |SUCCESS){\n\t\t\t\t\t\t\t\t//setting the last message sequence as the current message\n\t\t\t\t\t\t\t\techo $result;\n\t\t\t\t\t\t\t$from->last_message_seq = $message_sequence;\n\t\t\t\t\t\t\t//}\n\t\t\t\t\t\t\t//send back the result message to the station\n\t\t\t\t\t\t\t$this->sendToClient($from,$result,$message_sequence);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tthrow new Exception('Invalid message sequence');\n\t\t\t\t}\n\t\t\t}catch(Exception $e){\n\t\t\t\t$this->logEvent(\"Invalid message sequence sent from interface \".$from->resourceId.\".\");\n\t\t\t\techo \"Invalid message from connection {$from->resourceId}\\n\".$e->getMessage();\n\t\t\t\t$code = $this->MESSAGE_PARSING_ERROR;\n\t\t\t\t$this->sendToClient($from,$code,\"\");\n\t\t\t\t//if the connection that sent the misformatted message is not authenticated close the connection\n\t\t\t\tif(!$from->authenticated){\n\t\t\t\t\t$this->logEvent(\"Connected on interface \".$from->resourceId.\" is not authorized.\");\n\t\t\t\t\techo \"Unauthorized connection {$from->resourceId} closed 2\\n\";\n\t\t\t\t\t$code = $this->UNAUTHORIZED;\n\t\t\t\t\t$this->sendToClient($from,$code,\"\");\n\t\t\t\t\techo \"closing\\n\";\n\t\t\t\t\t$from->close();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public function sendReplyEnd()\n {\n }", "function add_admin_notice() {\r\n\t\tglobal $current_user ;\r\n\t\tglobal $pagenow;\r\n\r\n\t\t$user_id = $current_user->ID;\r\n\r\n\t\tdo_action( $this->pluginPrefix.'_before_notification_displayed', $current_user, $pagenow );\r\n\r\n\t\tif ( current_user_can( 'manage_options' ) ){\r\n\r\n\t\t\t\t$plugin_serial_status = get_option( $this->pluginSerialStatus );\r\n\t\t\t\tif ( $plugin_serial_status != 'found' ){\r\n\t\t\t\t\t// Check that the user hasn't already clicked to ignore the message\r\n\t\t\t\t\tif ( ! get_user_meta($user_id, $this->pluginPrefix.'_dismiss_notification' ) ) {\r\n\t\t\t\t\t\techo $finalMessage = apply_filters($this->pluginPrefix.'_notification_message','<div class=\"error wppb-serial-notification\" >'.$this->notificaitonMessage.'</div>', $this->notificaitonMessage);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdo_action( $this->pluginPrefix.'_notification_displayed', $current_user, $pagenow, $plugin_serial_status );\r\n\r\n\t\t}\r\n\r\n\t\tdo_action( $this->pluginPrefix.'_after_notification_displayed', $current_user, $pagenow );\r\n\r\n\t}", "static public function ping( &$ircdata )\n\t{\n\t\tif ( self::on_ping( &$ircdata ) )\n\t\t{\n\t\t\tdatabase::ping();\n\t\t\t// ping the db\n\t\t\t\n\t\t\tself::send( 'PONG '. $ircdata[1], core::$socket );\t\n\t\t\treturn true;\n }\n\t\t// ping pong.\n\t\t\n\t\treturn false;\n\t}", "function updateNotification($msg) {\n\t\t$this->_conn->modify(\"UPDATE notifications SET title = :title, body = :body, sent = :sent WHERE id = :id\",\n array(\n ':title' => array($msg['title'], PDO::PARAM_STR),\n ':body' => array($msg['body'], PDO::PARAM_STR),\n ':sent' => array($msg['sent'], PDO::PARAM_BOOL),\n ':id' => array($msg['id'], PDO::PARAM_INT)\n ));\n\t}", "public function posa_ok($msg)\n {\n $this->ok [] = $msg;\n }", "public function process_user_notice_ajax() {\n\t\t$return = array('code' => 'fail', 'data' => '');\n\t\t\n\t\tif (!isset($_POST['subaction'])) {\n\t\t\t$return['code'] = 'error';\n\t\t\t$return['data'] = 'Missing subaction';\n\t\t\techo json_encode($return);\n\t\t\tdie();\n\t\t}\n\n\t\tif ('admin_only_login' == $_POST['subaction']) {\n\t\t\tcheck_ajax_referer('updraftplus_admin_only_login', 'nonce');\n\n\t\t\tif (!isset($_POST['admin_only_login'])) {\n\t\t\t\t$return['code'] = 'error';\n\t\t\t\t$return['data'] = 'Missing parameter';\n\t\t\t\techo json_encode($return);\n\t\t\t\tdie();\n\t\t\t}\n\n\t\t\t$admin_only = ('true' === $_POST['admin_only_login']);\n\t\t\t\n\t\t\tupdate_site_option('updraftplus_clone_admin_only_login', $admin_only);\n\n\t\t\t$return['code'] = 'success';\n\t\t\t$return['data'] = 'Option updated';\n\t\t\techo json_encode($return);\n\t\t\tdie();\n\t\t} else {\n\t\t\t$return['code'] = 'error';\n\t\t\t$return['data'] = 'Unknown action';\n\t\t\techo json_encode($return);\n\t\t\tdie();\n\t\t}\n\t}", "public function notification();", "public function notification();", "public function notify(EventInterface $event)\n {\n if ($event instanceof IrcCommandEvent) {\n $server = $event->getServer();\n if (array_key_exists($server, $this->servers))\n $this->servers[$server]->execute($event->getCommand());\n }\n }", "private function response() {\n $reply = trim(fgets($this -> __sock, 512));\n switch(substr($reply, 0, 1)) {\n /* Error reply */\n case '-':\n trigger_error('ERROR (' . trim($reply) . ')', E_USER_ERROR);\n /* Inline reply */\n case '+':\n $response = substr(trim($reply), 1);\n if($response === 'OK') $response = true;\n break;\n /* Bulk reply */\n case '$':\n $response = null;\n if($reply === '$-1') break;\n $read = 0;\n $size = intval(substr($reply, 1));\n if($size > 0) {\n do {\n $block_size = ($size - $read) > 1024 ? 1024 : ($size - $read);\n $r = fread($this -> __sock, $block_size);\n if($r === false)\n trigger_error('READ FROM SERVER ERROR', E_USER_ERROR);\n else {\n $read += strlen($r);\n $response .= $r;\n }\n } while($read < $size);\n }\n fread($this -> __sock, 2); /* CRLF */\n break;\n /* Multi-bulk reply */\n case '*':\n $count = intval(substr($reply, 1));\n if($count === -1) return null;\n $response = array();\n for($i = 0; $i < $count; $i++)\n $response[] = $this -> response();\n break;\n /* Integer reply */\n case ':':\n $response = intval(substr(trim($reply), 1));\n break;\n default:\n trigger_error('UNKNOWN RESPONSE ERROR', E_USER_ERROR);\n }\n return $response;\n }", "public function handleSendMessage() {\n\t\t$json = file_get_contents(\"php://input\"); //vytánutí všech dat z POST požadavku - data ve formátu JSON\n\t\t$data = Json::decode($json); //prijata zprava dekodovana z JSONu\n\t\t$user = $this->getPresenter()->getUser();\n\t\t$addMessage = $this->addMessage($data, $user);\n\t\tif (!empty($addMessage)) {\n\t\t\t$this->sendRefreshResponse($data->lastid);\n\t\t}\n\t}", "public function onMessage($connection){\n\t\t// REQUEST_URI.\n\t\t$workerman_url_info = parse_url($_SERVER['REQUEST_URI']);\n\t\tif(!$workerman_url_info){\n\t\t\tHttp::header('HTTP/1.1 400 Bad Request');\n\t\t\t$connection->close('<h1>400 Bad Request</h1>');\n\t\t\treturn;\n\t\t}\n\t\t$_SERVER['REMOTE_ADDR'] = $connection->getRemoteIp();\n\t\t$_SERVER['REMOTE_PORT'] = $connection->getRemotePort();\n\n\t\t$content = call_user_func($this->onReceive, $connection);\n\n\t\tif(strtolower($_SERVER['HTTP_CONNECTION']) === \"keep-alive\"){\n\t\t\t$connection->send($content);\n\t\t}else{\n\t\t\t$connection->close($content);\n\t\t}\n\t}", "public function testHandleQuitCommandWithCustomMessage()\n {\n $event = Phake::mock('Phergie\\Irc\\Plugin\\React\\Command\\CommandEvent');\n Phake::when($event)->getNick()->thenReturn('nickname');\n\n $queue = Phake::mock('Phergie\\Irc\\Bot\\React\\EventQueueInterface');\n\n $plugin = new Plugin(array('message' => 'because %s said so'));\n $plugin->handleQuitCommand($event, $queue);\n\n Phake::verify($queue)->ircQuit('because nickname said so');\n }", "public function add_notice() {\n\t\tif ( current_user_can( 'activate_plugins' ) ) {\n\t\t\techo sprintf(\n\t\t\t\t'<div id=\"message\" class=\"error\"><p>%s</p></div>',\n\t\t\t\timplode( '<br>', $this->notices )\n\t\t\t);\n\t\t}\n\t}", "function msgsrv_send ($target, $cmd, $content, $link) {}", "function process_message($socket, $data){\r\n\tif($socket->process == true){\r\n\t\toutput($data);\r\n\t}\r\n}", "function qconfirm(&$irc, &$data)\n {\n\t\t\tglobal $pickupchannel;\n if($data->message == \"Remember: NO-ONE from QuakeNet will ever ask for your password. NEVER send your password to ANYONE except Q@CServe.quakenet.org.\")\n {\n echo \"\\n\\n\\n\\nSHIIIT\\n\\n\\n\\n\";\n $irc->join($pickupchannel);\n }\n }", "static public function ping_admin_notices() {\n global $_ud_ping_notices;\n\n if( !isset( $_ud_ping_notices ) || !is_array( $_ud_ping_notices ) ) {\n return;\n }\n\n foreach( array_unique( $_ud_ping_notices ) as $notice ) {\n $dismiss_url = admin_url( 'index.php' ) . '?dismiss_ud_notice=' . md5( $notice );\n $notice = @base64_decode( $notice );\n $notice = apply_filters( 'ud::ping::response::admin_notice', $notice );\n if( !empty( $notice ) ) {\n $icon = apply_filters( 'ud::ping::response::admin_notice::icon', false );\n require( dirname( dirname( __DIR__ ) ) . '/static/templates/admin-notice.php' );\n }\n }\n\n }", "public function info($msg) {\n $this->writeLine($msg, 'info');\n }", "function Send_msg($notice)\n{\n file_notice(\n $id, $notice, $category = \"OpenVPN\", $url = \"\", \n $priority = 1, $local_only = true\n );\n}", "protected function handlePublisherConfirm(Message $msg, Signal $response): void\n {\n $id = $msg->getId();\n\n // Global handlers\n $handlers = $this->publisherConfirmHandlers[(string) $response] ?? [];\n foreach ($handlers as $handler) {\n $handler($msg, $this);\n }\n\n // Per-message handlers\n $messageHandlers = ($this->messagePublisherConfirmHandlers[$id] ?? [])[(string) $response] ?? [];\n foreach ($messageHandlers as $handler) {\n $handler($msg, $this);\n }\n unset($this->messagePublisherConfirmHandlers[$id]);\n }" ]
[ "0.62509096", "0.587282", "0.577316", "0.56679416", "0.54675186", "0.5431804", "0.5379069", "0.53676826", "0.5356265", "0.5355097", "0.5305727", "0.52757704", "0.5214042", "0.51896054", "0.5180262", "0.5139686", "0.5121986", "0.5091919", "0.50348973", "0.50296354", "0.50282276", "0.50119776", "0.5002386", "0.49983293", "0.49980435", "0.4997888", "0.49723393", "0.4967588", "0.4948504", "0.49210227", "0.49116522", "0.4909747", "0.4909442", "0.4906451", "0.48959517", "0.48729372", "0.486324", "0.48599923", "0.48431474", "0.48326492", "0.48206916", "0.48166382", "0.48097602", "0.4803881", "0.48028132", "0.47929806", "0.47797504", "0.47778308", "0.4768154", "0.47592264", "0.47516614", "0.47509304", "0.47494957", "0.47407967", "0.47376558", "0.4725418", "0.47108728", "0.47105625", "0.46890867", "0.46840975", "0.46839353", "0.4677171", "0.46760342", "0.4667903", "0.46668383", "0.46667618", "0.46631312", "0.4662048", "0.46613824", "0.46601257", "0.46539757", "0.4648669", "0.46456444", "0.4641484", "0.46392488", "0.46373743", "0.46361768", "0.4633505", "0.4622196", "0.46085146", "0.4580258", "0.4579945", "0.45783323", "0.45783055", "0.45739987", "0.4570234", "0.45641288", "0.45641288", "0.45614657", "0.45611835", "0.45547864", "0.45544115", "0.4553092", "0.4550064", "0.4548771", "0.45473558", "0.4545071", "0.45401657", "0.453102", "0.45283577", "0.45267537" ]
0.0
-1
Triggered when a command is received.
public function command($m){}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function OnCall(Command $command);", "public function handle(Command $command);", "public function handle(Command $command);", "public function dispatch( Command $command ): void;", "protected abstract function _commandHandler(string $command, $data_array);", "private function get_command(){\n if (!isset($_POST['command'])) {\n die(\"No command received, no result\");\n }\n $this->command = $_POST['command'];\n }", "public function handle()\n {\n Log::info('Command check is que working called');\n event(new CheckIsQueWorkingEvent());\n Log::info('Command check is que working finished');\n }", "abstract public function dispatch($command);", "public function handlerFor(Command $command);", "public function work(Message $command)\n {\n $handler = $this->getHandler($command);\n $handler->handle($command);\n }", "function onCommand(){\r\n\r\n\t\tglobal $aryTipeTxt;// $aryTipeTxt : Array after processing of the input character string.\r\n\t\tglobal $raw_input;// $raw_input : Input strings.\r\n\t\tglobal $currentdirectory;// $currentdirectory : current directory (full path)\r\n\t\tglobal $poPath;// $poPath : Entire directory. (ex: $poPath . \"/root/bin/user.json\")\r\n\r\n\t\t$this->addlog(\"コマンドが実行されたよ!\");//[PHPPO/INFO][TestPlugin]コマンドが実行されたよ!\r\n\t\t$this->info(\"[TestPlugin]コマンドが実行されたよ!\");// as $this->addlog(\"コマンドが実行されたよ!\");\r\n\t\t$this->throwError(\"エラーなんか起きてないよ(>_<)\");//[PHPPO/ERROR]エラーなんか起きてないよ(/ω\)\r\n\r\n\t\t$baseCommand = $aryTipeTxt[0]; // to get base command.\r\n\t\tswitch ($baseCommand) {\r\n\t\t\tcase 'test': // on \"test\" command\r\n\t\t\t\t# code...\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'add_more':// on \"add_more\" command\r\n\t\t\t\t# code...\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault: // it won't run... believe in you...\r\n\t\t\t\t# code...\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\t$this->info(\"=============variables=============\");\r\n\t\t$this->vardump(\"aryTipeTxt\"); // call to a function in this class.\r\n\t\t$this->vardump(\"raw_input\");\r\n\t\t$this->vardump(\"currentdirectory\");\r\n\t\t$this->vardump(\"poPath\");\r\n\r\n\t\tif (count($aryTipeTxt) > 1) { // there are args.\r\n\t\t\t$this->addlog(\"引数があるみたいだよ!\");\r\n\t\t\t$this->info(var_export($aryTipeTxt));\r\n\t\t}\r\n\t}", "protected function clientCommand($command)\n {\n MPCMF_LL_DEBUG && error_log(\"==\\n+ waiting: \" . ($this->waiting ? 'yes' : 'no'));\n\n if(!$this->waiting) {\n MPCMF_LL_DEBUG && error_log(\"+ input: {$command}\");\n if(!preg_match('/(?<cmd>[a-z]+)\\s/i', $command, $match)) {\n MPCMF_LL_DEBUG && error_log(\"[!!!] UNKNOWN COMMAND: {$command}\");\n return;\n }\n $this->cmd = $match['cmd'];\n $this->processCommand();\n } else {\n $this->processPayload();\n }\n\n }", "public function onPrivmsg()\n {\n // Populate the methods cache if needed\n if (empty($this->methods)) {\n $this->populateMethodCache();\n }\n\n // Check for a prefixed message\n $msg = $this->plugins->message->getMessage();\n if ($msg === false) {\n return;\n }\n\n // Separate the command and arguments\n $parsed = preg_split('/\\s+/', $msg, 2);\n $command = strtolower(array_shift($parsed));\n $args = count($parsed) ? array_shift($parsed) : '';\n\n // Resolve aliases to their corresponding commands\n $aliases = $this->getConfig('command.aliases', array());\n $result = preg_grep(\n '/^' . preg_quote($command, '/')\n . '$/i', array_keys($aliases)\n );\n\n if ($result) {\n $command = $aliases[array_shift($result)];\n }\n\n // Check to ensure the command exists\n $method = self::METHOD_PREFIX . ucfirst($command);\n if (empty($this->methods[$method])) {\n return;\n }\n\n // If no arguments are passed...\n if (empty($args)) {\n\n // If the method requires no arguments, call it\n if (empty($this->methods[$method]['required'])) {\n $this->getPluginHandler()->$method();\n }\n\n } else {\n // If arguments are passed...\n\n // Parse the arguments\n if ('\"' == substr($args, 0, 1)) {\n preg_match_all('/(\"[^\"]*\")|(\\S+)/', $args, $args);\n $argsIn = $args[0];\n $i = 1;\n $args = array();\n $methodArgsTotal = $this->methods[$method]['total'];\n foreach ($argsIn as $arg) {\n if ($i < $methodArgsTotal) {\n $args[] = $arg;\n $i++;\n } else {\n if (empty($args[$methodArgsTotal])) {\n $args[$methodArgsTotal] = $arg;\n } else {\n $args[$methodArgsTotal] .= ' '.$arg;\n }\n }\n }\n $args = array_values($args);\n } else {\n $args = preg_split('/\\s+/', $args, $this->methods[$method]['total']);\n }\n\n // If the minimum arguments are passed, call the method\n if ($this->methods[$method]['required'] <= count($args)) {\n call_user_func_array(\n array($this->getPluginHandler(), $method),\n $args\n );\n }\n }\n\n }", "public function process(Message $command);", "public static function onNewCommand($from, $command, $parameters) {\n\t}", "public function handle()\n {\n $this->events->fire('command.cacheconfig', $this);\n $this->events->fire('command.cacheroutes', $this);\n $this->events->fire('command.updatecache', $this);\n }", "public function listen(Message $message, Command $command);", "public function handle(AbstractCommand $command);", "public function getCommand() {}", "public function postCmd(Event $event) {\n $this->handler->onPostCmdEvent($event);\n }", "public function handle(CommandInterface $command);", "public function receive(): void\n {\n $connection = $this->getConnection();\n $node = $connection->getCurrentNode();\n\n do {\n $this->_run($node);\n } while (\n false === $connection->isDisconnected() &&\n true !== $node->isMessageComplete()\n );\n }", "public function performCommand( $called, $command, array $params );", "public function command(Command $command);", "public function handle()\n {\n Log::warning('Disabled sms:receive command as it is unused and needs maintenance.');\n return;\n\n // Get last reply id from provider\n // TODO: Track provider ids separately. Also this is most likely provider\n // dependent\n $last_reply_id = $this->replies->getLastReplyId();\n\n $messages = $this->message_service->getMessages(['lastReceivedId' => $last_reply_id]);\n\n foreach ($messages as $message)\n {\n Log::info('[ReceiveSMS] Received SMS message from: ' . $message['from'] . \" with id: \" . $message['id']);\n\n if (!starts_with($message['from'], '+')) {\n $message['from'] = '+' . $message['from'];\n }\n\n $saved = $this->replies->save($from, $message['message'], $message['id']);\n\n // TODO:\n // send \"Response received\" from same number it was received on\n // log sms with relevant check_in_id\n\n if ($saved) {\n $this->message_service->sendResponseReceivedSMS($message['from']);\n }\n }\n }", "abstract function command();", "public function handle()\n {\n $this->fire();\n }", "public function handle()\n {\n $this->fire();\n }", "public function onReceivedMessage($data)\n {\n try {\n // Decode incoming data and log it\n $message = json_decode($data, true, 512, JSON_THROW_ON_ERROR);\n echo print_r($message, true);\n } catch (\\JsonException $e) {\n // If it's not valid JSON, we can ignore it, but we should send and\n // ACK regardless. NOTE: This is probably the opening message from\n // OOCSI\n $this->connection->send('.');\n return;\n }\n \n // Send back a dot as acknowledgement\n $this->connection->send('.');\n\n // Check if the message contains a timestamp\n if (!$message['timestamp']) {\n onDataReceived($message);\n }\n\n // Pass the data off to the next function\n $this->handleData($message);\n }", "public function handle()\n {\n $user = \\App\\User::first();\n $message = \\App\\ChatMessage::create([\n 'user_id' => $user->id,\n 'message' => $this->argument('message')\n ]);\n\n event(new ChatMessageWasReceived($message, $user));\n }", "protected function callCommandMethod() {}", "public function receive();", "public function trackCommand(ConsoleCommandEvent $event)\n {\n if (!$this->consent) {\n return;\n }\n $command = $event->getCommand();\n $input = $event->getInput();\n\n $args = $input->getArguments();\n if ($input->hasOption('uri')) {\n $args['uri'] = $input->getOption('uri');\n }\n\n $this->telemetry\n ->queueEvent('console.command', $args)\n ->setDeviceId(OsInfo::uuid())->logQueuedEvents();\n }", "public function getCommand()\n {\n }", "public function handle(ICommand $command)\n {\n $this->gateway->setNode($command->getNode());\n\n $command->setGateway($this->gateway);\n\n $command->execute();\n\n $this->dispatcher->dispatch($command->releaseEvents());\n }", "public function onReceive(string $str)\n {\n }", "public function onReceive(string $str)\n {\n }", "public function onMessage($msgData) {\r\n\r\n }", "abstract protected function getCommand();", "public function getCommand();", "public function doRaw($command)\n {\n $this->send($command);\n }", "public function run($command)\n {\n $this->hasMessage = true;\n $command = str_replace('{id}', $this->transactionId++, $command);\n\n $this->dbgpServer->sendCommand($command);\n }", "public function handle()\n {\n $this->laravel->bind(RedisSubscribe::class,$this->handler);\n $instance = $this->laravel->make(RedisSubscribe::class);\n\n while(true) {\n $value = Redis::brpop($this->channel, 0);\n\n $channel = $value[0];\n $data = $value[1];\n\n $instance->reset();\n $instance->setData($channel,json_decode($data,true));\n $instance->handle();\n }\n }", "public abstract function receive();", "abstract public function receive();", "public function handle()\n {\n #Comentei pq o supervisor fica subindo toda hora e o arquivo fica gigante\n #como já testei e vi que fucniona tá tranquilo\n// do {\n// \\Log::info(\"Command --- initial\");\n// } while (true);\n }", "function msg_processing_commands($context) {\n if($context->is_callback()) {\n if(isset($context->memory[MYGAMES_SWITCH_KEY])) {\n if(!$context->verify_callback()) {\n return false;\n }\n\n if(preg_match_all('/^switch (\\d*) (0|1)$/', $context->callback->data, $matches, PREG_PATTERN_ORDER) >= 1) {\n $target_id = intval($matches[1][0]);\n $target_admin = (bool)$matches[2][0];\n\n Logger::info(\"Switching to game #{$target_id} as admin \" . b2s($target_admin), __FILE__, $context);\n\n $context->set_active_game($target_id, $target_admin);\n\n $context->comm->reply(\"Done!\");\n }\n\n $context->memory[MYGAMES_SWITCH_KEY] = null;\n\n return true;\n }\n }\n\n else if($context->is_message()) {\n $text = $context->message->text;\n\n // HELP\n if($text === '/help') {\n $context->comm->reply(__('cmd_help'));\n\n return true;\n }\n // START\n else if(starts_with($text, '/start')) {\n $payload = extract_command_payload($text);\n\n Logger::debug(\"Start command with payload '{$payload}'\", __FILE__, $context);\n\n if($payload === '') {\n // Naked /start message\n if($context->game && $context->game->group_state) {\n $context->comm->reply(__('cmd_start_registered'));\n\n msg_processing_handle_group_state($context);\n }\n else {\n $context->comm->reply(__('cmd_start_new'));\n }\n }\n else if($payload === 'test') {\n // Test message from docs website\n $context->comm->reply(__('cmd_test'));\n }\n else {\n $code_info = db_row_query(sprintf(\n \"SELECT `type`, `event_id`, `game_id`, `location_id`, `is_disabled` FROM `code_lookup` WHERE `code` = '%s'\",\n db_escape($payload)\n ));\n\n if($code_info === false) {\n $context->comm->reply(__('failure_general'));\n return true;\n }\n if($code_info == null) {\n Logger::warning(\"Unknown /start payload received: '{$payload}'\", __FILE__, $context);\n $context->comm->reply(__('cmd_start_wrong_payload'));\n return true;\n }\n else if($code_info[4] == 1) {\n // Code has been disabled\n $context->comm->reply(__('cmd_start_wrong_payload'));\n return true;\n }\n\n Logger::debug(\"Code '{$payload}' for {$code_info[0]} scanned\", __FILE__, $context);\n\n $event_id = intval($code_info[1]);\n $game_id = intval($code_info[2]);\n $location_id = intval($code_info[3]);\n\n switch($code_info[0]) {\n case 'creation':\n Logger::debug(\"Creation code scanned for event #{$event_id}\", __FILE__, $context);\n\n msg_processing_init_game_creation($context, $event_id);\n\n break;\n\n case 'registration':\n Logger::debug(\"Registration code scanned for game #{$game_id}\", __FILE__, $context);\n\n $result = bot_register($context, $game_id);\n if($result === true) {\n $context->comm->reply(__('cmd_register_confirm'));\n msg_processing_handle_group_state($context);\n }\n else if($result === 'already_registered') {\n $context->comm->reply(__('cmd_register_registered'));\n msg_processing_handle_group_state($context);\n }\n else if($result === 'unallowed_event_not_ready') {\n $context->comm->reply(__('cmd_register_game_unallowed_event_not_ready'));\n }\n else if($result === 'unallowed_event_over') {\n $context->comm->reply(__('cmd_register_game_unallowed_event'));\n }\n else if($result === 'unallowed_game_over') {\n $context->comm->reply(__('cmd_register_game_unallowed'));\n }\n else if($result === 'unallowed_game_not_ready') {\n $context->comm->reply(__('cmd_register_game_unallowed_not_ready'));\n }\n else {\n $context->comm->reply(__('failure_general'));\n }\n break;\n\n case 'location':\n Logger::debug(\"Location code scanned for location #{$location_id}, game #{$game_id}\", __FILE__, $context);\n\n $result = bot_reach_location($context, $location_id, $game_id);\n if($result === false) {\n $context->comm->reply(__('failure_general'));\n }\n else if($result === 'unexpected') {\n $context->comm->reply(__('cmd_start_location_unexpected'));\n }\n else if($result === 'wrong') {\n $context->comm->reply(__('cmd_start_location_wrong'));\n }\n else if($result === 'unallowed_event_not_ready') {\n $context->comm->reply(__('failure_event_not_ready'));\n }\n else if($result === 'unallowed_event_over') {\n $context->comm->reply(__('failure_event_over'));\n }\n else if($result === 'unallowed_game_not_ready') {\n $context->comm->reply(__('failure_game_not_ready'));\n }\n else if($result === 'unallowed_game_over') {\n $context->comm->reply(__('failure_game_dead'));\n }\n else {\n if($result === 'first') {\n $context->comm->reply(__('cmd_start_location_reached_first'));\n }\n else if($result === 'last') {\n $context->comm->reply(__('cmd_start_location_reached_last'));\n }\n else {\n $context->comm->reply(__('cmd_start_location_reached'));\n }\n\n msg_processing_handle_group_state($context);\n }\n break;\n\n case 'victory':\n Logger::debug(\"Victory code scanned for game #{$game_id}, event #{$event_id}\", __FILE__, $context);\n\n msg_process_victory($context, $event_id, $game_id);\n\n break;\n\n default:\n Logger::error(\"Code '{$payload}' matches unknown type {$code_info[0]}\", __FILE__, $context);\n\n $context->comm->reply(__('cmd_start_wrong_payload'));\n\n break;\n }\n }\n\n return true;\n }\n // STATUS\n else if($text === '/status') {\n if(!$context->game) {\n $context->comm->reply(\"You are new to me. Hello! 🙂\");\n return true;\n }\n\n $status = \"%FIRST_NAME%, you are \" . (($context->game->is_admin) ? '<b>administering</b>' : 'playing') . \" game <code>#%GAME_ID%</code> “%GAME_NAME%”, in the event <code>#%EVENT_ID%</code> “%EVENT_NAME%”.\\n\";\n\n if($context->game->is_admin) {\n $status .= 'The game is <code>' . map_state_to_string(GAME_STATE_READABLE_MAP, $context->game->game_state) . '</code>.';\n }\n else {\n $status .= 'Your team “%GROUP_NAME%” is in state: <code>' . map_state_to_string(STATE_READABLE_MAP, $context->game->group_state) . '</code>.';\n }\n\n $context->comm->reply($status);\n\n return true;\n }\n // MY GAMES\n else if($text === '/mygames') {\n $games = bot_get_associated_games($context);\n\n $text = '';\n $game_keyboard = array();\n $seen_admin = false;\n $seen_player = false;\n $i = 0;\n foreach($games as $game) {\n if($game[3] && !$seen_admin) {\n $seen_admin = true;\n $text .= \"👑 <b>Administered games:</b>\\n\";\n }\n if(!$game[3] && !$seen_player) {\n $seen_player = true;\n $text .= \"👤 <b>Played games:</b>\\n\";\n }\n\n $text .= \"<code>#{$game[0]}</code> \" . (($game[1]) ? \"“{$game[1]}”\" : \"No name\") . \" (\" . map_state_to_string(GAME_STATE_READABLE_MAP, $game[2]) . \")\";\n if($context->game->game_id == $game[0] && $context->game->is_admin == $game[3]) {\n $text .= \" ✅\";\n }\n\n $text .= \"\\n\";\n\n if($i % 3 == 0) {\n $game_keyboard[] = array();\n }\n $game_keyboard[sizeof($game_keyboard) - 1][] = array(\n 'text' => (($game[3]) ? '👑 Admin #' : '👤 Play #') . $game[0],\n 'callback_data' => \"switch {$game[0]} \" . (int)$game[3]\n );\n $i++;\n }\n\n $text .= \"\\nTo which game do you want to switch?\";\n\n $context->memorize_callback($context->comm->reply($text, null, array(\n 'reply_markup' => array(\n 'inline_keyboard' => $game_keyboard\n )\n )));\n\n $context->memory[MYGAMES_SWITCH_KEY] = true;\n\n return true;\n }\n }\n\n return false;\n}", "public function handleCommand()\n {\n $this->info( \"当期版本: \". StarsPeaceProvider::STARS_PEACE_VERSION );\n }", "public function onJoin()\n {\n $chan = ltrim(trim(strtolower($this->event->getArgument(0))), \":\");\n $nick = trim($this->event->getNick());\n\n $this->store[$chan][$nick] = self::REGULAR;\n }", "protected abstract function receive();", "public function subscribe($commandName, CommandHandlerInterface $handler);", "public function getSubscribedEvents()\n {\n return array(\n 'command.php' => 'handleCommand',\n 'command.php.help' => 'handleCommandHelp'\n );\n }", "abstract public function run($command);", "public function handle(): void {\n event(new UpdateTopBarEvent($this->character));\n\n event(new UpdateCharacterCurrenciesEvent($this->character));\n }", "private function onPing()\n {\n $this->send($this->replyEvent());\n }", "public function dataReceived($data);", "public function execute(Command $command): void;", "public function handle($command)\n {\n return $this->parseResponse($this->execute($command));\n }", "public function handle()\n {\n\n // auto debit the delivered order which hasn't been confirmed \"received\" by user after 1 hour.\n $this->lockDeliveredOrder();\n\n // also sweep order in STATUS_ORDERED to become expired in 5 hours after travel limit time\n $this->changeOldOrderFlag();\n\n Event::fire(new ProfitChanged(User::SYSTEM_USER));\n }", "public function run($command);", "public function run($command);", "public function client_send($data, $command = '')\n {\n }", "public function run(Command $command);", "public function handle()\n {\n $this->notificationService->sendNotificationAboutEventToTeachers($this->argument('event'));\n }", "protected function determineCommand()\n {\n if (mb_strlen($this->source) === 0) {\n $this->isInterrupted = true;\n\n return;\n }\n\n $this->command = mb_substr($this->source, 0, 1);\n }", "public function handle()\n {\n $arguments = $this->arguments();\n $options = $this->options();\n\n ProductsDispatcher::dispatch($options)\n ->onConnection('redis')\n ->onQueue('products');\n }", "public function handle()\n {\n echo \"Running telegram messages listener...\\n\";\n\n\n while (true) {\n $offset = $this->getPreviousUpdateID();\n $this->processMessages($offset);\n sleep(1);\n }\n }", "public function handle()\n {\n $headers = MailHeaderUpdate::where('disabled', 0)->orderby('last_header_update', 'asc')->limit(100)->get();\n if (!is_null($headers)) {\n foreach ($headers as $header) {\n $job = (new GetCharacterMailHeaders($header->character_id))\n ->delay(Carbon::now()->addSeconds(5));\n dispatch($job);\n }\n }\n }", "public function handle()\n {\n exec('/usr/bin/snmptrap -v 2c -c ' . env('HEARTBEAT_COMMUNITY') . ' 10.195.14.136 \"\" .1.3.6.1.4.1.35509.1.4.8');\n exec('/usr/bin/snmptrap -v 2c -c ' . env('HEARTBEAT_COMMUNITY') . ' 10.215.210.246 \"\" .1.3.6.1.4.1.35509.1.4.8');\n }", "public function setupCommandFilter()\n {\n Event::listen(CommandStarting::class, function ($event) {\n (new CommandFilterService)->handle($event);\n });\n }", "public function handle()\n\t{\n\t\t\n\t\techo '通知淘宝发货',PHP_EOL;\n\t\techo json_encode($this->getData(),JSON_UNESCAPED_UNICODE),PHP_EOL;\n\t}", "abstract function receive();", "public function handle()\n {\n $this->service->send();\n }", "public function onEvent();", "public function __construct($command)\n {\n $this->command = $command;\n }", "public function run($textCommand);", "public static function getSubscribedEvents()\n {\n $result = ['command' => 'onCommand'];\n return $result;\n }", "public function handle()\n {\n $user = User::find($this->argument('user'));\n if (! $user) {\n return $this->error('不存在的用户');\n }\n broadcast(new PrivateMessageEvent(User::find($this->argument('user')), $this->argument('message')));\n $this->info('推送成功');\n }", "public function Command($command, $actionId);", "public function handle()\n {\n echo \"Order Consumer Initiate \\n\";\n $this->OrderKafka->receiveKafka();\n }", "public function handle()\n {\n Redis::subscribe(['BankWire'], function ($message) {\n $initialDate = $this->dateTime->parseDateTime($message->json('initialDate'));\n $delay = (int) $message->json('delay') ;\n\n $results = $this->settlementDateDomain->getSettlementDate($initialDate, $delay);\n\n echo $results;\n });\n }", "public function handle()\n {\n $type = $this->argument('name');\n $types = config('mail-naraki.aliases');\n\n if (isset($types[$type])) {\n $data = call_user_func(['self', $type]);\n $this->dispatch(new SendMail(new $types[$type]($data)));\n $this->info('The e-mail event was dispatched');\n } else {\n $this->error(sprintf('\"%s\" is not a valid email type', $type));\n }\n }", "public function command(string $command, string $color): void;", "public function handle()\n {\n $data = Order::query()->where('status',1)->get();\n Log::notice('推送进队列的任务'.json_encode($data));\n ChangeOrderJob::dispatch($data);\n }", "protected function handleCommands()\n {\n $controllerNames = ['ProductType','ProductCategory','ProductSubCategory','ProductListing','Brand','Material','Color','Style','ProductAttachment','Dashboard'];\n foreach ($controllerNames as $name){\n $controllerName = $name . 'Controller';\n //create controller\n if ($name != 'ProductAttachment' && $name != 'Dashboard'){\n $this->call('productmanagement:controller', ['name' => $controllerName]);\n }\n\n //create model\n if ($name != 'Dashboard') {\n $this->call('productmanagement:model', ['name' => $name]);\n }\n\n //create model\n if ($name != 'Dashboard' && $name != 'ProductAttachment') {\n $request = $name.'Request';\n $this->call('productmanagement:request', ['name' => $request]);\n }\n\n\n //Generate Views\n if ($name != 'ProductAttachment') {\n $this->call('productmanagement:views', ['name' => $name]);\n }\n }\n\n //Generate Routes\n $this->call('productmanagement:route');\n\n Artisan::call('vendor:publish', [\n '--tag' => 'migrations',\n ]);\n\n Artisan::call('vendor:publish', [\n '--tag' => 'public',\n ]);\n\n //Generate layout\n $this->call('productmanagement:views-partial',['name' => 'test']);\n\n }", "public function handle(PostMessage $command)\n {\n $actor = $command->actor;\n $attributes = $command->data['attributes'];\n $ip_address = $command->ip_address;\n\n $content = $attributes['message'];\n $chat_id = $attributes['chat_id'];\n\n $chat = $this->chats->findOrFail($chat_id, $actor);\n\n $this->assertCan(\n $actor,\n 'pushedx-chat.permissions.chat'\n );\n\n $this->floodgate->assertNotFlooding($actor, $chat);\n\n $message = Message::build(\n $content,\n $actor->id,\n Carbon::now(),\n $chat->id,\n $ip_address\n );\n\n $this->validator->assertValid($message->getDirty());\n\n $message->save();\n $message->event = 'message.post';\n\n return $message;\n }", "public function onChannel($channel);", "public function aim_recv()\r\n\t{\r\n\t\t$header = fread($this->resource, 6);\r\n if ($this->user['debug']) $this->aim_debug($header, AIM_RAW);\r\n\r\n\t\t// Need error checking here to prevent bad data\r\n\t\ttry {\r\n\t\t\tif (!$data = @unpack(\"aone/Ctwo/nthree/nfour\", $header)) {\r\n\t\t\t\t// This normally happens if you sign on elsewhere with the same name,\r\n // or, if the TOC server resets (AOL likes to do this alot).\r\n\t\t\t\tthrow new TACException('Connection to TOC server interrupted.');\r\n\t\t\t} \r\n\t\t} catch(TACException $ex) {\r\n\t\t\t$ex->display();\r\n\t\t}\r\n\r\n if ($this->user['debug']) print_r($data);\r\n\t\t$msg = fread($this->resource, $data['four']);\r\n\t\t$msg = implode('', unpack(\"a*done\", $msg));\r\n if ($this->user['debug']) var_dump($msg);\r\n\r\n // match incoming commands\r\n preg_match(\"/^([A-Z0-9_]{4,19})\\:(.*)/s\", $msg, $matches);\r\n @list($orig, $cmd, $args) = $matches;\r\n // send the command and arguments to our parser\r\n $this->parser->aim_parse_command($cmd, $args);\r\n // regain some memory\r\n unset($header, $orig, $data, $matches);\r\n\t}", "function handle_tag_command($command) {\n $output = '';\n $name = $this->checkAndGet($command, 'name');\n $from = $this->checkAndGet($command, 'from');\n $tagger = $this->checkAndGetAuthor($command, 'tagger');\n $message = $this->checkAndGet($command, 'message');\n\n $output .= sprintf(\"tag %s\\n\", $name);\n $output .= sprintf(\"from %s\\n\", $from);\n $output .= $this->handleAuthor('tagger', $tagger);\n $output .= $this->handleData($message);\n\n return $output;\n }", "public function handle()\n {\n $notification = new Notification([\n\t\t\t'title'\t\t\t=> 'notification sent every minute',\n\t\t\t'description'\t=> 'notification sent every minute',\n\t\t\t'broadcast'\t\t=> 1\n\t\t]);\n\t\t$notification->save();\n\t\t\n\t\t$this->info('notification created');\n }", "public function handle($command)\n {\n switch ($command) {\n case 'help':\n $this->printListOfCommands();\n break;\n case 'show dbs':\n $this->showDatabases();\n break;\n case 'show collection':\n $this->showCollections();\n break;\n case 'use':\n $this->selectCurrentDatabase();\n break;\n }\n }", "public function handle()\n {\n $triggers = Trigger::all();\n foreach ($triggers as $trigger) {\n if($trigger->isMet() && $trigger->notSentYet()){\n $trigger->notify();\n }\n }\n }", "public function process(CommandInterface $command);", "function dbus_message($str) {\n exec(\"echo '$str''' | xargs -0 notify-send -t 500\");\n }", "public function handle()\n {\n $status = [];\n\n foreach ($this->apis as $api)\n {\n $status[] = [\n 'name' => $api->getName(),\n 'value' => $api->getValue(),\n ];\n }\n\n event(new StatusFetched($status));\n }", "public function handleSendMessage() {\n\t\t$json = file_get_contents(\"php://input\"); //vytánutí všech dat z POST požadavku - data ve formátu JSON\n\t\t$data = Json::decode($json); //prijata zprava dekodovana z JSONu\n\t\t$user = $this->getPresenter()->getUser();\n\t\t$addMessage = $this->addMessage($data, $user);\n\t\tif (!empty($addMessage)) {\n\t\t\t$this->sendRefreshResponse($data->lastid);\n\t\t}\n\t}", "public function handle()\n {\n $checkouts = Checkout::whereNull('checked_in_at')\n ->whereDate('due_at', Carbon::now()->toDateString())\n ->get();\n\n $checkoutsByPatron = $checkouts->groupBy('patron_id');\n\n $patrons = Patron::whereIn('id', $checkoutsByPatron->keys()->all())->get();\n\n Notification::send($patrons, new DueEquipmentNotification());\n }", "public\n function getHandler(CommandInterface $command)\n {\n }", "public function onCommand(CommandSender $p, Command $cmd, $label, array $args) {\n if(strtolower($cmd->getName()) == \"function1\") {\n $this->getLogger()->info(TextFormat::YELLOW . \"function1 was called...\");\n } else if(strtolower($cmd->getName()) == \"function2\") {\n $this->getLogger()->info(TextFormat::YELLOW . \"function2 was called...\");\n } else if(strtolower($cmd->getName()) == \"chat\") {\n $this->getLogger()->info(TextFormat::YELLOW . \"chat was called...\");\n $this->onCommandChat($p, $cmd, $label, $args);\n }\n return true;\n }", "public function handle()\n {\n $commands = config('webhook.commands');\n\n if (config('webhook.maintenance-mode')) {\n $commands = $this->putInMaintenanceMode($commands);\n }\n\n if ($this->executeCommands($commands)) {\n $message = \"Deployent successful\";\n Log::info($message . \"\\n\");\n } else {\n $message = \"Deployent failed\";\n Log::error($message . \"\\n\");\n }\n\n return $message;\n }" ]
[ "0.6378983", "0.63750535", "0.63750535", "0.635839", "0.6265074", "0.6262391", "0.62434274", "0.6224257", "0.62167144", "0.6202696", "0.61601543", "0.6139504", "0.61000896", "0.6074872", "0.6011005", "0.5993358", "0.5963363", "0.5924452", "0.5923767", "0.59037524", "0.58968216", "0.58437836", "0.5827759", "0.58095634", "0.5798184", "0.5758171", "0.5748873", "0.5748873", "0.57432777", "0.5735598", "0.57000846", "0.5698488", "0.56900483", "0.5663695", "0.5656831", "0.5633032", "0.5633032", "0.5622941", "0.5609494", "0.5605684", "0.56008744", "0.5591493", "0.558104", "0.5562132", "0.5532552", "0.55232847", "0.55056566", "0.55008423", "0.54865503", "0.5465802", "0.54612744", "0.54475236", "0.54308504", "0.53884786", "0.5382598", "0.5377814", "0.5375787", "0.5372334", "0.53705925", "0.5352948", "0.5352948", "0.5348919", "0.53461516", "0.5345874", "0.53415674", "0.53401625", "0.53295064", "0.52980345", "0.5287832", "0.5284588", "0.52830315", "0.5282635", "0.5265172", "0.5264735", "0.52504474", "0.5241503", "0.524009", "0.5234989", "0.5234868", "0.5232346", "0.52256155", "0.5222059", "0.51977926", "0.5195016", "0.5193872", "0.5184774", "0.5182955", "0.51748365", "0.51710176", "0.51645166", "0.5156843", "0.51500225", "0.5141821", "0.5131865", "0.51311517", "0.51298606", "0.5125025", "0.51218945", "0.51216", "0.51199317" ]
0.53829414
54
Triggered on a numerical response from the server
public function triggerNum($num, $data){}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function response();", "function getResponse();", "function getResponse();", "public function answer()\n\t{\n\t\tif (!$this->typeResponseCode)\n\t\t\treturn $this->answerTwoHundred($this->data);\n\t\telse\n\t\t\treturn $this->answerThroughHeader($this->data);\n\t}", "public function response ();", "public function execute()\n {\n $nbpapi = \"http://api.nbp.pl/api/exchangerates/rates/a/rub/?format=json\";\n\n // get posdata from request\n $postdata = $this->getRequest()->getPostValue();\n\n // make sure that interessing data is float\n if (!isset($postdata[\"amount\"]) || empty($postdata[\"amount\"])) {\n $postdata[\"amount\"] = 0;\n }\n $postamount=floatval($postdata[\"amount\"]);\n\n // request to nbp api \n $this->_curl->get($nbpapi);\n \n // response will contain the output in form of JSON string\n // then change to assoc array\n $exchangerate = $this->_jsonHelper->jsonDecode($this->_curl->getBody());\n \n // how many pln we have\n $amount = $postamount * $exchangerate[\"rates\"][0][\"mid\"];\n \n // create JSON, which will be used to show resposne\n $result = $this->_resultJsonFactory->create();\n\n // set data to json\n $result->setData([\"success\"=>true,\"exchange_rate\"=>$exchangerate[\"rates\"][0][\"mid\"],\"amount\"=>$amount]);\n \n // return result to show json\n return $result;\n }", "private function responseHandle() {\n // call hook function\n is_callable(config('hooks.onResponse')) && call_user_func(config('hooks.onResponse'), $this);\n // response data\n $this->responder->output();\n }", "public function response();", "public function responseMsg()\n {\n $postStr = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n\n //extract post data\n if (!empty($postStr)){\n \n $postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);\n $RX_TYPE = trim($postObj->MsgType);\n\n switch($RX_TYPE)\n {\n case \"text\":\n $resultStr = $this->handleText($postObj);\n break;\n case \"event\":\n $resultStr = $this->handleEvent($postObj);\n break;\n default:\n $resultStr = \"Unknow msg type: \".$RX_TYPE;\n break;\n }\n echo $resultStr;\n }else {\n echo \"\";\n exit;\n }\n }", "public function responseMsg()\n {\n $postStr = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n\n //extract post data\n if (!empty($postStr)){\n \n $postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);\n $RX_TYPE = trim($postObj->MsgType);\n\n switch($RX_TYPE)\n {\n case \"text\":\n $resultStr = $this->handleText($postObj);\n break;\n case \"event\":\n $resultStr = $this->handleEvent($postObj);\n break;\n default:\n $resultStr = \"Unknow msg type: \".$RX_TYPE;\n break;\n }\n echo $resultStr;\n }else {\n echo \"\";\n exit;\n }\n }", "public static function client_responce()\n {\n // Find out Request Type\n $req_type = self::client_request_type();\n\n // Fire Responce\n self::{$req_type}();\n\n // End..\n die();\n }", "public function sendResponse();", "public function response()\n {\n }", "function process() {\n\t\t\t$response = $this->response();\n\t\t\t$this->setSuccess($response);\n\t\t\treturn $this->responseVar;\n\t\t}", "public function post()\n\t{\n\t\t\n\t\t$this->plugin->setResponse( $result );\n\t}", "protected function process_response() {\n\t\t\t$this->response['response']['Message'] = isset($this->response['response']['Message']) ? $this->response['response']['Message'] : '';\n\t\t\t$this->response['response']['error'] = (strpos(strtolower($this->response['response']['Message']), 'invalid') !== false) ? true : $this->response['response']['error'];\n\t\t\t$this->response['response']['error'] = (strpos(strtolower($this->response['response']['Message']), 'the item code was specified more than once') !== false) ? true : $this->response['response']['error'];\n\t\t\t$this->response['response']['Level1Code'] = $this->request['Level1Code'];\n\t\t\t\n\t\t\tif (!$this->response['response']['error']) { // IF Error is False\n\t\t\t\tif (in_array($this->response['server']['http_code'], array('200', '201', '202', '204'))) {\n\t\t\t\t\t$this->log_sendlogitem($this->request['Level1Code']);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->log_error($this->response['response']['Message']);\n\t\t\t}\n\t\t}", "function send($response)\n {\n }", "protected function sendResponse() {}", "public function responseMsg()\n {\n $postStr = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n global $textTpl;\n if (!empty($postStr))\n {\n $postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);\n $type = $postObj->MsgType;\n\n switch ($type)\n {\n case \"event\":\n $resultStr = GetEventMessage($postObj);\n break;\n case \"location\":\n $resultStr = GetLocationMessage($postObj);\n break;\n case \"text\":\n $resultStr = GetTextMessage($postObj);\n break;\n default:\n $resultStr = GetTextMessage($postObj);\n //$resultStr = GetDefaultMessage($postObj);\n break;\n }\n\n RecordInputContent($postObj); //保存用户输入的所有内容\n RefleshUserLoginTime($postObj); // 更新用户登录的最新时间\n\n echo $resultStr;\n }\n else\n {\n echo \"\";\n exit;\n }\n }", "public function handle()\n {\n ProcessSeaTronicPrice::dispatch();\n return 0;\n }", "function check_ipn_response() {\n\t\t@ob_clean();\n \t\tif ( ! empty( $_POST ) && $responce = $this->check_ipn_request_is_valid() ) {\n\n\t \t\theader( 'HTTP/1.1 200 OK' );\n\t \tdo_action( \"valid-payu-standard-ipn-request\", $_POST );\n\n\t\t\tif ($responce) {\n\t\t\t\techo $responce;\n\t\t\t\t@ob_flush();\n\t\t\t}\n\n\t\t} else {\n\n\t\t\twp_die( \"PayU IPN Request Failure\" );\n\n \t\t}\n\n\t}", "public function getResponse()\n {\n }", "public function update_requests() {\n\t\tif (!isset($_POST['time']) || !isset($_POST['hash'])) exit('0');\n\n\t\t// If the response is invalid return a zero response\n\t\t$received = $_POST['time'] . '|' . $_POST['hash'];\n\t\t$expected = $this->time_marker(hash('crc32', $this->required_delay), $_POST['time']);\n\t\tif ($received !== $expected) exit('0');\n\n\t\t// If response if premature return a zero response\n\t\t$now = time();\n\t\t$earliest = absint($_POST['time']) + $this->required_delay;\n\t\tif ($now < $earliest) exit('0');\n\n\t\t// Seems ok ... respond with new hash\n\t\t$response = hash('md5', $_POST['hash'] . $this->base_key);\n\t\texit($response);\n\t}", "public function getResponse();", "public function getResponse();", "public function getResponse();", "public function getResponse();", "public function getResponse();", "public function getResponse();", "public function getResponse();", "public function getResponse();", "public function getResponse();", "public function getResponse();", "public function getResponse();", "public function sendResult()\n\t{\n\t\theader('Content-Type: application/json');\n\t\tif ($this->responseDataType == 'json') {\n\t\t\techo json_encode($this->emojiArray);\n\t\t} else {\n\t\t\techo \"{$this->responseCallback}(\" . json_encode($this->emojiArray) . ')';\n\t\t}\n\t\texit;\n\t}", "public function check_response() {\n\n\t\t// To test in live mode ($_post)\n\t\t$post = ( file_get_contents( 'php://input' ) );\n\n\t\tif ( ! empty( $post ) ) {\n\t\t\tdo_action( 'valid-oyst-one-click-request', $post );\n\t\t\texit;\n\t\t}\n\t\tWC_Oyst_One_Click::log( 'Retour One Click vide', 'error' );\n\t\twp_die( 'Erreur de requête One Click', '1-Click', array( 'response' => 500 ) );\n\n\t}", "protected function _response() {}", "protected function _handleResponse(){\n $this->_results[] = array(\n 'http_code' => $this->getInfoHTTPCode(),\n 'response' => $this->getResponse(),\n 'server' => $this->getUrl()\n );\n }", "public function send()\n {\n http_response_code( $this->getResultCode() );\n echo $this->getBody();\n }", "private function sendResponse(){\n\t\tif(!isset($this->rpcRequest->id)){ return; } // never respond to Notifications\n\n\t\t$response = new stdClass();\n\t\t$response->jsonrpc = \"2.0\";\n\t\t$response->id = $this->rpcRequest->id;\n\n\t\tif($this->responseError){\n\t\t\t$response->error = $this->responseError; // error response\n\t\t}else{\n\t\t\t$response->result = $this->responseResult; // normal response\n\t\t}\n\n\t\tif($this->rpcDebugLevel != self::LOG_NONE){\n\t\t\t$response->log = array();\n\t\t\tforeach($this->log as $msg){\n\t\t\t\tif($msg[\"level\"] <= $this->rpcDebugLevel){\n\t\t\t\t\t$response->log[] = $msg[\"message\"];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\techo $this->toJson($response);\n\t}", "private function repect_ech_m(){\t\n\t\t\t\n\t\t\tif($this->get_request_method() != \"GET\"){\n\t\t\t\t$this->response('',406);\n\t\t\t}\n\t\t\t\n\t\t\t$result=repect_ech_m();\n\t\t\t$this->response($this->json($result), 200);\n\t\t\t$this->response('',204);\t\n\t\t}", "public function get_correct_response() \n {\n return array('answer' => 0);\n }", "private function parse_response(array $response)\n {\n //strip all leading and trailing whitespace from the answer\n $response['answer'] = trim($response['answer']);\n\n //interpret the user's reponse according to the reponse mode\n switch($this->response_mode)\n {\n \n //handle STRING-mode respones\n case qtype_scripted_response_mode::MODE_STRING: \n\n //return the answer as-is, as we already recieved a string\n return strtolower($response['answer']);\n\n //handle STRING-mode respones\n case qtype_scripted_response_mode::MODE_STRING_CASE_SENSITIVE: \n\n //return the answer as-is, as we already recieved a string\n return $response['answer'];\n\n //handle DECIMAL-mode responses\n case qtype_scripted_response_mode::MODE_NUMERIC:\n\n //if the string was empty, return false, a non-numeric form of zero\n if($response['answer'] === '')\n return false;\n\n //get a floating-point interpretation of the answer\n return floatval($response['answer']);\n\n \n //handle HEXADECIMAL-mode responses \n case qtype_scripted_response_mode::MODE_HEXADECIMAL:\n\n //if the user entered a number in C format, parse it using PHP's native recognition of hex numbers\n if(substr($response['answer'], 0, 2) === \"0x\")\n return intval(substr($response['answer'], 2), 16);\n\n //if the user entered the hex number in HCS08 format (i.e. $0F), accept that, as well\n elseif(substr($response['answer'], 0, 1) == '$')\n return hexdec(substr($response['answer'], 1));\n\n //otherwise, return the answer parsed as a hex number\n else\n return hexdec($response['answer']);\n\n //handle BINARY-mode respones\n case qtype_scripted_response_mode::MODE_BINARY:\n\n //if the user entered a number in 0b format (used by some calculators), accept it \n if(substr($response['answer'], 0, 2) === \"0b\")\n return bindec(substr($response['answer'], 2), 16);\n\n //if the user entered the binary number in HCS08 format (i.e. %0F), accept that, as well\n elseif(substr($response['answer'], 0, 1) == '%')\n return bindec(substr($response['answer'], 1));\n\n //otherwise, return the answer parsed as a binary number\n else\n return bindec($response['answer']);\n\n\n //handle OCTAL-mode\n case qtype_scripted_response_mode::MODE_OCTAL:\n\n //if the user entered a number in 0o format, accept it, for consistency with other prefix strings\n //(as far as I know, no major format uses this)\n if(substr($response['answer'], 0, 2) === \"0o\")\n return octdec(substr($response['answer'], 2), 16);\n\n //if the user entered the binary number in HCS08 format (i.e. @0F), accept that, as well\n elseif(substr($response['answer'], 0, 1) == '@')\n return octdec(substr($response['answer'], 1));\n\n //otherwise, return the answer parsed as a octal number\n else\n return octdec($response['answer']);\n }\n }", "public function responseAction()\n\t{\n\t\t$validated = true;\n\t\t$orderId = $_POST['orderNo'];// Generally sent by gateway\n\t\t\n\t\tif($validated) {\n\t\t\t// Payment was successful, so update the order's state, send order email and move to the success page\n\t\t\t$order = Mage::getModel('sales/order');\n\t\t\t$order->loadByIncrementId($orderId);\n\t\t\t$order->addStatusToHistory($order->getStatus(), Mage::helper('payza')->__('Customer successfully returned from Gateway'));\n\t\t\t$order->sendNewOrderEmail();\n\t\t\t$order->setEmailSent(true);\n\t\t\t$order->save();\n\t\t\tMage::getSingleton('checkout/session')->unsQuoteId();\n\t\t\t$this->_redirect('checkout/onepage/success', array('_secure'=>true));\n\t\t}\n\t\telse {\n\t\t\t// There is a problem in the response we got\n\t\t\t$this->_redirect('checkout/onepage/failure');\n\t\t}\n\t}", "function response()\n{\n //$data = $GLOBALS['HTTP_RAW_POST_DATA'];\n $data = file_get_contents('php://input');\n $client = simplexml_load_string($data);\n\n if (strtolower($client->MsgType) == \"event\") {\n if ($client->Event == 'subscribe') {\n $toUserName = $client->FromUserName;\n $FromUserName = $client->ToUserName;\n $time = time();\n $msgType = 'text';\n $content = \"hello world\";\n $tpl = \" <xml>\n <ToUserName><![CDATA[%s]]></ToUserName>\n <FromUserName><![CDATA[%s]]></FromUserName>\n <CreateTime>%s</CreateTime>\n <MsgType><![CDATA[%s]]></MsgType>\n <Content><![CDATA[%s]]></Content>\n </xml>\";\n $info = sprintf($tpl,$toUserName,$FromUserName,$time,$msgType,$content);\n echo $info;\n }\n\n\n }else{\n if(strtolower($client->MsgType) == 'text'){\n $request = $client->Content;\n $flag = fliter($request);\n switch($flag){\n case 'cet4':\n $msg = cet4($request);\n break;\n case 'matrix':\n $msg = matrixCaculator($request);\n break;\n case 'default':\n $msg = $request;\n break;\n default:\n $msg = $request;\n }\n responseText($client,$msg);\n }\n }\n}", "public function respond()\n {\n }", "public function getResponse() {}", "public function getResponse() {}", "public function responseAction() \n\t{\n\t\t\n\t\t$ResErrorText= isset($_POST['ErrorText']) ? $_POST['ErrorText'] : ''; \t//Error Text/message\n\t\t$ResPaymentId = isset($_POST['paymentid']) ? $_POST['paymentid'] : '';\t//Payment Id\n\t\t$ResTrackID = isset($_POST['trackid']) ? $_POST['trackid'] : ''; //Merchant Track ID\n\t\t$ResErrorNo = isset($_POST['Error']) ? $_POST['Error'] : ''; //Error Number\n\t\t$ResResult = isset($_POST['result']) ? $_POST['result'] : ''; //Transaction Result\n\t\t$ResPosdate = isset($_POST['postdate']) ? $_POST['postdate'] : ''; //Postdate\n\t\t$ResTranId = isset($_POST['tranid']) ? $_POST['tranid'] : ''; //Transaction ID\n\t\t$ResAuth = isset($_POST['auth']) ? $_POST['auth'] : ''; //Auth Code\t\t\n\t\t$ResAVR = isset($_POST['avr']) ? $_POST['avr'] : ''; //TRANSACTION avr\t\t\t\t\t\n\t\t$ResRef = isset($_POST['ref']) ? $_POST['ref'] : ''; //Reference Number also called Seq Number\n\t\t$ResAmount = isset($_POST['amt']) ? $_POST['amt'] : ''; //Transaction Amount\n\t\t$Resudf1 = isset($_POST['udf1']) ? $_POST['udf1'] : ''; //UDF1\n\t\t$Resudf2 = isset($_POST['udf2']) ? $_POST['udf2'] : ''; //UDF2\n\t\t$Resudf3 = isset($_POST['udf3']) ? $_POST['udf3'] : ''; //UDF3\n\t\t$Resudf4 = isset($_POST['udf4']) ? $_POST['udf4'] : ''; //UDF4\n\t\t$Resudf5 = isset($_POST['udf5']) ? $_POST['udf5'] : ''; //UDF5\t\t\n\t\t\n\t\t$transportalId = Mage::getSingleton('hdfc/config')->getTransportalId();\n\t\t\n\t\t\n\t\t$hdfcModel = Mage::getModel('hdfc/hdfcresponse')\n\t\t\t\t\t->load($_POST['trackid'], 'trackid')\n\t\t\t\t\t->setErrorText($ResErrorText)\n\t\t\t\t\t->setPaymentid($ResPaymentId)\n\t\t\t\t\t->setTrackid($ResTrackID)\n\t\t\t\t\t->setError($ResErrorNo)\n\t\t\t\t\t->setResult($ResResult)\n\t\t\t\t\t->setPostdate($ResPosdate)\n\t\t\t\t\t->setTranid($ResTranId)\n\t\t\t\t\t->setAuth($ResAuth)\n\t\t\t\t\t->setAvr($ResAVR)\n\t\t\t\t\t->setRef($ResRef)\n\t\t\t\t\t->setAmt($ResAmount)\n\t\t\t\t\t->setUdf1($Resudf1)\n\t\t\t\t\t->setUdf2($Resudf2)\n\t\t\t\t\t->setUdf3($Resudf3)\n\t\t\t\t\t->setUdf4($Resudf4)\n\t\t\t\t\t->setUdf5($Resudf5)\t\t\t\t\t\n\t\t\t\t\t->save(); \n\t\ttry\n\t\t{\n\t\t\t/* Capture the IP Address from where the response has been received */\n\t\t\t$strResponseIPAdd = getenv('REMOTE_ADDR');\n\t\t\t\n\t\t\t/* Check whether the IP Address from where response is received is PG IP */\n\t\t\tif ($strResponseIPAdd != \"221.134.101.175\" && $strResponseIPAdd != \"221.134.101.166\" && $strResponseIPAdd != \"221.134.101.187\")\n\t\t\t{\n\t\t\t\t$REDIRECT = 'REDIRECT='.Mage::getBaseUrl().'checkout/onepage/failure?ResError=--IP MISSMATCH-- Response IP Address is: '.$strResponseIPAdd;\n\t\t\t\techo $REDIRECT;\n\t\t\t}\n\t\t\telse\n\t\t\t{\t\n\t\t\t\t/*Variable Declaration*/\n\t\t\t\t/*=========================================================================================*/\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\tif ($ResErrorNo == '')\t\n\t\t\t\t{ \n\t\t\t\t\t\n\t\t\t\t\t$strHashTraportalID=trim($transportalId); //USE Tranportal ID FIELD FOR HASHING ,Mercahnt need to take this filed value from his Secure channel such as DATABASE.\n\t\t\t\t\t$strhashstring=\"\"; //Declaration of Hashing String \n\t\t\t\t\t\n\t\t\t\t\t$strhashstring=trim($strHashTraportalID);\n\t\t\t\t\t\n\t\t\t\t\t//Below code creates the Hashing String also it will check NULL and Blank parmeters and exclude from the hashing string\n\t\t\t\t\tif ($ResTrackID != '' && $ResTrackID != null )\n\t\t\t\t\t$strhashstring=trim($strhashstring).trim($ResTrackID);\t\t\t\t\t\n\t\t\t\t\tif ($ResAmount != '' && $ResAmount != null )\n\t\t\t\t\t$strhashstring=trim($strhashstring).trim($ResAmount);\t\t\t\t\t\n\t\t\t\t\tif ($ResResult != '' && $ResResult != null )\n\t\t\t\t\t$strhashstring=trim($strhashstring).trim($ResResult);\t\t\t\t\t\n\t\t\t\t\tif ($ResPaymentId != '' && $ResPaymentId != null )\n\t\t\t\t\t$strhashstring=trim($strhashstring).trim($ResPaymentId);\t\t\t\t\t\n\t\t\t\t\tif ($ResRef != '' && $ResRef != null )\n\t\t\t\t\t$strhashstring=trim($strhashstring).trim($ResRef);\t\t\t\t\t\n\t\t\t\t\tif ($ResAuth != '' && $ResAuth != null )\n\t\t\t\t\t$strhashstring=trim($strhashstring).trim($ResAuth);\t\t\t\t\t\n\t\t\t\t\tif ($ResTranId != '' && $ResTranId != null )\n\t\t\t\t\t$strhashstring=trim($strhashstring).trim($ResTranId);\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t//Use sha256 method which is defined below for Hashing ,It will return Hashed valued of above strin\t\t\t\t\t\n\t\t\t\t\t$hashvalue= hash('sha256', $strhashstring); \t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t/*******************HASHING CODE LOGIC END************************************/\n\t\t\t\t\t//$hdfcModel = Mage::getModel('hdfc/hdfcresponse')->savePaymentData($_POST);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif ($hashvalue == $Resudf5)\n\t\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t/* Hashing Response Successful\t*/\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($ResResult == \"CAPTURED\" || $ResResult == 'APPROVED')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->orderSuccess($ResTrackID);\n\t\t\t\t\t\t\t$REDIRECT = 'REDIRECT='.Mage::getBaseUrl().'/checkout/onepage/success?ResTrackId='.$ResTrackID;\n\t\t\t\t\t\t\techo $REDIRECT;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->cancel_order($ResTrackID);\n\t\t\t\t\t\t\t$REDIRECT = 'REDIRECT='.Mage::getBaseUrl().'/checkout/onepage/failure?ResTrackId='.$ResTrackID;\n\t\t\t\t\t\t\techo $REDIRECT;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t/* NOTE - MERCHANT MUST LOG THE RESPONSE RECEIVED IN LOGS AS PER BEST PRACTICE */\n\t\t\t\t\t/*Udf5 field values not matched with calculetd hashed valued then show appropriate message to\n\t\t\t\t\tMercahnt for E.g.Hashing Response NOT Successful*/\n\n\t\t\t\t\t/* Hashing Response NOT Successful */\n\t\t\t\t\t$REDIRECT = 'REDIRECT='.Mage::getBaseUrl().'/checkout/onepage/failure?ResError=Hashing Response Mismatch';\n\t\t\t\t\techo $REDIRECT;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\t\t\t\t/*ERROR IN TRANSACTION PROCESSING\n\t\t\t\t\t\t\t\tIMPORTANT NOTE - MERCHANT SHOULD UPDATE \n\t\t\t\t\t\t\t\tTRANACTION PAYMENT STATUS IN MERCHANT DATABASE AT THIS POSITION \n\t\t\t\t\t\t\t\tAND THEN REDIRECT CUSTOMER ON RESULT PAGE*/\n\t\t\t\t$REDIRECT = 'REDIRECT='.Mage::getBaseUrl().'/checkout/onepage/failure?ResTrackId='.$ResTrackID;\t\t\n\t\t\t\techo $REDIRECT;\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\tcatch(Exception $e)\n\t\t{\n\t\t\tvar_dump($e->getMessage());\n\t\t}\n\t}", "private function response() {\n $reply = trim(fgets($this -> __sock, 512));\n switch(substr($reply, 0, 1)) {\n /* Error reply */\n case '-':\n trigger_error('ERROR (' . trim($reply) . ')', E_USER_ERROR);\n /* Inline reply */\n case '+':\n $response = substr(trim($reply), 1);\n if($response === 'OK') $response = true;\n break;\n /* Bulk reply */\n case '$':\n $response = null;\n if($reply === '$-1') break;\n $read = 0;\n $size = intval(substr($reply, 1));\n if($size > 0) {\n do {\n $block_size = ($size - $read) > 1024 ? 1024 : ($size - $read);\n $r = fread($this -> __sock, $block_size);\n if($r === false)\n trigger_error('READ FROM SERVER ERROR', E_USER_ERROR);\n else {\n $read += strlen($r);\n $response .= $r;\n }\n } while($read < $size);\n }\n fread($this -> __sock, 2); /* CRLF */\n break;\n /* Multi-bulk reply */\n case '*':\n $count = intval(substr($reply, 1));\n if($count === -1) return null;\n $response = array();\n for($i = 0; $i < $count; $i++)\n $response[] = $this -> response();\n break;\n /* Integer reply */\n case ':':\n $response = intval(substr(trim($reply), 1));\n break;\n default:\n trigger_error('UNKNOWN RESPONSE ERROR', E_USER_ERROR);\n }\n return $response;\n }", "private function sendResponseCode(): void\n {\n\n $http = sprintf(\n 'HTTP/%s %s %s',\n $this->versionProtocol,\n $this->responseCode,\n $this->httpCodeText[$this->responseCode]\n );\n\n header($http, true);\n http_response_code($this->responseCode);\n\n }", "public function onEndRequest()\n {\n $response = self::getAjaxResponse()->getArray();\n if ($this->getAjaxResponseValidator()->validate($response)) {\n echo json_encode($response);\n }\n }", "function grade_response(array $response)\n {\n try\n {\n\n //process the user's response\n $grades = $this->process_response($response);\n\n //and return the earned grade\n return array($grades['fraction'], question_state::graded_state_for_fraction($grades['fraction']));\n }\n catch(SimulationException $e)\n {\n return false;\n }\n }", "public function getResponse($response) {\r\n\r\n\r\n }", "public function ajax_response()\n {\n }", "public function ping(){\n http_response_code(200);\n ob_end_flush();\n }", "abstract public function processResponse($response);", "function handle_output($serverOutput, $function)\n{\n $response = json_decode($serverOutput);\n $message = key($response);\n $response = isset($response->$message) ? $response->$message : null;\n //$parts = explode(':', $serverOutput, 2);\n //This will simply kill the script if EE returns with an error\n //This is to avoid foulups, and to simplify the code checking above\n if ($message == 'COUNTRY_IS_DEAD') {\n out(\"Country is Dead!\");\n\n return false;\n } elseif ($message == 'OWNED') {\n out(\"Trying to sell more than owned!\");\n\n return false;\n } elseif (expected_result($function) && $message != expected_result($function)) {\n out(\"\\n\\nUnexpected Result for '$function': \".$message.':'.$response.\"\\n\\n\");\n\n return false;\n } elseif (!expected_result($function)) {\n out($message);\n out_data($response);\n return false;\n }\n\n return $response;\n}", "public function send_response() {\n\t\n\t\t$return = $this->get_response();\n\t\t\n\t\t/* send it and terminate this instance */\n\t\tif($this->get_errors()) {\n\t\t\twp_send_json_error($return);\t\t\t\t\t\t\n\t\t} else {\n \t\tif( null === $this->wp_query ) {\n \t\t\twp_send_json_success($return); \t\t \t\t\n \t\t} else {\n \t\t\n \t\t\t$data = array(\n \t\t\t'success' => true,\n \t\t\t'data' => $return,\n \t\t\t'query' => $this->parse_wp_query_object_2_js( $this->wp_query )\n \t\t\t);\n \t\t\twp_send_json($data); // build a custom wp_send_json_success with an extra property \n \t\t}\t\t\t\n\t\t}\n\t}", "public function CallBack($response) {\n\t\n\t}", "public function respond();", "public function respond();", "public function getResponse() {\n }", "public function process_interac_response()\n\t{\n\t\t$idebit_merchantdata = strtolower(ee()->input->get_post('IDEBIT_MERCHDATA'));\n\t\tif($idebit_merchantdata)\n\t\t{\n\t\t\t$transaction = ee()->db->select('store_notify_url')->from('store_beanstream_interac')->where('interac_merchant_data', $idebit_merchantdata)->get();\n\t\t\tif($transaction->num_rows() == 1)\n\t\t\t{\n\t\t\t\t$_POST['funded'] = $_GET['funded'];\n\t\t\t\t$url = $transaction->row('store_notify_url').'&'.http_build_query($_POST);\n\t\t\t\tee()->functions->redirect($url);\n\t\t\t}\n\t\t}\n\t}", "public function getResponseCode()\n {\n }", "public function getResponse() {\n\t}", "function show_response()\n\t{\n\t\tprint_r($this->http_response);\n\t}", "function handleRequest() ;", "private function handleDiagnosticsRequest()\n {\n $statusApiConfigurator = new Webinterpret_Connector_StatusApi_StatusApiConfigurator(Mage::app(), Mage::getConfig());\n\n $statusApi = $statusApiConfigurator->getExtendedStatusApi();\n\n $json = $statusApi->getJsonTestResults();\n header('Content-Type: application/json');\n header('Content-Length: '.strlen($json));\n echo $json;\n }", "public static function sendOkResponse(){\n http_response_code(200);\n die();\n }", "public function response() {\n $response = (object)[\n 'count' => $this->response,\n 'errors' => $this->errors\n ];\n echo json_encode($response); \n }", "function SendResponse($response) {\n echo json_encode($response);\n }", "private function repect_ech_m1(){\t\n\t\t\t\n\t\t\tif($this->get_request_method() != \"GET\"){\n\t\t\t\t$this->response('',406);\n\t\t\t}\n\t\t\t\n\t\t\t$result=repect_ech_m1();\n\t\t\t$this->response($this->json($result), 200);\n\t\t\t$this->response('',204);\t\n\t\t}", "public function handleResponse(Player $player, $data): void {\n\t\tif(!is_numeric($data)){\n\t\t\treturn;\n\t\t}\n\t\tswitch ($data){\n\t\t\tcase 0:\n\t\t\t\tif($this->pe->getVar(\"DAIRY\")<12){\n\t\t\t\t\t$player->sendMessage(\"チケットが足りません。\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(!$player->getInventory()->canAddItem(Item::get(1,0,1))){\n\t\t\t\t\t$player->sendMessage(\"インベントリに空きがありません\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t$item = Item::get(378, 0, 1);\n\t\t\t\t$item->setCustomName(\"§d修復クリーム\");\n\t\t\t\t$player->getInventory()->addItem($item);\n\t\t\t\t$this->pe->removeVar(\"DAIRY\",12);\n\t\t\tbreak;\n\n\t\t\tcase 1:\n\t\t\t\tif($this->pe->getVar(\"DAIRY\")<3){\n\t\t\t\t\t$player->sendMessage(\"チケットが足りません。\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(!$player->getInventory()->canAddItem(Item::get(1,0,1))){\n\t\t\t\t\t$player->sendMessage(\"インベントリに空きがありません\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t$item=Item::get(129,0,1);\n\t\t\t\t$player->getInventory()->addItem($item);\n\t\t\t\t$this->pe->removeVar(\"DAIRY\",3);\n\t\t\tbreak;\n\n\t\t\tcase 2:\n\t\t\t\tif($this->pe->getVar(\"DAIRY\")<100){\n\t\t\t\t\t$player->sendMessage(\"チケットが足りません。\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(!$player->getInventory()->canAddItem(Item::get(1,0,1))) {\n\t\t\t\t\t$player->sendMessage(\"インベントリに空きがありません\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t$item = Item::get(278, 0, 1);\n\t\t\t\t$item->setCustomName(\"§d恒星の輝きを放つピッケルv2\");\n\t\t\t\t$item->addEnchantment(new EnchantmentInstance(Enchantment::getEnchantment(15), 4));\n\t\t\t\t$item->addEnchantment(new EnchantmentInstance(Enchantment::getEnchantment(17), 10));\n\t\t\t\t$player->getInventory()->addItem($item);\n\t\t\t\t$this->pe->removeVar(\"DAIRY\",100);\n\t\t\tbreak;\n\n\t\t\tcase 3:\n\t\t\t\tif($this->pe->getVar(\"DAIRY\")<20){\n\t\t\t\t\t$player->sendMessage(\"チケットが足りません。\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(!$player->getInventory()->canAddItem(Item::get(1,0,1))){\n\t\t\t\t\t$player->sendMessage(\"インベントリに空きがありません\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t$item=Item::get(218,7,1);\n\t\t\t\t$player->getInventory()->addItem($item);\n\t\t\t\t$this->pe->removeVar(\"DAIRY\",20);\n\t\t\tbreak;\n\n\t\t\tcase 4:\n\t\t\t\tif($this->pe->getVar(\"DAIRY\")<3){\n\t\t\t\t\t$player->sendMessage(\"チケットが足りません。\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(!$player->getInventory()->canAddItem(Item::get(1,0,3))){\n\t\t\t\t\t$player->sendMessage(\"インベントリに空きがありません\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t$paper=Item::get(339,0,3);\n\t\t\t\t$paper->setCustomName(\"§aガチャチケット\");\n\t\t\t\t$nbt=$paper->getNamedTag();\n\t\t\t\t$nbt->setInt(\"EventGacha\",1);\n\t\t\t\t$paper->setNamedTag($nbt);\n\t\t\t\t$player->getInventory()->addItem($paper);\n\t\t\t\t$this->pe->removeVar(\"DAIRY\",3);\n\t\t\tbreak;\n\n\t\t\tcase 5:\n\t\t\t\tif($this->pe->getVar(\"DAIRY\")<2){\n\t\t\t\t\t$player->sendMessage(\"チケットが足りません。\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t$this->pe->removeVar(\"DAIRY\",2);\n\t\t\t\t$this->pe->addVar(\"RED\",1);\n\t\t\tbreak;\n\t\t}\n\t\t$player->sendMessage(\"[管理AI]交換が完了しました。\");\n\t}", "function handleResponse($response) : void\n{\n print_r(json_encode($response));\n die();\n}", "public function answer ( )\n\t{\n\t\t$output_options = array(\n \"encoding\" => \"utf-8\"\n );\n\t\treturn str_replace( \"&#38;#\", \"&#\", xmlrpc_server_call_method( $this->sh, file_get_contents( 'php://input'), NULL, $output_options ) );\n\t\t\n\t}", "public function CallBack($response);", "public function getResponseCode();", "public function getResponseCode();", "function _handler_response(&$app, &$c) {\n\t\t$c->param('app.view_http.response.status', $this->_http->getResponseCode());\n\t\t$c->param('app.view_http.response.body', $this->_http->getResponseBody());\n\t\t$c->param('app.view_http.response.headers', $this->_http->getResponseHeader());\n\t}", "function http_response_code($response_code = 0) { \r\n \r\n if($response_code)\r\n Pancake\\vars::$Pancake_request->answerCode = $response_code;\r\n return Pancake\\vars::$Pancake_request->answerCode;\r\n }", "public function renderResponse(): void\n {\n $methodName = $this->methodName;\n $this->$methodName()->send();\n\t}", "public static function process_http_request()\n {\n }", "function send_response($message)\n{\n\techo json_encode($message);\n}", "public function humidityScore();", "function evaluateOutput($output)\n{\n log1(\"evaluateOutput: \" .$output);\n echo $output; // actual HTTP response output writer\n switch ($output) {\n case RESULT_OK:\n return true;\n case ERROR_DEVICE_IN_USE:\n case ERROR_COMMON:\n return false;\n default:\n return null;\n }\n}", "private function CheckHttpResponse()\n\t{\n\t\tfor ( $Z = 0; $Z < count($this->url); $Z++ )\n\t\t{\n\t\t\tif ( isset($this->result_ping[$Z]))\n\t\t\t{\n\t\t\t\tpreg_match('/\\/[[:digit:]]+.[[:digit:]]?\\//' , $this->result_ping[$Z] , $data);\n\t\t\t\tarray_push( $this->avg_ping , str_replace('/' , '' , $data ) );\n\t\t\t}\n\t\t}\n\t}", "public function handleChargeResp($ch){\n $this->chargeSuccess = $ch->outcome->network_status == 'approved_by_network';\n $this->msgToUser = $ch->outcome->seller_message;\n }", "public function getResponseMessage();", "function response($code){\n $this->response_code = $code;\n }", "private function ajaxResponse()\n {\n echo json_encode($this->response);\n die(1);\n }", "public function response(){\r\n\t\t// register event on_shutdown\r\n\t\tregister_shutdown_function(function(){\r\n\t\t\t// on_shutdown\r\n\t\t\t\\M::get('event')->trigger('system.on_shutdown');\r\n\r\n\t\t\t// debug\r\n\t\t\t\\M::get('debug')->exception_fatal();\r\n\t\t});\r\n\r\n\t\tob_start();\r\n\t\t\t// load default config & controller core\r\n\t\t\trequire_once APP_PATH . 'config.php';\r\n\t\t\trequire_once SYSTEM_PATH . 'controller.php';\r\n\r\n\t\t\t// on load\r\n\t\t\t\\M::get('event')->trigger('system.on_load', DOMAIN);\r\n\r\n\t\t\t// parser url\r\n\t\t\t$this->parser_url();\r\n\t\t\t// load module\r\n\t\t\t$this->load_module(input('module', 'str', 'get'));\r\n\t\t\t// load extend module\r\n\t\t\t$this->load_extend(input('extend_module', 'str', 'get'));\r\n\t\t\t// load group controller & controller\r\n\t\t\tlist($lib, $instance) = $this->load_controller(input('group_controller', 'str', 'get'), input('controller', 'str', 'get'));\r\n\t\t\t// load action\r\n\t\t\t$this->load_action($lib, $instance);\r\n\t\t$html = ob_get_clean();\r\n\r\n\t\t// on response\r\n\t\tob_start();\r\n\t\t\\M::get('event')->change('system.on_response', $html);\r\n\r\n\t\t// display html & end all script\r\n\t\tdie($html);\r\n\t}", "function deliver_response(){\n\n // --- Step 1: Initialize variables and functions\n //\n // Deliver HTTP Response\n // The desired HTTP response content type: [json, html, xml]\n // The desired HTTP response data\n\n\n header('HTTP/1.1 '.$this->response['status'] . // Set HTTP Response\n ' '.$this->http_response_code[$this->response['status'] ]);\n header('Content-Type: application/json; charset=utf-8'); // Set HTTP Response Content Type\n $json_response = json_encode($this->response['data']); // Format data into a JSON response\n echo $json_response; // Deliver formatted data\n }", "function deliver_response($api_response){\r\n \r\n // Set HTTP Response\r\n header('HTTP/1.1 200 OK');\r\n\r\n // Set HTTP Response Content Type\r\n header('Content-Type: application/json; charset=utf-8');\r\n \r\n // Format data into a JSON response\r\n $json_response = json_encode($api_response);\r\n\r\n // Deliver formatted data\r\n echo $json_response;\r\n \r\n // End script process\r\n exit;\r\n \r\n}", "function response() {\n\t\t\t$this->setInfo('Function incorrectly structured.');\n\t\t\treturn false;\n\t\t}", "public function reply()\n\t{\n\t\tif($this->return){\n\t\t\t$this->_reply(200, 'Ok', $this->return);\n\t\t}else{\n\t\t\t$this->_reply(200, 'Ok', $this->return);\n\t\t}\n\t\texit();\n\t}", "function handlePOSTRequest() {\n if (connectToDB()) {\n if (array_key_exists('resetTablesRequest', $_POST)) {\n handleResetRequest();\n } else if (array_key_exists('updateQueryRequest', $_POST)) {\n handleUpdateRequest();\n } else if (array_key_exists('insertQueryRequest', $_POST)) {\n handleInsertRequest();\n } \n else if (array_key_exists('avgAgeQueryRequest', $_POST)) {\n //console_log(\"hello\");\n handleAvgAgeRequest();\n //echo \"Average age is 0\";\n } \n\n disconnectFromDB();\n }\n }", "abstract public function handle_request();", "function set_Json_Response()\n {\n $this->setCommand();\n //Fire Script \n $this->fire_Script();\n $response = array(\"status\"=>$this->status,\n \"script_ouput\"=>$this->script_output,\n \"executation_time\"=>$this->time_interval,\n \"message\"=>$this->message);\n \n echo json_encode($response, JSON_PRETTY_PRINT);\n }", "public function requests()\n\t{\n\t\t$this->checkRequest();\n\t\t$this->getResponse();\n\t}" ]
[ "0.61111635", "0.5993801", "0.5993801", "0.5948623", "0.59247506", "0.5835565", "0.5813944", "0.57490104", "0.5672443", "0.56283283", "0.5627563", "0.560876", "0.5579949", "0.5571496", "0.5530989", "0.55234087", "0.5506005", "0.54759216", "0.547282", "0.5457992", "0.5452976", "0.5410694", "0.54098314", "0.5394746", "0.5394746", "0.5394746", "0.5394746", "0.5394746", "0.5394746", "0.5394746", "0.5394746", "0.5394746", "0.5394746", "0.5394746", "0.53945506", "0.5368165", "0.53665745", "0.5359313", "0.5358286", "0.53572744", "0.535463", "0.53495735", "0.5342362", "0.5318513", "0.5316973", "0.5315365", "0.53120625", "0.53120625", "0.5310124", "0.5308079", "0.53053784", "0.53053296", "0.5302741", "0.5301841", "0.5290153", "0.5287758", "0.5280449", "0.5280107", "0.52753294", "0.52691853", "0.5266341", "0.5266341", "0.5260792", "0.526044", "0.52598447", "0.5259111", "0.5256295", "0.5244594", "0.52229035", "0.5220649", "0.52073556", "0.5199144", "0.5195689", "0.51949", "0.5192127", "0.5191433", "0.51850224", "0.51841396", "0.51841396", "0.51681685", "0.5161848", "0.51615477", "0.5160511", "0.51595813", "0.5158353", "0.5149582", "0.5149241", "0.5141723", "0.5140352", "0.5139342", "0.5134376", "0.5134299", "0.5134018", "0.51322496", "0.51314354", "0.5125277", "0.512454", "0.51156634", "0.5104066", "0.50951433" ]
0.51024765
99
public $maxExceptions = 2; public $backoff = 86430;
public function __construct($filepath, User $user, Company $company) { $this->filepath = $filepath; $this->user = $user; $this->company = $company; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function backoff(): array\n {\n return [5, 10, 15];\n }", "public function maxExceptions();", "protected function timeRetry(): int\n {\n return 300;\n }", "public function maxTries() {\n\t\treturn 1;\n\t}", "public function getMaxRetries()\n {\n return $this->_maxRetries;\n }", "public function error429()\n {\n }", "public function __construct($exceptions = false)\n {\n }", "public function maxAttempts(): int\n {\n return 5;\n }", "public function maxTries();", "public function getServerFailureLimit()\n {\n return $this->serverFailureLimit;\n }", "public function maxAutoRetries($value) {\n return $this->setProperty('maxAutoRetries', $value);\n }", "public function getMaximumAttempts();", "final public static function HpsMaximumNumberOfRetryTransactionWasBreached()\n {\n return self::get(822);\n }", "public function testTask1Exception(){\n\n }", "#[@test, @limit(time= 1.0)]\n public function noTimeout() {\n }", "public function test_refreshMessageTimeout() {\n\n }", "public function getRepeatExceptions()\n {\n return $this->repeatExceptions;\n }", "public function __sleep()\n {\n return ['apiEndpoint'];\n }", "public function proceededAt()\n {\n }", "public function getSleepRetry(): int\n {\n return $this->sleepRetry;\n }", "public function getOverfillLimit()\n {\n return 20;\n }", "public function maxAttempts()\n {\n return property_exists($this, 'maxAttempts') ? $this->maxAttempts : 5;\n }", "public function timeout()\n {\n return 300;\n }", "public function attempts() {\n\t\treturn 0;\n\t}", "public function getRetryAfter() : int\n {\n return $this->retryAfter;\n }", "public function testRateLimit()\n {\n $this->markTestIncomplete('Not yet implemented.');\n }", "public function getRetries()\n {\n return $this->retries;\n }", "public function getMaxAttemptTimes(): int\n {\n return 3;\n }", "public function try(){\n\n }", "public function setRetries(int $retries): void {}", "public function getRetries(): int\n {\n return $this->retries;\n }", "public function attempts();", "public static function rateLimit(): self\n {\n return self::getInstance('RATE_LIMIT');\n }", "public function __sleep(): array\n {\n return [];\n }", "public function checkTooManyFailedAttempts()\n {\n \n if (! RateLimiter::tooManyAttempts($this->throttleKey(), 5)) {\n return;\n }\n\n throw new \\Exception('IP address banned. Too many login attempts, please waite for 3 minutes and Try again!');\n }", "public function failure(){\n\t}", "public static function manyRequests(){\n\n throw new \\yii\\web\\HttpException(414, 'Too Many Requests', 405);\n }", "public function canRetry() : bool;", "public function getRetryTimeout()\n {\n return $this->retryTimeout;\n }", "public function getExceptions();", "public function testMaxAttemptsToInitiateExceeded(string $phone): void\n {\n $customMessage = 'Too many attempts to initiate';\n $config = [\n 'rate_limits' => [\n 'initiate' => ['period_secs' => self::PERIOD_SECS_TO_INITIATE,\n 'count' => self::MAX_ATTEMPTS_TO_INITIATE,\n 'message' => fn() => $customMessage\n ]\n ]\n ];\n\n $manager = (new Manager($this->storageMock, $config))->sender($this->senderMock);\n\n // Exceeding all available initiations\n for ($i = 0; $i < self::MAX_ATTEMPTS_TO_INITIATE; ++$i) {\n $manager->initiate($phone);\n $otp = $manager->otp();\n $this->assertGreaterThan(0, $otp);\n $this->assertGreaterThan(0, $otp);\n }\n\n try {\n $manager->initiate($phone);\n $this->fail('RateLimit has not been not thrown');\n } catch (RateLimit $e) {\n $this->assertEquals(RateLimit::CODE_INITIATE, $e->getCode());\n $this->assertEquals($customMessage, $e->getMessage());\n }\n }", "public function testExceptionIsThrownWhenRateLimitIsReached()\n {\n $passwordFile = 'hit_rate_limit.txt';\n $password = 'password';\n $hibp = $this->createHibpWithMockedClientResponse(__DIR__ . '/_files/' . $passwordFile);\n $this->expectException(\\RuntimeException::class);\n $hibp->isPwnedPassword($password);\n $this->fail('Expected exception for hit rate was not triggered');\n }", "public function __sleep()\n {\n }", "public function getHeartbeatInterval(): int\n {\n }", "public function isLimitExceeded();", "public static function requestTimeOut(){\n\n throw new \\yii\\web\\HttpException(408, 'Access token not valid', 405);\n\n }", "public function __sleep() {}", "public function __sleep() {}", "public function __sleep() {}", "public function __sleep() {}", "public function __sleep() {}", "public function __sleep() {}", "public function __sleep() {}", "public function __sleep() {}", "public function __sleep() {}", "public function __sleep() {}", "public function __sleep() {}", "public function __sleep() {}", "public function __sleep() {}", "protected function maxLoginAttempts()\n {\n return Arr::get(static::$config, 'attempts', 5);\n }", "public function getExceptions()\r\r\n {\r\r\n return $this->exceptions;\r\r\n }", "public function __construct()\n {\n $this->exceptions = new ObjectStorage();\n }", "public function __construct()\n {\n parent::__construct('Reading from the buffer timed out.');\n }", "function retry($times, callable $callback, int $sleep = 0)\n{\n $attempts = 0;\n $backoff = new Backoff($sleep);\n\n beginning:\n try {\n return $callback(++$attempts);\n } catch (Throwable $e) {\n if (--$times < 0) {\n throw $e;\n }\n\n $backoff->sleep();\n goto beginning;\n }\n}", "public function getDelay(): int;", "public function __construct() {\n\t\tparent::__construct();\n\n\t\t//Increase max execution time\n @ini_set(\"max_execution_time\", \"3600\");\n }", "function rate_limit($key, $interval, $max, $error = 'Slow down a bit, yo.')\n{\n $unit = round(time() / $interval);\n $key .= '-'.$unit;\n $count = 0;\n\n if (apcu_exists($key)) {\n $count = apcu_fetch($key);\n if ($count >= $max) {\n throw new Exception($error);\n }\n }\n\n $count++;\n apcu_store($key, $count, $interval);\n\n return $count;\n}", "function rate_limit($key, $interval, $max, $error = 'Slow down a bit, yo.')\n{\n $unit = round(time() / $interval);\n $key .= '-'.$unit;\n $count = 0;\n\n if (apcu_exists($key)) {\n $count = apcu_fetch($key);\n if ($count >= $max) {\n throw new Exception($error);\n }\n }\n\n $count++;\n apcu_store($key, $count, $interval);\n\n return $count;\n}", "public function setRateLimit($rateLimit){\n if($rateLimit > self::API_RATE_LIMIT) {\n throw new Exception('Specified rateLimit exceeds API rate limit of '.self::API_RATE_LIMIT.' requests per minute.');\n }\n \n\t\t$this->rateLimit = (int)$rateLimit;\n\t}", "#[@test, @limit(time= 0.010)]\n public function timeouts() {\n $start= gettimeofday();\n $end= (1000000 * $start['sec']) + $start['usec'] + 1000 * 50; // 0.05 seconds\n do {\n $now= gettimeofday();\n } while ((1000000 * $now['sec']) + $now['usec'] < $end);\n }", "public function retryUntil();", "public function checkTooManyFailedAttempts()\n {\n if (! RateLimiter::tooManyAttempts($this->throttleKey(), 10)) {\n return;\n }\n\n throw new Exception(__('controller.auth.login_attempts'), 401);\n }", "public function testGetRateLimits()\n {\n }", "function __construct(){\nparent::__construct();\n // Configure limits on our controller methods\n // Ensure you have created the 'limits' table and enabled 'limits' within application/config/rest.php\n $this->methods['users_get']['limit'] = 500; // 500 requests per hour per user/key\n $this->methods['users_post']['limit'] = 100; // 100 requests per hour per user/key\n $this->methods['users_delete']['limit'] = 50; // 50 requests per hour per user/key\n $this->load->model('M_main', 'M_main');\n}", "private function isRateLimitReached()\n {\n if (!$this->getRateLimit()) {\n throw new InstagramThrottleException('400 Bad Request : You have reached Instagram API Rate Limit', 400);\n }\n }", "function __construct() {\n\t\t$this->exception_method = [];\n\t\tparent::__construct();\n\t\t\n\t}", "public function setMaxTries($tries)\n {\n $this->maxTries = $tries;\n }", "public static function getDefaultOptions()\n {\n return array(\n 'cap' => 1000000,\n 'maxAttempts' => 0\n );\n }", "public function error499()\n {\n }", "public function getMaxInstanceRequestConcurrency()\n {\n return $this->max_instance_request_concurrency;\n }", "public final function __sleep()\n\t{\n\t\tthrow new Db_Exception('Serialization of Db_Connection objects are not allowed.');\n\t}", "public function error418()\n {\n }", "public function __sleep()\n\t{\n\t\tthrow new DomainException('No serializing of singleton');\n\t}", "public function getMaxHeartRate(){\n return $this->maxHeartRate;\n }", "public function __sleep()\n {\n return [];\n }", "public function __sleep()\n {\n return array('request','response','sources','contents','errors');\n }", "public function tooManyAttempts($key, $maxAttempts);", "public function failed()\n {\n // Called when the job is failing...\n }", "public function testRollbarLoggerSendMaxItems(): void\n {\n Rollbar::init([\n 'access_token' => $this->getTestAccessToken(),\n 'environment' => 'testing-php',\n 'verbose_logger' => $this->verboseLogger,\n 'max_items' => 0,\n ]);\n Rollbar::log(LogLevel::INFO, \"Testing PHP Notifier\");\n $this->assertVerboseLogContains('Maximum number of items per request has been reached.', LogLevel::WARNING);\n }", "public function __sleep(){\n\n\t}", "private function getRetryDelay() {\n return function( $numberOfRetries ) {\n return 1000 * $numberOfRetries;\n };\n }", "public function getExceptions()\n {\n return $this->throwException;\n }", "public function exponential($attempt)\n {\n if (!is_int($attempt)) {\n throw new InvalidArgumentException('Attempt must be an integer');\n }\n\n if ($attempt < 1) {\n throw new InvalidArgumentException('Attempt must be >= 1');\n }\n\n if ($this->options['maxAttempts'] > 1\n && $attempt > $this->options['maxAttempts']\n ) {\n throw new BackoffException(\n sprintf(\n \"The number of max attempts (%s) was exceeded\",\n $this->options['maxAttempts']\n )\n );\n }\n\n $wait = (1 << ($attempt - 1)) * 1000;\n\n return ($this->options['cap'] < $wait) ? $this->options['cap'] : $wait;\n }", "function __construct()\n {\n parent::__construct();\n\n // Configure limits on our controller methods\n // Ensure you have created the 'limits' table and enabled 'limits' within application/config/rest.php\n //$this->methods['users_get']['limit'] = 500; // 500 requests per hour per user/key\n //$this->methods['users_post']['limit'] = 100; // 100 requests per hour per user/key\n //$this->methods['users_delete']['limit'] = 50; // 50 requests per hour per user/key\n \n }", "public function get_retry_interval() {\n\t\treturn ( isset( $this->rule_data['retry_after_interval'] ) ) ? $this->rule_data['retry_after_interval'] : 0;\n\t}", "function tideways_last_detected_exception()\n{\n}", "public function getRefreshRate() { return 0; }", "public function getLimit() {}", "function __construct() {\n\t\tparent::__construct();\n\n\t\tini_set('max_execution_time','3600');\n\n\t\t$this->_config = $this->getConfig();\n\t\t$this->getConnectToExternalDB();\n\n\t}", "function __construct()\n {\n parent::__construct();\n\n // Configure limits on our controller methods\n // Ensure you have created the 'limits' table and enabled 'limits' within application/config/rest.php\n //$this->methods['users_get']['limit'] = 500; // 500 requests per hour per user/key\n //$this->methods['users_post']['limit'] = 100; // 100 requests per hour per user/key\n //$this->methods['users_delete']['limit'] = 50; // 50 requests per hour per user/key\n }", "public function get_maximum_tries() {\n $max = 1;\n foreach ($this->get_response_class_ids() as $responseclassid) {\n $max = max($max, $this->get_response_class($responseclassid)->get_maximum_tries());\n }\n return $max;\n }" ]
[ "0.6479138", "0.63133085", "0.6251548", "0.6179459", "0.5826497", "0.5761889", "0.5674999", "0.5671496", "0.5565558", "0.54693353", "0.53842044", "0.5364774", "0.53346825", "0.5323911", "0.53238994", "0.53211516", "0.530928", "0.53085643", "0.5296105", "0.5292388", "0.5290626", "0.5261224", "0.5243758", "0.5242384", "0.52248865", "0.5222877", "0.521618", "0.5213091", "0.5206213", "0.5204629", "0.519165", "0.5175129", "0.5173135", "0.51546264", "0.51475847", "0.51371837", "0.5132167", "0.5104738", "0.5101584", "0.5101266", "0.5096675", "0.5074543", "0.5073782", "0.5067229", "0.5064842", "0.50472623", "0.50471866", "0.50471866", "0.50471866", "0.5045319", "0.5045319", "0.5045319", "0.5045319", "0.5045319", "0.5045319", "0.5045319", "0.5045319", "0.5044556", "0.50444394", "0.50441194", "0.50412357", "0.5034391", "0.5025458", "0.50237036", "0.5023185", "0.5018994", "0.5001478", "0.5001478", "0.49988726", "0.49948803", "0.49941233", "0.49893007", "0.4969957", "0.4965335", "0.49616915", "0.49603212", "0.49597812", "0.49528837", "0.49385244", "0.49331713", "0.4931358", "0.49263167", "0.49211302", "0.4916464", "0.4909922", "0.49072242", "0.49055937", "0.49019286", "0.4899919", "0.48850036", "0.48827803", "0.4881629", "0.48654088", "0.48625627", "0.48543543", "0.48449206", "0.48246396", "0.48125914", "0.48100606", "0.48054412", "0.4796138" ]
0.0
-1
Gets as primary Information on the primary driver, possibly including frequent renter number.
public function getPrimary() { return $this->primary; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function getPrimary();", "public function getPrimary();", "function getdriverdetails()\n{\n\t//returns the details of the driver\n\t$sql=\"select * from driver_detail where status=0 order by rand() limit 1\";\n\tforeach($GLOBALS['db']->query($sql) as $row);\n\tif(isset($row))\n\t\treturn $row;\n}", "protected function _getPrimary() {\r\n\t\tif(empty($this->_primary)) {\r\n\t\t\t$primary = $this->_getGateway()->info(Zend_Db_Table_Abstract::PRIMARY);\r\n\t\t\t$this->_primary = count($primary) == 1 ? $primary[1] : $primary;\r\n\t\t}\r\n\t\t\r\n\t\treturn $this->_primary;\r\n\t}", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_dl' => $this->iid_dl);\n }\n return $this->aPrimary_key;\n }", "public function getPrimaryId()\n {\n return $this->primary_id;\n }", "public function getTablePrimary()\n {\n return $this->_primary;\n }", "function get_driver_info($idPilot)\n{\n $driver_info = get_driver_info_db($idPilot);\n return $driver_info;\n}", "public function getPrimaryProductId()\n {\n return $this->primary_product_id;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_ubi' => $this->iid_ubi, 'id_tarifa' => $this->iid_tarifa, 'year' => $this->iyear, 'id_serie' => $this->iid_serie);\n }\n return $this->aPrimary_key;\n }", "public function get_primary_row(){\r\n $result = $this->db->query(\"SHOW KEYS FROM \". $this->db->formatTableName($this->table). \"\r\n WHERE Key_name = %s\"\r\n , \"PRIMARY\");\r\n $pk = \"\";\r\n foreach ($result as $res){\r\n $pk = $res[\"Column_name\"];\r\n }\r\n return $pk;\r\n }", "abstract public function getPrimary(): array;", "public function getPrimary(){\n return $this->primaryKey;\n }", "private function _fetch_primary_key()\n {\n if($this->primaryKey == NULl)\n {\n $this->primaryKey = $this->db->query(\"SHOW KEYS FROM `\".$this->_table.\"` WHERE Key_name = 'PRIMARY'\")->row()->Column_name;\n }\n }", "function getPrimary($table);", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_nom' => $this->iid_nom, 'id_nivel' => $this->iid_nivel);\n }\n return $this->aPrimary_key;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_activ' => $this->iid_activ, 'id_asignatura' => $this->iid_asignatura, 'id_nom' => $this->iid_nom);\n }\n return $this->aPrimary_key;\n }", "function getPrimary(string $table);", "public function getPrimaryAccountNumber() {\n\t\treturn $this->primaryAccountNumber;\n\t}", "public function getPrimaryEntity()\n {\n return null !== $this->primaryEntity\n ? $this->primaryEntity[2]\n : null;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_situacion' => $this->iid_situacion);\n }\n return $this->aPrimary_key;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_region' => $this->iid_region);\n }\n return $this->aPrimary_key;\n }", "function getPrimary ( &$data = null )\n\t{\n\t\tif ( !is_null( $data ) )\n\t\t{\n\t\t\tif ( ake ( $this->_primary , $data ) )\n\t\t\t{\n\t\t\t\treturn $data[$this->_primary] ;\n\t\t\t}\n\t\t\t\n\t\t\treturn null ;\n\t\t}\n\t\t\n\t\treturn $this->_primary ;\n\t}", "public function item_primary_image()\n\t{\n\t\t$product_id = ee()->TMPL->fetch_param('product_id');\n\n\t\t$query = ee()->db\n\t\t\t->select('field_id_32')\n\t\t\t->where('channel_id', 1)\n\t\t\t->where('entry_id', $product_id)\n\t\t\t->get('channel_data');\n\n\t\treturn $query->row('field_id_32');\t\n\t}", "public function readOne($primary)\n {\n throw new NotImplementedException();\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_item' => $this->iid_item);\n }\n return $this->aPrimary_key;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_item' => $this->iid_item);\n }\n return $this->aPrimary_key;\n }", "public function index($primary_id)\n\t{\n\t\t$info = $this->findWhere(['contactinfo_id'=>$primary_id],['*']);\n\t\treturn $info;\n\t}", "public function getDriverIdentifier()\n {\n return $this->driver;\n }", "function getPrimaryPhone() {\n\t\treturn $this->getData('primaryPhone');\n\t}", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('nivel_stgr' => $this->inivel_stgr);\n }\n return $this->aPrimary_key;\n }", "public function getPrimaryName()\n\t{\n\t\tif (null === $this->_primaryName) {\n\t\t\t$this->setPrimaryName(current($this->info(self::PRIMARY)));\n\t\t}\n\t\t\n\t\treturn $this->_primaryName;\n\t}", "protected function _getPrimaryKeyValue(){\n $primaryKey = $this->_getPrimaryKey();\n return $this->{$primaryKey};\n }", "public function getPrimaryModule();", "public function driver()\n {\n return $this->hasOne(Driver::class, 'id', 'driver_id');\n }", "public function get_primary_column()\n {\n }", "function findByPrimary($primary) \n {\n $select = $this->select(self::SELECT_WITH_FROM_PART)->setIntegrityCheck(false);\n $select->where($this->_primary[1] . ' = ?', intval($primary));\n\n return $this->fetchRow($select);\n }", "public function getCurrentPrimaryContact(){\n\t\t$author = Author::select()->where('is_principal_contact', 1)->first();\n\n\t\treturn $author;\n\t}", "protected function _getPrimaryId()\n {\n return $this->_getParam($this->_getPrimaryIdKey());\n }", "public function getDriverId()\n {\n return isset($this->driverId) ? $this->driverId : null;\n }", "public function isPrimary()\n {\n return $this->isPrimary;\n }", "function getPrimaryModule() {\n\t\t$chartModel = $this->getParent();\n\t\t$reportModel = $chartModel->getParent();\n\t\t$primaryModule = $reportModel->getPrimaryModule();\n\t\treturn $primaryModule;\n\t}", "public function getDriver()\n {\n return $this->hasOne(Driver::className(), ['id_driver' => 'id_driver']);\n }", "public function getPrimaryPlatform() {}", "function getPrimaryRequest($oldPrimary)\n{\n\t$primaryReq = getIdentifier().\"\\t\".\"GET_PRIMARY\".\"\\t\".$oldPrimary;\n\treturn $primaryReq;\n}", "protected function getPrimaryData()\n {\n $this->controller['query_results'] = $this->runtime_data->resource->data;\n $this->controller['model_registry'] = $this->runtime_data->resource->model_registry;\n $this->controller['parameters'] = $this->runtime_data->resource->parameters;\n\n if (isset($this->plugin_data->render->extension->parameters)) {\n\n $hold_parameters = $this->plugin_data->render->extension->parameters;\n\n if (is_array($hold_parameters) && count($hold_parameters) > 0) {\n $this->getPrimaryDataExtensionParameters($hold_parameters);\n }\n }\n\n return $this;\n }", "function getMajor() {\n\t\treturn $this->getInfo('Major');\n\t}", "abstract public function getPrimaryModel();", "function fetchRecordInfo($identifier) {\n $db_obj = new db_class();\n $primary_key = $db_obj->getPrimaryKey($this->table_title);\n $sql = 'SELECT * FROM ' . $this->table_title . ' WHERE ' . $primary_key . '=?';\n \n $keyTypeHash = $db_obj->columnTypeHash($this->table_title);\n $keyType = $keyTypeHash[$this->primary_key];\n $db_table = $db_obj->simpleOneParamRequest($sql, $keyType, $identifier);\n $db_obj->closeDB();\n \n return $db_table[0];\n }", "public function isPrimary()\n {\n return static::MODE_PRIMARY === $this->mode;\n }", "private function _fetch_table_primary_key()\n {\n if ($this->primary_key == null) {\n $this->primary_key = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))) . '_id';\n }\n }", "private function _fetch_table_primary_key()\n {\n if ($this->primary_key == null) {\n $this->primary_key = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))) . '_id';\n }\n }", "protected function _getPrimaryKeyAttributes(){\n\t\treturn ActiveRecordMetaData::getPrimaryKeys($this->_source, $this->_schema);\n\t}", "function get_primary(){\n //\n //filter all the columns of this entity and remain with the primary columnn \n foreach($this->entity->columns as $col) {\n //\n //return only the primary \n if ( $col->type=='primary'){\n //\n //return an sql column\n $column= new column($col); \n }\n }\n return $column;\n \n }", "function get_primary(){\n //\n //filter all the columns of this entity and remain with the primary columnn \n foreach($this->entity->columns as $col) {\n //\n //return only the primary \n if ( $col->type=='primary'){\n //\n //return an sql column\n $column= new column($col); \n }\n }\n return $column; \n }", "public function getId() {\n\t\t$this->getDriver()->getId();\n\t}", "public function driver(){\n\n\t\t// belongsTo(RelatedModel, foreignKey = driver_id, keyOnRelatedModel = id)\n\t\treturn $this->belongsTo(Driver::class);\n\t}", "public function find($primary)\n {\n if (isset($this->models[$primary])) {\n return $this->models[$primary];\n }\n\n return;\n }", "public function getFunctionPrimary() \n\t{\n\t\treturn $this->function_primary;\n\t}", "public function driver()\n {\n return $this->belongsTo(Driver::class, 'driver_assigned_uuid');\n }", "public function primary_key()\n\t{\n\t\treturn $this->primary_key;\n\t}", "function getManufacturerTitle() {\n \tif ($this->getManufacturerUid()) {\n \t\treturn $this->conn_db->getManufacturerTitle($this->getManufacturerUid());\n \t}\n \t\n }", "public function primaryProduct() : object\n {\n return $this->hasOne(Species::class, 'id');\n }", "public function getProfessionalInfo(){\r\n\t return $this->_professionalInfo;\r\n\t}", "public function getPrimaryUid() {\n return $this->get(self::PRIMARY_UID);\n }", "public function getPrimaryImageOfPage()\n {\n return $this->primaryImageOfPage;\n }", "protected function get_primary_column_name()\n {\n }", "protected function get_primary_column_name()\n {\n }", "protected function get_primary_column_name()\n {\n }", "protected function findFromPrimary()\n {\n $this->initialiseFromPrimary();\n\n foreach ($this->from as $key => $from) {\n if ($from->primary === true) {\n return $key;\n }\n }\n\n return false;\n }", "public function getPrimaryItemName()\n {\n return $this->primaryItemName;\n }", "public function getT_Major(){\n\t\t\t \t$sql=\"select distinct(major_name) from major\";\n\t\t\t \t$this->openDB();\n\t\t\t \t$this->prepareQuery($sql);\n\t\t\t \t$result=$this->executeQuery();\n\t\t\t \t\n\t\t\t \treturn $result;\t \n\t\t\t\t}", "public function findByPk($primary)\n {\n $stmt = $this->Adapter->prepare(\"SELECT * FROM $this->table WHERE $this->primaryName=:id\");\n $stmt->execute(['id' => $primary]);\n return $stmt->fetch($this->pdoFetch);\n }", "public function internal(){\n\n\t\t// belongsTo(RelatedModel, foreignKey = driver_id, keyOnRelatedModel = id)\n\t\treturn $this->belongsTo(Driver::class, 'internal_driver_id');\n\t}", "public function getDriver()\n {\n return $this->_list->getDriver();\n }", "private function getProductInformation()\r\n {\r\n \r\n // if product is repairable get the repair agents details as well as products and suppliers\r\n if ($this->claimType == \"repair-warranty\" || $this->claimType == \"repair-no-warranty\" || \r\n $this->claimType == \"repair-no-transaction\")\r\n {\r\n $result = mysql_query( \"SELECT *\r\n FROM ProductSupplierRepairAgent_VIEW\r\n WHERE Keycode = $this->keycode\");\r\n \r\n $this->keycodeResult = mysql_fetch_array($result);\r\n }\r\n // if the product is not repairable grab the product information and supplier information only\r\n else\r\n {\r\n $result = mysql_query( \"SELECT *\r\n FROM ProductSupplier_VIEW\r\n WHERE Keycode = $this->keycode\");\r\n \r\n $this->keycodeResult = mysql_fetch_array($result);\r\n }\r\n }", "public function getPrimaryKey() {\n\t\treturn $this->_key_primary->name;\n\t}", "public function getGeneralInformation() {\n\t\tif (!$this->hasDetails) {\n\t\t\t$this->injectDetails();\n\t\t}\n\t\treturn $this->generalInformation;\n\t}", "protected function _getPrimaryIdKey()\n {\n if ($this->_primaryIdKey == null) {\n $info = $this->_getTable()->info();\n\n $this->_primaryIdKey = (string) array_shift($info[Zend_Db_Table_Abstract::PRIMARY]);\n }\n\n return $this->_primaryIdKey;\n }", "function hybrid_get_primary() {\n\tget_sidebar( 'primary' );\n}", "function get_pri_par_id($alt_id){\n\t\t$this->db->where('parentAlt_uacc_id',$alt_id);\n\t\t$this->db->select('parentPrimary_uacc_id');\n\t\t$qres=$this->db->get(TWELL_FAM_PROF_TBL);\n\t\tif ($qres->num_rows()==1) {\n\t\t\t$row=$qres->row();\n\t\t\t//$this->firephp->log(\"Pri id= \".$row->parentPrimary_uacc_id);\n\t\t\treturn ($row->parentPrimary_uacc_id);\n\t\t}else{\n\t\t\t$this->firephp->log(\"Could not retrieve pri_parent user id\");\n\t\t\treturn 0;\n\t\t}\n\t}", "public function info() {\n\t\t\n\t\t$data = array(\n\t\t\t'Driver'\t\t\t=> 'DRIVER_NAME',\n\t\t\t'Client version'\t=> 'CLIENT_VERSION',\n\t\t\t'Server version'\t=> 'SERVER_VERSION',\n\t\t\t'Connection'\t\t=> 'CONNECTION_STATUS'\n\t\t);\n\n\t\tforeach ($data as $key => $value) {\n\t\t\t\n\t\t\t$info[$key] = $this->pdo->getAttribute(constant('PDO::ATTR_' . $value));\n\t\t\t\n\t\t}\n\n\t\treturn $info;\n\t\t\n\t}", "function &getPrimaryInvestigator() {\n foreach ($this->investigators as $investigator) {\n if ($investigator->getPrimaryContact() == true) {\n return $investigator;\n }\n }\n\t\treturn null;\n\t}", "public function get_real_primarygroup()\n {\n return $this->_real_primarygroup;\n }", "public function IsPrimary() {\n\n return $this->GetOption('Primary');\n }", "public function getIdentification()\n {\n return $this->identification;\n }", "public function getInformation();", "abstract function getPrimaryKey();", "function MasterByID($ID)\r\n\t{\r\n\t\t$sql=\"select ID,Name from tbl_PD where ID=$ID\";\r\n\t\t //echo $sql;\r\n\t\t$getInfo= $this->runQuery($sql);\r\n\t\treturn $getInfo;\r\n\t}", "public function getInfoId()\n {\n return $this->info_id;\n }", "public function getPrimaryPhoto()\n {\n // gets the first photo related to this event\n $primary = $this->photos()->where('photos.is_primary', '=', '1')->first();\n\n return $primary;\n }", "public function getInfoAdvert() {\n $this->carsdata = $this->generateCarsInfo();\n $this->iduser = $this->getId();\n return $this;\n }", "function _lookup_primary_key_column()\n {\n $key = $this->_wpdb()->get_row(\"SHOW INDEX FROM {$this->get_table_name()} WHERE Key_name='PRIMARY'\", ARRAY_A);\n if (!$key) {\n throw new Exception(\"Please specify the primary key for {$this->get_table_name()}\");\n }\n return $key['Column_name'];\n }", "private function _get_info() {\n\n\t\t/* Grab the basic information from the catalog and return it */\n\t\t$sql = \"SELECT * FROM `access_list` WHERE `id`='\" . Dba::escape($this->id) . \"'\";\n\t\t$db_results = Dba::query($sql);\n\n\t\t$results = Dba::fetch_assoc($db_results);\n\n\t\treturn $results;\n\n\t}", "abstract protected function getDriver();", "function getPrimaryKeys() {\n \treturn $this->db->getPrimaryKeys($this->table);\n }", "public function getPrimaryKey() {\n return $this->_data->getDeepValue('indexes/primary/columns/0', null);\n }" ]
[ "0.67730075", "0.67360365", "0.6517551", "0.61848664", "0.61110145", "0.6078225", "0.6074325", "0.6014071", "0.60076785", "0.6005415", "0.6000305", "0.59634775", "0.59570676", "0.5933791", "0.59272826", "0.58831364", "0.5844108", "0.58029664", "0.58020514", "0.5799557", "0.57988495", "0.57968456", "0.57968384", "0.5791821", "0.57692087", "0.5763709", "0.5763709", "0.5735297", "0.5734766", "0.5719131", "0.57009506", "0.56833935", "0.5633086", "0.56228817", "0.55985105", "0.55816174", "0.5574345", "0.5570239", "0.55552685", "0.55525434", "0.5522508", "0.552222", "0.5509437", "0.55066156", "0.55061406", "0.54970634", "0.54486924", "0.54442817", "0.54353166", "0.54315245", "0.5420199", "0.5420199", "0.5407916", "0.53996354", "0.5388658", "0.537882", "0.5378785", "0.53738284", "0.5367224", "0.5364609", "0.5361301", "0.53386736", "0.5333417", "0.53176624", "0.531352", "0.5307615", "0.5302395", "0.5302395", "0.5301444", "0.52964914", "0.52872264", "0.5282289", "0.5281916", "0.5275099", "0.5257329", "0.5240563", "0.522933", "0.52208716", "0.5207152", "0.52042866", "0.5198247", "0.51914376", "0.51858234", "0.51831806", "0.517919", "0.5175935", "0.51747507", "0.51740956", "0.51697296", "0.51670706", "0.51562077", "0.51551557", "0.5149277", "0.51433563", "0.5137386", "0.5132807", "0.5132744" ]
0.6587363
5
Sets a new primary Information on the primary driver, possibly including frequent renter number.
public function setPrimary(\Devlabs91\TravelgateNotify\Models\Ota\CustomerPrimaryAdditionalType\PrimaryAType $primary) { $this->primary = $primary; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setPrimary($author) \r\n {\r\n $CI = &get_instance();\r\n if ($author == null) return;\r\n if ($author->synonym_of=='0') return;\r\n $syns = $this->getSynonymsForAuthor($author->author_id, false);\r\n $prim = $this->getByID($author->synonym_of);\r\n //for new primary: set synonym-link to 0\r\n $author->synonym_of = '0';\r\n $author->update();\r\n foreach ($syns as $syn)\r\n {\r\n //for all other synonyms: set link to new primary and update\r\n if ($syn->author_id != $author->author_id)\r\n {\r\n $syn->synonym_of = $author->author_id;\r\n $syn->update();\r\n }\r\n }\r\n //and finaly, set old primary as alias for new primary (cannot be done earlier, since primary authors cannot be set to be an alias)\r\n $prim->synonym_of = $author->author_id;\r\n $prim->update();\r\n\r\n }", "public function makePrimary()\n {\n $this->primary = 1;\n $this->save();\n self::where('church_id', $this->church_id)\n ->where('id', '!=', $this->id)\n ->update(['primary' => 0]);\n }", "public function setPrimary($primary)\n {\n $this->primary = $primary;\n return $this;\n }", "public function setPrimary($primaryCol){\n $this->primaryKey=$primaryCol;\n return $this;\n }", "function SetPrimaryregion(&$primaryregion)\n\t{\n\t\t$this->primaryregionId = $primaryregion->primaryregionId;\n\t}", "protected function setPrimaryIdentifier($id)\n {\n $this->parameters[$this->primaryIdentifier] = $id;\n }", "public function set_primary_term( $new_primary_term ) {\n\t\tupdate_post_meta( $this->post_ID, WPSEO_Meta::$meta_prefix . 'primary_' . $this->taxonomy_name, $new_primary_term );\n\t}", "protected function setReadPreferenceToPrimary()\n {\n // Set db preference\n /** @var ReadPreference $dbReadPref */\n $dbReadPref = $this->getDatabase()->__debugInfo()['readPreference'];\n\n $dbPref = $dbReadPref->getMode();\n $dbTagsets = $dbReadPref->getTagsets();\n\n $this->originalDbReadPreference = $this->db->__debugInfo()['readPreference']->getMode();\n if ($dbPref !== ReadPreference::RP_PRIMARY) {\n $this->db = $this->db->withOptions(array('readPreference' => new ReadPreference(ReadPreference::RP_PRIMARY, $dbTagsets)));\n }\n\n /** @var ReadPreference $collReadPref */\n $collReadPref = $this->getCollection()->__debugInfo()['readPreference'];\n $collPref = $collReadPref->getMode();\n $collTagsets = $collReadPref->getTagsets();\n\n // Set collection preference\n $this->originalCollectionReadPreference = $collPref;\n if ($collPref !== ReadPreference::RP_PRIMARY) {\n $this->collection = $this->collection->withOptions(array('readPreference' => new ReadPreference(ReadPreference::RP_PRIMARY, $collTagsets)));\n }\n }", "public function __construct(int $primaryKeyValue) {\n parent::__construct($primaryKeyValue);\n if(empty($this->avatar)) {\n $this->avatar = \"default.png\";\n }\n if(!is_object($this->twofactor)) {\n $value = array(\n \"use\" => false,\n \"code\" => \"\",\n \"backupcodes\" => []\n );\n $value = (object) $value;\n $this->twofactor = $value;\n }\n }", "public function setPrimarySic($primarySic)\n {\n $this->primarySic = $primarySic;\n return $this;\n }", "public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_ubi') && $val_id !== '') $this->iid_ubi = (int)$val_id;\n if (($nom_id == 'id_tarifa') && $val_id !== '') $this->iid_tarifa = (int)$val_id;\n if (($nom_id == 'year') && $val_id !== '') $this->iyear = (int)$val_id;\n if (($nom_id == 'id_serie') && $val_id !== '') $this->iid_serie = (int)$val_id;\n }\n }\n }", "function setPrimaryKey($pkey_name){\n\n\t\t$this->pkey = $pkey_name;\n\n\t}", "function setPrimaryPhone($primaryPhone) {\n\t\treturn $this->setData('primaryPhone', $primaryPhone);\n\t}", "public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_nom') && $val_id !== '') $this->iid_nom = (int)$val_id;\n if (($nom_id == 'id_nivel') && $val_id !== '') $this->iid_nivel = (int)$val_id;\n }\n }\n }", "public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_activ') && $val_id !== '') $this->iid_activ = (int)$val_id;\n if (($nom_id == 'id_asignatura') && $val_id !== '') $this->iid_asignatura = (int)$val_id;\n if (($nom_id == 'id_nom') && $val_id !== '') $this->iid_nom = (int)$val_id;\n }\n }\n }", "public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_dl') && $val_id !== '') $this->iid_dl = $val_id;\n }\n }\n }", "public function ifOnlyMakePrimary()\n {\n if (self::where('church_id', $this->church_id)->count() === 1) {\n $this->primary = 1;\n $this->save();\n };\n }", "public function setPrimary(array $primaryColumns = null)\n {\n $this->primaryColumns = $primaryColumns;\n return $this;\n }", "private function _setPrimaryValue() {\n try {\n $this->SNS_KEY = 'AKIAIHQJKWDU4LQVV7NA';\n $this->SNS_SECRET = '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';\n $this->SNS_REGION = 'us-east-1';\n\n /*\n * SET ARN VALUES\n * STEP 1.1\n */\n $this->_setARN();\n } catch (Exception $ex) {\n throw new Exception('Error in _setPrimaryValue function - ' . $ex);\n }\n }", "abstract public function getPrimary();", "public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_region') && $val_id !== '') $this->iid_region = (int)$val_id;\n }\n }\n }", "public function setPrimaryKey($primaryKey)\r\n\t{\r\n\t\t$this->primaryKey = $primaryKey;\r\n\t}", "public function set_primary_key_field($primary_key_field = NULL)\n\t{\n\t\t$this->_primary_key_field = $primary_key_field;\n\t}", "public function __construct($_ = null, $primary = null)\n {\n $this\n ->set_($_)\n ->setPrimary($primary);\n }", "public function getPrimaryId()\n {\n return $this->primary_id;\n }", "public function preparePrimaryKeyName()\n {\n $this->primaryKeyName = $this->getOption('primary');\n\n if (empty($this->primaryKeyName)) {\n $this->primaryKeyName = 'id';\n }\n }", "public function setFunctionPrimary($func_primary) \n\t{\n\t\t$this->function_primary = $func_primary;\n\t}", "public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'nivel_stgr') && $val_id !== '') $this->inivel_stgr = (int)$val_id;\n }\n }\n }", "public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_item') && $val_id !== '') $this->iid_item = (int)$val_id; \n }\n }\n }", "public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_item') && $val_id !== '') $this->iid_item = (int)$val_id; \n }\n }\n }", "public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_situacion') && $val_id !== '') $this->iid_situacion = (int)$val_id; \n }\n }\n }", "public function getPrimary()\n {\n return $this->primary;\n }", "public function getPrimary()\n {\n return $this->primary;\n }", "public function getPrimary()\n {\n return $this->primary;\n }", "public function getPrimary()\n {\n return $this->primary;\n }", "function assignSingle()\n {\n /* If id == 0, we shall create a new record. */\n if ($this->id)\n {\n /* Query data of this person. */\n $this->dbQuerySingle();\n }\n else\n {\n /* Initialize default values. */\n $this->_setDefaults();\n /* Find out the first non-standard candidate id, that is, an id lower than 50000. */\n $rs = $this->dbQuery(\"SELECT max(id)+1 AS id FROM student WHERE id<50000\");\n if (!empty($rs))\n {\n $this->id = $this->rs['id'] = $rs[0]['id'];\n }\n }\n $this->assign_rs();\n }", "public function getPrimaryProductId()\n {\n return $this->primary_product_id;\n }", "private function _fetch_table_primary_key()\n {\n if ($this->primary_key == null) {\n $this->primary_key = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))) . '_id';\n }\n }", "private function _fetch_table_primary_key()\n {\n if ($this->primary_key == null) {\n $this->primary_key = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))) . '_id';\n }\n }", "public function getPrimary();", "public function readOne($primary)\n {\n throw new NotImplementedException();\n }", "public function primary(): self\n {\n $this->query = \" PRIMARY KEY \";\n return $this;\n }", "private function _fetch_primary_key()\n {\n if($this->primaryKey == NULl)\n {\n $this->primaryKey = $this->db->query(\"SHOW KEYS FROM `\".$this->_table.\"` WHERE Key_name = 'PRIMARY'\")->row()->Column_name;\n }\n }", "function update($primary){\n $this->primary=$primary;\n //\n //create the update\n $update= new update($this, $primary);\n //\n //Execute the the insert\n $update->query($this->entity->get_parent());\n }", "public function setPrimaryName($name)\n\t{\n\t\t$this->_primaryName = $name;\n\t\treturn $this;\n\t}", "public function getPrimary(){\n return $this->primaryKey;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_ubi' => $this->iid_ubi, 'id_tarifa' => $this->iid_tarifa, 'year' => $this->iyear, 'id_serie' => $this->iid_serie);\n }\n return $this->aPrimary_key;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_dl' => $this->iid_dl);\n }\n return $this->aPrimary_key;\n }", "public function setPrimary(column &$col) {\n\t\t$name = $col['name'];\n\t\t$this->$name->primary = true;\n\t\treturn $this->_alter();\n\t}", "public function setIdentifier(){\n\n \t$this->fileIdentifier = $this->getIdentifier();\n }", "public function setPrimary($keyList)\n {\n // Check the format of the values, converting string to array.\n $keyList = $this->configureValidate('primary', $keyList);\n\n // Make sure all the properties are defined.\n $badPropName = $this->checkPrimary($keyList);\n if ($badPropName !== '') {\n throw new \\RuntimeException(\n $badPropName . ' is not a valid primary key in segment'\n . $this->name . '.'\n );\n }\n $this->primary = $keyList;\n return $this;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_nom' => $this->iid_nom, 'id_nivel' => $this->iid_nivel);\n }\n return $this->aPrimary_key;\n }", "public function setPrimaryKey($primaryKey);", "public function setPrimarySicDesc($primarySicDesc)\n {\n $this->primarySicDesc = $primarySicDesc;\n return $this;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_activ' => $this->iid_activ, 'id_asignatura' => $this->iid_asignatura, 'id_nom' => $this->iid_nom);\n }\n return $this->aPrimary_key;\n }", "protected function _getPrimary() {\r\n\t\tif(empty($this->_primary)) {\r\n\t\t\t$primary = $this->_getGateway()->info(Zend_Db_Table_Abstract::PRIMARY);\r\n\t\t\t$this->_primary = count($primary) == 1 ? $primary[1] : $primary;\r\n\t\t}\r\n\t\t\r\n\t\treturn $this->_primary;\r\n\t}", "public function setAsPrimaryColumn(): self;", "public function copyAttributesToKey()\n\t{\n\t\t$primarykey = $this->factory->getPrimarykey ;\n\t\tforeach( $primarykey->fields as $n=>$field )\n\t\t{\n\t\t\t$this->key[$field] = $this->$field ;\n\t\t}\n\t}", "public function set_real_primarygroup($_real_primarygroup)\n {\n $this->_real_primarygroup = $_real_primarygroup;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_situacion' => $this->iid_situacion);\n }\n return $this->aPrimary_key;\n }", "protected function getPrimaryData()\n {\n $this->controller['query_results'] = $this->runtime_data->resource->data;\n $this->controller['model_registry'] = $this->runtime_data->resource->model_registry;\n $this->controller['parameters'] = $this->runtime_data->resource->parameters;\n\n if (isset($this->plugin_data->render->extension->parameters)) {\n\n $hold_parameters = $this->plugin_data->render->extension->parameters;\n\n if (is_array($hold_parameters) && count($hold_parameters) > 0) {\n $this->getPrimaryDataExtensionParameters($hold_parameters);\n }\n }\n\n return $this;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_region' => $this->iid_region);\n }\n return $this->aPrimary_key;\n }", "public function setColumnKey($name = '', $primary = 0){\n if(!empty($name)){\n foreach($this->_cols as $key => $element){\n if($element['name'] == $name){\n $this->_cols[$key]['primary'] = $primary;\n }\n }\n }\n }", "protected function discoverPrimaryKey(): void\n {\n if ($this->primaryKey !== null) {\n return;\n }\n\n $key = auth()->id();\n if ($key === null) {\n $key = session()->getId();\n }\n\n $this->setPrimaryKey($key);\n }", "protected function initialiseFromPrimary()\n {\n foreach ($this->from as $key => $from) {\n if (isset($from->primary)) {\n } else {\n $this->from[$key]->primary = false;\n }\n }\n\n return $this;\n }", "function __construct(record $r, $primary){\n //\n //Get the primary column \n $this->column_primary= $this->get_primary();\n //\n //This is the value from which we create a where \n $this->primary_value=$primary;\n //\n //Get the condition for the update \n $wheres= new binary($this->column_primary, \"=\", new literal($primary));\n //\n //Create the parent\n parent::__construct($r, $wheres);\n }", "public function getPrimaryAccountNumber() {\n\t\treturn $this->primaryAccountNumber;\n\t}", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_item' => $this->iid_item);\n }\n return $this->aPrimary_key;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_item' => $this->iid_item);\n }\n return $this->aPrimary_key;\n }", "public function setPrimaryProductId($var)\n {\n GPBUtil::checkString($var, True);\n $this->primary_product_id = $var;\n\n return $this;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('nivel_stgr' => $this->inivel_stgr);\n }\n return $this->aPrimary_key;\n }", "public function setPrimaryUid($value) {\n return $this->set(self::PRIMARY_UID, $value);\n }", "function getPrimaryRequest($oldPrimary)\n{\n\t$primaryReq = getIdentifier().\"\\t\".\"GET_PRIMARY\".\"\\t\".$oldPrimary;\n\treturn $primaryReq;\n}", "public function makePrimary()\n\t{\n\t\t$this->mediable->media->each(function ($m) {\n\t\t\tupdater(Media::class)->with(['primary' => (int) false])->update($m);\n\t\t});\n\n\t\t// Now set this one as the primary\n\t\t$this->update(['primary' => (int) true]);\n\n\t\treturn $this;\n\t}", "public function setPrimaryAttorney(Lpa $lpa, AbstractAttorney $primaryAttorney, $primaryAttorneyId)\n {\n $result = $this->executePut(sprintf('/v2/user/%s/applications/%s/primary-attorneys/%s', $this->getUserId(), $lpa->id, $primaryAttorneyId), $primaryAttorney->toArray());\n\n if (is_array($result)) {\n // Marshall the data into the required data object and set it in the LPA\n\n // Insert the updated attorney at the correct ID\n foreach ($lpa->document->primaryAttorneys as $idx => $primaryAttorney) {\n if ($primaryAttorney->id == $primaryAttorneyId) {\n if ($primaryAttorney instanceof Human) {\n $lpa->document->primaryAttorneys[$idx] = new Human($result);\n } else {\n $lpa->document->primaryAttorneys[$idx] = new TrustCorporation($result);\n }\n\n break;\n }\n }\n\n return true;\n }\n\n return false;\n }", "function setEditableManufacturerID($epmid)\n {\n// if ($this->isCorrectManufacturerId($epmid))\n// {\n $this->editableManufacturerID = $epmid;\n// }\n }", "function setIdentifier($val) {\n $this->identifier = $this->updateDB('identifier', $val);\n }", "private function alterPrimaryKey()\n {\n if(is_array($this->primaryKeyValue)){\n // check for auto increment\n $autoIncrement = $this->primaryKeyValue['auto_increment'];\n if($autoIncrement){\n $increment = \" AUTO_INCREMENT, AUTO_INCREMENT=1\";\n }\n\n $this->addCollectionQuery(\n \"\n --\n -- AUTO_INCREMENT for table `{$this->tableName}`\n --\n ALTER TABLE `{$this->tableName}`\n MODIFY {$this->createColumnDefinition($this->primaryKeyValue)}{$increment};\n \"\n );\n }\n }", "public function setPrimaryBundleId(?string $value): void {\n $this->getBackingStore()->set('primaryBundleId', $value);\n }", "function setPrimaryKey($inKey) {\n\t\tlist($ID) = explode(self::PRIMARY_KEY_SEPARATOR, $inKey);\n\t\t$this->setID($ID);\n\t}", "function setPrimaryKey($inKey) {\n\t\tlist($ID) = explode(self::PRIMARY_KEY_SEPARATOR, $inKey);\n\t\t$this->setID($ID);\n\t}", "public function setPrimaryId($value) {\n if (empty($value))\n throw new InvalidArgumentException('An primaryId must have a value');\n $this->primaryId = $value;\n return $this;\n }", "public function setPrimaryKey($keys)\n {\n $this->setPhadtype($keys[0]);\n $this->setPhadid($keys[1]);\n $this->setPhadsubid($keys[2]);\n $this->setPhadsubidseq($keys[3]);\n $this->setPhadcont($keys[4]);\n }", "public function setPrimaryKey($key)\n\t{\n\t\t$this->setCoParticipante($key);\n\t}", "private function setInfoKeys() {\n\t\tif (!empty(self::$s_aInfoKeys)) {\n\t\t\treturn;\n\t\t}\n\n\t\tself::$s_aInfoKeys = array(\n\t\t\t'ID', 'ProfileID', 'Nickname', 'Level', 'TempLevel',\n\t\t\t'IP', 'JoinTime', 'LogInTime',\n\t\t);\n\t}", "function set_preorderID($preorderID)\n\t{\n\t\tglobal $db;\n\n\t\t$this->preorderID = $preorderID;\n\n\t\t// pull in the preorder information\n\t\t$this->info = array();\n\t\t$sql = \"SELECT * FROM preorders WHERE pre_preorderID=$preorderID\";\n\t\t$result = mysql_query($sql,$db);\n\t\t$this->error->mysql(__FILE__,__LINE__);\n\t\t$row = mysql_fetch_assoc($result);\n\t\t// remove 'pre_'\n\t\tif (is_array($row))\n\t\t{\n\t\t\twhile (list($key,$val) = each($row)) { $this->info[substr($key,4)] = $val; }\n\t\t}\n\n\t\t// pull in the preorder customers\n\t\t$this->customers = array();\n\t\t$sql = \"SELECT * FROM preorder_customers WHERE prc_preorderID=$preorderID ORDER BY prc_lname,prc_fname\";\n\t\t$result = mysql_query($sql,$db);\n\t\t$this->error->mysql(__FILE__,__LINE__);\n\t\twhile ($row = mysql_fetch_assoc($result)) { $this->customers[] = $row; }\n\n\t\t// pull in the item information\n\t\t$this->set_itemID($this->info['itemID']);\n\t}", "public function autoSet()\n {\n $this->setInfo();\n $this->setParams();\n $this->extractRoutingInfo();\n }", "protected function _getPrimaryId()\n {\n return $this->_getParam($this->_getPrimaryIdKey());\n }", "public function setPublicShareKeyIDAndMasterKeyId() {\n\t\t$this->publicShareKeyId = $this->config->getAppValue('encryption',\n\t\t\t'publicShareKeyId');\n\t\tif (is_null($this->publicShareKeyId) || ($this->publicShareKeyId === '')) {\n\t\t\t$this->publicShareKeyId = 'pubShare_' . substr(md5(time()), 0, 8);\n\t\t\t$this->config->setAppValue('encryption', 'publicShareKeyId', $this->publicShareKeyId);\n\t\t}\n\n\t\t$this->masterKeyId = $this->config->getAppValue('encryption',\n\t\t\t'masterKeyId');\n\t\tif (is_null($this->masterKeyId) || ($this->masterKeyId === '')) {\n\t\t\t$this->masterKeyId = 'master_' . substr(md5(time()), 0, 8);\n\t\t\t$this->config->setAppValue('encryption', 'masterKeyId', $this->masterKeyId);\n\t\t}\n \t}", "protected function _getPrimaryKeyValue(){\n $primaryKey = $this->_getPrimaryKey();\n return $this->{$primaryKey};\n }", "public function getTablePrimary()\n {\n return $this->_primary;\n }", "function getPrimaryPhone() {\n\t\treturn $this->getData('primaryPhone');\n\t}", "function getPrimary($table);", "public function setPrimaryImageOfPage($value)\n {\n $this->primaryImageOfPage = $value;\n }", "protected function setFromPrimary($key)\n {\n $this->resetFromPrimary();\n\n $this->from[$key]->primary = true;\n\n return $this;\n }", "public function map($data = array(), $primary = true) {\n\t\tif ($primary) {\n\t\t\tif (!isset($data[$this->_alias])) {\n\t\t\t\tthrow new Exception('No data set');\n\t\t\t}\n\t\t\t$_data = $data[$this->_alias];\n\t\t\tunset($data[$this->_alias]);\n\t\t\t$this->set($_data);\n\t\t} else {\n\t\t\t$this->set($data);\n\t\t}\n\n\t\treturn $this;\n\t}", "public function isPrimary()\n {\n return static::MODE_PRIMARY === $this->mode;\n }", "public function setPrimaryKey($key)\n {\n $this->setPothnbr($key);\n }", "public function setPrimaryNaics($primaryNaics)\n {\n $this->primaryNaics = $primaryNaics;\n return $this;\n }", "public function setPrimarySic8($primarySic8)\n {\n $this->primarySic8 = $primarySic8;\n return $this;\n }" ]
[ "0.62978494", "0.62535596", "0.6222284", "0.60762703", "0.58899367", "0.58527607", "0.58195364", "0.57726216", "0.57636577", "0.5734198", "0.5694681", "0.56925744", "0.56839484", "0.5653432", "0.5647435", "0.56250393", "0.5603177", "0.55805224", "0.55804145", "0.5566726", "0.5556591", "0.55476487", "0.5526068", "0.55231434", "0.55221206", "0.55088806", "0.548801", "0.54873407", "0.54872376", "0.54872376", "0.54870564", "0.5455676", "0.5455676", "0.5455676", "0.5455676", "0.5446632", "0.5435797", "0.5424787", "0.5424787", "0.5382133", "0.5379328", "0.53765875", "0.53661853", "0.5362395", "0.5357675", "0.5357564", "0.5354191", "0.53539133", "0.5351798", "0.5351721", "0.53073764", "0.52668345", "0.52636355", "0.52536243", "0.5251768", "0.5244112", "0.52421016", "0.5227381", "0.5212469", "0.51707876", "0.5167834", "0.5164789", "0.5152563", "0.51378345", "0.51250964", "0.5124808", "0.512321", "0.5095636", "0.5095636", "0.5086936", "0.5054529", "0.5047137", "0.50365746", "0.5034893", "0.50168437", "0.5014194", "0.5013628", "0.50042987", "0.49692953", "0.49654707", "0.49654707", "0.49600703", "0.49524185", "0.49505156", "0.49493533", "0.49480498", "0.49350682", "0.49295974", "0.49283785", "0.49188665", "0.49037552", "0.4883824", "0.4883559", "0.48783493", "0.48742422", "0.48735386", "0.48700505", "0.4869767", "0.48622915", "0.4853425" ]
0.53636384
43
Adds as additional Information on additional driver(s), possibly including frequent renter number.
public function addToAdditional(\Devlabs91\TravelgateNotify\Models\Ota\CustomerPrimaryAdditionalType\AdditionalAType $additional) { $this->additional[] = $additional; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getdriverdetails()\n{\n\t//returns the details of the driver\n\t$sql=\"select * from driver_detail where status=0 order by rand() limit 1\";\n\tforeach($GLOBALS['db']->query($sql) as $row);\n\tif(isset($row))\n\t\treturn $row;\n}", "public function extraInfo();", "function on_add_extra()\r\n\t{\r\n\t}", "public function addDriver(DriverInterface $driver)\n {\n $this->drivers[$driver->getName()] = $driver;\n }", "function get_driver_info($idPilot)\n{\n $driver_info = get_driver_info_db($idPilot);\n return $driver_info;\n}", "private function XML_addScanDetails() {\n\t\t$scanDetailsEntity = $this->xmlHandler->createElement('scandetails');\n\n\t\t// If we have report about XSS test, then needs to add the XML test details.\n\t\tif($this->XSSReport !== false) {\n\n\t\t\t$xssTestDetailsEntity = $this->XML_getXSSTestDetails();\n\t\t\t$scanDetailsEntity->appendChild( $xssTestDetailsEntity );\n\t\t}\n\t\t\n\t\t// If we have report abous SQL Injection test, then we needs to add the SQL Inejction test details.\t\n\t\tif($this->SQLInjectionReport !== false) {\n\n\t\t\t$sqlinjTestDetailsEntity = $this->XML_getSQLInjectionTestDetails();\n\t\t\t$scanDetailsEntity->appendChild( $sqlinjTestDetailsEntity );\n\t\t}\n\n\t\t// Appends details about scan into the root xml-block.\n\t\t$this->xmlRoot->appendChild($scanDetailsEntity);\n\t}", "function driverlist_show($type, $iam){\n echo(\"<h4><img src='images/asterisk_orange.png' alt=''/> <strong>ODBC Drivers Configuration:</strong></h4>\");\n echo (\"<h5><i>This feature allows you to add/enable a database driver which you can use with the ODBC API. You must make sure that this driver lib (.so file) is already installed on your server and can be used to communicate with UnixODBC.</i></h5>\");\n echo(\"<img src='images/add.png' alt=''/>\");\n echo \"<i><a id='\".($sel==''?'current':'std').\"' \";\n echo \"href='config.php?type={$type}&amp;display={$iam}&amp;action=driveradd'>\"._(\" Add Your New Custom Driver\").\"</a></i>\";\n //echo (\"</br>\");\n echo\"</br>\n <table border = 1>\n <tr>\n <th align='center'>Name</th>\n <th>Driver</th>\n <th align='center'>Enabled</th>\n <th align='center'>Notice</th>\n </tr>\";\n\n //get the list of paging groups\n $driverlist = odbcdriver_list();\n if ($driverlist) {\n foreach ($driverlist as $driver) {\n $display = true;\n if ($driver[1] == 'PostgreSQL' || $driver[1] == 'MySQL' || $driver[1] == 'MSSQL'){\n $display = find_odbcdriver($driver[1]);\n }\n\n if ($display) {\n $note = \"\";\n if (file_exists(\"\".\"${driver[2]}\") == false) {\n $note = 'Driver file does not exist!';}\n echo \"<tr><td align='left'><a id=\\\"\".($sel==$driver[0] ? 'current':'std');\n echo \"\\\" href=\\\"config.php?type=${type}&amp;display=\";\n echo \"${iam}&amp;ext=${driver[0]}&amp;action=driveredit\\\"><strong><u><i>\";\n echo \"${driver[1]}\";\n echo\"</i></u></strong></a></td>\";\n echo\"<td>${driver[2]}</td>\";\n echo\"<td align='center'>${driver[3]}</td>\";\n echo\"<td>$note</td>\";\n }\n }\n }\n echo\"</table>\";\n //echo \"<h5>Notices:</h5>\";\n echo \"<ul><li>You can click on a driver's name to edit its options.</li><li>Make sure the driver is enabled (enabled = yes) so it can be use for a DSN.</li></ul>\";\n}", "function VehicleDetails(){\n\t\tparent::getVehicleDetails();\n\t\t$this -> addVehicleDetails();\n\t}", "public function add_information() \r\n {}", "public function add_information() \r\n {}", "function driver_stats($option = array());", "public function add(string $key, string $driver): void\n {\n if (!in_array(DriverInterface::class, class_implements($driver))) {\n throw new NotDriverProvidedException('Provided ' . $key . ' is not a valid driver.');\n }\n\n $this->drivers[$key] = $driver;\n }", "public function get_additional_info()\n {\n return array();\n }", "function addDriver() {\n $drivers = $_SESSION['drivers'];\n $l = sizeof($drivers);\n // We don't allow more than 20 drivers in this sandbox\n if ($l>19) {\n throw new Exception(\"You can only have 20 drivers in this sandbox\");\n return;\n }\n $request = Slim::getInstance()->request();\n \t$body = $request->getBody();\n \t$driver = json_decode($body);\n $driver->lastModified = date('Y-m-d H:i:s');\n $driver->deleted = false;\n $driver->id = sizeof($drivers) + 1;\n $drivers[] = $driver;\n $_SESSION['drivers'] = $drivers;\n echo json_encode($driver);\n}", "public function add_info($info)\r\n { \r\n }", "public static function getDriverName()\n {\n }", "public function extra();", "public static function availableDrivers()\n {\n }", "function driverinfo() {\n global $user;\n $current_driver = new CAnmalan;\n $selected_driver = $current_driver->id();\n//#####################################################################\n// $content = \"<div id='form-driver'>\\n\";\n// $content .= \"<form id='select-driver' action='' method='post'>\\n\";\n// $content .= \"<fieldset>\\n\";\n// $content .= \"<legend>\\nFörare\\n</legend>\\n\";\n// $content .= \"<p>\\n\";\n// if ($selected_driver < 0) {\n// $content .= \"<input type='hidden' name='use_driver' value= -2>\\n\";\n// } else {\n//// Här börjar rutinen för inloggad förare \n// $content .= \"<div class='driver-form-row'>\\n\";\n// $content .= \"<select id='use-driver' name='use_driver'>\";\n//// Om inloggad är admin val för ny förare\n// if ($user->role() == 1 AND $selected_driver != -1) {\n// $content .= \"<option value='-1'>Ny förare</option>\\n\";\n// }\n//// Förarna läggs in i select-kontrollen. Inloggad markeras som vald\n// foreach ($user->users() as $user_data_id => $driver_data) {\n// $mark_selected = ($user_data_id == $selected_driver) ? 'SELECTED' : '';\n// $content .= \"<option value='{$user_data_id}' {$mark_selected}>{$driver_data['name']}</option>\\n\";\n// }\n// $content .= \"</select>\\n\";\n// $content .= \"</div>\\n\";\n//// $content .= \"<div class='driver-form-label'>\\n<input id='visa' type='submit' value='Visa'>\\n\";\n//// $content .= \"</div>\\n\";\n// $content .= \"</fieldset>\\n\";\n// $content.=\"</form>\";\n// \n// }\n $content = \"<div id='form-driverinfo'>\\n\";\n $content .= \"<form action='' method='post'>\\n\";\n $content .= \"<fieldset>\\n\";\n $content .= \"<legend>Anmälan</legend>\\n\";\n $content .= \"<input type='hidden' name='use_driver' value={$current_driver->id()}>\\n\";\n $content .= \"<div class='driver-form-row'>\\n\";\n if ($selected_driver > 0) {\n\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<div class='driver-form-label'>\\n<label>\\nDu är anmäld till Svinnock tangomaraton med följande val \\n</label>\\n</div>\\n\";\n $content .= \"</div>\\n\";\n }\n $content .= \"<div class='driver-form-label'>\\n<label>\\nFörnamn \\n</label>\\n</div>\\n\";\n $content .= \"<div class='driver-form-input'>\\n<input id='name' type='text' name='name' value='{$current_driver->name()}' autocomplete='off'>\\n\";\n $content .= \"</div>\\n\";\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<div class='driver-form-label'>\\n<label>\\nEfternamn \\n</label>\\n</div>\\n\";\n $content .= \"<div class='driver-form-input'>\\n<input id='display_name' type='text' name='display_name' value='{$current_driver->display_name()}'>\\n\\n\";\n $content .= \"</div>\\n\";\n\n if ($selected_driver < 0) {\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<div class='driver-form-label'>\\n<label>\\nEmail \\n</label>\\n</div>\\n\";\n $content .= \"<div class='driver-form-input'>\\n<input id='acronym' type='text' name='acronym' value='{$current_driver->acronym()}' autocomplete='off'>\\n</div>\\n\\n\";\n $content .= \"</div>\\n\";\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<div class='driver-form-label'>\\n<label>Password </label>\\n</div>\";\n $content .= \"<div class='driver-form-input'>\\n<input id='password' type='text' name='password' value='' autocomplete='off'>\\n</div>\\n\\n\";\n $content .= \"</div>\\n\";\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<div class='driver-form-label'>\\n<label>\\nRepetera \\n</label>\\n</div>\\n\";\n $content .= \"<div class='driver-form-input'>\\n<input id='password_check' type='text' name='password_check' value='' autocomplete='off'>\\n</div>\\n\\n\";\n $content .= \"</div>\\n\";\n }\n $counter = -1;\n//här kommer fälten från user-posten\n foreach ($current_driver->driver_data($selected_driver) as $driver_data) {\n $counter = ($driver_data->type <2)?$counter +1 : $counter;\n if ($driver_data->type >= 0) {\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<div class='driver-form-label'>\\n<label>\\n{$driver_data->user_data_descr} \\n</label>\\n</div>\";\n $content .= \"<div class='driver-form-label'>\\n\";\n if ($driver_data->type == 0) {\n $content .= \"<input type='text' name='value[{$counter}]' value='{$driver_data->value}' autocomplete='off'>\\n\";\n } elseif ($driver_data->type == 1) {\n $checked = isset($driver_data->value) ? 'checked' : '';\n $content .= \"<input type='checkbox' name='value[{$counter}]' $checked >\\n\";\n }elseif ($driver_data->type ==2) { \n $content .= \"<input type='radio' name='value[{$counter}]' $checked >\\n\";\n }\n $content .= \"<input type='hidden' name='key[{$counter}]' value='{$driver_data->user_data_key}'>\\n\";\n $content .= \"<input type='hidden' name='user_data_id[{$counter}]' value='{$driver_data->user_data_id}'>\\n\";\n $content .= \"<input type='hidden' name='post_id[{$counter}]' value='{$driver_data->id}'>\\n\";\n $content .= \"</div>\\n\";\n }\n }\n\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<button id='save' type='submit' name='save' value='{$selected_driver}'>Spara</button>\\n\";\n $content .= \"</div>\\n\";\n $content .= \"\";\n $content .= \"</fieldset>\";\n $content .= \"</form>\";\n $content .= \"</div>\";\n\n return $content;\n}", "abstract protected function getDriver();", "public function addRatings()\n {\n }", "protected function collectInformation() {}", "public function set_driver($driver)\n {\n $this->_driver = $driver;\n }", "public function getDriverNames(): array;", "public function registerBuiltinDrivers(): self\n {\n return $this->registerDriversInDirectory(__DIR__ . '/Driver', 'CIInfo\\\\Driver');\n }", "public function setDrivers()\n {\n foreach ($this->getDriverList() as $driverName) {\n $this->setDriver($driverName);\n }\n }", "private static function add_version_info( $params = array() ) {\n\t\t\t// if any parameter is passed in the pixel, do not overwrite it\n\t\t\treturn array_replace( self::get_version_info(), $params );\n\t\t}", "public function addDriver(array $route, string $gossip): void\n {\n $this->drivers[] = new Driver($route, $gossip);\n $this->gossips[] = $gossip;\n }", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInfosCount()\n {\n return $this->count(self::ADDITIONALINFOS);\n }", "public function driver()\n {\n return $this->belongsTo(Driver::class, 'driver_assigned_uuid');\n }", "private function addPerformers () {\n//\t\t$selstmt = \"SELECT ACTOR_ID FROM REPORTS_PERFORMERS WHERE REPORT_ID = $rptid\";\n\t\t$resultSet = ORM::for_table (self::REPTS_PERFS_TABLE)->\n\t\t\tselect('actor_id')->\n\t\t\twhere_equal('report_id', $this->id)->\n\t\t\tfind_many();\n\t\t$this->performers = array();\n\t\tforeach ($resultSet as $result) {\n\t\t\t$actorId = $result->actor_id;\n\t\t\t$performer = Actor::findById($actorId);\n\t\t\tif ($performer != NULL) {\n\t\t\t\t$this->performers[] = $performer;\n\t\t\t}\n\t\t}\n\t}", "private function mergeExtra()\n {\n if (method_exists($this, 'extra')) {\n $this->extra = $this->extra();\n }\n }", "protected function installDriversIfEnabled(): void\n {\n $reflection = new \\ReflectionClass($this);\n $reader = new AnnotationReader();\n\n $annotation = $reader->getClassAnnotation($reflection, Drivers::class);\n\n if (!$annotation instanceof Drivers) {\n return;\n }\n\n foreach ($annotation->install as $driver) {\n $this->{$driver} = $this->drivers->get($driver);\n }\n }", "public function addExtra($extra_name, $extra_value)\n {\n\n }", "protected function getDriver() {}", "function add_additional_field($details) {\r\n\t\t$sql = \"INSERT INTO sys_man_additional_fields (field_name, field_type, field_placement, group_id) VALUES (?, ?, ?, ?)\";\r\n\t\t$data=array(\"$details->field_name\", \"$details->field_type\", \"$details->field_placement\", \"$details->group_id\");\r\n\t\t$query = $this->db->query($sql, $data);\r\n\t\treturn;\r\n\t}", "private function add_system_info_report() {\n\t\tMain::add_report(\n\t\t\tself::REPORT_NAME, [\n\t\t\t\t'file_name' => __DIR__ . '/debug-reporter.php',\n\t\t\t\t'class_name' => __NAMESPACE__ . '\\Debug_Reporter',\n\t\t\t]\n\t\t);\n\t}", "protected function addItemDetails(&$item) \r\n\t{\r\n\t\t//$item->totals = KTBTrackerHelper::getUserTotals($item);\r\n\t\t$this->getUserInfo($item);\r\n\t}", "public function LoadDriverIdsAndCredits() {\n $q = \"SELECT driverId,credits FROM DriverSponsorRelations WHERE sponsorId={$this->GetID()};\";\n $qresult = $this->db->sql->query($q);\n\n if ($qresult && $qresult->num_rows > 0) {\n for ($row = $qresult->fetch_assoc(); $row !== NULL; $row = $qresult->fetch_assoc()) {\n $id = $row[\"driverId\"];\n array_push($this->driverIds, $id);\n $this->credits[$id] = $row[\"credits\"];\n }\n\n $qresult->free();\n }\n else if (!$qresult) {\n return false;\n }\n\n return true;\n }", "public function driver(){\n\n\t\t// belongsTo(RelatedModel, foreignKey = driver_id, keyOnRelatedModel = id)\n\t\treturn $this->belongsTo(Driver::class);\n\t}", "public function getDriverName(): string;", "protected function initalDriverProviders()\n {\n $this->driverProviderMap = [\n 'weibo' => __NAMESPACE__.'\\\\Providers\\\\WeiboProvider',\n 'wechat' => __NAMESPACE__.'\\\\Providers\\\\WechatProvider',\n 'qq' => __NAMESPACE__.'\\\\Providers\\\\QQProvider',\n 'github' => __NAMESPACE__.'\\\\Providers\\\\GithubProvider',\n 'facebook' => __NAMESPACE__.'\\\\Providers\\\\FacebookProvider',\n 'google' => __NAMESPACE__.'\\\\Providers\\\\GoogleProvider',\n ];\n }", "public function GetApplyingDrivers() {\n return $this->db->LoadDriversFromQuery(\"SELECT * FROM Drivers WHERE id IN (SELECT driverId FROM DriverApplications WHERE sponsorId={$this->GetID()});\");\n }", "function WriteAuditTrailOnAdd(&$rs) {\n\t\tglobal $mst_vendor;\n\t\t$table = 'mst_vendor';\n\n\t\t// Get key value\n\t\t$key = \"\";\n\t\tif ($key <> \"\") $key .= EW_COMPOSITE_KEY_SEPARATOR;\n\t\t$key .= $rs['kode'];\n\n\t\t// Write Audit Trail\n\t\t$filePfx = \"log\";\n\t\t$curDate = date(\"Y/m/d\");\n\t\t$curTime = date(\"H:i:s\");\n\t\t$id = ew_ScriptName();\n\t $curUser = CurrentUserName();\n\t\t$action = \"A\";\n\t\t$oldvalue = \"\";\n\t\tforeach (array_keys($rs) as $fldname) {\n\t\t\tif ($mst_vendor->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore Blob Field\n\t\t\t\t$newvalue = ($mst_vendor->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) ? \"<MEMO>\" : $rs[$fldname]; // Memo Field\n\t\t\t\tew_WriteAuditTrail($filePfx, $curDate, $curTime, $id, $curUser, $action, $table, $fldname, $key, $oldvalue, $newvalue);\n\t\t\t}\n\t\t}\n\t}", "public function getDriverIdentifier()\n {\n return $this->driver;\n }", "public function performExtraAnalysis() {\n\t\t// La colonne extra contient des infos multiples alors on utilise un tableau d'information\n\t\t// Par contre l'état (danger ou success) reste global à la cellule et est à gérer au cas par cas\n\t\t$infos = array();\n\t\t// Contient Using temporary; Using filesort\n\t\tif (preg_match('/Using temporary;\\\\s*Using filesort/', $this->cells['Extra']->v)) {\n\t\t\t$this->cells['Extra']->setDanger();\n\t\t\t$this->_explainer->hints[] = 'You should avoid <code>Using temporary</code> and <code>Using filesort</code> on big queries';\n\t\t\t$infos[] = \t'<p>You should avoid <code>Using temporary</code> and <code>Using filesort</code> on big queries.\n\t\t\t\t\t\tIt means a temporary table is created, and a sort is performed on that temporary table</p>\n\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t<li>Using temporary: To resolve the query, MySQL needs to create a temporary table to hold the result</li>\n\t\t\t\t\t\t\t<li>Using filesort: MySQL must do an extra pass to find out how to retrieve the rows in sorted order.\n\t\t\t\t\t\t\tThe sort is done by going through all rows according to the join type and storing the sort key and\n\t\t\t\t\t\t\tpointer to the row for all rows that match the WHERE clause.</li>\n\t\t\t\t\t\t</ul>';\n\t\t} elseif (preg_match('/Using temporary(;|$)/', $this->cells['Extra']->v)) {\n\t\t\t$infos[] = 'To resolve the query, MySQL needs to create a temporary table to hold the result';\n\t\t} elseif (preg_match('/Using filesort(;|$)/', $this->cells['Extra']->v)) {\n\t\t\t$infos[] = 'MySQL must do an extra pass to find out how to retrieve the rows in sorted order.\n\t\t\t\t\t\tThe sort is done by going through all rows according to the join type and storing the sort key and\n\t\t\t\t\t\tpointer to the row for all rows that match the WHERE clause';\n\t\t}\n\t\t// Contient Impossible WHERE noticed after reading const tables\n\t\tif (preg_match('/Impossible WHERE noticed after reading const tables/', $this->cells['Extra']->v)) {\n\t\t\t$infos[] = \t'MySQL has read all <code>const</code> (and <code>system</code>) tables and\n\t\t\t\t\t\tnotice that the WHERE clause is always false';\n\t\t}\n\t\t// Contient Using where\n\t\tif (preg_match('/Using where(;|$)/', $this->cells['Extra']->v)) {\n\t\t\t$infos[] = \"A WHERE clause is used to restrict which rows to match against the next table or send to the client.\n\t\t\t\t\t\tUnless you specifically intend to fetch or examine all rows from the table, you may have something\n\t\t\t\t\t\twrong in your query if the <code>Extra</code> value is not <code>Using where</code> and the table join\n\t\t\t\t\t\ttype is <code>ALL</code> or <code>index</code>.\";\n\t\t}\n\t\t// Contient Using join buffer\n\t\tif (preg_match('/Using join buffer \\\\((.*?)\\\\)/', $this->cells['Extra']->v, $matches)) {\n\t\t\t$infos[] = \"Tables from earlier joins are read in portions into the join buffer, and then their rows\n\t\t\t\t\t\tare used from the buffer to perform the join with the current table\n\t\t\t\t\t\t<code>{$this->cells['table']->v}</code> using <code>{$matches[1]}</code> algorithm\";\n\t\t} elseif (preg_match('/Using join buffer(;|$)/', $this->cells['Extra']->v)) {\n\t\t\t$infos[] = \"Tables from earlier joins are read in portions into the join buffer, and then their rows\n\t\t\t\t\t\tare used from the buffer to perform the join with the current table\";\n\t\t}\n\t\t// Contient Using index\n\t\tif (preg_match('/Using index(;|$)/', $this->cells['Extra']->v)) {\n\t\t\t$tmp = \"The column information is retrieved from the table using only information in the index tree\n\t\t\t\t\twithout having to do an additional seek to read the actual row.\n\t\t\t\t\tThis strategy can be used when the query uses only columns that are part of a single index.\";\n\t\t\tif (preg_match('/Using where/', $this->cells['Extra']->v)) {\n\t\t\t\t$tmp .= \"The index is being used to perform lookups of key values\";\n\t\t\t} else {\n\t\t\t\t$tmp .= \"The optimizer may be reading the index to avoid reading data rows but not using it for lookups.\n\t\t\t\t\t\tFor example, if the index is a covering index for the query, the optimizer may scan it without using it for lookups.\";\n\t\t\t}\n\t\t\t$infos[] = $tmp;\n\t\t}\n\t\t// Contient const row not found\n\t\tif (preg_match('/const row not found/', $this->cells['Extra']->v)) {\n\t\t\t$infos[] = \"The table was empty\";\n\t\t}\n\n\t\t// Traités dans l'ordre de l'apparition dans la doc\n\n\t\t// Distinct\n\t\tif (preg_match('/Distinct(;|$)/', $this->cells['Extra']->v)) {\n\t\t\t$infos[] = \"MySQL is looking for distinct values, so it stops searching for more rows\n\t\t\t\t\t\tfor the current row combination after it has found the first matching row\";\n\t\t}\n\t\t// Full scan on NULL key\n\t\tif (preg_match('/Full scan on NULL key(;|$)/', $this->cells['Extra']->v)) {\n\t\t\t$infos[] = \"This occurs for subquery optimization as a fallback strategy\n\t\t\t\t\t\twhen the optimizer cannot use an index-lookup access method.\";\n\t\t}\n\t\t// Impossible HAVING\n\t\tif (preg_match('/Impossible HAVING(;|$)/', $this->cells['Extra']->v)) {\n\t\t\t$infos[] = \"The HAVING clause is always false and cannot select any rows.\";\n\t\t}\n\t\t// Impossible WHERE\n\t\tif (preg_match('/Impossible WHERE(;|$)/', $this->cells['Extra']->v)) {\n\t\t\t$infos[] = \"The WHERE clause is always false and cannot select any rows.\";\n\t\t}\n\t\t// LooseScan\n\t\tif (preg_match('/LooseScan(;|$)/', $this->cells['Extra']->v)) {\n\t\t\t$infos[] = \"The semi-join LooseScan strategy is used.\";\n\t\t}\n\t\t// No matching min/max row\n\t\tif (preg_match('/No matching min\\\\/max row(;|$)/', $this->cells['Extra']->v)) {\n\t\t\t$infos[] = \"No row satisfies the condition for a query such as <code>SELECT MIN(col) FROM table WHERE condition</code>\";\n\t\t}\n\t\t// no matching row in const table\n\t\tif (preg_match('/no matching row in const table(;|$)/', $this->cells['Extra']->v)) {\n\t\t\t$infos[] = \"For a query with a join, there was an empty table or a table with no rows satisfying a unique index condition\";\n\t\t}\n\t\t// no matching row in const table\n\t\tif (preg_match('/No matching rows after partition pruning(;|$)/', $this->cells['Extra']->v)) {\n\t\t\t$infos[] = \"For <code>DELETE</code> or <code>UPDATE</code>, the optimizer found nothing to delete or update after partition pruning. It is similar in meaning to <code>Impossible WHERE</code> for <code>SELECT</code> statements.\";\n\t\t}\n\t\t// No tables used\n\t\tif (preg_match('/No tables used(;|$)/', $this->cells['Extra']->v)) {\n\t\t\t$infos[] = \"The query has no <code>FROM</code> clause, or has a <code>FROM DUAL</code> clause.\";\n\t\t}\n\t\t// Not exists\n\t\tif (preg_match('/Not exists(;|$)/', $this->cells['Extra']->v)) {\n\t\t\t$infos[] = \"MySQL was able to do a <code>LEFT JOIN</code> optimization on the query and does not examine more rows in this table for the previous row combination after it finds one row that matches the <code>LEFT JOIN</code> criteria\";\n\t\t}\n\t\t// Plan isn't ready yet\n\t\tif (preg_match('/Plan isn\\'t ready yet(;|$)/', $this->cells['Extra']->v)) {\n\t\t\t$infos[] = \"This value occurs with EXPLAIN FOR CONNECTION when the optimizer has not finished creating the execution plan for the statement executing in the named connection. If execution plan output comprises multiple lines, any or all of them could have this Extra value, depending on the progress of the optimizer in determining the full execution plan.\";\n\t\t}\n\n\t\tif (!count($infos)) {\n\t\t\t$infos[] = 'Not Implemented Now :(';\n\t\t}\n\n\t\t$this->cells['Extra']->info = implode('<br /><br />', $infos);\n\t}", "public function getDriverType() {}", "function recordAnalytics() {\n\t\t//Is your user agent any of my business? Not really, but don't worry about it.\n\t\texecuteQuery(\"\n\t\t\tINSERT INTO dwm2r_activitymonitor\n\t\t\t(IPAddress,UserAgent,Flags,Seed,CreatedDTS)\n\t\t\tVALUES (\n\t\t\t\t'\".$_SERVER['REMOTE_ADDR'].\"',\n\t\t\t\t'\".$_SERVER['HTTP_USER_AGENT'].\"',\n\t\t\t\t'\".trim($_REQUEST[\"Flags\"]).\"',\n\t\t\t\t'\".$this->modder->flags[\"Seed\"].\"',\n\t\t\t\tNOW()\n\t\t\t)\n\t\t\");\n\t}", "function vitero_get_extra_capabilities() {\n return array();\n}", "public static function supportedDrivers()\n {\n }", "private function writePerformers () {\n\t\t$GLOBALS[\"logger\"]->debug(\"writePerformers\");\n\t\tif ($this->performers != NULL) {\n\t\t\tforeach ($this->performers as $performer) {\n\t\t\t\t$GLOBALS[\"logger\"]->debug(\"Got a performer {$performer->id}\");\n\t\t\t\t// $performer is an Actor\n\t\t\t\t$newRec = ORM::for_table(self::REPTS_PERFS_TABLE)->create();\n\t\t\t\t$newRec->report_id = $this->id;\n\t\t\t\t$newRec->actor_id = $performer->id;\n\t\t\t\t$newRec->save();\n//\t\t\t\t$insstmt = \"INSERT INTO REPORTS_PERFORMERS (REPORT_ID, ACTOR_ID) \" .\n//\t\t\t\t\t\"VALUES ($rptid, $actid)\";\n\t\t\t}\n\t\t}\n\t}", "function appendConnectionTechnology($connection_technology, $connection_technology_version)\n {\n $this->connection_technology .= ' - ' . $connection_technology;\n $this->connection_technology_version .= ' - ' . $connection_technology_version;\n }", "static public function addDriver (iLiteral_Driver $driver, $culture = NULL) {\n Assert::isObject($driver);\n Assert::isString($culture, TRUE);\n\n if ($culture === NULL) {\n $culture = Culture_Info::current();\n }\n\n if (isset(self::$_cultureDrivers[$culture][$driver->getName()]) == FALSE) {\n // xxx create a reference to the driver name and not to the driver itself to save on resources (use GAC)\n self::$_cultureDrivers[$culture][$driver->getName()] = $driver;\n }\n \n self::$_initialised = TRUE;\n }", "function addDriverDB($licenseID,$email,$vehiculeNum){\n\t\tglobal $db;\n\t\t$sql = \"INSERT INTO driver(licenceID,user_email,score,vehiculeNum,numRides) VALUES('$licenseID','$email',null,'$vehiculeNum',0)\";\n\t\tif ($db->query($sql) === TRUE) \n \t\treturn \"\";\n\t\telse \n \t\treturn \"Error: \" . $sql . \"<br>\" . $db->error;\n\t}", "public function getDriverName()\n {\n return $this->driverName;\n }", "function getDriverRestrictions() ;", "public function getDriverRestrictions() {}", "public function getExtraInformation() {\n return $this->extra;\n }", "abstract protected function setup_info();", "function annotation_get_extra_capabilities() {\n return array();\n}", "function cicleinscription_get_extra_capabilities() {\n return array();\n}", "final public function getDriverName(): string\n {\n return $this->driver;\n }", "public function setExtraInfo(array $info)\n {\n $this->extraInfo = $info;\n }", "function on_add($EXTRA)\r\n\t{\r\n\t\tglobal $IN, $SKIN, $ADMIN;\r\n\t\t$ibforums = Ibf::app();\r\n\t\t$ADMIN->HTML .= $SKIN->add_td_row(array(\r\n\t\t \"<b>Minumum amount aloud to steal?</b><br>The lowest amount a user can steal from another user.\",\r\n\t\t $SKIN->form_input(\"extra_one\", $EXTRA['extra_one'])\r\n\t\t ));\r\n\t\t$ADMIN->HTML .= $SKIN->add_td_row(array(\r\n\t\t \"<b>Maximum amount aloud to steal</b><br>The highest amount a user can steal from another user.\",\r\n\t\t $SKIN->form_input(\"extra_two\", $EXTRA['extra_two'])\r\n\t\t ));\r\n\t\t$ADMIN->HTML .= $SKIN->add_td_row(array(\r\n\t\t \"<b>Chance of a Successful</b><br>The percentage of a Successful steal. (e.g 50 would give them 50/50 odds of a successful steal)\",\r\n\t\t $SKIN->form_input(\"extra_three\", $EXTRA['extra_three'])\r\n\t\t ));\r\n\r\n\t\treturn $ADMIN->HTML;\r\n\t}", "protected function info()\n\t\t{\n\t\t}", "public function Drivers()\n {\n return $this->hasMany('App\\Models\\Drivers', 'ownerid', 'id');\n }", "function _show_add(&$obj, $extra=null)\n{\n\t$this->_show($obj, $extra, HAPPY_LINUX_MODE_ADD);\n}", "public function getDriverName()\n\t{\n\t\treturn $this->neoeloquent->getDriverName();\n\t}", "public function add_caps() {\n global $wp_roles;\n\n // TODO: see easy-digital-downloads plugin source codes for example implementation.\n }", "public function update_driver_rides_count($field = '', $driver_id = '') {\n if ($driver_id != '' && $field != '') {\n $condition = array('_id' => MongoID($driver_id));\n $this->mongo_db->where($condition)->inc($field, 1)->update(DRIVERS);\n /* $qur='db.dectar_drivers.update({\"driver_name\":\"Suresh Kumar\"},{\"$inc\":{\"cancelled_rides\":1}})'; */\n }\n }", "public function carDetails(){\n $details = \"Vehicle Type - \" . $this->getType() . \"<br>\";\n $details .= \"Wheels - \" . $this->getWheels() . \"<br>\";\n $details .= \"Engine - \" . $this->getEngine() . \"<br>\";\n $details .= \"Seat - \" . $this->getSeat() . \"<br>\";\n $details .= \"radio - \" . $this->getRadio() . \"<br>\";\n\n foreach ($this->extras as $extra){\n $details .= \"extra - \" . $extra . \"<br>\";\n }\n\n\t\treturn $details;\n\t}", "public function extra_voor_verp()\n\t{\n\t}", "public static function getDriverRideRatingDetails($driverId)\n { \n $selects = [\n 'SUM('.self::table().'.driver_rating) AS driver_rating_sum',\n 'COUNT('.self::table().'.id) AS trip_request_count'\n ];\n\n //find total number of requests and sum of total ratings\n $record = self::join('trips', 'trips.id', '=', self::table().'.trip_id')\n ->where('trips.driver_id', $driverId)\n ->whereIn(self::table().'.driver_rating', self::RATINGS)\n ->selectRaw(implode(',', $selects))->first();\n \n\n return [(integer)$record->driver_rating_sum, $record->trip_request_count];\n\n }", "function get_modules_extra(){\r\n\t\tforeach($this->locations as $location){\r\n\t\t\t$modules_extra[$location['location']] = array();\r\n\t\t}\r\n\t\tif($this->tpl_columns == 1.2 || $this->tpl_columns == 3){\r\n\t\t\t$modules_extra['column'] = array('manufacturer', 'popular');\r\n\t\t\t$modules_extra['columnright'] = array('specials');\r\n\t\t} elseif ($this->tpl_columns == 2.1) {\r\n\t\t\t$modules_extra['columnright'] = array('manufacturer', 'popular');\r\n\t\t}\r\n\t\treturn $modules_extra;\r\n\t}", "function get_modules_extra(){\r\n\t\tforeach($this->locations as $location){\r\n\t\t\t$modules_extra[$location['location']] = array();\r\n\t\t}\r\n\t\tif($this->tpl_columns == 1.2 || $this->tpl_columns == 3){\r\n\t\t\t$modules_extra['column'] = array('manufacturer', 'popular');\r\n\t\t\t$modules_extra['columnright'] = array('specials');\r\n\t\t} elseif ($this->tpl_columns == 2.1) {\r\n\t\t\t$modules_extra['columnright'] = array('manufacturer', 'popular');\r\n\t\t}\r\n\t\treturn $modules_extra;\r\n\t}", "function get_modules_extra(){\r\n\t\tforeach($this->locations as $location){\r\n\t\t\t$modules_extra[$location['location']] = array();\r\n\t\t}\r\n\t\tif($this->tpl_columns == 1.2 || $this->tpl_columns == 3){\r\n\t\t\t$modules_extra['column'] = array('manufacturer', 'popular');\r\n\t\t\t$modules_extra['columnright'] = array('specials');\r\n\t\t} elseif ($this->tpl_columns == 2.1) {\r\n\t\t\t$modules_extra['columnright'] = array('manufacturer', 'popular');\r\n\t\t}\r\n\t\treturn $modules_extra;\r\n\t}", "private function addDeviceToTracking()\n {\n // add device if not owned by you (owners will be able to track their devices by default)\n $owner = $this->getOwnerToken();\n if ($owner != null)\n if (strcmp($this->token, $owner) != 0) {\n $obj = $this->sql->query(\"select `device_count` from \" . tableName . \" where `uid` = '$this->token'\")->fetch_object();\n $x = $obj->device_count + 1;\n\n $str = \"update \" . tableName . \" set `device_count` = '$x' where `uid` = '$this->token';\";\n $str .= \"insert into \" . dataTableName . \" (`token`, `device_id`) VALUES ('$this->token', '$this->deviceID');\";\n\n if ($this->sql->multi_query($str))\n echo \"SUCCESS\";\n\n else die(\"FAILED\");\n } else\n die(\"Already added\");\n else\n die(\"No owners. Device may not have been registered.\");\n }", "public function getExtraInfo()\n {\n return $this->extra;\n }", "public function driver();", "public function drivers(){\n\n // hasMany(RelatedModel, foreignKeyOnRelatedModel = company_id, localKey = id)\n return $this->hasMany(Driver::class);\n }", "public function addIndividual()\n {\n }", "public function getContributorExtra() {\n $result = TingOpenformatMethods::parseFields($this->_getDetails(), array('contributors' => array('contributorExtra')));\n return $result;\n }", "function roshine_get_extra_capabilities() {\n return array();\n}", "public function driver()\n {\n return $this->hasOne(Driver::class, 'id', 'driver_id');\n }", "public function extensionMeta()\n {\n return [\n 'name' => 'Drivers',\n 'author' => 'Igniter',\n 'description' => 'Drivers.',\n 'icon' => 'fa-bug',\n 'version' => '1.0.0',\n ];\n }", "public function get_extra_select() {\n return [\n 'choice_id' => $this->usechoiceid,\n 'response' => $this->useresponse,\n 'rank' => $this->userank\n ];\n }", "function dllc_get_extra_capabilities() {\n return array();\n}", "public function checkdrivercount() {\n $options = [\n 'projection' => [\n 'driver_count' => 1,\n ]\n ];\n $query_result = $this->mongo_db->find(MDB_SITEINFO, ['_id' => 1], $options);\n $result = !empty($query_result) ? $query_result : array();\n return $result;\n }", "public function getDriverReportList() {\n\n $driverReportListQuery = \"select id,driver_id,vehicle_id from dlvry_trans_driver_allocation_to_vehicle where status!='Delete' and driver_id != '0'\";\n $driverReportListData = $this->db->query($driverReportListQuery);\n $driverReportListResult = $driverReportListData->result_array();\n\n foreach ($driverReportListResult as $key => $vehicleId) {\n\n $vehicleid = $vehicleId['vehicle_id'];\n $getVehicleNumQuery = \"SELECT tr_transport_name,tr_transport_type,tr_vehicle_no from `dlvry_trans_vehicle` where status!='Delete' and es_transportid='$vehicleid'\";\n $vehicleNumData = $this->db->query($getVehicleNumQuery);\n $vehicleNumResult = $vehicleNumData->result_array();\n foreach ($vehicleNumResult as $vehicle_num) {\n $driverReportListResult[$key]['vehicle_no'] = [];\n $driverReportListResult[$key]['vehicle_name'] = [];\n $driverReportListResult[$key]['vehicle_type'] = [];\n array_push($driverReportListResult[$key]['vehicle_no'], $vehicle_num['tr_vehicle_no']);\n array_push($driverReportListResult[$key]['vehicle_name'], $vehicle_num['tr_transport_name']);\n array_push($driverReportListResult[$key]['vehicle_type'], $vehicle_num['tr_transport_type']);\n }\n }\n\n foreach ($driverReportListResult as $key => $driverId) {\n\n $driverid = $driverId['driver_id'];\n $getDriverNameQuery = \"SELECT driver_name,diver_mobile,driver_license,issuing_authority,valid_date from `dlvry_trans_driver_details` where status!='Delete' and id='$driverid'\";\n $driverNameData = $this->db->query($getDriverNameQuery);\n $driverNameResult = $driverNameData->result_array();\n foreach ($driverNameResult as $driver_name) {\n $driverReportListResult[$key]['driver_name'] = [];\n $driverReportListResult[$key]['driver_mobile'] = [];\n $driverReportListResult[$key]['driver_license'] = [];\n $driverReportListResult[$key]['issuing_authority'] = [];\n $driverReportListResult[$key]['valid_date'] = [];\n array_push($driverReportListResult[$key]['driver_name'], $driver_name['driver_name']);\n array_push($driverReportListResult[$key]['driver_mobile'], $driver_name['diver_mobile']);\n array_push($driverReportListResult[$key]['driver_license'], $driver_name['driver_license']);\n array_push($driverReportListResult[$key]['issuing_authority'], $driver_name['issuing_authority']);\n array_push($driverReportListResult[$key]['valid_date'], $driver_name['valid_date']);\n }\n }\n\n return $driverReportListResult;\n }", "public function show(driver $driver)\n {\n //\n }", "public function show(driver $driver)\n {\n //\n }", "public function getDriverName() {\n return $this->driverName;\n }" ]
[ "0.5570094", "0.54846644", "0.52026045", "0.51595974", "0.5117224", "0.5112645", "0.511034", "0.50512916", "0.50200456", "0.50200456", "0.50193524", "0.49815166", "0.49711227", "0.49651685", "0.49346986", "0.48799026", "0.4866828", "0.48571798", "0.48547864", "0.48461637", "0.48263466", "0.4819234", "0.48166144", "0.4797585", "0.47826144", "0.47565645", "0.4742723", "0.47263417", "0.4693082", "0.4693082", "0.46929133", "0.46929133", "0.46929133", "0.4692551", "0.4692551", "0.4692551", "0.4692551", "0.46753174", "0.46728027", "0.4672009", "0.46689773", "0.46682674", "0.46618432", "0.4652586", "0.46396533", "0.4626952", "0.46267384", "0.46228784", "0.46185827", "0.4616574", "0.4614652", "0.4613047", "0.4590962", "0.4587658", "0.45873117", "0.45833778", "0.45767352", "0.45697936", "0.45697013", "0.45695198", "0.45652395", "0.45608622", "0.4559732", "0.45591706", "0.45566955", "0.45492154", "0.45141584", "0.45138368", "0.4509999", "0.44890645", "0.44806203", "0.44707063", "0.4468534", "0.44577515", "0.44499466", "0.44494507", "0.44407478", "0.4434766", "0.44322145", "0.44322088", "0.44244167", "0.4421965", "0.44180495", "0.44180495", "0.44180495", "0.44176233", "0.4414099", "0.44084817", "0.4405568", "0.44031805", "0.44002545", "0.43999115", "0.43954188", "0.43937823", "0.43909726", "0.43850487", "0.43774185", "0.43766475", "0.43741998", "0.43741998", "0.437405" ]
0.0
-1
isset additional Information on additional driver(s), possibly including frequent renter number.
public function issetAdditional($index) { return isset($this->additional[$index]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getdriverdetails()\n{\n\t//returns the details of the driver\n\t$sql=\"select * from driver_detail where status=0 order by rand() limit 1\";\n\tforeach($GLOBALS['db']->query($sql) as $row);\n\tif(isset($row))\n\t\treturn $row;\n}", "function driver_stats($option = array());", "function get_driver_info($idPilot)\n{\n $driver_info = get_driver_info_db($idPilot);\n return $driver_info;\n}", "public function set_driver($driver)\n {\n $this->_driver = $driver;\n }", "function getDriverRestrictions() ;", "function driverinfo() {\n global $user;\n $current_driver = new CAnmalan;\n $selected_driver = $current_driver->id();\n//#####################################################################\n// $content = \"<div id='form-driver'>\\n\";\n// $content .= \"<form id='select-driver' action='' method='post'>\\n\";\n// $content .= \"<fieldset>\\n\";\n// $content .= \"<legend>\\nFörare\\n</legend>\\n\";\n// $content .= \"<p>\\n\";\n// if ($selected_driver < 0) {\n// $content .= \"<input type='hidden' name='use_driver' value= -2>\\n\";\n// } else {\n//// Här börjar rutinen för inloggad förare \n// $content .= \"<div class='driver-form-row'>\\n\";\n// $content .= \"<select id='use-driver' name='use_driver'>\";\n//// Om inloggad är admin val för ny förare\n// if ($user->role() == 1 AND $selected_driver != -1) {\n// $content .= \"<option value='-1'>Ny förare</option>\\n\";\n// }\n//// Förarna läggs in i select-kontrollen. Inloggad markeras som vald\n// foreach ($user->users() as $user_data_id => $driver_data) {\n// $mark_selected = ($user_data_id == $selected_driver) ? 'SELECTED' : '';\n// $content .= \"<option value='{$user_data_id}' {$mark_selected}>{$driver_data['name']}</option>\\n\";\n// }\n// $content .= \"</select>\\n\";\n// $content .= \"</div>\\n\";\n//// $content .= \"<div class='driver-form-label'>\\n<input id='visa' type='submit' value='Visa'>\\n\";\n//// $content .= \"</div>\\n\";\n// $content .= \"</fieldset>\\n\";\n// $content.=\"</form>\";\n// \n// }\n $content = \"<div id='form-driverinfo'>\\n\";\n $content .= \"<form action='' method='post'>\\n\";\n $content .= \"<fieldset>\\n\";\n $content .= \"<legend>Anmälan</legend>\\n\";\n $content .= \"<input type='hidden' name='use_driver' value={$current_driver->id()}>\\n\";\n $content .= \"<div class='driver-form-row'>\\n\";\n if ($selected_driver > 0) {\n\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<div class='driver-form-label'>\\n<label>\\nDu är anmäld till Svinnock tangomaraton med följande val \\n</label>\\n</div>\\n\";\n $content .= \"</div>\\n\";\n }\n $content .= \"<div class='driver-form-label'>\\n<label>\\nFörnamn \\n</label>\\n</div>\\n\";\n $content .= \"<div class='driver-form-input'>\\n<input id='name' type='text' name='name' value='{$current_driver->name()}' autocomplete='off'>\\n\";\n $content .= \"</div>\\n\";\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<div class='driver-form-label'>\\n<label>\\nEfternamn \\n</label>\\n</div>\\n\";\n $content .= \"<div class='driver-form-input'>\\n<input id='display_name' type='text' name='display_name' value='{$current_driver->display_name()}'>\\n\\n\";\n $content .= \"</div>\\n\";\n\n if ($selected_driver < 0) {\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<div class='driver-form-label'>\\n<label>\\nEmail \\n</label>\\n</div>\\n\";\n $content .= \"<div class='driver-form-input'>\\n<input id='acronym' type='text' name='acronym' value='{$current_driver->acronym()}' autocomplete='off'>\\n</div>\\n\\n\";\n $content .= \"</div>\\n\";\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<div class='driver-form-label'>\\n<label>Password </label>\\n</div>\";\n $content .= \"<div class='driver-form-input'>\\n<input id='password' type='text' name='password' value='' autocomplete='off'>\\n</div>\\n\\n\";\n $content .= \"</div>\\n\";\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<div class='driver-form-label'>\\n<label>\\nRepetera \\n</label>\\n</div>\\n\";\n $content .= \"<div class='driver-form-input'>\\n<input id='password_check' type='text' name='password_check' value='' autocomplete='off'>\\n</div>\\n\\n\";\n $content .= \"</div>\\n\";\n }\n $counter = -1;\n//här kommer fälten från user-posten\n foreach ($current_driver->driver_data($selected_driver) as $driver_data) {\n $counter = ($driver_data->type <2)?$counter +1 : $counter;\n if ($driver_data->type >= 0) {\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<div class='driver-form-label'>\\n<label>\\n{$driver_data->user_data_descr} \\n</label>\\n</div>\";\n $content .= \"<div class='driver-form-label'>\\n\";\n if ($driver_data->type == 0) {\n $content .= \"<input type='text' name='value[{$counter}]' value='{$driver_data->value}' autocomplete='off'>\\n\";\n } elseif ($driver_data->type == 1) {\n $checked = isset($driver_data->value) ? 'checked' : '';\n $content .= \"<input type='checkbox' name='value[{$counter}]' $checked >\\n\";\n }elseif ($driver_data->type ==2) { \n $content .= \"<input type='radio' name='value[{$counter}]' $checked >\\n\";\n }\n $content .= \"<input type='hidden' name='key[{$counter}]' value='{$driver_data->user_data_key}'>\\n\";\n $content .= \"<input type='hidden' name='user_data_id[{$counter}]' value='{$driver_data->user_data_id}'>\\n\";\n $content .= \"<input type='hidden' name='post_id[{$counter}]' value='{$driver_data->id}'>\\n\";\n $content .= \"</div>\\n\";\n }\n }\n\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<button id='save' type='submit' name='save' value='{$selected_driver}'>Spara</button>\\n\";\n $content .= \"</div>\\n\";\n $content .= \"\";\n $content .= \"</fieldset>\";\n $content .= \"</form>\";\n $content .= \"</div>\";\n\n return $content;\n}", "abstract protected function getDriver();", "public function getDriverRestrictions() {}", "public static function availableDrivers()\n {\n }", "public function getDriverType() {}", "public function getDriverNames(): array;", "public function hasTowerinfo(){\n return $this->_has(1);\n }", "public static function getDriverName()\n {\n }", "public function extraInfo();", "function driverlist_show($type, $iam){\n echo(\"<h4><img src='images/asterisk_orange.png' alt=''/> <strong>ODBC Drivers Configuration:</strong></h4>\");\n echo (\"<h5><i>This feature allows you to add/enable a database driver which you can use with the ODBC API. You must make sure that this driver lib (.so file) is already installed on your server and can be used to communicate with UnixODBC.</i></h5>\");\n echo(\"<img src='images/add.png' alt=''/>\");\n echo \"<i><a id='\".($sel==''?'current':'std').\"' \";\n echo \"href='config.php?type={$type}&amp;display={$iam}&amp;action=driveradd'>\"._(\" Add Your New Custom Driver\").\"</a></i>\";\n //echo (\"</br>\");\n echo\"</br>\n <table border = 1>\n <tr>\n <th align='center'>Name</th>\n <th>Driver</th>\n <th align='center'>Enabled</th>\n <th align='center'>Notice</th>\n </tr>\";\n\n //get the list of paging groups\n $driverlist = odbcdriver_list();\n if ($driverlist) {\n foreach ($driverlist as $driver) {\n $display = true;\n if ($driver[1] == 'PostgreSQL' || $driver[1] == 'MySQL' || $driver[1] == 'MSSQL'){\n $display = find_odbcdriver($driver[1]);\n }\n\n if ($display) {\n $note = \"\";\n if (file_exists(\"\".\"${driver[2]}\") == false) {\n $note = 'Driver file does not exist!';}\n echo \"<tr><td align='left'><a id=\\\"\".($sel==$driver[0] ? 'current':'std');\n echo \"\\\" href=\\\"config.php?type=${type}&amp;display=\";\n echo \"${iam}&amp;ext=${driver[0]}&amp;action=driveredit\\\"><strong><u><i>\";\n echo \"${driver[1]}\";\n echo\"</i></u></strong></a></td>\";\n echo\"<td>${driver[2]}</td>\";\n echo\"<td align='center'>${driver[3]}</td>\";\n echo\"<td>$note</td>\";\n }\n }\n }\n echo\"</table>\";\n //echo \"<h5>Notices:</h5>\";\n echo \"<ul><li>You can click on a driver's name to edit its options.</li><li>Make sure the driver is enabled (enabled = yes) so it can be use for a DSN.</li></ul>\";\n}", "public function LoadDriverIdsAndCredits() {\n $q = \"SELECT driverId,credits FROM DriverSponsorRelations WHERE sponsorId={$this->GetID()};\";\n $qresult = $this->db->sql->query($q);\n\n if ($qresult && $qresult->num_rows > 0) {\n for ($row = $qresult->fetch_assoc(); $row !== NULL; $row = $qresult->fetch_assoc()) {\n $id = $row[\"driverId\"];\n array_push($this->driverIds, $id);\n $this->credits[$id] = $row[\"credits\"];\n }\n\n $qresult->free();\n }\n else if (!$qresult) {\n return false;\n }\n\n return true;\n }", "abstract protected function setup_info();", "public function checkdrivercount() {\n $options = [\n 'projection' => [\n 'driver_count' => 1,\n ]\n ];\n $query_result = $this->mongo_db->find(MDB_SITEINFO, ['_id' => 1], $options);\n $result = !empty($query_result) ? $query_result : array();\n return $result;\n }", "public function getBusDriverStatus(){return $this->driver_status;}", "protected function getDriver() {}", "public function setDrivers()\n {\n foreach ($this->getDriverList() as $driverName) {\n $this->setDriver($driverName);\n }\n }", "public function get_bydeler_info()\n\t{\n\t\t$bydeler = array();\n\t\tforeach (game::$bydeler as $bydel)\n\t\t{\n\t\t\t$bydeler[$bydel['id']] = array(\n\t\t\t\t\"cars\" => 0,\n\t\t\t\t\"b_id\" => $bydel['id'],\n\t\t\t\t\"b_active\" => $bydel['active'],\n\t\t\t\t\"ff_id\" => null,\n\t\t\t\t\"ff_name\" => null,\n\t\t\t\t\"garage\" => null,\n\t\t\t\t\"garage_max_cars\" => null,\n\t\t\t\t\"garage_free\" => 0,\n\t\t\t\t\"garage_next_rent\" => null\n\t\t\t);\n\t\t}\n\t\t\n\t\t// antall biler vi har i de ulike bydelene (garasjene)\n\t\t$result = \\Kofradia\\DB::get()->query(\"\n\t\t\tSELECT b_id, COUNT(id) AS ant\n\t\t\tFROM users_gta\n\t\t\tWHERE ug_up_id = \".$this->up->id.\"\n\t\t\tGROUP BY b_id\");\n\t\twhile ($row = $result->fetch())\n\t\t{\n\t\t\tif (!isset($bydeler[$row['b_id']])) continue;\n\t\t\t$bydeler[$row['b_id']]['cars'] = $row['ant'];\n\t\t}\n\t\t\n\t\t// informasjon om garasjene vi har\n\t\t$result = \\Kofradia\\DB::get()->query(\"\n\t\t\tSELECT ugg_b_id, ugg_places, ugg_time_next_rent, ff_id, ff_name\n\t\t\tFROM users_garage\n\t\t\t\tLEFT JOIN ff ON ff_id = ugg_ff_id\n\t\t\tWHERE ugg_up_id = \".$this->up->id);\n\t\twhile ($row = $result->fetch())\n\t\t{\n\t\t\tif (!isset($bydeler[$row['ugg_b_id']])) continue;\n\t\t\t$bydeler[$row['ugg_b_id']]['garage'] = true;\n\t\t\t$bydeler[$row['ugg_b_id']]['ff_id'] = $row['ff_id'];\n\t\t\t$bydeler[$row['ugg_b_id']]['ff_name'] = $row['ff_name'];\n\t\t\t$bydeler[$row['ugg_b_id']]['garage_max_cars'] = $row['ugg_places'];\n\t\t\t$bydeler[$row['ugg_b_id']]['garage_free'] = max(0, $row['ugg_places'] - $bydeler[$row['ugg_b_id']]['cars']);\n\t\t\t$bydeler[$row['ugg_b_id']]['garage_next_rent'] = $row['ugg_time_next_rent'];\n\t\t}\n\t\t\n\t\treturn $bydeler;\n\t}", "public function getDriverOptions(): array;", "public function getDriverId()\n {\n return isset($this->driverId) ? $this->driverId : null;\n }", "protected function collectInformation() {}", "public function details()\n {\n \n $output = $this->ua->parse_user_agent();\n print_r($output);\n exit;\n }", "Public Function getDriver() { Return $this->driver; }", "public static function supportedDrivers()\n {\n }", "public function get_additional_info()\n {\n return array();\n }", "public function getDriverIdentifier()\n {\n return $this->driver;\n }", "public function initGearInfos()\n\t{\n\t\t$this->collGearInfos = array();\n\t}", "public function info() {\n\t\t\n\t\t$data = array(\n\t\t\t'Driver'\t\t\t=> 'DRIVER_NAME',\n\t\t\t'Client version'\t=> 'CLIENT_VERSION',\n\t\t\t'Server version'\t=> 'SERVER_VERSION',\n\t\t\t'Connection'\t\t=> 'CONNECTION_STATUS'\n\t\t);\n\n\t\tforeach ($data as $key => $value) {\n\t\t\t\n\t\t\t$info[$key] = $this->pdo->getAttribute(constant('PDO::ATTR_' . $value));\n\t\t\t\n\t\t}\n\n\t\treturn $info;\n\t\t\n\t}", "public function getDriverName(): string;", "final public function getDriverName(): string\n {\n return $this->driver;\n }", "public function getDriverName()\n {\n return $this->driverName;\n }", "public function getDriverVersion()\n {\n return $this->driver_version;\n }", "private function _setGlobalInformations()\n {\n $objInfoResult = $this->_dataResponse['s:Body']['GetFulfilmentSupplyOrderReportListResponse']['GetFulfilmentSupplyOrderReportListResult'];\n $this->tokenID = $objInfoResult['TokenId'];\n $this->sellerLogin = $objInfoResult['SellerLogin'];\n }", "public function driver()\n {\n return $this->belongsTo(Driver::class, 'driver_assigned_uuid');\n }", "public function check_current_driver_count() {\n $options = [\n 'projection' => [\n '_id' => 1,\n 'name' => 1\n ]\n ];\n $query_result = $this->mongo_db->find(MDB_PEOPLE, ['user_type' => 'D'], $options);\n\n $result = !empty($query_result) ? $query_result : array();\n return $result;\n }", "public function getDriver() {\n return $this->_driver;\n }", "public function getDriver() {\n return $this->_driver;\n }", "protected static final function getUserAgentStats () {\r\n if (count (self::$objUserAgentCapability) == 0) {\r\n // Set the PHPUserAgentSniffer object;\r\n $userAgentPHPCapabilityObject = new phpSniff;\r\n\r\n // Get information back from it!\r\n self::$objUserAgentCapability['browser_properties'] = $userAgentPHPCapabilityObject->property ();\r\n self::$objUserAgentCapability['browser_features'] = $userAgentPHPCapabilityObject->_feature_set;\r\n self::$objUserAgentCapability['browser_quirks'] = $userAgentPHPCapabilityObject->_quirks;\r\n\r\n // Do return ...\r\n return self::$objUserAgentCapability;\r\n } else {\r\n \t// Do return ...\r\n return self::$objUserAgentCapability;\r\n }\r\n }", "function plg_gustData() {\r\n\r\n //ip\r\n /* $retuenDat = gethostbyname($_SERVER['SERVER_NAME']);\r\n\r\n $browser = get_browser(null, true);\r\n\r\n //$browser\r\n $browser[browser]\r\n //$browser version\r\n $browser[version]\r\n\r\n\r\n\r\n\r\n //os\r\n $browser[platform]\r\n\r\n\r\n\r\n\r\n print_r($browser);*/\r\n}", "function virustotalscan_info()\r\n{\r\n return array(\r\n\t\t\"name\"\t\t\t=> \"Virus Total Scanner\",\r\n\t\t\"description\"\t=> \"Scans new attachments and links by using VirusTotal.com's API.\",\r\n\t\t\"website\"\t\t=> \"http://mybb.ro\",\r\n\t\t\"author\"\t\t=> \"Surdeanu Mihai\",\r\n\t\t\"authorsite\"\t=> \"http://mybb.ro\",\r\n\t\t\"version\"\t\t=> \"1.1\",\r\n \"guid\" => \"1572096dc083bc7f00f2b4f5ae3837f7\",\r\n\t\t\"compatibility\"\t=> \"16*\"\r\n\t);\r\n}", "function getDriver($name = null);", "protected function detectUserDeviceDetails()\n {\n $userAgent = $_SERVER['HTTP_USER_AGENT']; \n \n if($userAgent) \n { \n\n \n /*\n * I have uncommented this to add new detection engine this is old code.. so In case any error comment the new detection code and uncomment the old one.\n * start\n *\n */\n \n //Iniate device detection using Device detection adapter\n //$deviceDetector = Nexva_DeviceDetection_Adapter_TeraWurfl::getInstance();\n \n //Detect the device\n //$exactMatch = $deviceDetector->detectDeviceByUserAgent($userAgent);\n \n //Device barand name\n //$this->_deviceDetails = $deviceDetector->getDeviceAttribute('product_info');\n \n \n /*\n * I have uncommented this to add new detection engine this is old code.. so In case any error comment the new detection code and uncomment the old one.\n * end\n *\n */\n \n \n \n \n /*\n * Detection Script Start we need to find a better way to implemnt this as i am doing this in hurry bcos shaun need to put this live up\n *\n *\n */\n \n $session = new Zend_Session_Namespace(\"devices_partner_web\");\n $deviceId = $session->deviceId;\n\n \n \n if(!isset($deviceId) and $session->is_check == false) {\n \n \t$deviceDetection = Nexva_DeviceDetection_Adapter_HandsetDetection::getInstance();\n \t$deviceInfo = $deviceDetection->getNexvaDeviceId($_SERVER['HTTP_USER_AGENT']);\n \t//If this is not a wireless device redirect to the main site\n \n \n \t// get properties from the Wurfl\n \t$brandName = $deviceInfo->brand;\n \t$modelName = $deviceInfo->model;\n \t$marketing_name = $deviceInfo->marketing_name;\n \t$inputMethod = $deviceInfo->pointing_method;\n \t$osVersion = $deviceInfo->device_os_version;\n \t$exactMatch = $deviceInfo;\n \t$deviceOs = $deviceInfo->platform;\n \t//get nexva device Id\n \t$deviceId = $deviceInfo->id;\n \t$isWireless = $deviceInfo->is_mobile_device;\n \t\n \t$session->deviceId = $deviceId;\n \t$session->is_mobile_device = $isWireless;\n \t$session->device_os_version =\n \t$session->platform = $deviceOs;\n \t$session->device_os_version = $osVersion;\n \t$session->pointing_method = $inputMethod;\n \t$session->marketing_name = $marketing_name;\n \t$session->model = $modelName;\n \t$session->brand = $brandName;\n \t$session->is_check = true;\n \t\n } else {\n // get properties from the Wurfl\n\n $deviceOs = $session->platform;\n $deviceId = $session->deviceId;\n $isWireless = $session->is_mobile_device;\n $deviceOs = $session->platform;\n $osVersion = $session->device_os_version;\n $inputMethod = $session->pointing_method;\n $marketing_name = $session->marketing_name;\n $brandName = $session->brand;\n $modelName = $session->model;\n }\n \n \t\n\n \t\n \n $this->_deviceDetails['brand_name'] = $brandName;\n $this->_deviceDetails['device_os_version'] = $osVersion;\n $this->_deviceDetails['device_os'] = $deviceOs;//($deviceOs == 'BlackBerry' ? 'RIM OS' : $deviceOs);\n $this->_deviceDetails['model_name'] = $modelName;\n $this->_deviceDetails['brand_name'] = $brandName;\n $this->_deviceDetails['pointing_method'] = $inputMethod;\n $this->_deviceDetails['is_wireless_device'] = $isWireless;\n \n \n \n // $this->_deviceDetails =\n \n \n /*\n * Detection Script End\n *\n *\n */\n \n\n /*\n if( $deviceOs == 'BlackBerry' && $osVersion == '10.0'){\n \n \n $skip_action_names = array('index');\n \n if (in_array( $this->getRequest ()->getActionName (), $skip_action_names ))\n {\n $this->_redirect('http://'. $_SERVER ['HTTP_HOST'].'/index/device-not-found'); \n }\n \n \n\n \n }\n \n \n */\n \n \n \n \n \n \n \n\n }\n else\n {\n $this->_deviceDetails = null;\n }\n \n }", "public function setOriginalDriver($driver)\n {\n $this->_originalDriver = $driver;\n }", "function VehicleDetails(){\n\t\tparent::getVehicleDetails();\n\t\t$this -> addVehicleDetails();\n\t}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getDriverName()\n {\n return isset($this->driverName) ? $this->driverName : null;\n }", "public function getExtraInformation() {\n return $this->extra;\n }", "public function show(driver $driver)\n {\n //\n }", "public function show(driver $driver)\n {\n //\n }", "function getCapabilities() ;", "abstract public function information();", "protected function info()\n\t\t{\n\t\t}", "abstract protected function driverKey();", "private function setInfoKeys() {\n\t\tif (!empty(self::$s_aInfoKeys)) {\n\t\t\treturn;\n\t\t}\n\n\t\tself::$s_aInfoKeys = array(\n\t\t\t'ID', 'ProfileID', 'Nickname', 'Level', 'TempLevel',\n\t\t\t'IP', 'JoinTime', 'LogInTime',\n\t\t);\n\t}", "public function get_extra_select() {\n return [\n 'choice_id' => $this->usechoiceid,\n 'response' => $this->useresponse,\n 'rank' => $this->userank\n ];\n }", "public function getDrivers()\n {\n return $this->drivers;\n }", "public function driver(){\n\n\t\t// belongsTo(RelatedModel, foreignKey = driver_id, keyOnRelatedModel = id)\n\t\treturn $this->belongsTo(Driver::class);\n\t}", "function php_get_browser($agent = NULL)\n {\n $agent=$agent?$agent:$_SERVER['HTTP_USER_AGENT'];\n $yu=array();\n $q_s=array(\"#\\.#\",\"#\\*#\",\"#\\?#\");\n $q_r=array(\"\\.\",\".*\",\".?\");\n $brows =& $this->php_get_browsercap_ini();\n\n if(!empty($brows) and $brows and is_array($brows))\n {\n foreach($brows as $k=>$t)\n {\n if(fnmatch($k,$agent))\n {\n $yu['browser_name_pattern']=$k;\n $pat=preg_replace($q_s,$q_r,$k);\n $yu['browser_name_regex']=strtolower(\"^$pat$\");\n foreach($brows as $g=>$r)\n {\n if($t['Parent']==$g)\n {\n foreach($brows as $a=>$b)\n {\n if($r['Parent']==$a)\n {\n $yu=array_merge($yu,$b,$r,$t);\n foreach($yu as $d=>$z)\n {\n $l=strtolower($d);\n $hu[$l]=$z;\n }\n }\n }\n }\n }\n \n break;\n }\n }\n }\n \n return $hu;\n }", "public function driver();", "protected function initalDriverProviders()\n {\n $this->driverProviderMap = [\n 'weibo' => __NAMESPACE__.'\\\\Providers\\\\WeiboProvider',\n 'wechat' => __NAMESPACE__.'\\\\Providers\\\\WechatProvider',\n 'qq' => __NAMESPACE__.'\\\\Providers\\\\QQProvider',\n 'github' => __NAMESPACE__.'\\\\Providers\\\\GithubProvider',\n 'facebook' => __NAMESPACE__.'\\\\Providers\\\\FacebookProvider',\n 'google' => __NAMESPACE__.'\\\\Providers\\\\GoogleProvider',\n ];\n }", "public function extra_voor_verp()\n\t{\n\t}", "protected function getBestDriver()\n\t{\n\t\treturn $this->getChild('LazyDataMapper\\Tests\\Driver', 5);\n\t}", "public function getDriver()\n {\n return $this->hasOne(Driver::className(), ['id_driver' => 'id_driver']);\n }", "function phpTrafficA_ExtractAgent($agt,$browser_id,$browser_label,$os_id,$os_label) {\n// Init default values\n$new_agt_browser=\"???\"; // Do not change these ??? . It is used in other scripts\n$new_agt_os=\"???\"; // Do not change these ??? . It is used in other scripts\nif (trim($agt) == \"\") {\n\t$new_agt_browser=\"Crawler\";\n} else if ( trim($agt) == \"Mozilla/4.0 (compatible;)\") {\n\t$new_agt_browser=\"Crawler\";\n} else {\n\t// Check for browser\n\tfor ($cpt = 0; $cpt < count($browser_id) ; $cpt++) {\n\t\tif (strpos($agt,$browser_id[$cpt]) !== FALSE) {\n\t\t\t$new_agt_browser=$browser_label[$cpt];\n\t\t\tbreak;\n\t\t}\n\t}\n}\nif (($new_agt_browser==\"Googlebot\") || ($new_agt_browser==\"Crawler\") || ($new_agt_browser==\"Google Adwords\")) {\n\t$new_agt_os = $new_agt_browser;\n} else {\n\t// Check for OS\n\tfor ($cpt = 0; $cpt < count($os_id) ; $cpt++) {\n\t\tif (strpos($agt,$os_id[$cpt]) !== FALSE) {\n\t\t\t$new_agt_os=$os_label[$cpt];\n\t\t\tbreak;\n\t\t}\n\t}\n}\nreturn($new_agt_browser.\";\".$new_agt_os); # Systax is= WebBrowser;OS\n}", "public static function getAvailableDrivers()\n {\n return array_keys(self::$_driverMap);\n }", "public function getDriverName() {\n return $this->driverName;\n }", "public function driver()\n {\n return $this->hasOne(Driver::class, 'id', 'driver_id');\n }", "public function getdriver()\n {\n return $this->driver;\n }", "function vitero_get_extra_capabilities() {\n return array();\n}", "protected function installDriversIfEnabled(): void\n {\n $reflection = new \\ReflectionClass($this);\n $reader = new AnnotationReader();\n\n $annotation = $reader->getClassAnnotation($reflection, Drivers::class);\n\n if (!$annotation instanceof Drivers) {\n return;\n }\n\n foreach ($annotation->install as $driver) {\n $this->{$driver} = $this->drivers->get($driver);\n }\n }", "public function getBusDriverID(){return $this->bus_driver_ID;}", "function getadvlic_no() {\n return $this->advlic_no;\n }", "private function checkDriver($driver)\n {\n return in_array($driver, $this->model->drivers) ? true : false;\n }", "public function GetApplyingDrivers() {\n return $this->db->LoadDriversFromQuery(\"SELECT * FROM Drivers WHERE id IN (SELECT driverId FROM DriverApplications WHERE sponsorId={$this->GetID()});\");\n }", "public function driver($driver = null)\n\t{\n\t\treturn $this->store($driver);\n\t}", "public function driver()\n {\n return $this->belongsTo('App\\Models\\Driver');\n }", "private function setDriver($params)\n {\n if (isset($params['driver'])) {\n return Cache::driver($params['driver']);\n } \n return Cache::driver();\n }", "public static function get_drivers() {\n return array(\n '' => get_string('choosedots'),\n 'native/mysqli' => \\moodle_database::get_driver_instance('mysqli', 'native')->get_name(),\n 'native/mariadb' => \\moodle_database::get_driver_instance('mariadb', 'native')->get_name(),\n 'native/pgsql' => \\moodle_database::get_driver_instance('pgsql', 'native')->get_name(),\n 'native/oci' => \\moodle_database::get_driver_instance('oci', 'native')->get_name(),\n 'native/sqlsrv' => \\moodle_database::get_driver_instance('sqlsrv', 'native')->get_name()\n );\n }", "public function getDriver()\n {\n return $this->_list->getDriver();\n }", "protected function systemInfo()\n {\n $this->osname = php_uname('s');\n $this->hostname = php_uname('n');\n $this->osrelease = php_uname('r');\n $this->osversion = php_uname('v');\n $this->ostype = php_uname('m');\n }", "function get_drivres_list()\r\n\t{\r\n\t\t//get the driver details\r\n\t\t$sql=\"select b.name,b.employee_id,b.contact_no from m_employee_roles as a\r\n\t\t\t\t\tjoin m_employee_info as b on a.role_id=b.job_title2\r\n\t\t\t\t\twhere a.role_id=? and b.is_suspended=0\";\r\n\t\t\r\n\t\treturn $driver_details=$this->db->query($sql,array('7'))->result_array();\r\n\t\t\r\n\t}", "public function get_driver()\n\t{\n\t\treturn $this->driver;\n\t}", "public function show(Driver $driver)\n {\n //\n }", "public function getDriverName()\n\t{\n\t\treturn $this->neoeloquent->getDriverName();\n\t}", "public function driver($driver = null);", "public function driver($driver = null);", "public function driver($driver = null);", "public function getDriver()\n\t{\n\t\treturn $this->driver;\n\t}", "abstract public function getDefaultDriver();" ]
[ "0.6140465", "0.5506972", "0.5382475", "0.5332417", "0.5307723", "0.5262936", "0.5234379", "0.5224488", "0.51931757", "0.5156229", "0.5153152", "0.51366144", "0.5080358", "0.5074306", "0.5049743", "0.50208026", "0.50196844", "0.50185424", "0.49569607", "0.4949823", "0.49482998", "0.491605", "0.4914064", "0.4896073", "0.48393053", "0.48274118", "0.48223028", "0.4804089", "0.4802411", "0.48003364", "0.47919634", "0.47912607", "0.47803453", "0.47467363", "0.4709305", "0.4707405", "0.4703902", "0.46982753", "0.46894214", "0.46779522", "0.46779522", "0.46754897", "0.4672551", "0.46571314", "0.46496603", "0.4634332", "0.4625216", "0.46163663", "0.46152472", "0.46152472", "0.46152472", "0.46152472", "0.4614822", "0.4614822", "0.4614822", "0.4614437", "0.4614437", "0.46035725", "0.46020296", "0.45989084", "0.45989084", "0.45920995", "0.45834202", "0.4578393", "0.45762452", "0.45746997", "0.4557338", "0.45569605", "0.45559776", "0.455596", "0.4551117", "0.45472133", "0.45442122", "0.45433578", "0.454236", "0.45396388", "0.45365196", "0.4522463", "0.45218346", "0.45212597", "0.45198706", "0.45129767", "0.45126715", "0.45029086", "0.4492974", "0.44901553", "0.44890672", "0.44834206", "0.44831976", "0.44807115", "0.4472504", "0.44660655", "0.44659668", "0.4463398", "0.4461874", "0.44557592", "0.44503558", "0.44503558", "0.44503558", "0.44490996", "0.44310904" ]
0.0
-1
unset additional Information on additional driver(s), possibly including frequent renter number.
public function unsetAdditional($index) { unset($this->additional[$index]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function clear()\n {\n self::$drivers = array();\n }", "public function clearGearInfos()\n\t{\n\t\t$this->collGearInfos = null; // important to set this to NULL since that means it is uninitialized\n\t}", "private function resetSkus()\n {\n foreach ($this->options as $op=>$junk) {\n if (preg_match('#SellerSKUList#', $op)) {\n unset($this->options[$op]);\n }\n }\n }", "public static function clearDriver()\n {\n self::$driver = null;\n }", "public function cleanAdditionalInformation($observer)\r\n {\r\n $payment = $observer->getEvent()->getPayment();\r\n if ($payment) {\r\n $data = $observer->getEvent()->getInput();\r\n $klarna = Mage::getModel('klarna/klarna');\r\n $klarna->setQuote($payment->getQuote());\r\n $klarna->clearInactiveKlarnaMethodsPostvalues($data,$data->getMethod());\r\n }\r\n }", "public function unsetAgentLead()\n {\n $customers = LeadDetails::where('saveType','recipient')->get();\n $cunt = 0;\n $Acunt = 0;\n $Dcunt = 0;\n foreach ($customers as $customer) {\n $id=$customer->_id;\n if(isset($customer->agent))\n {\n LeadDetails::where('_id',new ObjectID($id))->unset('agent');\n $Acunt++;\n }\n if(isset($customer->dispatchDetails))\n {\n LeadDetails::where('_id', new ObjectID($id))->update(array('dispatchDetails.agent' => (string)'NA'));\n $Dcunt++;\n }\n $cunt++;\n \n }\n echo 'count'.$cunt .'Agnt Count'.$Acunt.'In Ag count'.$Dcunt;\n }", "protected function unsetFields()\n\t{\n unset(\n $this['headshot_id'], $this['created_at'],\n $this['updated_at'], $this['slug']\n );\n\t}", "function action_clear() {\n\t\t\t$this->SESS->remove('objbrowser', 'choosen');\n\t\t}", "public function unsetEditDealerGlobals() {\n\t\t// Unset sticky form elements upon page reload\n\t\tunset(\n\t\t\t$_SESSION['edit_dealer_error']\t,\n\t\t\t$_SESSION['add_dealer_error']\t,\n\t\t\t$_SESSION['edit_dealerID']\t\t,\n\t\t\t$_SESSION['edit_dealername']\t,\n\t\t\t$_SESSION['edit_dealercode']\t,\n\t\t\t$_SESSION['edit_dealeraddress']\t,\n\t\t\t$_SESSION['edit_dealercity']\t,\n\t\t\t$_SESSION['edit_state_ID']\t\t,\n\t\t\t$_SESSION['edit_state_name']\t,\n\t\t\t$_SESSION['edit_dealerzip']\t\t,\n\t\t\t$_SESSION['edit_dealerphone']\t,\n\t\t\t$_SESSION['edit_regionID']\t\t,\n\t\t\t$_SESSION['edit_region_name']\t,\n\t\t\t$_SESSION['edit_district_ID']\t,\n\t\t\t$_SESSION['edit_district_name']\t,\n\t\t\t$_SESSION['edit_area_ID']\t\t,\n\t\t\t$_SESSION['edit_area_name']\t\t,\n\t\t\t$_SESSION['process_dealercode']\n\t\t);\n\t}", "function action_remove() {\n\t\t\t$data = UTIL::get_post('data');\n\t\t\t$id = (int)$data['rem_id'];\n\t\t\t$table = $data['rem_table'];\n\t\t\t\n\t\t\t$choosen = $this->SESS->get('objbrowser', 'choosen');\n\t\t\tunset($choosen[$table][$id]);\n\t\t\tif (count($choosen[$table]) == 0) unset($choosen[$table]);\n\t\t\t\n\t\t\t$this->SESS->set('objbrowser', 'choosen', $choosen);\n\t\t}", "private function _unsetSetup()\n\t{\n\t\tforeach ( $this->_setup as $setup )\n\t\t{\n\t\t\t$setup->disconnect();\n\t\t}\n\n\t\t$this->_setup = null;\n\t\t$this->_setup = array();\n\t}", "public function resetValues(){\n $this->categoryFingerprints = null;\n //$this->threshold=35;\n\n }", "public function reset()\n {\n $this->values[self::_MONSTER_INFO] = null;\n $this->values[self::_LOOTS] = array();\n }", "public function reset()\n {\n $this->values[self::_INFO] = null;\n }", "public function setOriginalDriver($driver)\n {\n $this->_originalDriver = $driver;\n }", "protected function unsetFields()\n {\n }", "function private_unset()\n{\n\n\tunset($_SESSION['search_adv']);\n\tunset($_SESSION['adver_type']);\n\n\tunset($_SESSION['catinfolist']);\n\tunset($_SESSION['url_of_list_pro']);\n\n\tunset($_SESSION['catprojectlist']);\n\t\n\tunset($_SESSION['search_name']);\n\tunset($_SESSION['search_code']);\n\tunset($_SESSION['search_type']);\n\t\n\tunset($_SESSION['txtInfo_Search']);\t\t\n}", "public function destroy(driver $driver)\n {\n //\n }", "public function cleanup() {\n\t\tforeach ( array(\n\t\t\t'leadin_portal_domain',\n\t\t\t'leadin_portalId',\n\t\t\t'leadin_pluginVersion',\n\t\t\t'hubspot_affiliate_code',\n\t\t\t'hubspot_acquisition_attribution',\n\t\t) as $option_name\n\t\t) {\n\t\t\tif ( get_option( $option_name ) ) {\n\t\t\t\tdelete_option( $option_name );\n\t\t\t}\n\t\t}\n\t}", "public function removeFindThisAnywhere()\n\t{\n\t\tif(isset($this->masterArray[$this->ref_wildCard]))\n\t\t{\n\t\t\tunset($this->masterArray[$this->ref_wildCard]);\n\t\t}\n\t}", "protected function avantSuppression() {\n $passagers = $this->getListePassagers();\n foreach ($passagers as $passager) {\n $passager->supprimer();\n }\n }", "public function reset()\n {\n $this->values[self::_UID] = null;\n $this->values[self::_NAME] = null;\n $this->values[self::_LEVEL] = null;\n $this->values[self::_AVATAR] = null;\n $this->values[self::_HEROES] = array();\n }", "public function unsetProvider();", "function lessie_html_head_alter(&$head_elements) {\r\n unset($head_elements['system_meta_generator']);\r\n}", "public function hideExtraField()\n {\n $this->houses=false;\n $this->jobs_training=false;\n $this->motorcycles =false;\n $this->cars = false;\n $this->offices=false;\n $this->lands_plots=false;\n return;\n }", "public function reset()\n {\n $this->values[self::_INSTANCE_INFO] = null;\n $this->values[self::_RSEED] = null;\n $this->values[self::_LOOTS] = array();\n $this->values[self::_HP_DROP] = array();\n }", "abstract protected function handle_unset($name);", "public function reset()\n {\n $this->values[self::_INFO] = null;\n $this->values[self::_WORSHIP] = null;\n $this->values[self::_DROP_INFO] = null;\n $this->values[self::_TO_CHAIRMAN] = null;\n }", "public function reset()\n {\n $this->values[self::_HERO_ID] = null;\n $this->values[self::_DYNA] = null;\n }", "public function remove_caps() {\n global $wp_roles;\n\n // TODO: see easy-digital-downloads plugin source codes for example implementation.\n }", "public function clearGearCompanyInfos()\n\t{\n\t\t$this->collGearCompanyInfos = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function remove_options()\n {\n }", "public function __unset($_name);", "public function reset()\n {\n $this->values[self::_UID] = null;\n $this->values[self::_NAME] = null;\n $this->values[self::_HERO] = null;\n }", "public function reset()\n {\n $this->values[self::_HEROS] = array();\n }", "public function resetVisitor(): void\n {\n $this->tables = array();\n $this->isSelectVisited = false;\n }", "public function reset()\n {\n $this->values[self::_HP_PERC] = null;\n $this->values[self::_MP_PERC] = null;\n $this->values[self::_CUSTOM_DATA] = null;\n }", "public function clearPainRatings()\n {\n $this->collPainRatings = null; // important to set this to NULL since that means it is uninitialized\n }", "static public function __unsetRegistry()\n {\n self::$_registry = null;\n }", "public function reset()\n {\n $this->values[self::_INFO] = null;\n $this->values[self::_ADDR] = null;\n }", "public function resetHelperMocks()\n {\n $names = array_keys($this->_registeredHelperMocks);\n foreach ($names as $n) {\n $this->unsetHelper($n);\n }\n }", "private function cObjData_unsetFlagTreeview()\n {\n // UNset the treeview field\n $key = $this->pObj->prefixId . '.flag_treeview';\n unset( $this->pObj->cObj->data[ $key ] );\n\n // DRS\n if ( $this->pObj->b_drs_cObjData )\n {\n $prompt = 'cObj->data[ ' . $key . '] is unset.';\n t3lib_div::devlog( '[INFO/COBJ] ' . $prompt, $this->pObj->extKey, 0 );\n }\n // DRS\n }", "public function unsetAll() {\n\t\tparent::unsetAll();\n\t}", "function ClearSessionSelection($parm) {\n\t\t$_SESSION[\"sel_dealers_reports_$parm\"] = \"\";\n\t\t$_SESSION[\"rf_dealers_reports_$parm\"] = \"\";\n\t\t$_SESSION[\"rt_dealers_reports_$parm\"] = \"\";\n\t}", "public function __unset( string $name ) {\n\t\t$this->data = array_diff_key( $this->data, [ $name => $this->data[ $name ] ] );\n\t}", "public function __unset($name) {\n // echo \"Unsetting '$name'\\n\";\n unset($_SESSION[$this->myedb_session_key][$name]);\n }", "public function clearExperts()\n\t{\n\t\t$this->collExperts = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function unpopulate();", "function remove_ldap_count(&$data) {\n if(is_string($data))\n return;\n\n unset($data['count']);\n\n foreach($data as $k=>$v) {\n remove_ldap_count($data[$k]);\n }\n}", "function wpfifc_remove_option() {\r\n\r\n\t\treturn;\r\n\t}", "public function __unset($name)\n {\n echo \"Unsetting '$name'<br>\";\n unset($this->data[$name]);\n }", "public function unsetProperty()\n\t{\n\t\t$this -> tableName = '';\n\t\t$this -> databaseName = '';\n\t\t$this -> arrNewData = array();\n\t\t$this -> arrOldData = array();\n\t}", "public function clearGearReviews()\n\t{\n\t\t$this->collGearReviews = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function destroy(Driver $driver)\n {\n //\n }", "function ResetAdvancedSearchParms() {\n\t\t$this->tanggal->AdvancedSearch->UnsetSession();\n\t\t$this->auc_number->AdvancedSearch->UnsetSession();\n\t\t$this->start_bid->AdvancedSearch->UnsetSession();\n\t\t$this->close_bid->AdvancedSearch->UnsetSession();\n\t\t$this->lot_number->AdvancedSearch->UnsetSession();\n\t\t$this->chop->AdvancedSearch->UnsetSession();\n\t\t$this->grade->AdvancedSearch->UnsetSession();\n\t\t$this->estate->AdvancedSearch->UnsetSession();\n\t\t$this->sack->AdvancedSearch->UnsetSession();\n\t\t$this->netto->AdvancedSearch->UnsetSession();\n\t\t$this->open_bid->AdvancedSearch->UnsetSession();\n\t\t$this->last_bid->AdvancedSearch->UnsetSession();\n\t\t$this->highest_bid->AdvancedSearch->UnsetSession();\n\t\t$this->enter_bid->AdvancedSearch->UnsetSession();\n\t\t$this->auction_status->AdvancedSearch->UnsetSession();\n\t\t$this->gross->AdvancedSearch->UnsetSession();\n\t\t$this->row_id->AdvancedSearch->UnsetSession();\n\t}", "public function reset()\n {\n $this->values[self::_USER_ID] = null;\n $this->values[self::_SUMMARY] = null;\n $this->values[self::_RANK] = null;\n $this->values[self::_WIN_CNT] = null;\n $this->values[self::_GS] = null;\n $this->values[self::_IS_ROBOT] = null;\n $this->values[self::_HEROS] = array();\n }", "public function unsetMetadata(): void\n {\n $this->metadata = [];\n }", "private function reset(){\n\n\t\tforeach($this as $k=>$v) unset($this->$k);\n\n\t\t$this::$map = $this->maper();\n\n\t\t$this->name = \"\";\n\n\t\t$this->address = [];\n\n\t\t$this->tableclass();\n\n\t}", "public function reset()\n {\n $this->values[self::_UID] = null;\n $this->values[self::_DPS] = null;\n }", "function dbplus_unselect($relation)\n{\n}", "public function tear_down() {\n\t\tforeach ( static::$original_options as $option => $original_value ) {\n\t\t\tupdate_option( $option, $original_value );\n\t\t}\n\n\t\tparent::tear_down();\n\t}", "function resetCountAdded()\n {\n\t$this->start_count_vehicles = 0;\n\t$this->stop_count_vehicles = 0;\n\n\t$this->count_added_by_level = array();\n\t$this->start_count_added_by_level = array();\n\t$this->stop_count_added_by_level = array();\n\tforeach ($this->getSchema()->getLevels() as $level)\n\t{\n\t $this->count_added_by_level[$level] = 0;\n\t $this->start_count_added_by_level[$level] = 0;\n\t $this->stop_count_added_by_level[$level] = 0;\n\t}\n }", "function top10_remove() {\r\n//delete_option('omekafeedpull_omekaroot');\r\n}", "public function removePerformer($value)\n {\n $key = array_search($value, $this->performers);\n if($key !== false) {\n unset($this->performers[$key]);\n }\n }", "public function unsetUtilityMeter($index)\n {\n unset($this->utilityMeter[$index]);\n }", "public function unsetSelectionUidValues(): void\n {\n $this->selectionUidValues = [];\n }", "public function reset()\n {\n $this->values[self::system] = null;\n $this->values[self::platform] = null;\n $this->values[self::channel] = null;\n $this->values[self::version] = null;\n }", "public function reset()\n {\n $this->values[self::_SKILL_LEVELUP_CHANCE] = null;\n $this->values[self::_SKILL_LEVELUP_CD] = null;\n $this->values[self::_RESET_TIMES] = null;\n $this->values[self::_LAST_RESET_DATE] = null;\n }", "function resetCopyInfos()\n {\n $this->dn = 'new';\n foreach ($this->plugins as &$plugin) {\n $plugin->resetCopyInfos();\n }\n unset($plugin);\n }", "function uninstall() {\nunsubscribeFromEvent($this->name, 'HOURLY');\nSQLExec('DROP TABLE IF EXISTS camshoter_devices');\nSQLExec('DROP TABLE IF EXISTS camshoter_config');\nSQLExec('DROP TABLE IF EXISTS camshoter_recognize');\nSQLExec('DROP TABLE IF EXISTS camshoter_people');\n\n\n parent::uninstall();\n\n }", "public function reset()\n {\n $this->values[self::_BATTLES] = array();\n }", "public function __unset($name)\n {\n // Dont' allow to unset attributes Ruts\n }", "public function reset()\n {\n $this->values[self::_HERO] = null;\n }", "public function reset()\n {\n $this->values[self::_HERO] = null;\n }", "public function removeObserver() {\n //$this->__observers = array();\n foreach($this->__observers as $obj) {\n unset($obj);\n }\n }", "public function reset()\n {\n $this->values[self::_RAID_ID] = null;\n $this->values[self::_STAGE_INDEX] = null;\n $this->values[self::_WAVE_INDEX] = null;\n $this->values[self::_HP_INFO] = array();\n }", "public function reset() {\n $this->values[self::NAME] = null;\n $this->values[self::TIP_RTBUS] = null;\n }", "private function nuke()\n {\n \\lib\\Model\\ModelCache::clear($this);\n $this->__new=true;\n $this->__fields=array();\n $this->__isDirty=false;\n $this->__dirtyFields=array();\n }", "protected function tearDown()\r\n {\r\n $this->driver = null;\r\n parent::tearDown();\r\n }", "function uninstall()\n {\n \t// For now nothing in unistall, because we don't want user lose the data. \n }", "public function reset()\r\n\t{\r\n\t\t$this->first = null;\r\n\t\t$this->alreadyIncluded = array();\r\n\t\t$this->depths = array();\r\n\t}", "public function resetReportTypes()\n {\n foreach ($this->options as $op => $junk) {\n if (preg_match('#ReportTypeList#', $op)) {\n unset($this->options[$op]);\n }\n }\n }", "public function clearPrincipalInvestigators() {\r\n global $db;\r\n\r\n $sql = sprintf(\"DELETE FROM `forms_tracking_coresearchers`\r\n WHERE `form_tracking_id` = %s AND isPi = 1\", $this->trackingFormId);\r\n\r\n $result = $db->Execute($sql);\r\n\r\n if(!$result) {\r\n echo (\"Unable to clear principal invesitgators from database\");\r\n }\r\n }", "public function reset()\n {\n $this->values[self::_HEROES] = array();\n }", "public function CleanHistoryInfo()\n\t{\n\t $this->m_RecordId = null;\n $this->m_CurrentPage = 1;\n $this->m_SearchRule = null;\n $this->m_SortRule = null;\n $this->m_NoHistoryInfo = true;\n\t}", "function unsetArrays()\n{\n\t//clear popular features global array\n\tif (isset($_SESSION[\"popular-type\"][0]) == true)\n\t{\n\t\t$upperBound = sizeof($_POST[\"popular-type\"]);\n\n\t\tfor ($i = 1; $i <= $upperBound; $i++)\n\t\t{\n\t\t\tunset($_SESSION[\"popular-type\"][$i]);\n\t\t}\n\t}\n\t\n\t//clear other features global array\n\tif (isset($_SESSION[\"other-type\"][0]) == true)\n\t{\n\t\t$upperBound = sizeof($_POST[\"other\"]);\n\n\t\tfor ($i = 1; $i <= $upperBound; $i++)\n\t\t{\n\t\t\tunset($_SESSION[\"other-type\"][$i]);\n\t\t}\n\t}\n}", "public function remove_license_data() {\r\n\t$license_data = $this->get_license_options();\r\n\tforeach($license_data as $key => $value) {\r\n\t\t//delete_site_option($this->plugin_config['plugin_prefix'].'_'.$key);\r\n\t\t$this->remove_license_option($key);\r\n\t}\r\n}", "function __unset($name) {\n\t\tunset($this->object[$name]);\n\t}", "public function unsetAllAttributeValue()\n {\n foreach ($this->attributes as $key=>$val) {\n $this->$key = null;\n }\n }", "public function removeAllAttributes()\n {\n $this->attr = [];\n }", "protected function forgetAddedModels()\n {\n $this->quantities = $this->modelPopulators = [];\n }", "public function __unset($name)\n\t{\n\t\tif ($field = $this->field($name, TRUE))\n\t\t{\n\t\t\t// We don't want to unset the keys, because \n\t\t\t// they are assumed to exist. Just set them back to defaults\n\t\t\t$this->_original[$field] = $this->meta()->defaults[$field];\n\t\t\t\n\t\t\t// Ensure changed and retrieved data is cleared\n\t\t\t// This effectively clears the cache and any changes\n\t\t\tif (array_key_exists($name, $this->_changed))\n\t\t\t{\n\t\t\t\tunset($this->_changed[$name]);\n\t\t\t}\n\t\t\t\n\t\t\tif (array_key_exists($name, $this->_retrieved))\n\t\t\t{\n\t\t\t\tunset($this->_retrieved[$name]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// This doesn't matter\n\t\tif (array_key_exists($name, $this->_unmapped))\n\t\t{\n\t\t\tunset($this->_unmapped[$name]);\n\t\t}\n\t}", "public function detachCard(Driver $driver): void\n {\n Log::warning(\"Going to detach card [{$driver->card_id}] from driver [{$driver->id}]\");\n\n $this->handleTransaction(function () use ($driver): void {\n $this->closeDriverCardPeriod($driver, $driver->card);\n\n $driver->card_id = null;\n\n $this->getRepository()->save($driver);\n });\n\n Log::warning(\"Card was detached from driver [{$driver->id}]\");\n }", "public function __unset($sName)\n {\n }", "public function reset()\n {\n $this->values[self::_TEAM_ID] = null;\n $this->values[self::_PLAYER] = null;\n $this->values[self::_HERO_BASES] = array();\n $this->values[self::_HERO_DYNAS] = array();\n $this->values[self::_RES_GOT] = null;\n $this->values[self::_SVR_ID] = null;\n $this->values[self::_DISPLAY_SVR_ID] = null;\n $this->values[self::_SVR_NAME] = null;\n }", "function capabilities_cleanup($component, $newcapdef=NULL) {\n\n $removedcount = 0;\n\n if ($cachedcaps = get_cached_capabilities($component)) {\n foreach ($cachedcaps as $cachedcap) {\n if (empty($newcapdef) ||\n array_key_exists($cachedcap->name, $newcapdef) === false) {\n\n // Remove from capabilities cache.\n if (!delete_records('capabilities', 'name', $cachedcap->name)) {\n error('Could not delete deprecated capability '.$cachedcap->name);\n } else {\n $removedcount++;\n }\n // Delete from roles.\n if($roles = get_roles_with_capability($cachedcap->name)) {\n foreach($roles as $role) {\n if (!unassign_capability($cachedcap->name, $role->id)) {\n error('Could not unassign deprecated capability '.\n $cachedcap->name.' from role '.$role->name);\n }\n }\n }\n } // End if.\n }\n }\n return $removedcount;\n}", "public function __unset($name);", "public function vider(): void\n {\n $this->preparation = null;\n $this->stockage = null;\n }", "public function resetCharacteristics() {\n\t\t$characteristics = array_combine(array(\n\t\t\t'contains_model', 'contains_datasource', 'contains_behavior', 'contains_controller',\n\t\t\t'contains_component', 'contains_view', 'contains_helper', 'contains_theme', 'contains_vendor',\n\t\t\t'contains_shell', 'contains_test', 'contains_lib', 'contains_resource', 'contains_config'\n\t\t), array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));\n\n\t\t$this->out(__('Resetting all characteristics'));\n\t\t$this->Package->updateAll($characteristics);\n\n\t\t$this->out(__('* Successfully reset all characteristics'));\n\t\t$this->_stop();\n\t}", "public function __unset($name)\n {\n \tunset($this->_data[$name]);\n }", "public function reset()\n {\n $this->values[self::contractorstatics] = null;\n $this->values[self::stores] = array();\n $this->values[self::visited] = array();\n $this->values[self::review_info] = array();\n $this->values[self::customer_info] = array();\n $this->values[self::mark_price_info] = array();\n $this->values[self::more_url] = null;\n $this->values[self::order_tracking] = array();\n }" ]
[ "0.5567827", "0.5523395", "0.55010164", "0.54787475", "0.53699106", "0.534435", "0.52958125", "0.5218706", "0.51977974", "0.51753545", "0.5159441", "0.51590055", "0.51309115", "0.510594", "0.5103652", "0.5097015", "0.5089985", "0.507624", "0.5049205", "0.50483096", "0.5033813", "0.4977078", "0.4971387", "0.49499455", "0.49475247", "0.4941146", "0.49315643", "0.49295205", "0.4924465", "0.49152705", "0.49016953", "0.4893087", "0.48843372", "0.48828253", "0.48605987", "0.48441064", "0.4841607", "0.48397928", "0.48340803", "0.48272786", "0.48231938", "0.48222375", "0.4817366", "0.4805065", "0.48018226", "0.48002353", "0.47954267", "0.47951934", "0.47925335", "0.47895777", "0.47855574", "0.47849733", "0.47827706", "0.47825843", "0.4781039", "0.47659045", "0.47644892", "0.47636127", "0.47577655", "0.47480187", "0.47404808", "0.473931", "0.47233194", "0.47216883", "0.4720155", "0.47177202", "0.47172806", "0.47137496", "0.47134098", "0.47086933", "0.46935084", "0.4692715", "0.46888086", "0.46888086", "0.46873423", "0.46857822", "0.4673505", "0.4670825", "0.46690986", "0.466674", "0.46624535", "0.46608287", "0.46597984", "0.4655043", "0.46512634", "0.46506533", "0.4649624", "0.4647786", "0.46474096", "0.46452835", "0.4641627", "0.46410033", "0.46358657", "0.46354112", "0.46306375", "0.46255326", "0.46251377", "0.46235454", "0.46228254", "0.46213007", "0.4621136" ]
0.0
-1
Gets as additional Information on additional driver(s), possibly including frequent renter number.
public function getAdditional() { return $this->additional; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getdriverdetails()\n{\n\t//returns the details of the driver\n\t$sql=\"select * from driver_detail where status=0 order by rand() limit 1\";\n\tforeach($GLOBALS['db']->query($sql) as $row);\n\tif(isset($row))\n\t\treturn $row;\n}", "function get_driver_info($idPilot)\n{\n $driver_info = get_driver_info_db($idPilot);\n return $driver_info;\n}", "public function getDriverNames(): array;", "public function get_additional_info()\n {\n return array();\n }", "public function getDriver()\n {\n return $this->_list->getDriver();\n }", "public static function getDriverName()\n {\n }", "public function extraInfo();", "public function getExtraInformation() {\n return $this->extra;\n }", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function info() {\n\t\t\n\t\t$data = array(\n\t\t\t'Driver'\t\t\t=> 'DRIVER_NAME',\n\t\t\t'Client version'\t=> 'CLIENT_VERSION',\n\t\t\t'Server version'\t=> 'SERVER_VERSION',\n\t\t\t'Connection'\t\t=> 'CONNECTION_STATUS'\n\t\t);\n\n\t\tforeach ($data as $key => $value) {\n\t\t\t\n\t\t\t$info[$key] = $this->pdo->getAttribute(constant('PDO::ATTR_' . $value));\n\t\t\t\n\t\t}\n\n\t\treturn $info;\n\t\t\n\t}", "abstract protected function getDriver();", "public function getDriverType() {}", "public function getDriverIdentifier()\n {\n return $this->driver;\n }", "public function getDriverName(): string;", "public function GetApplyingDrivers() {\n return $this->db->LoadDriversFromQuery(\"SELECT * FROM Drivers WHERE id IN (SELECT driverId FROM DriverApplications WHERE sponsorId={$this->GetID()});\");\n }", "public function getExtraInfo()\n {\n return $this->extra;\n }", "public function getContributorExtra() {\n $result = TingOpenformatMethods::parseFields($this->_getDetails(), array('contributors' => array('contributorExtra')));\n return $result;\n }", "public function getAdditionalInformation()\n {\n return $this->additionalInformation;\n }", "final public function getDriverName(): string\n {\n return $this->driver;\n }", "public function getDriverName()\n {\n return $this->driverName;\n }", "Public Function getDriver() { Return $this->driver; }", "function getElectedRepresentativeDetails($er_id)\n\t\t{ \n\t\t\t$query = \"SELECT * FROM tbl_elected_officials \n\t\t\twhere ElectedOfficialID='\".$er_id.\"'\";\n\t\n\t\t\t$rs = $this->Execute($query);\n\t\t\treturn $this->_getPageArray($rs, 'Member');\n\t\t}", "public function checkdrivercount() {\n $options = [\n 'projection' => [\n 'driver_count' => 1,\n ]\n ];\n $query_result = $this->mongo_db->find(MDB_SITEINFO, ['_id' => 1], $options);\n $result = !empty($query_result) ? $query_result : array();\n return $result;\n }", "public function getDrivers()\n {\n return $this->drivers;\n }", "public function getDriver()\n {\n return $this->hasOne(Driver::className(), ['id_driver' => 'id_driver']);\n }", "public function getDriverName()\n\t{\n\t\treturn $this->neoeloquent->getDriverName();\n\t}", "public function carDetails(){\n $details = \"Vehicle Type - \" . $this->getType() . \"<br>\";\n $details .= \"Wheels - \" . $this->getWheels() . \"<br>\";\n $details .= \"Engine - \" . $this->getEngine() . \"<br>\";\n $details .= \"Seat - \" . $this->getSeat() . \"<br>\";\n $details .= \"radio - \" . $this->getRadio() . \"<br>\";\n\n foreach ($this->extras as $extra){\n $details .= \"extra - \" . $extra . \"<br>\";\n }\n\n\t\treturn $details;\n\t}", "protected function getDriver() {}", "public static function getDriverRideRatingDetails($driverId)\n { \n $selects = [\n 'SUM('.self::table().'.driver_rating) AS driver_rating_sum',\n 'COUNT('.self::table().'.id) AS trip_request_count'\n ];\n\n //find total number of requests and sum of total ratings\n $record = self::join('trips', 'trips.id', '=', self::table().'.trip_id')\n ->where('trips.driver_id', $driverId)\n ->whereIn(self::table().'.driver_rating', self::RATINGS)\n ->selectRaw(implode(',', $selects))->first();\n \n\n return [(integer)$record->driver_rating_sum, $record->trip_request_count];\n\n }", "public function getEventAdditionalInfo() {\n\t\treturn ($this->eventAdditionalInfo);\n\t}", "public function getDriverId()\n {\n return isset($this->driverId) ? $this->driverId : null;\n }", "function get_drivres_list()\r\n\t{\r\n\t\t//get the driver details\r\n\t\t$sql=\"select b.name,b.employee_id,b.contact_no from m_employee_roles as a\r\n\t\t\t\t\tjoin m_employee_info as b on a.role_id=b.job_title2\r\n\t\t\t\t\twhere a.role_id=? and b.is_suspended=0\";\r\n\t\t\r\n\t\treturn $driver_details=$this->db->query($sql,array('7'))->result_array();\r\n\t\t\r\n\t}", "public function driver(){\n\n\t\t// belongsTo(RelatedModel, foreignKey = driver_id, keyOnRelatedModel = id)\n\t\treturn $this->belongsTo(Driver::class);\n\t}", "public function details()\n {\n \n $output = $this->ua->parse_user_agent();\n print_r($output);\n exit;\n }", "public function getDriverName() {\n return $this->driverName;\n }", "protected static final function getUserAgentStats () {\r\n if (count (self::$objUserAgentCapability) == 0) {\r\n // Set the PHPUserAgentSniffer object;\r\n $userAgentPHPCapabilityObject = new phpSniff;\r\n\r\n // Get information back from it!\r\n self::$objUserAgentCapability['browser_properties'] = $userAgentPHPCapabilityObject->property ();\r\n self::$objUserAgentCapability['browser_features'] = $userAgentPHPCapabilityObject->_feature_set;\r\n self::$objUserAgentCapability['browser_quirks'] = $userAgentPHPCapabilityObject->_quirks;\r\n\r\n // Do return ...\r\n return self::$objUserAgentCapability;\r\n } else {\r\n \t// Do return ...\r\n return self::$objUserAgentCapability;\r\n }\r\n }", "public function getDriverRestrictions() {}", "public function getDriver() {\n return $this->_driver;\n }", "public function getDriver() {\n return $this->_driver;\n }", "public function getInformation();", "public function driver()\n {\n return $this->belongsTo(Driver::class, 'driver_assigned_uuid');\n }", "public function driver()\n {\n return $this->hasOne(Driver::class, 'id', 'driver_id');\n }", "function driver_stats($option = array());", "public function getAdditional();", "public function getDriverVersion()\n {\n return $this->driver_version;\n }", "public function getAdditionalInfosCount()\n {\n return $this->count(self::ADDITIONALINFOS);\n }", "public function getAllActiveDrivers()\n {\n \ttry {\n \t\t\n \t\t$driverDetails = DriverRegistration::where('status', '=', 'Online')->get();\n \t\t\t\t\t\t\t\t\t\t\t\n \n \t\tif (!$driverDetails) {\n \t\t\treturn $this->responseNotFound('Driver Not Found!');\n \t\t}\n \t\t\n \t} catch (Exception $e) {\n \t\t\n \t\treturn $this->setStatusCode(500)->respondWithError($e);\n \t}\n \treturn $driverDetails;\n }", "public static function get_drivers() {\n return array(\n '' => get_string('choosedots'),\n 'native/mysqli' => \\moodle_database::get_driver_instance('mysqli', 'native')->get_name(),\n 'native/mariadb' => \\moodle_database::get_driver_instance('mariadb', 'native')->get_name(),\n 'native/pgsql' => \\moodle_database::get_driver_instance('pgsql', 'native')->get_name(),\n 'native/oci' => \\moodle_database::get_driver_instance('oci', 'native')->get_name(),\n 'native/sqlsrv' => \\moodle_database::get_driver_instance('sqlsrv', 'native')->get_name()\n );\n }", "public function getDriverName()\n {\n return isset($this->driverName) ? $this->driverName : null;\n }", "public function getDriver()\n\t{\n\t\treturn $this->driver;\n\t}", "public function getListDriver() {\n $q = \"SELECT driver_id, email, fullname, phone, driver_lat, driver_long, personalID, personalID_img,\";\n $q .= \" driver_avatar, driver_license, driver_license_img, status, busy_status, created_at \";\n $q .= \" FROM driver\";\n\n $stmt = $this->conn->prepare($q);\n //$stmt->bind_param(\"dd\", $lat, $long);\n $stmt->execute();\n $itineraries = $stmt->get_result();\n $stmt->close();\n return $itineraries;\n }", "public function check_current_driver_count() {\n $options = [\n 'projection' => [\n '_id' => 1,\n 'name' => 1\n ]\n ];\n $query_result = $this->mongo_db->find(MDB_PEOPLE, ['user_type' => 'D'], $options);\n\n $result = !empty($query_result) ? $query_result : array();\n return $result;\n }", "public static function availableDrivers()\n {\n }", "protected function getBestDriver()\n\t{\n\t\treturn $this->getChild('LazyDataMapper\\Tests\\Driver', 5);\n\t}", "public function getdriver()\n {\n return $this->driver;\n }", "function getDriverRestrictions() ;", "public function getDrivers(): array\n {\n return $this->drivers;\n }", "public function getAdditionalInformation()\n {\n return [\n 'isReturnable' => true,\n 'isRepairable' => true,\n 'isTransportable' => true,\n 'isSerializable' => true,\n 'isOnSiteInterventionPossible' => true,\n 'isCumbersome' => true,\n ];\n }", "public function getGeneralInformation() {\n\t\tif (!$this->hasDetails) {\n\t\t\t$this->injectDetails();\n\t\t}\n\t\treturn $this->generalInformation;\n\t}", "public function get_extra_select() {\n return [\n 'choice_id' => $this->usechoiceid,\n 'response' => $this->useresponse,\n 'rank' => $this->userank\n ];\n }", "public function getBusDriverStatus(){return $this->driver_status;}", "public function getDriverOptions(): array;", "public function get_driver()\n\t{\n\t\treturn $this->driver;\n\t}", "public function get_information() {\n $informationsources = ['name' => 'dbdetails', 'displayname' => get_string(\"dbdetails\", \"local_reportgen\")];\n\n return $informationsources;\n }", "public function Drivers()\n {\n return $this->hasMany('App\\Models\\Drivers', 'ownerid', 'id');\n }", "public function getAdditionalInformation()\n {\n return ConfigurationUtility::getSelectedConfigsInfo($this->getConfigs());\n }", "function getDriver($name = null);", "function get_driver_list()\n {\n $this->company_db->select(\"*\");\n $this->company_db->from('tbl_driver');\n // $this->company_db->where('void','No');\n /*$this->company_db->where($where);*/\n $query = $this->company_db->get();\n\n if($query->num_rows() >= 1)\n {\n return $query->result_array();\n }\n else\n {\n return array();\n }\n }", "private function getBrowserDetails()\n {\n $version = $this->agent->version($this->agent->browser());\n $pieces = explode('.', str_replace('_', '.', $version));\n\n return [\n 'major' => $pieces[0] ?? 0,\n 'minor' => $pieces[1] ?? 0,\n 'float' => (float)sprintf('%s.%s', $pieces[0] ?? 0, $pieces[1] ?? 0),\n ];\n }", "abstract public function getDetails();", "function VehicleDetails(){\n\t\tparent::getVehicleDetails();\n\t\t$this -> addVehicleDetails();\n\t}", "public function getDriver()\n {\n return $this->_driver;\n }", "public function getDriver()\n {\n return $this->_driver;\n }", "public function getGraphDriver() : GraphDriverData\n {\n return $this->graphDriver;\n }", "public function driver()\n {\n return $this->driver;\n }", "public function get_bydeler_info()\n\t{\n\t\t$bydeler = array();\n\t\tforeach (game::$bydeler as $bydel)\n\t\t{\n\t\t\t$bydeler[$bydel['id']] = array(\n\t\t\t\t\"cars\" => 0,\n\t\t\t\t\"b_id\" => $bydel['id'],\n\t\t\t\t\"b_active\" => $bydel['active'],\n\t\t\t\t\"ff_id\" => null,\n\t\t\t\t\"ff_name\" => null,\n\t\t\t\t\"garage\" => null,\n\t\t\t\t\"garage_max_cars\" => null,\n\t\t\t\t\"garage_free\" => 0,\n\t\t\t\t\"garage_next_rent\" => null\n\t\t\t);\n\t\t}\n\t\t\n\t\t// antall biler vi har i de ulike bydelene (garasjene)\n\t\t$result = \\Kofradia\\DB::get()->query(\"\n\t\t\tSELECT b_id, COUNT(id) AS ant\n\t\t\tFROM users_gta\n\t\t\tWHERE ug_up_id = \".$this->up->id.\"\n\t\t\tGROUP BY b_id\");\n\t\twhile ($row = $result->fetch())\n\t\t{\n\t\t\tif (!isset($bydeler[$row['b_id']])) continue;\n\t\t\t$bydeler[$row['b_id']]['cars'] = $row['ant'];\n\t\t}\n\t\t\n\t\t// informasjon om garasjene vi har\n\t\t$result = \\Kofradia\\DB::get()->query(\"\n\t\t\tSELECT ugg_b_id, ugg_places, ugg_time_next_rent, ff_id, ff_name\n\t\t\tFROM users_garage\n\t\t\t\tLEFT JOIN ff ON ff_id = ugg_ff_id\n\t\t\tWHERE ugg_up_id = \".$this->up->id);\n\t\twhile ($row = $result->fetch())\n\t\t{\n\t\t\tif (!isset($bydeler[$row['ugg_b_id']])) continue;\n\t\t\t$bydeler[$row['ugg_b_id']]['garage'] = true;\n\t\t\t$bydeler[$row['ugg_b_id']]['ff_id'] = $row['ff_id'];\n\t\t\t$bydeler[$row['ugg_b_id']]['ff_name'] = $row['ff_name'];\n\t\t\t$bydeler[$row['ugg_b_id']]['garage_max_cars'] = $row['ugg_places'];\n\t\t\t$bydeler[$row['ugg_b_id']]['garage_free'] = max(0, $row['ugg_places'] - $bydeler[$row['ugg_b_id']]['cars']);\n\t\t\t$bydeler[$row['ugg_b_id']]['garage_next_rent'] = $row['ugg_time_next_rent'];\n\t\t}\n\t\t\n\t\treturn $bydeler;\n\t}", "public function getDriver()\n {\n return $this->driver;\n }", "function getInfo()\n\t{\n\t\treturn array_merge($this->getDeveloperInfo(), $this->getContact()->getInfo());\n\t}", "function cicleinscription_get_extra_capabilities() {\n return array();\n}", "function vitero_get_extra_capabilities() {\n return array();\n}", "private function get_core_caps() {\n $capabilities = array();\n\n // TODO: see easy-digital-downloads plugin source codes for example implementation.\n\n return $capabilities;\n }", "public static function getAvailableDrivers()\n {\n return array_keys(self::$_driverMap);\n }", "public function getAdditionalInformation()\n {\n if (array_key_exists(\"additionalInformation\", $this->_propDict)) {\n return $this->_propDict[\"additionalInformation\"];\n } else {\n return null;\n }\n }", "public function driver()\n {\n return $this->belongsTo('App\\Models\\Driver');\n }", "public function extensionMeta()\n {\n return [\n 'name' => 'Drivers',\n 'author' => 'Igniter',\n 'description' => 'Drivers.',\n 'icon' => 'fa-bug',\n 'version' => '1.0.0',\n ];\n }", "function getadvlic_no() {\n return $this->advlic_no;\n }", "public function LoadDriverIdsAndCredits() {\n $q = \"SELECT driverId,credits FROM DriverSponsorRelations WHERE sponsorId={$this->GetID()};\";\n $qresult = $this->db->sql->query($q);\n\n if ($qresult && $qresult->num_rows > 0) {\n for ($row = $qresult->fetch_assoc(); $row !== NULL; $row = $qresult->fetch_assoc()) {\n $id = $row[\"driverId\"];\n array_push($this->driverIds, $id);\n $this->credits[$id] = $row[\"credits\"];\n }\n\n $qresult->free();\n }\n else if (!$qresult) {\n return false;\n }\n\n return true;\n }", "protected static function getAvailableDriver()\n {\n $serverDiagnostic = new ServerDiagnostic();\n $candidates = [\n [\n \"name\" => \"gd\",\n \"type\" => \"extension\",\n ],\n [\n \"name\" => \"imagick\",\n \"type\" => \"extension\",\n ],\n ];\n $diagnostic = $serverDiagnostic->checkRequirements($candidates);\n\n if ($diagnostic[\"imagick\"][\"passed\"]) {\n return \"imagick\";\n } else if ($diagnostic[\"gd\"][\"passed\"]) {\n return \"gd\";\n }\n\n // Return gd by default\n return \"gd\";\n }", "public function getSpecifics() {}", "function driverinfo() {\n global $user;\n $current_driver = new CAnmalan;\n $selected_driver = $current_driver->id();\n//#####################################################################\n// $content = \"<div id='form-driver'>\\n\";\n// $content .= \"<form id='select-driver' action='' method='post'>\\n\";\n// $content .= \"<fieldset>\\n\";\n// $content .= \"<legend>\\nFörare\\n</legend>\\n\";\n// $content .= \"<p>\\n\";\n// if ($selected_driver < 0) {\n// $content .= \"<input type='hidden' name='use_driver' value= -2>\\n\";\n// } else {\n//// Här börjar rutinen för inloggad förare \n// $content .= \"<div class='driver-form-row'>\\n\";\n// $content .= \"<select id='use-driver' name='use_driver'>\";\n//// Om inloggad är admin val för ny förare\n// if ($user->role() == 1 AND $selected_driver != -1) {\n// $content .= \"<option value='-1'>Ny förare</option>\\n\";\n// }\n//// Förarna läggs in i select-kontrollen. Inloggad markeras som vald\n// foreach ($user->users() as $user_data_id => $driver_data) {\n// $mark_selected = ($user_data_id == $selected_driver) ? 'SELECTED' : '';\n// $content .= \"<option value='{$user_data_id}' {$mark_selected}>{$driver_data['name']}</option>\\n\";\n// }\n// $content .= \"</select>\\n\";\n// $content .= \"</div>\\n\";\n//// $content .= \"<div class='driver-form-label'>\\n<input id='visa' type='submit' value='Visa'>\\n\";\n//// $content .= \"</div>\\n\";\n// $content .= \"</fieldset>\\n\";\n// $content.=\"</form>\";\n// \n// }\n $content = \"<div id='form-driverinfo'>\\n\";\n $content .= \"<form action='' method='post'>\\n\";\n $content .= \"<fieldset>\\n\";\n $content .= \"<legend>Anmälan</legend>\\n\";\n $content .= \"<input type='hidden' name='use_driver' value={$current_driver->id()}>\\n\";\n $content .= \"<div class='driver-form-row'>\\n\";\n if ($selected_driver > 0) {\n\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<div class='driver-form-label'>\\n<label>\\nDu är anmäld till Svinnock tangomaraton med följande val \\n</label>\\n</div>\\n\";\n $content .= \"</div>\\n\";\n }\n $content .= \"<div class='driver-form-label'>\\n<label>\\nFörnamn \\n</label>\\n</div>\\n\";\n $content .= \"<div class='driver-form-input'>\\n<input id='name' type='text' name='name' value='{$current_driver->name()}' autocomplete='off'>\\n\";\n $content .= \"</div>\\n\";\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<div class='driver-form-label'>\\n<label>\\nEfternamn \\n</label>\\n</div>\\n\";\n $content .= \"<div class='driver-form-input'>\\n<input id='display_name' type='text' name='display_name' value='{$current_driver->display_name()}'>\\n\\n\";\n $content .= \"</div>\\n\";\n\n if ($selected_driver < 0) {\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<div class='driver-form-label'>\\n<label>\\nEmail \\n</label>\\n</div>\\n\";\n $content .= \"<div class='driver-form-input'>\\n<input id='acronym' type='text' name='acronym' value='{$current_driver->acronym()}' autocomplete='off'>\\n</div>\\n\\n\";\n $content .= \"</div>\\n\";\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<div class='driver-form-label'>\\n<label>Password </label>\\n</div>\";\n $content .= \"<div class='driver-form-input'>\\n<input id='password' type='text' name='password' value='' autocomplete='off'>\\n</div>\\n\\n\";\n $content .= \"</div>\\n\";\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<div class='driver-form-label'>\\n<label>\\nRepetera \\n</label>\\n</div>\\n\";\n $content .= \"<div class='driver-form-input'>\\n<input id='password_check' type='text' name='password_check' value='' autocomplete='off'>\\n</div>\\n\\n\";\n $content .= \"</div>\\n\";\n }\n $counter = -1;\n//här kommer fälten från user-posten\n foreach ($current_driver->driver_data($selected_driver) as $driver_data) {\n $counter = ($driver_data->type <2)?$counter +1 : $counter;\n if ($driver_data->type >= 0) {\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<div class='driver-form-label'>\\n<label>\\n{$driver_data->user_data_descr} \\n</label>\\n</div>\";\n $content .= \"<div class='driver-form-label'>\\n\";\n if ($driver_data->type == 0) {\n $content .= \"<input type='text' name='value[{$counter}]' value='{$driver_data->value}' autocomplete='off'>\\n\";\n } elseif ($driver_data->type == 1) {\n $checked = isset($driver_data->value) ? 'checked' : '';\n $content .= \"<input type='checkbox' name='value[{$counter}]' $checked >\\n\";\n }elseif ($driver_data->type ==2) { \n $content .= \"<input type='radio' name='value[{$counter}]' $checked >\\n\";\n }\n $content .= \"<input type='hidden' name='key[{$counter}]' value='{$driver_data->user_data_key}'>\\n\";\n $content .= \"<input type='hidden' name='user_data_id[{$counter}]' value='{$driver_data->user_data_id}'>\\n\";\n $content .= \"<input type='hidden' name='post_id[{$counter}]' value='{$driver_data->id}'>\\n\";\n $content .= \"</div>\\n\";\n }\n }\n\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<button id='save' type='submit' name='save' value='{$selected_driver}'>Spara</button>\\n\";\n $content .= \"</div>\\n\";\n $content .= \"\";\n $content .= \"</fieldset>\";\n $content .= \"</form>\";\n $content .= \"</div>\";\n\n return $content;\n}", "public function getInfo()\r\n {\r\n return $this->setNuki(\r\n __FUNCTION__\r\n );\r\n }", "function driverlist_show($type, $iam){\n echo(\"<h4><img src='images/asterisk_orange.png' alt=''/> <strong>ODBC Drivers Configuration:</strong></h4>\");\n echo (\"<h5><i>This feature allows you to add/enable a database driver which you can use with the ODBC API. You must make sure that this driver lib (.so file) is already installed on your server and can be used to communicate with UnixODBC.</i></h5>\");\n echo(\"<img src='images/add.png' alt=''/>\");\n echo \"<i><a id='\".($sel==''?'current':'std').\"' \";\n echo \"href='config.php?type={$type}&amp;display={$iam}&amp;action=driveradd'>\"._(\" Add Your New Custom Driver\").\"</a></i>\";\n //echo (\"</br>\");\n echo\"</br>\n <table border = 1>\n <tr>\n <th align='center'>Name</th>\n <th>Driver</th>\n <th align='center'>Enabled</th>\n <th align='center'>Notice</th>\n </tr>\";\n\n //get the list of paging groups\n $driverlist = odbcdriver_list();\n if ($driverlist) {\n foreach ($driverlist as $driver) {\n $display = true;\n if ($driver[1] == 'PostgreSQL' || $driver[1] == 'MySQL' || $driver[1] == 'MSSQL'){\n $display = find_odbcdriver($driver[1]);\n }\n\n if ($display) {\n $note = \"\";\n if (file_exists(\"\".\"${driver[2]}\") == false) {\n $note = 'Driver file does not exist!';}\n echo \"<tr><td align='left'><a id=\\\"\".($sel==$driver[0] ? 'current':'std');\n echo \"\\\" href=\\\"config.php?type=${type}&amp;display=\";\n echo \"${iam}&amp;ext=${driver[0]}&amp;action=driveredit\\\"><strong><u><i>\";\n echo \"${driver[1]}\";\n echo\"</i></u></strong></a></td>\";\n echo\"<td>${driver[2]}</td>\";\n echo\"<td align='center'>${driver[3]}</td>\";\n echo\"<td>$note</td>\";\n }\n }\n }\n echo\"</table>\";\n //echo \"<h5>Notices:</h5>\";\n echo \"<ul><li>You can click on a driver's name to edit its options.</li><li>Make sure the driver is enabled (enabled = yes) so it can be use for a DSN.</li></ul>\";\n}", "public function getAgentDetails()\n {\n return \\Auth::user()->agent()->first();\n }" ]
[ "0.6848325", "0.603477", "0.57692915", "0.57321405", "0.5677528", "0.5674262", "0.5593754", "0.55906755", "0.5570709", "0.5570709", "0.5570709", "0.5570709", "0.5570632", "0.5570632", "0.556995", "0.556995", "0.556995", "0.5565141", "0.55302936", "0.5521261", "0.55148065", "0.549164", "0.54631597", "0.53907245", "0.53774744", "0.53637564", "0.5352563", "0.53516537", "0.5343073", "0.5339018", "0.53354365", "0.53278995", "0.5320024", "0.53124666", "0.5308305", "0.529884", "0.5285132", "0.52840626", "0.5270286", "0.5267192", "0.524389", "0.52323973", "0.52087617", "0.51758796", "0.51719403", "0.51701677", "0.51701677", "0.51620847", "0.5160711", "0.51481295", "0.5143786", "0.51395315", "0.5139091", "0.51141363", "0.51133126", "0.50915873", "0.50773597", "0.5069375", "0.50676155", "0.5057259", "0.5053713", "0.50318134", "0.50300366", "0.50268096", "0.5024214", "0.5024214", "0.50163954", "0.50060743", "0.5003852", "0.5002544", "0.49982923", "0.49976978", "0.49956554", "0.49918002", "0.49916264", "0.49914107", "0.49884844", "0.49746883", "0.49719837", "0.4967178", "0.4967178", "0.49638313", "0.49630013", "0.49553725", "0.49494267", "0.49230465", "0.49195763", "0.49185556", "0.49181938", "0.4913824", "0.48790234", "0.4868999", "0.48603135", "0.48515993", "0.48469666", "0.4846305", "0.48338857", "0.48287547", "0.48256838", "0.48251724", "0.48139644" ]
0.0
-1
Sets a new additional Information on additional driver(s), possibly including frequent renter number.
public function setAdditional(array $additional) { $this->additional = $additional; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set_driver($driver)\n {\n $this->_driver = $driver;\n }", "public function setDrivers()\n {\n foreach ($this->getDriverList() as $driverName) {\n $this->setDriver($driverName);\n }\n }", "public function setExtraInfo(array $info)\n {\n $this->extraInfo = $info;\n }", "public function setOriginalDriver($driver)\n {\n $this->_originalDriver = $driver;\n }", "public function setExtra($extra)\r\n {\r\n $this->extra=$extra;\r\n }", "function getdriverdetails()\n{\n\t//returns the details of the driver\n\t$sql=\"select * from driver_detail where status=0 order by rand() limit 1\";\n\tforeach($GLOBALS['db']->query($sql) as $row);\n\tif(isset($row))\n\t\treturn $row;\n}", "public function extraInfo();", "function VehicleDetails(){\n\t\tparent::getVehicleDetails();\n\t\t$this -> addVehicleDetails();\n\t}", "function driverinfo() {\n global $user;\n $current_driver = new CAnmalan;\n $selected_driver = $current_driver->id();\n//#####################################################################\n// $content = \"<div id='form-driver'>\\n\";\n// $content .= \"<form id='select-driver' action='' method='post'>\\n\";\n// $content .= \"<fieldset>\\n\";\n// $content .= \"<legend>\\nFörare\\n</legend>\\n\";\n// $content .= \"<p>\\n\";\n// if ($selected_driver < 0) {\n// $content .= \"<input type='hidden' name='use_driver' value= -2>\\n\";\n// } else {\n//// Här börjar rutinen för inloggad förare \n// $content .= \"<div class='driver-form-row'>\\n\";\n// $content .= \"<select id='use-driver' name='use_driver'>\";\n//// Om inloggad är admin val för ny förare\n// if ($user->role() == 1 AND $selected_driver != -1) {\n// $content .= \"<option value='-1'>Ny förare</option>\\n\";\n// }\n//// Förarna läggs in i select-kontrollen. Inloggad markeras som vald\n// foreach ($user->users() as $user_data_id => $driver_data) {\n// $mark_selected = ($user_data_id == $selected_driver) ? 'SELECTED' : '';\n// $content .= \"<option value='{$user_data_id}' {$mark_selected}>{$driver_data['name']}</option>\\n\";\n// }\n// $content .= \"</select>\\n\";\n// $content .= \"</div>\\n\";\n//// $content .= \"<div class='driver-form-label'>\\n<input id='visa' type='submit' value='Visa'>\\n\";\n//// $content .= \"</div>\\n\";\n// $content .= \"</fieldset>\\n\";\n// $content.=\"</form>\";\n// \n// }\n $content = \"<div id='form-driverinfo'>\\n\";\n $content .= \"<form action='' method='post'>\\n\";\n $content .= \"<fieldset>\\n\";\n $content .= \"<legend>Anmälan</legend>\\n\";\n $content .= \"<input type='hidden' name='use_driver' value={$current_driver->id()}>\\n\";\n $content .= \"<div class='driver-form-row'>\\n\";\n if ($selected_driver > 0) {\n\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<div class='driver-form-label'>\\n<label>\\nDu är anmäld till Svinnock tangomaraton med följande val \\n</label>\\n</div>\\n\";\n $content .= \"</div>\\n\";\n }\n $content .= \"<div class='driver-form-label'>\\n<label>\\nFörnamn \\n</label>\\n</div>\\n\";\n $content .= \"<div class='driver-form-input'>\\n<input id='name' type='text' name='name' value='{$current_driver->name()}' autocomplete='off'>\\n\";\n $content .= \"</div>\\n\";\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<div class='driver-form-label'>\\n<label>\\nEfternamn \\n</label>\\n</div>\\n\";\n $content .= \"<div class='driver-form-input'>\\n<input id='display_name' type='text' name='display_name' value='{$current_driver->display_name()}'>\\n\\n\";\n $content .= \"</div>\\n\";\n\n if ($selected_driver < 0) {\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<div class='driver-form-label'>\\n<label>\\nEmail \\n</label>\\n</div>\\n\";\n $content .= \"<div class='driver-form-input'>\\n<input id='acronym' type='text' name='acronym' value='{$current_driver->acronym()}' autocomplete='off'>\\n</div>\\n\\n\";\n $content .= \"</div>\\n\";\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<div class='driver-form-label'>\\n<label>Password </label>\\n</div>\";\n $content .= \"<div class='driver-form-input'>\\n<input id='password' type='text' name='password' value='' autocomplete='off'>\\n</div>\\n\\n\";\n $content .= \"</div>\\n\";\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<div class='driver-form-label'>\\n<label>\\nRepetera \\n</label>\\n</div>\\n\";\n $content .= \"<div class='driver-form-input'>\\n<input id='password_check' type='text' name='password_check' value='' autocomplete='off'>\\n</div>\\n\\n\";\n $content .= \"</div>\\n\";\n }\n $counter = -1;\n//här kommer fälten från user-posten\n foreach ($current_driver->driver_data($selected_driver) as $driver_data) {\n $counter = ($driver_data->type <2)?$counter +1 : $counter;\n if ($driver_data->type >= 0) {\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<div class='driver-form-label'>\\n<label>\\n{$driver_data->user_data_descr} \\n</label>\\n</div>\";\n $content .= \"<div class='driver-form-label'>\\n\";\n if ($driver_data->type == 0) {\n $content .= \"<input type='text' name='value[{$counter}]' value='{$driver_data->value}' autocomplete='off'>\\n\";\n } elseif ($driver_data->type == 1) {\n $checked = isset($driver_data->value) ? 'checked' : '';\n $content .= \"<input type='checkbox' name='value[{$counter}]' $checked >\\n\";\n }elseif ($driver_data->type ==2) { \n $content .= \"<input type='radio' name='value[{$counter}]' $checked >\\n\";\n }\n $content .= \"<input type='hidden' name='key[{$counter}]' value='{$driver_data->user_data_key}'>\\n\";\n $content .= \"<input type='hidden' name='user_data_id[{$counter}]' value='{$driver_data->user_data_id}'>\\n\";\n $content .= \"<input type='hidden' name='post_id[{$counter}]' value='{$driver_data->id}'>\\n\";\n $content .= \"</div>\\n\";\n }\n }\n\n $content .= \"<div class='driver-form-row'>\\n\";\n $content .= \"<button id='save' type='submit' name='save' value='{$selected_driver}'>Spara</button>\\n\";\n $content .= \"</div>\\n\";\n $content .= \"\";\n $content .= \"</fieldset>\";\n $content .= \"</form>\";\n $content .= \"</div>\";\n\n return $content;\n}", "public function setExtra($extra)\n\t{\n\t\t$this->_extra = (array)$extra;\n\t}", "public function setMetadataDriverImpl($driver)\n {\n $this->setAttributeClosure('metadataDriverImpl', $driver);\n }", "abstract protected function setup_info();", "protected function setDriver($driver)\n {\n $this->driver = $driver;\n\n return $this;\n }", "public function setExtra($extra);", "public function add_info($info)\r\n { \r\n }", "public function add(string $key, string $driver): void\n {\n if (!in_array(DriverInterface::class, class_implements($driver))) {\n throw new NotDriverProvidedException('Provided ' . $key . ' is not a valid driver.');\n }\n\n $this->drivers[$key] = $driver;\n }", "protected function initalDriverProviders()\n {\n $this->driverProviderMap = [\n 'weibo' => __NAMESPACE__.'\\\\Providers\\\\WeiboProvider',\n 'wechat' => __NAMESPACE__.'\\\\Providers\\\\WechatProvider',\n 'qq' => __NAMESPACE__.'\\\\Providers\\\\QQProvider',\n 'github' => __NAMESPACE__.'\\\\Providers\\\\GithubProvider',\n 'facebook' => __NAMESPACE__.'\\\\Providers\\\\FacebookProvider',\n 'google' => __NAMESPACE__.'\\\\Providers\\\\GoogleProvider',\n ];\n }", "public function driver()\n {\n return $this->belongsTo(Driver::class, 'driver_assigned_uuid');\n }", "function driverlist_show($type, $iam){\n echo(\"<h4><img src='images/asterisk_orange.png' alt=''/> <strong>ODBC Drivers Configuration:</strong></h4>\");\n echo (\"<h5><i>This feature allows you to add/enable a database driver which you can use with the ODBC API. You must make sure that this driver lib (.so file) is already installed on your server and can be used to communicate with UnixODBC.</i></h5>\");\n echo(\"<img src='images/add.png' alt=''/>\");\n echo \"<i><a id='\".($sel==''?'current':'std').\"' \";\n echo \"href='config.php?type={$type}&amp;display={$iam}&amp;action=driveradd'>\"._(\" Add Your New Custom Driver\").\"</a></i>\";\n //echo (\"</br>\");\n echo\"</br>\n <table border = 1>\n <tr>\n <th align='center'>Name</th>\n <th>Driver</th>\n <th align='center'>Enabled</th>\n <th align='center'>Notice</th>\n </tr>\";\n\n //get the list of paging groups\n $driverlist = odbcdriver_list();\n if ($driverlist) {\n foreach ($driverlist as $driver) {\n $display = true;\n if ($driver[1] == 'PostgreSQL' || $driver[1] == 'MySQL' || $driver[1] == 'MSSQL'){\n $display = find_odbcdriver($driver[1]);\n }\n\n if ($display) {\n $note = \"\";\n if (file_exists(\"\".\"${driver[2]}\") == false) {\n $note = 'Driver file does not exist!';}\n echo \"<tr><td align='left'><a id=\\\"\".($sel==$driver[0] ? 'current':'std');\n echo \"\\\" href=\\\"config.php?type=${type}&amp;display=\";\n echo \"${iam}&amp;ext=${driver[0]}&amp;action=driveredit\\\"><strong><u><i>\";\n echo \"${driver[1]}\";\n echo\"</i></u></strong></a></td>\";\n echo\"<td>${driver[2]}</td>\";\n echo\"<td align='center'>${driver[3]}</td>\";\n echo\"<td>$note</td>\";\n }\n }\n }\n echo\"</table>\";\n //echo \"<h5>Notices:</h5>\";\n echo \"<ul><li>You can click on a driver's name to edit its options.</li><li>Make sure the driver is enabled (enabled = yes) so it can be use for a DSN.</li></ul>\";\n}", "private function setInfoKeys() {\n\t\tif (!empty(self::$s_aInfoKeys)) {\n\t\t\treturn;\n\t\t}\n\n\t\tself::$s_aInfoKeys = array(\n\t\t\t'ID', 'ProfileID', 'Nickname', 'Level', 'TempLevel',\n\t\t\t'IP', 'JoinTime', 'LogInTime',\n\t\t);\n\t}", "function get_driver_info($idPilot)\n{\n $driver_info = get_driver_info_db($idPilot);\n return $driver_info;\n}", "private function mergeExtra()\n {\n if (method_exists($this, 'extra')) {\n $this->extra = $this->extra();\n }\n }", "public function setAdditionalInformation($val)\n {\n $this->_propDict[\"additionalInformation\"] = $val;\n return $this;\n }", "function assignDriver2Reser($connect,$driverID, $reserID){\n\t//update driver\n\t$sql = \"UPDATE driver\n\t\t\tSET reservationID = '$reserID'\n\t\t\tWHERE ID = '$driverID'\";\n\n\t$result = $connect->query($sql);\n\n\tif($connect->query($sql) === true){\n\t\techo \"<br/>Update driver's reservation sucessfully\";\n\t} else {\n\t\techo \"<br/>Error: \" . $sql . \"<br>\" . $connect->error;\n\t}\n\t//update reservation\n\t$sql = \"UPDATE reservation\n\t\t\tSET driverID = '$driverID'\n\t\t\tWHERE ID = '$reserID'\";\n\n\t$result = $connect->query($sql);\n\n\tif($connect->query($sql) === true){\n\t\techo \"<br/>Update reservation's driver sucessfully\";\n\t} else {\n\t\techo \"<br/>Error: \" . $sql . \"<br>\" . $connect->error;\n\t}\n}", "public function add_information() \r\n {}", "public function add_information() \r\n {}", "public function set_extra(array $fields)\n\t{\n\t\t$this->extra = $fields;\n\t}", "public function getInfoAdvert() {\n $this->carsdata = $this->generateCarsInfo();\n $this->iduser = $this->getId();\n return $this;\n }", "function on_add_extra()\r\n\t{\r\n\t}", "abstract protected function getDriver();", "function setDriverDir( $driverDir )\n\t{\n\t\t$this->driverDir = $driverDir;\n\t}", "function addDriver() {\n $drivers = $_SESSION['drivers'];\n $l = sizeof($drivers);\n // We don't allow more than 20 drivers in this sandbox\n if ($l>19) {\n throw new Exception(\"You can only have 20 drivers in this sandbox\");\n return;\n }\n $request = Slim::getInstance()->request();\n \t$body = $request->getBody();\n \t$driver = json_decode($body);\n $driver->lastModified = date('Y-m-d H:i:s');\n $driver->deleted = false;\n $driver->id = sizeof($drivers) + 1;\n $drivers[] = $driver;\n $_SESSION['drivers'] = $drivers;\n echo json_encode($driver);\n}", "public function addDriver(DriverInterface $driver)\n {\n $this->drivers[$driver->getName()] = $driver;\n }", "public function setCreditInfo() {\n\t\t$this->creditInfo = $this->photo['title'] . \"&nbsp;by&nbsp;\" . $this->userName;\n\t}", "public function driver(){\n\n\t\t// belongsTo(RelatedModel, foreignKey = driver_id, keyOnRelatedModel = id)\n\t\treturn $this->belongsTo(Driver::class);\n\t}", "public function setDriver($driver)\n\t{\n\t if (!in_array($driver, array(self::DRIVER_GD, self::DRIVER_IMAGICK))) {\n\t throw new InvalidDriverException('A valid driver must be defined, either '.self::DRIVER_GD.' or '.self::DRIVER_IMAGICK);\n\t }\n\t \n\t switch ($driver) {\n\t case self::DRIVER_GD: \n\t $this->imagine = new \\Imagine\\Gd\\Imagine();\n\t break;\n\t case self::DRIVER_IMAGICK: \n\t $this->imagine = new \\Imagine\\Imagick\\Imagine();\t\n\t break;\n\t }\n\t \n\t return $this;\n\t}", "public function save()\n {\n try {\n $name = $this->getName();\n $age = $this->getAge();\n if (!$this->getDriverId()) {\n $this->_pdo->query(\"INSERT INTO driver (name, age) VALUES ('$name', '$age')\");\n } else {\n $this->_pdo->query(\n \"UPDATE drive SET name = '$name', age = '$age'\" .\n \" WHERE driver_id = \" . $this->getDriverId()\n );\n }\n } catch (PDOException $e) {\n echo \"Error: \" . $e;\n }\n }", "function SetDriverType($str) {\n $this->strDriverType = $str;\n }", "function setDriver($name) {\n\t\t$driver = $this->driversPath.$name.\".php\";\n\t\ttry {\n\t\t\tif( ! file_exists($driver) ) throw new Exception(\"Selected file is not a driver!\");\n\t\t\tinclude($driver);\n\t\t\t$drv = new $name();\n\t\t\tif( ! is_a($drv, 'Driver') ) throw new InvalidArgumentException(\"Drivers should extend Driver class\");\n\t\t} catch (Exception $e) {\n\t\t\t$this->toast = $e->getMessage();\n\t\t\treturn false;\n\t\t}\n $this->driver = $drv;\n\t\t$this->driver->cr = $this;\n\t\treturn true;\n\t}", "public function __construct($license, $driver, $model, $brand)\n {\n parent::__construct($license, $driver); //metodo para traer de car las dos variables \n $this->brand = $brand;\n $this->model = $model;\n }", "public function edit(driver $driver)\n {\n //\n }", "private function _setGlobalInformations()\n {\n $objInfoResult = $this->_dataResponse['s:Body']['GetFulfilmentSupplyOrderReportListResponse']['GetFulfilmentSupplyOrderReportListResult'];\n $this->tokenID = $objInfoResult['TokenId'];\n $this->sellerLogin = $objInfoResult['SellerLogin'];\n }", "function setInfo($info) {\n\t\t\t$this->updateResponse('info', $info);\n\t\t}", "protected function installDriversIfEnabled(): void\n {\n $reflection = new \\ReflectionClass($this);\n $reader = new AnnotationReader();\n\n $annotation = $reader->getClassAnnotation($reflection, Drivers::class);\n\n if (!$annotation instanceof Drivers) {\n return;\n }\n\n foreach ($annotation->install as $driver) {\n $this->{$driver} = $this->drivers->get($driver);\n }\n }", "public function addExtra($extra_name, $extra_value)\n {\n\n }", "public function initGearInfos()\n\t{\n\t\t$this->collGearInfos = array();\n\t}", "private static function add_version_info( $params = array() ) {\n\t\t\t// if any parameter is passed in the pixel, do not overwrite it\n\t\t\treturn array_replace( self::get_version_info(), $params );\n\t\t}", "public function __construct($license, $driver, $typeCarAccepted, $seatMaterial) \n {\n //Hereda los atributos de car\n parent::__construct($license, $driver);\n $this->typeCarAccepted = $typeCarAccepted;\n $this->$seatMaterial = $seatMaterial;\n }", "protected function setupResultObject()\n {\n $browserData = $this->detectByType();\n foreach ($browserData as $key => $value) {\n if ($key === 'originalInfo') {\n $this->setAttributes($value);\n continue;\n }\n Tools::runSetter($this->resultObject, $key, $value);\n }\n $this->additionalInfo = $browserData;\n }", "public function get_additional_info()\n {\n return array();\n }", "public function update_driver_rides_count($field = '', $driver_id = '') {\n if ($driver_id != '' && $field != '') {\n $condition = array('_id' => MongoID($driver_id));\n $this->mongo_db->where($condition)->inc($field, 1)->update(DRIVERS);\n /* $qur='db.dectar_drivers.update({\"driver_name\":\"Suresh Kumar\"},{\"$inc\":{\"cancelled_rides\":1}})'; */\n }\n }", "protected function getDriver() {}", "private function setDriver($params)\n {\n if (isset($params['driver'])) {\n return Cache::driver($params['driver']);\n } \n return Cache::driver();\n }", "public function setAdditionalInformation(?string $value): void {\n $this->getBackingStore()->set('additionalInformation', $value);\n }", "public function setInfo($info);", "public function driver()\n {\n return $this->hasOne(Driver::class, 'id', 'driver_id');\n }", "public function driver()\n {\n return $this->belongsTo('App\\Models\\Driver');\n }", "private function setAdditionalOptions(): void\n\t{\n\t\tforeach ( $this->configuration->getAdditionalOptions() as $additionalOptionIdentifier => $additionalOptionValue )\n\t\t{\n\t\t\tif ( true === in_array( $additionalOptionIdentifier, static::EXCLUDED_ADDITIONAL_OPTIONS, true ) )\n\t\t\t{\n\t\t\t\tldap_set_option( $this->ldapHandle, $additionalOptionIdentifier, $additionalOptionValue );\n\t\t\t}\n\t\t}\n\t}", "public function getDriverIdentifier()\n {\n return $this->driver;\n }", "public function setExtra($extra)\n {\n $resultData = $this->hydrateIfJsonToArray($extra);\n if (!empty($resultData)) {\n $this->extra = $resultData;\n }\n else {\n $this->extra = [];\n }\n }", "function driver_stats($option = array());", "public static function setDefaultDriver($name)\n {\n }", "private function SetVendorData()\n\t{\n\t\tif(isset($_REQUEST['vendorid'])) {\n\t\t\t$this->vendor = $this->LoadVendorById($_REQUEST['vendorid']);\n\t\t}\n\t\telse if(isset($GLOBALS['PathInfo'][1]) && $GLOBALS['PathInfo'][1] != '') {\n\t\t\t$this->vendor = $this->LoadVendorByFriendlyName($GLOBALS['PathInfo'][1]);\n\t\t}\n\n\t\t// Viewing the products that belong to a specific vendor\n\t\tif((isset($GLOBALS['PathInfo'][2]) && $GLOBALS['PathInfo'][2] == 'products') || (isset($_REQUEST['action']) && $_REQUEST['action'] == 'products')) {\n\t\t\tif(!is_array($this->vendor)) {\n\t\t\t\t$GLOBALS['ISC_CLASS_404'] = GetClass('ISC_404');\n\t\t\t\t$GLOBALS['ISC_CLASS_404']->HandlePage();\n\t\t\t}\n\n\t\t\t$this->displaying = 'products';\n\t\t}\n\n\t\t// Viewing a specific page\n\t\telse if((isset($GLOBALS['PathInfo'][2]) && $GLOBALS['PathInfo'][2] != '') || isset($_REQUEST['pageid'])) {\n\t\t\t//\n\t\t\tif(!is_array($this->vendor)) {\n\t\t\t\t$GLOBALS['ISC_CLASS_404'] = GetClass('ISC_404');\n\t\t\t\t$GLOBALS['ISC_CLASS_404']->HandlePage();\n\t\t\t}\n\n\t\t\t$this->displaying = 'page';\n\t\t}\n\n\t\t// Viewing vendor profile\n\t\telse if(isset($GLOBALS['PathInfo'][1]) || isset($_REQUEST['vendorid'])) {\n\t\t\tif(!is_array($this->vendor)) {\n\t\t\t\t$GLOBALS['ISC_CLASS_404'] = GetClass('ISC_404');\n\t\t\t\t$GLOBALS['ISC_CLASS_404']->HandlePage();\n\t\t\t}\n\t\t\t$this->displaying = 'profile';\n\t\t}\n\n\t\t// Otherwise, just showing a list of vendors\n\t\telse {\n\t\t\t$this->displaying = 'vendors';\n\t\t}\n\t}", "function setAdditionalDetails($value = true, $function = '') {\n if(!empty($function)) $this->additionalDetailsFunction = $function;\n $this->_additionalDetails = $value;\n }", "public function set_extra_fields($fields) {\n $this->extrafields = $fields;\n }", "function odbcdriver_edit($ext, $name, $driver, $setup, $description, $enable){\n $section = odbcdriver_get($ext);\n $section_name = $section['name'];\n exec(\"python /var/lib/asterisk/bin/rpclient.py DRIVER del=$section_name\");\n\tif($enable == 'yes'){\n\t\t$add_string = \"\".$name.\"-\".$driver.\"-\".$setup.\"-\".$description;\n\t\texec(\"python /var/lib/asterisk/bin/rpclient.py DRIVER add=$add_string\");\n\t}\n\t$sql=\"UPDATE odbcdriver set name='$name' where id='$ext'\";\n\tsql($sql);\n\t$sql=\"UPDATE odbcdriver set driver='$driver' where id='$ext'\";\n\tsql($sql);\n\t$sql=\"UPDATE odbcdriver set setup='$setup' where id='$ext'\";\n\tsql($sql);\n\t$sql=\"UPDATE odbcdriver set description='$description' where id='$ext'\";\n\tsql($sql);\n\t$sql=\"UPDATE odbcdriver set enable='$enable' where id='$ext'\";\n\tsql($sql);\n\n}", "public function aim_set_info($info)\r\n\t{\r\n\t\t$this->core->aim_send_raw('toc_set_info ' . $this->core->aim_encode($info));\r\n\t}", "public function __set($name, $value)\n {\n $this->extra[$name] = $value;\n }", "public function setExtra(array $extra) : ProviderInterface\n {\n $this->validateExtra($extra);\n\n return parent::setExtra($extra);\n }", "public function setBy($x) { $this->by = $x; }", "public function __construct(array $additionalParams)\n {\n if ($this->isLoaded = extension_loaded('newrelic')) {\n\n foreach ($additionalParams as $name => $param) {\n\n switch (strtolower($name)) {\n case 'applicationname' :\n newrelic_set_appname($param);\n break;\n default :\n break;\n }\n }\n } else {\n if (isset($GLOBALS['log'])) {\n $GLOBALS['log']->debug('SugarMetric_Provider_Newrelic: newrelic php extension is not loaded on server');\n }\n }\n }", "private function XML_addScanDetails() {\n\t\t$scanDetailsEntity = $this->xmlHandler->createElement('scandetails');\n\n\t\t// If we have report about XSS test, then needs to add the XML test details.\n\t\tif($this->XSSReport !== false) {\n\n\t\t\t$xssTestDetailsEntity = $this->XML_getXSSTestDetails();\n\t\t\t$scanDetailsEntity->appendChild( $xssTestDetailsEntity );\n\t\t}\n\t\t\n\t\t// If we have report abous SQL Injection test, then we needs to add the SQL Inejction test details.\t\n\t\tif($this->SQLInjectionReport !== false) {\n\n\t\t\t$sqlinjTestDetailsEntity = $this->XML_getSQLInjectionTestDetails();\n\t\t\t$scanDetailsEntity->appendChild( $sqlinjTestDetailsEntity );\n\t\t}\n\n\t\t// Appends details about scan into the root xml-block.\n\t\t$this->xmlRoot->appendChild($scanDetailsEntity);\n\t}", "public function extra();", "public function setDriverName($driverName = null)\n {\n // validation for constraint: string\n if (!is_null($driverName) && !is_string($driverName)) {\n throw new \\InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($driverName, true), gettype($driverName)), __LINE__);\n }\n if (is_null($driverName) || (is_array($driverName) && empty($driverName))) {\n unset($this->driverName);\n } else {\n $this->driverName = $driverName;\n }\n return $this;\n }", "protected function collectInformation() {}", "public function setExtra($extra_name, $extra_value = null)\n {\n\n }", "public function setInfo( $info )\n {\n $this->data['info'] = $info;\n }", "public static function getDriverName()\n {\n }", "public function registerBuiltinDrivers(): self\n {\n return $this->registerDriversInDirectory(__DIR__ . '/Driver', 'CIInfo\\\\Driver');\n }", "public function setAdditionalInfo($value)\n {\n return $this->set(self::ADDITIONALINFO, $value);\n }", "function setDetails( $details )\n {\n die ('abstract class - subclass must implement this function. '. __CLASS__.'::'.__FUNCTION__); \n }", "public function setAgents() {\n foreach ($this->rAgents as $value) {\n $this->agent[$value->id] = $value->id;\n }\n }", "public function set_driver(Driver_Interface $driver = NULL)\n\t{\n\t\tif ( ! is_null($driver))\n\t\t{\n\t\t\t$this->driver = $driver;\n\t\t}\n\t\treturn $this;\n\t}", "protected function addItemDetails(&$item) \r\n\t{\r\n\t\t//$item->totals = KTBTrackerHelper::getUserTotals($item);\r\n\t\t$this->getUserInfo($item);\r\n\t}", "public function driver($driver = null)\n\t{\n\t\treturn $this->store($driver);\n\t}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getDriverName()\n {\n return $this->driverName;\n }", "public function show(driver $driver)\n {\n //\n }", "public function show(driver $driver)\n {\n //\n }", "public function __construct(array $additionalDetail = array())\n {\n $this\n ->setAdditionalDetail($additionalDetail);\n }", "public function getDriverRestrictions() {}", "function appendConnectionTechnology($connection_technology, $connection_technology_version)\n {\n $this->connection_technology .= ' - ' . $connection_technology;\n $this->connection_technology_version .= ' - ' . $connection_technology_version;\n }", "public function setAdditionalInformation($additionalInformation)\n {\n $this->additionalInformation = $additionalInformation;\n return $this;\n }" ]
[ "0.58454055", "0.5635204", "0.53029513", "0.529259", "0.5156622", "0.51484185", "0.50958574", "0.5011995", "0.50019056", "0.49740914", "0.49062333", "0.4897746", "0.48805058", "0.48603475", "0.48297557", "0.4808555", "0.4799439", "0.47574654", "0.47431204", "0.4734453", "0.47284842", "0.47146428", "0.47070503", "0.4702321", "0.46832937", "0.46832937", "0.46830943", "0.4662206", "0.46538615", "0.46533424", "0.4646919", "0.4643827", "0.4636542", "0.46278453", "0.4612966", "0.4612614", "0.46113613", "0.46105587", "0.46046317", "0.4591859", "0.45863888", "0.45721436", "0.45679486", "0.45543408", "0.4547906", "0.45471165", "0.45412987", "0.45387912", "0.45376912", "0.45176485", "0.4498542", "0.44969332", "0.4493945", "0.44856405", "0.44837275", "0.44823658", "0.44678044", "0.4461272", "0.44593987", "0.44560373", "0.44536027", "0.44493502", "0.44460994", "0.44426808", "0.44422838", "0.4439377", "0.4438823", "0.4426863", "0.44246224", "0.44218427", "0.4414947", "0.44076073", "0.4406973", "0.44015336", "0.43934956", "0.4391908", "0.43896905", "0.4389202", "0.43877193", "0.43863776", "0.4384473", "0.43825233", "0.4378068", "0.43581188", "0.43506387", "0.4349218", "0.4349218", "0.43490097", "0.43490097", "0.43490097", "0.43489906", "0.43489906", "0.43489906", "0.43489906", "0.43423182", "0.43355936", "0.43355936", "0.43346897", "0.43317434", "0.43215078", "0.431984" ]
0.0
-1
Persists data into DB in single transaction
public function persist($locale, array $data) { $writeCount = 0; try { $this->em->beginTransaction(); foreach ($data as $domain => $domainData) { foreach ($domainData as $key => $translation) { if (strlen($key) > MySqlPlatform::LENGTH_LIMIT_TINYTEXT) { continue; } $writeCount++; $this->toWrite[] = $this->getTranslationObject($key, $locale, $domain, $translation); if (0 === $writeCount % $this->batchSize) { $this->write($this->toWrite); $this->toWrite = []; } } } if (count($this->toWrite) > 0) { $this->write($this->toWrite); } $this->em->commit(); } catch (\Exception $exception) { $this->em->rollback(); throw $exception; } // update timestamp in case when persist succeed $this->metadataCache->updateTimestamp($locale); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function persist()\n {\n $uid = $this->getIdentifier() == 0 ? 'NEW' . rand(100000, 999999) : $this->getIdentifier();\n $data = [\n trim(static::$storageTableName) => [\n $uid => $this->getPersistableDataArray()\n ]\n ];\n // New records always must have a pid\n if ($this->getIdentifier() == 0) {\n $data[trim(static::$storageTableName)][$uid]['pid'] = 0;\n }\n /** @var \\TYPO3\\CMS\\Core\\DataHandling\\DataHandler $tce */\n $tce = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance(\\TYPO3\\CMS\\Core\\DataHandling\\DataHandler::class);\n $tce->start($data, []);\n $tce->process_datamap();\n }", "public function store()\n {\n if( $this->isPersistent() )\n {\n $this->update();\n }\n else\n {\n $this->insert();\n }\n }", "public function save()\n {\n $entities = $this->entities;\n Database::getInstance()->doTransaction(\n function() use ($entities)\n {\n foreach ($entities as $entity)\n {\n if ($entity->getMarkedAsDeleted())\n {\n $entity->delete();\n } \n else if ($entity->getMarkedAsUpdated())\n {\n $entity->saveWithDetails();\n }\n }\n }\n );\n }", "public function persist() {}", "public function persist();", "static protected function persist() {\n\t\t$objectManager = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance(\\TYPO3\\CMS\\Extbase\\Object\\ObjectManager::class);\n\t\t$persistanceManager = $objectManager->get(\\TYPO3\\CMS\\Extbase\\Persistence\\Generic\\PersistenceManager::class);\n\t\t$persistanceManager->persistAll();\n\t}", "public function commit();", "public function commit();", "public function commit();", "public function commit();", "public function commit();", "function persistAll() ;", "public function persist($data);", "public function persistAll() {}", "function persist() ;", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function save()\n {\n $this->persist($this->state);\n }", "public function flush()\n {\n $this->unitOfWork->commit();\n }", "public abstract function commit();", "public function commit()\n {\n if ($this->transactions == 1) {\n $this->getPdo()->commit();\n }\n\n $this->transactions--;\n }", "public function commit()\n {\n if ($this->store->transactions == 1) {\n $this->store->commit();\n }\n\n --$this->transactions;\n }", "public function commit()\n{\n\t$this->query('COMMIT');\n}", "protected function commitTransaction()\n {\n $this->container->make('db')->commit();\n }", "public function commit() {}", "public function commit()\r\n {\r\n if ($this->_txns == 1) {\r\n $this->getMaster()->commit();\r\n }\r\n --$this->_txns;\r\n }", "private function storeToDB() {\r\n\t\tDBQuery::getInstance() -> insert('INSERT INTO `CalculatedDailyNeeds`' . DBUtils2::buildMultipleInsertOnDuplikateKeyUpdate($this -> aArticleData));\r\n\t}", "function save() {\r\n foreach ($this->_data as $v)\r\n $v -> save();\r\n }", "public function save()\n {\n $this->checkForNecessaryProperties();\n\n $this->update($this->getCurrentId(), $this->data);\n }", "public function persist(array $data)\n {\n }", "public function persist()\n {\n //\n }", "public static function commit() {\n\t\tforeach (self::$con as $instanceName => $instance) {\n\t\t\t$instance->commit();\n\t\t}\n\t}", "public function persist()\n {\n }", "public function commit()\n {\n $this->getConnection()->commit();\n }", "protected function createSavePoint(): void\n {\n foreach ($this->getActiveConnections() as $connection) {\n try {\n $connection->setNestTransactionsWithSavepoints(true);\n $connection->beginTransaction();\n } catch (\\Exception $e) {\n }\n }\n }", "public function persistQueuedDatabaseTransactions()\n {\n foreach ($this->queue as $key => $closure) {\n $closure($this);\n unset($this->queue[$key]);\n }\n }", "public function transactional();", "protected function commit()\n\t{\n\t\t$this->db->commit();\n\t}", "public function transaction();", "public function transaction();", "private function saveTracker(): void {\n try {\n $this->getEntityManager()->persist($this->engagement);\n $this->getEntityManager()->flush($this->engagement);\n } catch (OptimisticLockException $e) {\n } catch (ORMException $e) {\n } catch (ForeignKeyConstraintViolationException $e){\n }\n }", "function commit();", "public function commit()\n {\n $this->getActivePdo()->commit();\n }", "public function store()\n {\n $this->filtrarCampos();\n\n // verifica se tem ID ou se existe na base de dados\n if (empty($this->data['id']) or (!$this->load($this->id))) {\n // incrementa o ID\n $this->id = $this->getLast() + 1;\n // cria uma instruo de insert\n $sql = new TSqlInsert;\n $sql->setEntity($this->getEntity());\n // percorre os dados do objeto\n foreach ($this->data as $key => $value) {\n // passa os dados do objeto para o SQL\n $sql->setRowData($key, $this->$key);\n }\n } else {\n // instancia instruo de update\n $sql = new TSqlUpdate;\n $sql->setEntity($this->getEntity());\n // cria um critrio de seleo baseado no ID\n $criteria = new TCriteria;\n $criteria->add(new TFilter('id', '=', $this->id));\n $sql->setCriteria($criteria);\n // percorre os dados do objeto\n foreach ($this->data as $key => $value) {\n if ($key !== 'id') // o ID no precisa ir no UPDATE\n {\n // passa os dados do objeto para o SQL\n $sql->setRowData($key, $this->$key);\n }\n }\n }\n // inicia transao\n if ($conn = TTransaction::get()) {\n\n // faz o log e executa o SQL\n TTransaction::log($sql->getInstruction());\n $result = $conn->exec($sql->getInstruction());\n\n // retorna o resultado\n return $result;\n } else {\n // se no tiver transao, retorna uma exceo\n throw new \\Exception('No h transao ativa !!');\n }\n }", "public function save()\n {\n // If deposit is new, will get assigned database ID.\n $this->dbID = $this->db->saveDeposit($this);\n }", "public function commit()\n {\n if ($this->transactionLevel === 0)\n {\n throw new DatabaseException('transaction-nothing-to-commit');\n }\n \n --$this->transactionLevel;\n \n if ($this->transactionLevel === 0)\n {\n if (!$this->pdo->commit())\n {\n throw new DatabaseException('transaction-commit');\n }\n }\n else\n {\n // Release savepoint, we no longer need it.\n $this->pdo->exec('RELEASE SAVEPOINT LEVEL' . $this->transactionLevel);\n }\n }", "function commit() ;", "public function save() {\n $db = Db::instance();\n // omit id and any timestamps\n $db_properties = array(\n 'author_id' => $this->author_id,\n 'clothingname' => $this->clothingname,\n 'clothingtype' => $this->clothingtype,\n 'tempmin' => $this->tempmin,\n 'tempmax' => $this->tempmax\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "public function save()\n {\n $pdo = $this->getDbConnection();\n $valuesRow = $this->prepareValuesRow();\n\n $pdo->exec(\"REPLACE INTO {$this->dbTable} (`key`, `value`) VALUES {$valuesRow}\");\n }", "public static function commit()\n {\n }", "public function commit()\n {\n if (self::$_transactionLevel == 1) {\n $this->getConnection()->commit();\n }\n \n if (self::$_transactionLevel > 0) {\n self::$_transactionLevel--;\n }\n }", "protected function save(): void\n {\n if ($this->connection == 'database') {\n $this->cart->each(\n function ($item) {\n if ($cart = $this->storage->has($item['id'])) {\n $cart->update(\n [\n 'rowId' => $item['id'],\n 'price' => $item['price'],\n 'quantity' => $item['quantity'],\n 'cartable_id' => $item['cartable_id'],\n 'cartable_type'=> $item['cartable_type'],\n ]\n );\n } else {\n $this->storage->create(\n [\n 'rowId' => $item['id'],\n 'user_id' => $this->user->id,\n 'price' => $item['price'],\n 'quantity' => $item['quantity'],\n 'cartable_id' => $item['cartable_id'],\n 'cartable_type'=> $item['cartable_type'],\n ]\n );\n }\n }\n );\n } elseif ($this->sessionStatus) {\n $this->storage->put([$this->instanceName => $this->cart]);\n }\n }", "public function save()\n {\n if ($this->id) {\n $this->update();\n } else {\n $this->id = $this->insert();\n }\n }", "protected function commit( $table, $data ) {\n\t\t$db_file = $this->root_directory . DIRECTORY_SEPARATOR . $table . '.json';\n\t\tfile_put_contents( $db_file, json_encode( array_values( $data ) ) );\n\t}", "public function save()\n {\n if ($this->id === null) {\n $this->insert();\n } else {\n $this->update();\n }\n }", "abstract public function commitTransaction();", "function saveData() {\n\n\t\t$this->getMapper()->saveData();\t\n\t\t\n\t\t\n\t}", "private function store($data)\n\t{\n\t\t$this->redis->lpush('transactions', json_encode($data));\n\t\t$this->redis->ltrim('transactions', 0, self::$LIST_LEN);\n\t}", "public function commit() {\n\t$idAvailable = \\is_numeric($this->getId());\n\t//We're checking if the id is available and it's marked for delete. If not, we need to check if the id is available.\n\t//Finally, we need to make sure it hasn't been marked for delete. if it has and there's no id, nothing needs to be\n\t//done.\n\tif ($idAvailable && $this->_markForDelete) {\n\t $this->delete();\n\t}\n\telse if ($idAvailable) {\n\t $this->update();\n\t}\n\telse if (!$this->_markForDelete) {\n\t $this->insert();\n\t}\n }", "public function store(Request $request)\n {\n\n DB::beginTransaction();\n\n try {\n\n\n DB::commit();\n // all good\n } catch (\\Exception $e) {\n DB::rollback();\n // something went wrong\n }\n }", "public function persist() {\n $bd = BD::getConexion();\n $sqlInsertUsuario = \"insert into usuarios (nomUsuario, clave) values (:nomUsuario, :clave)\";\n $sthSqlInsertUsuario = $bd->prepare($sqlInsertUsuario);\n $result = $sthSqlInsertUsuario->execute([\":nomUsuario\" => $this->nomUsuario, \":clave\" => $this->clave]);\n $this->id = (int) $bd->lastInsertId();\n }", "public function persist()\n {\n\n $this->persistor->persist(\n $this->event,\n $this->relatedEntities,\n $this->eventRequest->getApplication(),\n $this->eventRequest->getAccount(),\n $this->eventRequest->getProduct(),\n $this->eventRequest->appendCustomer\n );\n\n }", "public function commit(): void\n {\n $this->eventDispatcher->dispatchPreFlush();\n\n if (\n $this->objectsToPersist === [] &&\n $this->objectsToUpdate === [] &&\n $this->objectsToRemove === []\n ) {\n return; // Nothing to do.\n }\n\n $objects = array_merge(\n $this->objectsToPersist,\n $this->objectsToUpdate,\n $this->objectsToRemove,\n );\n $this->eventDispatcher->dispatchPreFlushLifecycleCallbacks($objects);\n\n $this->eventDispatcher->dispatchOnFlush();\n\n $this->persister->executePersists();\n $this->persister->executeUpdates();\n $this->persister->executeRemoves();\n\n $this->eventDispatcher->dispatchPostFlush();\n\n $this->objectsToPersist = [];\n $this->objectsToUpdate = [];\n $this->objectsToRemove = [];\n $this->objectChangeSets = new ChangeSets();\n }", "public function store()\r\n\t{\r\n\t\t$jsonData = $this->getAll();\r\n\r\n\t $data = array(\r\n\t\t\t'username'=> $this->user->username,\r\n\t\t\t'post'=> $this->post,\r\n\t\t\t'date'=> $this->date,\r\n\t );\r\n\r\n\t\tarray_unshift($jsonData, $data);\r\n\r\n\t\t$this->save($jsonData);\r\n\t}", "public function commit()\n\t{\n $this->neoeloquent->commit();\n\t}", "public function persist($data)\n {\n dd($data);\n $this->entityManager->persist($data);\n $this->entityManager->flush();\n }", "public function persist(mixed $data)\n {\n }", "function save()\n {\n $GLOBALS['DB']->exec(\"INSERT INTO stores (store_name) VALUES (\n '{$this->getStoreName()}'\n );\");\n\n $this->id = $GLOBALS['DB']->lastInsertId();\n }", "public static function commit_transaction()\n {\n global $wpdb;\n $wpdb->query('COMMIT;');\n }", "protected function persistObjects() {}", "public function persist()\n {\n $this->eventManager->dispatchEvent(['persist_before'], [get_class($this)]);\n if (!empty($this->handlerInterface)) {\n $result = $this->handlerFactory->create($this->handlerInterface)->persist($this);\n if (!empty($result)) {\n foreach ($result as $key => $value) {\n $this->data[$key] = $value;\n }\n }\n }\n $this->eventManager->dispatchEvent(['persist_after'], [get_class($this)]);\n }", "public function store()\n {\n $this->storeKeys();\n }", "public function commitTransaction() {\r\n\t\t// TODO: Implement transaction stuff.\r\n\t\t//$this->query('COMMIT TRANSACTION');\r\n\t}", "public function commit(): void\n {\n if ($this->transactions == 1) {\n $this->call('commit');\n }\n\n $this->transactions = max(0, $this->transactions - 1);\n }", "public function commit() {\n\t\t$this->execute(\"COMMIT; SET autocommit = 1;\");\n\t}", "public function flushDataStore()\n {\n $this->database->flushAll(); \n }", "function storeAndNew() {\n $this->store();\n }", "abstract public function FlushToDatabase();", "function save() {\n $conn = \\DB\\getConnection();\n\n $query = sprintf(\"INSERT INTO Payments (uid, typeid, token, amount)\n VALUES (%u, %u, '%s', %f)\",\n $this->uid, $this->typeid, $conn->escape_string($this->token), $this->amount);\n\n \n\n $result = $conn->query($query);\n\n // If this is a newly created user, then update the id with the\n // newly created one\n if (!isset($this->id)) {\n $this->id = $result->insert_id;\n }\n }", "public function save(): void\n {\n $this->em->persist($this->model);\n $this->em->flush();\n }", "public function persist() {\n $bd = BD::getConexion();\n $sql = \"insert into usuarios (nombre, clave) values (:nombre, :clave)\";\n $sthSql = $bd->prepare($sqlInsertUsuario);\n $result = $sthSql->execute([\":nombre\" => $this->nombre, \":clave\" => $this->clave]);\n $this->id = (int) $bd->lastInsertId();\n }", "protected function saveState(): void\n {\n $em = $this->getEntityManager();\n $em->flush();\n }", "public function persist()\n {\n persistableCollection::getInstance($this->resourceName)->persistObject($this);\n $this->loaded = true;\n $this->persisted = true;\n }", "public function markAsPersisted(): void;", "function commit(): void;", "public function save() {\n $db = Db::instance();\n // omit id and any timestamps\n $db_properties = array(\n 'event_type_id' => $this->event_type_id,\n 'user_1_id' => $this->user_1_id,\n 'user_2_id' => $this->user_2_id,\n 'user_1_name' => $this->user_1_name,\n 'user_2_name' => $this->user_2_name,\n 'product_1_name' => $this->product_1_name,\n 'product_2_name' => $this->product_2_name,\n 'data_1' => $this->data_1,\n 'data_2' => $this->data_2\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "protected function store()\n\t{\n\t\t// rebuild the keys table\n\t\t$this->reindex();\n\t\t//---------------------\n\t\t// Your code goes here\n\t\t// --------------------\n\t}", "public function transactionCommit()\n {\n $this->connectionManager->commit();\n $this->connectionManager->autocommit(true);\n }", "public function save(Transaction $transaction)\n {\n }", "public static function commitTransaction()\n\t{\n\t\tif (self::$currentTransaction !== null)\n\t\t{\n\t\t\tself::$currentTransaction->commit();\n\t\t\tself::$currentTransaction = null;\n\t\t}\n\t}", "public function commit()\n {\n $this->connection->commit();\n }", "public function commitUpdate();", "public function persistEntity($obj)\n\t{\n\t\t$this->db->persistEntity($obj);\n\t}", "public function persist()\n {\n $lock = Cache::lock(self::PROCEED_LOCK);\n try\n {\n if ($lock->get())\n {\n $list = [];\n if (Cache::has(self::PROCEED_LIST)) {\n $list = Cache::get(self::PROCEED_LIST);\n }\n $errList = [];\n foreach ($list as $uid => $val)\n {\n try \n {\n $record = Proceed::where('user_id', $uid)->get();\n if ($record->isNotEmpty())\n {\n $record = $record->first();\n }\n else \n {\n $record = new Proceed();\n $record->user_id = $uid;\n $record->proceed = 0;\n }\n $record->proceed += $val;\n $record->save();\n }\n catch (Exception $ex)\n {\n Log::error(\"Proceed persist {$uid}-{$val} error.\" . $ex->getMessage());\n $errList[$uid] = $val;\n }\n }\n Cache::put(self::PROCEED_LIST, $errList);\n }\n }\n catch (Exception $ex)\n {\n Log::error($ex->getMessage());\n }\n finally \n {\n optional($lock)->release();\n }\n }", "public function transactionAction() {\n try {\n $this->datasource->beginTransaction();\n\n $article_id = $this->datasource->insertArticle('John Smith', 'Nice writing');\n\n $this->datasource->deleteArticle($article_id);\n\n $this->datasource->commit();\n\n return ['success' => true];\n\n } catch(Exception $ex) {\n $this->datasource->rollBack();\n throw $ex;\n }\n }", "public function commit()\n {\n }", "public function commit()\n {\n }", "protected function save()\n\t{\n\t\t$this->saveItems();\n\t\t//$this->saveAssignments();\n\t\t//$this->saveRules();\n\t}", "public function commitTransaction() {\n\t\t//noop\n\t}", "private function persist()\n {\n $content = $this->adapter->read();\n\n $content = $this->builder->apply($content);\n\n return $this->adapter->write($content);\n }", "private function saveData() {\n\n $dbConnection = dbconn::getConnectionBuild()->getConnection();\n date_default_timezone_set (\"America/Chicago\");\n\n if ($this->propertyId == 0) {\n // Insert a new row.\n $sqlStmt = \"INSERT INTO property (customer_id, tenant_first_name, tenant_last_name, address, city, \";\n $sqlStmt .= \"state, zip, phone, email, notes, created_by, last_modified_by, last_modified) \";\n $sqlStmt .= \"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) \";\n\n $stmtObj = $dbConnection->prepare($sqlStmt);\n if ($dbConnection->error) {\n echo $dbConnection->error;\n exit();\n }\n\n $currentDate = date('Y-m-d H:i:s');\n $stmtObj->bind_param(\"isssssssssiis\", $this->customerId, $this->firstName, $this->lastName, $this->address, $this->city,\n $this->state, $this->zip, $this->phone, $this->email, $this->notes, $this->employeeId,\n $this->employeeId, $currentDate);\n $stmtObj->execute();\n if ($dbConnection->error) {\n echo $dbConnection->error;\n exit();\n }\n $this->propertyId = $dbConnection->insert_id;\n } else {\n // Update existing row.\n $sqlStmt = \"UPDATE property SET customer_id = ?, tenant_first_name = ?, tenant_last_name = ?, address = ?, city = ?, \";\n $sqlStmt .= \"state = ?, zip = ?, phone = ?, email = ?, notes = ?, last_modified_by = ?, last_modified = ? \";\n $sqlStmt .= \"WHERE id = ? \";\n\n $currentDate = date('Y-m-d H:i:s');\n\n $stmtObj = $dbConnection->prepare($sqlStmt);\n $stmtObj->bind_param(\"isssssssssisi\", $this->customerId, $this->firstName, $this->lastName, $this->address, $this->city,\n $this->state, $this->zip, $this->phone, $this->email, $this->notes, $this->employeeId,\n $currentDate, $this->propertyId);\n $stmtObj->execute();\n }\n\n $this->statusMessage = \"Save successful: \" . date(\"h:i:s a\");\n\n }", "public function persist(IEntity $entity): void\n\t{\n\t\t$this->beginTransaction();\n\t\t$data = $this->entityToArray($entity);\n\t\t$data = $this->getConventions()->convertEntityToStorage($data);\n\n\t\tif (!$entity->isPersisted()) {\n\t\t\t$this->processInsert($entity, $data);\n\n\t\t} else {\n\t\t\t$primary = [];\n\t\t\t$id = (array) $entity->getPersistedId();\n\t\t\tforeach ($entity->getMetadata()->getPrimaryKey() as $key) {\n\t\t\t\t$primary[$key] = array_shift($id);\n\t\t\t}\n\t\t\t$primary = $this->getConventions()->convertEntityToStorage($primary);\n\n\t\t\t$this->processUpdate($entity, $data, $primary);\n\t\t}\n\t}" ]
[ "0.7178872", "0.7167348", "0.68731546", "0.68706805", "0.6859407", "0.6827354", "0.6758521", "0.6758521", "0.6758521", "0.6758521", "0.6758521", "0.6757548", "0.6747035", "0.674343", "0.6713122", "0.6650528", "0.66035753", "0.6557708", "0.65507764", "0.6519588", "0.65114164", "0.64964163", "0.64887977", "0.64656216", "0.6453732", "0.6437713", "0.64095414", "0.6365579", "0.6338102", "0.6325225", "0.63066435", "0.62989986", "0.62851816", "0.6274052", "0.6191032", "0.6189809", "0.61847925", "0.61830616", "0.61830616", "0.6177075", "0.6173227", "0.61724275", "0.6156872", "0.6141582", "0.6136114", "0.6108066", "0.6107755", "0.6107374", "0.6096605", "0.6082044", "0.60730153", "0.60675836", "0.6066977", "0.60620165", "0.6060247", "0.6047496", "0.6039189", "0.60273874", "0.6026513", "0.60247463", "0.6023243", "0.6019158", "0.6006293", "0.6005943", "0.6001637", "0.5998691", "0.5998148", "0.59975135", "0.59973854", "0.5995395", "0.599017", "0.5969495", "0.5965087", "0.59620446", "0.5957928", "0.5944305", "0.5938152", "0.5936049", "0.59343773", "0.59314835", "0.5930019", "0.5924671", "0.592283", "0.5922663", "0.59096235", "0.59065497", "0.5905278", "0.59037423", "0.59014815", "0.59012866", "0.5889609", "0.5889089", "0.5887618", "0.58639765", "0.5853796", "0.5853796", "0.58472186", "0.5841154", "0.5828958", "0.5823171", "0.5822398" ]
0.0
-1
Do persist into EntityManager
private function write(array $items) { foreach ($items as $item) { $this->em->persist($item); } $this->em->flush(); $this->em->clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function persist($entity)\n {\n }", "public function persist();", "public function persist() {}", "public function persist()\n {\n\n $this->persistor->persist(\n $this->event,\n $this->relatedEntities,\n $this->eventRequest->getApplication(),\n $this->eventRequest->getAccount(),\n $this->eventRequest->getProduct(),\n $this->eventRequest->appendCustomer\n );\n\n }", "public function persist()\n {\n }", "public function persist()\n {\n //\n }", "static protected function persist() {\n\t\t$objectManager = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance(\\TYPO3\\CMS\\Extbase\\Object\\ObjectManager::class);\n\t\t$persistanceManager = $objectManager->get(\\TYPO3\\CMS\\Extbase\\Persistence\\Generic\\PersistenceManager::class);\n\t\t$persistanceManager->persistAll();\n\t}", "public function postPersist($entity);", "public function persist($data);", "protected function persist($entity)\n {\n if (!$this->em()->isOpen()) {\n $this->getDoctrine()->resetManager();\n }\n\n $this->em()->persist($entity);\n $this->em()->flush();\n\n }", "public function save()\n {\n $entities = $this->entities;\n Database::getInstance()->doTransaction(\n function() use ($entities)\n {\n foreach ($entities as $entity)\n {\n if ($entity->getMarkedAsDeleted())\n {\n $entity->delete();\n } \n else if ($entity->getMarkedAsUpdated())\n {\n $entity->saveWithDetails();\n }\n }\n }\n );\n }", "private function saveTracker(): void {\n try {\n $this->getEntityManager()->persist($this->engagement);\n $this->getEntityManager()->flush($this->engagement);\n } catch (OptimisticLockException $e) {\n } catch (ORMException $e) {\n } catch (ForeignKeyConstraintViolationException $e){\n }\n }", "public function persist($data)\n {\n dd($data);\n $this->entityManager->persist($data);\n $this->entityManager->flush();\n }", "public function persist(IEntity $entity): void\n\t{\n\t\t$this->beginTransaction();\n\t\t$data = $this->entityToArray($entity);\n\t\t$data = $this->getConventions()->convertEntityToStorage($data);\n\n\t\tif (!$entity->isPersisted()) {\n\t\t\t$this->processInsert($entity, $data);\n\n\t\t} else {\n\t\t\t$primary = [];\n\t\t\t$id = (array) $entity->getPersistedId();\n\t\t\tforeach ($entity->getMetadata()->getPrimaryKey() as $key) {\n\t\t\t\t$primary[$key] = array_shift($id);\n\t\t\t}\n\t\t\t$primary = $this->getConventions()->convertEntityToStorage($primary);\n\n\t\t\t$this->processUpdate($entity, $data, $primary);\n\t\t}\n\t}", "public function persist($entity)\n {\n $visited = [];\n $this->doPersist($entity, $visited);\n }", "public function persistAll() {}", "public function persist($obj)\r\n {\r\n }", "public function save(): void\n {\n $this->em->persist($this->model);\n $this->em->flush();\n }", "protected function persistAndFlush($entity)\n\t{\n\t\t$this->em->persist($entity);\n\t\t$this->em->flush();\n\t}", "public function persistir($entidade, $setarDataEHora = true) {\n try {\n if ($setarDataEHora) {\n $entidade->setDataEHoraDeCriacao();\n }\n $this->getEntityManager()->persist($entidade);\n $this->getEntityManager()->flush($entidade);\n } catch (Exception $exc) {\n echo $exc->getMessage();\n }\n }", "public function saveEntity($entity)\n\t{\n\t\t$entityManager = $this->getDoctrine()->getManager();\n\t $entityManager->persist($entity);\n\t $entityManager->flush();\n\t}", "public function persist($object);", "public function persist()\n {\n persistableCollection::getInstance($this->resourceName)->persistObject($this);\n $this->loaded = true;\n $this->persisted = true;\n }", "function persist() ;", "public function persistEntity($obj)\n\t{\n\t\t$this->db->persistEntity($obj);\n\t}", "public function persist()\n {\n $this->eventManager->dispatchEvent(['persist_before'], [get_class($this)]);\n if (!empty($this->handlerInterface)) {\n $result = $this->handlerFactory->create($this->handlerInterface)->persist($this);\n if (!empty($result)) {\n foreach ($result as $key => $value) {\n $this->data[$key] = $value;\n }\n }\n }\n $this->eventManager->dispatchEvent(['persist_after'], [get_class($this)]);\n }", "public function persist(Entity\\Base $entity)\n {\n $this->getEntityManager()->persist($entity);\n }", "public function flush() {\r\n\t$this->em->flush();\r\n }", "public function save()\n {\n $this->persist($this->state);\n }", "public function persist($oneOrManyEntities): void;", "protected function persistObjects() {}", "public function markAsPersisted(): void;", "public function testPersistSavesEntityToDatabase(): void\n {\n $entityFactoryManager = $this->getEntityFactoryManager([\n 'Tests\\EoneoPay\\Externals\\ORM\\Stubs\\Factories\\\\' => 'Tests\\EoneoPay\\Externals\\ORM\\Stubs'\n ]);\n\n $entity = $entityFactoryManager->create(EntityStub::class);\n self::assertNull($entity->getEntityId());\n\n $entity = $entityFactoryManager->persist(EntityStub::class);\n self::assertNotNull($entity->getEntityId());\n }", "function persist($batch)\n {\n // TODO: Implement persist() method.\n }", "protected function persistAndFlush($entity)\n {\n $this->persist($entity);\n $this->flush();\n }", "protected function saveEntity($entity)\n {\n $this->om->persist($entity);\n $this->om->flush($entity);\n }", "public function saveModel($entity){\n $this->entityManager->persist($entity);\n $this->entityManager->flush();\n }", "protected function saveState(): void\n {\n $em = $this->getEntityManager();\n $em->flush();\n }", "public function store()\n {\n if( $this->isPersistent() )\n {\n $this->update();\n }\n else\n {\n $this->insert();\n }\n }", "public function insertar($em, $visita) {\n\n $em->persist($visita);\n $em->flush();\n\t}", "public function persist()\n {\n $uid = $this->getIdentifier() == 0 ? 'NEW' . rand(100000, 999999) : $this->getIdentifier();\n $data = [\n trim(static::$storageTableName) => [\n $uid => $this->getPersistableDataArray()\n ]\n ];\n // New records always must have a pid\n if ($this->getIdentifier() == 0) {\n $data[trim(static::$storageTableName)][$uid]['pid'] = 0;\n }\n /** @var \\TYPO3\\CMS\\Core\\DataHandling\\DataHandler $tce */\n $tce = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance(\\TYPO3\\CMS\\Core\\DataHandling\\DataHandler::class);\n $tce->start($data, []);\n $tce->process_datamap();\n }", "public function flush()\n {\n $this->entityManager->flush();\n }", "public static function save($em, $obj)\n {\n $em->persist($obj);\n $em->flush();\n }", "public function save(Marque $marque)\n {\n $this->em->persist($marque);\n $this->em->flush();\n }", "public function save($entity);", "public function save($entity);", "public function save($entity);", "function persistAll() ;", "public function prePersist($entity);", "public function persist(array $data)\n {\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function flush()\n {\n $this->getEntityManager()->flush();\n }", "public function addPersistEntity($entity)\n {\n $this->persistEntities[] = $entity;\n }", "public function persist() {\n $bd = BD::getConexion();\n $sqlInsertUsuario = \"insert into usuarios (nomUsuario, clave) values (:nomUsuario, :clave)\";\n $sthSqlInsertUsuario = $bd->prepare($sqlInsertUsuario);\n $result = $sthSqlInsertUsuario->execute([\":nomUsuario\" => $this->nomUsuario, \":clave\" => $this->clave]);\n $this->id = (int) $bd->lastInsertId();\n }", "public function save()\n \t{\n \t $this->getMapper()->save($this);\n \t}", "abstract public function store(Entity $oMappedEntity);", "public function persist(mixed $data)\n {\n }", "public function persist() {\n $bd = BD::getConexion();\n $sql = \"insert into usuarios (nombre, clave) values (:nombre, :clave)\";\n $sthSql = $bd->prepare($sqlInsertUsuario);\n $result = $sthSql->execute([\":nombre\" => $this->nombre, \":clave\" => $this->clave]);\n $this->id = (int) $bd->lastInsertId();\n }", "public function persist($data, array $context = [])\n {\n $this->em->persist($data);\n $this->em->flush();\n return $data;\n }", "public function save($object)\n {\n $this->entityManager->persist($object);\n $this->entityManager->flush();\n }", "public function save() {\n return $this->entity->save();\n }", "public function persist()\n {\n $this->checkPersister();\n\n $this->persister->beginTransaction();\n foreach ($this as $entity) {\n if (!empty($entity)){\n $this->persister->persist($entity);\n }\n }\n\n $this->persister->commitTransaction();\n\n return $this;\n }", "protected function persist(EntityInterface $entity, Model $model) {\n $this->save();\n\n $entity->fromArray($model->toArray());\n }", "public function persist(Commande $commande)\n {\n parent::save($commande); // TODO: Change the autogenerated stub\n }", "public function save(Persistable $persistable) : void;", "public function storeEvent($event)\n {\n $this->entityManager->persist($event);\n $this->entityManager->flush();\n }", "function db_create_account($account)\n{\n $em = DbEntity::getInstance()->getEntityManager();\n $em->persist($account);\n $em->flush();\n return $account;\n}", "public function prePersist()\n {\n }", "public function persist() {\n\n $classenta = new cl_assenta();\n\n $classenta->h16_regist = $this->getMatricula();\n $classenta->h16_assent = $this->getTipoAssentamento();\n $classenta->h16_dtconc = ($this->getDataConcessao() instanceof DBDate ? $this->getDataConcessao()->getDate() : $this->getDataConcessao());\n $classenta->h16_histor = $this->getHistorico();\n $classenta->h16_nrport = $this->getCodigoPortaria();\n $classenta->h16_atofic = $this->getDescricaoAto();\n $classenta->h16_quant = $this->getDias();\n $classenta->h16_perc = ($this->getPercentual()) ? $this->getPercentual() : '0';\n $classenta->h16_dtterm = ($this->getDataTermino() instanceof DBDate ? $this->getDataTermino()->getDate() : $this->getDataTermino());\n $classenta->h16_hist2 = $this->getSegundoHistorico();\n $classenta->h16_login = ($this->getLoginUsuario()) ? $this->getLoginUsuario() : '1';\n $classenta->h16_dtlanc = ($this->getDataLancamento() instanceof DBDate ? $this->getDataLancamento()->getDate() : $this->getDataLancamento());\n $classenta->h16_conver = ((bool)(int)$this->isConvertido()) == false ? 'false' : 'true';\n $classenta->h16_anoato = $this->getAnoPortaria();\n $classenta->h16_hora = $this->getHora();\n\n if(empty($this->iCodigo)) {\n\n $classenta->incluir(null);\n\n if ($classenta->erro_status == \"0\") {\n return $classenta->erro_msg;\n }\n\n $this->setCodigo($classenta->h16_codigo);\n } else {\n\n $classenta->h16_codigo = $this->getCodigo();\n $classenta->alterar($this->getCodigo());\n\n if ($classenta->erro_status == \"0\") {\n return $classenta->erro_msg;\n }\n }\n\n return $this;\n }", "public function flush()\n {\n $this->unitOfWork->commit();\n }", "protected function persistEntity($entity)\n { \n parent::persistEntity($entity);\n \n $administradores = $this->getDoctrine()\n ->getRepository(Contenido::class)\n ->findBy(array('codigo'=>'correo_superadmin'));\n \n $soporte_mail = $this->getDoctrine()\n ->getRepository(Contenido::class)\n ->findOneByCodigo('soporte_mail');\n \n if ($soporte_mail) {\n $soporte_mail = $soporte_mail->getTexto();\n } else {\n $soporte_mail = '';\n }\n \n // obtengo ahora el nro de telefono del soporte \n $soporte_tel = $this->getDoctrine()\n ->getRepository(Contenido::class)\n ->findOneByCodigo('soporte_tel');\n \n if ($soporte_tel) {\n $soporte_tel = $soporte_tel->getTexto();\n } else {\n $soporte_tel = '';\n }\n \n // Envio correo al administrador\n if (false === $this->isGranted('ROLE_SUPER_ADMIN')) {\n foreach ($administradores as $administrador) {\n $message = (new \\Swift_Message('Nueva noticia'))\n ->setFrom('ecomgrupo11@gmail.com')\n ->setSubject('Nueva noticia creada: '.$entity->getTitulo())\n ->setTo($administrador->getTexto())\n ->setBody(\n $this->renderView(\n 'mails/aviso_entrada.html.twig',\n array(\n 'soporte_tel' => $soporte_tel, \n 'soporte_mail'=> $soporte_mail,\n 'entrada'=>$entity,\n 'tipo'=>1\n )), 'text/html'\n );\n \n $this->get('mailer')->send($message);\n }\n }\n }", "public function persistAndFlush($element)\n {\n $this->manager->getManager()->persist($element);\n $this->manager->getManager()->flush();\n }", "public function persistir(ProductoInventario $productoInventario);", "public function save(Entity $entity): void\n {\n $this->db->save($entity);\n }", "public function __destruct() {\n $this->persist();\n }", "public function createData(EntityManager $em);", "public function persist() {\n $this->getObjectManager()->persist($this);\n return $this;\n }", "public function pushEntity($entity): void\n {\n /** @var EntityRepository $repository */\n $repository = Prime::repository($entity);\n $mapper = $repository->mapper();\n\n $isReadOnly = $mapper->isReadOnly();\n $mapper->setReadOnly(false);\n\n $repository->disableEventNotifier();\n $repository->insert($entity);\n $repository->enableEventNotifier();\n\n $mapper->setReadOnly($isReadOnly);\n }", "public function setEntityManager(\\Doctrine\\ORM\\EntityManager $em);", "public function persist( UserEntityInterface $user ): UserEntityInterface;", "public function save()\n {\n $this->checkForNecessaryProperties();\n\n $this->update($this->getCurrentId(), $this->data);\n }", "function __destruct()\n {\n $this->entityManager->flush();\n }", "public function save( LogEntity $logEntity );", "public function setEntityManager(EntityManager $em);", "public function save()\n\t{\n\t\t$this->container->save($this);\n\t}", "public function commit(): void\n {\n $this->eventDispatcher->dispatchPreFlush();\n\n if (\n $this->objectsToPersist === [] &&\n $this->objectsToUpdate === [] &&\n $this->objectsToRemove === []\n ) {\n return; // Nothing to do.\n }\n\n $objects = array_merge(\n $this->objectsToPersist,\n $this->objectsToUpdate,\n $this->objectsToRemove,\n );\n $this->eventDispatcher->dispatchPreFlushLifecycleCallbacks($objects);\n\n $this->eventDispatcher->dispatchOnFlush();\n\n $this->persister->executePersists();\n $this->persister->executeUpdates();\n $this->persister->executeRemoves();\n\n $this->eventDispatcher->dispatchPostFlush();\n\n $this->objectsToPersist = [];\n $this->objectsToUpdate = [];\n $this->objectsToRemove = [];\n $this->objectChangeSets = new ChangeSets();\n }", "public function add($entity)\n {\n $this->getObjectManager()->persist($entity);\n $this->getObjectManager()->flush();\n }", "public function store()\n {\n $this->filtrarCampos();\n\n // verifica se tem ID ou se existe na base de dados\n if (empty($this->data['id']) or (!$this->load($this->id))) {\n // incrementa o ID\n $this->id = $this->getLast() + 1;\n // cria uma instruo de insert\n $sql = new TSqlInsert;\n $sql->setEntity($this->getEntity());\n // percorre os dados do objeto\n foreach ($this->data as $key => $value) {\n // passa os dados do objeto para o SQL\n $sql->setRowData($key, $this->$key);\n }\n } else {\n // instancia instruo de update\n $sql = new TSqlUpdate;\n $sql->setEntity($this->getEntity());\n // cria um critrio de seleo baseado no ID\n $criteria = new TCriteria;\n $criteria->add(new TFilter('id', '=', $this->id));\n $sql->setCriteria($criteria);\n // percorre os dados do objeto\n foreach ($this->data as $key => $value) {\n if ($key !== 'id') // o ID no precisa ir no UPDATE\n {\n // passa os dados do objeto para o SQL\n $sql->setRowData($key, $this->$key);\n }\n }\n }\n // inicia transao\n if ($conn = TTransaction::get()) {\n\n // faz o log e executa o SQL\n TTransaction::log($sql->getInstruction());\n $result = $conn->exec($sql->getInstruction());\n\n // retorna o resultado\n return $result;\n } else {\n // se no tiver transao, retorna uma exceo\n throw new \\Exception('No h transao ativa !!');\n }\n }", "public function save()\n {\n if ($this->id === null) {\n $this->insert();\n } else {\n $this->update();\n }\n }", "protected function persistEntity(\n EntityInterface $entity,\n RestDtoInterface $dto,\n bool $flush,\n bool $skipValidation\n ): void {\n // Update entity according to DTO current state\n $dto->update($entity);\n\n // And save current entity\n $this->save($entity, $flush, $skipValidation);\n }", "public final function persist($object) {\n\t\tif(!property_exists($object, 'id')) {\n\t\t\tthrow new LogicException('In order to persist an object, it must have a unique property called \"id\"');\n\t\t}\n\t\tif(empty($object->id)) {\n\t\t\t// if the id is empty, we want to insert\n\t\t\t$this->insert($object);\n\t\t} else {\n\t\t\t// otherwise, we want to update on that id\n\t\t\t$this->update($object);\n\t\t}\n\t}", "public function saveHokodoEntity(HokodoEntityInterface $hokodoEntity): void;", "public function persist()\n {\n Channel::from(auth()->user())\n ->contribute($this->all());\n }", "public function persist(): bool\n {\n return $this->repository->persist();\n }", "public function onEntityRepositoryAttach(IEntity $entity): void;", "function save() {\n\n\t\t// calls generic ORM save (insert or update)\n\t\tparent::save();\n\n\t}", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n\n $empresa1=new Empresas();\n $empresa1->setNombre(\"Vodafone\");\n $empresa1->setDireccion('C/La piruleta 34');\n $empresa1->setFechaRegistro(new \\DateTime('2019-05-04'));\n $manager->persist($empresa1);\n\n $empresa2=new Empresas();\n $empresa2->setNombre(\"Apple\");\n $empresa2->setDireccion('C/Inventada 24');\n $empresa2->setFechaRegistro(new \\DateTime('1980-03-10'));\n $manager->persist($empresa2);\n\n $empresa3=new Empresas();\n $empresa3->setNombre(\"Xiaomi\");\n $empresa3->setDireccion('C/Inexistente 1');\n $empresa3->setFechaRegistro(new \\DateTime('2010-06-12'));\n $manager->persist($empresa3);\n\n $empresa4=new Empresas();\n $empresa4->setNombre(\"Acer\");\n $empresa4->setDireccion('Avda. El Brillante 9');\n $empresa4->setFechaRegistro(new \\DateTime('2004-08-22'));\n $manager->persist($empresa4);\n\n $empresa5=new Empresas();\n $empresa5->setNombre(\"Philips\");\n $empresa5->setDireccion('C/No se 7');\n $empresa5->setFechaRegistro(new \\DateTime('1995-06-02'));\n $manager->persist($empresa5);\n\n\n $empleado1=new Empleados();\n $empleado1->setNombre('Manuel');\n $empleado1->setApellidos('Jimenez Rodriguez');\n $empleado1->setEstadoCivil('soltero');\n $empleado1->setActivo(true);\n $empleado1->setImagen(null);\n $empleado1->setEmpresa($empresa1);\n $empleado1->setNumeroHijos(0);\n $empleado1->setFechaNacimiento(new \\DateTime('2020-01-01'));\n $manager->persist($empleado1);\n\n $empleado2=new Empleados();\n $empleado2->setNombre('Gonzalo');\n $empleado2->setApellidos('Sanchez Lopez');\n $empleado2->setEstadoCivil('divorciado');\n $empleado2->setActivo(true);\n $empleado2->setImagen(null);\n $empleado2->setEmpresa($empresa1);\n $empleado2->setNumeroHijos(1);\n $empleado2->setFechaNacimiento(new \\DateTime('1940-05-10'));\n $manager->persist($empleado2);\n\n $empleado3=new Empleados();\n $empleado3->setNombre('Maria');\n $empleado3->setApellidos('Fernandez Alamo');\n $empleado3->setEstadoCivil('casado');\n $empleado3->setActivo(true);\n $empleado3->setImagen(null);\n $empleado3->setEmpresa($empresa1);\n $empleado3->setNumeroHijos(3);\n $empleado3->setFechaNacimiento(new \\DateTime('1990-01-01'));\n $manager->persist($empleado3);\n\n $empleado4=new Empleados();\n $empleado4->setNombre('Ana');\n $empleado4->setApellidos('Cabezas Rodriguez');\n $empleado4->setEstadoCivil('viudo');\n $empleado4->setActivo(true);\n $empleado4->setImagen(null);\n $empleado4->setEmpresa($empresa2);\n $empleado4->setNumeroHijos(0);\n $empleado4->setFechaNacimiento(new \\DateTime('1993-04-10'));\n $manager->persist($empleado4);\n\n $empleado5=new Empleados();\n $empleado5->setNombre('Raul');\n $empleado5->setApellidos('Prieto Martinez');\n $empleado5->setEstadoCivil('soltero');\n $empleado5->setActivo(true);\n $empleado5->setImagen(null);\n $empleado5->setEmpresa($empresa3);\n $empleado5->setNumeroHijos(0);\n $empleado5->setFechaNacimiento(new \\DateTime('2001-05-12'));\n $manager->persist($empleado5);\n\n\n $manager->flush();\n }", "protected function persistEntity($entity)\n {\n $this->encodeUserPassword($entity);\n parent::persistEntity($entity);\n }", "public function save()\n {\n $this->_validateModifiable();\n\n if($this->isNew())\n {\n $this->_getDataSource()->create($this);\n }\n else\n {\n $this->_getDataSource()->update($this);\n }\n\n $this->_saveRelations();\n $this->_setNew(false);\n }", "private function saveEntity( $entity, EntityManager $entityManager = null )\n {\n if( null === $entityManager )\n {\n $entityManager = $this->getDoctrine()->getManager();\n }\n\n try\n {\n $entityManager->persist($entity);\n $entityManager->flush();\n }\n catch( \\Exception $exc )\n {\n throw new HttpException(500, \"Error occured while saving an entity\");\n }\n }", "public function save(Propriete $propriete)\n {\n $this->em->persist($propriete);\n $this->em->flush();\n }" ]
[ "0.7551222", "0.75372136", "0.7484959", "0.7435941", "0.7411207", "0.7401705", "0.7364235", "0.72236073", "0.7159198", "0.7066223", "0.7027779", "0.6993091", "0.6966521", "0.69388777", "0.6872808", "0.6849973", "0.6841683", "0.68313795", "0.6829403", "0.68033296", "0.6801432", "0.67919946", "0.6784644", "0.6757769", "0.6729936", "0.67270523", "0.67187095", "0.67146903", "0.6712543", "0.6702064", "0.66754824", "0.666654", "0.6650065", "0.66443574", "0.6641508", "0.660773", "0.65872693", "0.65644586", "0.6551318", "0.65178585", "0.6472828", "0.64697516", "0.64649063", "0.6447403", "0.6421113", "0.6421113", "0.6421113", "0.6410966", "0.6408417", "0.6408365", "0.6368251", "0.63234884", "0.6322092", "0.6317781", "0.631474", "0.63044715", "0.6249482", "0.62288547", "0.6226517", "0.6208902", "0.62026983", "0.6183127", "0.6182739", "0.61764264", "0.6167234", "0.61541706", "0.61522603", "0.614832", "0.61481404", "0.6139421", "0.6128409", "0.61223084", "0.6077879", "0.60676134", "0.6066593", "0.6044206", "0.6017568", "0.6015119", "0.60038275", "0.59831154", "0.5982015", "0.59722626", "0.5959017", "0.59582263", "0.59439933", "0.5937377", "0.59222126", "0.5906637", "0.5901844", "0.5900315", "0.589993", "0.588752", "0.5841492", "0.58345133", "0.5831503", "0.5816948", "0.5809207", "0.58058524", "0.5799404", "0.57801855", "0.5778953" ]
0.0
-1
Find existing translation in database
private function getTranslationObject($key, $locale, $domain, $value) { $object = $this->repository->findValue($key, $locale, $domain); if (null === $object) { $object = new Translation(); $object->setScope(Translation::SCOPE_SYSTEM); $object->setLocale($locale); $object->setDomain($domain); $object->setKey($key); } $object->setValue($value); return $object; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findTranslation($id = null)\n {\n $translation = $this->getTranslationModel();\n return $id?$translation::findOne($id):$translation;\n }", "function getCpAnreden() {\n $sql=\"select translation from generic_translations where translation_type ILIKE '%greeting%'\";\n $rs=$GLOBALS['dbh']->getAll($sql);\n return $rs;\n}", "function getTranslation ($languageCode) {\n\t\t$trans = $this->getAllChildTables ('translatedPages', 'language_code', ORDER_ASC, \n\t\t\t\tarray (new WhereClause ('language_code', $languageCode, '=')));\n\t\tif ((count ($trans) >= 1) and (! isError ($trans))) {\n\t\t\t$tPageArray = $trans[0]; /*Normally I should get only one*/\n\t\t\t$creator = &$this->getCreator ();\n\t\t\t$tPage = $creator->newTranslatedPage ();\n\t\t\t$tPage->initFromArray ($tPageArray);\n\t\t\treturn $tPage;\n\t\t}\n\t\n\t\treturn new Error ('PAGE_TRANSLATION_DOESNT_EXIST', $languageCode);\n\t}", "function getTranslationObject();", "public function translation($slug = null)\n\t{\n\t\t$languageId = language($slug)->property('id', 1);\n\n\t\treturn $this->hasOne( $this->getTranslatorClassName(), 'original_id')->where( 'language_id', $languageId)->first();\n\t}", "function load_lang($term) {\n global $dbf;\n global $lang;\n \n $sql = \"SELECT text,term FROM base_language_text WHERE term='\".$term.\"' AND language_code='\".$lang.\"'\";\n $dbf->query($sql);\n $dbf->next_record();\n \n $rows = $dbf->rowdata();\n if($term != $rows['term']) {\n exit(\"the language term not match in a database!\"); \n } else { \n $text = $rows['text'];\n return $text;\n }\n}", "abstract public function getTranslationIn(string $locale);", "abstract public function getTranslationIn(string $locale);", "abstract public function getTranslationIn(string $locale);", "public function testSaveExistingRecordWithTranslatesField(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $table->setEntityClass(TranslateArticle::class);\n\n $data = [\n 'author_id' => 1,\n 'published' => 'Y',\n '_translations' => [\n 'eng' => [\n 'title' => 'First Article1',\n 'body' => 'First Article content has been updated',\n ],\n 'spa' => [\n 'title' => 'Mi nuevo titulo',\n 'body' => 'Contenido Actualizado',\n ],\n ],\n ];\n\n $article = $table->find()->first();\n $article = $table->patchEntity($article, $data);\n\n $this->assertNotFalse($table->save($article));\n\n $results = $this->_extractTranslations(\n $table->find('translations')->where(['id' => 1])\n )->first();\n\n $this->assertSame('Mi nuevo titulo', $results['spa']['title']);\n $this->assertSame('Contenido Actualizado', $results['spa']['body']);\n\n $this->assertSame('First Article1', $results['eng']['title']);\n $this->assertSame('Description #1', $results['eng']['description']);\n }", "public function translation(): HasOne\n {\n return $this->hasOne($this->getTranslationModelName())\n ->where($this->getLocaleKey(), $this->locale());\n }", "public function testFindSingleLocale(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n\n $table->setLocale('eng');\n $results = $table->find()->all()->combine('title', 'body', 'id')->toArray();\n $expected = [\n 1 => ['Title #1' => 'Content #1'],\n 2 => ['Title #2' => 'Content #2'],\n 3 => ['Title #3' => 'Content #3'],\n ];\n $this->assertSame($expected, $results);\n\n $entity = $table->newEntity(['author_id' => 2, 'title' => 'Title 4', 'body' => 'Body 4']);\n $table->save($entity);\n\n $results = $table->find('all', locale: 'cze')\n ->select(['id', 'title', 'body'])\n ->disableHydration()\n ->orderByAsc('Articles.id')\n ->toArray();\n $expected = [\n ['id' => 1, 'title' => 'Titulek #1', 'body' => 'Obsah #1', '_locale' => 'cze'],\n ['id' => 2, 'title' => 'Titulek #2', 'body' => 'Obsah #2', '_locale' => 'cze'],\n ['id' => 3, 'title' => 'Titulek #3', 'body' => 'Obsah #3', '_locale' => 'cze'],\n ['id' => 4, 'title' => null, 'body' => null, '_locale' => 'cze'],\n ];\n $this->assertSame($expected, $results);\n }", "public function testFindSingleLocaleWithNullTranslation(): void\n {\n $table = $this->getTableLocator()->get('Comments');\n $table->addBehavior('Translate', ['fields' => ['comment']]);\n $table->setLocale('spa');\n $results = $table->find()\n ->where(['Comments.id' => 6])\n ->all()\n ->combine('id', 'comment')\n ->toArray();\n $expected = [6 => 'Second Comment for Second Article'];\n $this->assertSame($expected, $results);\n }", "public function isTranslated();", "public function testFindSingleLocaleWithgetConditions(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $table->setLocale('eng');\n $results = $table->find()\n ->where(['Articles.id' => 2])\n ->all();\n\n $this->assertCount(1, $results);\n $row = $results->first();\n\n $expected = [\n 'id' => 2,\n 'title' => 'Title #2',\n 'body' => 'Content #2',\n 'author_id' => 3,\n 'published' => 'Y',\n '_locale' => 'eng',\n ];\n $this->assertEquals($expected, $row->toArray());\n }", "public function testSaveExistingRecordOnlyTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $table->setEntityClass(TranslateArticle::class);\n\n $data = [\n '_translations' => [\n 'es' => [\n 'title' => 'Spanish Translation',\n ],\n ],\n ];\n\n $article = $table->find()->first();\n $article = $table->patchEntity($article, $data);\n\n $this->assertNotFalse($table->save($article));\n\n $results = $this->_extractTranslations(\n $table->find('translations')->where(['id' => 1])\n )->first();\n\n $this->assertArrayHasKey('es', $results, 'New translation added');\n $this->assertArrayHasKey('eng', $results, 'Old translations present');\n $this->assertSame('Spanish Translation', $results['es']['title']);\n }", "static function getTranslation($text)\r\n\t{\r\n\t\tglobal $user;\r\n\t\t\r\n\t\tif($user && $user->hasField(\"language\") && $user->language)\r\n\t\t\t$language = $user->language;\r\n\t\telse\r\n\t\t\t$language = Settings::getValue(\"text_lookup\", \"language\");\t\r\n\t\t\r\n\t\tif(!$language || $language == \"English\")\r\n\t\t\treturn $text;\r\n\t\telse\r\n\t\t{\r\n\t\t\t$translations = Query::create(TextTranslation, \"WHERE text_id=:text_id AND language=:language\")\r\n\t\t\t\t->bind(\":text_id\", $text->text_id, \":language\", $language)\r\n\t\t\t\t->execute();\r\n\t\t\t\t\r\n\t\t\tif(count($translations) > 0 && $translations[0]->text)\r\n\t\t\t{\r\n\t\t\t\t$text->text = $translations[0]->text;\r\n\t\t\t}\r\n\t\t}\t\r\n\t\t\r\n\t\treturn $text;\r\n\t}", "protected function loadFromDB($locale) {\n $trans_identifier = new TranslationIdentifier();\n\n $trans_identifier = $trans_identifier->with('translations')->whereHas('translations', function($item) use ($locale) {\n return $item->where('locale', $locale);\n }\n )->orWhereHas('translations', null, '<=', 0)\n ->get();\n\n return $trans_identifier;\n }", "protected abstract function getTranslations();", "private function findTranslationByLocale(string $locale, bool $withNewTranslations = true): ?TranslationInterface\n\t{\n\t\tif ($this->getTranslations()->containsKey($locale))\n\t\t{\n\t\t\treturn $this->getTranslations()->get($locale);\n\t\t}\n\n\t\tif ($withNewTranslations)\n\t\t{\n\t\t\tif ($this->getNewTranslations()->containsKey($locale))\n\t\t\t{\n\t\t\t\treturn $this->getNewTranslations()->get($locale);\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "private function loadTranslation($language)\n {\n /** @var $translation ActiveRecord */\n $translation = null;\n /** @var \\yii\\db\\ActiveQuery $relation */\n $relation = $this->owner->getRelation($this->relation);\n /** @var ActiveRecord $class */\n $class = $relation->modelClass;\n $oldAttributes = $this->owner->getOldAttributes();\n $searchFields = [$this->languageField => $language];\n\n foreach ($relation->link as $languageModelField => $mainModelField) {\n if (empty($oldAttributes)) {\n $searchFields[$languageModelField] = $this->owner->$mainModelField;\n } else {\n $searchFields[$languageModelField] = $oldAttributes[$mainModelField];\n }\n }\n\n $translation = $class::findOne($searchFields);\n\n if ($translation === null) {\n $translation = new $class;\n $translation->setAttributes($searchFields, false);\n }\n\n return $translation;\n }", "public function testFindTranslationsList(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $results = $table\n ->find(\n 'list',\n keyField: 'title',\n valueField: '_translations.deu.title',\n groupField: 'id',\n )\n ->find('translations', locales: ['deu']);\n\n $expected = [\n 1 => ['First Article' => 'Titel #1'],\n 2 => ['Second Article' => 'Titel #2'],\n 3 => ['Third Article' => 'Titel #3'],\n ];\n $this->assertEquals($expected, $results->toArray());\n }", "protected abstract function getTranslationIdentifier();", "private function _get_translations_from_db () {\n\n\t\ttry {\n\n\t\t\t$db = Db::init();\n\n\t\t\t$sql = 'SELECT key_word, value\n\t\t\t\t\tFROM arka_web.language\n\t\t\t\t\tWHERE lang = :lang';\n\n\t\t\t$sth = $db->dbh->prepare($sql);\n\n\t\t\t$sth->execute(array(':lang' => $this->lang));\n\n\t\t\t$t = $sth->fetchAll(PDO::FETCH_COLUMN|PDO::FETCH_GROUP);\n\n\t\t\treturn array_map('reset', $t );\n\n\t\t} catch (\\PDOException $e) {\n\n\t\t\techo '<b>Error [' . $e->getLine() . ']: </b>' . $e->getMessage();\n\n\t\t}//end catch\n\n\t}", "public static function saveNewTranslation($word, $translation, $from, $to): bool\n {\n // Preparing statements\n $sWordFind = self::getDB()->prepare(\"SELECT * FROM words WHERE title = ? and language_id = ?\");\n $sWordInsert = self::getDB()->prepare(\"INSERT INTO words (title, language_id) VALUES (?, ?)\");\n $sTranslationFind = self::getDB()->prepare(\"SELECT * FROM translations WHERE from_id = ? and to_id = ?\");\n $sTranslationInsert = self::getDB()->prepare(\"INSERT INTO translations (from_id, to_id) VALUES (?, ?)\");\n\n // Try to find the word\n $sWordFind->execute([$word, $from]);\n $wordFound = $sWordFind->fetch();\n\n // Use the Id of the found Id or create new entry and use that Id\n if (!empty($wordFound)) {\n $wordId = $wordFound['id'];\n } else {\n $sWordInsert->execute([$word, $from]);\n $wordId = self::getDB()->lastInsertId();\n }\n\n // walk through all possible translations and save it\n $translations = explode(\" \", $translation);\n foreach ($translations as $t) {\n $sWordFind->execute([$t, $to]);\n $translationFound = $sWordFind->fetch();\n if (!empty($translationFound)) {\n $transId = $translationFound['id'];\n } else {\n $sWordInsert->execute([$t, $to]);\n $transId = self::getDB()->lastInsertId();\n }\n\n // check if translation exists already (which is usually no)\n $sTranslationFind->execute([$wordId, $transId]);\n $relationFound = $sTranslationFind->fetch();\n if (empty($relationFound)) {\n $sTranslationInsert->execute([$wordId, $transId]);\n }\n }\n return true;\n }", "public function findByTranslation($attribute, $value, $locale = null, $exact = true);", "public function hasTranslationChanges();", "function install_translations() {\n $db = DB::getInstance();\n if(!$db->query(file_get_contents(CORE_INSTALLER_FILES_PATH.'/db/translation.sql'))->error()) {\n return true;\n }\n else {\n System::addMessage('error', rt('An error occurred during the installation of your chosen language'));\n }\n return false;\n}", "public function translations()\n {\n $locales = config('translatable.locales');\n $fallback_locale = config('translatable.fallback_local');\n unset($locales[$fallback_locale]);\n $translations_count = count($locales);\n if ($translations_count === 1) {\n return $this->hasOne(get_class() . 'Translation');\n } else {\n return $this->hasMany(get_class(), 'Translation');\n }\n }", "function getLangue($identifiant,$language)\r\n{\r\n\tglobal $pdo;\r\n\t\r\n\t$SQL = \"SELECT * FROM pas_langue WHERE identifiant = '$identifiant' AND language = '$language'\";\r\n\t$reponse = $pdo->query($SQL);\r\n\t$req = $reponse->fetch();\r\n\t\r\n\treturn $req['texte'];\r\n}", "public function testSaveNewRecordWithTranslatesField(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->getValidator()->add('title', 'notBlank', ['rule' => 'notBlank']);\n $table->addBehavior('Translate', [\n 'fields' => ['title'],\n ]);\n $table->setEntityClass(TranslateArticle::class);\n\n $data = [\n 'author_id' => 1,\n 'published' => 'N',\n '_translations' => [\n 'en' => [\n 'title' => 'Title EN',\n 'body' => 'Body EN',\n ],\n 'es' => [\n 'title' => 'Title ES',\n ],\n ],\n ];\n\n $article = $table->patchEntity($table->newEmptyEntity(), $data);\n $result = $table->save($article);\n\n $this->assertNotFalse($result);\n\n $expected = [\n [\n 'en' => [\n 'title' => 'Title EN',\n 'locale' => 'en',\n ],\n 'es' => [\n 'title' => 'Title ES',\n 'locale' => 'es',\n ],\n ],\n ];\n $result = $table->find('translations')->where(['id' => $result->id]);\n $this->assertEquals($expected, $this->_extractTranslations($result)->toArray());\n }", "protected function get_translator()\n\t{\n\t\treturn Translator::get($this->id);\n\t}", "public function getAllTranslationByLanguage();", "function trans($key = null, $replace = [], $locale = null)\n{\n # sms.account_activation\n # sms.ad_activation\n\n if (is_null($key)) {\n return app('translator');\n }\n\n $exp = explode('.', $key, 2);\n $group = null;\n $item = $key;\n if( sizeof($exp) === 2 ) {\n $group = $exp[0];\n $item = $exp[1];\n }\n $if = \\DB::table('translator_translations')->where('group', $group)->where('item', $item)->exists();\n if (!$if) {\n \\DB::table('translator_translations')->insert([\n [\n 'locale' => 'ar',\n 'group' => $group,\n 'item' => $item,\n 'text' => $key,\n ], [\n 'locale' => 'en',\n 'group' => $group,\n 'item' => $item,\n 'text' => $key,\n ]\n ]);\n }\n\n return app('translator')->trans($key, $replace, $locale);\n}", "public function loadLang(){\n\n if($this->id == -1 || empty($this->databasePath))\n return \"\";\n\n $sqlQuery = 'SELECT L.lang_code as lang FROM books_languages_link BLL, languages L WHERE BLL.lang_code = L.id AND BLL.book = '.$this->id;\n\n $pdo = new SPDO($this->databasePath);\n foreach ($pdo->query($sqlQuery) as $row)\n return $row['lang'];\n \n return \"\";\n }", "function get_localization($language_name)\n {\n return $this->db->get_where('localization',array('language_name'=>$language_name))->row_array();\n }", "private function searchTranslation($filePath, string $text) : string\n {\n if (!file_exists($filePath)) {\n throw new Exception(\n \"The translation file \\\"{$filePath}\\\" doesn't exists\"\n );\n }\n\n $file = fopen(\n $filePath,\n 'r'\n );\n\n while (!feof($file)) {\n $read = fgets($file);\n $read = str_replace(\"\\n\", '', $read);\n\n $line = explode('\",\"', $read);\n \n if (is_array($line) && count($line) == 2) {\n $line[0] = substr($line[0], 1);\n $line[1] = substr($line[1], 0, strlen($line[1]) - 1);\n }\n\n if ($line[0] === $text) {\n $text = $line[1];\n break;\n }\n }\n\n fclose($file);\n\n return $text;\n }", "public function localeContents()\n {\n $ref = defined('static::REF_KEY') ? static::REF_KEY : ($this->table??'data');\n return $this->hasOne('App\\\\Models\\\\MultiLanguageContent', 'ref_id', 'id')->where('ref', $ref)->where('locale', config('app.locale'));\n }", "public function getTranslation($translationId) {\n $row = $this->select(array('translation_id' => (int) $translationId))->current();\n if (!$row) {\n return false;\n }\n\n $translation = new Model\\Translation(array(\n 'translationId' => $row->translation_id,\n 'baseId' => $row->base_id,\n 'locale' => $row->locale,\n 'currentTranslation' => $row->current_translation,\n 'unclearTranslation' => $row->unclear_translation,\n ));\n\n return $translation;\n }", "protected function getTranslation()\n {\n $language = $this->request->getBestLanguage();\n\n // Check if we have a translation file for that lang\n // TODO 处理英文\n if (file_exists(APP_PATH . \"/app/messages/\" . $language . \".php\")) {\n require_once APP_PATH. '/app/messages/'. $language . \".php\";\n } else {\n require_once APP_PATH. '/app/messages/zh-CN.php';\n // Fallback to some default\n// require \"../messages/en.php\";\n }\n\n // Return a translation object\n return new NativeArray(\n array(\n \"content\" => $messages\n )\n );\n }", "public function testFindSingleLocaleBelongstoLoadInto(): void\n {\n /** @var \\Cake\\ORM\\Table|\\Cake\\ORM\\Behavior\\TranslateBehavior $table */\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n /** @var \\Cake\\ORM\\Table|\\Cake\\ORM\\Behavior\\TranslateBehavior $authors */\n $authors = $table->belongsTo('Authors')->getTarget();\n $authors->addBehavior('Translate', ['fields' => ['name']]);\n\n $table->setLocale('eng');\n $authors->setLocale('eng');\n\n $entity = $table->get(1);\n $result = $table->loadInto($entity, ['Authors']);\n $this->assertSame($entity, $result);\n $this->assertNotEmpty($entity->author);\n $this->assertNotEmpty($entity->author->name);\n\n $expected = $table->get(1, ...['contain' => ['Authors']]);\n $this->assertEqualsCanonicalizing($expected, $result);\n $this->assertNotEmpty($entity->author);\n $this->assertNotEmpty($entity->author->name);\n }", "public function getLangById($id){\n\t\t$query = $this->db->get_where(\"languages\", array(\"id\" => $id));\n\t\tif($query->num_rows()==1)\n\t\t\treturn $query->row();\n\t\treturn false;\n\t}", "public function trans($site_id,$k,$v) {\n\t $this->layout\t=\tfalse;\n\t $this->loadModel('Translation');\n $trec = $this->Translation->findAllByLocale('en');\n\t// pr($trec); die;\n foreach ($trec as $rec){\n\t \n $tmprec = $this->Translation->find('all',array('conditions' => array('Translation.locale' =>$k,'Translation.msgid LIKE binary \"'.addslashes($rec['Translation']['msgid']).'\" ')));\n\t\t\t\n\t\t\t//pr($tmprec); die;\n if (count($tmprec) == 0) {\n\t\t\t\t$this->Translation->create();\n $data['Translation']['msgstr'] = $this->translate($rec['Translation']['msgid'], 'en', $k);\n\t\t\t $data['Translation']['msgid'] = $rec['Translation']['msgid'];\n $data['Translation']['locale'] = $k;\n $data['Translation']['status'] = 'm';\n\t\t\t \n\t\t\t //pr($data); die;\n\t\t\t \n\t\t\t \n $this->Translation->save($data);\n\t\t\t //$this->render('elements/sql_dump');\n\t\t\t \n }\n\n }\n\t \n\t return 1;\n }", "function _readLocaleInfo() {\n// $row = $this->select01($sql);\n// if (!$row) {\n// return false;\n// }\n $sql = $this->mkSQL('SELECT * FROM %I WHERE id = %Q', $this->tablePrfx.'lang', $this->_locale);\n return $this->select01($sql);\n }", "private function getTranslation()\n {\n $filterTranslation = null;\n foreach ($this->entity->getTranslations() as $translation) {\n if ($translation->getLocale() == $this->locale) {\n $filterTranslation = $translation;\n }\n }\n if (!$filterTranslation) {\n $filterTranslation = new FilterTranslation();\n $filterTranslation->setLocale($this->locale);\n $filterTranslation->setFilter($this->entity);\n $this->entity->addTranslation($filterTranslation);\n }\n\n return $filterTranslation;\n }", "public function hasTranslator();", "private function extractGettextStrings()\n {\n $translation = null;\n $translationObjects = array();\n $lookupDirectories = array(\n Strata::getVendorPath() . 'strata-mvc' . DIRECTORY_SEPARATOR . 'strata' . DIRECTORY_SEPARATOR . 'src',\n Strata::getSrcPath(),\n Strata::getThemesPath(),\n );\n\n foreach ($lookupDirectories as $directory) {\n $translationObjects = $this->recurseThroughDirectory($directory);\n\n // Merge all translation objects into a bigger one\n foreach ($translationObjects as $t) {\n if (is_null($translation)) {\n $translation = $t;\n } else {\n $translation->mergeWith($t);\n }\n }\n }\n\n return $translation;\n }", "public function translated();", "public function translated();", "function loadLocale($translation) {\n\t\t\treturn include($translation);\n\t\t}", "public function fetchById($id, $withTranslations);", "public function translations()\n\t{\n\t\treturn $this->hasMany($this->getTranslatorClassName(), 'original_id');\n\t}", "public function getByKeyWithTranslation($key, $language)\n {\n return EmailTemplate::find()\n ->byKey($key)\n ->withTranslation($language)\n ->one();\n }", "public function findTextBySlugAndLocale($slug, $locale);", "public function testCanGetMessageByKeyFromTranslator()\n {\n $this->translator->load();\n $message = $this->translator->get('test_message');\n $this->assertEquals('file has been loaded', $message);\n }", "public function findByPattern($pattern = null, $translated = true)\n {\n $result = array();\n\n if ($pattern === null) {\n throw new Exception('pattern is missing!');\n }\n $likePraefix = '';\n $likeSurfix = '';\n\n if ($translated === true) {\n $likePraefix = '%>';\n $likeSurfix = '<%';\n }\n $query = array(\n 'SELECT `' . $this->getTableLanguage() . '`.`' . $this->_tableSurfix . '`AS language, `' . $this->getTableTranslation() . '`.`' . $this->_tableSurfix . '` AS translation',\n 'FROM `' . $this->getTableLanguage() . '`' ,\n 'LEFT JOIN `' . $this->getTableTranslation() . '`' ,\n 'ON `' . $this->getTableLanguage() . '`.`id` = `' . $this->getTableTranslation() . '`.`id`',\n 'WHERE `' . $this->getTableLanguage() . '`.`' . $this->_tableSurfix . '`',\n 'LIKE \\'' . $likePraefix . '%' . mysql_real_escape_string($pattern) . '%' . $likeSurfix . '\\'',\n );\n\n $stmt = $this->_handle->query(implode(' ', $query));\n\n while($row = $stmt->fetchObject('\\\\EasyWika\\\\Entity\\\\SentenceEntity')) {\n $result[] = $row;\n }\n\n return $result;\n }", "public function testUpdateTranslationWithLocaleInEntity(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $article = $table->find()->first();\n $this->assertSame(1, $article->get('id'));\n $article->set('_locale', 'fra');\n $article->set('title', 'Le titre');\n $table->save($article);\n $this->assertNull($article->get('_i18n'));\n\n $article = $table->find()->first();\n $this->assertSame(1, $article->get('id'));\n $this->assertSame('First Article', $article->get('title'));\n $this->assertSame('First Article Body', $article->get('body'));\n\n $table->setLocale('fra');\n $article = $table->find()->first();\n $this->assertSame(1, $article->get('id'));\n $this->assertSame('Le titre', $article->get('title'));\n $this->assertSame('First Article Body', $article->get('body'));\n }", "public function getTranslation($locale = 'fr', PropelPDO $con = null)\n {\n if (!isset($this->currentTranslations[$locale])) {\n if (null !== $this->collEventI18ns) {\n foreach ($this->collEventI18ns as $translation) {\n if ($translation->getLocale() == $locale) {\n $this->currentTranslations[$locale] = $translation;\n\n return $translation;\n }\n }\n }\n if ($this->isNew()) {\n $translation = new EventI18n();\n $translation->setLocale($locale);\n } else {\n $translation = EventI18nQuery::create()\n ->filterByPrimaryKey(array($this->getPrimaryKey(), $locale))\n ->findOneOrCreate($con);\n $this->currentTranslations[$locale] = $translation;\n }\n $this->addEventI18n($translation);\n }\n\n return $this->currentTranslations[$locale];\n }", "public function getTranslationID($lang = false)\n {\n }", "public static function find(string $translate, string $locale = null, array $values = []) : string\n {\n $locale = ($locale === null) ? I18n::$locale : $locale;\n\n // Search current string to translate in the Dictionary\n if (isset(I18n::$dictionary[$locale][$translate])) {\n $translate = I18n::$dictionary[$locale][$translate];\n $translate = empty($values) ? $translate : strtr($translate, $values);\n } else {\n $translate = $translate;\n }\n\n // Return translation of a string\n return $translate;\n }", "public function getTranslation($lang = false)\n {\n $model = clone $this->model;\n $model->clearFilters();\n\n $id = $this->getTranslationID($lang);\n return $id ? new static($id, $model) : false;\n }", "public function testUseCountInFindTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $articles = $results = $table->find('translations');\n $all = $articles->all();\n $this->assertCount(3, $all);\n $article = $all->first();\n $this->assertNotEmpty($article->get('_translations'));\n }", "public function findTranslations($document)\n {\n $result = array();\n if ($document) {\n $meta = $this->dm->getClassMetadata(get_class($document));\n $identifier = $meta->identifier;\n $documentId = $meta->getReflectionProperty($identifier)->getValue($document);\n \n $translationMeta = $this->getClassMetadata();\n $qb = $this->createQueryBuilder();\n $q = $qb->field('foreignKey')->equals($documentId)\n ->field('objectClass')->equals($meta->name)\n ->sort('locale', 'asc')\n ->getQuery();\n \n $q->setHydrate(false);\n $data = $q->execute();\n if ($data instanceof Cursor) {\n $data = $data->toArray();\n } \n if ($data && is_array($data) && count($data)) {\n foreach ($data as $row) {\n $result[$row['locale']][$row['field']] = $row['content'];\n }\n }\n }\n return $result;\n }", "public function checkExistLanguageTitle($language_title, $id = 0)\n {\n \t//$language_title = iconv('windows-1251', 'utf-8', strtolower(iconv('utf-8', 'windows-1251', $language_title)));\n \t//$language_title = mb_detect_encoding($language_title, 'utf-8');\n\n \tif($id){\n\t\t\t$result = $this -> db -> fetchRow('SELECT * FROM '.self::LANGUAGES_TABLE.' WHERE lang_id!=? AND LOWER(title) = ?', array($id, $language_title)); \t \t\t\n \t} else {\n\t\t\t$result = $this -> db -> fetchRow('SELECT * FROM '.self::LANGUAGES_TABLE.' WHERE LOWER(title) = ?', $language_title); \t\n \t}\n\n\t\tif(!empty($result)) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n }", "public function testUpdateSingleLocale(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $table->setLocale('eng');\n $article = $table->find()->first();\n $this->assertSame(1, $article->get('id'));\n $article->set('title', 'New translated article');\n $table->save($article);\n $this->assertNull($article->get('_i18n'));\n\n $article = $table->find()->first();\n $this->assertSame(1, $article->get('id'));\n $this->assertSame('New translated article', $article->get('title'));\n $this->assertSame('Content #1', $article->get('body'));\n\n $table->setLocale(null);\n $article = $table->find()->first();\n $this->assertSame(1, $article->get('id'));\n $this->assertSame('First Article', $article->get('title'));\n\n $table->setLocale('eng');\n $article->set('title', 'Wow, such translated article');\n $article->set('body', 'A translated body');\n $table->save($article);\n $this->assertNull($article->get('_i18n'));\n\n $article = $table->find()->first();\n $this->assertSame(1, $article->get('id'));\n $this->assertSame('Wow, such translated article', $article->get('title'));\n $this->assertSame('A translated body', $article->get('body'));\n }", "public static function getTranslatedText($id, $itemType, $lang, $type, $exceptionOnNull = true)\n {\n $table = new self();\n\n if (empty($id) && !$exceptionOnNull) {\n return null;\n }\n\n $where = \"id = $id AND itemType='$itemType' and type='$type'\";\n $textRowset = $table->fetchAll($where);\n if (empty($textRowset)) {\n if ($exceptionOnNull) {\n throw new Lib_Exception(\"Could not find any translated text '\" . $type . \"' for id='$id', itemType='$itemType', lang='$lang', type='$type'\");\n } else {\n return null;\n }\n }\n\n $textRow = self::_getTextFromRowset($lang, $textRowset);\n if (!empty($textRow)) {\n return $textRow;\n }\n\n if ($lang == GLOBAL_LANG_DEFAULT) {\n /**\n * The default language was not found.\n * We pick the first language available.\n */\n $textRow = $textRowset->rewind()->current();\n return $textRow;\n }\n\n /**\n * A non-default language was not found.\n * Let's try to find the text in the default language.\n */\n $textRow = self::_getTextFromRowset(GLOBAL_LANG_DEFAULT, $textRowset);\n if (!empty($textRow)) {\n return $textRow;\n }\n\n // Nothing has worked, no text was found.\n if ($exceptionOnNull) {\n throw new Lib_Exception(\"Could not find translated text '\" . $type . \"' for id='$id', itemType='$itemType', lang='$lang', type='$type'\");\n }\n\n return null;\n }", "public function getTranslationsForKey($key);", "public function has_translation($data, $language_id = FALSE)\n {\n return TRUE;\n }", "public function testInsertNewTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $table->setLocale('fra');\n\n $article = $table->find()->first();\n $this->assertSame(1, $article->get('id'));\n $article->set('title', 'Le titre');\n $table->save($article);\n $this->assertSame('fra', $article->get('_locale'));\n\n $article = $table->find()->first();\n $this->assertSame(1, $article->get('id'));\n $this->assertSame('Le titre', $article->get('title'));\n $this->assertSame('First Article Body', $article->get('body'));\n\n $article->set('title', 'Un autre titre');\n $article->set('body', 'Le contenu');\n $table->save($article);\n $this->assertNull($article->get('_i18n'));\n\n $article = $table->find()->first();\n $this->assertSame('Un autre titre', $article->get('title'));\n $this->assertSame('Le contenu', $article->get('body'));\n }", "function lang_exists( $conds = array()) {\n\n\t\t$sql = \"SELECT * FROM rt_language WHERE `name` = '\" . $conds['name'] . \"' \";\n\n\n\t\t$query = $this->db->query($sql);\n\n\t\treturn $query;\n\t}", "function GetCodByTranslit($Table, $translit, $lang_id = _LANG_ID)\n {\n if ( empty($translit) ) return false;\n $tmp_db = DBs::getInstance();\n $q=\"SELECT `\".$Table.\"`.cod FROM `\".$Table.\"` WHERE `translit`='\".addslashes($translit).\"' AND `lang_id`='\".$lang_id.\"'\";\n $res = $tmp_db->db_Query($q);\n //echo '<br> $q='.$q.' $tmp_db->result='.$tmp_db->result;\n if ( !$tmp_db->result ) return false;\n $row_res = $tmp_db->db_FetchAssoc();\n $retval = stripslashes( $row_res['cod'] );\n return $retval;\n }", "public static function translate($id)\r\n\t{\r\n\t\t$string = new String(array(\r\n\t\t\t'id' => $id\r\n\t\t));\r\n\t\tif (isset($_SESSION['language'])) {\r\n\t\t\t$language = $_SESSION['language'];\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$language = DEFAULT_LOCALE;\r\n\t\t}\r\n\t\t// echo ' <br/>66: <pre>';\r\n\t\t// var_dump($string->translations);\r\n\t\t// echo '</pre>';\r\n\t\t\r\n\t\treturn $string->translations[$language]->getTranslation();\r\n\t}", "static function lookup($msgid)\n\t{\n\t\t$lang = self::$lang;\n\t\tif (!$lang) {\n\t\t\treturn $msgid;\n\t\t}\n\t\tif (!isset(self::$dicts[$lang])) {\n\t\t\tself::load_dict($lang);\n\t\t}\n\t\tif (array_key_exists($msgid, self::$dicts[$lang])) {\n\t\t\treturn self::$dicts[$lang][$msgid];\n\t\t}\n\t\treturn $msgid;\n\t}", "public function testCanGetTranslationById()\n {\n // Call the service requesting translation #1\n $responseTranslation = $this->translationService->getTranslationById(1);\n\n // Check the response is a translation entity\n $this->assertInstanceOf('Jobs\\Entity\\Translation', $responseTranslation);\n $this->assertInstanceOf('Jobs\\Entity\\Language', $responseTranslation->getLanguage());\n $this->assertInstanceOf('Jobs\\Entity\\Job', $responseTranslation->getJob());\n\n // Check that the returned entity is our dummy translation\n $this->assertEquals(1, $responseTranslation->getId());\n $this->assertEquals('English name', $responseTranslation->getName());\n $this->assertEquals('English description', $responseTranslation->getDescription());\n $this->assertEquals(1, $responseTranslation->getLanguage()->getId());\n $this->assertEquals('en', $responseTranslation->getLanguage()->getName());\n $this->assertEquals(1, $responseTranslation->getJob()->getId());\n $this->assertEquals(1, $responseTranslation->getJob()->getDepartment()->getId());\n $this->assertEquals('It Department', $responseTranslation->getJob()->getDepartment()->getName());\n }", "public function translation()\n {\n $kirby = $this->model->kirby();\n $lang = $this->model->language();\n return $kirby->translation($lang);\n }", "public function getObject($id)\n {\n $subject = parent::getObject($id);\n\n $subject = $this->modelManager->getDocumentManager()->findTranslation(null, $subject->getPath(), $this->getTranslatableLocale());\n\n return $subject;\n }", "public function fetchByBaseId($baseId)\n {\n $sql = new Sql($this->getAdapter());\n $select = $sql->select($this->table);\n $select->where(array('base_id' => $baseId));\n $select->order('locale ASC');\n\n $statement = $sql->prepareStatementForSqlObject($select);\n\n $resultSet = $statement->execute();\n //$entities = $this->_prepareCollection($resultSet);\n $languages = array();\n foreach ($resultSet as $row) {\n $locale = $row['locale'];\n $languages[$locale] = new Model\\Translation(array(\n 'translationId' => $row['translation_id'],\n 'baseId' => $row['base_id'],\n 'locale' => $row['locale'],\n 'currentTranslation' => $row['current_translation'],\n 'unclearTranslation' => $row['unclear_translation'],\n ));\n }\n $supportedLocale = new SupportedLocale($this->adapter);\n $supportedLocale = $supportedLocale->fetchAll();\n\n foreach ($supportedLocale as $locale) {\n if (!array_key_exists($locale, $languages)) {\n $languages[$locale] = new Model\\Translation();\n }\n }\n\n return $languages;\n }", "public function run()\n {\n \n\n \\DB::table('translations')->delete();\n \n \\DB::table('translations')->insert(array (\n 0 => \n array (\n 'id' => 1,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'auth',\n 'key' => 'failed',\n 'value' => 'These credentials do not match our records.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'These credentials do not match our records.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 1 => \n array (\n 'id' => 2,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'auth',\n 'key' => 'throttle',\n 'value' => 'Too many login attempts. Please try again in :seconds seconds.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Too many login attempts. Please try again in :seconds seconds.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 2 => \n array (\n 'id' => 3,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_basket',\n 'key' => 'contact_type',\n 'value' => 'Wie möchtest Du kontaktiert werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Wie möchtest Du kontaktiert werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 3 => \n array (\n 'id' => 4,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_basket',\n 'key' => 'contactmessage',\n 'value' => 'Per Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Per Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 4 => \n array (\n 'id' => 5,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_basket',\n 'key' => 'description',\n 'value' => 'Beschreibung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Beschreibung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 5 => \n array (\n 'id' => 6,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_basket',\n 'key' => 'fetchstate',\n 'value' => 'Hat alles gut geklappt?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Hat alles gut geklappt?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 6 => \n array (\n 'id' => 7,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_basket',\n 'key' => 'food_art',\n 'value' => 'Was trifft auf die Lebensmittel zu?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Was trifft auf die Lebensmittel zu?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 7 => \n array (\n 'id' => 8,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_basket',\n 'key' => 'food_type',\n 'value' => 'Welche Arten von Lebensmitteln sind dabei?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Welche Arten von Lebensmitteln sind dabei?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 8 => \n array (\n 'id' => 9,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_basket',\n 'key' => 'no_requests',\n 'value' => 'bisher keine Anfragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'bisher keine Anfragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 9 => \n array (\n 'id' => 10,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_basket',\n 'key' => 'one_request',\n 'value' => 'eine Anfrage',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'eine Anfrage',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 10 => \n array (\n 'id' => 11,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_basket',\n 'key' => 'picture-choose',\n 'value' => 'Datei wählen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Datei wählen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 11 => \n array (\n 'id' => 12,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_basket',\n 'key' => 'picture-desc',\n 'value' => 'Füge dem Essenskorb ein Foto hinzu',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Füge dem Essenskorb ein Foto hinzu',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 12 => \n array (\n 'id' => 13,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_basket',\n 'key' => 'req_count',\n 'value' => ':count Anfragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':count Anfragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 13 => \n array (\n 'id' => 14,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_basket',\n 'key' => 'tel',\n 'value' => 'Festnetztelefon',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Festnetztelefon',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 14 => \n array (\n 'id' => 15,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_basket',\n 'key' => 'weight',\n 'value' => 'geschätztes Gewicht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'geschätztes Gewicht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 15 => \n array (\n 'id' => 16,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bcard',\n 'key' => 'bcard_generator',\n 'value' => 'Visitenkarten Generator',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Visitenkarten Generator',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 16 => \n array (\n 'id' => 17,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bcard',\n 'key' => 'bcard_generator_desc',\n 'value' => 'Hier kannst Du Dir Deine persönlichen Visitenkarten erstellen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Hier kannst Du Dir Deine persönlichen Visitenkarten erstellen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 17 => \n array (\n 'id' => 18,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bcard',\n 'key' => 'bot_for',\n 'value' => 'Botschafter für :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Botschafter für :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 18 => \n array (\n 'id' => 19,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bcard',\n 'key' => 'bot_for_w',\n 'value' => 'Botschafterin für :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Botschafterin für :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 19 => \n array (\n 'id' => 20,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bcard',\n 'key' => 'download_card',\n 'value' => 'Visitenkarten Herunterladen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Visitenkarten Herunterladen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 20 => \n array (\n 'id' => 21,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bcard',\n 'key' => 'fs_for',\n 'value' => 'Foodsaver für :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Foodsaver für :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 21 => \n array (\n 'id' => 22,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bcard',\n 'key' => 'fs_for_w',\n 'value' => 'Foodsaverin für :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Foodsaverin für :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 22 => \n array (\n 'id' => 23,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bcard',\n 'key' => 'generation_success',\n 'value' => 'Visitenkarten erfolgreich generiert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Visitenkarten erfolgreich generiert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 23 => \n array (\n 'id' => 24,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bcard',\n 'key' => 'opt',\n 'value' => 'Optionen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Optionen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 24 => \n array (\n 'id' => 25,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bcard',\n 'key' => 'opt_desc',\n 'value' => 'Wähle hier für welchen Bezirk bzw. für welche Rolle Du Deine Visitenkarte erstellen möchtest.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Wähle hier für welchen Bezirk bzw. für welche Rolle Du Deine Visitenkarte erstellen möchtest.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 25 => \n array (\n 'id' => 26,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bcard',\n 'key' => 'should_choose_option',\n 'value' => 'Du musst eine Option wählen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Du musst eine Option wählen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 26 => \n array (\n 'id' => 27,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'betrieb_fetch',\n 'value' => ':count Unbestätigte Abholzeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':count Unbestätigte Abholzeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 27 => \n array (\n 'id' => 28,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'betrieb_fetch_title',\n 'value' => ':betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 28 => \n array (\n 'id' => 29,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'blog_new_check',\n 'value' => ':title',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':title',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 29 => \n array (\n 'id' => 30,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'blog_new_check_title',\n 'value' => 'Neuer Blog Artikel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuer Blog Artikel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 30 => \n array (\n 'id' => 31,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'buddy_request',\n 'value' => ':name kennt Dich!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name kennt Dich!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 31 => \n array (\n 'id' => 32,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'buddy_request_title',\n 'value' => 'Kennst Du :name?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Kennst Du :name?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 32 => \n array (\n 'id' => 33,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'forum_answer',\n 'value' => ':user hat Dir geantwortet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':user hat Dir geantwortet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 33 => \n array (\n 'id' => 34,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'forum_answer_title',\n 'value' => ':forum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':forum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 34 => \n array (\n 'id' => 35,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'fs_sleepmode',\n 'value' => ':name :nachname ist jetzt inaktiv',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name :nachname ist jetzt inaktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 35 => \n array (\n 'id' => 36,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'fs_sleepmode_title',\n 'value' => 'Neue Schlafmütze',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neue Schlafmütze',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 36 => \n array (\n 'id' => 37,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'ft_update',\n 'value' => ':teaser',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':teaser',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 37 => \n array (\n 'id' => 38,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'ft_update_title',\n 'value' => ':name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 38 => \n array (\n 'id' => 39,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'new_foodsaver',\n 'value' => 'Braucht Einführungsabholungen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Braucht Einführungsabholungen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 39 => \n array (\n 'id' => 40,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'new_foodsaver_title',\n 'value' => ':name neu in :bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name neu in :bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 40 => \n array (\n 'id' => 41,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'new_foodsaver_verified',\n 'value' => 'Ist schon verifiziert, kann loslegen!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Ist schon verifiziert, kann loslegen!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 41 => \n array (\n 'id' => 42,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'new_quiz_comment',\n 'value' => ':comment',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':comment',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 42 => \n array (\n 'id' => 43,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'new_quiz_comment_title',\n 'value' => 'Neuer Quiz-Kommentar',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuer Quiz-Kommentar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 43 => \n array (\n 'id' => 44,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'no_bells',\n 'value' => 'Keine Benachrichtigungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Keine Benachrichtigungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 44 => \n array (\n 'id' => 45,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'passgen_failed',\n 'value' => 'Bitte lade ein Foto, dann wirds klappen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Bitte lade ein Foto, dann wirds klappen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 45 => \n array (\n 'id' => 46,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'passgen_failed_title',\n 'value' => 'Dein Ausweis konnte nicht erstellt werden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Dein Ausweis konnte nicht erstellt werden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 46 => \n array (\n 'id' => 47,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'sharepoint_activate',\n 'value' => ':name wurde eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name wurde eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 47 => \n array (\n 'id' => 48,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'sharepoint_activate_title',\n 'value' => 'Neuer Fair-Teiler in :bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuer Fair-Teiler in :bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 48 => \n array (\n 'id' => 49,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_cr_times',\n 'value' => 'Abholzeiten haben sich geändert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Abholzeiten haben sich geändert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 49 => \n array (\n 'id' => 50,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_cr_times_title',\n 'value' => ':name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 50 => \n array (\n 'id' => 51,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_new',\n 'value' => ':name wurde eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name wurde eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 51 => \n array (\n 'id' => 52,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_new_request',\n 'value' => 'Anfrage für :name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Anfrage für :name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 52 => \n array (\n 'id' => 53,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_new_request_title',\n 'value' => 'Neue Teamanfrage',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neue Teamanfrage',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 53 => \n array (\n 'id' => 54,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_new_title',\n 'value' => 'Neuer Betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuer Betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 54 => \n array (\n 'id' => 55,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_request_accept',\n 'value' => 'Du wurdest in das Team aufgenommen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Du wurdest in das Team aufgenommen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 55 => \n array (\n 'id' => 56,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_request_accept_title',\n 'value' => ':name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 56 => \n array (\n 'id' => 57,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_request_accept_wait',\n 'value' => 'Du bist nun auf der Springer- / Warteliste!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Du bist nun auf der Springer- / Warteliste!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 57 => \n array (\n 'id' => 58,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_request_accept_wait_title',\n 'value' => ':name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 58 => \n array (\n 'id' => 59,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_request_deny',\n 'value' => 'Das Team ist leider schon zu voll!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Das Team ist leider schon zu voll!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 59 => \n array (\n 'id' => 60,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_request_deny_title',\n 'value' => ':name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 60 => \n array (\n 'id' => 61,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_wallpost',\n 'value' => 'Neuen Eintrag auf der Pinnwand!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuen Eintrag auf der Pinnwand!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 61 => \n array (\n 'id' => 62,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_wallpost_title',\n 'value' => ':name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 62 => \n array (\n 'id' => 63,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'abholmenge',\n 'value' => 'Wie viel Kilo werden pro Abholung ungefähr mitgenommen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Wie viel Kilo werden pro Abholung ungefähr mitgenommen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 63 => \n array (\n 'id' => 64,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'accept_request',\n 'value' => ':var ist jetzt im Team',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':var ist jetzt im Team',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 64 => \n array (\n 'id' => 65,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'ansprechpartner',\n 'value' => 'Betriebsansprechpartner (Filialleiter etc.)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Betriebsansprechpartner (Filialleiter etc.)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 65 => \n array (\n 'id' => 66,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'begin',\n 'value' => 'Beginn der Kooperation',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Beginn der Kooperation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 66 => \n array (\n 'id' => 67,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'besonderheiten',\n 'value' => 'Besonderheiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Besonderheiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 67 => \n array (\n 'id' => 68,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb',\n 'value' => 'Betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 68 => \n array (\n 'id' => 69,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_add_success',\n 'value' => 'Lebensmittelspenderbetrieb wurde gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Lebensmittelspenderbetrieb wurde gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 69 => \n array (\n 'id' => 70,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_added',\n 'value' => 'hat den Betrieb am :var eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'hat den Betrieb am :var eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 70 => \n array (\n 'id' => 71,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_bread',\n 'value' => 'Spenderbetriebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Spenderbetriebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 71 => \n array (\n 'id' => 72,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_edit_success',\n 'value' => 'Änderungen wurden gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Änderungen wurden gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 72 => \n array (\n 'id' => 73,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_empty',\n 'value' => 'Bisher wurde kein Betrieb eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Bisher wurde kein Betrieb eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 73 => \n array (\n 'id' => 74,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_kategorie_id',\n 'value' => 'Kategorie',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Kategorie',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 74 => \n array (\n 'id' => 75,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_status_id',\n 'value' => 'Status',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 75 => \n array (\n 'id' => 76,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'bezirk_id',\n 'value' => 'Bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 76 => \n array (\n 'id' => 77,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'bread_betrieb',\n 'value' => 'Alle Betriebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Alle Betriebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 77 => \n array (\n 'id' => 78,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'bread_edit_betrieb',\n 'value' => 'Betrieb bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Betrieb bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 78 => \n array (\n 'id' => 79,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'bread_new_betrieb',\n 'value' => 'neuen Betrieb eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'neuen Betrieb eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 79 => \n array (\n 'id' => 80,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gelöscht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Soll :var wirklich unwideruflich gelöscht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 80 => \n array (\n 'id' => 81,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'fax',\n 'value' => 'Fax',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Fax',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 81 => \n array (\n 'id' => 82,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'fetch_history',\n 'value' => 'Abholungshistorie',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Abholungshistorie',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 82 => \n array (\n 'id' => 83,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'fetchercount',\n 'value' => 'Anzahl der Abholer/innen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Anzahl der Abholer/innen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 83 => \n array (\n 'id' => 84,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'first_post',\n 'value' => 'Erster Pinnwandeintrag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Erster Pinnwandeintrag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 84 => \n array (\n 'id' => 85,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'foodsaver',\n 'value' => 'Verantwortliche Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Verantwortliche Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 85 => \n array (\n 'id' => 86,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'hsnr',\n 'value' => 'Hausnummer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Hausnummer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 86 => \n array (\n 'id' => 87,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'kette_id',\n 'value' => 'Betriebs-Kette',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Betriebs-Kette',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 87 => \n array (\n 'id' => 88,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'lebensmittel',\n 'value' => 'Welche Lebensmittel dürfen abgeholt werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Welche Lebensmittel dürfen abgeholt werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 88 => \n array (\n 'id' => 89,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'max_3_leader',\n 'value' => 'Es darf maximal 3 Verantwortliche für eine Filiale geben.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Es darf maximal 3 Verantwortliche für eine Filiale geben.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 89 => \n array (\n 'id' => 90,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'neu_betrieb',\n 'value' => 'Neuen Betrieb eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuen Betrieb eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 90 => \n array (\n 'id' => 91,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'no_member',\n 'value' => 'Du bist gar kein Mitglied in diesem Betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Du bist gar kein Mitglied in diesem Betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 91 => \n array (\n 'id' => 92,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'plz_id',\n 'value' => 'plz',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'plz',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 92 => \n array (\n 'id' => 93,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'position_search',\n 'value' => 'Adresssuche',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Adresssuche',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 93 => \n array (\n 'id' => 94,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'prefetchtime',\n 'value' => 'Wie viele Wochen im Voraus können sich Foodsaver eintragen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Wie viele Wochen im Voraus können sich Foodsaver eintragen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 94 => \n array (\n 'id' => 95,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'presse',\n 'value' => 'Ist der Betrieb/Laden/Verein bereit, bei der Presse und foodsharing.de genannt zu werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Ist der Betrieb/Laden/Verein bereit, bei der Presse und foodsharing.de genannt zu werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 95 => \n array (\n 'id' => 96,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'public_info',\n 'value' => 'Öffentliche Infos zum Betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Öffentliche Infos zum Betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 96 => \n array (\n 'id' => 97,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'public_time',\n 'value' => 'Ungefähre Tageszeit zum Abholen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Ungefähre Tageszeit zum Abholen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 97 => \n array (\n 'id' => 98,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'quiz_dropped',\n 'value' => ':var ist jetzt nicht mehr im Team',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':var ist jetzt nicht mehr im Team',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 98 => \n array (\n 'id' => 99,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'signout_error_admin',\n 'value' => 'Du bist verantwortlich für diesen Betrieb und kannst Dich nicht löschen!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Du bist verantwortlich für diesen Betrieb und kannst Dich nicht löschen!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 99 => \n array (\n 'id' => 100,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'status_date',\n 'value' => 'letzte Statisänderung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'letzte Statisänderung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 100 => \n array (\n 'id' => 101,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'sticker',\n 'value' => 'Ist der Betrieb/Laden/Verein etc. gewillt, einen Sticker beim Eingang oder anderswo sichtbar aufzuhängen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Ist der Betrieb/Laden/Verein etc. gewillt, einen Sticker beim Eingang oder anderswo sichtbar aufzuhängen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 101 => \n array (\n 'id' => 102,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'str',\n 'value' => 'Straße',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Straße',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 102 => \n array (\n 'id' => 103,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'ueberzeugungsarbeit',\n 'value' => 'War es einfach, eine/n Verantwortliche/n zu überzeugen, mit foodsharing zu kooperieren?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'War es einfach, eine/n Verantwortliche/n zu überzeugen, mit foodsharing zu kooperieren?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 103 => \n array (\n 'id' => 104,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'bezirk_signout',\n 'value' => ':var Gruppe verlassen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':var Gruppe verlassen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 104 => \n array (\n 'id' => 105,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'body',\n 'value' => 'Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 105 => \n array (\n 'id' => 106,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'bot_forum',\n 'value' => 'Botschafterforum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Botschafterforum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 106 => \n array (\n 'id' => 107,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'compose_new_theme',\n 'value' => 'Neues Thema verfassen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neues Thema verfassen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 107 => \n array (\n 'id' => 108,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'dateend',\n 'value' => 'Enddatum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Enddatum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 108 => \n array (\n 'id' => 109,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'delete_post',\n 'value' => 'Beitrag löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Beitrag löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 109 => \n array (\n 'id' => 110,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'delete_sure',\n 'value' => 'Soll der Beitrag wirklich gelöscht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Soll der Beitrag wirklich gelöscht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 110 => \n array (\n 'id' => 111,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'delete_sure_title',\n 'value' => 'Wirklich löschen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Wirklich löschen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 111 => \n array (\n 'id' => 112,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'desc_desc',\n 'value' => 'Was ist das für ein Event?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Was ist das für ein Event?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 112 => \n array (\n 'id' => 113,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'description',\n 'value' => 'Beschreibung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Beschreibung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 113 => \n array (\n 'id' => 114,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'empty_forum',\n 'value' => 'Noch keine Themen gepostet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Noch keine Themen gepostet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 114 => \n array (\n 'id' => 115,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'forum',\n 'value' => 'Forum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Forum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 115 => \n array (\n 'id' => 116,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'list_fairteiler',\n 'value' => 'Alle Fair-Teiler in :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Alle Fair-Teiler in :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 116 => \n array (\n 'id' => 117,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'location_name',\n 'value' => 'Veranstaltungsort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Veranstaltungsort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 117 => \n array (\n 'id' => 118,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'mumble_room',\n 'value' => 'In welchem mumble Konferenzraum treffen wir uns?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'In welchem mumble Konferenzraum treffen wir uns?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 118 => \n array (\n 'id' => 119,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'new_event',\n 'value' => 'Neue/n Termin/Veranstaltung eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neue/n Termin/Veranstaltung eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 119 => \n array (\n 'id' => 120,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'new_fairteiler',\n 'value' => 'Neuer Fair-Teiler',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuer Fair-Teiler',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 120 => \n array (\n 'id' => 121,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'no_events_posted',\n 'value' => 'Noch keine Events vorhanden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Noch keine Events vorhanden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 121 => \n array (\n 'id' => 122,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'no_fairteiler_available',\n 'value' => 'Noch keine Fair-Teiler eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Noch keine Fair-Teiler eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 122 => \n array (\n 'id' => 123,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'offline',\n 'value' => 'Ganz normal im echten Leben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Ganz normal im echten Leben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 123 => \n array (\n 'id' => 124,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'older_themes',\n 'value' => 'ältere Themen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'ältere Themen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 124 => \n array (\n 'id' => 125,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'online',\n 'value' => 'Multilokal auf mumble.lebensmittelretten.de',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Multilokal auf mumble.lebensmittelretten.de',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 125 => \n array (\n 'id' => 126,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'online_type',\n 'value' => 'Findet das Event offline oder online auf unserem Mumble-Server statt?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Findet das Event offline oder online auf unserem Mumble-Server statt?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 126 => \n array (\n 'id' => 127,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'post_could_not_saved',\n 'value' => 'Post konnte nicht gespeichert werden.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Post konnte nicht gespeichert werden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 127 => \n array (\n 'id' => 128,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'signout',\n 'value' => 'Austragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Austragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 128 => \n array (\n 'id' => 129,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'signout_sure',\n 'value' => 'Möchtest Du Dich wirklich die Gruppe \":var\" verlassen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Möchtest Du Dich wirklich die Gruppe \":var\" verlassen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 129 => \n array (\n 'id' => 130,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'signout_sure_title',\n 'value' => 'Bist Du sicher?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Bist Du sicher?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 130 => \n array (\n 'id' => 131,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'sure',\n 'value' => 'Ja, ich bin mir sicher.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Ja, ich bin mir sicher.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 131 => \n array (\n 'id' => 132,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'title',\n 'value' => 'Titel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Titel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 132 => \n array (\n 'id' => 133,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'article',\n 'value' => 'Artikel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Artikel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 133 => \n array (\n 'id' => 134,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'bezirk_id',\n 'value' => 'Für welche Region ist der Artikel relevant?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Für welche Region ist der Artikel relevant?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 134 => \n array (\n 'id' => 135,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'blog_bread',\n 'value' => 'Blog',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Blog',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 135 => \n array (\n 'id' => 136,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'blog_entry_add_success',\n 'value' => 'Artikel wurde gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Artikel wurde gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 136 => \n array (\n 'id' => 137,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'blog_entry_bread',\n 'value' => 'Alle Blog Eintr&auml;ge',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Blog Eintr&auml;ge',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 137 => \n array (\n 'id' => 138,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'blog_entry_deleted',\n 'value' => 'Artikel gel&ouml;scht!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Artikel gel&ouml;scht!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 138 => \n array (\n 'id' => 139,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'blog_entry_edit_success',\n 'value' => '&Auml;nderungen wurden gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '&Auml;nderungen wurden gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 139 => \n array (\n 'id' => 140,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'blog_entry_empty',\n 'value' => 'Bisher sind keine Eintr&auml;ge vorhanden.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher sind keine Eintr&auml;ge vorhanden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 140 => \n array (\n 'id' => 141,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'body',\n 'value' => 'Inhalt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Inhalt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 141 => \n array (\n 'id' => 142,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'bread_blog_entry',\n 'value' => 'Alle Blog Eintr&auml;ge',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Blog Eintr&auml;ge',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 142 => \n array (\n 'id' => 143,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'bread_edit_blog_entry',\n 'value' => 'Blog Eintrag bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Blog Eintrag bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 143 => \n array (\n 'id' => 144,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'bread_new_blog_entry',\n 'value' => 'neuen Artikel schreiben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neuen Artikel schreiben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 144 => \n array (\n 'id' => 145,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 145 => \n array (\n 'id' => 146,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'edit_article',\n 'value' => 'Atikel bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Atikel bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 146 => \n array (\n 'id' => 147,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'foodsaver_id',\n 'value' => 'foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 147 => \n array (\n 'id' => 148,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'manage_blog',\n 'value' => 'Blog Einträge verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Blog Einträge verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 148 => \n array (\n 'id' => 149,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'name',\n 'value' => 'Titel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Titel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 149 => \n array (\n 'id' => 150,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'neu_blog_entry',\n 'value' => 'neuen Artikel schreiben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neuen Artikel schreiben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 150 => \n array (\n 'id' => 151,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'new_article',\n 'value' => 'Neuer Artikel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuer Artikel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 151 => \n array (\n 'id' => 152,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'news',\n 'value' => 'News aus der Foodsharing-Welt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'News aus der Foodsharing-Welt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 152 => \n array (\n 'id' => 153,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'off_label',\n 'value' => 'inaktiv',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'inaktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 153 => \n array (\n 'id' => 154,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'on_label',\n 'value' => 'veröffentlicht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'veröffentlicht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 154 => \n array (\n 'id' => 155,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'status',\n 'value' => 'Status',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 155 => \n array (\n 'id' => 156,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'status_0',\n 'value' => 'inaktiv',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'inaktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 156 => \n array (\n 'id' => 157,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'status_1',\n 'value' => 'veröffentlicht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'veröffentlicht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 157 => \n array (\n 'id' => 158,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'teaser',\n 'value' => 'Teaser',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Teaser',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 158 => \n array (\n 'id' => 159,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'time',\n 'value' => 'time',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'time',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 159 => \n array (\n 'id' => 160,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'bezirk_id',\n 'value' => 'bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 160 => \n array (\n 'id' => 161,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'blog_entry_add_success',\n 'value' => 'Artikel wurde gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Artikel wurde gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 161 => \n array (\n 'id' => 162,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'blog_entry_bread',\n 'value' => 'Alle Blog Eintr&auml;ge',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Blog Eintr&auml;ge',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 162 => \n array (\n 'id' => 163,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'blog_entry_deleted',\n 'value' => 'Artikel gel&ouml;scht!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Artikel gel&ouml;scht!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 163 => \n array (\n 'id' => 164,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'blog_entry_edit_success',\n 'value' => '&Auml;nderungen wurden gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '&Auml;nderungen wurden gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 164 => \n array (\n 'id' => 165,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'blog_entry_empty',\n 'value' => 'Bisher sind keine Eintr&auml;ge vorhanden.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher sind keine Eintr&auml;ge vorhanden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 165 => \n array (\n 'id' => 166,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'body',\n 'value' => 'Inhalt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Inhalt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 166 => \n array (\n 'id' => 167,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'bread_blog_entry',\n 'value' => 'Alle Blog Eintr&auml;ge',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Blog Eintr&auml;ge',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 167 => \n array (\n 'id' => 168,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'bread_edit_blog_entry',\n 'value' => 'Blog Eintrag bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Blog Eintrag bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 168 => \n array (\n 'id' => 169,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'bread_new_blog_entry',\n 'value' => 'neuen Artikel schreiben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neuen Artikel schreiben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 169 => \n array (\n 'id' => 170,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 170 => \n array (\n 'id' => 171,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'foodsaver_id',\n 'value' => 'foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 171 => \n array (\n 'id' => 172,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'name',\n 'value' => 'Titel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Titel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 172 => \n array (\n 'id' => 173,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'neu_blog_entry',\n 'value' => 'neuen Artikel schreiben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neuen Artikel schreiben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 173 => \n array (\n 'id' => 174,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'teaser',\n 'value' => 'Teaser',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Teaser',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 174 => \n array (\n 'id' => 175,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'time',\n 'value' => 'time',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'time',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 175 => \n array (\n 'id' => 176,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_content',\n 'key' => 'body',\n 'value' => 'Inhalt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Inhalt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 176 => \n array (\n 'id' => 177,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_content',\n 'key' => 'bread_content',\n 'value' => 'Alles Seiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alles Seiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 177 => \n array (\n 'id' => 178,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_content',\n 'key' => 'bread_edit_content',\n 'value' => 'Seite bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Seite bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 178 => \n array (\n 'id' => 179,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_content',\n 'key' => 'bread_new_content',\n 'value' => 'neue Seite hinzufügen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neue Seite hinzufügen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 179 => \n array (\n 'id' => 180,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_content',\n 'key' => 'content_add_success',\n 'value' => 'Seite wurde angelegt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Seite wurde angelegt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 180 => \n array (\n 'id' => 181,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_content',\n 'key' => 'content_bread',\n 'value' => 'Öffentliche Seiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Öffentliche Seiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 181 => \n array (\n 'id' => 182,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_content',\n 'key' => 'content_edit_success',\n 'value' => 'Seite wurde gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Seite wurde gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 182 => \n array (\n 'id' => 183,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_content',\n 'key' => 'content_empty',\n 'value' => 'Bisher wurde keine Seite eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher wurde keine Seite eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 183 => \n array (\n 'id' => 184,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_content',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich gel&ouml;scht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich gel&ouml;scht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 184 => \n array (\n 'id' => 185,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_content',\n 'key' => 'last_mod',\n 'value' => 'last_mod',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'last_mod',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 185 => \n array (\n 'id' => 186,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_content',\n 'key' => 'name',\n 'value' => 'Eindeutiger Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Eindeutiger Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 186 => \n array (\n 'id' => 187,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_content',\n 'key' => 'neu_content',\n 'value' => 'Neue Seite anlegen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue Seite anlegen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 187 => \n array (\n 'id' => 188,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_content',\n 'key' => 'title',\n 'value' => 'Überschrift',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Überschrift',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 188 => \n array (\n 'id' => 189,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'abort',\n 'value' => 'Abbrechen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abbrechen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 189 => \n array (\n 'id' => 190,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'about_me_public',\n 'value' => 'Kurzbeschreibung von Dir',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Kurzbeschreibung von Dir',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 190 => \n array (\n 'id' => 191,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'access_error',\n 'value' => 'Du hast nicht die nötigen Rechte dies zu tun',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du hast nicht die nötigen Rechte dies zu tun',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 191 => \n array (\n 'id' => 192,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'actions',\n 'value' => 'Aktionen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aktionen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 192 => \n array (\n 'id' => 193,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'active',\n 'value' => 'Aktiviert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aktiviert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 193 => \n array (\n 'id' => 194,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'add',\n 'value' => 'hinzufügen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'hinzufügen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 194 => \n array (\n 'id' => 195,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'address',\n 'value' => 'Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 195 => \n array (\n 'id' => 196,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'already_in_bezirk',\n 'value' => 'In diesem bezirk bist Du shcon aktiv',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'In diesem bezirk bist Du shcon aktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 196 => \n array (\n 'id' => 197,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'anrede_0',\n 'value' => 'Liebe/r',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Liebe/r',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 197 => \n array (\n 'id' => 198,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'anrede_1',\n 'value' => 'Lieber',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Lieber',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 198 => \n array (\n 'id' => 199,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'anrede_2',\n 'value' => 'Liebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Liebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 199 => \n array (\n 'id' => 200,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'anschrift',\n 'value' => 'Straße und Hausnummer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Straße und Hausnummer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 200 => \n array (\n 'id' => 201,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'attach_image',\n 'value' => 'Bild anhängen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bild anhängen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 201 => \n array (\n 'id' => 202,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'attachement',\n 'value' => 'Anhang',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Anhang',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 202 => \n array (\n 'id' => 203,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'attention',\n 'value' => 'Achtung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Achtung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 203 => \n array (\n 'id' => 204,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'autokennzeichen_id',\n 'value' => 'Autokennzeichen Deiner Stadt/Region',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Autokennzeichen Deiner Stadt/Region',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 204 => \n array (\n 'id' => 205,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'back_to_betrieb',\n 'value' => 'zurück zum Betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zurück zum Betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 205 => \n array (\n 'id' => 206,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'back_to_bezirk',\n 'value' => 'zurück zum Bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zurück zum Bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 206 => \n array (\n 'id' => 207,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'back_to_overview',\n 'value' => 'zur&uuml;ck zur &Uuml;bersicht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zur&uuml;ck zur &Uuml;bersicht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 207 => \n array (\n 'id' => 208,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'before_one_week',\n 'value' => 'vor einer Woche',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'vor einer Woche',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 208 => \n array (\n 'id' => 209,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'betrieb',\n 'value' => 'Lebensmittelspender-Betrieb/e',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Lebensmittelspender-Betrieb/e',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 209 => \n array (\n 'id' => 210,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_0',\n 'value' => 'Verhandlungen laufen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verhandlungen laufen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 210 => \n array (\n 'id' => 211,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_1',\n 'value' => 'Es besteht noch kein Kontakt.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es besteht noch kein Kontakt.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 211 => \n array (\n 'id' => 212,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_2',\n 'value' => 'Verhandlungen laufen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verhandlungen laufen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 212 => \n array (\n 'id' => 213,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_3',\n 'value' => 'Betrieb ist bereit zu spenden.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb ist bereit zu spenden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 213 => \n array (\n 'id' => 214,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_4',\n 'value' => 'Betrieb will nicht kooperieren.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb will nicht kooperieren.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 214 => \n array (\n 'id' => 215,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_5',\n 'value' => 'Betrieb spendet bereits.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb spendet bereits.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 215 => \n array (\n 'id' => 216,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_6',\n 'value' => 'Spendet an Tafel etc. und wirft nichts weg.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Spendet an Tafel etc. und wirft nichts weg.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 216 => \n array (\n 'id' => 217,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'bezirk',\n 'value' => 'Region',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Region',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 217 => \n array (\n 'id' => 218,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'bezirk_request_successfull',\n 'value' => 'Die Anfrage wurde erfolgreich versendet, Du wirst benachrichtigt sobald Du freigeschaltet bist.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Die Anfrage wurde erfolgreich versendet, Du wirst benachrichtigt sobald Du freigeschaltet bist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 218 => \n array (\n 'id' => 219,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'botschafter',\n 'value' => 'Botschafter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Botschafter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 219 => \n array (\n 'id' => 220,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'buddywalls',\n 'value' => 'Pinnwände von Bekannten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Pinnwände von Bekannten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 220 => \n array (\n 'id' => 221,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'bundesland_id',\n 'value' => 'Bundesland',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bundesland',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 221 => \n array (\n 'id' => 222,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'card',\n 'value' => 'Karte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Karte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 222 => \n array (\n 'id' => 223,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'changes_saved',\n 'value' => 'Änderungen wurden gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Änderungen wurden gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 223 => \n array (\n 'id' => 224,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'choose_file',\n 'value' => 'Datei ausw&auml;hlen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Datei ausw&auml;hlen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 224 => \n array (\n 'id' => 225,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'choose_foodsaver',\n 'value' => 'W&auml;hle die Foodsaver aus denen Du einen Ausweis drucken willst',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'W&auml;hle die Foodsaver aus denen Du einen Ausweis drucken willst',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 225 => \n array (\n 'id' => 226,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'click_to_edit',\n 'value' => 'Klicken zum bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Klicken zum bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 226 => \n array (\n 'id' => 227,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'clock',\n 'value' => 'Uhr',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Uhr',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 227 => \n array (\n 'id' => 228,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'continue',\n 'value' => 'Weiter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Weiter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 228 => \n array (\n 'id' => 229,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'conversation_with',\n 'value' => 'Unterhaltung mit :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Unterhaltung mit :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 229 => \n array (\n 'id' => 230,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'currently',\n 'value' => 'gerade eben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'gerade eben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 230 => \n array (\n 'id' => 231,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'date',\n 'value' => 'Datum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Datum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 231 => \n array (\n 'id' => 232,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'daterange',\n 'value' => 'Zeitraum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Zeitraum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 232 => \n array (\n 'id' => 233,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'dates',\n 'value' => 'Termine',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Termine',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 233 => \n array (\n 'id' => 234,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'datetime',\n 'value' => 'Zeitpunkt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Zeitpunkt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 234 => \n array (\n 'id' => 235,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'day',\n 'value' => 'Tag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Tag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 235 => \n array (\n 'id' => 236,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'delete',\n 'value' => 'löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 236 => \n array (\n 'id' => 237,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'delete_post',\n 'value' => 'Beitrag löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Beitrag löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 237 => \n array (\n 'id' => 238,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'delete_post_sure',\n 'value' => 'Soll der Beitrag wirklich gelöscht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll der Beitrag wirklich gelöscht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 238 => \n array (\n 'id' => 239,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'delete_sure_title',\n 'value' => 'Wirklich löschen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Wirklich löschen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 239 => \n array (\n 'id' => 240,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'desc',\n 'value' => 'Beschreibung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Beschreibung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 240 => \n array (\n 'id' => 241,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'deutschlandtour_desc',\n 'value' => 'dann schreibe uns hier eine kurze Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'dann schreibe uns hier eine kurze Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 241 => \n array (\n 'id' => 242,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'deutschlandtour_message',\n 'value' => 'Ja, ich möchte einen Besuch von Euch bekommen!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ja, ich möchte einen Besuch von Euch bekommen!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 242 => \n array (\n 'id' => 243,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'dow0',\n 'value' => 'Sonntag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Sonntag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 243 => \n array (\n 'id' => 244,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'dow1',\n 'value' => 'Montag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Montag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 244 => \n array (\n 'id' => 245,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'dow2',\n 'value' => 'Dienstag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dienstag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 245 => \n array (\n 'id' => 246,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'dow3',\n 'value' => 'Mittwoch',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mittwoch',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 246 => \n array (\n 'id' => 247,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'dow4',\n 'value' => 'Donnerstag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Donnerstag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 247 => \n array (\n 'id' => 248,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'dow5',\n 'value' => 'Freitag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Freitag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 248 => \n array (\n 'id' => 249,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'dow6',\n 'value' => 'Samstag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Samstag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 249 => \n array (\n 'id' => 250,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'edit',\n 'value' => 'bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 250 => \n array (\n 'id' => 251,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'edit_success',\n 'value' => '&Auml;nderungen wurden gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '&Auml;nderungen wurden gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 251 => \n array (\n 'id' => 252,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'email',\n 'value' => 'E-Mail-Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail-Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 252 => \n array (\n 'id' => 253,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'email_adress',\n 'value' => 'E-Mail-Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail-Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 253 => \n array (\n 'id' => 254,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'email_exists',\n 'value' => 'Mit dieser E-Mail-Adresse ist bereits ein Benutzer registriert.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mit dieser E-Mail-Adresse ist bereits ein Benutzer registriert.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 254 => \n array (\n 'id' => 255,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'email_pass',\n 'value' => 'Passwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Passwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 255 => \n array (\n 'id' => 256,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'error_default',\n 'value' => 'Es ist ein Fehler aufgetreten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es ist ein Fehler aufgetreten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 256 => \n array (\n 'id' => 257,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'foodsaver',\n 'value' => 'Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 257 => \n array (\n 'id' => 258,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'foodsaver_edit_success',\n 'value' => '&Auml;nderungen wurden gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '&Auml;nderungen wurden gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 258 => \n array (\n 'id' => 259,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'friday',\n 'value' => 'Freitag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Freitag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 259 => \n array (\n 'id' => 260,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'from',\n 'value' => 'von',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'von',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 260 => \n array (\n 'id' => 261,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'fs_id',\n 'value' => 'Deine Foodsharing-ID',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Foodsharing-ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 261 => \n array (\n 'id' => 262,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'geschlecht',\n 'value' => 'Geschlecht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Geschlecht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 262 => \n array (\n 'id' => 263,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'groups',\n 'value' => 'Gruppen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Gruppen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 263 => \n array (\n 'id' => 264,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'handy',\n 'value' => 'Handynummer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Handynummer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 264 => \n array (\n 'id' => 265,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'join',\n 'value' => 'Anmelden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Anmelden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 265 => \n array (\n 'id' => 266,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'last_day',\n 'value' => 'letzten :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'letzten :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 266 => \n array (\n 'id' => 267,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'lat',\n 'value' => 'Längengrad',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Längengrad',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 267 => \n array (\n 'id' => 268,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'login',\n 'value' => 'Login',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Login',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 268 => \n array (\n 'id' => 269,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'login_success',\n 'value' => 'Login erfolgreich!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Login erfolgreich!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 269 => \n array (\n 'id' => 270,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'lon',\n 'value' => 'Breitengrad',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Breitengrad',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 270 => \n array (\n 'id' => 271,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'mail_to_all_foodsaver_in_area',\n 'value' => 'E-Mail an alle Foodsaver aus :var schreiben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail an alle Foodsaver aus :var schreiben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 271 => \n array (\n 'id' => 272,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'mailbox_name',\n 'value' => 'Mailbox-Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mailbox-Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 272 => \n array (\n 'id' => 273,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'mailboxes',\n 'value' => 'E-Mail Postfächer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail Postfächer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 273 => \n array (\n 'id' => 274,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'mailinglist',\n 'value' => 'Mailingliste',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mailingliste',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 274 => \n array (\n 'id' => 275,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_all_fs',\n 'value' => 'Alle Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 275 => \n array (\n 'id' => 276,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_all_store',\n 'value' => 'Alle Betriebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Betriebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 276 => \n array (\n 'id' => 277,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_blog',\n 'value' => 'Blogbeiträge bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Blogbeiträge bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 277 => \n array (\n 'id' => 278,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_chain',\n 'value' => 'Betriebs-Ketten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebs-Ketten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 278 => \n array (\n 'id' => 279,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_content',\n 'value' => 'Inhalte bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Inhalte bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 279 => \n array (\n 'id' => 280,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_email',\n 'value' => 'E-Mail Verteiler',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail Verteiler',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 280 => \n array (\n 'id' => 281,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_email_tpl',\n 'value' => 'E-Mail Vorlagen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail Vorlagen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 281 => \n array (\n 'id' => 282,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_faq',\n 'value' => 'FAQs verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'FAQs verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 282 => \n array (\n 'id' => 283,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_foodsaver_without_region',\n 'value' => 'Foodsaver ohne Region',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver ohne Region',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 283 => \n array (\n 'id' => 284,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_foodtypes',\n 'value' => 'Lebensmittel-Typen verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Lebensmittel-Typen verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 284 => \n array (\n 'id' => 285,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_mailbox_manage',\n 'value' => 'Mailboxen verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mailboxen verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 285 => \n array (\n 'id' => 286,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_manage_regions',\n 'value' => 'Regionen verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Regionen verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 286 => \n array (\n 'id' => 287,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_newarea',\n 'value' => 'Regionswünsche von Foodsavern',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Regionswünsche von Foodsavern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 287 => \n array (\n 'id' => 288,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_quiz',\n 'value' => 'Quiz verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Quiz verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 288 => \n array (\n 'id' => 289,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_regions_without_bots',\n 'value' => 'Regionen ohne Botschafter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Regionen ohne Botschafter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 289 => \n array (\n 'id' => 290,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_reports',\n 'value' => 'Verstoßmeldungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verstoßmeldungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 290 => \n array (\n 'id' => 291,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'message',\n 'value' => 'Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 291 => \n array (\n 'id' => 292,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'monday',\n 'value' => 'Montag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Montag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 292 => \n array (\n 'id' => 293,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'month_1',\n 'value' => 'Januar',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Januar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 293 => \n array (\n 'id' => 294,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'month_10',\n 'value' => 'Okt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Okt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 294 => \n array (\n 'id' => 295,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'month_11',\n 'value' => 'Nov',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nov',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 295 => \n array (\n 'id' => 296,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'month_12',\n 'value' => 'Dez',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dez',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 296 => \n array (\n 'id' => 297,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'month_2',\n 'value' => 'Februar',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Februar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 297 => \n array (\n 'id' => 298,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'month_3',\n 'value' => 'März',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'März',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 298 => \n array (\n 'id' => 299,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'month_4',\n 'value' => 'April',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'April',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 299 => \n array (\n 'id' => 300,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'month_5',\n 'value' => 'Mai',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mai',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 300 => \n array (\n 'id' => 301,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'month_6',\n 'value' => 'Juni',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Juni',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 301 => \n array (\n 'id' => 302,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'month_7',\n 'value' => 'Juli',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Juli',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 302 => \n array (\n 'id' => 303,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'month_8',\n 'value' => 'August',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'August',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 303 => \n array (\n 'id' => 304,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'month_9',\n 'value' => 'Sep',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Sep',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 304 => \n array (\n 'id' => 305,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'msganswer',\n 'value' => 'Antworten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Antworten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 305 => \n array (\n 'id' => 306,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'nachname',\n 'value' => 'Nachname',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachname',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 306 => \n array (\n 'id' => 307,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'name',\n 'value' => 'Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 307 => \n array (\n 'id' => 308,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'new_message',\n 'value' => 'Neue Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 308 => \n array (\n 'id' => 309,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'new_message_count',\n 'value' => 'Du hast :var neue Nachrichten!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du hast :var neue Nachrichten!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 309 => \n array (\n 'id' => 310,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'new_registration',\n 'value' => 'Neue Registrierung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue Registrierung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 310 => \n array (\n 'id' => 311,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'new_theme',\n 'value' => 'Neues Thema',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neues Thema',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 311 => \n array (\n 'id' => 312,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'no',\n 'value' => 'Nein',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nein',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 312 => \n array (\n 'id' => 313,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'no_bezirk_choosen',\n 'value' => 'Noch kein Bezirk gewählt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Noch kein Bezirk gewählt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 313 => \n array (\n 'id' => 314,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'no_new_messages',\n 'value' => 'Keine neuen Nachrichten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Keine neuen Nachrichten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 314 => \n array (\n 'id' => 315,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'no_result',\n 'value' => 'Kein Ergebnis',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Kein Ergebnis',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 315 => \n array (\n 'id' => 316,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'normal',\n 'value' => 'Normal',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Normal',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 316 => \n array (\n 'id' => 317,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'not_rv_accepted',\n 'value' => 'Du musst die Rechtsvereinbarung akzeptieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du musst die Rechtsvereinbarung akzeptieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 317 => \n array (\n 'id' => 318,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'nothing_to_do',\n 'value' => 'Hier gibt es nichts zu tun',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Hier gibt es nichts zu tun',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 318 => \n array (\n 'id' => 319,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'options',\n 'value' => 'Optionen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Optionen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 319 => \n array (\n 'id' => 320,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'ort',\n 'value' => 'Stadt/Gemeinde',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Stadt/Gemeinde',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 320 => \n array (\n 'id' => 321,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'parent_id',\n 'value' => 'Eltern-Region',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Eltern-Region',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 321 => \n array (\n 'id' => 322,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'pass_generator',\n 'value' => 'Foodsaver Ausweis Generator',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver Ausweis Generator',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 322 => \n array (\n 'id' => 323,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'password',\n 'value' => 'Passwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Passwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 323 => \n array (\n 'id' => 324,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'photo',\n 'value' => 'Foto',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foto',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 324 => \n array (\n 'id' => 325,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'photo_public',\n 'value' => 'Kontaktaufnahme durch andere Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Kontaktaufnahme durch andere Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 325 => \n array (\n 'id' => 326,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'picture',\n 'value' => 'Bild',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bild',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 326 => \n array (\n 'id' => 327,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'plz',\n 'value' => 'Postleitzahl',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Postleitzahl',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 327 => \n array (\n 'id' => 328,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'position_search',\n 'value' => 'Positionssuche',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Positionssuche',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 328 => \n array (\n 'id' => 329,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'pubbtime_1',\n 'value' => 'morgens',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'morgens',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 329 => \n array (\n 'id' => 330,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'pubbtime_2',\n 'value' => 'mittags/nachmittags',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'mittags/nachmittags',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 330 => \n array (\n 'id' => 331,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'pubbtime_3',\n 'value' => 'abends',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'abends',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 331 => \n array (\n 'id' => 332,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'pubbtime_4',\n 'value' => 'nachts',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'nachts',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 332 => \n array (\n 'id' => 333,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'read-more',\n 'value' => 'weiterlesen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'weiterlesen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 333 => \n array (\n 'id' => 334,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'really_change',\n 'value' => '&Auml;nderungen wirklich speichern?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '&Auml;nderungen wirklich speichern?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 334 => \n array (\n 'id' => 335,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'recip_all',\n 'value' => 'Alle Foodsaver Weltweit',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Foodsaver Weltweit',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 335 => \n array (\n 'id' => 336,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'recip_all_bezirk',\n 'value' => 'Alle Foodsaver aus :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Foodsaver aus :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 336 => \n array (\n 'id' => 337,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'recip_choose_bezirk',\n 'value' => 'Bezirke einzeld ausw&auml;hlen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bezirke einzeld ausw&auml;hlen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 337 => \n array (\n 'id' => 338,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'recip_chooser',\n 'value' => 'Empf&auml;nger',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Empf&auml;nger',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 338 => \n array (\n 'id' => 339,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'reference',\n 'value' => 'Hinweis',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Hinweis',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 339 => \n array (\n 'id' => 340,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'regions',\n 'value' => 'Bezirke',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bezirke',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 340 => \n array (\n 'id' => 341,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'register',\n 'value' => 'Registrieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Registrieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 341 => \n array (\n 'id' => 342,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'request_already_send',\n 'value' => 'An diesen Bezirk hast Du schon eine Anfrage gesendet.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'An diesen Bezirk hast Du schon eine Anfrage gesendet.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 342 => \n array (\n 'id' => 343,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle',\n 'value' => 'Benutzerrolle',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Benutzerrolle',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 343 => \n array (\n 'id' => 344,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_0_0',\n 'value' => 'Foodsharer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsharer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 344 => \n array (\n 'id' => 345,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_0_1',\n 'value' => 'Foodsharer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsharer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 345 => \n array (\n 'id' => 346,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_0_2',\n 'value' => 'Foodsharer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsharer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 346 => \n array (\n 'id' => 347,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_1_0',\n 'value' => 'Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 347 => \n array (\n 'id' => 348,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_1_1',\n 'value' => 'Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 348 => \n array (\n 'id' => 349,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_1_2',\n 'value' => 'Foodsaverin',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaverin',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 349 => \n array (\n 'id' => 350,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_2_0',\n 'value' => 'Betriebsverantwortliche/r Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebsverantwortliche/r Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 350 => \n array (\n 'id' => 351,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_2_1',\n 'value' => 'Betriebsverantwortlicher Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebsverantwortlicher Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 351 => \n array (\n 'id' => 352,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_2_2',\n 'value' => 'Betriebsverantwortliche Foodsaverin',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebsverantwortliche Foodsaverin',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 352 => \n array (\n 'id' => 353,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_3_0',\n 'value' => 'Botschafter/in',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Botschafter/in',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 353 => \n array (\n 'id' => 354,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_3_1',\n 'value' => 'Botschafter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Botschafter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 354 => \n array (\n 'id' => 355,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_3_2',\n 'value' => 'Botschafterin',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Botschafterin',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 355 => \n array (\n 'id' => 356,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_4_0',\n 'value' => 'Orgamensch',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Orgamensch',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 356 => \n array (\n 'id' => 357,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_4_1',\n 'value' => 'Orgamensch',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Orgamensch',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 357 => \n array (\n 'id' => 358,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_4_2',\n 'value' => 'Orgamensch',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Orgamensch',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 358 => \n array (\n 'id' => 359,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rv_accept',\n 'value' => 'Ja, ich habe die Rechtsvereinbarung gelesen und Akzeptiere sie.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ja, ich habe die Rechtsvereinbarung gelesen und Akzeptiere sie.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 359 => \n array (\n 'id' => 360,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'saturday',\n 'value' => 'Samstag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Samstag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 360 => \n array (\n 'id' => 361,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'save',\n 'value' => 'Speichern',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Speichern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 361 => \n array (\n 'id' => 362,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'search',\n 'value' => 'Suchen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Suchen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 362 => \n array (\n 'id' => 363,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'send',\n 'value' => 'Senden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Senden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 363 => \n array (\n 'id' => 364,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'settings',\n 'value' => 'Deine Daten / Einstellungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Daten / Einstellungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 364 => \n array (\n 'id' => 365,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'show_all_messages',\n 'value' => 'Alle Nachrichten zeigen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Nachrichten zeigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 365 => \n array (\n 'id' => 366,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'smonth_1',\n 'value' => 'Jan',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Jan',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 366 => \n array (\n 'id' => 367,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'smonth_10',\n 'value' => 'Okt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Okt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 367 => \n array (\n 'id' => 368,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'smonth_11',\n 'value' => 'Nov',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nov',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 368 => \n array (\n 'id' => 369,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'smonth_12',\n 'value' => 'Dez',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dez',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 369 => \n array (\n 'id' => 370,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'smonth_2',\n 'value' => 'Feb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Feb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 370 => \n array (\n 'id' => 371,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'smonth_3',\n 'value' => 'März',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'März',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 371 => \n array (\n 'id' => 372,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'smonth_4',\n 'value' => 'Apr',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Apr',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 372 => \n array (\n 'id' => 373,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'smonth_5',\n 'value' => 'Mai',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mai',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 373 => \n array (\n 'id' => 374,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'smonth_6',\n 'value' => 'Juni',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Juni',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 374 => \n array (\n 'id' => 375,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'smonth_7',\n 'value' => 'Juli',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Juli',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 375 => \n array (\n 'id' => 376,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'smonth_8',\n 'value' => 'Aug',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aug',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 376 => \n array (\n 'id' => 377,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'smonth_9',\n 'value' => 'Sep',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Sep',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 377 => \n array (\n 'id' => 378,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'specials',\n 'value' => 'Besonderheiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Besonderheiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 378 => \n array (\n 'id' => 379,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'stadt',\n 'value' => 'Deine Stadt oder Gemeinde',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Stadt oder Gemeinde',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 379 => \n array (\n 'id' => 380,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'status',\n 'value' => 'Aktueller Status',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aktueller Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 380 => \n array (\n 'id' => 381,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'subject',\n 'value' => 'Betreff',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betreff',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 381 => \n array (\n 'id' => 382,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'sunday',\n 'value' => 'Sonntag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Sonntag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 382 => \n array (\n 'id' => 383,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'sure',\n 'value' => 'Ja, ich bin mir sicher.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ja, ich bin mir sicher.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 383 => \n array (\n 'id' => 384,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'team_status_0',\n 'value' => 'Dieses Team ist voll. Daher werden z.<span style=\"white-space:nowrap\">&thinsp;</span>Z. keine weiteren Helfer gesucht.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dieses Team ist voll. Daher werden z.<span style=\"white-space:nowrap\">&thinsp;</span>Z. keine weiteren Helfer gesucht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 384 => \n array (\n 'id' => 385,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'team_status_1',\n 'value' => '<strong>Es werden noch Helfer gesucht</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Es werden noch Helfer gesucht</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 385 => \n array (\n 'id' => 386,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'team_status_2',\n 'value' => '<strong>Es werden dringend noch Helfer gesucht</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Es werden dringend noch Helfer gesucht</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 386 => \n array (\n 'id' => 387,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'telefon',\n 'value' => 'Festnetznummer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Festnetznummer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 387 => \n array (\n 'id' => 388,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'this_weekday',\n 'value' => 'letzten :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'letzten :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 388 => \n array (\n 'id' => 389,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'thursday',\n 'value' => 'Donnerstag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Donnerstag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 389 => \n array (\n 'id' => 390,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'time',\n 'value' => 'Uhrzeit',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Uhrzeit',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 390 => \n array (\n 'id' => 391,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'to',\n 'value' => 'bis',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'bis',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 391 => \n array (\n 'id' => 392,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'to_team_page',\n 'value' => 'Zur Teamseite',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Zur Teamseite',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 392 => \n array (\n 'id' => 393,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'today',\n 'value' => 'Heute',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Heute',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 393 => \n array (\n 'id' => 394,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'today_time',\n 'value' => 'Heute, :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Heute, :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 394 => \n array (\n 'id' => 395,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'tomorrow',\n 'value' => 'Morgen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Morgen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 395 => \n array (\n 'id' => 396,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'tuesday',\n 'value' => 'Dienstag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dienstag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 396 => \n array (\n 'id' => 397,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'upload_picture',\n 'value' => 'Bild hochladen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bild hochladen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 397 => \n array (\n 'id' => 398,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'user_add_success',\n 'value' => 'Prima! Dein Account wurde angelegt!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Prima! Dein Account wurde angelegt!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 398 => \n array (\n 'id' => 399,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'user_is_activated',\n 'value' => 'Foodsaver ist aktiviert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver ist aktiviert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 399 => \n array (\n 'id' => 400,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'user_is_botschafter_now',\n 'value' => ':var ist jetzt Botschafter/in',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => ':var ist jetzt Botschafter/in',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 400 => \n array (\n 'id' => 401,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'user_is_deleted',\n 'value' => 'Foodsaver wurde gel&ouml;scht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver wurde gel&ouml;scht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 401 => \n array (\n 'id' => 402,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'want_to_fetch',\n 'value' => 'Hier würde ich gerne Lebensmittel abholen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Hier würde ich gerne Lebensmittel abholen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 402 => \n array (\n 'id' => 403,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'wednesday',\n 'value' => 'Mittwoch',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mittwoch',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 403 => \n array (\n 'id' => 404,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'write_a_messages',\n 'value' => 'Nachricht schreiben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachricht schreiben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 404 => \n array (\n 'id' => 405,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'write_something',\n 'value' => 'schreibe etwas',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'schreibe etwas',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 405 => \n array (\n 'id' => 406,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'write_teaser',\n 'value' => 'Schreibe etwas...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Schreibe etwas...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 406 => \n array (\n 'id' => 407,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'yes',\n 'value' => 'Ja',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ja',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 407 => \n array (\n 'id' => 408,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'yesterday',\n 'value' => 'gestern',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'gestern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 408 => \n array (\n 'id' => 409,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'all_baskets',\n 'value' => 'Alle Körbe auf der Karte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Körbe auf der Karte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 409 => \n array (\n 'id' => 410,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'already_in_bezirk',\n 'value' => 'In diesem Bezirk bist Du schon aktiv',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'In diesem Bezirk bist Du schon aktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 410 => \n array (\n 'id' => 411,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'attach_image',\n 'value' => 'Bild anhängen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bild anhängen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 411 => \n array (\n 'id' => 412,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'bezirk_request_successfull',\n 'value' => 'Die Anfrage wurde erfolgreich versendet, Du wirst benachrichtigt sobald Du freigeschaltet bist.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Die Anfrage wurde erfolgreich versendet, Du wirst benachrichtigt sobald Du freigeschaltet bist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 412 => \n array (\n 'id' => 413,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'bot_partners',\n 'value' => 'Deine Botschafterpatenkinder',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Botschafterpatenkinder',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 413 => \n array (\n 'id' => 414,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'close_foodbaskets',\n 'value' => 'Essenskörbe in Deiner Nähe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Essenskörbe in Deiner Nähe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 414 => \n array (\n 'id' => 415,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'fs_partners',\n 'value' => 'Deine Patenkinder',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Patenkinder',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 415 => \n array (\n 'id' => 416,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'more_baskets',\n 'value' => 'Alle Körbe auf der Karte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Körbe auf der Karte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 416 => \n array (\n 'id' => 417,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'new_basket',\n 'value' => 'Neuer Essenskorb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuer Essenskorb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 417 => \n array (\n 'id' => 418,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'new_foodbaskets',\n 'value' => 'Neueste Essenskörbe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neueste Essenskörbe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 418 => \n array (\n 'id' => 419,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'next_dates',\n 'value' => 'nächste Abholtermine',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'nächste Abholtermine',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 419 => \n array (\n 'id' => 420,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'no_saved_food',\n 'value' => 'Viel Spaß beim Retten!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Viel Spaß beim Retten!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 420 => \n array (\n 'id' => 421,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'ort',\n 'value' => 'Stadt/Gemeinde',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Stadt/Gemeinde',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 421 => \n array (\n 'id' => 422,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'position_search',\n 'value' => 'Positionssuche',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Positionssuche',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 422 => \n array (\n 'id' => 423,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'pubbtime_1',\n 'value' => 'morgens',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'morgens',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 423 => \n array (\n 'id' => 424,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'pubbtime_2',\n 'value' => 'mittags/nachmittags',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'mittags/nachmittags',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 424 => \n array (\n 'id' => 425,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'pubbtime_3',\n 'value' => 'abends',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'abends',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 425 => \n array (\n 'id' => 426,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'pubbtime_4',\n 'value' => 'nachts',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'nachts',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 426 => \n array (\n 'id' => 427,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'request_already_send',\n 'value' => 'An diesen Bezirk hast Du schon eine Anfrage gesendet.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'An diesen Bezirk hast Du schon eine Anfrage gesendet.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 427 => \n array (\n 'id' => 428,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'saved_food',\n 'value' => 'Du hast schon :weight Kilos gerettet!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du hast schon :weight Kilos gerettet!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 428 => \n array (\n 'id' => 429,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'team_status_0',\n 'value' => 'Dieses Team ist voll. Daher werden z.<span style=\"white-space:nowrap\">&thinsp;</span>Z. keine weiteren Helfer gesucht.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dieses Team ist voll. Daher werden z.<span style=\"white-space:nowrap\">&thinsp;</span>Z. keine weiteren Helfer gesucht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 429 => \n array (\n 'id' => 430,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'team_status_1',\n 'value' => '<strong>Es werden noch Helfer gesucht</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Es werden noch Helfer gesucht</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 430 => \n array (\n 'id' => 431,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'team_status_2',\n 'value' => '<strong>Es werden dringend noch Helfer gesucht</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Es werden dringend noch Helfer gesucht</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 431 => \n array (\n 'id' => 432,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'updates',\n 'value' => 'Letzte Aktivitäten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Letzte Aktivitäten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 432 => \n array (\n 'id' => 433,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'welcome',\n 'value' => 'Willkommen :name! Schön, dass Du da bist!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Willkommen :name! Schön, dass Du da bist!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 433 => \n array (\n 'id' => 434,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'write_teaser',\n 'value' => 'Schreibe etwas...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Schreibe etwas...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 434 => \n array (\n 'id' => 435,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_email',\n 'key' => 'mailbox_id',\n 'value' => 'Absender E-Mail-Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Absender E-Mail-Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 435 => \n array (\n 'id' => 436,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_email',\n 'key' => 'mailing_list',\n 'value' => 'E-Mail Verteiler',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail Verteiler',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 436 => \n array (\n 'id' => 437,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_email',\n 'key' => 'mode',\n 'value' => 'Wie soll die Nachricht versendet werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Wie soll die Nachricht versendet werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 437 => \n array (\n 'id' => 438,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_email',\n 'key' => 'personal_styling',\n 'value' => 'Persönliche Anrede',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Persönliche Anrede',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 438 => \n array (\n 'id' => 439,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_email',\n 'key' => 'personal_styling_desc',\n 'value' => 'Um die Mail persönlicher zu gestalten kannst Du <strong>{NAME}</strong> anstelle des Namens einfügen und <strong>{ANREDE}</strong> für die Anrede.<p>{ANREDE} {NAME} ergibt z.<span style=\"white-space:nowrap\"> </span>B. Lieber Peter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Um die Mail persönlicher zu gestalten kannst Du <strong>{NAME}</strong> anstelle des Namens einfügen und <strong>{ANREDE}</strong> für die Anrede.<p>{ANREDE} {NAME} ergibt z.<span style=\"white-space:nowrap\"> </span>B. Lieber Peter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 439 => \n array (\n 'id' => 440,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_email',\n 'key' => 'recip_choosemanual',\n 'value' => 'Eine E-Mail-Adresse pro Zeile, Name nach Semikolon (z.<span style=\"white-space:nowrap\">&thinsp;</span>B. bli@blubb.de;Peter)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Eine E-Mail-Adresse pro Zeile, Name nach Semikolon (z.<span style=\"white-space:nowrap\">&thinsp;</span>B. bli@blubb.de;Peter)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 440 => \n array (\n 'id' => 441,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_email',\n 'key' => 'send_as_email',\n 'value' => 'Als E-Mail versenden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Als E-Mail versenden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 441 => \n array (\n 'id' => 442,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_email',\n 'key' => 'send_as_pm',\n 'value' => 'Als interne Nachricht versenden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Als interne Nachricht versenden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 442 => \n array (\n 'id' => 443,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_email',\n 'key' => 'shure',\n 'value' => 'Alles gechecked? Soll die E-Mail an alle foodsaver gesendet werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alles gechecked? Soll die E-Mail an alle foodsaver gesendet werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 443 => \n array (\n 'id' => 444,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_email',\n 'key' => 'testemail',\n 'value' => 'Test E-Mail-Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Test E-Mail-Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 444 => \n array (\n 'id' => 445,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_event',\n 'key' => 'dateend',\n 'value' => 'Enddatum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Enddatum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 445 => \n array (\n 'id' => 446,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_event',\n 'key' => 'desc_desc',\n 'value' => 'Was ist das für ein Event?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Was ist das für ein Event?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 446 => \n array (\n 'id' => 447,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_event',\n 'key' => 'description',\n 'value' => 'Beschreibung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Beschreibung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 447 => \n array (\n 'id' => 448,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_event',\n 'key' => 'event_options',\n 'value' => 'Event-Optionen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Event-Optionen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 448 => \n array (\n 'id' => 449,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_event',\n 'key' => 'location_name',\n 'value' => 'Veranstaltungsort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Veranstaltungsort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 449 => \n array (\n 'id' => 450,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_event',\n 'key' => 'mumble_room',\n 'value' => 'In welchem mumble Konferenzraum treffen wir uns?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'In welchem mumble Konferenzraum treffen wir uns?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 450 => \n array (\n 'id' => 451,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_event',\n 'key' => 'new_event',\n 'value' => 'Neue/n Termin/Veranstaltung eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue/n Termin/Veranstaltung eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 451 => \n array (\n 'id' => 452,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_event',\n 'key' => 'no_events_posted',\n 'value' => 'Noch keine Events vorhanden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Noch keine Events vorhanden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 452 => \n array (\n 'id' => 453,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_event',\n 'key' => 'offline',\n 'value' => 'Ganz normal im echten Leben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ganz normal im echten Leben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 453 => \n array (\n 'id' => 454,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_event',\n 'key' => 'online',\n 'value' => 'Multilokal auf mumble.lebensmittelretten.de',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Multilokal auf mumble.lebensmittelretten.de',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 454 => \n array (\n 'id' => 455,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_event',\n 'key' => 'online_type',\n 'value' => 'Findet das Event offline oder online auf unserem Mumbleserver statt?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Findet das Event offline oder online auf unserem Mumbleserver statt?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 455 => \n array (\n 'id' => 456,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'add_fairteiler',\n 'value' => 'Fair-Teiler eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 456 => \n array (\n 'id' => 457,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'attach_image',\n 'value' => 'Bild anhängen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bild anhängen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 457 => \n array (\n 'id' => 458,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'back',\n 'value' => 'zurück',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zurück',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 458 => \n array (\n 'id' => 459,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'bezirk_chooser',\n 'value' => 'Fair-Teiler in Deinen Bezirken',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler in Deinen Bezirken',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 459 => \n array (\n 'id' => 460,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'bezirk_id',\n 'value' => 'In welchem Bezirk ist der Fair-Teiler?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'In welchem Bezirk ist der Fair-Teiler?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 460 => \n array (\n 'id' => 461,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'bfoodsaver',\n 'value' => 'Verantwortliche Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verantwortliche Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 461 => \n array (\n 'id' => 462,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'delete',\n 'value' => 'Fair-Teiler löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 462 => \n array (\n 'id' => 463,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'delete_success',\n 'value' => 'Fair-Teiler wurde gelöscht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler wurde gelöscht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 463 => \n array (\n 'id' => 464,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'delete_sure',\n 'value' => 'Möchtest Du wirklich den Fair-Teiler :var löschen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Möchtest Du wirklich den Fair-Teiler :var löschen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 464 => \n array (\n 'id' => 465,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'desc_desc',\n 'value' => 'Schreibe hier ein paar grundsätzliche Infos über den Fair-Teiler rein, vor allem wann er Zugänglich / geöffnet ist',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Schreibe hier ein paar grundsätzliche Infos über den Fair-Teiler rein, vor allem wann er Zugänglich / geöffnet ist',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 465 => \n array (\n 'id' => 466,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'edit',\n 'value' => 'Fair-Teiler bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 466 => \n array (\n 'id' => 467,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'edit_fairteiler_name',\n 'value' => 'Fair-Teiler \":var\" bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler \":var\" bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 467 => \n array (\n 'id' => 468,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'fairteiler',\n 'value' => 'Fair-Teiler',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 468 => \n array (\n 'id' => 469,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'fairteiler_add_fail',\n 'value' => 'Fair-Teiler konnte nicht gespeichet werden, hast Du alles richtig ausgefüllt?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler konnte nicht gespeichet werden, hast Du alles richtig ausgefüllt?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 469 => \n array (\n 'id' => 470,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'fairteiler_add_success',\n 'value' => 'Fair-Teiler wurde erfolgreich eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler wurde erfolgreich eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 470 => \n array (\n 'id' => 471,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'fairteiler_edit_success',\n 'value' => 'Fair-Teiler wurde erfolgreich bearbeitet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler wurde erfolgreich bearbeitet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 471 => \n array (\n 'id' => 472,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'fairteiler_prepare_success',\n 'value' => 'Fair-Teiler wurde vorgeschlagen, ein Botschafter muss jetzt noch Deinen Vorschlag bestätigen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler wurde vorgeschlagen, ein Botschafter muss jetzt noch Deinen Vorschlag bestätigen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 472 => \n array (\n 'id' => 473,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'follow',\n 'value' => 'Diesem Fair-Teiler folgen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Diesem Fair-Teiler folgen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 473 => \n array (\n 'id' => 474,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'follower',\n 'value' => 'Follower',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Follower',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 474 => \n array (\n 'id' => 475,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'infotype',\n 'value' => 'Benachrichtigung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Benachrichtigung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 475 => \n array (\n 'id' => 476,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'infotype_alert',\n 'value' => 'nur über interne Info-Meldungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'nur über interne Info-Meldungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 476 => \n array (\n 'id' => 477,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'infotype_desc',\n 'value' => 'Wie möchtest Du über Updates wie Essenslieferungen informiert werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Wie möchtest Du über Updates wie Essenslieferungen informiert werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 477 => \n array (\n 'id' => 478,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'infotype_email',\n 'value' => 'über eine E-Mail Benachrichtigung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'über eine E-Mail Benachrichtigung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 478 => \n array (\n 'id' => 479,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'infotype_title',\n 'value' => ':var folgen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => ':var folgen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 479 => \n array (\n 'id' => 480,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'list_fairteiler',\n 'value' => 'Alle Fair-Teiler in :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Fair-Teiler in :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 480 => \n array (\n 'id' => 481,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'new_fairteiler',\n 'value' => 'Neuer Fair-Teiler',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuer Fair-Teiler',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 481 => \n array (\n 'id' => 482,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'new_fairteiler_in',\n 'value' => 'Neuer Fair-Teiler in :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuer Fair-Teiler in :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 482 => \n array (\n 'id' => 483,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'no_fairteiler_available',\n 'value' => 'Noch keine Fair-Teiler eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Noch keine Fair-Teiler eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 483 => \n array (\n 'id' => 484,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'no_more_follow',\n 'value' => 'Fair-Teiler nicht mehr folgen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler nicht mehr folgen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 484 => \n array (\n 'id' => 485,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'ort',\n 'value' => 'Stadt/Gemeinde',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Stadt/Gemeinde',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 485 => \n array (\n 'id' => 486,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'select_bezirk',\n 'value' => 'Bezirk auswählen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bezirk auswählen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 486 => \n array (\n 'id' => 487,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'write_teaser',\n 'value' => 'Nachricht schreiben...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachricht schreiben...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 487 => \n array (\n 'id' => 488,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'your_fairteiler',\n 'value' => 'Fair-Teiler in Deinen Bezirken',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler in Deinen Bezirken',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 488 => \n array (\n 'id' => 489,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_faq',\n 'key' => 'answer',\n 'value' => 'Antwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Antwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 489 => \n array (\n 'id' => 490,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_faq',\n 'key' => 'bread_edit_faq',\n 'value' => 'FAQ bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'FAQ bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 490 => \n array (\n 'id' => 491,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_faq',\n 'key' => 'bread_faq',\n 'value' => 'Alle FAQ\\'s',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle FAQ\\'s',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 491 => \n array (\n 'id' => 492,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_faq',\n 'key' => 'bread_new_faq',\n 'value' => 'neue FAQ eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neue FAQ eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 492 => \n array (\n 'id' => 493,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_faq',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 493 => \n array (\n 'id' => 494,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_faq',\n 'key' => 'faq_add_success',\n 'value' => 'Frage wurde gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Frage wurde gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 494 => \n array (\n 'id' => 495,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_faq',\n 'key' => 'faq_bread',\n 'value' => 'Alle FAQ\\'s',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle FAQ\\'s',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 495 => \n array (\n 'id' => 496,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_faq',\n 'key' => 'faq_edit_success',\n 'value' => 'FAQ wurde bearbeitet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'FAQ wurde bearbeitet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 496 => \n array (\n 'id' => 497,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_faq',\n 'key' => 'faq_empty',\n 'value' => 'Bisher wurde keine FAQ eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher wurde keine FAQ eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 497 => \n array (\n 'id' => 498,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_faq',\n 'key' => 'faq_kategorie_id',\n 'value' => 'FAQ Kategorie',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'FAQ Kategorie',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 498 => \n array (\n 'id' => 499,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_faq',\n 'key' => 'name',\n 'value' => 'Frage',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Frage',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 499 => \n array (\n 'id' => 500,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_faq',\n 'key' => 'neu_faq',\n 'value' => 'Neue FAQ eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue FAQ eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n ));\n \\DB::table('translations')->insert(array (\n 0 => \n array (\n 'id' => 501,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'abholen_id',\n 'value' => 'abholen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'abholen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 1 => \n array (\n 'id' => 502,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'abholen_und_kuehlen_id',\n 'value' => 'abholen_und_kuehlen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'abholen_und_kuehlen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 2 => \n array (\n 'id' => 503,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'about_me',\n 'value' => 'about_me',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'about_me',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 3 => \n array (\n 'id' => 504,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'admin',\n 'value' => 'admin',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'admin',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 4 => \n array (\n 'id' => 505,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'aktivbeifoodsharing_id',\n 'value' => 'aktivbeifoodsharing',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'aktivbeifoodsharing',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 5 => \n array (\n 'id' => 506,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'anbau',\n 'value' => 'anbau',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'anbau',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 6 => \n array (\n 'id' => 507,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'anmeldedatum',\n 'value' => 'anmeldedatum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'anmeldedatum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 7 => \n array (\n 'id' => 508,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'bezirk_id',\n 'value' => 'bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 8 => \n array (\n 'id' => 509,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'bread_edit_foodsaver',\n 'value' => 'Foodsaver bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 9 => \n array (\n 'id' => 510,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'bread_foodsaver',\n 'value' => 'Alle Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 10 => \n array (\n 'id' => 511,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'bread_new_foodsaver',\n 'value' => 'neuen Foodsaver eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neuen Foodsaver eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 11 => \n array (\n 'id' => 512,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'containert_id',\n 'value' => 'containert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'containert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 12 => \n array (\n 'id' => 513,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'datenschutz',\n 'value' => 'datenschutz',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'datenschutz',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 13 => \n array (\n 'id' => 514,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'delete_account',\n 'value' => 'Account löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Account löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 14 => \n array (\n 'id' => 515,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'delete_account_confirm_bt',\n 'value' => 'Ja, Account jetzt löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ja, Account jetzt löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 15 => \n array (\n 'id' => 516,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'delete_account_confirm_msg',\n 'value' => 'Du bist dabei Diesen Account zu löschen, bist Du Dir ganz sicher?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du bist dabei Diesen Account zu löschen, bist Du Dir ganz sicher?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 16 => \n array (\n 'id' => 517,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'delete_account_confirm_title',\n 'value' => 'Account wirklich löschen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Account wirklich löschen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 17 => \n array (\n 'id' => 518,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'delete_now',\n 'value' => 'Account jetzt löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Account jetzt löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 18 => \n array (\n 'id' => 519,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gelöscht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich unwideruflich gelöscht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 19 => \n array (\n 'id' => 520,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'edit_photo',\n 'value' => 'Foto bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foto bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 20 => \n array (\n 'id' => 521,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'fleisch_abholen_id',\n 'value' => 'fleisch_abholen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'fleisch_abholen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 21 => \n array (\n 'id' => 522,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'foodsaver_bread',\n 'value' => 'Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 22 => \n array (\n 'id' => 523,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'foodsaver_deleted',\n 'value' => 'Foodsaver gelöscht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver gelöscht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 23 => \n array (\n 'id' => 524,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'foodsaver_empty',\n 'value' => 'Bisher wurde kein Foodsaver eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher wurde kein Foodsaver eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 24 => \n array (\n 'id' => 525,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'foodsavertyp_id',\n 'value' => 'foodsavertyp',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'foodsavertyp',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 25 => \n array (\n 'id' => 526,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'fs_id',\n 'value' => 'Foodsharing-ID',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsharing-ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 26 => \n array (\n 'id' => 527,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'fs_international',\n 'value' => 'fs_international',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'fs_international',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 27 => \n array (\n 'id' => 528,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'fs_orga',\n 'value' => 'fs_orga',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'fs_orga',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 28 => \n array (\n 'id' => 529,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'geb_datum',\n 'value' => 'Geburtsdatum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Geburtsdatum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 29 => \n array (\n 'id' => 530,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'haftungsausschluss',\n 'value' => 'haftungsausschluss',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'haftungsausschluss',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 30 => \n array (\n 'id' => 531,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'hotline_id',\n 'value' => 'hotline',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'hotline',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 31 => \n array (\n 'id' => 532,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'kommentar',\n 'value' => 'kommentar',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'kommentar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 32 => \n array (\n 'id' => 533,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'kontakte_betriebe',\n 'value' => 'kontakte_betriebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'kontakte_betriebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 33 => \n array (\n 'id' => 534,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'land_id',\n 'value' => 'land',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'land',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 34 => \n array (\n 'id' => 535,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'last_login',\n 'value' => 'Letzter Login',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Letzter Login',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 35 => \n array (\n 'id' => 536,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'legal_gerettet',\n 'value' => 'legal_gerettet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'legal_gerettet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 36 => \n array (\n 'id' => 537,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'motivation',\n 'value' => 'motivation',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'motivation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 37 => \n array (\n 'id' => 538,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'neu_foodsaver',\n 'value' => 'Neuen Foodsaver eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuen Foodsaver eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 38 => \n array (\n 'id' => 539,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'orgateam',\n 'value' => 'Bundesweite Orga',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bundesweite Orga',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 39 => \n array (\n 'id' => 540,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'passwd',\n 'value' => 'Passwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Passwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 40 => \n array (\n 'id' => 541,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'pfand_id',\n 'value' => 'pfand',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'pfand',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 41 => \n array (\n 'id' => 542,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'plz_id',\n 'value' => 'Postleitzahl',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Postleitzahl',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 42 => \n array (\n 'id' => 543,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'posible_restore_account',\n 'value' => 'Der Account kann nach dem löschen widerhergestellt werden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Der Account kann nach dem löschen widerhergestellt werden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 43 => \n array (\n 'id' => 544,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'position',\n 'value' => 'Position bei foodsharing (öffentlich)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Position bei foodsharing (öffentlich)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 44 => \n array (\n 'id' => 545,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'promotionarbeit_id',\n 'value' => 'promotionarbeit',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'promotionarbeit',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 45 => \n array (\n 'id' => 546,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'radius',\n 'value' => 'radius',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'radius',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 46 => \n array (\n 'id' => 547,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'raumlichkeit',\n 'value' => 'raumlichkeit',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'raumlichkeit',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 47 => \n array (\n 'id' => 548,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'search_name',\n 'value' => 'nach foodsaver suchen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'nach foodsaver suchen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 48 => \n array (\n 'id' => 549,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'talente',\n 'value' => 'talente',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'talente',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 49 => \n array (\n 'id' => 550,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'timetable',\n 'value' => 'timetable',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'timetable',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 50 => \n array (\n 'id' => 551,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'upload_new_photo',\n 'value' => 'neues Foto hochladen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neues Foto hochladen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 51 => \n array (\n 'id' => 552,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'wohndauer_id',\n 'value' => 'wohndauer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'wohndauer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 52 => \n array (\n 'id' => 553,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'wohnung_id',\n 'value' => 'wohnung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'wohnung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 53 => \n array (\n 'id' => 554,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'zeitaufwand_id',\n 'value' => 'zeitaufwand',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zeitaufwand',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 54 => \n array (\n 'id' => 555,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'zuverlassig_id',\n 'value' => 'zuverlassig',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zuverlassig',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 55 => \n array (\n 'id' => 556,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'add_fetchtime',\n 'value' => 'Abholzeiten eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholzeiten eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 56 => \n array (\n 'id' => 557,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'add_me_here',\n 'value' => 'Mich hier eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mich hier eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 57 => \n array (\n 'id' => 558,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'add_new',\n 'value' => 'Neuen Betrieb eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuen Betrieb eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 58 => \n array (\n 'id' => 559,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'already_in_bezirk',\n 'value' => 'In diesem Bezirk bist Du schon aktiv',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'In diesem Bezirk bist Du schon aktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 59 => \n array (\n 'id' => 560,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'ansprechpartner',\n 'value' => 'Ansprechpartner',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ansprechpartner',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 60 => \n array (\n 'id' => 561,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'attach_image',\n 'value' => 'Bild anhängen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bild anhängen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 61 => \n array (\n 'id' => 562,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'besonderheiten',\n 'value' => 'Besonderheiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Besonderheiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 62 => \n array (\n 'id' => 563,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_add_success',\n 'value' => 'Lebensmittel-Spender Betrieb wurde gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Lebensmittel-Spender Betrieb wurde gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 63 => \n array (\n 'id' => 564,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_bread',\n 'value' => 'Spender-Betriebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Spender-Betriebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 64 => \n array (\n 'id' => 565,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_edit_success',\n 'value' => 'Änderungen wurden gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Änderungen wurden gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 65 => \n array (\n 'id' => 566,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_empty',\n 'value' => 'Bisher wurde kein Betrieb eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher wurde kein Betrieb eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 66 => \n array (\n 'id' => 567,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_kategorie_id',\n 'value' => 'Kategorie',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Kategorie',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 67 => \n array (\n 'id' => 568,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_sign_out',\n 'value' => 'Mich hier austragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mich hier austragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 68 => \n array (\n 'id' => 569,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_status_id',\n 'value' => 'Status',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 69 => \n array (\n 'id' => 570,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'bezirk_id',\n 'value' => 'Bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 70 => \n array (\n 'id' => 571,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'bezirk_request_successfull',\n 'value' => 'Die Anfrage wurde erfolgreich versendet, Du wirst benachrichtigt sobald Du freigeschaltet bist.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Die Anfrage wurde erfolgreich versendet, Du wirst benachrichtigt sobald Du freigeschaltet bist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 71 => \n array (\n 'id' => 572,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'bread_betrieb',\n 'value' => 'Alle Betriebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Betriebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 72 => \n array (\n 'id' => 573,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'bread_edit_betrieb',\n 'value' => 'Betrieb bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 73 => \n array (\n 'id' => 574,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'bread_new_betrieb',\n 'value' => 'neuen Betrieb eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neuen Betrieb eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 74 => \n array (\n 'id' => 575,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'change_fetcher',\n 'value' => 'Abholer ändern',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholer ändern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 75 => \n array (\n 'id' => 576,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'change_status',\n 'value' => 'Status ändern',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Status ändern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 76 => \n array (\n 'id' => 577,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'change_times',\n 'value' => 'Abholzeiten ändern',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholzeiten ändern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 77 => \n array (\n 'id' => 578,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'choose_fetcher',\n 'value' => 'Abholer auswählen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholer auswählen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 78 => \n array (\n 'id' => 579,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'click_to_confirm',\n 'value' => 'Unbestätigte Foodsaver kannst Du durch einen Klick auf das kleine Foto aktivieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Unbestätigte Foodsaver kannst Du durch einen Klick auf das kleine Foto aktivieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 79 => \n array (\n 'id' => 580,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'date_add_successful',\n 'value' => '<p><b>Termine wurden erfolgreich hinzugefügt</b><br>Müssen nur noch vom Filialverantwortlichen bestätigt werden</p>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<p><b>Termine wurden erfolgreich hinzugefügt</b><br>Müssen nur noch vom Filialverantwortlichen bestätigt werden</p>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 80 => \n array (\n 'id' => 581,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'datetime',\n 'value' => 'Zeitpunkt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Zeitpunkt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 81 => \n array (\n 'id' => 582,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'del_and_send',\n 'value' => 'Termin löschen und Nachricht senden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Termin löschen und Nachricht senden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 82 => \n array (\n 'id' => 583,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'del_date_for',\n 'value' => 'Austragen für',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Austragen für',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 83 => \n array (\n 'id' => 584,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gelöscht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich unwideruflich gelöscht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 84 => \n array (\n 'id' => 585,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'edit_betrieb',\n 'value' => 'Betrieb bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 85 => \n array (\n 'id' => 586,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'edit_fetchtime',\n 'value' => 'Abholzeiten bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholzeiten bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 86 => \n array (\n 'id' => 587,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'edit_team',\n 'value' => 'Team bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Team bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 87 => \n array (\n 'id' => 588,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'fax',\n 'value' => 'Fax',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fax',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 88 => \n array (\n 'id' => 589,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'fetch_history',\n 'value' => 'Abholungshistorie',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholungshistorie',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 89 => \n array (\n 'id' => 590,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'fetcher',\n 'value' => 'Abholer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 90 => \n array (\n 'id' => 591,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'fetcher_count',\n 'value' => 'Anzahl Abholer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Anzahl Abholer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 91 => \n array (\n 'id' => 592,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'find_representation',\n 'value' => 'Vertretung finden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Vertretung finden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 92 => \n array (\n 'id' => 593,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'have_backup',\n 'value' => 'Ich habe schon eine Vertretung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ich habe schon eine Vertretung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 93 => \n array (\n 'id' => 594,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'hsnr',\n 'value' => 'Hausnummer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Hausnummer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 94 => \n array (\n 'id' => 595,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'i_do',\n 'value' => 'Mach Ich!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mach Ich!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 95 => \n array (\n 'id' => 596,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'info',\n 'value' => 'Infos',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Infos',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 96 => \n array (\n 'id' => 597,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'kette_id',\n 'value' => 'Betriebs-Kette',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebs-Kette',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 97 => \n array (\n 'id' => 598,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'max_3_leader',\n 'value' => 'Es darf maximal 3 Verantwortliche für diese Filiale geben.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es darf maximal 3 Verantwortliche für diese Filiale geben.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 98 => \n array (\n 'id' => 599,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'menge',\n 'value' => 'Abholmenge im Schnitt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholmenge im Schnitt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 99 => \n array (\n 'id' => 600,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'more_stores',\n 'value' => 'Weitere Betriebe aus :name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Weitere Betriebe aus :name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 100 => \n array (\n 'id' => 601,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'msg_to_team',\n 'value' => 'Team benachrichtigen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Team benachrichtigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 101 => \n array (\n 'id' => 602,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'neu_betrieb',\n 'value' => 'Neuen Betrieb eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuen Betrieb eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 102 => \n array (\n 'id' => 603,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'next_fetch_dates',\n 'value' => 'Nächste Abholtermine',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nächste Abholtermine',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 103 => \n array (\n 'id' => 604,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'no_fetchtime',\n 'value' => 'Für :name sind noch keine Abholzeiten eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Für :name sind noch keine Abholzeiten eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 104 => \n array (\n 'id' => 605,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_confirmed',\n 'value' => ':name ist noch nicht bestätigt!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => ':name ist noch nicht bestätigt!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 105 => \n array (\n 'id' => 606,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_fetching',\n 'value' => 'Du holst noch keine Lebensmittel ab.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du holst noch keine Lebensmittel ab.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 106 => \n array (\n 'id' => 607,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_in_team',\n 'value' => 'Du bist noch nicht im Team von diesem Betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du bist noch nicht im Team von diesem Betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 107 => \n array (\n 'id' => 608,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_ready',\n 'value' => 'Betrieb ist noch nicht bereit zu spenden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb ist noch nicht bereit zu spenden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 108 => \n array (\n 'id' => 609,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_responsible_but_bot',\n 'value' => 'Du bist nicht verantwortlich für diesen Betrieb, hast dennoch alle Rechte, weil Du Botschafter bist.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du bist nicht verantwortlich für diesen Betrieb, hast dennoch alle Rechte, weil Du Botschafter bist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 109 => \n array (\n 'id' => 610,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_responsible_but_orga',\n 'value' => 'Du bist nicht verantwortlich für diesen Betrieb, hast dennoch alle Rechte, weil Du im Bundesweiten Orgateam bist.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du bist nicht verantwortlich für diesen Betrieb, hast dennoch alle Rechte, weil Du im Bundesweiten Orgateam bist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 110 => \n array (\n 'id' => 611,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_verified',\n 'value' => 'Dein Account wurde noch nicht von einem Botschafter verifiziert. Erst dann kannst Du Dich zum Essenabholen eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dein Account wurde noch nicht von einem Botschafter verifiziert. Erst dann kannst Du Dich zum Essenabholen eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 111 => \n array (\n 'id' => 612,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'ort',\n 'value' => 'Stadt/Gemeinde',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Stadt/Gemeinde',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 112 => \n array (\n 'id' => 613,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'plz_id',\n 'value' => 'plz',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'plz',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 113 => \n array (\n 'id' => 614,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'position_search',\n 'value' => 'Positionssuche',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Positionssuche',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 114 => \n array (\n 'id' => 615,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'pubbtime_1',\n 'value' => 'morgens',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'morgens',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 115 => \n array (\n 'id' => 616,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'pubbtime_2',\n 'value' => 'mittags/nachmittags',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'mittags/nachmittags',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 116 => \n array (\n 'id' => 617,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'pubbtime_3',\n 'value' => 'abends',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'abends',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 117 => \n array (\n 'id' => 618,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'pubbtime_4',\n 'value' => 'nachts',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'nachts',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 118 => \n array (\n 'id' => 619,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'reportmessage',\n 'value' => 'Beschreibe den Vorfall noch etwas genauer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Beschreibe den Vorfall noch etwas genauer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 119 => \n array (\n 'id' => 620,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'reportreason',\n 'value' => 'Aus welchem grun möchtest Du den Foodsaver melden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aus welchem grun möchtest Du den Foodsaver melden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 120 => \n array (\n 'id' => 621,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'request_already_send',\n 'value' => 'An diesen Bezirk hast Du schon eine Anfrage gesendet.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'An diesen Bezirk hast Du schon eine Anfrage gesendet.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 121 => \n array (\n 'id' => 622,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'responsible_foodsaver',\n 'value' => 'Verantwortliche Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verantwortliche Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 122 => \n array (\n 'id' => 623,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'shure_date',\n 'value' => 'Möchtest Du Dich wirklich verbindlich für <strong>:label</strong> eintragen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Möchtest Du Dich wirklich verbindlich für <strong>:label</strong> eintragen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 123 => \n array (\n 'id' => 624,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'shure_of_backup',\n 'value' => 'Hast Du eine Vertretung? Unsere Verlässlichkeit ist sehr wichtig!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Hast Du eine Vertretung? Unsere Verlässlichkeit ist sehr wichtig!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 124 => \n array (\n 'id' => 625,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'shure_range_date',\n 'value' => '<strong>Verbindlich :labels</strong> im gewählten Zeitraum abholen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Verbindlich :labels</strong> im gewählten Zeitraum abholen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 125 => \n array (\n 'id' => 626,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'signout_sure',\n 'value' => '<strong>Möchtest Du Dich austragen?</strong><p>Sämtliche Abholtermine werden gelöscht.</p>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Möchtest Du Dich austragen?</strong><p>Sämtliche Abholtermine werden gelöscht.</p>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 126 => \n array (\n 'id' => 627,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'signout_sure_title',\n 'value' => 'Bist Du Dir sicher?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bist Du Dir sicher?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 127 => \n array (\n 'id' => 628,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'stat_fetchcount',\n 'value' => 'Letzte Abholung am :date',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Letzte Abholung am :date',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 128 => \n array (\n 'id' => 629,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'stat_fetchcount_none',\n 'value' => 'Noch keine Lebensmittel abgeholt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Noch keine Lebensmittel abgeholt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 129 => \n array (\n 'id' => 630,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_change_at',\n 'value' => 'Statusänderung am :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Statusänderung am :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 130 => \n array (\n 'id' => 631,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_date',\n 'value' => 'letzte Statusänderung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'letzte Statusänderung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 131 => \n array (\n 'id' => 632,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_msg_1',\n 'value' => 'Es besteht noch kein Kontakt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es besteht noch kein Kontakt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 132 => \n array (\n 'id' => 633,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_msg_2',\n 'value' => 'Verhandlungen laufen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verhandlungen laufen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 133 => \n array (\n 'id' => 634,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_msg_3',\n 'value' => 'Betrieb ist bereit zu spenden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb ist bereit zu spenden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 134 => \n array (\n 'id' => 635,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_msg_4',\n 'value' => 'Betrieb will nicht kooperieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb will nicht kooperieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 135 => \n array (\n 'id' => 636,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_msg_5',\n 'value' => 'Betrieb spendet bereits',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb spendet bereits',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 136 => \n array (\n 'id' => 637,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_msg_6',\n 'value' => 'spendet an Tafel etc. & wirft nichts weg',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'spendet an Tafel etc. & wirft nichts weg',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 137 => \n array (\n 'id' => 638,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'str',\n 'value' => 'Straße',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Straße',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 138 => \n array (\n 'id' => 639,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'team_msg',\n 'value' => 'Nachricht ans ganze Team',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachricht ans ganze Team',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 139 => \n array (\n 'id' => 640,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'team_not_empty',\n 'value' => 'Das Team darf nicht leer sein.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Das Team darf nicht leer sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 140 => \n array (\n 'id' => 641,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'team_status',\n 'value' => 'Teamstatus',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Teamstatus',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 141 => \n array (\n 'id' => 642,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'team_status_0',\n 'value' => 'Dieses Team ist voll. Daher werden z.<span style=\"white-space:nowrap\">&thinsp;</span>Z. keine weiteren Helfer gesucht.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dieses Team ist voll. Daher werden z.<span style=\"white-space:nowrap\">&thinsp;</span>Z. keine weiteren Helfer gesucht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 142 => \n array (\n 'id' => 643,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'team_status_1',\n 'value' => '<strong>Es werden noch Helfer gesucht</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Es werden noch Helfer gesucht</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 143 => \n array (\n 'id' => 644,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'team_status_2',\n 'value' => '<strong>Es werden dringend noch Helfer gesucht</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Es werden dringend noch Helfer gesucht</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 144 => \n array (\n 'id' => 645,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'tpl_msg_to_team',\n 'value' => 'Liebes :BETRIEB Team, \n\nam :DATE kann ich leider doch keine Lebensmittel abholen. Daher suche ich dringend eine Vertretung. Kannst Du für mich einspringen?\n\nLiebe Grüße',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Liebes :BETRIEB Team, \n\nam :DATE kann ich leider doch keine Lebensmittel abholen. Daher suche ich dringend eine Vertretung. Kannst Du für mich einspringen?\n\nLiebe Grüße',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 145 => \n array (\n 'id' => 646,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'verantwortlicher',\n 'value' => 'Verantwortliche Mitglieder',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verantwortliche Mitglieder',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 146 => \n array (\n 'id' => 647,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'verantwortlicher_must_be',\n 'value' => 'Es muss mindestens einen Verantworklichen für jeden Betrieb geben!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es muss mindestens einen Verantworklichen für jeden Betrieb geben!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 147 => \n array (\n 'id' => 648,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'wait_for_confirm',\n 'value' => '<strong>Du bist vorgemerkt</strong><br>der Filalverantwortliche muss jetzt nur noch Deine Anfrage bestätigen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Du bist vorgemerkt</strong><br>der Filalverantwortliche muss jetzt nur noch Deine Anfrage bestätigen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 148 => \n array (\n 'id' => 649,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'write_teaser',\n 'value' => 'Schreibe etwas...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Schreibe etwas...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 149 => \n array (\n 'id' => 650,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'you_fetcher',\n 'value' => 'Betriebe bei denen Du Lebensmittel abholst',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebe bei denen Du Lebensmittel abholst',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 150 => \n array (\n 'id' => 651,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'you_responsible',\n 'value' => 'Betriebe für die Du verantwortlich bist',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebe für die Du verantwortlich bist',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 151 => \n array (\n 'id' => 652,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'your_store',\n 'value' => 'Für Diesen Betrieb bist Du verantwortlich',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Für Diesen Betrieb bist Du verantwortlich',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 152 => \n array (\n 'id' => 653,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'zeitraum',\n 'value' => 'Zeitraum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Zeitraum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 153 => \n array (\n 'id' => 654,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_groups',\n 'key' => 'apply_type',\n 'value' => 'Wer kann sich für diese Gruppe eintragen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Wer kann sich für diese Gruppe eintragen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 154 => \n array (\n 'id' => 655,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_groups',\n 'key' => 'banana_count',\n 'value' => 'Wie viele Vertrauensbananen braucht ein Mitglied?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Wie viele Vertrauensbananen braucht ein Mitglied?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 155 => \n array (\n 'id' => 656,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_groups',\n 'key' => 'fetch_count',\n 'value' => 'Wie viele Abholungen sollte ein Bewerber gemacht haben?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Wie viele Abholungen sollte ein Bewerber gemacht haben?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 156 => \n array (\n 'id' => 657,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_groups',\n 'key' => 'leader',\n 'value' => 'Gruppen-Admins',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Gruppen-Admins',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 157 => \n array (\n 'id' => 658,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_groups',\n 'key' => 'member',\n 'value' => 'Mitglieder',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mitglieder',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 158 => \n array (\n 'id' => 659,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_groups',\n 'key' => 'report_num',\n 'value' => 'Dürfen sich auch Foodsaver mit Verstoßmeldungen bewerben?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dürfen sich auch Foodsaver mit Verstoßmeldungen bewerben?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 159 => \n array (\n 'id' => 660,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_groups',\n 'key' => 'week_num',\n 'value' => 'Seit wie vielen Wochen sollte ein Bewerber schon dabei sein?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Seit wie vielen Wochen sollte ein Bewerber schon dabei sein?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 160 => \n array (\n 'id' => 661,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_index',\n 'key' => 'fairteiler',\n 'value' => 'Neuste Fair-Teiler Posts',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuste Fair-Teiler Posts',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 161 => \n array (\n 'id' => 662,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_index',\n 'key' => 'more_baskets',\n 'value' => 'Alle Essenskörbe auf der Karte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Essenskörbe auf der Karte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 162 => \n array (\n 'id' => 663,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_index',\n 'key' => 'more_fairteiler',\n 'value' => 'Alle Fair-Teiler auf der Karte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Fair-Teiler auf der Karte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 163 => \n array (\n 'id' => 664,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_index',\n 'key' => 'new_fairteiler',\n 'value' => 'Fair-Teiler Updates',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler Updates',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 164 => \n array (\n 'id' => 665,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_index',\n 'key' => 'new_foodbaskets',\n 'value' => 'Neuste Essenskörbe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuste Essenskörbe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 165 => \n array (\n 'id' => 666,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_kette',\n 'key' => 'bread_edit_kette',\n 'value' => 'Kette bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Kette bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 166 => \n array (\n 'id' => 667,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_kette',\n 'key' => 'bread_new_kette',\n 'value' => 'neue Kette eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neue Kette eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 167 => \n array (\n 'id' => 668,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_kette',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 168 => \n array (\n 'id' => 669,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_kette',\n 'key' => 'kette_bread',\n 'value' => 'Alle Unternehmens-Ketten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Unternehmens-Ketten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 169 => \n array (\n 'id' => 670,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_kette',\n 'key' => 'kette_edit_success',\n 'value' => 'Änderungen wurden gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Änderungen wurden gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 170 => \n array (\n 'id' => 671,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_kette',\n 'key' => 'kette_empty',\n 'value' => 'Bisher wurde keine Ketten eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher wurde keine Ketten eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 171 => \n array (\n 'id' => 672,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_kette',\n 'key' => 'logo',\n 'value' => 'Logo',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Logo',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 172 => \n array (\n 'id' => 673,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_kette',\n 'key' => 'name',\n 'value' => 'Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 173 => \n array (\n 'id' => 674,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_kette',\n 'key' => 'neu_kette',\n 'value' => 'Neue Kette eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue Kette eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 174 => \n array (\n 'id' => 675,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'activation_failed',\n 'value' => '<strong>Aktivierung fehlgeschlagen!</strong> Ist der eingegebene Link auch korrekt?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Aktivierung fehlgeschlagen!</strong> Ist der eingegebene Link auch korrekt?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 175 => \n array (\n 'id' => 676,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'activation_success',\n 'value' => '<strong>Aktivierung erfolgreich!</strong> Logge Dich jetzt Mit Deiner E-Mail-Adresse und Deinem gewählten Passwort ein.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Aktivierung erfolgreich!</strong> Logge Dich jetzt Mit Deiner E-Mail-Adresse und Deinem gewählten Passwort ein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 176 => \n array (\n 'id' => 677,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'check_mail',\n 'value' => 'Schau jetzt in Dein E-Mail-Postfach, um die Anmeldung abzuschließen!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Schau jetzt in Dein E-Mail-Postfach, um die Anmeldung abzuschließen!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 177 => \n array (\n 'id' => 678,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'contact_info',\n 'value' => 'Kontaktinformationen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Kontaktinformationen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 178 => \n array (\n 'id' => 679,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'error',\n 'value' => 'Es ist ein Fehler aufgetreten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es ist ein Fehler aufgetreten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 179 => \n array (\n 'id' => 680,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'error_email',\n 'value' => 'Mit Deiner E-Mail-Adresse stimmt etwas nicht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mit Deiner E-Mail-Adresse stimmt etwas nicht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 180 => \n array (\n 'id' => 681,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'error_image',\n 'value' => 'Dein Foto konnte nicht hochgeladen werden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dein Foto konnte nicht hochgeladen werden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 181 => \n array (\n 'id' => 682,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'error_name',\n 'value' => 'Bitte gib einen Namen ein',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bitte gib einen Namen ein',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 182 => \n array (\n 'id' => 683,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'error_passwd',\n 'value' => 'Dein Passwort muss mindestens 5 und darf maximal 30 Zeichen haben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dein Passwort muss mindestens 5 und darf maximal 30 Zeichen haben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 183 => \n array (\n 'id' => 684,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'finish',\n 'value' => 'Anmeldung absenden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Anmeldung absenden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 184 => \n array (\n 'id' => 685,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'have_read_the_legal_stuff1',\n 'value' => 'Ich habe die Datenschutzerklärung zur Kenntnis genommen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ich habe die Datenschutzerklärung zur Kenntnis genommen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 185 => \n array (\n 'id' => 686,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'have_read_the_legal_stuff2',\n 'value' => 'Ich habe die <a href=\"http://wiki.lebensmittelretten.de/Rechtsvereinbarung\" target=\"_blank\">Rechtsvereinbarung</a> zur Kenntnis genommen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ich habe die <a href=\"http://wiki.lebensmittelretten.de/Rechtsvereinbarung\" target=\"_blank\">Rechtsvereinbarung</a> zur Kenntnis genommen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 186 => \n array (\n 'id' => 687,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'i_am_a',\n 'value' => 'Ich bin...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ich bin...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 187 => \n array (\n 'id' => 688,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'join_success',\n 'value' => 'Deine Anmeldung war erfolgreich!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Anmeldung war erfolgreich!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 188 => \n array (\n 'id' => 689,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'legal_stuff',\n 'value' => 'Rechtliches',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Rechtliches',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 189 => \n array (\n 'id' => 690,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'login_email',\n 'value' => 'Deine E-Mail-Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine E-Mail-Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 190 => \n array (\n 'id' => 691,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'login_failed',\n 'value' => 'Diese Zugangdsdaten stimmen leider so nicht.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Diese Zugangdsdaten stimmen leider so nicht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 191 => \n array (\n 'id' => 692,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'login_info',\n 'value' => 'Login Informationen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Login Informationen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 192 => \n array (\n 'id' => 693,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'login_location',\n 'value' => 'Deine Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 193 => \n array (\n 'id' => 694,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'login_name',\n 'value' => 'Dein Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dein Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 194 => \n array (\n 'id' => 695,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'login_passwd1',\n 'value' => 'Passwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Passwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 195 => \n array (\n 'id' => 696,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'login_passwd2',\n 'value' => 'Passwortwiederholung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Passwortwiederholung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 196 => \n array (\n 'id' => 697,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'login_phone',\n 'value' => 'Telefonnummer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Telefonnummer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 197 => \n array (\n 'id' => 698,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'login_phone_info',\n 'value' => 'Es kann hilfreich sein, Deine Telefonnummer mit anderen Foodsharern zu teilen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es kann hilfreich sein, Deine Telefonnummer mit anderen Foodsharern zu teilen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 198 => \n array (\n 'id' => 699,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'login_success',\n 'value' => 'Prima! Jetzt bist Du eingeloggt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Prima! Jetzt bist Du eingeloggt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 199 => \n array (\n 'id' => 700,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'login_surname',\n 'value' => 'Nachname',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachname',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 200 => \n array (\n 'id' => 701,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'man',\n 'value' => 'männlich',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'männlich',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 201 => \n array (\n 'id' => 702,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'next',\n 'value' => 'weiter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'weiter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 202 => \n array (\n 'id' => 703,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'organisation',\n 'value' => 'Organisation',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Organisation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 203 => \n array (\n 'id' => 704,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'other',\n 'value' => 'sonstig/anders',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'sonstig/anders',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 204 => \n array (\n 'id' => 705,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'pass1',\n 'value' => 'Dein neues gewünschtes Passwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dein neues gewünschtes Passwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 205 => \n array (\n 'id' => 706,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'pass2',\n 'value' => 'Passwortwiederholung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Passwortwiederholung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 206 => \n array (\n 'id' => 707,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'peer',\n 'value' => 'Foodsharer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsharer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 207 => \n array (\n 'id' => 708,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'prev',\n 'value' => 'zur&uuml;ck',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zur&uuml;ck',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 208 => \n array (\n 'id' => 709,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'select_picture',\n 'value' => 'Foto ausw&auml;hlen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foto ausw&auml;hlen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 209 => \n array (\n 'id' => 710,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'select_your_gender',\n 'value' => 'Für die Anrede...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Für die Anrede...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 210 => \n array (\n 'id' => 711,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'upload_no_image',\n 'value' => 'Die hochgeladene Datei ist kein Foto, bitte wähle eine andere Datei.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Die hochgeladene Datei ist kein Foto, bitte wähle eine andere Datei.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 211 => \n array (\n 'id' => 712,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'woman',\n 'value' => 'weiblich',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'weiblich',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 212 => \n array (\n 'id' => 713,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'an',\n 'value' => 'Empfänger',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Empfänger',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 213 => \n array (\n 'id' => 714,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'answer',\n 'value' => 'Antworten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Antworten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 214 => \n array (\n 'id' => 715,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'attach_file',\n 'value' => 'Datei anhängen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Datei anhängen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 215 => \n array (\n 'id' => 716,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'email_error',\n 'value' => 'Die Empfänger E-Mail Adresse ist nicht korrekt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Die Empfänger E-Mail Adresse ist nicht korrekt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 216 => \n array (\n 'id' => 717,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'email_name',\n 'value' => 'Angezeigter Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Angezeigter Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 217 => \n array (\n 'id' => 718,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'file_to_big',\n 'value' => 'Sorry die Datei ist zu groß',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Sorry die Datei ist zu groß',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 218 => \n array (\n 'id' => 719,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'forward',\n 'value' => 'Weiterleiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Weiterleiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 219 => \n array (\n 'id' => 720,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'inbox',\n 'value' => 'Posteingang',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Posteingang',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 220 => \n array (\n 'id' => 721,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'mailbox_add_success',\n 'value' => 'Mailbox wurde erfolgreich angelegt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mailbox wurde erfolgreich angelegt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 221 => \n array (\n 'id' => 722,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'mailbox_member',\n 'value' => 'Mailbox Benutzer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mailbox Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 222 => \n array (\n 'id' => 723,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'mailbox_name_desc',\n 'value' => 'Nur den Namen der Mailbox eintragen, also ohne @:host',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nur den Namen der Mailbox eintragen, also ohne @:host',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 223 => \n array (\n 'id' => 724,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'message_from',\n 'value' => 'Nachricht vom :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachricht vom :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 224 => \n array (\n 'id' => 725,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'move_to_trash',\n 'value' => 'In die Tonne',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'In die Tonne',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 225 => \n array (\n 'id' => 726,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'new_mailbox',\n 'value' => 'Neue Mailbox anlegen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue Mailbox anlegen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 226 => \n array (\n 'id' => 727,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'new_message',\n 'value' => 'Neue E-Mail',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue E-Mail',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 227 => \n array (\n 'id' => 728,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'no_message',\n 'value' => 'Noch keine Nachrichten in dieser Mailbox!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Noch keine Nachrichten in dieser Mailbox!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 228 => \n array (\n 'id' => 729,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'original_message',\n 'value' => 'Original Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Original Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 229 => \n array (\n 'id' => 730,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'refresh',\n 'value' => 'Aktualisieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aktualisieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 230 => \n array (\n 'id' => 731,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'send_success',\n 'value' => 'E-Mail wurde erfolgreich versendet!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail wurde erfolgreich versendet!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 231 => \n array (\n 'id' => 732,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'sent',\n 'value' => 'Gesendet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Gesendet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 232 => \n array (\n 'id' => 733,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'trash',\n 'value' => 'Papierkorb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Papierkorb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 233 => \n array (\n 'id' => 734,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'von',\n 'value' => 'Absender',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Absender',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 234 => \n array (\n 'id' => 735,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'wrong_file',\n 'value' => 'Dieser Dateityp ist nicht erlaubt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dieser Dateityp ist nicht erlaubt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 235 => \n array (\n 'id' => 736,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_map',\n 'key' => 'specials',\n 'value' => 'Besonderheiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Besonderheiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 236 => \n array (\n 'id' => 737,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_map',\n 'key' => 'status',\n 'value' => 'Aktueller Status',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aktueller Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 237 => \n array (\n 'id' => 738,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_message_tpl',\n 'key' => 'body',\n 'value' => 'Text',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Text',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 238 => \n array (\n 'id' => 739,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_message_tpl',\n 'key' => 'bread_edit_message_tpl',\n 'value' => 'E-Mail Vorlage bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'E-Mail Vorlage bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 239 => \n array (\n 'id' => 740,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_message_tpl',\n 'key' => 'bread_message_tpl',\n 'value' => 'Alle Vorlagen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Alle Vorlagen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 240 => \n array (\n 'id' => 741,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_message_tpl',\n 'key' => 'bread_new_message_tpl',\n 'value' => 'neue Vorlage erstellen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'neue Vorlage erstellen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 241 => \n array (\n 'id' => 742,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_message_tpl',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 242 => \n array (\n 'id' => 743,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_message_tpl',\n 'key' => 'language_id',\n 'value' => 'Sprache',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Sprache',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 243 => \n array (\n 'id' => 744,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_message_tpl',\n 'key' => 'message_tpl',\n 'value' => 'E-Mail Vorlagen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'E-Mail Vorlagen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 244 => \n array (\n 'id' => 745,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_message_tpl',\n 'key' => 'message_tpl_add_success',\n 'value' => 'Vorlage wurde hinzugef&uuml;gt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Vorlage wurde hinzugef&uuml;gt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 245 => \n array (\n 'id' => 746,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_message_tpl',\n 'key' => 'message_tpl_bread',\n 'value' => 'E-Mail Vorlagen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'E-Mail Vorlagen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 246 => \n array (\n 'id' => 747,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_message_tpl',\n 'key' => 'message_tpl_edit_success',\n 'value' => 'Vorlage wurde bearbeitet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Vorlage wurde bearbeitet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 247 => \n array (\n 'id' => 748,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_message_tpl',\n 'key' => 'message_tpl_empty',\n 'value' => 'Bisher wurden keine E-Mail Vorlagen eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bisher wurden keine E-Mail Vorlagen eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 248 => \n array (\n 'id' => 749,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_message_tpl',\n 'key' => 'name',\n 'value' => 'Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 249 => \n array (\n 'id' => 750,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_message_tpl',\n 'key' => 'neu_message_tpl',\n 'value' => 'Neue Vorlage eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Neue Vorlage eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 250 => \n array (\n 'id' => 751,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_msg',\n 'key' => 'compose_body',\n 'value' => 'Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 251 => \n array (\n 'id' => 752,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_msg',\n 'key' => 'compose_recipients',\n 'value' => 'Empfänger',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Empfänger',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 252 => \n array (\n 'id' => 753,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_msg',\n 'key' => 'conversations',\n 'value' => 'Unterhaltungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Unterhaltungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 253 => \n array (\n 'id' => 754,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_msg',\n 'key' => 'no_conversations',\n 'value' => 'Noch keine Unterhaltungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Noch keine Unterhaltungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 254 => \n array (\n 'id' => 755,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_msg',\n 'key' => 'send_successfull',\n 'value' => 'Nachricht wurde erfolgreich versendet!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Nachricht wurde erfolgreich versendet!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 255 => \n array (\n 'id' => 756,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_newarea',\n 'key' => 'order_msg',\n 'value' => 'E-Mail Benachrichtigung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'E-Mail Benachrichtigung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 256 => \n array (\n 'id' => 757,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'click_to_unverify',\n 'value' => 'Klicken, um die Verifizierung aufzuheben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Klicken, um die Verifizierung aufzuheben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 257 => \n array (\n 'id' => 758,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'click_to_verify',\n 'value' => 'Klicken, um :var zu verifizieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Klicken, um :var zu verifizieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 258 => \n array (\n 'id' => 759,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'fs_id',\n 'value' => 'FS-ID',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'FS-ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 259 => \n array (\n 'id' => 760,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'kfz',\n 'value' => 'KFZ',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'KFZ',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 260 => \n array (\n 'id' => 761,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'last_generated',\n 'value' => 'Zuletzt erstellt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Zuletzt erstellt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 261 => \n array (\n 'id' => 762,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'never_generated',\n 'value' => 'noch nicht erstellt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'noch nicht erstellt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 262 => \n array (\n 'id' => 763,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'start',\n 'value' => 'Und los!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Und los!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 263 => \n array (\n 'id' => 764,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'tips',\n 'value' => 'Hinweise',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Hinweise',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 264 => \n array (\n 'id' => 765,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'tips_content',\n 'value' => '<p>Mit einem Klick auf das Erstellungsdatum werden alle Foodsaver mit dem gleichen Datum bzw. ohne Erstellungsdatum markiert.</p>\n<p>Mit einem Klick auf den Namen können Foto und Foodsharing-ID noch geändert werden.</p>\n<p>Foodsaver, die einen Ausweis bekommen haben und die Richtigkeit ihrer Perso-Daten bestätigt haben, können verifiziert werden.</p>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => '<p>Mit einem Klick auf das Erstellungsdatum werden alle Foodsaver mit dem gleichen Datum bzw. ohne Erstellungsdatum markiert.</p>\n<p>Mit einem Klick auf den Namen können Foto und Foodsharing-ID noch geändert werden.</p>\n<p>Foodsaver, die einen Ausweis bekommen haben und die Richtigkeit ihrer Perso-Daten bestätigt haben, können verifiziert werden.</p>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 265 => \n array (\n 'id' => 766,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'unverify_confirm',\n 'value' => 'Vor dem Entverifizieren musst Du die eingetragenen Abholtermine prüfen!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Vor dem Entverifizieren musst Du die eingetragenen Abholtermine prüfen!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 266 => \n array (\n 'id' => 767,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'unverify_confirm_button',\n 'value' => 'Prüfen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Prüfen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 267 => \n array (\n 'id' => 768,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'unverify_confirm_title',\n 'value' => 'Person noch für Abholungen eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Person noch für Abholungen eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 268 => \n array (\n 'id' => 769,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'verified',\n 'value' => 'verifiziert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'verifiziert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 269 => \n array (\n 'id' => 770,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'verify_confirm',\n 'value' => 'Perso-Daten gecheckt?<br />Ausweis übergeben?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Perso-Daten gecheckt?<br />Ausweis übergeben?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 270 => \n array (\n 'id' => 771,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'verify_confirm_button',\n 'value' => 'Verifizieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Verifizieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 271 => \n array (\n 'id' => 772,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'verify_confirm_title',\n 'value' => 'Sicher?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Sicher?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 272 => \n array (\n 'id' => 773,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_profile',\n 'key' => 'attach_image',\n 'value' => 'Bild hochladen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bild hochladen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 273 => \n array (\n 'id' => 774,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_profile',\n 'key' => 'last_login',\n 'value' => 'Letzter Login',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Letzter Login',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 274 => \n array (\n 'id' => 775,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_profile',\n 'key' => 'mailbox',\n 'value' => 'Interne Mailbox',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Interne Mailbox',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 275 => \n array (\n 'id' => 776,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_profile',\n 'key' => 'notes_count',\n 'value' => 'Notizen <strong>(:count)</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Notizen <strong>(:count)</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 276 => \n array (\n 'id' => 777,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_profile',\n 'key' => 'private_mail',\n 'value' => 'Private E-Mail Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Private E-Mail Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 277 => \n array (\n 'id' => 778,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_profile',\n 'key' => 'registration_date',\n 'value' => 'Registrierungsdatum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Registrierungsdatum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 278 => \n array (\n 'id' => 779,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_profile',\n 'key' => 'user_notes_info',\n 'value' => 'Bitte gehe gewissenhaft mit dieser Funktion um. Sie soll helfen Vorgänge Sichbar zu machen um uns Arbeit zu sparen, Persönliches oder wertendes zu einer Person hat hier nichts verloren - bleibe sachlich!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bitte gehe gewissenhaft mit dieser Funktion um. Sie soll helfen Vorgänge Sichbar zu machen um uns Arbeit zu sparen, Persönliches oder wertendes zu einer Person hat hier nichts verloren - bleibe sachlich!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 279 => \n array (\n 'id' => 780,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_profile',\n 'key' => 'violation_count',\n 'value' => 'Verstoßmeldungen <strong>(:count)</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Verstoßmeldungen <strong>(:count)</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 280 => \n array (\n 'id' => 781,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_profile',\n 'key' => 'write_teaser',\n 'value' => 'Schreibe etwas...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schreibe etwas...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 281 => \n array (\n 'id' => 782,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_quiz',\n 'key' => 'answers',\n 'value' => 'Welche Antworten sind richtig?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Welche Antworten sind richtig?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 282 => \n array (\n 'id' => 783,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_quiz',\n 'key' => 'duration',\n 'value' => 'Zeit zum Antworten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Zeit zum Antworten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 283 => \n array (\n 'id' => 784,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_quiz',\n 'key' => 'explanation',\n 'value' => 'Erklärung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Erklärung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 284 => \n array (\n 'id' => 785,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_quiz',\n 'key' => 'fp',\n 'value' => 'Fehlerpunkte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Fehlerpunkte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 285 => \n array (\n 'id' => 786,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_quiz',\n 'key' => 'maxfp',\n 'value' => 'Maximale Anzahl von Fehlerpunkten um zu bestehen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Maximale Anzahl von Fehlerpunkten um zu bestehen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 286 => \n array (\n 'id' => 787,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_quiz',\n 'key' => 'questcount',\n 'value' => 'Wie viele Fragen sollen bei Klausur gestellt werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Wie viele Fragen sollen bei Klausur gestellt werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 287 => \n array (\n 'id' => 788,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_quiz',\n 'key' => 'quizusercomment',\n 'value' => 'Gib uns feedback zu dieser Frage (z.B. war sie zu leicht, zu schwer, unverständlich oder einzelne Antworten bzw. Erklärungen nicht richtig)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gib uns feedback zu dieser Frage (z.B. war sie zu leicht, zu schwer, unverständlich oder einzelne Antworten bzw. Erklärungen nicht richtig)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 288 => \n array (\n 'id' => 789,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_quiz',\n 'key' => 'right',\n 'value' => 'Wertung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Wertung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 289 => \n array (\n 'id' => 790,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_quiz',\n 'key' => 'text',\n 'value' => 'Text',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Text',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 290 => \n array (\n 'id' => 791,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_quiz',\n 'key' => 'wikilink',\n 'value' => 'Link zur Wiki-Seite',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Link zur Wiki-Seite',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 291 => \n array (\n 'id' => 792,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'bezirk_bread',\n 'value' => 'Regionen verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Regionen verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 292 => \n array (\n 'id' => 793,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'bezirk_edit_success',\n 'value' => 'Änderungen wurden gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Änderungen wurden gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 293 => \n array (\n 'id' => 794,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'bezirk_empty',\n 'value' => 'Bisher wurde kein Bezirk eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bisher wurde kein Bezirk eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 294 => \n array (\n 'id' => 795,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'bread_bezirk',\n 'value' => 'Alle Bezirke',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Alle Bezirke',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 295 => \n array (\n 'id' => 796,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'bread_edit_bezirk',\n 'value' => 'Bezirk bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bezirk bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 296 => \n array (\n 'id' => 797,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'bread_edit_region',\n 'value' => 'Region bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Region bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 297 => \n array (\n 'id' => 798,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'bread_new_bezirk',\n 'value' => 'neuen Bezirk eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'neuen Bezirk eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 298 => \n array (\n 'id' => 799,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'bread_new_region',\n 'value' => 'neuen Region eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'neuen Region eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 299 => \n array (\n 'id' => 800,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'bread_region',\n 'value' => 'Alle Regionen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Alle Regionen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 300 => \n array (\n 'id' => 801,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'delete_sure',\n 'value' => 'Soll der Bezirk :var wirklich unwideruflich gelöscht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Soll der Bezirk :var wirklich unwideruflich gelöscht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 301 => \n array (\n 'id' => 802,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'neu_bezirk',\n 'value' => 'Neuen Bezirk eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Neuen Bezirk eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 302 => \n array (\n 'id' => 803,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'neu_region',\n 'value' => 'Neuen Bezirk eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Neuen Bezirk eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 303 => \n array (\n 'id' => 804,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'region_empty',\n 'value' => 'Bisher wurde kein Region eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bisher wurde kein Region eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 304 => \n array (\n 'id' => 805,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'region_id',\n 'value' => 'Region',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Region',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 305 => \n array (\n 'id' => 806,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_report',\n 'key' => 'betrieb_id',\n 'value' => 'Betrifft Die Meldung einen bestimmten Betrieb indem :var abholt?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Betrifft Die Meldung einen bestimmten Betrieb indem :var abholt?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 306 => \n array (\n 'id' => 807,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_report',\n 'key' => 'reportmessage',\n 'value' => 'Beschreibe den Vorfall noch etwas genauer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Beschreibe den Vorfall noch etwas genauer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 307 => \n array (\n 'id' => 808,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_report',\n 'key' => 'reportmessage_desc',\n 'value' => 'Es ist wichtig alle Fälle die gegen die Verhaltensregeln verstoßen zu melden, damit sich erst gar keine schlechte Stimmung unter den Foodsaver bzw. Betrieben entsteht in dem die Verantwortlichen sich rechtzeitig um Problemfälle kümmern können und bei mehrfachen nicht angebrachtem Verhalten, von der Plattform augeschlossen wrid.\nBitte schildere den Vorfall in mindestens 120 Zeichen, damit die Verantwortlichen bzw. das Mediationsteam sich angemessen um den Fall kümmern kann. Nenne dabei Häufigkeit des Vorfalls, Ort, Zeitpunkt und ggf. andere Anwesende Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Es ist wichtig alle Fälle die gegen die Verhaltensregeln verstoßen zu melden, damit sich erst gar keine schlechte Stimmung unter den Foodsaver bzw. Betrieben entsteht in dem die Verantwortlichen sich rechtzeitig um Problemfälle kümmern können und bei mehrfachen nicht angebrachtem Verhalten, von der Plattform augeschlossen wrid.\nBitte schildere den Vorfall in mindestens 120 Zeichen, damit die Verantwortlichen bzw. das Mediationsteam sich angemessen um den Fall kümmern kann. Nenne dabei Häufigkeit des Vorfalls, Ort, Zeitpunkt und ggf. andere Anwesende Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 308 => \n array (\n 'id' => 809,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'about_me_public',\n 'value' => 'Kurzbeschreibung von Dir',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Kurzbeschreibung von Dir',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 309 => \n array (\n 'id' => 810,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'account_option',\n 'value' => 'Account-Optionen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Account-Optionen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 310 => \n array (\n 'id' => 811,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'aufgaben_botschafter',\n 'value' => 'Ich habe das Dokument \"Aufgaben der BotschafterInnen von foodsharing gelesen und übernehme ab jetzt für diese die Verantwortlichkeit in meiner Stadt/Region/Bezirk.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ich habe das Dokument \"Aufgaben der BotschafterInnen von foodsharing gelesen und übernehme ab jetzt für diese die Verantwortlichkeit in meiner Stadt/Region/Bezirk.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 311 => \n array (\n 'id' => 812,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'bcard',\n 'value' => 'persönliche Visitenkarte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'persönliche Visitenkarte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 312 => \n array (\n 'id' => 813,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'calendar',\n 'value' => 'Kalender',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Kalender',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 313 => \n array (\n 'id' => 814,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'comment',\n 'value' => 'Anregungen Kritik & Kommentare',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Anregungen Kritik & Kommentare',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 314 => \n array (\n 'id' => 815,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'datenschutz',\n 'value' => 'Ich habe die Datenschutzerklärung für meine Botschafterrolle zur Kenntnis genommen und bin damit einverstanden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ich habe die Datenschutzerklärung für meine Botschafterrolle zur Kenntnis genommen und bin damit einverstanden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 315 => \n array (\n 'id' => 816,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'daterange',\n 'value' => 'Hier kannst Du einstellen, in welchem Zeitraum Du in etwa nicht zur Verfügung stehst.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Hier kannst Du einstellen, in welchem Zeitraum Du in etwa nicht zur Verfügung stehst.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 316 => \n array (\n 'id' => 817,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'delete_account',\n 'value' => 'Account löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Account löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 317 => \n array (\n 'id' => 818,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'delete_account_confirm_bt',\n 'value' => 'Ja, Account jetzt löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ja, Account jetzt löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 318 => \n array (\n 'id' => 819,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'delete_account_confirm_msg',\n 'value' => 'Du bist dabei Deinen Account zu löschen, bist Du Dir ganz sicher?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Du bist dabei Deinen Account zu löschen, bist Du Dir ganz sicher?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 319 => \n array (\n 'id' => 820,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'delete_account_confirm_title',\n 'value' => 'Account wirklich löschen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Account wirklich löschen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 320 => \n array (\n 'id' => 821,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'delete_now',\n 'value' => 'Account jetzt löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Account jetzt löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 321 => \n array (\n 'id' => 822,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'edit_photo',\n 'value' => 'Foto bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Foto bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 322 => \n array (\n 'id' => 823,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'follow_fairteiler',\n 'value' => 'Updates vom :var Fair-Teiler',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Updates vom :var Fair-Teiler',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 323 => \n array (\n 'id' => 824,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'follow_fairteiler_alert',\n 'value' => 'nur über interne Info-Meldungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'nur über interne Info-Meldungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 324 => \n array (\n 'id' => 825,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'follow_fairteiler_desc',\n 'value' => 'Du hast Dich als Follower für den :var Fair-Teiler eingetragen. Auf welche Art möchtest Du diese Benachrichtigungen bekommen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Du hast Dich als Follower für den :var Fair-Teiler eingetragen. Auf welche Art möchtest Du diese Benachrichtigungen bekommen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 325 => \n array (\n 'id' => 826,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'follow_fairteiler_mail',\n 'value' => 'über eine E-Mail Benachrichtigung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'über eine E-Mail Benachrichtigung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 326 => \n array (\n 'id' => 827,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'follow_fairteiler_none',\n 'value' => 'gar nicht mehr',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'gar nicht mehr',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 327 => \n array (\n 'id' => 828,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'follow_thread',\n 'value' => 'Über das Forenthema \":var\" auf dem Laufenden bleiben?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Über das Forenthema \":var\" auf dem Laufenden bleiben?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 328 => \n array (\n 'id' => 829,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'follow_thread_desc',\n 'value' => '',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => '',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 329 => \n array (\n 'id' => 830,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'follow_thread_mail',\n 'value' => 'Ja, ich möchte per Mail über neue Posts informiert werden.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ja, ich möchte per Mail über neue Posts informiert werden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 330 => \n array (\n 'id' => 831,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'follow_thread_none',\n 'value' => 'Bitte nicht mehr über neue Posts informieren.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bitte nicht mehr über neue Posts informieren.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 331 => \n array (\n 'id' => 832,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'full_sleepmode',\n 'value' => 'Ich tauche erstmal auf unbestimmte Zeit ab',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ich tauche erstmal auf unbestimmte Zeit ab',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 332 => \n array (\n 'id' => 833,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'geb_datum',\n 'value' => 'Geburtsdatum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Geburtsdatum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 333 => \n array (\n 'id' => 834,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'homepage',\n 'value' => 'Deine Webseite',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Deine Webseite',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 334 => \n array (\n 'id' => 835,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'infomail_message',\n 'value' => 'Benachrichtigung über foodsharing.de Nachrichten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Benachrichtigung über foodsharing.de Nachrichten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 335 => \n array (\n 'id' => 836,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'infomail_message_desc',\n 'value' => 'Wenn Du auf foodsharing.de eine interne Nachricht geschickt bekommst, aber gerade nicht eingeloggt bist, kannst Du per E-Mail darüber informiert werden. Möchtest Du das?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Wenn Du auf foodsharing.de eine interne Nachricht geschickt bekommst, aber gerade nicht eingeloggt bist, kannst Du per E-Mail darüber informiert werden. Möchtest Du das?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 336 => \n array (\n 'id' => 837,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'new_bezirk',\n 'value' => 'Bezirk den das Orgateam neu anlegen soll',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bezirk den das Orgateam neu anlegen soll',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 337 => \n array (\n 'id' => 838,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'newmail',\n 'value' => 'Gib hier Deine neue E-Mail Adresse ein',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gib hier Deine neue E-Mail Adresse ein',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 338 => \n array (\n 'id' => 839,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'newsletter',\n 'value' => 'Newsletter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Newsletter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 339 => \n array (\n 'id' => 840,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'newsletter_desc',\n 'value' => 'Ca. 1x im Monat senden wir aktuelle Informationen rund um die Lebensmittelretter-Bewegung in einem Newsletter raus. Möchtest Du diese E-Mails bekommen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ca. 1x im Monat senden wir aktuelle Informationen rund um die Lebensmittelretter-Bewegung in einem Newsletter raus. Möchtest Du diese E-Mails bekommen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 340 => \n array (\n 'id' => 841,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'no_sleepmode',\n 'value' => 'Ich bin aktiv und voll dabei',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ich bin aktiv und voll dabei',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 341 => \n array (\n 'id' => 842,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'passcheck',\n 'value' => 'Bestätige die Änderung bitte mit Deinem Passwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bestätige die Änderung bitte mit Deinem Passwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 342 => \n array (\n 'id' => 843,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'photo_public',\n 'value' => 'Um eine\nmöglichst flüssige Koordination zu ermöglichen, werden die Namen\nund das Foto von den BotschafterInnen von Foodsharing\nveröffentlicht.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Um eine\nmöglichst flüssige Koordination zu ermöglichen, werden die Namen\nund das Foto von den BotschafterInnen von Foodsharing\nveröffentlicht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 343 => \n array (\n 'id' => 844,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'posible_restore_account',\n 'value' => 'Dein Account kann nach dem löschen widerhergestellt werden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Dein Account kann nach dem löschen widerhergestellt werden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 344 => \n array (\n 'id' => 845,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'position',\n 'value' => 'Deine Position bei foodsharing (öffentlich)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Deine Position bei foodsharing (öffentlich)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 345 => \n array (\n 'id' => 846,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'position_search',\n 'value' => 'Adresssuche',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Adresssuche',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 346 => \n array (\n 'id' => 847,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'reason_to_delete',\n 'value' => 'Warum möchtest Du die Foodsaver-Community verlassen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Warum möchtest Du die Foodsaver-Community verlassen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 347 => \n array (\n 'id' => 848,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'settings',\n 'value' => 'Einstellungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Einstellungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 348 => \n array (\n 'id' => 849,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'settings_general',\n 'value' => 'Deine Angaben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Deine Angaben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 349 => \n array (\n 'id' => 850,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'settings_info',\n 'value' => 'Benachrichtigungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Benachrichtigungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 350 => \n array (\n 'id' => 851,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'settings_mumble',\n 'value' => 'Mumble Einstellungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Mumble Einstellungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 351 => \n array (\n 'id' => 852,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'sleep_mode_saved',\n 'value' => 'Die Einstellungen wurden gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Die Einstellungen wurden gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 352 => \n array (\n 'id' => 853,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'sleep_msg',\n 'value' => 'Hier kannst Du eine kurze Nachricht hinterlassen, warum Du gerade keine Zeit hast.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Hier kannst Du eine kurze Nachricht hinterlassen, warum Du gerade keine Zeit hast.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 353 => \n array (\n 'id' => 854,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'sleep_status',\n 'value' => 'Dein aktueller Status',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Dein aktueller Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 354 => \n array (\n 'id' => 855,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'sleeping_user',\n 'value' => 'Schlafmütze',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlafmütze',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 355 => \n array (\n 'id' => 856,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'sleepmode',\n 'value' => 'Schlafmützen-Funktion',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlafmützen-Funktion',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 356 => \n array (\n 'id' => 857,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'sleepmode_info',\n 'value' => 'Mit der Schlafmützen-Funktion ist es Dir möglich der Community mitzuteilen, dass Du zzt. verreist bist oder aus anderen Gründen keine Zeit für das Retten von Lebensmitteln hast.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Mit der Schlafmützen-Funktion ist es Dir möglich der Community mitzuteilen, dass Du zzt. verreist bist oder aus anderen Gründen keine Zeit für das Retten von Lebensmitteln hast.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 357 => \n array (\n 'id' => 858,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'tel_public',\n 'value' => 'Veröffentlichung Deiner Telefonnummer(n)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Veröffentlichung Deiner Telefonnummer(n)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 358 => \n array (\n 'id' => 859,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'temp_sleepmode',\n 'value' => 'Ich bin für eine Weile nicht verfügbar',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ich bin für eine Weile nicht verfügbar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 359 => \n array (\n 'id' => 860,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'time',\n 'value' => 'Wie viel Zeit kannst/willst Du für Deine Botschafterrolle pro Woche aufbringen (ungefähr)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Wie viel Zeit kannst/willst Du für Deine Botschafterrolle pro Woche aufbringen (ungefähr)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 360 => \n array (\n 'id' => 861,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'tox',\n 'value' => 'TOX ID',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'TOX ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 361 => \n array (\n 'id' => 862,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'tox_desc',\n 'value' => '<a href=\"https://tox.im/\" target=\"_blank\">Tox ist eine sichere OpenSource Skype Alternative</a>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => '<a href=\"https://tox.im/\" target=\"_blank\">Tox ist eine sichere OpenSource Skype Alternative</a>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 362 => \n array (\n 'id' => 863,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'twitter',\n 'value' => 'Twitter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Twitter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 363 => \n array (\n 'id' => 864,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'upgrade_bot_success',\n 'value' => 'Danke Dir für Deine Motivation mehr Verantwortung zu übernehmen! Die Anfrage wird schnellstmöglich vom bundesweiten Orga-Team bearbeitet.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Danke Dir für Deine Motivation mehr Verantwortung zu übernehmen! Die Anfrage wird schnellstmöglich vom bundesweiten Orga-Team bearbeitet.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 364 => \n array (\n 'id' => 865,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'upgrade_request_send',\n 'value' => 'Anfrage erfolgreich versendet!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Anfrage erfolgreich versendet!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 365 => \n array (\n 'id' => 866,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'upload_new_photo',\n 'value' => 'neues Foto hochladen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'neues Foto hochladen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 366 => \n array (\n 'id' => 867,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_statistics',\n 'key' => 'active_cities',\n 'value' => 'Aktivste Städte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Aktivste Städte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 367 => \n array (\n 'id' => 868,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_statistics',\n 'key' => 'stat_whole',\n 'value' => 'Gesamt-Statistik',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gesamt-Statistik',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 368 => \n array (\n 'id' => 869,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_team',\n 'key' => 'mail_send_success',\n 'value' => 'Deine Nachricht wurde erfolgreich gesendet!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Deine Nachricht wurde erfolgreich gesendet!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 369 => \n array (\n 'id' => 870,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_team',\n 'key' => 'team',\n 'value' => 'Team',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Team',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 370 => \n array (\n 'id' => 871,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'pagination',\n 'key' => 'next',\n 'value' => 'Next &raquo;',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Next &raquo;',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 371 => \n array (\n 'id' => 872,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'pagination',\n 'key' => 'previous',\n 'value' => '&laquo; Previous',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => '&laquo; Previous',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 372 => \n array (\n 'id' => 873,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'passwords',\n 'key' => 'password',\n 'value' => 'Passwords must be at least six characters and match the confirmation.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Passwords must be at least six characters and match the confirmation.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 373 => \n array (\n 'id' => 874,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'passwords',\n 'key' => 'reset',\n 'value' => 'Your password has been reset!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Your password has been reset!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 374 => \n array (\n 'id' => 875,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'passwords',\n 'key' => 'sent',\n 'value' => 'We have e-mailed your password reset link!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'We have e-mailed your password reset link!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 375 => \n array (\n 'id' => 876,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'passwords',\n 'key' => 'token',\n 'value' => 'This password reset token is invalid.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'This password reset token is invalid.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 376 => \n array (\n 'id' => 877,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'passwords',\n 'key' => 'user',\n 'value' => 'We can\\'t find a user with that e-mail address.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'We can\\'t find a user with that e-mail address.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 377 => \n array (\n 'id' => 878,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'addkeys',\n 'value' => 'Add Keys',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Add Keys',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 378 => \n array (\n 'id' => 879,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'addkeys-placeholder',\n 'value' => 'Add 1 key per line, without the group prefix',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Add 1 key per line, without the group prefix',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 379 => \n array (\n 'id' => 880,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'addsuffixes',\n 'value' => 'Set Suffixes',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Set Suffixes',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 380 => \n array (\n 'id' => 881,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'addsuffixes-placeholder',\n 'value' => 'add each key suffixed by lines entered here',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'add each key suffixed by lines entered here',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 381 => \n array (\n 'id' => 882,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'auto-fill',\n 'value' => 'Auto Fill',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Auto Fill',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 382 => \n array (\n 'id' => 883,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'auto-fill-disabled',\n 'value' => 'Filling...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Filling...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 383 => \n array (\n 'id' => 884,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'auto-prop-case-disabled',\n 'value' => 'Applying...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Applying...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 384 => \n array (\n 'id' => 885,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'auto-translate',\n 'value' => 'Auto Translate',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Auto Translate',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 385 => \n array (\n 'id' => 886,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'auto-translate-disabled',\n 'value' => 'Translating...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Translating...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 386 => \n array (\n 'id' => 887,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'cached',\n 'value' => 'Cached',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Cached',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 387 => \n array (\n 'id' => 888,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'changed',\n 'value' => 'Changed',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Changed',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 388 => \n array (\n 'id' => 889,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'check-all',\n 'value' => 'All',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'All',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 389 => \n array (\n 'id' => 890,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'check-none',\n 'value' => 'None',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'None',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 390 => \n array (\n 'id' => 891,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'choose-group',\n 'value' => 'Choose a translation group',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Choose a translation group',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 391 => \n array (\n 'id' => 892,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'choose-group-text',\n 'value' => 'Choose a group to display the group translations. If no groups are visible, contact your web-admin.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Choose a group to display the group translations. If no groups are visible, contact your web-admin.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 392 => \n array (\n 'id' => 893,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'cleardstkeys',\n 'value' => 'Clear Keys',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Clear Keys',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 393 => \n array (\n 'id' => 894,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'clearkeys',\n 'value' => 'Clear Keys',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Clear Keys',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 394 => \n array (\n 'id' => 895,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'clearsrckeys',\n 'value' => 'Clear Keys',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Clear Keys',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 395 => \n array (\n 'id' => 896,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'clearsuffixes',\n 'value' => 'Clear Suffixes',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Clear Suffixes',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 396 => \n array (\n 'id' => 897,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'close',\n 'value' => 'Close',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Close',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 397 => \n array (\n 'id' => 898,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'confirm-delete',\n 'value' => 'Are you sure you want delete:\n\n:group\n\nthe translations from the database? Any changes that have not been published to translation files, will be lost.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Are you sure you want delete:\n\n:group\n\nthe translations from the database? Any changes that have not been published to translation files, will be lost.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 398 => \n array (\n 'id' => 899,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'confirm-delete-all',\n 'value' => 'Are you sure you want delete all the translations from the database?\n\nAny changes that have not been published to translation files, will be lost.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Are you sure you want delete all the translations from the database?\n\nAny changes that have not been published to translation files, will be lost.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 399 => \n array (\n 'id' => 900,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'confirm-find',\n 'value' => 'Are you sure you want to scan your app and views folders? All found translation keys will be added to the database and source references will be updated.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Are you sure you want to scan your app and views folders? All found translation keys will be added to the database and source references will be updated.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 400 => \n array (\n 'id' => 901,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'copykeys',\n 'value' => 'Copy Keys',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Copy Keys',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 401 => \n array (\n 'id' => 902,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'db-connection',\n 'value' => 'Database',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Database',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 402 => \n array (\n 'id' => 903,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'delete',\n 'value' => 'Delete',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Delete',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 403 => \n array (\n 'id' => 904,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'delete-all',\n 'value' => 'Delete All',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Delete All',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 404 => \n array (\n 'id' => 905,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'deleted',\n 'value' => 'Deleted',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Deleted',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 405 => \n array (\n 'id' => 906,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'deletekeys',\n 'value' => 'Delete Keys',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Delete Keys',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 406 => \n array (\n 'id' => 907,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'deleting',\n 'value' => 'Deleting...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Deleting...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 407 => \n array (\n 'id' => 908,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'display-locales',\n 'value' => 'Working Set',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Working Set',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 408 => \n array (\n 'id' => 909,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'done-publishing',\n 'value' => 'Done publishing the translations for group <strong>:group</strong>.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Done publishing the translations for group <strong>:group</strong>.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 409 => \n array (\n 'id' => 910,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'done-publishing-all',\n 'value' => 'Done publishing the translations for <strong>all</strong> groups.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Done publishing the translations for <strong>all</strong> groups.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 410 => \n array (\n 'id' => 911,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'dst-preview',\n 'value' => 'To',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'To',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 411 => \n array (\n 'id' => 912,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'dstkey',\n 'value' => 'To',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'To',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 412 => \n array (\n 'id' => 913,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'dstkeys',\n 'value' => 'To Keys',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'To Keys',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 413 => \n array (\n 'id' => 914,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'dstkeys-placeholder',\n 'value' => 'Add 1 key per line, with or without the group prefix',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Add 1 key per line, with or without the group prefix',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 414 => \n array (\n 'id' => 915,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'enter-translation',\n 'value' => 'Enter translation',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Enter translation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 415 => \n array (\n 'id' => 916,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'export-warning-text',\n 'value' => 'Warning, translations are not visible until they are published by your administrator.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Warning, translations are not visible until they are published by your administrator.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 416 => \n array (\n 'id' => 917,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'find-in-files',\n 'value' => 'Add References',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Add References',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 417 => \n array (\n 'id' => 918,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'group',\n 'value' => 'Group',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Group',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 418 => \n array (\n 'id' => 919,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'import-add',\n 'value' => 'Only add new translations',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Only add new translations',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 419 => \n array (\n 'id' => 920,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'import-all-done',\n 'value' => 'Done importing, processed <strong>:count</strong> items. Reload this page to refresh the groups.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Done importing, processed <strong>:count</strong> items. Reload this page to refresh the groups.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 420 => \n array (\n 'id' => 921,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'import-done-head',\n 'value' => 'Done importing, processed',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Done importing, processed',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 421 => \n array (\n 'id' => 922,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'import-done-tail',\n 'value' => 'items. Reload this page to refresh the groups.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'items. Reload this page to refresh the groups.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 422 => \n array (\n 'id' => 923,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'import-fresh',\n 'value' => 'Delete All then Import',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Delete All then Import',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 423 => \n array (\n 'id' => 924,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'import-group',\n 'value' => 'Import',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Import',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 424 => \n array (\n 'id' => 925,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'import-group-done',\n 'value' => 'Done importing group <strong>:group</strong>, processed <strong>:count</strong> items. Reload this page to refresh translations.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Done importing group <strong>:group</strong>, processed <strong>:count</strong> items. Reload this page to refresh translations.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 425 => \n array (\n 'id' => 926,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'import-groups',\n 'value' => 'Import all',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Import all',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 426 => \n array (\n 'id' => 927,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'import-replace',\n 'value' => 'Replace existing translations',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Replace existing translations',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 427 => \n array (\n 'id' => 928,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'in-place-edit',\n 'value' => 'Edit In-Place',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Edit In-Place',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 428 => \n array (\n 'id' => 929,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'interface-locale',\n 'value' => 'Interface',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Interface',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 429 => \n array (\n 'id' => 930,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'key',\n 'value' => 'Key',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Key',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 430 => \n array (\n 'id' => 931,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'keyop-count-mustmatch',\n 'value' => 'Number of keys for source and destination must match',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Number of keys for source and destination must match',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 431 => \n array (\n 'id' => 932,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'keyop-header',\n 'value' => 'Key Operation Results',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Key Operation Results',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 432 => \n array (\n 'id' => 933,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'keyop-header-copy',\n 'value' => 'Copy key operation for <strong>:group</strong> group:',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Copy key operation for <strong>:group</strong> group:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 433 => \n array (\n 'id' => 934,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'keyop-header-delete',\n 'value' => 'Delete keys operation from <strong>:group</strong> group:',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Delete keys operation from <strong>:group</strong> group:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 434 => \n array (\n 'id' => 935,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'keyop-header-move',\n 'value' => 'Move key operation for <strong>:group</strong> group:',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Move key operation for <strong>:group</strong> group:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 435 => \n array (\n 'id' => 936,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'keyop-header-preview',\n 'value' => 'Preview key operation for <strong>:group</strong> group:',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Preview key operation for <strong>:group</strong> group:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 436 => \n array (\n 'id' => 937,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'keyop-need-group',\n 'value' => 'Key operations require a group',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Key operations require a group',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 437 => \n array (\n 'id' => 938,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'keyop-need-keys',\n 'value' => 'No keys provided for key operation',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'No keys provided for key operation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 438 => \n array (\n 'id' => 939,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'keyop-no-match',\n 'value' => 'No keys matched.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'No keys matched.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 439 => \n array (\n 'id' => 940,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'keyop-wildcard-mustmatch',\n 'value' => 'Wildcard * character must be the first or last character, and if present must be used on both source and destination keys in the same position.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Wildcard * character must be the first or last character, and if present must be used on both source and destination keys in the same position.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 440 => \n array (\n 'id' => 941,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'keyop-wildcard-once',\n 'value' => 'Wildcard * character can only appear once in a key.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Wildcard * character can only appear once in a key.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 441 => \n array (\n 'id' => 942,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'keyops-not-authorized',\n 'value' => 'Key operations are not authorized on this server. Contact your web-admin to change this setting.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Key operations are not authorized on this server. Contact your web-admin to change this setting.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 442 => \n array (\n 'id' => 943,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'keys',\n 'value' => 'Keys',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Keys',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 443 => \n array (\n 'id' => 944,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'loading',\n 'value' => 'Importing...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Importing...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 444 => \n array (\n 'id' => 945,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'locale',\n 'value' => 'Locale',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Locale',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 445 => \n array (\n 'id' => 946,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'mismatches',\n 'value' => 'Mismatched Translations',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Mismatched Translations',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 446 => \n array (\n 'id' => 947,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'missing',\n 'value' => 'Missing',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Missing',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 447 => \n array (\n 'id' => 948,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'missmatched-quotes',\n 'value' => 'mismatched or missing quotes in :string attribute',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'mismatched or missing quotes in :string attribute',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 448 => \n array (\n 'id' => 949,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'movekeys',\n 'value' => 'Move Keys',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Move Keys',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 449 => \n array (\n 'id' => 950,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'preview',\n 'value' => 'Preview',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Preview',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 450 => \n array (\n 'id' => 951,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'primary-locale',\n 'value' => 'Primary',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Primary',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 451 => \n array (\n 'id' => 952,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'publish',\n 'value' => 'Publish Group',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Publish Group',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 452 => \n array (\n 'id' => 953,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'publish-all',\n 'value' => 'Publish All',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Publish All',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 453 => \n array (\n 'id' => 954,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'publishing',\n 'value' => 'Publishing...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Publishing...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 454 => \n array (\n 'id' => 955,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'reload-page',\n 'value' => 'Reload Page',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Reload Page',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 455 => \n array (\n 'id' => 956,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'reset-usage-info',\n 'value' => 'Reset Usage Info',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Reset Usage Info',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 456 => \n array (\n 'id' => 957,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'search',\n 'value' => 'Search',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Search',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 457 => \n array (\n 'id' => 958,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'search-done',\n 'value' => 'Done searching for translations. Source references updated, added <strong>:count</strong> new translation items.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Done searching for translations. Source references updated, added <strong>:count</strong> new translation items.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 458 => \n array (\n 'id' => 959,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'search-done-head',\n 'value' => 'Done searching for translations, found',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Done searching for translations, found',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 459 => \n array (\n 'id' => 960,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'search-done-tail',\n 'value' => 'items.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'items.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 460 => \n array (\n 'id' => 961,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'search-header',\n 'value' => 'Results found: :count',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Results found: :count',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 461 => \n array (\n 'id' => 962,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'search-translations',\n 'value' => 'Search Translations',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Search Translations',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 462 => \n array (\n 'id' => 963,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'searching',\n 'value' => 'Searching...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Searching...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 463 => \n array (\n 'id' => 964,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'set-usage-info',\n 'value' => 'Set Usage Info',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Set Usage Info',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 464 => \n array (\n 'id' => 965,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show',\n 'value' => 'Show',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Show',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 465 => \n array (\n 'id' => 966,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show-all',\n 'value' => 'All',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'All',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 466 => \n array (\n 'id' => 967,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show-changed',\n 'value' => 'Changed',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Changed',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 467 => \n array (\n 'id' => 968,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show-deleted',\n 'value' => 'Deleted',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Deleted',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 468 => \n array (\n 'id' => 969,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show-empty',\n 'value' => 'Missing',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Missing',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 469 => \n array (\n 'id' => 970,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show-matching',\n 'value' => 'Filter Keys',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Filter Keys',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 470 => \n array (\n 'id' => 971,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show-matching-text',\n 'value' => 'key RegEx',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'key RegEx',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 471 => \n array (\n 'id' => 972,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show-need-attention',\n 'value' => 'Need Attention',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Need Attention',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 472 => \n array (\n 'id' => 973,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show-new',\n 'value' => 'New',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'New',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 473 => \n array (\n 'id' => 974,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show-nonempty',\n 'value' => 'Hide Missing',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Hide Missing',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 474 => \n array (\n 'id' => 975,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show-source-refs',\n 'value' => 'Show Source References',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Show Source References',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 475 => \n array (\n 'id' => 976,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show-unpublished',\n 'value' => 'Unpublished',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Unpublished',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 476 => \n array (\n 'id' => 977,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show-usage-info',\n 'value' => 'Show Usage',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Show Usage',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 477 => \n array (\n 'id' => 978,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show-used',\n 'value' => 'Used',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Used',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 478 => \n array (\n 'id' => 979,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'source-refs-header',\n 'value' => 'Source References for',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Source References for',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 479 => \n array (\n 'id' => 980,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'src-preview',\n 'value' => 'From',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'From',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 480 => \n array (\n 'id' => 981,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'srckey',\n 'value' => 'From',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'From',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 481 => \n array (\n 'id' => 982,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'srckeys',\n 'value' => 'From Keys',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'From Keys',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 482 => \n array (\n 'id' => 983,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'srckeys-placeholder',\n 'value' => 'Add 1 key per line, with or without the group prefix',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Add 1 key per line, with or without the group prefix',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 483 => \n array (\n 'id' => 984,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'stats',\n 'value' => 'Dashboard View',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Dashboard View',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 484 => \n array (\n 'id' => 985,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'suffixed-keyops',\n 'value' => 'Suffixed Key Operations',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Suffixed Key Operations',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 485 => \n array (\n 'id' => 986,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'suffixes',\n 'value' => 'Suffixes',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Suffixes',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 486 => \n array (\n 'id' => 987,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'title-cancel-changes',\n 'value' => 'Cancel changes',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Cancel changes',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 487 => \n array (\n 'id' => 988,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'title-capitalize',\n 'value' => 'Capitalize text',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Capitalize text',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 488 => \n array (\n 'id' => 989,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'title-capitalize-first-word',\n 'value' => 'Capitalize first word',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Capitalize first word',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 489 => \n array (\n 'id' => 990,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'title-clean-html-markdown',\n 'value' => 'Clean HTML markdown',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Clean HTML markdown',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 490 => \n array (\n 'id' => 991,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'title-convert-key',\n 'value' => 'Convert translation key to text',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Convert translation key to text',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 491 => \n array (\n 'id' => 992,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'title-generate-plurals',\n 'value' => 'Generate plural forms',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Generate plural forms',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 492 => \n array (\n 'id' => 993,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'title-load-last',\n 'value' => 'Load last published/imported value',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Load last published/imported value',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 493 => \n array (\n 'id' => 994,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'title-lowercase',\n 'value' => 'Lowercase text',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Lowercase text',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 494 => \n array (\n 'id' => 995,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'title-reset-editor',\n 'value' => 'Reset editor contents',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Reset editor contents',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 495 => \n array (\n 'id' => 996,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'title-save-changes',\n 'value' => 'Save changes',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Save changes',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 496 => \n array (\n 'id' => 997,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'title-simulated-copy',\n 'value' => 'Copy text to simulated clipboard (page refresh clears contents)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Copy text to simulated clipboard (page refresh clears contents)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 497 => \n array (\n 'id' => 998,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'title-simulated-paste',\n 'value' => 'Paste text from simulated clipboard',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Paste text from simulated clipboard',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 498 => \n array (\n 'id' => 999,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'title-translate',\n 'value' => 'Translate',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Translate',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 499 => \n array (\n 'id' => 1000,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'total',\n 'value' => 'Total',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Total',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n ));\n \\DB::table('translations')->insert(array (\n 0 => \n array (\n 'id' => 1001,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'translating-locale',\n 'value' => 'Translate',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Translate',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 1 => \n array (\n 'id' => 1002,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'translation',\n 'value' => 'Translation',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Translation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 2 => \n array (\n 'id' => 1003,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'translation-manager',\n 'value' => 'Translation Manager',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Translation Manager',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 3 => \n array (\n 'id' => 1004,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'translation-ops',\n 'value' => 'Translation Helpers',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Translation Helpers',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 4 => \n array (\n 'id' => 1005,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'translations',\n 'value' => 'Translations',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Translations',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 5 => \n array (\n 'id' => 1006,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'user-admin',\n 'value' => 'User Admin',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'User Admin',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 6 => \n array (\n 'id' => 1007,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'user-email',\n 'value' => 'User Email',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'User Email',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 7 => \n array (\n 'id' => 1008,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'user-id',\n 'value' => 'User ID',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'User ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 8 => \n array (\n 'id' => 1009,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'user-locales',\n 'value' => 'User Modifiable Locales',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'User Modifiable Locales',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 9 => \n array (\n 'id' => 1010,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'user-name',\n 'value' => 'User Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'User Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 10 => \n array (\n 'id' => 1011,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'wildcard-keyops',\n 'value' => 'Wildcard Key Operations',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Wildcard Key Operations',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 11 => \n array (\n 'id' => 1012,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'zip-all',\n 'value' => 'Zip All',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Zip All',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 12 => \n array (\n 'id' => 1013,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'zip-group',\n 'value' => 'Zip Group',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Zip Group',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 13 => \n array (\n 'id' => 1014,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'accepted',\n 'value' => 'The :attribute must be accepted.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be accepted.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 14 => \n array (\n 'id' => 1015,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'active_url',\n 'value' => 'The :attribute is not a valid URL.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute is not a valid URL.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 15 => \n array (\n 'id' => 1016,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'after',\n 'value' => 'The :attribute must be a date after :date.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a date after :date.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 16 => \n array (\n 'id' => 1017,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'after_or_equal',\n 'value' => 'The :attribute must be a date after or equal to :date.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a date after or equal to :date.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 17 => \n array (\n 'id' => 1018,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'alpha',\n 'value' => 'The :attribute may only contain letters.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute may only contain letters.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 18 => \n array (\n 'id' => 1019,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'alpha_dash',\n 'value' => 'The :attribute may only contain letters, numbers, and dashes.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute may only contain letters, numbers, and dashes.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 19 => \n array (\n 'id' => 1020,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'alpha_num',\n 'value' => 'The :attribute may only contain letters and numbers.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute may only contain letters and numbers.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 20 => \n array (\n 'id' => 1021,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'array',\n 'value' => 'The :attribute must be an array.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be an array.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 21 => \n array (\n 'id' => 1022,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'before',\n 'value' => 'The :attribute must be a date before :date.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a date before :date.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 22 => \n array (\n 'id' => 1023,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'before_or_equal',\n 'value' => 'The :attribute must be a date before or equal to :date.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a date before or equal to :date.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 23 => \n array (\n 'id' => 1024,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'between.array',\n 'value' => 'The :attribute must have between :min and :max items.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must have between :min and :max items.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 24 => \n array (\n 'id' => 1025,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'between.file',\n 'value' => 'The :attribute must be between :min and :max kilobytes.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be between :min and :max kilobytes.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 25 => \n array (\n 'id' => 1026,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'between.numeric',\n 'value' => 'The :attribute must be between :min and :max.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be between :min and :max.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 26 => \n array (\n 'id' => 1027,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'between.string',\n 'value' => 'The :attribute must be between :min and :max characters.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be between :min and :max characters.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 27 => \n array (\n 'id' => 1028,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'boolean',\n 'value' => 'The :attribute field must be true or false.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute field must be true or false.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 28 => \n array (\n 'id' => 1029,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'confirmed',\n 'value' => 'The :attribute confirmation does not match.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute confirmation does not match.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 29 => \n array (\n 'id' => 1030,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'date',\n 'value' => 'The :attribute is not a valid date.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute is not a valid date.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 30 => \n array (\n 'id' => 1031,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'date_format',\n 'value' => 'The :attribute does not match the format :format.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute does not match the format :format.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 31 => \n array (\n 'id' => 1032,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'different',\n 'value' => 'The :attribute and :other must be different.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute and :other must be different.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 32 => \n array (\n 'id' => 1033,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'digits',\n 'value' => 'The :attribute must be :digits digits.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be :digits digits.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 33 => \n array (\n 'id' => 1034,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'digits_between',\n 'value' => 'The :attribute must be between :min and :max digits.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be between :min and :max digits.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 34 => \n array (\n 'id' => 1035,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'dimensions',\n 'value' => 'The :attribute has invalid image dimensions.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute has invalid image dimensions.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 35 => \n array (\n 'id' => 1036,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'distinct',\n 'value' => 'The :attribute field has a duplicate value.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute field has a duplicate value.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 36 => \n array (\n 'id' => 1037,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'email',\n 'value' => 'The :attribute must be a valid email address.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a valid email address.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 37 => \n array (\n 'id' => 1038,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'exists',\n 'value' => 'The selected :attribute is invalid.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The selected :attribute is invalid.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 38 => \n array (\n 'id' => 1039,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'file',\n 'value' => 'The :attribute must be a file.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a file.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 39 => \n array (\n 'id' => 1040,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'filled',\n 'value' => 'The :attribute field must have a value.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute field must have a value.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 40 => \n array (\n 'id' => 1041,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'image',\n 'value' => 'The :attribute must be an image.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be an image.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 41 => \n array (\n 'id' => 1042,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'in',\n 'value' => 'The selected :attribute is invalid.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The selected :attribute is invalid.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 42 => \n array (\n 'id' => 1043,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'in_array',\n 'value' => 'The :attribute field does not exist in :other.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute field does not exist in :other.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 43 => \n array (\n 'id' => 1044,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'integer',\n 'value' => 'The :attribute must be an integer.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be an integer.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 44 => \n array (\n 'id' => 1045,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'ip',\n 'value' => 'The :attribute must be a valid IP address.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a valid IP address.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 45 => \n array (\n 'id' => 1046,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'ipv4',\n 'value' => 'The :attribute must be a valid IPv4 address.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a valid IPv4 address.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 46 => \n array (\n 'id' => 1047,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'ipv6',\n 'value' => 'The :attribute must be a valid IPv6 address.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a valid IPv6 address.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 47 => \n array (\n 'id' => 1048,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'json',\n 'value' => 'The :attribute must be a valid JSON string.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a valid JSON string.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 48 => \n array (\n 'id' => 1049,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'max.array',\n 'value' => 'The :attribute may not have more than :max items.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute may not have more than :max items.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 49 => \n array (\n 'id' => 1050,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'max.file',\n 'value' => 'The :attribute may not be greater than :max kilobytes.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute may not be greater than :max kilobytes.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 50 => \n array (\n 'id' => 1051,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'max.numeric',\n 'value' => 'The :attribute may not be greater than :max.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute may not be greater than :max.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 51 => \n array (\n 'id' => 1052,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'max.string',\n 'value' => 'The :attribute may not be greater than :max characters.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute may not be greater than :max characters.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 52 => \n array (\n 'id' => 1053,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'mimes',\n 'value' => 'The :attribute must be a file of type: :values.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a file of type: :values.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 53 => \n array (\n 'id' => 1054,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'mimetypes',\n 'value' => 'The :attribute must be a file of type: :values.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a file of type: :values.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 54 => \n array (\n 'id' => 1055,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'min.array',\n 'value' => 'The :attribute must have at least :min items.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must have at least :min items.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 55 => \n array (\n 'id' => 1056,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'min.file',\n 'value' => 'The :attribute must be at least :min kilobytes.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be at least :min kilobytes.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 56 => \n array (\n 'id' => 1057,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'min.numeric',\n 'value' => 'The :attribute must be at least :min.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be at least :min.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 57 => \n array (\n 'id' => 1058,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'min.string',\n 'value' => 'The :attribute must be at least :min characters.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be at least :min characters.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 58 => \n array (\n 'id' => 1059,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'not_in',\n 'value' => 'The selected :attribute is invalid.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The selected :attribute is invalid.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 59 => \n array (\n 'id' => 1060,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'numeric',\n 'value' => 'The :attribute must be a number.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a number.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 60 => \n array (\n 'id' => 1061,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'present',\n 'value' => 'The :attribute field must be present.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute field must be present.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 61 => \n array (\n 'id' => 1062,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'regex',\n 'value' => 'The :attribute format is invalid.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute format is invalid.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 62 => \n array (\n 'id' => 1063,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'required',\n 'value' => 'The :attribute field is required.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute field is required.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 63 => \n array (\n 'id' => 1064,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'required_if',\n 'value' => 'The :attribute field is required when :other is :value.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute field is required when :other is :value.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 64 => \n array (\n 'id' => 1065,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'required_unless',\n 'value' => 'The :attribute field is required unless :other is in :values.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute field is required unless :other is in :values.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 65 => \n array (\n 'id' => 1066,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'required_with',\n 'value' => 'The :attribute field is required when :values is present.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute field is required when :values is present.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 66 => \n array (\n 'id' => 1067,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'required_with_all',\n 'value' => 'The :attribute field is required when :values is present.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute field is required when :values is present.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 67 => \n array (\n 'id' => 1068,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'required_without',\n 'value' => 'The :attribute field is required when :values is not present.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute field is required when :values is not present.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 68 => \n array (\n 'id' => 1069,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'required_without_all',\n 'value' => 'The :attribute field is required when none of :values are present.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute field is required when none of :values are present.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 69 => \n array (\n 'id' => 1070,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'same',\n 'value' => 'The :attribute and :other must match.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute and :other must match.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 70 => \n array (\n 'id' => 1071,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'size.array',\n 'value' => 'The :attribute must contain :size items.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must contain :size items.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 71 => \n array (\n 'id' => 1072,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'size.file',\n 'value' => 'The :attribute must be :size kilobytes.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be :size kilobytes.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 72 => \n array (\n 'id' => 1073,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'size.numeric',\n 'value' => 'The :attribute must be :size.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be :size.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 73 => \n array (\n 'id' => 1074,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'size.string',\n 'value' => 'The :attribute must be :size characters.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be :size characters.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 74 => \n array (\n 'id' => 1075,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'string',\n 'value' => 'The :attribute must be a string.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a string.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 75 => \n array (\n 'id' => 1076,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'timezone',\n 'value' => 'The :attribute must be a valid zone.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a valid zone.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 76 => \n array (\n 'id' => 1077,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'unique',\n 'value' => 'The :attribute has already been taken.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute has already been taken.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 77 => \n array (\n 'id' => 1078,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'uploaded',\n 'value' => 'The :attribute failed to upload.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute failed to upload.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 78 => \n array (\n 'id' => 1079,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'url',\n 'value' => 'The :attribute format is invalid.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute format is invalid.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 79 => \n array (\n 'id' => 1080,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'custom.attribute-name.rule-name',\n 'value' => 'custom-message',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'custom-message',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 80 => \n array (\n 'id' => 1081,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'auth',\n 'key' => 'failed',\n 'value' => 'These credentials do not match our records.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Zugangsdaten nicht gefunden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 81 => \n array (\n 'id' => 1082,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'auth',\n 'key' => 'throttle',\n 'value' => 'Too many login attempts. Please try again in :seconds seconds.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Zuviele Anmeldeversuche. Bitte warte :seconds Sekunden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 82 => \n array (\n 'id' => 1083,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_basket',\n 'key' => 'contact_type',\n 'value' => 'Wie möchtest Du kontaktiert werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Wie möchtest Du kontaktiert werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 83 => \n array (\n 'id' => 1084,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_basket',\n 'key' => 'contactmessage',\n 'value' => 'Per Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Per Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 84 => \n array (\n 'id' => 1085,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_basket',\n 'key' => 'description',\n 'value' => 'Beschreibung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Beschreibung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 85 => \n array (\n 'id' => 1086,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_basket',\n 'key' => 'fetchstate',\n 'value' => 'Hat alles gut geklappt?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Hat alles gut geklappt?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 86 => \n array (\n 'id' => 1087,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_basket',\n 'key' => 'food_art',\n 'value' => 'Was trifft auf die Lebensmittel zu?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Was trifft auf die Lebensmittel zu?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 87 => \n array (\n 'id' => 1088,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_basket',\n 'key' => 'food_type',\n 'value' => 'Welche Arten von Lebensmitteln sind dabei?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Welche Arten von Lebensmitteln sind dabei?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 88 => \n array (\n 'id' => 1089,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_basket',\n 'key' => 'no_requests',\n 'value' => 'bisher keine Anfragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'bisher keine Anfragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 89 => \n array (\n 'id' => 1090,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_basket',\n 'key' => 'one_request',\n 'value' => 'eine Anfrage',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'eine Anfrage',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 90 => \n array (\n 'id' => 1091,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_basket',\n 'key' => 'picture-choose',\n 'value' => 'Datei wählen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Datei wählen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 91 => \n array (\n 'id' => 1092,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_basket',\n 'key' => 'picture-desc',\n 'value' => 'Füge dem Essenskorb ein Foto hinzu',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Füge dem Essenskorb ein Foto hinzu',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 92 => \n array (\n 'id' => 1093,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_basket',\n 'key' => 'req_count',\n 'value' => ':count Anfragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':count Anfragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 93 => \n array (\n 'id' => 1094,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_basket',\n 'key' => 'tel',\n 'value' => 'Festnetztelefon',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Festnetztelefon',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 94 => \n array (\n 'id' => 1095,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_basket',\n 'key' => 'weight',\n 'value' => 'geschätztes Gewicht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'geschätztes Gewicht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 95 => \n array (\n 'id' => 1096,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bcard',\n 'key' => 'bcard_generator',\n 'value' => 'Visitenkarten Generator',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Visitenkarten Generator',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 96 => \n array (\n 'id' => 1097,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bcard',\n 'key' => 'bcard_generator_desc',\n 'value' => 'Hier kannst Du Dir Deine persönlichen Visitenkarten erstellen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Hier kannst Du Dir Deine persönlichen Visitenkarten erstellen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 97 => \n array (\n 'id' => 1098,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bcard',\n 'key' => 'bot_for',\n 'value' => 'Botschafter für :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Botschafter für :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 98 => \n array (\n 'id' => 1099,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bcard',\n 'key' => 'bot_for_w',\n 'value' => 'Botschafterin für :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Botschafterin für :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 99 => \n array (\n 'id' => 1100,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bcard',\n 'key' => 'download_card',\n 'value' => 'Visitenkarten Herunterladen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Visitenkarten Herunterladen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 100 => \n array (\n 'id' => 1101,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bcard',\n 'key' => 'fs_for',\n 'value' => 'Foodsaver für :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Foodsaver für :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 101 => \n array (\n 'id' => 1102,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bcard',\n 'key' => 'fs_for_w',\n 'value' => 'Foodsaverin für :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Foodsaverin für :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 102 => \n array (\n 'id' => 1103,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bcard',\n 'key' => 'generation_success',\n 'value' => 'Visitenkarten erfolgreich generiert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Visitenkarten erfolgreich generiert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 103 => \n array (\n 'id' => 1104,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bcard',\n 'key' => 'opt',\n 'value' => 'Optionen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Optionen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 104 => \n array (\n 'id' => 1105,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bcard',\n 'key' => 'opt_desc',\n 'value' => 'Wähle hier für welchen Bezirk bzw. für welche Rolle Du Deine Visitenkarte erstellen möchtest.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Wähle hier für welchen Bezirk bzw. für welche Rolle Du Deine Visitenkarte erstellen möchtest.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 105 => \n array (\n 'id' => 1106,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bcard',\n 'key' => 'should_choose_option',\n 'value' => 'Du musst eine Option wählen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Du musst eine Option wählen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 106 => \n array (\n 'id' => 1107,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'betrieb_fetch',\n 'value' => ':count Unbestätigte Abholzeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':count Unbestätigte Abholzeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 107 => \n array (\n 'id' => 1108,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'betrieb_fetch_title',\n 'value' => ':betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 108 => \n array (\n 'id' => 1109,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'blog_new_check',\n 'value' => ':title',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':title',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 109 => \n array (\n 'id' => 1110,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'blog_new_check_title',\n 'value' => 'Neuer Blog Artikel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuer Blog Artikel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 110 => \n array (\n 'id' => 1111,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'buddy_request',\n 'value' => ':name kennt Dich!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name kennt Dich!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 111 => \n array (\n 'id' => 1112,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'buddy_request_title',\n 'value' => 'Kennst Du :name?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Kennst Du :name?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 112 => \n array (\n 'id' => 1113,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'forum_answer',\n 'value' => ':user hat Dir geantwortet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':user hat Dir geantwortet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 113 => \n array (\n 'id' => 1114,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'forum_answer_title',\n 'value' => ':forum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':forum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 114 => \n array (\n 'id' => 1115,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'fs_sleepmode',\n 'value' => ':name :nachname ist jetzt inaktiv',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name :nachname ist jetzt inaktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 115 => \n array (\n 'id' => 1116,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'fs_sleepmode_title',\n 'value' => 'Neue Schlafmütze',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neue Schlafmütze',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 116 => \n array (\n 'id' => 1117,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'ft_update',\n 'value' => ':teaser',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':teaser',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 117 => \n array (\n 'id' => 1118,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'ft_update_title',\n 'value' => ':name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 118 => \n array (\n 'id' => 1119,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'new_foodsaver',\n 'value' => 'Braucht Einführungsabholungen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Braucht Einführungsabholungen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 119 => \n array (\n 'id' => 1120,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'new_foodsaver_title',\n 'value' => ':name neu in :bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name neu in :bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 120 => \n array (\n 'id' => 1121,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'new_foodsaver_verified',\n 'value' => 'Ist schon verifiziert, kann loslegen!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Ist schon verifiziert, kann loslegen!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 121 => \n array (\n 'id' => 1122,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'new_quiz_comment',\n 'value' => ':comment',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':comment',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 122 => \n array (\n 'id' => 1123,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'new_quiz_comment_title',\n 'value' => 'Neuer Quiz-Kommentar',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuer Quiz-Kommentar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 123 => \n array (\n 'id' => 1124,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'no_bells',\n 'value' => 'Keine Benachrichtigungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Keine Benachrichtigungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 124 => \n array (\n 'id' => 1125,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'passgen_failed',\n 'value' => 'Bitte lade ein Foto, dann wirds klappen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Bitte lade ein Foto, dann wirds klappen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 125 => \n array (\n 'id' => 1126,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'passgen_failed_title',\n 'value' => 'Dein Ausweis konnte nicht erstellt werden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Dein Ausweis konnte nicht erstellt werden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 126 => \n array (\n 'id' => 1127,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'sharepoint_activate',\n 'value' => ':name wurde eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name wurde eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 127 => \n array (\n 'id' => 1128,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'sharepoint_activate_title',\n 'value' => 'Neuer Fair-Teiler in :bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuer Fair-Teiler in :bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 128 => \n array (\n 'id' => 1129,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_cr_times',\n 'value' => 'Abholzeiten haben sich geändert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Abholzeiten haben sich geändert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 129 => \n array (\n 'id' => 1130,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_cr_times_title',\n 'value' => ':name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 130 => \n array (\n 'id' => 1131,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_new',\n 'value' => ':name wurde eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name wurde eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 131 => \n array (\n 'id' => 1132,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_new_request',\n 'value' => 'Anfrage für :name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Anfrage für :name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 132 => \n array (\n 'id' => 1133,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_new_request_title',\n 'value' => 'Neue Teamanfrage',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neue Teamanfrage',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 133 => \n array (\n 'id' => 1134,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_new_title',\n 'value' => 'Neuer Betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuer Betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 134 => \n array (\n 'id' => 1135,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_request_accept',\n 'value' => 'Du wurdest in das Team aufgenommen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Du wurdest in das Team aufgenommen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 135 => \n array (\n 'id' => 1136,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_request_accept_title',\n 'value' => ':name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 136 => \n array (\n 'id' => 1137,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_request_accept_wait',\n 'value' => 'Du bist nun auf der Springer- / Warteliste!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Du bist nun auf der Springer- / Warteliste!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 137 => \n array (\n 'id' => 1138,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_request_accept_wait_title',\n 'value' => ':name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 138 => \n array (\n 'id' => 1139,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_request_deny',\n 'value' => 'Das Team ist leider schon zu voll!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Das Team ist leider schon zu voll!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 139 => \n array (\n 'id' => 1140,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_request_deny_title',\n 'value' => ':name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 140 => \n array (\n 'id' => 1141,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_wallpost',\n 'value' => 'Neuen Eintrag auf der Pinnwand!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuen Eintrag auf der Pinnwand!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 141 => \n array (\n 'id' => 1142,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_wallpost_title',\n 'value' => ':name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 142 => \n array (\n 'id' => 1143,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'abholmenge',\n 'value' => 'Wie viel Kilo werden pro Abholung ungefähr mitgenommen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Wie viel Kilo werden pro Abholung ungefähr mitgenommen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 143 => \n array (\n 'id' => 1144,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'accept_request',\n 'value' => ':var ist jetzt im Team',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':var ist jetzt im Team',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 144 => \n array (\n 'id' => 1145,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'ansprechpartner',\n 'value' => 'Betriebsansprechpartner (Filialleiter etc.)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Betriebsansprechpartner (Filialleiter etc.)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 145 => \n array (\n 'id' => 1146,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'begin',\n 'value' => 'Beginn der Kooperation',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Beginn der Kooperation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 146 => \n array (\n 'id' => 1147,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'besonderheiten',\n 'value' => 'Besonderheiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Besonderheiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 147 => \n array (\n 'id' => 1148,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb',\n 'value' => 'Betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 148 => \n array (\n 'id' => 1149,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_add_success',\n 'value' => 'Lebensmittelspenderbetrieb wurde gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Lebensmittelspenderbetrieb wurde gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 149 => \n array (\n 'id' => 1150,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_added',\n 'value' => 'hat den Betrieb am :var eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'hat den Betrieb am :var eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 150 => \n array (\n 'id' => 1151,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_bread',\n 'value' => 'Spenderbetriebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Spenderbetriebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 151 => \n array (\n 'id' => 1152,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_edit_success',\n 'value' => 'Änderungen wurden gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Änderungen wurden gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 152 => \n array (\n 'id' => 1153,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_empty',\n 'value' => 'Bisher wurde kein Betrieb eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Bisher wurde kein Betrieb eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 153 => \n array (\n 'id' => 1154,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_kategorie_id',\n 'value' => 'Kategorie',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Kategorie',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 154 => \n array (\n 'id' => 1155,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_status_id',\n 'value' => 'Status',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 155 => \n array (\n 'id' => 1156,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'bezirk_id',\n 'value' => 'Bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 156 => \n array (\n 'id' => 1157,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'bread_betrieb',\n 'value' => 'Alle Betriebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Alle Betriebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 157 => \n array (\n 'id' => 1158,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'bread_edit_betrieb',\n 'value' => 'Betrieb bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Betrieb bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 158 => \n array (\n 'id' => 1159,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'bread_new_betrieb',\n 'value' => 'neuen Betrieb eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'neuen Betrieb eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 159 => \n array (\n 'id' => 1160,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gelöscht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Soll :var wirklich unwideruflich gelöscht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 160 => \n array (\n 'id' => 1161,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'fax',\n 'value' => 'Fax',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Fax',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 161 => \n array (\n 'id' => 1162,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'fetch_history',\n 'value' => 'Abholungshistorie',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Abholungshistorie',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 162 => \n array (\n 'id' => 1163,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'fetchercount',\n 'value' => 'Anzahl der Abholer/innen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Anzahl der Abholer/innen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 163 => \n array (\n 'id' => 1164,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'first_post',\n 'value' => 'Erster Pinnwandeintrag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Erster Pinnwandeintrag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 164 => \n array (\n 'id' => 1165,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'foodsaver',\n 'value' => 'Verantwortliche Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Verantwortliche Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 165 => \n array (\n 'id' => 1166,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'hsnr',\n 'value' => 'Hausnummer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Hausnummer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 166 => \n array (\n 'id' => 1167,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'kette_id',\n 'value' => 'Betriebs-Kette',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Betriebs-Kette',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 167 => \n array (\n 'id' => 1168,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'lebensmittel',\n 'value' => 'Welche Lebensmittel dürfen abgeholt werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Welche Lebensmittel dürfen abgeholt werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 168 => \n array (\n 'id' => 1169,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'max_3_leader',\n 'value' => 'Es darf maximal 3 Verantwortliche für eine Filiale geben.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Es darf maximal 3 Verantwortliche für eine Filiale geben.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 169 => \n array (\n 'id' => 1170,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'neu_betrieb',\n 'value' => 'Neuen Betrieb eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuen Betrieb eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 170 => \n array (\n 'id' => 1171,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'no_member',\n 'value' => 'Du bist gar kein Mitglied in diesem Betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Du bist gar kein Mitglied in diesem Betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 171 => \n array (\n 'id' => 1172,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'plz_id',\n 'value' => 'plz',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'plz',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 172 => \n array (\n 'id' => 1173,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'position_search',\n 'value' => 'Adresssuche',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Adresssuche',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 173 => \n array (\n 'id' => 1174,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'prefetchtime',\n 'value' => 'Wie viele Wochen im Voraus können sich Foodsaver eintragen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Wie viele Wochen im Voraus können sich Foodsaver eintragen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 174 => \n array (\n 'id' => 1175,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'presse',\n 'value' => 'Ist der Betrieb/Laden/Verein bereit, bei der Presse und foodsharing.de genannt zu werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Ist der Betrieb/Laden/Verein bereit, bei der Presse und foodsharing.de genannt zu werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 175 => \n array (\n 'id' => 1176,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'public_info',\n 'value' => 'Öffentliche Infos zum Betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Öffentliche Infos zum Betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 176 => \n array (\n 'id' => 1177,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'public_time',\n 'value' => 'Ungefähre Tageszeit zum Abholen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Ungefähre Tageszeit zum Abholen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 177 => \n array (\n 'id' => 1178,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'quiz_dropped',\n 'value' => ':var ist jetzt nicht mehr im Team',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':var ist jetzt nicht mehr im Team',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 178 => \n array (\n 'id' => 1179,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'signout_error_admin',\n 'value' => 'Du bist verantwortlich für diesen Betrieb und kannst Dich nicht löschen!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Du bist verantwortlich für diesen Betrieb und kannst Dich nicht löschen!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 179 => \n array (\n 'id' => 1180,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'status_date',\n 'value' => 'letzte Statisänderung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'letzte Statisänderung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 180 => \n array (\n 'id' => 1181,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'sticker',\n 'value' => 'Ist der Betrieb/Laden/Verein etc. gewillt, einen Sticker beim Eingang oder anderswo sichtbar aufzuhängen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Ist der Betrieb/Laden/Verein etc. gewillt, einen Sticker beim Eingang oder anderswo sichtbar aufzuhängen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 181 => \n array (\n 'id' => 1182,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'str',\n 'value' => 'Straße',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Straße',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 182 => \n array (\n 'id' => 1183,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'ueberzeugungsarbeit',\n 'value' => 'War es einfach, eine/n Verantwortliche/n zu überzeugen, mit foodsharing zu kooperieren?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'War es einfach, eine/n Verantwortliche/n zu überzeugen, mit foodsharing zu kooperieren?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 183 => \n array (\n 'id' => 1184,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'bezirk_signout',\n 'value' => ':var Gruppe verlassen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':var Gruppe verlassen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 184 => \n array (\n 'id' => 1185,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'body',\n 'value' => 'Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 185 => \n array (\n 'id' => 1186,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'bot_forum',\n 'value' => 'Botschafterforum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Botschafterforum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 186 => \n array (\n 'id' => 1187,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'compose_new_theme',\n 'value' => 'Neues Thema verfassen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neues Thema verfassen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 187 => \n array (\n 'id' => 1188,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'dateend',\n 'value' => 'Enddatum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Enddatum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 188 => \n array (\n 'id' => 1189,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'delete_post',\n 'value' => 'Beitrag löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Beitrag löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 189 => \n array (\n 'id' => 1190,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'delete_sure',\n 'value' => 'Soll der Beitrag wirklich gelöscht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Soll der Beitrag wirklich gelöscht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 190 => \n array (\n 'id' => 1191,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'delete_sure_title',\n 'value' => 'Wirklich löschen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Wirklich löschen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 191 => \n array (\n 'id' => 1192,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'desc_desc',\n 'value' => 'Was ist das für ein Event?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Was ist das für ein Event?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 192 => \n array (\n 'id' => 1193,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'description',\n 'value' => 'Beschreibung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Beschreibung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 193 => \n array (\n 'id' => 1194,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'empty_forum',\n 'value' => 'Noch keine Themen gepostet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Noch keine Themen gepostet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 194 => \n array (\n 'id' => 1195,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'forum',\n 'value' => 'Forum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Forum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 195 => \n array (\n 'id' => 1196,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'list_fairteiler',\n 'value' => 'Alle Fair-Teiler in :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Alle Fair-Teiler in :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 196 => \n array (\n 'id' => 1197,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'location_name',\n 'value' => 'Veranstaltungsort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Veranstaltungsort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 197 => \n array (\n 'id' => 1198,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'mumble_room',\n 'value' => 'In welchem mumble Konferenzraum treffen wir uns?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'In welchem mumble Konferenzraum treffen wir uns?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 198 => \n array (\n 'id' => 1199,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'new_event',\n 'value' => 'Neue/n Termin/Veranstaltung eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neue/n Termin/Veranstaltung eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 199 => \n array (\n 'id' => 1200,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'new_fairteiler',\n 'value' => 'Neuer Fair-Teiler',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuer Fair-Teiler',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 200 => \n array (\n 'id' => 1201,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'no_events_posted',\n 'value' => 'Noch keine Events vorhanden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Noch keine Events vorhanden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 201 => \n array (\n 'id' => 1202,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'no_fairteiler_available',\n 'value' => 'Noch keine Fair-Teiler eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Noch keine Fair-Teiler eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 202 => \n array (\n 'id' => 1203,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'offline',\n 'value' => 'Ganz normal im echten Leben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Ganz normal im echten Leben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 203 => \n array (\n 'id' => 1204,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'older_themes',\n 'value' => 'ältere Themen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'ältere Themen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 204 => \n array (\n 'id' => 1205,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'online',\n 'value' => 'Multilokal auf mumble.lebensmittelretten.de',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Multilokal auf mumble.lebensmittelretten.de',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 205 => \n array (\n 'id' => 1206,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'online_type',\n 'value' => 'Findet das Event offline oder online auf unserem Mumble-Server statt?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Findet das Event offline oder online auf unserem Mumble-Server statt?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 206 => \n array (\n 'id' => 1207,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'post_could_not_saved',\n 'value' => 'Post konnte nicht gespeichert werden.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Post konnte nicht gespeichert werden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 207 => \n array (\n 'id' => 1208,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'signout',\n 'value' => 'Austragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Austragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 208 => \n array (\n 'id' => 1209,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'signout_sure',\n 'value' => 'Möchtest Du Dich wirklich die Gruppe \":var\" verlassen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Möchtest Du Dich wirklich die Gruppe \":var\" verlassen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 209 => \n array (\n 'id' => 1210,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'signout_sure_title',\n 'value' => 'Bist Du sicher?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Bist Du sicher?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 210 => \n array (\n 'id' => 1211,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'sure',\n 'value' => 'Ja, ich bin mir sicher.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Ja, ich bin mir sicher.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 211 => \n array (\n 'id' => 1212,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'title',\n 'value' => 'Titel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Titel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 212 => \n array (\n 'id' => 1213,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'article',\n 'value' => 'Artikel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Artikel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 213 => \n array (\n 'id' => 1214,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'bezirk_id',\n 'value' => 'Für welche Region ist der Artikel relevant?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Für welche Region ist der Artikel relevant?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 214 => \n array (\n 'id' => 1215,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'blog_bread',\n 'value' => 'Blog',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Blog',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 215 => \n array (\n 'id' => 1216,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'blog_entry_add_success',\n 'value' => 'Artikel wurde gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Artikel wurde gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 216 => \n array (\n 'id' => 1217,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'blog_entry_bread',\n 'value' => 'Alle Blog Eintr&auml;ge',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Blog Eintr&auml;ge',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 217 => \n array (\n 'id' => 1218,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'blog_entry_deleted',\n 'value' => 'Artikel gel&ouml;scht!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Artikel gel&ouml;scht!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 218 => \n array (\n 'id' => 1219,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'blog_entry_edit_success',\n 'value' => '&Auml;nderungen wurden gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '&Auml;nderungen wurden gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 219 => \n array (\n 'id' => 1220,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'blog_entry_empty',\n 'value' => 'Bisher sind keine Eintr&auml;ge vorhanden.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher sind keine Eintr&auml;ge vorhanden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 220 => \n array (\n 'id' => 1221,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'body',\n 'value' => 'Inhalt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Inhalt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 221 => \n array (\n 'id' => 1222,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'bread_blog_entry',\n 'value' => 'Alle Blog Eintr&auml;ge',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Blog Eintr&auml;ge',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 222 => \n array (\n 'id' => 1223,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'bread_edit_blog_entry',\n 'value' => 'Blog Eintrag bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Blog Eintrag bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 223 => \n array (\n 'id' => 1224,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'bread_new_blog_entry',\n 'value' => 'neuen Artikel schreiben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neuen Artikel schreiben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 224 => \n array (\n 'id' => 1225,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 225 => \n array (\n 'id' => 1226,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'edit_article',\n 'value' => 'Atikel bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Atikel bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 226 => \n array (\n 'id' => 1227,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'foodsaver_id',\n 'value' => 'foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 227 => \n array (\n 'id' => 1228,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'manage_blog',\n 'value' => 'Blog Einträge verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Blog Einträge verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 228 => \n array (\n 'id' => 1229,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'name',\n 'value' => 'Titel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Titel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 229 => \n array (\n 'id' => 1230,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'neu_blog_entry',\n 'value' => 'neuen Artikel schreiben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neuen Artikel schreiben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 230 => \n array (\n 'id' => 1231,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'new_article',\n 'value' => 'Neuer Artikel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuer Artikel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 231 => \n array (\n 'id' => 1232,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'news',\n 'value' => 'News aus der Foodsharing-Welt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'News aus der Foodsharing-Welt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 232 => \n array (\n 'id' => 1233,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'off_label',\n 'value' => 'inaktiv',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'inaktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 233 => \n array (\n 'id' => 1234,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'on_label',\n 'value' => 'veröffentlicht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'veröffentlicht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 234 => \n array (\n 'id' => 1235,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'status',\n 'value' => 'Status',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 235 => \n array (\n 'id' => 1236,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'status_0',\n 'value' => 'inaktiv',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'inaktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 236 => \n array (\n 'id' => 1237,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'status_1',\n 'value' => 'veröffentlicht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'veröffentlicht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 237 => \n array (\n 'id' => 1238,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'teaser',\n 'value' => 'Teaser',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Teaser',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 238 => \n array (\n 'id' => 1239,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'time',\n 'value' => 'time',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'time',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 239 => \n array (\n 'id' => 1240,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'bezirk_id',\n 'value' => 'bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 240 => \n array (\n 'id' => 1241,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'blog_entry_add_success',\n 'value' => 'Artikel wurde gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Artikel wurde gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 241 => \n array (\n 'id' => 1242,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'blog_entry_bread',\n 'value' => 'Alle Blog Eintr&auml;ge',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Blog Eintr&auml;ge',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 242 => \n array (\n 'id' => 1243,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'blog_entry_deleted',\n 'value' => 'Artikel gel&ouml;scht!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Artikel gel&ouml;scht!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 243 => \n array (\n 'id' => 1244,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'blog_entry_edit_success',\n 'value' => '&Auml;nderungen wurden gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '&Auml;nderungen wurden gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 244 => \n array (\n 'id' => 1245,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'blog_entry_empty',\n 'value' => 'Bisher sind keine Eintr&auml;ge vorhanden.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher sind keine Eintr&auml;ge vorhanden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 245 => \n array (\n 'id' => 1246,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'body',\n 'value' => 'Inhalt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Inhalt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 246 => \n array (\n 'id' => 1247,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'bread_blog_entry',\n 'value' => 'Alle Blog Eintr&auml;ge',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Blog Eintr&auml;ge',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 247 => \n array (\n 'id' => 1248,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'bread_edit_blog_entry',\n 'value' => 'Blog Eintrag bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Blog Eintrag bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 248 => \n array (\n 'id' => 1249,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'bread_new_blog_entry',\n 'value' => 'neuen Artikel schreiben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neuen Artikel schreiben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 249 => \n array (\n 'id' => 1250,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 250 => \n array (\n 'id' => 1251,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'foodsaver_id',\n 'value' => 'foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 251 => \n array (\n 'id' => 1252,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'name',\n 'value' => 'Titel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Titel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 252 => \n array (\n 'id' => 1253,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'neu_blog_entry',\n 'value' => 'neuen Artikel schreiben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neuen Artikel schreiben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 253 => \n array (\n 'id' => 1254,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'teaser',\n 'value' => 'Teaser',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Teaser',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 254 => \n array (\n 'id' => 1255,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'time',\n 'value' => 'time',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'time',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 255 => \n array (\n 'id' => 1256,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_content',\n 'key' => 'body',\n 'value' => 'Inhalt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Inhalt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 256 => \n array (\n 'id' => 1257,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_content',\n 'key' => 'bread_content',\n 'value' => 'Alles Seiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alles Seiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 257 => \n array (\n 'id' => 1258,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_content',\n 'key' => 'bread_edit_content',\n 'value' => 'Seite bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Seite bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 258 => \n array (\n 'id' => 1259,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_content',\n 'key' => 'bread_new_content',\n 'value' => 'neue Seite hinzufügen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neue Seite hinzufügen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 259 => \n array (\n 'id' => 1260,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_content',\n 'key' => 'content_add_success',\n 'value' => 'Seite wurde angelegt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Seite wurde angelegt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 260 => \n array (\n 'id' => 1261,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_content',\n 'key' => 'content_bread',\n 'value' => 'Öffentliche Seiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Öffentliche Seiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 261 => \n array (\n 'id' => 1262,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_content',\n 'key' => 'content_edit_success',\n 'value' => 'Seite wurde gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Seite wurde gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 262 => \n array (\n 'id' => 1263,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_content',\n 'key' => 'content_empty',\n 'value' => 'Bisher wurde keine Seite eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher wurde keine Seite eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 263 => \n array (\n 'id' => 1264,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_content',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich gel&ouml;scht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich gel&ouml;scht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 264 => \n array (\n 'id' => 1265,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_content',\n 'key' => 'last_mod',\n 'value' => 'last_mod',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'last_mod',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 265 => \n array (\n 'id' => 1266,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_content',\n 'key' => 'name',\n 'value' => 'Eindeutiger Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Eindeutiger Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 266 => \n array (\n 'id' => 1267,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_content',\n 'key' => 'neu_content',\n 'value' => 'Neue Seite anlegen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue Seite anlegen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 267 => \n array (\n 'id' => 1268,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_content',\n 'key' => 'title',\n 'value' => 'Überschrift',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Überschrift',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 268 => \n array (\n 'id' => 1269,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'abort',\n 'value' => 'Abbrechen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abbrechen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 269 => \n array (\n 'id' => 1270,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'about_me_public',\n 'value' => 'Kurzbeschreibung von Dir',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Kurzbeschreibung von Dir',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 270 => \n array (\n 'id' => 1271,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'access_error',\n 'value' => 'Du hast nicht die nötigen Rechte dies zu tun',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du hast nicht die nötigen Rechte dies zu tun',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 271 => \n array (\n 'id' => 1272,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'actions',\n 'value' => 'Aktionen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aktionen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 272 => \n array (\n 'id' => 1273,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'active',\n 'value' => 'Aktiviert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aktiviert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 273 => \n array (\n 'id' => 1274,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'add',\n 'value' => 'hinzufügen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'hinzufügen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 274 => \n array (\n 'id' => 1275,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'address',\n 'value' => 'Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 275 => \n array (\n 'id' => 1276,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'already_in_bezirk',\n 'value' => 'In diesem bezirk bist Du shcon aktiv',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'In diesem bezirk bist Du shcon aktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 276 => \n array (\n 'id' => 1277,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'anrede_0',\n 'value' => 'Liebe/r',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Liebe/r',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 277 => \n array (\n 'id' => 1278,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'anrede_1',\n 'value' => 'Lieber',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Lieber',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 278 => \n array (\n 'id' => 1279,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'anrede_2',\n 'value' => 'Liebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Liebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 279 => \n array (\n 'id' => 1280,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'anschrift',\n 'value' => 'Straße und Hausnummer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Straße und Hausnummer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 280 => \n array (\n 'id' => 1281,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'attach_image',\n 'value' => 'Bild anhängen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bild anhängen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 281 => \n array (\n 'id' => 1282,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'attachement',\n 'value' => 'Anhang',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Anhang',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 282 => \n array (\n 'id' => 1283,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'attention',\n 'value' => 'Achtung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Achtung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 283 => \n array (\n 'id' => 1284,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'autokennzeichen_id',\n 'value' => 'Autokennzeichen Deiner Stadt/Region',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Autokennzeichen Deiner Stadt/Region',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 284 => \n array (\n 'id' => 1285,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'back_to_betrieb',\n 'value' => 'zurück zum Betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zurück zum Betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 285 => \n array (\n 'id' => 1286,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'back_to_bezirk',\n 'value' => 'zurück zum Bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zurück zum Bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 286 => \n array (\n 'id' => 1287,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'back_to_overview',\n 'value' => 'zur&uuml;ck zur &Uuml;bersicht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zur&uuml;ck zur &Uuml;bersicht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 287 => \n array (\n 'id' => 1288,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'before_one_week',\n 'value' => 'vor einer Woche',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'vor einer Woche',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 288 => \n array (\n 'id' => 1289,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'betrieb',\n 'value' => 'Lebensmittelspender-Betrieb/e',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Lebensmittelspender-Betrieb/e',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 289 => \n array (\n 'id' => 1290,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_0',\n 'value' => 'Verhandlungen laufen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verhandlungen laufen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 290 => \n array (\n 'id' => 1291,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_1',\n 'value' => 'Es besteht noch kein Kontakt.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es besteht noch kein Kontakt.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 291 => \n array (\n 'id' => 1292,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_2',\n 'value' => 'Verhandlungen laufen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verhandlungen laufen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 292 => \n array (\n 'id' => 1293,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_3',\n 'value' => 'Betrieb ist bereit zu spenden.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb ist bereit zu spenden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 293 => \n array (\n 'id' => 1294,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_4',\n 'value' => 'Betrieb will nicht kooperieren.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb will nicht kooperieren.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 294 => \n array (\n 'id' => 1295,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_5',\n 'value' => 'Betrieb spendet bereits.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb spendet bereits.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 295 => \n array (\n 'id' => 1296,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_6',\n 'value' => 'Spendet an Tafel etc. und wirft nichts weg.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Spendet an Tafel etc. und wirft nichts weg.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 296 => \n array (\n 'id' => 1297,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'bezirk',\n 'value' => 'Region',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Region',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 297 => \n array (\n 'id' => 1298,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'bezirk_request_successfull',\n 'value' => 'Die Anfrage wurde erfolgreich versendet, Du wirst benachrichtigt sobald Du freigeschaltet bist.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Die Anfrage wurde erfolgreich versendet, Du wirst benachrichtigt sobald Du freigeschaltet bist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 298 => \n array (\n 'id' => 1299,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'botschafter',\n 'value' => 'Botschafter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Botschafter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 299 => \n array (\n 'id' => 1300,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'buddywalls',\n 'value' => 'Pinnwände von Bekannten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Pinnwände von Bekannten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 300 => \n array (\n 'id' => 1301,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'bundesland_id',\n 'value' => 'Bundesland',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bundesland',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 301 => \n array (\n 'id' => 1302,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'card',\n 'value' => 'Karte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Karte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 302 => \n array (\n 'id' => 1303,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'changes_saved',\n 'value' => 'Änderungen wurden gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Änderungen wurden gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 303 => \n array (\n 'id' => 1304,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'choose_file',\n 'value' => 'Datei ausw&auml;hlen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Datei ausw&auml;hlen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 304 => \n array (\n 'id' => 1305,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'choose_foodsaver',\n 'value' => 'W&auml;hle die Foodsaver aus denen Du einen Ausweis drucken willst',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'W&auml;hle die Foodsaver aus denen Du einen Ausweis drucken willst',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 305 => \n array (\n 'id' => 1306,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'click_to_edit',\n 'value' => 'Klicken zum bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Klicken zum bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 306 => \n array (\n 'id' => 1307,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'clock',\n 'value' => 'Uhr',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Uhr',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 307 => \n array (\n 'id' => 1308,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'continue',\n 'value' => 'Weiter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Weiter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 308 => \n array (\n 'id' => 1309,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'conversation_with',\n 'value' => 'Unterhaltung mit :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Unterhaltung mit :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 309 => \n array (\n 'id' => 1310,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'currently',\n 'value' => 'gerade eben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'gerade eben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 310 => \n array (\n 'id' => 1311,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'date',\n 'value' => 'Datum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Datum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 311 => \n array (\n 'id' => 1312,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'daterange',\n 'value' => 'Zeitraum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Zeitraum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 312 => \n array (\n 'id' => 1313,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'dates',\n 'value' => 'Termine',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Termine',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 313 => \n array (\n 'id' => 1314,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'datetime',\n 'value' => 'Zeitpunkt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Zeitpunkt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 314 => \n array (\n 'id' => 1315,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'day',\n 'value' => 'Tag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Tag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 315 => \n array (\n 'id' => 1316,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'delete',\n 'value' => 'löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 316 => \n array (\n 'id' => 1317,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'delete_post',\n 'value' => 'Beitrag löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Beitrag löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 317 => \n array (\n 'id' => 1318,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'delete_post_sure',\n 'value' => 'Soll der Beitrag wirklich gelöscht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll der Beitrag wirklich gelöscht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 318 => \n array (\n 'id' => 1319,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'delete_sure_title',\n 'value' => 'Wirklich löschen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Wirklich löschen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 319 => \n array (\n 'id' => 1320,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'desc',\n 'value' => 'Beschreibung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Beschreibung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 320 => \n array (\n 'id' => 1321,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'deutschlandtour_desc',\n 'value' => 'dann schreibe uns hier eine kurze Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'dann schreibe uns hier eine kurze Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 321 => \n array (\n 'id' => 1322,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'deutschlandtour_message',\n 'value' => 'Ja, ich möchte einen Besuch von Euch bekommen!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ja, ich möchte einen Besuch von Euch bekommen!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 322 => \n array (\n 'id' => 1323,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'dow0',\n 'value' => 'Sonntag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Sonntag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 323 => \n array (\n 'id' => 1324,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'dow1',\n 'value' => 'Montag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Montag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 324 => \n array (\n 'id' => 1325,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'dow2',\n 'value' => 'Dienstag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dienstag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 325 => \n array (\n 'id' => 1326,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'dow3',\n 'value' => 'Mittwoch',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mittwoch',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 326 => \n array (\n 'id' => 1327,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'dow4',\n 'value' => 'Donnerstag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Donnerstag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 327 => \n array (\n 'id' => 1328,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'dow5',\n 'value' => 'Freitag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Freitag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 328 => \n array (\n 'id' => 1329,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'dow6',\n 'value' => 'Samstag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Samstag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 329 => \n array (\n 'id' => 1330,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'edit',\n 'value' => 'bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 330 => \n array (\n 'id' => 1331,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'edit_success',\n 'value' => '&Auml;nderungen wurden gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '&Auml;nderungen wurden gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 331 => \n array (\n 'id' => 1332,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'email',\n 'value' => 'E-Mail-Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail-Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 332 => \n array (\n 'id' => 1333,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'email_adress',\n 'value' => 'E-Mail-Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail-Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 333 => \n array (\n 'id' => 1334,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'email_exists',\n 'value' => 'Mit dieser E-Mail-Adresse ist bereits ein Benutzer registriert.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mit dieser E-Mail-Adresse ist bereits ein Benutzer registriert.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 334 => \n array (\n 'id' => 1335,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'email_pass',\n 'value' => 'Passwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Passwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 335 => \n array (\n 'id' => 1336,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'error_default',\n 'value' => 'Es ist ein Fehler aufgetreten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es ist ein Fehler aufgetreten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 336 => \n array (\n 'id' => 1337,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'foodsaver',\n 'value' => 'Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 337 => \n array (\n 'id' => 1338,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'foodsaver_edit_success',\n 'value' => '&Auml;nderungen wurden gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '&Auml;nderungen wurden gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 338 => \n array (\n 'id' => 1339,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'friday',\n 'value' => 'Freitag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Freitag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 339 => \n array (\n 'id' => 1340,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'from',\n 'value' => 'von',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'von',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 340 => \n array (\n 'id' => 1341,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'fs_id',\n 'value' => 'Deine Foodsharing-ID',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Foodsharing-ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 341 => \n array (\n 'id' => 1342,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'geschlecht',\n 'value' => 'Geschlecht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Geschlecht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 342 => \n array (\n 'id' => 1343,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'groups',\n 'value' => 'Gruppen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Gruppen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 343 => \n array (\n 'id' => 1344,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'handy',\n 'value' => 'Handynummer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Handynummer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 344 => \n array (\n 'id' => 1345,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'join',\n 'value' => 'Anmelden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Anmelden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 345 => \n array (\n 'id' => 1346,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'last_day',\n 'value' => 'letzten :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'letzten :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 346 => \n array (\n 'id' => 1347,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'lat',\n 'value' => 'Längengrad',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Längengrad',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 347 => \n array (\n 'id' => 1348,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'login',\n 'value' => 'Login',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Login',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 348 => \n array (\n 'id' => 1349,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'login_success',\n 'value' => 'Login erfolgreich!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Login erfolgreich!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 349 => \n array (\n 'id' => 1350,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'lon',\n 'value' => 'Breitengrad',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Breitengrad',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 350 => \n array (\n 'id' => 1351,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'mail_to_all_foodsaver_in_area',\n 'value' => 'E-Mail an alle Foodsaver aus :var schreiben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail an alle Foodsaver aus :var schreiben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 351 => \n array (\n 'id' => 1352,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'mailbox_name',\n 'value' => 'Mailbox-Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mailbox-Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 352 => \n array (\n 'id' => 1353,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'mailboxes',\n 'value' => 'E-Mail Postfächer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail Postfächer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 353 => \n array (\n 'id' => 1354,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'mailinglist',\n 'value' => 'Mailingliste',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mailingliste',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 354 => \n array (\n 'id' => 1355,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_all_fs',\n 'value' => 'Alle Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 355 => \n array (\n 'id' => 1356,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_all_store',\n 'value' => 'Alle Betriebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Betriebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 356 => \n array (\n 'id' => 1357,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_blog',\n 'value' => 'Blogbeiträge bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Blogbeiträge bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 357 => \n array (\n 'id' => 1358,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_chain',\n 'value' => 'Betriebs-Ketten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebs-Ketten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 358 => \n array (\n 'id' => 1359,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_content',\n 'value' => 'Inhalte bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Inhalte bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 359 => \n array (\n 'id' => 1360,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_email',\n 'value' => 'E-Mail Verteiler',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail Verteiler',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 360 => \n array (\n 'id' => 1361,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_email_tpl',\n 'value' => 'E-Mail Vorlagen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail Vorlagen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 361 => \n array (\n 'id' => 1362,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_faq',\n 'value' => 'FAQs verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'FAQs verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 362 => \n array (\n 'id' => 1363,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_foodsaver_without_region',\n 'value' => 'Foodsaver ohne Region',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver ohne Region',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 363 => \n array (\n 'id' => 1364,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_foodtypes',\n 'value' => 'Lebensmittel-Typen verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Lebensmittel-Typen verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 364 => \n array (\n 'id' => 1365,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_mailbox_manage',\n 'value' => 'Mailboxen verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mailboxen verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 365 => \n array (\n 'id' => 1366,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_manage_regions',\n 'value' => 'Regionen verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Regionen verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 366 => \n array (\n 'id' => 1367,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_newarea',\n 'value' => 'Regionswünsche von Foodsavern',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Regionswünsche von Foodsavern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 367 => \n array (\n 'id' => 1368,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_quiz',\n 'value' => 'Quiz verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Quiz verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 368 => \n array (\n 'id' => 1369,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_regions_without_bots',\n 'value' => 'Regionen ohne Botschafter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Regionen ohne Botschafter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 369 => \n array (\n 'id' => 1370,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_reports',\n 'value' => 'Verstoßmeldungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verstoßmeldungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 370 => \n array (\n 'id' => 1371,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'message',\n 'value' => 'Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 371 => \n array (\n 'id' => 1372,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'monday',\n 'value' => 'Montag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Montag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 372 => \n array (\n 'id' => 1373,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'month_1',\n 'value' => 'Januar',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Januar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 373 => \n array (\n 'id' => 1374,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'month_10',\n 'value' => 'Okt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Okt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 374 => \n array (\n 'id' => 1375,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'month_11',\n 'value' => 'Nov',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nov',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 375 => \n array (\n 'id' => 1376,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'month_12',\n 'value' => 'Dez',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dez',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 376 => \n array (\n 'id' => 1377,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'month_2',\n 'value' => 'Februar',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Februar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 377 => \n array (\n 'id' => 1378,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'month_3',\n 'value' => 'März',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'März',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 378 => \n array (\n 'id' => 1379,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'month_4',\n 'value' => 'April',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'April',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 379 => \n array (\n 'id' => 1380,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'month_5',\n 'value' => 'Mai',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mai',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 380 => \n array (\n 'id' => 1381,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'month_6',\n 'value' => 'Juni',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Juni',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 381 => \n array (\n 'id' => 1382,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'month_7',\n 'value' => 'Juli',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Juli',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 382 => \n array (\n 'id' => 1383,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'month_8',\n 'value' => 'August',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'August',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 383 => \n array (\n 'id' => 1384,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'month_9',\n 'value' => 'Sep',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Sep',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 384 => \n array (\n 'id' => 1385,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'msganswer',\n 'value' => 'Antworten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Antworten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 385 => \n array (\n 'id' => 1386,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'nachname',\n 'value' => 'Nachname',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachname',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 386 => \n array (\n 'id' => 1387,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'name',\n 'value' => 'Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 387 => \n array (\n 'id' => 1388,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'new_message',\n 'value' => 'Neue Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 388 => \n array (\n 'id' => 1389,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'new_message_count',\n 'value' => 'Du hast :var neue Nachrichten!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du hast :var neue Nachrichten!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 389 => \n array (\n 'id' => 1390,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'new_registration',\n 'value' => 'Neue Registrierung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue Registrierung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 390 => \n array (\n 'id' => 1391,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'new_theme',\n 'value' => 'Neues Thema',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neues Thema',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 391 => \n array (\n 'id' => 1392,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'no',\n 'value' => 'Nein',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nein',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 392 => \n array (\n 'id' => 1393,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'no_bezirk_choosen',\n 'value' => 'Noch kein Bezirk gewählt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Noch kein Bezirk gewählt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 393 => \n array (\n 'id' => 1394,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'no_new_messages',\n 'value' => 'Keine neuen Nachrichten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Keine neuen Nachrichten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 394 => \n array (\n 'id' => 1395,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'no_result',\n 'value' => 'Kein Ergebnis',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Kein Ergebnis',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 395 => \n array (\n 'id' => 1396,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'normal',\n 'value' => 'Normal',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Normal',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 396 => \n array (\n 'id' => 1397,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'not_rv_accepted',\n 'value' => 'Du musst die Rechtsvereinbarung akzeptieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du musst die Rechtsvereinbarung akzeptieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 397 => \n array (\n 'id' => 1398,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'nothing_to_do',\n 'value' => 'Hier gibt es nichts zu tun',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Hier gibt es nichts zu tun',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 398 => \n array (\n 'id' => 1399,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'options',\n 'value' => 'Optionen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Optionen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 399 => \n array (\n 'id' => 1400,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'ort',\n 'value' => 'Stadt/Gemeinde',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Stadt/Gemeinde',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 400 => \n array (\n 'id' => 1401,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'parent_id',\n 'value' => 'Eltern-Region',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Eltern-Region',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 401 => \n array (\n 'id' => 1402,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'pass_generator',\n 'value' => 'Foodsaver Ausweis Generator',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver Ausweis Generator',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 402 => \n array (\n 'id' => 1403,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'password',\n 'value' => 'Passwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Passwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 403 => \n array (\n 'id' => 1404,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'photo',\n 'value' => 'Foto',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foto',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 404 => \n array (\n 'id' => 1405,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'photo_public',\n 'value' => 'Kontaktaufnahme durch andere Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Kontaktaufnahme durch andere Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 405 => \n array (\n 'id' => 1406,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'picture',\n 'value' => 'Bild',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bild',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 406 => \n array (\n 'id' => 1407,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'plz',\n 'value' => 'Postleitzahl',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Postleitzahl',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 407 => \n array (\n 'id' => 1408,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'position_search',\n 'value' => 'Positionssuche',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Positionssuche',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 408 => \n array (\n 'id' => 1409,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'pubbtime_1',\n 'value' => 'morgens',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'morgens',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 409 => \n array (\n 'id' => 1410,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'pubbtime_2',\n 'value' => 'mittags/nachmittags',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'mittags/nachmittags',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 410 => \n array (\n 'id' => 1411,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'pubbtime_3',\n 'value' => 'abends',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'abends',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 411 => \n array (\n 'id' => 1412,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'pubbtime_4',\n 'value' => 'nachts',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'nachts',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 412 => \n array (\n 'id' => 1413,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'read-more',\n 'value' => 'weiterlesen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'weiterlesen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 413 => \n array (\n 'id' => 1414,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'really_change',\n 'value' => '&Auml;nderungen wirklich speichern?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '&Auml;nderungen wirklich speichern?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 414 => \n array (\n 'id' => 1415,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'recip_all',\n 'value' => 'Alle Foodsaver Weltweit',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Foodsaver Weltweit',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 415 => \n array (\n 'id' => 1416,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'recip_all_bezirk',\n 'value' => 'Alle Foodsaver aus :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Foodsaver aus :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 416 => \n array (\n 'id' => 1417,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'recip_choose_bezirk',\n 'value' => 'Bezirke einzeld ausw&auml;hlen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bezirke einzeld ausw&auml;hlen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 417 => \n array (\n 'id' => 1418,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'recip_chooser',\n 'value' => 'Empf&auml;nger',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Empf&auml;nger',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 418 => \n array (\n 'id' => 1419,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'reference',\n 'value' => 'Hinweis',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Hinweis',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 419 => \n array (\n 'id' => 1420,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'regions',\n 'value' => 'Bezirke',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bezirke',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 420 => \n array (\n 'id' => 1421,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'register',\n 'value' => 'Registrieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Registrieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 421 => \n array (\n 'id' => 1422,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'request_already_send',\n 'value' => 'An diesen Bezirk hast Du schon eine Anfrage gesendet.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'An diesen Bezirk hast Du schon eine Anfrage gesendet.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 422 => \n array (\n 'id' => 1423,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle',\n 'value' => 'Benutzerrolle',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Benutzerrolle',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 423 => \n array (\n 'id' => 1424,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_0_0',\n 'value' => 'Foodsharer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsharer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 424 => \n array (\n 'id' => 1425,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_0_1',\n 'value' => 'Foodsharer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsharer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 425 => \n array (\n 'id' => 1426,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_0_2',\n 'value' => 'Foodsharer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsharer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 426 => \n array (\n 'id' => 1427,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_1_0',\n 'value' => 'Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 427 => \n array (\n 'id' => 1428,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_1_1',\n 'value' => 'Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 428 => \n array (\n 'id' => 1429,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_1_2',\n 'value' => 'Foodsaverin',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaverin',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 429 => \n array (\n 'id' => 1430,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_2_0',\n 'value' => 'Betriebsverantwortliche/r Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebsverantwortliche/r Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 430 => \n array (\n 'id' => 1431,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_2_1',\n 'value' => 'Betriebsverantwortlicher Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebsverantwortlicher Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 431 => \n array (\n 'id' => 1432,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_2_2',\n 'value' => 'Betriebsverantwortliche Foodsaverin',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebsverantwortliche Foodsaverin',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 432 => \n array (\n 'id' => 1433,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_3_0',\n 'value' => 'Botschafter/in',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Botschafter/in',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 433 => \n array (\n 'id' => 1434,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_3_1',\n 'value' => 'Botschafter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Botschafter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 434 => \n array (\n 'id' => 1435,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_3_2',\n 'value' => 'Botschafterin',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Botschafterin',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 435 => \n array (\n 'id' => 1436,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_4_0',\n 'value' => 'Orgamensch',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Orgamensch',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 436 => \n array (\n 'id' => 1437,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_4_1',\n 'value' => 'Orgamensch',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Orgamensch',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 437 => \n array (\n 'id' => 1438,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_4_2',\n 'value' => 'Orgamensch',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Orgamensch',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 438 => \n array (\n 'id' => 1439,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rv_accept',\n 'value' => 'Ja, ich habe die Rechtsvereinbarung gelesen und Akzeptiere sie.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ja, ich habe die Rechtsvereinbarung gelesen und Akzeptiere sie.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 439 => \n array (\n 'id' => 1440,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'saturday',\n 'value' => 'Samstag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Samstag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 440 => \n array (\n 'id' => 1441,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'save',\n 'value' => 'Speichern',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Speichern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 441 => \n array (\n 'id' => 1442,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'search',\n 'value' => 'Suchen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Suchen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 442 => \n array (\n 'id' => 1443,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'send',\n 'value' => 'Senden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Senden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 443 => \n array (\n 'id' => 1444,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'settings',\n 'value' => 'Deine Daten / Einstellungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Daten / Einstellungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 444 => \n array (\n 'id' => 1445,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'show_all_messages',\n 'value' => 'Alle Nachrichten zeigen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Nachrichten zeigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 445 => \n array (\n 'id' => 1446,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'smonth_1',\n 'value' => 'Jan',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Jan',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 446 => \n array (\n 'id' => 1447,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'smonth_10',\n 'value' => 'Okt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Okt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 447 => \n array (\n 'id' => 1448,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'smonth_11',\n 'value' => 'Nov',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nov',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 448 => \n array (\n 'id' => 1449,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'smonth_12',\n 'value' => 'Dez',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dez',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 449 => \n array (\n 'id' => 1450,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'smonth_2',\n 'value' => 'Feb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Feb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 450 => \n array (\n 'id' => 1451,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'smonth_3',\n 'value' => 'März',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'März',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 451 => \n array (\n 'id' => 1452,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'smonth_4',\n 'value' => 'Apr',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Apr',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 452 => \n array (\n 'id' => 1453,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'smonth_5',\n 'value' => 'Mai',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mai',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 453 => \n array (\n 'id' => 1454,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'smonth_6',\n 'value' => 'Juni',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Juni',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 454 => \n array (\n 'id' => 1455,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'smonth_7',\n 'value' => 'Juli',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Juli',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 455 => \n array (\n 'id' => 1456,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'smonth_8',\n 'value' => 'Aug',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aug',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 456 => \n array (\n 'id' => 1457,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'smonth_9',\n 'value' => 'Sep',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Sep',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 457 => \n array (\n 'id' => 1458,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'specials',\n 'value' => 'Besonderheiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Besonderheiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 458 => \n array (\n 'id' => 1459,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'stadt',\n 'value' => 'Deine Stadt oder Gemeinde',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Stadt oder Gemeinde',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 459 => \n array (\n 'id' => 1460,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'status',\n 'value' => 'Aktueller Status',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aktueller Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 460 => \n array (\n 'id' => 1461,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'subject',\n 'value' => 'Betreff',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betreff',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 461 => \n array (\n 'id' => 1462,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'sunday',\n 'value' => 'Sonntag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Sonntag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 462 => \n array (\n 'id' => 1463,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'sure',\n 'value' => 'Ja, ich bin mir sicher.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ja, ich bin mir sicher.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 463 => \n array (\n 'id' => 1464,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'team_status_0',\n 'value' => 'Dieses Team ist voll. Daher werden z.<span style=\"white-space:nowrap\">&thinsp;</span>Z. keine weiteren Helfer gesucht.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dieses Team ist voll. Daher werden z.<span style=\"white-space:nowrap\">&thinsp;</span>Z. keine weiteren Helfer gesucht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 464 => \n array (\n 'id' => 1465,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'team_status_1',\n 'value' => '<strong>Es werden noch Helfer gesucht</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Es werden noch Helfer gesucht</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 465 => \n array (\n 'id' => 1466,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'team_status_2',\n 'value' => '<strong>Es werden dringend noch Helfer gesucht</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Es werden dringend noch Helfer gesucht</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 466 => \n array (\n 'id' => 1467,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'telefon',\n 'value' => 'Festnetznummer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Festnetznummer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 467 => \n array (\n 'id' => 1468,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'this_weekday',\n 'value' => 'letzten :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'letzten :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 468 => \n array (\n 'id' => 1469,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'thursday',\n 'value' => 'Donnerstag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Donnerstag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 469 => \n array (\n 'id' => 1470,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'time',\n 'value' => 'Uhrzeit',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Uhrzeit',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 470 => \n array (\n 'id' => 1471,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'to',\n 'value' => 'bis',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'bis',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 471 => \n array (\n 'id' => 1472,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'to_team_page',\n 'value' => 'Zur Teamseite',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Zur Teamseite',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 472 => \n array (\n 'id' => 1473,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'today',\n 'value' => 'Heute',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Heute',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 473 => \n array (\n 'id' => 1474,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'today_time',\n 'value' => 'Heute, :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Heute, :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 474 => \n array (\n 'id' => 1475,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'tomorrow',\n 'value' => 'Morgen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Morgen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 475 => \n array (\n 'id' => 1476,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'tuesday',\n 'value' => 'Dienstag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dienstag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 476 => \n array (\n 'id' => 1477,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'upload_picture',\n 'value' => 'Bild hochladen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bild hochladen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 477 => \n array (\n 'id' => 1478,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'user_add_success',\n 'value' => 'Prima! Dein Account wurde angelegt!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Prima! Dein Account wurde angelegt!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 478 => \n array (\n 'id' => 1479,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'user_is_activated',\n 'value' => 'Foodsaver ist aktiviert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver ist aktiviert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 479 => \n array (\n 'id' => 1480,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'user_is_botschafter_now',\n 'value' => ':var ist jetzt Botschafter/in',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => ':var ist jetzt Botschafter/in',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 480 => \n array (\n 'id' => 1481,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'user_is_deleted',\n 'value' => 'Foodsaver wurde gel&ouml;scht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver wurde gel&ouml;scht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 481 => \n array (\n 'id' => 1482,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'want_to_fetch',\n 'value' => 'Hier würde ich gerne Lebensmittel abholen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Hier würde ich gerne Lebensmittel abholen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 482 => \n array (\n 'id' => 1483,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'wednesday',\n 'value' => 'Mittwoch',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mittwoch',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 483 => \n array (\n 'id' => 1484,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'write_a_messages',\n 'value' => 'Nachricht schreiben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachricht schreiben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 484 => \n array (\n 'id' => 1485,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'write_something',\n 'value' => 'schreibe etwas',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'schreibe etwas',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 485 => \n array (\n 'id' => 1486,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'write_teaser',\n 'value' => 'Schreibe etwas...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Schreibe etwas...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 486 => \n array (\n 'id' => 1487,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'yes',\n 'value' => 'Ja',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ja',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 487 => \n array (\n 'id' => 1488,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'yesterday',\n 'value' => 'gestern',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'gestern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 488 => \n array (\n 'id' => 1489,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'all_baskets',\n 'value' => 'Alle Körbe auf der Karte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Körbe auf der Karte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 489 => \n array (\n 'id' => 1490,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'already_in_bezirk',\n 'value' => 'In diesem Bezirk bist Du schon aktiv',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'In diesem Bezirk bist Du schon aktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 490 => \n array (\n 'id' => 1491,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'attach_image',\n 'value' => 'Bild anhängen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bild anhängen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 491 => \n array (\n 'id' => 1492,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'bezirk_request_successfull',\n 'value' => 'Die Anfrage wurde erfolgreich versendet, Du wirst benachrichtigt sobald Du freigeschaltet bist.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Die Anfrage wurde erfolgreich versendet, Du wirst benachrichtigt sobald Du freigeschaltet bist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 492 => \n array (\n 'id' => 1493,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'bot_partners',\n 'value' => 'Deine Botschafterpatenkinder',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Botschafterpatenkinder',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 493 => \n array (\n 'id' => 1494,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'close_foodbaskets',\n 'value' => 'Essenskörbe in Deiner Nähe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Essenskörbe in Deiner Nähe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 494 => \n array (\n 'id' => 1495,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'fs_partners',\n 'value' => 'Deine Patenkinder',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Patenkinder',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 495 => \n array (\n 'id' => 1496,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'more_baskets',\n 'value' => 'Alle Körbe auf der Karte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Körbe auf der Karte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 496 => \n array (\n 'id' => 1497,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'new_basket',\n 'value' => 'Neuer Essenskorb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuer Essenskorb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 497 => \n array (\n 'id' => 1498,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'new_foodbaskets',\n 'value' => 'Neueste Essenskörbe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neueste Essenskörbe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 498 => \n array (\n 'id' => 1499,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'next_dates',\n 'value' => 'nächste Abholtermine',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'nächste Abholtermine',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 499 => \n array (\n 'id' => 1500,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'no_saved_food',\n 'value' => 'Viel Spaß beim Retten!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Viel Spaß beim Retten!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n ));\n \\DB::table('translations')->insert(array (\n 0 => \n array (\n 'id' => 1501,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'ort',\n 'value' => 'Stadt/Gemeinde',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Stadt/Gemeinde',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 1 => \n array (\n 'id' => 1502,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'position_search',\n 'value' => 'Positionssuche',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Positionssuche',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 2 => \n array (\n 'id' => 1503,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'pubbtime_1',\n 'value' => 'morgens',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'morgens',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 3 => \n array (\n 'id' => 1504,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'pubbtime_2',\n 'value' => 'mittags/nachmittags',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'mittags/nachmittags',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 4 => \n array (\n 'id' => 1505,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'pubbtime_3',\n 'value' => 'abends',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'abends',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 5 => \n array (\n 'id' => 1506,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'pubbtime_4',\n 'value' => 'nachts',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'nachts',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 6 => \n array (\n 'id' => 1507,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'request_already_send',\n 'value' => 'An diesen Bezirk hast Du schon eine Anfrage gesendet.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'An diesen Bezirk hast Du schon eine Anfrage gesendet.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 7 => \n array (\n 'id' => 1508,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'saved_food',\n 'value' => 'Du hast schon :weight Kilos gerettet!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du hast schon :weight Kilos gerettet!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 8 => \n array (\n 'id' => 1509,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'team_status_0',\n 'value' => 'Dieses Team ist voll. Daher werden z.<span style=\"white-space:nowrap\">&thinsp;</span>Z. keine weiteren Helfer gesucht.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dieses Team ist voll. Daher werden z.<span style=\"white-space:nowrap\">&thinsp;</span>Z. keine weiteren Helfer gesucht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 9 => \n array (\n 'id' => 1510,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'team_status_1',\n 'value' => '<strong>Es werden noch Helfer gesucht</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Es werden noch Helfer gesucht</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 10 => \n array (\n 'id' => 1511,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'team_status_2',\n 'value' => '<strong>Es werden dringend noch Helfer gesucht</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Es werden dringend noch Helfer gesucht</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 11 => \n array (\n 'id' => 1512,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'updates',\n 'value' => 'Letzte Aktivitäten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Letzte Aktivitäten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 12 => \n array (\n 'id' => 1513,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'welcome',\n 'value' => 'Willkommen :name! Schön, dass Du da bist!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Willkommen :name! Schön, dass Du da bist!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 13 => \n array (\n 'id' => 1514,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'write_teaser',\n 'value' => 'Schreibe etwas...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Schreibe etwas...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 14 => \n array (\n 'id' => 1515,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_email',\n 'key' => 'mailbox_id',\n 'value' => 'Absender E-Mail-Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Absender E-Mail-Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 15 => \n array (\n 'id' => 1516,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_email',\n 'key' => 'mailing_list',\n 'value' => 'E-Mail Verteiler',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail Verteiler',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 16 => \n array (\n 'id' => 1517,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_email',\n 'key' => 'mode',\n 'value' => 'Wie soll die Nachricht versendet werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Wie soll die Nachricht versendet werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 17 => \n array (\n 'id' => 1518,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_email',\n 'key' => 'personal_styling',\n 'value' => 'Persönliche Anrede',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Persönliche Anrede',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 18 => \n array (\n 'id' => 1519,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_email',\n 'key' => 'personal_styling_desc',\n 'value' => 'Um die Mail persönlicher zu gestalten kannst Du <strong>{NAME}</strong> anstelle des Namens einfügen und <strong>{ANREDE}</strong> für die Anrede.<p>{ANREDE} {NAME} ergibt z.<span style=\"white-space:nowrap\"> </span>B. Lieber Peter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Um die Mail persönlicher zu gestalten kannst Du <strong>{NAME}</strong> anstelle des Namens einfügen und <strong>{ANREDE}</strong> für die Anrede.<p>{ANREDE} {NAME} ergibt z.<span style=\"white-space:nowrap\"> </span>B. Lieber Peter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 19 => \n array (\n 'id' => 1520,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_email',\n 'key' => 'recip_choosemanual',\n 'value' => 'Eine E-Mail-Adresse pro Zeile, Name nach Semikolon (z.<span style=\"white-space:nowrap\">&thinsp;</span>B. bli@blubb.de;Peter)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Eine E-Mail-Adresse pro Zeile, Name nach Semikolon (z.<span style=\"white-space:nowrap\">&thinsp;</span>B. bli@blubb.de;Peter)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 20 => \n array (\n 'id' => 1521,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_email',\n 'key' => 'send_as_email',\n 'value' => 'Als E-Mail versenden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Als E-Mail versenden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 21 => \n array (\n 'id' => 1522,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_email',\n 'key' => 'send_as_pm',\n 'value' => 'Als interne Nachricht versenden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Als interne Nachricht versenden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 22 => \n array (\n 'id' => 1523,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_email',\n 'key' => 'shure',\n 'value' => 'Alles gechecked? Soll die E-Mail an alle foodsaver gesendet werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alles gechecked? Soll die E-Mail an alle foodsaver gesendet werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 23 => \n array (\n 'id' => 1524,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_email',\n 'key' => 'testemail',\n 'value' => 'Test E-Mail-Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Test E-Mail-Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 24 => \n array (\n 'id' => 1525,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_event',\n 'key' => 'dateend',\n 'value' => 'Enddatum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Enddatum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 25 => \n array (\n 'id' => 1526,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_event',\n 'key' => 'desc_desc',\n 'value' => 'Was ist das für ein Event?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Was ist das für ein Event?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 26 => \n array (\n 'id' => 1527,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_event',\n 'key' => 'description',\n 'value' => 'Beschreibung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Beschreibung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 27 => \n array (\n 'id' => 1528,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_event',\n 'key' => 'event_options',\n 'value' => 'Event-Optionen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Event-Optionen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 28 => \n array (\n 'id' => 1529,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_event',\n 'key' => 'location_name',\n 'value' => 'Veranstaltungsort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Veranstaltungsort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 29 => \n array (\n 'id' => 1530,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_event',\n 'key' => 'mumble_room',\n 'value' => 'In welchem mumble Konferenzraum treffen wir uns?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'In welchem mumble Konferenzraum treffen wir uns?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 30 => \n array (\n 'id' => 1531,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_event',\n 'key' => 'new_event',\n 'value' => 'Neue/n Termin/Veranstaltung eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue/n Termin/Veranstaltung eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 31 => \n array (\n 'id' => 1532,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_event',\n 'key' => 'no_events_posted',\n 'value' => 'Noch keine Events vorhanden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Noch keine Events vorhanden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 32 => \n array (\n 'id' => 1533,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_event',\n 'key' => 'offline',\n 'value' => 'Ganz normal im echten Leben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ganz normal im echten Leben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 33 => \n array (\n 'id' => 1534,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_event',\n 'key' => 'online',\n 'value' => 'Multilokal auf mumble.lebensmittelretten.de',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Multilokal auf mumble.lebensmittelretten.de',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 34 => \n array (\n 'id' => 1535,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_event',\n 'key' => 'online_type',\n 'value' => 'Findet das Event offline oder online auf unserem Mumbleserver statt?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Findet das Event offline oder online auf unserem Mumbleserver statt?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 35 => \n array (\n 'id' => 1536,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'add_fairteiler',\n 'value' => 'Fair-Teiler eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 36 => \n array (\n 'id' => 1537,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'attach_image',\n 'value' => 'Bild anhängen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bild anhängen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 37 => \n array (\n 'id' => 1538,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'back',\n 'value' => 'zurück',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zurück',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 38 => \n array (\n 'id' => 1539,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'bezirk_chooser',\n 'value' => 'Fair-Teiler in Deinen Bezirken',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler in Deinen Bezirken',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 39 => \n array (\n 'id' => 1540,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'bezirk_id',\n 'value' => 'In welchem Bezirk ist der Fair-Teiler?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'In welchem Bezirk ist der Fair-Teiler?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 40 => \n array (\n 'id' => 1541,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'bfoodsaver',\n 'value' => 'Verantwortliche Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verantwortliche Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 41 => \n array (\n 'id' => 1542,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'delete',\n 'value' => 'Fair-Teiler löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 42 => \n array (\n 'id' => 1543,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'delete_success',\n 'value' => 'Fair-Teiler wurde gelöscht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler wurde gelöscht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 43 => \n array (\n 'id' => 1544,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'delete_sure',\n 'value' => 'Möchtest Du wirklich den Fair-Teiler :var löschen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Möchtest Du wirklich den Fair-Teiler :var löschen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 44 => \n array (\n 'id' => 1545,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'desc_desc',\n 'value' => 'Schreibe hier ein paar grundsätzliche Infos über den Fair-Teiler rein, vor allem wann er Zugänglich / geöffnet ist',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Schreibe hier ein paar grundsätzliche Infos über den Fair-Teiler rein, vor allem wann er Zugänglich / geöffnet ist',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 45 => \n array (\n 'id' => 1546,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'edit',\n 'value' => 'Fair-Teiler bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 46 => \n array (\n 'id' => 1547,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'edit_fairteiler_name',\n 'value' => 'Fair-Teiler \":var\" bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler \":var\" bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 47 => \n array (\n 'id' => 1548,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'fairteiler',\n 'value' => 'Fair-Teiler',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 48 => \n array (\n 'id' => 1549,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'fairteiler_add_fail',\n 'value' => 'Fair-Teiler konnte nicht gespeichet werden, hast Du alles richtig ausgefüllt?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler konnte nicht gespeichet werden, hast Du alles richtig ausgefüllt?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 49 => \n array (\n 'id' => 1550,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'fairteiler_add_success',\n 'value' => 'Fair-Teiler wurde erfolgreich eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler wurde erfolgreich eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 50 => \n array (\n 'id' => 1551,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'fairteiler_edit_success',\n 'value' => 'Fair-Teiler wurde erfolgreich bearbeitet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler wurde erfolgreich bearbeitet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 51 => \n array (\n 'id' => 1552,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'fairteiler_prepare_success',\n 'value' => 'Fair-Teiler wurde vorgeschlagen, ein Botschafter muss jetzt noch Deinen Vorschlag bestätigen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler wurde vorgeschlagen, ein Botschafter muss jetzt noch Deinen Vorschlag bestätigen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 52 => \n array (\n 'id' => 1553,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'follow',\n 'value' => 'Diesem Fair-Teiler folgen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Diesem Fair-Teiler folgen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 53 => \n array (\n 'id' => 1554,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'follower',\n 'value' => 'Follower',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Follower',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 54 => \n array (\n 'id' => 1555,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'infotype',\n 'value' => 'Benachrichtigung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Benachrichtigung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 55 => \n array (\n 'id' => 1556,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'infotype_alert',\n 'value' => 'nur über interne Info-Meldungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'nur über interne Info-Meldungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 56 => \n array (\n 'id' => 1557,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'infotype_desc',\n 'value' => 'Wie möchtest Du über Updates wie Essenslieferungen informiert werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Wie möchtest Du über Updates wie Essenslieferungen informiert werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 57 => \n array (\n 'id' => 1558,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'infotype_email',\n 'value' => 'über eine E-Mail Benachrichtigung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'über eine E-Mail Benachrichtigung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 58 => \n array (\n 'id' => 1559,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'infotype_title',\n 'value' => ':var folgen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => ':var folgen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 59 => \n array (\n 'id' => 1560,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'list_fairteiler',\n 'value' => 'Alle Fair-Teiler in :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Fair-Teiler in :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 60 => \n array (\n 'id' => 1561,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'new_fairteiler',\n 'value' => 'Neuer Fair-Teiler',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuer Fair-Teiler',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 61 => \n array (\n 'id' => 1562,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'new_fairteiler_in',\n 'value' => 'Neuer Fair-Teiler in :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuer Fair-Teiler in :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 62 => \n array (\n 'id' => 1563,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'no_fairteiler_available',\n 'value' => 'Noch keine Fair-Teiler eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Noch keine Fair-Teiler eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 63 => \n array (\n 'id' => 1564,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'no_more_follow',\n 'value' => 'Fair-Teiler nicht mehr folgen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler nicht mehr folgen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 64 => \n array (\n 'id' => 1565,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'ort',\n 'value' => 'Stadt/Gemeinde',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Stadt/Gemeinde',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 65 => \n array (\n 'id' => 1566,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'select_bezirk',\n 'value' => 'Bezirk auswählen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bezirk auswählen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 66 => \n array (\n 'id' => 1567,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'write_teaser',\n 'value' => 'Nachricht schreiben...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachricht schreiben...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 67 => \n array (\n 'id' => 1568,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'your_fairteiler',\n 'value' => 'Fair-Teiler in Deinen Bezirken',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler in Deinen Bezirken',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 68 => \n array (\n 'id' => 1569,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_faq',\n 'key' => 'answer',\n 'value' => 'Antwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Antwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 69 => \n array (\n 'id' => 1570,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_faq',\n 'key' => 'bread_edit_faq',\n 'value' => 'FAQ bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'FAQ bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 70 => \n array (\n 'id' => 1571,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_faq',\n 'key' => 'bread_faq',\n 'value' => 'Alle FAQ\\'s',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle FAQ\\'s',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 71 => \n array (\n 'id' => 1572,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_faq',\n 'key' => 'bread_new_faq',\n 'value' => 'neue FAQ eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neue FAQ eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 72 => \n array (\n 'id' => 1573,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_faq',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 73 => \n array (\n 'id' => 1574,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_faq',\n 'key' => 'faq_add_success',\n 'value' => 'Frage wurde gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Frage wurde gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 74 => \n array (\n 'id' => 1575,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_faq',\n 'key' => 'faq_bread',\n 'value' => 'Alle FAQ\\'s',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle FAQ\\'s',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 75 => \n array (\n 'id' => 1576,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_faq',\n 'key' => 'faq_edit_success',\n 'value' => 'FAQ wurde bearbeitet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'FAQ wurde bearbeitet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 76 => \n array (\n 'id' => 1577,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_faq',\n 'key' => 'faq_empty',\n 'value' => 'Bisher wurde keine FAQ eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher wurde keine FAQ eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 77 => \n array (\n 'id' => 1578,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_faq',\n 'key' => 'faq_kategorie_id',\n 'value' => 'FAQ Kategorie',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'FAQ Kategorie',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 78 => \n array (\n 'id' => 1579,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_faq',\n 'key' => 'name',\n 'value' => 'Frage',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Frage',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 79 => \n array (\n 'id' => 1580,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_faq',\n 'key' => 'neu_faq',\n 'value' => 'Neue FAQ eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue FAQ eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 80 => \n array (\n 'id' => 1581,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'abholen_id',\n 'value' => 'abholen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'abholen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 81 => \n array (\n 'id' => 1582,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'abholen_und_kuehlen_id',\n 'value' => 'abholen_und_kuehlen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'abholen_und_kuehlen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 82 => \n array (\n 'id' => 1583,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'about_me',\n 'value' => 'about_me',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'about_me',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 83 => \n array (\n 'id' => 1584,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'admin',\n 'value' => 'admin',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'admin',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 84 => \n array (\n 'id' => 1585,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'aktivbeifoodsharing_id',\n 'value' => 'aktivbeifoodsharing',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'aktivbeifoodsharing',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 85 => \n array (\n 'id' => 1586,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'anbau',\n 'value' => 'anbau',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'anbau',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 86 => \n array (\n 'id' => 1587,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'anmeldedatum',\n 'value' => 'anmeldedatum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'anmeldedatum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 87 => \n array (\n 'id' => 1588,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'bezirk_id',\n 'value' => 'bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 88 => \n array (\n 'id' => 1589,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'bread_edit_foodsaver',\n 'value' => 'Foodsaver bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 89 => \n array (\n 'id' => 1590,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'bread_foodsaver',\n 'value' => 'Alle Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 90 => \n array (\n 'id' => 1591,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'bread_new_foodsaver',\n 'value' => 'neuen Foodsaver eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neuen Foodsaver eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 91 => \n array (\n 'id' => 1592,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'containert_id',\n 'value' => 'containert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'containert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 92 => \n array (\n 'id' => 1593,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'datenschutz',\n 'value' => 'datenschutz',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'datenschutz',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 93 => \n array (\n 'id' => 1594,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'delete_account',\n 'value' => 'Account löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Account löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 94 => \n array (\n 'id' => 1595,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'delete_account_confirm_bt',\n 'value' => 'Ja, Account jetzt löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ja, Account jetzt löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 95 => \n array (\n 'id' => 1596,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'delete_account_confirm_msg',\n 'value' => 'Du bist dabei Diesen Account zu löschen, bist Du Dir ganz sicher?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du bist dabei Diesen Account zu löschen, bist Du Dir ganz sicher?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 96 => \n array (\n 'id' => 1597,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'delete_account_confirm_title',\n 'value' => 'Account wirklich löschen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Account wirklich löschen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 97 => \n array (\n 'id' => 1598,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'delete_now',\n 'value' => 'Account jetzt löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Account jetzt löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 98 => \n array (\n 'id' => 1599,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gelöscht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich unwideruflich gelöscht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 99 => \n array (\n 'id' => 1600,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'edit_photo',\n 'value' => 'Foto bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foto bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 100 => \n array (\n 'id' => 1601,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'fleisch_abholen_id',\n 'value' => 'fleisch_abholen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'fleisch_abholen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 101 => \n array (\n 'id' => 1602,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'foodsaver_bread',\n 'value' => 'Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 102 => \n array (\n 'id' => 1603,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'foodsaver_deleted',\n 'value' => 'Foodsaver gelöscht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver gelöscht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 103 => \n array (\n 'id' => 1604,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'foodsaver_empty',\n 'value' => 'Bisher wurde kein Foodsaver eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher wurde kein Foodsaver eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 104 => \n array (\n 'id' => 1605,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'foodsavertyp_id',\n 'value' => 'foodsavertyp',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'foodsavertyp',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 105 => \n array (\n 'id' => 1606,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'fs_id',\n 'value' => 'Foodsharing-ID',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsharing-ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 106 => \n array (\n 'id' => 1607,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'fs_international',\n 'value' => 'fs_international',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'fs_international',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 107 => \n array (\n 'id' => 1608,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'fs_orga',\n 'value' => 'fs_orga',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'fs_orga',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 108 => \n array (\n 'id' => 1609,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'geb_datum',\n 'value' => 'Geburtsdatum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Geburtsdatum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 109 => \n array (\n 'id' => 1610,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'haftungsausschluss',\n 'value' => 'haftungsausschluss',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'haftungsausschluss',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 110 => \n array (\n 'id' => 1611,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'hotline_id',\n 'value' => 'hotline',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'hotline',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 111 => \n array (\n 'id' => 1612,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'kommentar',\n 'value' => 'kommentar',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'kommentar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 112 => \n array (\n 'id' => 1613,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'kontakte_betriebe',\n 'value' => 'kontakte_betriebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'kontakte_betriebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 113 => \n array (\n 'id' => 1614,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'land_id',\n 'value' => 'land',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'land',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 114 => \n array (\n 'id' => 1615,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'last_login',\n 'value' => 'Letzter Login',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Letzter Login',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 115 => \n array (\n 'id' => 1616,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'legal_gerettet',\n 'value' => 'legal_gerettet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'legal_gerettet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 116 => \n array (\n 'id' => 1617,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'motivation',\n 'value' => 'motivation',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'motivation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 117 => \n array (\n 'id' => 1618,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'neu_foodsaver',\n 'value' => 'Neuen Foodsaver eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuen Foodsaver eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 118 => \n array (\n 'id' => 1619,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'orgateam',\n 'value' => 'Bundesweite Orga',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bundesweite Orga',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 119 => \n array (\n 'id' => 1620,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'passwd',\n 'value' => 'Passwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Passwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 120 => \n array (\n 'id' => 1621,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'pfand_id',\n 'value' => 'pfand',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'pfand',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 121 => \n array (\n 'id' => 1622,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'plz_id',\n 'value' => 'Postleitzahl',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Postleitzahl',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 122 => \n array (\n 'id' => 1623,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'posible_restore_account',\n 'value' => 'Der Account kann nach dem löschen widerhergestellt werden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Der Account kann nach dem löschen widerhergestellt werden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 123 => \n array (\n 'id' => 1624,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'position',\n 'value' => 'Position bei foodsharing (öffentlich)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Position bei foodsharing (öffentlich)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 124 => \n array (\n 'id' => 1625,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'promotionarbeit_id',\n 'value' => 'promotionarbeit',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'promotionarbeit',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 125 => \n array (\n 'id' => 1626,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'radius',\n 'value' => 'radius',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'radius',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 126 => \n array (\n 'id' => 1627,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'raumlichkeit',\n 'value' => 'raumlichkeit',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'raumlichkeit',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 127 => \n array (\n 'id' => 1628,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'search_name',\n 'value' => 'nach foodsaver suchen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'nach foodsaver suchen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 128 => \n array (\n 'id' => 1629,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'talente',\n 'value' => 'talente',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'talente',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 129 => \n array (\n 'id' => 1630,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'timetable',\n 'value' => 'timetable',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'timetable',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 130 => \n array (\n 'id' => 1631,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'upload_new_photo',\n 'value' => 'neues Foto hochladen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neues Foto hochladen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 131 => \n array (\n 'id' => 1632,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'wohndauer_id',\n 'value' => 'wohndauer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'wohndauer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 132 => \n array (\n 'id' => 1633,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'wohnung_id',\n 'value' => 'wohnung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'wohnung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 133 => \n array (\n 'id' => 1634,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'zeitaufwand_id',\n 'value' => 'zeitaufwand',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zeitaufwand',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 134 => \n array (\n 'id' => 1635,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'zuverlassig_id',\n 'value' => 'zuverlassig',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zuverlassig',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 135 => \n array (\n 'id' => 1636,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'add_fetchtime',\n 'value' => 'Abholzeiten eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholzeiten eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 136 => \n array (\n 'id' => 1637,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'add_me_here',\n 'value' => 'Mich hier eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mich hier eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 137 => \n array (\n 'id' => 1638,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'add_new',\n 'value' => 'Neuen Betrieb eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuen Betrieb eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 138 => \n array (\n 'id' => 1639,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'already_in_bezirk',\n 'value' => 'In diesem Bezirk bist Du schon aktiv',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'In diesem Bezirk bist Du schon aktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 139 => \n array (\n 'id' => 1640,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'ansprechpartner',\n 'value' => 'Ansprechpartner',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ansprechpartner',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 140 => \n array (\n 'id' => 1641,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'attach_image',\n 'value' => 'Bild anhängen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bild anhängen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 141 => \n array (\n 'id' => 1642,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'besonderheiten',\n 'value' => 'Besonderheiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Besonderheiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 142 => \n array (\n 'id' => 1643,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_add_success',\n 'value' => 'Lebensmittel-Spender Betrieb wurde gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Lebensmittel-Spender Betrieb wurde gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 143 => \n array (\n 'id' => 1644,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_bread',\n 'value' => 'Spender-Betriebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Spender-Betriebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 144 => \n array (\n 'id' => 1645,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_edit_success',\n 'value' => 'Änderungen wurden gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Änderungen wurden gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 145 => \n array (\n 'id' => 1646,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_empty',\n 'value' => 'Bisher wurde kein Betrieb eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher wurde kein Betrieb eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 146 => \n array (\n 'id' => 1647,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_kategorie_id',\n 'value' => 'Kategorie',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Kategorie',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 147 => \n array (\n 'id' => 1648,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_sign_out',\n 'value' => 'Mich hier austragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mich hier austragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 148 => \n array (\n 'id' => 1649,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_status_id',\n 'value' => 'Status',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 149 => \n array (\n 'id' => 1650,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'bezirk_id',\n 'value' => 'Bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 150 => \n array (\n 'id' => 1651,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'bezirk_request_successfull',\n 'value' => 'Die Anfrage wurde erfolgreich versendet, Du wirst benachrichtigt sobald Du freigeschaltet bist.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Die Anfrage wurde erfolgreich versendet, Du wirst benachrichtigt sobald Du freigeschaltet bist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 151 => \n array (\n 'id' => 1652,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'bread_betrieb',\n 'value' => 'Alle Betriebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Betriebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 152 => \n array (\n 'id' => 1653,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'bread_edit_betrieb',\n 'value' => 'Betrieb bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 153 => \n array (\n 'id' => 1654,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'bread_new_betrieb',\n 'value' => 'neuen Betrieb eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neuen Betrieb eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 154 => \n array (\n 'id' => 1655,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'change_fetcher',\n 'value' => 'Abholer ändern',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholer ändern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 155 => \n array (\n 'id' => 1656,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'change_status',\n 'value' => 'Status ändern',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Status ändern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 156 => \n array (\n 'id' => 1657,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'change_times',\n 'value' => 'Abholzeiten ändern',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholzeiten ändern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 157 => \n array (\n 'id' => 1658,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'choose_fetcher',\n 'value' => 'Abholer auswählen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholer auswählen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 158 => \n array (\n 'id' => 1659,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'click_to_confirm',\n 'value' => 'Unbestätigte Foodsaver kannst Du durch einen Klick auf das kleine Foto aktivieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Unbestätigte Foodsaver kannst Du durch einen Klick auf das kleine Foto aktivieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 159 => \n array (\n 'id' => 1660,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'date_add_successful',\n 'value' => '<p><b>Termine wurden erfolgreich hinzugefügt</b><br>Müssen nur noch vom Filialverantwortlichen bestätigt werden</p>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<p><b>Termine wurden erfolgreich hinzugefügt</b><br>Müssen nur noch vom Filialverantwortlichen bestätigt werden</p>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 160 => \n array (\n 'id' => 1661,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'datetime',\n 'value' => 'Zeitpunkt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Zeitpunkt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 161 => \n array (\n 'id' => 1662,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'del_and_send',\n 'value' => 'Termin löschen und Nachricht senden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Termin löschen und Nachricht senden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 162 => \n array (\n 'id' => 1663,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'del_date_for',\n 'value' => 'Austragen für',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Austragen für',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 163 => \n array (\n 'id' => 1664,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gelöscht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich unwideruflich gelöscht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 164 => \n array (\n 'id' => 1665,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'edit_betrieb',\n 'value' => 'Betrieb bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 165 => \n array (\n 'id' => 1666,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'edit_fetchtime',\n 'value' => 'Abholzeiten bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholzeiten bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 166 => \n array (\n 'id' => 1667,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'edit_team',\n 'value' => 'Team bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Team bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 167 => \n array (\n 'id' => 1668,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'fax',\n 'value' => 'Fax',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fax',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 168 => \n array (\n 'id' => 1669,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'fetch_history',\n 'value' => 'Abholungshistorie',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholungshistorie',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 169 => \n array (\n 'id' => 1670,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'fetcher',\n 'value' => 'Abholer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 170 => \n array (\n 'id' => 1671,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'fetcher_count',\n 'value' => 'Anzahl Abholer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Anzahl Abholer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 171 => \n array (\n 'id' => 1672,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'find_representation',\n 'value' => 'Vertretung finden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Vertretung finden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 172 => \n array (\n 'id' => 1673,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'have_backup',\n 'value' => 'Ich habe schon eine Vertretung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ich habe schon eine Vertretung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 173 => \n array (\n 'id' => 1674,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'hsnr',\n 'value' => 'Hausnummer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Hausnummer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 174 => \n array (\n 'id' => 1675,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'i_do',\n 'value' => 'Mach Ich!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mach Ich!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 175 => \n array (\n 'id' => 1676,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'info',\n 'value' => 'Infos',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Infos',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 176 => \n array (\n 'id' => 1677,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'kette_id',\n 'value' => 'Betriebs-Kette',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebs-Kette',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 177 => \n array (\n 'id' => 1678,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'max_3_leader',\n 'value' => 'Es darf maximal 3 Verantwortliche für diese Filiale geben.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es darf maximal 3 Verantwortliche für diese Filiale geben.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 178 => \n array (\n 'id' => 1679,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'menge',\n 'value' => 'Abholmenge im Schnitt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholmenge im Schnitt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 179 => \n array (\n 'id' => 1680,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'more_stores',\n 'value' => 'Weitere Betriebe aus :name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Weitere Betriebe aus :name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 180 => \n array (\n 'id' => 1681,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'msg_to_team',\n 'value' => 'Team benachrichtigen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Team benachrichtigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 181 => \n array (\n 'id' => 1682,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'neu_betrieb',\n 'value' => 'Neuen Betrieb eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuen Betrieb eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 182 => \n array (\n 'id' => 1683,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'next_fetch_dates',\n 'value' => 'Nächste Abholtermine',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nächste Abholtermine',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 183 => \n array (\n 'id' => 1684,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'no_fetchtime',\n 'value' => 'Für :name sind noch keine Abholzeiten eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Für :name sind noch keine Abholzeiten eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 184 => \n array (\n 'id' => 1685,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_confirmed',\n 'value' => ':name ist noch nicht bestätigt!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => ':name ist noch nicht bestätigt!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 185 => \n array (\n 'id' => 1686,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_fetching',\n 'value' => 'Du holst noch keine Lebensmittel ab.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du holst noch keine Lebensmittel ab.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 186 => \n array (\n 'id' => 1687,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_in_team',\n 'value' => 'Du bist noch nicht im Team von diesem Betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du bist noch nicht im Team von diesem Betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 187 => \n array (\n 'id' => 1688,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_ready',\n 'value' => 'Betrieb ist noch nicht bereit zu spenden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb ist noch nicht bereit zu spenden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 188 => \n array (\n 'id' => 1689,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_responsible_but_bot',\n 'value' => 'Du bist nicht verantwortlich für diesen Betrieb, hast dennoch alle Rechte, weil Du Botschafter bist.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du bist nicht verantwortlich für diesen Betrieb, hast dennoch alle Rechte, weil Du Botschafter bist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 189 => \n array (\n 'id' => 1690,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_responsible_but_orga',\n 'value' => 'Du bist nicht verantwortlich für diesen Betrieb, hast dennoch alle Rechte, weil Du im Bundesweiten Orgateam bist.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du bist nicht verantwortlich für diesen Betrieb, hast dennoch alle Rechte, weil Du im Bundesweiten Orgateam bist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 190 => \n array (\n 'id' => 1691,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_verified',\n 'value' => 'Dein Account wurde noch nicht von einem Botschafter verifiziert. Erst dann kannst Du Dich zum Essenabholen eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dein Account wurde noch nicht von einem Botschafter verifiziert. Erst dann kannst Du Dich zum Essenabholen eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 191 => \n array (\n 'id' => 1692,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'ort',\n 'value' => 'Stadt/Gemeinde',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Stadt/Gemeinde',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 192 => \n array (\n 'id' => 1693,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'plz_id',\n 'value' => 'plz',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'plz',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 193 => \n array (\n 'id' => 1694,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'position_search',\n 'value' => 'Positionssuche',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Positionssuche',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 194 => \n array (\n 'id' => 1695,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'pubbtime_1',\n 'value' => 'morgens',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'morgens',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 195 => \n array (\n 'id' => 1696,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'pubbtime_2',\n 'value' => 'mittags/nachmittags',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'mittags/nachmittags',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 196 => \n array (\n 'id' => 1697,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'pubbtime_3',\n 'value' => 'abends',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'abends',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 197 => \n array (\n 'id' => 1698,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'pubbtime_4',\n 'value' => 'nachts',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'nachts',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 198 => \n array (\n 'id' => 1699,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'reportmessage',\n 'value' => 'Beschreibe den Vorfall noch etwas genauer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Beschreibe den Vorfall noch etwas genauer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 199 => \n array (\n 'id' => 1700,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'reportreason',\n 'value' => 'Aus welchem grun möchtest Du den Foodsaver melden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aus welchem grun möchtest Du den Foodsaver melden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 200 => \n array (\n 'id' => 1701,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'request_already_send',\n 'value' => 'An diesen Bezirk hast Du schon eine Anfrage gesendet.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'An diesen Bezirk hast Du schon eine Anfrage gesendet.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 201 => \n array (\n 'id' => 1702,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'responsible_foodsaver',\n 'value' => 'Verantwortliche Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verantwortliche Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 202 => \n array (\n 'id' => 1703,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'shure_date',\n 'value' => 'Möchtest Du Dich wirklich verbindlich für <strong>:label</strong> eintragen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Möchtest Du Dich wirklich verbindlich für <strong>:label</strong> eintragen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 203 => \n array (\n 'id' => 1704,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'shure_of_backup',\n 'value' => 'Hast Du eine Vertretung? Unsere Verlässlichkeit ist sehr wichtig!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Hast Du eine Vertretung? Unsere Verlässlichkeit ist sehr wichtig!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 204 => \n array (\n 'id' => 1705,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'shure_range_date',\n 'value' => '<strong>Verbindlich :labels</strong> im gewählten Zeitraum abholen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Verbindlich :labels</strong> im gewählten Zeitraum abholen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 205 => \n array (\n 'id' => 1706,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'signout_sure',\n 'value' => '<strong>Möchtest Du Dich austragen?</strong><p>Sämtliche Abholtermine werden gelöscht.</p>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Möchtest Du Dich austragen?</strong><p>Sämtliche Abholtermine werden gelöscht.</p>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 206 => \n array (\n 'id' => 1707,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'signout_sure_title',\n 'value' => 'Bist Du Dir sicher?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bist Du Dir sicher?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 207 => \n array (\n 'id' => 1708,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'stat_fetchcount',\n 'value' => 'Letzte Abholung am :date',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Letzte Abholung am :date',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 208 => \n array (\n 'id' => 1709,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'stat_fetchcount_none',\n 'value' => 'Noch keine Lebensmittel abgeholt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Noch keine Lebensmittel abgeholt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 209 => \n array (\n 'id' => 1710,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_change_at',\n 'value' => 'Statusänderung am :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Statusänderung am :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 210 => \n array (\n 'id' => 1711,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_date',\n 'value' => 'letzte Statusänderung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'letzte Statusänderung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 211 => \n array (\n 'id' => 1712,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_msg_1',\n 'value' => 'Es besteht noch kein Kontakt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es besteht noch kein Kontakt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 212 => \n array (\n 'id' => 1713,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_msg_2',\n 'value' => 'Verhandlungen laufen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verhandlungen laufen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 213 => \n array (\n 'id' => 1714,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_msg_3',\n 'value' => 'Betrieb ist bereit zu spenden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb ist bereit zu spenden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 214 => \n array (\n 'id' => 1715,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_msg_4',\n 'value' => 'Betrieb will nicht kooperieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb will nicht kooperieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 215 => \n array (\n 'id' => 1716,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_msg_5',\n 'value' => 'Betrieb spendet bereits',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb spendet bereits',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 216 => \n array (\n 'id' => 1717,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_msg_6',\n 'value' => 'spendet an Tafel etc. & wirft nichts weg',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'spendet an Tafel etc. & wirft nichts weg',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 217 => \n array (\n 'id' => 1718,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'str',\n 'value' => 'Straße',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Straße',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 218 => \n array (\n 'id' => 1719,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'team_msg',\n 'value' => 'Nachricht ans ganze Team',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachricht ans ganze Team',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 219 => \n array (\n 'id' => 1720,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'team_not_empty',\n 'value' => 'Das Team darf nicht leer sein.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Das Team darf nicht leer sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 220 => \n array (\n 'id' => 1721,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'team_status',\n 'value' => 'Teamstatus',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Teamstatus',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 221 => \n array (\n 'id' => 1722,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'team_status_0',\n 'value' => 'Dieses Team ist voll. Daher werden z.<span style=\"white-space:nowrap\">&thinsp;</span>Z. keine weiteren Helfer gesucht.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dieses Team ist voll. Daher werden z.<span style=\"white-space:nowrap\">&thinsp;</span>Z. keine weiteren Helfer gesucht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 222 => \n array (\n 'id' => 1723,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'team_status_1',\n 'value' => '<strong>Es werden noch Helfer gesucht</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Es werden noch Helfer gesucht</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 223 => \n array (\n 'id' => 1724,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'team_status_2',\n 'value' => '<strong>Es werden dringend noch Helfer gesucht</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Es werden dringend noch Helfer gesucht</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 224 => \n array (\n 'id' => 1725,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'tpl_msg_to_team',\n 'value' => 'Liebes :BETRIEB Team, \n\nam :DATE kann ich leider doch keine Lebensmittel abholen. Daher suche ich dringend eine Vertretung. Kannst Du für mich einspringen?\n\nLiebe Grüße',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Liebes :BETRIEB Team, \n\nam :DATE kann ich leider doch keine Lebensmittel abholen. Daher suche ich dringend eine Vertretung. Kannst Du für mich einspringen?\n\nLiebe Grüße',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 225 => \n array (\n 'id' => 1726,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'verantwortlicher',\n 'value' => 'Verantwortliche Mitglieder',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verantwortliche Mitglieder',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 226 => \n array (\n 'id' => 1727,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'verantwortlicher_must_be',\n 'value' => 'Es muss mindestens einen Verantworklichen für jeden Betrieb geben!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es muss mindestens einen Verantworklichen für jeden Betrieb geben!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 227 => \n array (\n 'id' => 1728,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'wait_for_confirm',\n 'value' => '<strong>Du bist vorgemerkt</strong><br>der Filalverantwortliche muss jetzt nur noch Deine Anfrage bestätigen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Du bist vorgemerkt</strong><br>der Filalverantwortliche muss jetzt nur noch Deine Anfrage bestätigen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 228 => \n array (\n 'id' => 1729,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'write_teaser',\n 'value' => 'Schreibe etwas...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Schreibe etwas...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 229 => \n array (\n 'id' => 1730,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'you_fetcher',\n 'value' => 'Betriebe bei denen Du Lebensmittel abholst',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebe bei denen Du Lebensmittel abholst',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 230 => \n array (\n 'id' => 1731,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'you_responsible',\n 'value' => 'Betriebe für die Du verantwortlich bist',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebe für die Du verantwortlich bist',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 231 => \n array (\n 'id' => 1732,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'your_store',\n 'value' => 'Für Diesen Betrieb bist Du verantwortlich',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Für Diesen Betrieb bist Du verantwortlich',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 232 => \n array (\n 'id' => 1733,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'zeitraum',\n 'value' => 'Zeitraum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Zeitraum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 233 => \n array (\n 'id' => 1734,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_groups',\n 'key' => 'apply_type',\n 'value' => 'Wer kann sich für diese Gruppe eintragen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Wer kann sich für diese Gruppe eintragen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 234 => \n array (\n 'id' => 1735,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_groups',\n 'key' => 'banana_count',\n 'value' => 'Wie viele Vertrauensbananen braucht ein Mitglied?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Wie viele Vertrauensbananen braucht ein Mitglied?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 235 => \n array (\n 'id' => 1736,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_groups',\n 'key' => 'fetch_count',\n 'value' => 'Wie viele Abholungen sollte ein Bewerber gemacht haben?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Wie viele Abholungen sollte ein Bewerber gemacht haben?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 236 => \n array (\n 'id' => 1737,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_groups',\n 'key' => 'leader',\n 'value' => 'Gruppen-Admins',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Gruppen-Admins',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 237 => \n array (\n 'id' => 1738,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_groups',\n 'key' => 'member',\n 'value' => 'Mitglieder',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mitglieder',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 238 => \n array (\n 'id' => 1739,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_groups',\n 'key' => 'report_num',\n 'value' => 'Dürfen sich auch Foodsaver mit Verstoßmeldungen bewerben?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dürfen sich auch Foodsaver mit Verstoßmeldungen bewerben?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 239 => \n array (\n 'id' => 1740,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_groups',\n 'key' => 'week_num',\n 'value' => 'Seit wie vielen Wochen sollte ein Bewerber schon dabei sein?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Seit wie vielen Wochen sollte ein Bewerber schon dabei sein?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 240 => \n array (\n 'id' => 1741,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_index',\n 'key' => 'fairteiler',\n 'value' => 'Neuste Fair-Teiler Posts',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuste Fair-Teiler Posts',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 241 => \n array (\n 'id' => 1742,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_index',\n 'key' => 'more_baskets',\n 'value' => 'Alle Essenskörbe auf der Karte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Essenskörbe auf der Karte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 242 => \n array (\n 'id' => 1743,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_index',\n 'key' => 'more_fairteiler',\n 'value' => 'Alle Fair-Teiler auf der Karte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Fair-Teiler auf der Karte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 243 => \n array (\n 'id' => 1744,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_index',\n 'key' => 'new_fairteiler',\n 'value' => 'Fair-Teiler Updates',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler Updates',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 244 => \n array (\n 'id' => 1745,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_index',\n 'key' => 'new_foodbaskets',\n 'value' => 'Neuste Essenskörbe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuste Essenskörbe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 245 => \n array (\n 'id' => 1746,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_kette',\n 'key' => 'bread_edit_kette',\n 'value' => 'Kette bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Kette bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 246 => \n array (\n 'id' => 1747,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_kette',\n 'key' => 'bread_new_kette',\n 'value' => 'neue Kette eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neue Kette eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 247 => \n array (\n 'id' => 1748,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_kette',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 248 => \n array (\n 'id' => 1749,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_kette',\n 'key' => 'kette_bread',\n 'value' => 'Alle Unternehmens-Ketten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Unternehmens-Ketten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 249 => \n array (\n 'id' => 1750,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_kette',\n 'key' => 'kette_edit_success',\n 'value' => 'Änderungen wurden gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Änderungen wurden gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 250 => \n array (\n 'id' => 1751,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_kette',\n 'key' => 'kette_empty',\n 'value' => 'Bisher wurde keine Ketten eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher wurde keine Ketten eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 251 => \n array (\n 'id' => 1752,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_kette',\n 'key' => 'logo',\n 'value' => 'Logo',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Logo',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 252 => \n array (\n 'id' => 1753,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_kette',\n 'key' => 'name',\n 'value' => 'Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 253 => \n array (\n 'id' => 1754,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_kette',\n 'key' => 'neu_kette',\n 'value' => 'Neue Kette eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue Kette eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 254 => \n array (\n 'id' => 1755,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'activation_failed',\n 'value' => '<strong>Aktivierung fehlgeschlagen!</strong> Ist der eingegebene Link auch korrekt?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Aktivierung fehlgeschlagen!</strong> Ist der eingegebene Link auch korrekt?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 255 => \n array (\n 'id' => 1756,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'activation_success',\n 'value' => '<strong>Aktivierung erfolgreich!</strong> Logge Dich jetzt Mit Deiner E-Mail-Adresse und Deinem gewählten Passwort ein.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Aktivierung erfolgreich!</strong> Logge Dich jetzt Mit Deiner E-Mail-Adresse und Deinem gewählten Passwort ein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 256 => \n array (\n 'id' => 1757,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'check_mail',\n 'value' => 'Schau jetzt in Dein E-Mail-Postfach, um die Anmeldung abzuschließen!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Schau jetzt in Dein E-Mail-Postfach, um die Anmeldung abzuschließen!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 257 => \n array (\n 'id' => 1758,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'contact_info',\n 'value' => 'Kontaktinformationen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Kontaktinformationen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 258 => \n array (\n 'id' => 1759,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'error',\n 'value' => 'Es ist ein Fehler aufgetreten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es ist ein Fehler aufgetreten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 259 => \n array (\n 'id' => 1760,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'error_email',\n 'value' => 'Mit Deiner E-Mail-Adresse stimmt etwas nicht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mit Deiner E-Mail-Adresse stimmt etwas nicht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 260 => \n array (\n 'id' => 1761,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'error_image',\n 'value' => 'Dein Foto konnte nicht hochgeladen werden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dein Foto konnte nicht hochgeladen werden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 261 => \n array (\n 'id' => 1762,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'error_name',\n 'value' => 'Bitte gib einen Namen ein',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bitte gib einen Namen ein',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 262 => \n array (\n 'id' => 1763,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'error_passwd',\n 'value' => 'Dein Passwort muss mindestens 5 und darf maximal 30 Zeichen haben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dein Passwort muss mindestens 5 und darf maximal 30 Zeichen haben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 263 => \n array (\n 'id' => 1764,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'finish',\n 'value' => 'Anmeldung absenden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Anmeldung absenden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 264 => \n array (\n 'id' => 1765,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'have_read_the_legal_stuff1',\n 'value' => 'Ich habe die Datenschutzerklärung zur Kenntnis genommen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ich habe die Datenschutzerklärung zur Kenntnis genommen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 265 => \n array (\n 'id' => 1766,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'have_read_the_legal_stuff2',\n 'value' => 'Ich habe die <a href=\"http://wiki.lebensmittelretten.de/Rechtsvereinbarung\" target=\"_blank\">Rechtsvereinbarung</a> zur Kenntnis genommen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ich habe die <a href=\"http://wiki.lebensmittelretten.de/Rechtsvereinbarung\" target=\"_blank\">Rechtsvereinbarung</a> zur Kenntnis genommen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 266 => \n array (\n 'id' => 1767,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'i_am_a',\n 'value' => 'Ich bin...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ich bin...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 267 => \n array (\n 'id' => 1768,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'join_success',\n 'value' => 'Deine Anmeldung war erfolgreich!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Anmeldung war erfolgreich!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 268 => \n array (\n 'id' => 1769,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'legal_stuff',\n 'value' => 'Rechtliches',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Rechtliches',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 269 => \n array (\n 'id' => 1770,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'login_email',\n 'value' => 'Deine E-Mail-Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine E-Mail-Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 270 => \n array (\n 'id' => 1771,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'login_failed',\n 'value' => 'Diese Zugangdsdaten stimmen leider so nicht.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Diese Zugangdsdaten stimmen leider so nicht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 271 => \n array (\n 'id' => 1772,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'login_info',\n 'value' => 'Login Informationen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Login Informationen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 272 => \n array (\n 'id' => 1773,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'login_location',\n 'value' => 'Deine Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 273 => \n array (\n 'id' => 1774,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'login_name',\n 'value' => 'Dein Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dein Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 274 => \n array (\n 'id' => 1775,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'login_passwd1',\n 'value' => 'Passwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Passwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 275 => \n array (\n 'id' => 1776,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'login_passwd2',\n 'value' => 'Passwortwiederholung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Passwortwiederholung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 276 => \n array (\n 'id' => 1777,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'login_phone',\n 'value' => 'Telefonnummer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Telefonnummer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 277 => \n array (\n 'id' => 1778,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'login_phone_info',\n 'value' => 'Es kann hilfreich sein, Deine Telefonnummer mit anderen Foodsharern zu teilen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es kann hilfreich sein, Deine Telefonnummer mit anderen Foodsharern zu teilen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 278 => \n array (\n 'id' => 1779,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'login_success',\n 'value' => 'Prima! Jetzt bist Du eingeloggt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Prima! Jetzt bist Du eingeloggt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 279 => \n array (\n 'id' => 1780,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'login_surname',\n 'value' => 'Nachname',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachname',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 280 => \n array (\n 'id' => 1781,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'man',\n 'value' => 'männlich',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'männlich',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 281 => \n array (\n 'id' => 1782,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'next',\n 'value' => 'weiter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'weiter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 282 => \n array (\n 'id' => 1783,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'organisation',\n 'value' => 'Organisation',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Organisation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 283 => \n array (\n 'id' => 1784,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'other',\n 'value' => 'sonstig/anders',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'sonstig/anders',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 284 => \n array (\n 'id' => 1785,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'pass1',\n 'value' => 'Dein neues gewünschtes Passwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dein neues gewünschtes Passwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 285 => \n array (\n 'id' => 1786,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'pass2',\n 'value' => 'Passwortwiederholung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Passwortwiederholung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 286 => \n array (\n 'id' => 1787,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'peer',\n 'value' => 'Foodsharer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsharer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 287 => \n array (\n 'id' => 1788,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'prev',\n 'value' => 'zur&uuml;ck',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zur&uuml;ck',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 288 => \n array (\n 'id' => 1789,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'select_picture',\n 'value' => 'Foto ausw&auml;hlen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foto ausw&auml;hlen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 289 => \n array (\n 'id' => 1790,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'select_your_gender',\n 'value' => 'Für die Anrede...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Für die Anrede...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 290 => \n array (\n 'id' => 1791,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'upload_no_image',\n 'value' => 'Die hochgeladene Datei ist kein Foto, bitte wähle eine andere Datei.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Die hochgeladene Datei ist kein Foto, bitte wähle eine andere Datei.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 291 => \n array (\n 'id' => 1792,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'woman',\n 'value' => 'weiblich',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'weiblich',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 292 => \n array (\n 'id' => 1793,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'an',\n 'value' => 'Empfänger',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Empfänger',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 293 => \n array (\n 'id' => 1794,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'answer',\n 'value' => 'Antworten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Antworten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 294 => \n array (\n 'id' => 1795,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'attach_file',\n 'value' => 'Datei anhängen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Datei anhängen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 295 => \n array (\n 'id' => 1796,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'email_error',\n 'value' => 'Die Empfänger E-Mail Adresse ist nicht korrekt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Die Empfänger E-Mail Adresse ist nicht korrekt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 296 => \n array (\n 'id' => 1797,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'email_name',\n 'value' => 'Angezeigter Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Angezeigter Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 297 => \n array (\n 'id' => 1798,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'file_to_big',\n 'value' => 'Sorry die Datei ist zu groß',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Sorry die Datei ist zu groß',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 298 => \n array (\n 'id' => 1799,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'forward',\n 'value' => 'Weiterleiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Weiterleiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 299 => \n array (\n 'id' => 1800,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'inbox',\n 'value' => 'Posteingang',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Posteingang',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 300 => \n array (\n 'id' => 1801,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'mailbox_add_success',\n 'value' => 'Mailbox wurde erfolgreich angelegt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mailbox wurde erfolgreich angelegt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 301 => \n array (\n 'id' => 1802,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'mailbox_member',\n 'value' => 'Mailbox Benutzer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mailbox Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 302 => \n array (\n 'id' => 1803,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'mailbox_name_desc',\n 'value' => 'Nur den Namen der Mailbox eintragen, also ohne @:host',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nur den Namen der Mailbox eintragen, also ohne @:host',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 303 => \n array (\n 'id' => 1804,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'message_from',\n 'value' => 'Nachricht vom :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachricht vom :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 304 => \n array (\n 'id' => 1805,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'move_to_trash',\n 'value' => 'In die Tonne',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'In die Tonne',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 305 => \n array (\n 'id' => 1806,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'new_mailbox',\n 'value' => 'Neue Mailbox anlegen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue Mailbox anlegen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 306 => \n array (\n 'id' => 1807,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'new_message',\n 'value' => 'Neue E-Mail',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue E-Mail',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 307 => \n array (\n 'id' => 1808,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'no_message',\n 'value' => 'Noch keine Nachrichten in dieser Mailbox!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Noch keine Nachrichten in dieser Mailbox!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 308 => \n array (\n 'id' => 1809,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'original_message',\n 'value' => 'Original Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Original Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 309 => \n array (\n 'id' => 1810,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'refresh',\n 'value' => 'Aktualisieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aktualisieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 310 => \n array (\n 'id' => 1811,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'send_success',\n 'value' => 'E-Mail wurde erfolgreich versendet!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail wurde erfolgreich versendet!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 311 => \n array (\n 'id' => 1812,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'sent',\n 'value' => 'Gesendet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Gesendet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 312 => \n array (\n 'id' => 1813,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'trash',\n 'value' => 'Papierkorb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Papierkorb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 313 => \n array (\n 'id' => 1814,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'von',\n 'value' => 'Absender',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Absender',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 314 => \n array (\n 'id' => 1815,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'wrong_file',\n 'value' => 'Dieser Dateityp ist nicht erlaubt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dieser Dateityp ist nicht erlaubt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 315 => \n array (\n 'id' => 1816,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_map',\n 'key' => 'specials',\n 'value' => 'Besonderheiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Besonderheiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 316 => \n array (\n 'id' => 1817,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_map',\n 'key' => 'status',\n 'value' => 'Aktueller Status',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aktueller Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 317 => \n array (\n 'id' => 1818,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_message_tpl',\n 'key' => 'body',\n 'value' => 'Text',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Text',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 318 => \n array (\n 'id' => 1819,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_message_tpl',\n 'key' => 'bread_edit_message_tpl',\n 'value' => 'E-Mail Vorlage bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'E-Mail Vorlage bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 319 => \n array (\n 'id' => 1820,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_message_tpl',\n 'key' => 'bread_message_tpl',\n 'value' => 'Alle Vorlagen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Alle Vorlagen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 320 => \n array (\n 'id' => 1821,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_message_tpl',\n 'key' => 'bread_new_message_tpl',\n 'value' => 'neue Vorlage erstellen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'neue Vorlage erstellen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 321 => \n array (\n 'id' => 1822,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_message_tpl',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 322 => \n array (\n 'id' => 1823,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_message_tpl',\n 'key' => 'language_id',\n 'value' => 'Sprache',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Sprache',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 323 => \n array (\n 'id' => 1824,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_message_tpl',\n 'key' => 'message_tpl',\n 'value' => 'E-Mail Vorlagen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'E-Mail Vorlagen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 324 => \n array (\n 'id' => 1825,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_message_tpl',\n 'key' => 'message_tpl_add_success',\n 'value' => 'Vorlage wurde hinzugef&uuml;gt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Vorlage wurde hinzugef&uuml;gt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 325 => \n array (\n 'id' => 1826,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_message_tpl',\n 'key' => 'message_tpl_bread',\n 'value' => 'E-Mail Vorlagen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'E-Mail Vorlagen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 326 => \n array (\n 'id' => 1827,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_message_tpl',\n 'key' => 'message_tpl_edit_success',\n 'value' => 'Vorlage wurde bearbeitet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Vorlage wurde bearbeitet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 327 => \n array (\n 'id' => 1828,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_message_tpl',\n 'key' => 'message_tpl_empty',\n 'value' => 'Bisher wurden keine E-Mail Vorlagen eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bisher wurden keine E-Mail Vorlagen eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 328 => \n array (\n 'id' => 1829,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_message_tpl',\n 'key' => 'name',\n 'value' => 'Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 329 => \n array (\n 'id' => 1830,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_message_tpl',\n 'key' => 'neu_message_tpl',\n 'value' => 'Neue Vorlage eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Neue Vorlage eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 330 => \n array (\n 'id' => 1831,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_msg',\n 'key' => 'compose_body',\n 'value' => 'Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 331 => \n array (\n 'id' => 1832,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_msg',\n 'key' => 'compose_recipients',\n 'value' => 'Empfänger',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Empfänger',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 332 => \n array (\n 'id' => 1833,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_msg',\n 'key' => 'conversations',\n 'value' => 'Unterhaltungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Unterhaltungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 333 => \n array (\n 'id' => 1834,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_msg',\n 'key' => 'no_conversations',\n 'value' => 'Noch keine Unterhaltungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Noch keine Unterhaltungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 334 => \n array (\n 'id' => 1835,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_msg',\n 'key' => 'send_successfull',\n 'value' => 'Nachricht wurde erfolgreich versendet!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Nachricht wurde erfolgreich versendet!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 335 => \n array (\n 'id' => 1836,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_newarea',\n 'key' => 'order_msg',\n 'value' => 'E-Mail Benachrichtigung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'E-Mail Benachrichtigung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 336 => \n array (\n 'id' => 1837,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'click_to_unverify',\n 'value' => 'Klicken, um die Verifizierung aufzuheben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Klicken, um die Verifizierung aufzuheben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 337 => \n array (\n 'id' => 1838,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'click_to_verify',\n 'value' => 'Klicken, um :var zu verifizieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Klicken, um :var zu verifizieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 338 => \n array (\n 'id' => 1839,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'fs_id',\n 'value' => 'FS-ID',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'FS-ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 339 => \n array (\n 'id' => 1840,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'kfz',\n 'value' => 'KFZ',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'KFZ',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 340 => \n array (\n 'id' => 1841,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'last_generated',\n 'value' => 'Zuletzt erstellt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Zuletzt erstellt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 341 => \n array (\n 'id' => 1842,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'never_generated',\n 'value' => 'noch nicht erstellt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'noch nicht erstellt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 342 => \n array (\n 'id' => 1843,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'start',\n 'value' => 'Und los!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Und los!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 343 => \n array (\n 'id' => 1844,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'tips',\n 'value' => 'Hinweise',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Hinweise',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 344 => \n array (\n 'id' => 1845,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'tips_content',\n 'value' => '<p>Mit einem Klick auf das Erstellungsdatum werden alle Foodsaver mit dem gleichen Datum bzw. ohne Erstellungsdatum markiert.</p>\n<p>Mit einem Klick auf den Namen können Foto und Foodsharing-ID noch geändert werden.</p>\n<p>Foodsaver, die einen Ausweis bekommen haben und die Richtigkeit ihrer Perso-Daten bestätigt haben, können verifiziert werden.</p>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => '<p>Mit einem Klick auf das Erstellungsdatum werden alle Foodsaver mit dem gleichen Datum bzw. ohne Erstellungsdatum markiert.</p>\n<p>Mit einem Klick auf den Namen können Foto und Foodsharing-ID noch geändert werden.</p>\n<p>Foodsaver, die einen Ausweis bekommen haben und die Richtigkeit ihrer Perso-Daten bestätigt haben, können verifiziert werden.</p>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 345 => \n array (\n 'id' => 1846,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'unverify_confirm',\n 'value' => 'Vor dem Entverifizieren musst Du die eingetragenen Abholtermine prüfen!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Vor dem Entverifizieren musst Du die eingetragenen Abholtermine prüfen!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 346 => \n array (\n 'id' => 1847,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'unverify_confirm_button',\n 'value' => 'Prüfen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Prüfen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 347 => \n array (\n 'id' => 1848,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'unverify_confirm_title',\n 'value' => 'Person noch für Abholungen eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Person noch für Abholungen eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 348 => \n array (\n 'id' => 1849,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'verified',\n 'value' => 'verifiziert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'verifiziert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 349 => \n array (\n 'id' => 1850,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'verify_confirm',\n 'value' => 'Perso-Daten gecheckt?<br />Ausweis übergeben?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Perso-Daten gecheckt?<br />Ausweis übergeben?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 350 => \n array (\n 'id' => 1851,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'verify_confirm_button',\n 'value' => 'Verifizieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Verifizieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 351 => \n array (\n 'id' => 1852,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'verify_confirm_title',\n 'value' => 'Sicher?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Sicher?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 352 => \n array (\n 'id' => 1853,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_profile',\n 'key' => 'attach_image',\n 'value' => 'Bild hochladen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bild hochladen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 353 => \n array (\n 'id' => 1854,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_profile',\n 'key' => 'last_login',\n 'value' => 'Letzter Login',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Letzter Login',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 354 => \n array (\n 'id' => 1855,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_profile',\n 'key' => 'mailbox',\n 'value' => 'Interne Mailbox',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Interne Mailbox',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 355 => \n array (\n 'id' => 1856,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_profile',\n 'key' => 'notes_count',\n 'value' => 'Notizen <strong>(:count)</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Notizen <strong>(:count)</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 356 => \n array (\n 'id' => 1857,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_profile',\n 'key' => 'private_mail',\n 'value' => 'Private E-Mail Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Private E-Mail Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 357 => \n array (\n 'id' => 1858,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_profile',\n 'key' => 'registration_date',\n 'value' => 'Registrierungsdatum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Registrierungsdatum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 358 => \n array (\n 'id' => 1859,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_profile',\n 'key' => 'user_notes_info',\n 'value' => 'Bitte gehe gewissenhaft mit dieser Funktion um. Sie soll helfen Vorgänge Sichbar zu machen um uns Arbeit zu sparen, Persönliches oder wertendes zu einer Person hat hier nichts verloren - bleibe sachlich!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bitte gehe gewissenhaft mit dieser Funktion um. Sie soll helfen Vorgänge Sichbar zu machen um uns Arbeit zu sparen, Persönliches oder wertendes zu einer Person hat hier nichts verloren - bleibe sachlich!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 359 => \n array (\n 'id' => 1860,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_profile',\n 'key' => 'violation_count',\n 'value' => 'Verstoßmeldungen <strong>(:count)</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Verstoßmeldungen <strong>(:count)</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 360 => \n array (\n 'id' => 1861,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_profile',\n 'key' => 'write_teaser',\n 'value' => 'Schreibe etwas...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schreibe etwas...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 361 => \n array (\n 'id' => 1862,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_quiz',\n 'key' => 'answers',\n 'value' => 'Welche Antworten sind richtig?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Welche Antworten sind richtig?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 362 => \n array (\n 'id' => 1863,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_quiz',\n 'key' => 'duration',\n 'value' => 'Zeit zum Antworten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Zeit zum Antworten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 363 => \n array (\n 'id' => 1864,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_quiz',\n 'key' => 'explanation',\n 'value' => 'Erklärung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Erklärung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 364 => \n array (\n 'id' => 1865,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_quiz',\n 'key' => 'fp',\n 'value' => 'Fehlerpunkte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Fehlerpunkte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 365 => \n array (\n 'id' => 1866,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_quiz',\n 'key' => 'maxfp',\n 'value' => 'Maximale Anzahl von Fehlerpunkten um zu bestehen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Maximale Anzahl von Fehlerpunkten um zu bestehen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 366 => \n array (\n 'id' => 1867,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_quiz',\n 'key' => 'questcount',\n 'value' => 'Wie viele Fragen sollen bei Klausur gestellt werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Wie viele Fragen sollen bei Klausur gestellt werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 367 => \n array (\n 'id' => 1868,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_quiz',\n 'key' => 'quizusercomment',\n 'value' => 'Gib uns feedback zu dieser Frage (z.B. war sie zu leicht, zu schwer, unverständlich oder einzelne Antworten bzw. Erklärungen nicht richtig)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gib uns feedback zu dieser Frage (z.B. war sie zu leicht, zu schwer, unverständlich oder einzelne Antworten bzw. Erklärungen nicht richtig)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 368 => \n array (\n 'id' => 1869,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_quiz',\n 'key' => 'right',\n 'value' => 'Wertung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Wertung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 369 => \n array (\n 'id' => 1870,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_quiz',\n 'key' => 'text',\n 'value' => 'Text',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Text',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 370 => \n array (\n 'id' => 1871,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_quiz',\n 'key' => 'wikilink',\n 'value' => 'Link zur Wiki-Seite',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Link zur Wiki-Seite',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 371 => \n array (\n 'id' => 1872,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'bezirk_bread',\n 'value' => 'Regionen verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Regionen verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 372 => \n array (\n 'id' => 1873,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'bezirk_edit_success',\n 'value' => 'Änderungen wurden gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Änderungen wurden gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 373 => \n array (\n 'id' => 1874,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'bezirk_empty',\n 'value' => 'Bisher wurde kein Bezirk eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bisher wurde kein Bezirk eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 374 => \n array (\n 'id' => 1875,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'bread_bezirk',\n 'value' => 'Alle Bezirke',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Alle Bezirke',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 375 => \n array (\n 'id' => 1876,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'bread_edit_bezirk',\n 'value' => 'Bezirk bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bezirk bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 376 => \n array (\n 'id' => 1877,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'bread_edit_region',\n 'value' => 'Region bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Region bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 377 => \n array (\n 'id' => 1878,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'bread_new_bezirk',\n 'value' => 'neuen Bezirk eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'neuen Bezirk eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 378 => \n array (\n 'id' => 1879,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'bread_new_region',\n 'value' => 'neuen Region eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'neuen Region eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 379 => \n array (\n 'id' => 1880,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'bread_region',\n 'value' => 'Alle Regionen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Alle Regionen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 380 => \n array (\n 'id' => 1881,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'delete_sure',\n 'value' => 'Soll der Bezirk :var wirklich unwideruflich gelöscht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Soll der Bezirk :var wirklich unwideruflich gelöscht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 381 => \n array (\n 'id' => 1882,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'neu_bezirk',\n 'value' => 'Neuen Bezirk eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Neuen Bezirk eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 382 => \n array (\n 'id' => 1883,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'neu_region',\n 'value' => 'Neuen Bezirk eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Neuen Bezirk eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 383 => \n array (\n 'id' => 1884,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'region_empty',\n 'value' => 'Bisher wurde kein Region eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bisher wurde kein Region eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 384 => \n array (\n 'id' => 1885,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'region_id',\n 'value' => 'Region',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Region',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 385 => \n array (\n 'id' => 1886,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_report',\n 'key' => 'betrieb_id',\n 'value' => 'Betrifft Die Meldung einen bestimmten Betrieb indem :var abholt?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Betrifft Die Meldung einen bestimmten Betrieb indem :var abholt?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 386 => \n array (\n 'id' => 1887,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_report',\n 'key' => 'reportmessage',\n 'value' => 'Beschreibe den Vorfall noch etwas genauer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Beschreibe den Vorfall noch etwas genauer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 387 => \n array (\n 'id' => 1888,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_report',\n 'key' => 'reportmessage_desc',\n 'value' => 'Es ist wichtig alle Fälle die gegen die Verhaltensregeln verstoßen zu melden, damit sich erst gar keine schlechte Stimmung unter den Foodsaver bzw. Betrieben entsteht in dem die Verantwortlichen sich rechtzeitig um Problemfälle kümmern können und bei mehrfachen nicht angebrachtem Verhalten, von der Plattform augeschlossen wrid.\nBitte schildere den Vorfall in mindestens 120 Zeichen, damit die Verantwortlichen bzw. das Mediationsteam sich angemessen um den Fall kümmern kann. Nenne dabei Häufigkeit des Vorfalls, Ort, Zeitpunkt und ggf. andere Anwesende Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Es ist wichtig alle Fälle die gegen die Verhaltensregeln verstoßen zu melden, damit sich erst gar keine schlechte Stimmung unter den Foodsaver bzw. Betrieben entsteht in dem die Verantwortlichen sich rechtzeitig um Problemfälle kümmern können und bei mehrfachen nicht angebrachtem Verhalten, von der Plattform augeschlossen wrid.\nBitte schildere den Vorfall in mindestens 120 Zeichen, damit die Verantwortlichen bzw. das Mediationsteam sich angemessen um den Fall kümmern kann. Nenne dabei Häufigkeit des Vorfalls, Ort, Zeitpunkt und ggf. andere Anwesende Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 388 => \n array (\n 'id' => 1889,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'about_me_public',\n 'value' => 'Kurzbeschreibung von Dir',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Kurzbeschreibung von Dir',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 389 => \n array (\n 'id' => 1890,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'account_option',\n 'value' => 'Account-Optionen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Account-Optionen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 390 => \n array (\n 'id' => 1891,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'aufgaben_botschafter',\n 'value' => 'Ich habe das Dokument \"Aufgaben der BotschafterInnen von foodsharing gelesen und übernehme ab jetzt für diese die Verantwortlichkeit in meiner Stadt/Region/Bezirk.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ich habe das Dokument \"Aufgaben der BotschafterInnen von foodsharing gelesen und übernehme ab jetzt für diese die Verantwortlichkeit in meiner Stadt/Region/Bezirk.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 391 => \n array (\n 'id' => 1892,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'bcard',\n 'value' => 'persönliche Visitenkarte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'persönliche Visitenkarte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 392 => \n array (\n 'id' => 1893,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'calendar',\n 'value' => 'Kalender',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Kalender',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 393 => \n array (\n 'id' => 1894,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'comment',\n 'value' => 'Anregungen Kritik & Kommentare',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Anregungen Kritik & Kommentare',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 394 => \n array (\n 'id' => 1895,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'datenschutz',\n 'value' => 'Ich habe die Datenschutzerklärung für meine Botschafterrolle zur Kenntnis genommen und bin damit einverstanden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ich habe die Datenschutzerklärung für meine Botschafterrolle zur Kenntnis genommen und bin damit einverstanden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 395 => \n array (\n 'id' => 1896,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'daterange',\n 'value' => 'Hier kannst Du einstellen, in welchem Zeitraum Du in etwa nicht zur Verfügung stehst.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Hier kannst Du einstellen, in welchem Zeitraum Du in etwa nicht zur Verfügung stehst.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 396 => \n array (\n 'id' => 1897,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'delete_account',\n 'value' => 'Account löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Account löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 397 => \n array (\n 'id' => 1898,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'delete_account_confirm_bt',\n 'value' => 'Ja, Account jetzt löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ja, Account jetzt löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 398 => \n array (\n 'id' => 1899,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'delete_account_confirm_msg',\n 'value' => 'Du bist dabei Deinen Account zu löschen, bist Du Dir ganz sicher?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Du bist dabei Deinen Account zu löschen, bist Du Dir ganz sicher?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 399 => \n array (\n 'id' => 1900,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'delete_account_confirm_title',\n 'value' => 'Account wirklich löschen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Account wirklich löschen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 400 => \n array (\n 'id' => 1901,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'delete_now',\n 'value' => 'Account jetzt löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Account jetzt löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 401 => \n array (\n 'id' => 1902,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'edit_photo',\n 'value' => 'Foto bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Foto bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 402 => \n array (\n 'id' => 1903,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'follow_fairteiler',\n 'value' => 'Updates vom :var Fair-Teiler',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Updates vom :var Fair-Teiler',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 403 => \n array (\n 'id' => 1904,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'follow_fairteiler_alert',\n 'value' => 'nur über interne Info-Meldungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'nur über interne Info-Meldungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 404 => \n array (\n 'id' => 1905,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'follow_fairteiler_desc',\n 'value' => 'Du hast Dich als Follower für den :var Fair-Teiler eingetragen. Auf welche Art möchtest Du diese Benachrichtigungen bekommen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Du hast Dich als Follower für den :var Fair-Teiler eingetragen. Auf welche Art möchtest Du diese Benachrichtigungen bekommen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 405 => \n array (\n 'id' => 1906,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'follow_fairteiler_mail',\n 'value' => 'über eine E-Mail Benachrichtigung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'über eine E-Mail Benachrichtigung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 406 => \n array (\n 'id' => 1907,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'follow_fairteiler_none',\n 'value' => 'gar nicht mehr',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'gar nicht mehr',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 407 => \n array (\n 'id' => 1908,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'follow_thread',\n 'value' => 'Über das Forenthema \":var\" auf dem Laufenden bleiben?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Über das Forenthema \":var\" auf dem Laufenden bleiben?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 408 => \n array (\n 'id' => 1909,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'follow_thread_desc',\n 'value' => '',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => '',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 409 => \n array (\n 'id' => 1910,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'follow_thread_mail',\n 'value' => 'Ja, ich möchte per Mail über neue Posts informiert werden.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ja, ich möchte per Mail über neue Posts informiert werden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 410 => \n array (\n 'id' => 1911,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'follow_thread_none',\n 'value' => 'Bitte nicht mehr über neue Posts informieren.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bitte nicht mehr über neue Posts informieren.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 411 => \n array (\n 'id' => 1912,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'full_sleepmode',\n 'value' => 'Ich tauche erstmal auf unbestimmte Zeit ab',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ich tauche erstmal auf unbestimmte Zeit ab',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 412 => \n array (\n 'id' => 1913,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'geb_datum',\n 'value' => 'Geburtsdatum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Geburtsdatum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 413 => \n array (\n 'id' => 1914,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'homepage',\n 'value' => 'Deine Webseite',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Deine Webseite',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 414 => \n array (\n 'id' => 1915,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'infomail_message',\n 'value' => 'Benachrichtigung über foodsharing.de Nachrichten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Benachrichtigung über foodsharing.de Nachrichten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 415 => \n array (\n 'id' => 1916,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'infomail_message_desc',\n 'value' => 'Wenn Du auf foodsharing.de eine interne Nachricht geschickt bekommst, aber gerade nicht eingeloggt bist, kannst Du per E-Mail darüber informiert werden. Möchtest Du das?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Wenn Du auf foodsharing.de eine interne Nachricht geschickt bekommst, aber gerade nicht eingeloggt bist, kannst Du per E-Mail darüber informiert werden. Möchtest Du das?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 416 => \n array (\n 'id' => 1917,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'new_bezirk',\n 'value' => 'Bezirk den das Orgateam neu anlegen soll',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bezirk den das Orgateam neu anlegen soll',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 417 => \n array (\n 'id' => 1918,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'newmail',\n 'value' => 'Gib hier Deine neue E-Mail Adresse ein',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gib hier Deine neue E-Mail Adresse ein',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 418 => \n array (\n 'id' => 1919,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'newsletter',\n 'value' => 'Newsletter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Newsletter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 419 => \n array (\n 'id' => 1920,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'newsletter_desc',\n 'value' => 'Ca. 1x im Monat senden wir aktuelle Informationen rund um die Lebensmittelretter-Bewegung in einem Newsletter raus. Möchtest Du diese E-Mails bekommen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ca. 1x im Monat senden wir aktuelle Informationen rund um die Lebensmittelretter-Bewegung in einem Newsletter raus. Möchtest Du diese E-Mails bekommen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 420 => \n array (\n 'id' => 1921,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'no_sleepmode',\n 'value' => 'Ich bin aktiv und voll dabei',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ich bin aktiv und voll dabei',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 421 => \n array (\n 'id' => 1922,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'passcheck',\n 'value' => 'Bestätige die Änderung bitte mit Deinem Passwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bestätige die Änderung bitte mit Deinem Passwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 422 => \n array (\n 'id' => 1923,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'photo_public',\n 'value' => 'Um eine\nmöglichst flüssige Koordination zu ermöglichen, werden die Namen\nund das Foto von den BotschafterInnen von Foodsharing\nveröffentlicht.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Um eine\nmöglichst flüssige Koordination zu ermöglichen, werden die Namen\nund das Foto von den BotschafterInnen von Foodsharing\nveröffentlicht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 423 => \n array (\n 'id' => 1924,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'posible_restore_account',\n 'value' => 'Dein Account kann nach dem löschen widerhergestellt werden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Dein Account kann nach dem löschen widerhergestellt werden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 424 => \n array (\n 'id' => 1925,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'position',\n 'value' => 'Deine Position bei foodsharing (öffentlich)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Deine Position bei foodsharing (öffentlich)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 425 => \n array (\n 'id' => 1926,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'position_search',\n 'value' => 'Adresssuche',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Adresssuche',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 426 => \n array (\n 'id' => 1927,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'reason_to_delete',\n 'value' => 'Warum möchtest Du die Foodsaver-Community verlassen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Warum möchtest Du die Foodsaver-Community verlassen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 427 => \n array (\n 'id' => 1928,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'settings',\n 'value' => 'Einstellungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Einstellungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 428 => \n array (\n 'id' => 1929,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'settings_general',\n 'value' => 'Deine Angaben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Deine Angaben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 429 => \n array (\n 'id' => 1930,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'settings_info',\n 'value' => 'Benachrichtigungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Benachrichtigungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 430 => \n array (\n 'id' => 1931,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'settings_mumble',\n 'value' => 'Mumble Einstellungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Mumble Einstellungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 431 => \n array (\n 'id' => 1932,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'sleep_mode_saved',\n 'value' => 'Die Einstellungen wurden gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Die Einstellungen wurden gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 432 => \n array (\n 'id' => 1933,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'sleep_msg',\n 'value' => 'Hier kannst Du eine kurze Nachricht hinterlassen, warum Du gerade keine Zeit hast.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Hier kannst Du eine kurze Nachricht hinterlassen, warum Du gerade keine Zeit hast.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 433 => \n array (\n 'id' => 1934,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'sleep_status',\n 'value' => 'Dein aktueller Status',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Dein aktueller Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 434 => \n array (\n 'id' => 1935,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'sleeping_user',\n 'value' => 'Schlafmütze',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlafmütze',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 435 => \n array (\n 'id' => 1936,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'sleepmode',\n 'value' => 'Schlafmützen-Funktion',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlafmützen-Funktion',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 436 => \n array (\n 'id' => 1937,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'sleepmode_info',\n 'value' => 'Mit der Schlafmützen-Funktion ist es Dir möglich der Community mitzuteilen, dass Du zzt. verreist bist oder aus anderen Gründen keine Zeit für das Retten von Lebensmitteln hast.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Mit der Schlafmützen-Funktion ist es Dir möglich der Community mitzuteilen, dass Du zzt. verreist bist oder aus anderen Gründen keine Zeit für das Retten von Lebensmitteln hast.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 437 => \n array (\n 'id' => 1938,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'tel_public',\n 'value' => 'Veröffentlichung Deiner Telefonnummer(n)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Veröffentlichung Deiner Telefonnummer(n)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 438 => \n array (\n 'id' => 1939,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'temp_sleepmode',\n 'value' => 'Ich bin für eine Weile nicht verfügbar',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ich bin für eine Weile nicht verfügbar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 439 => \n array (\n 'id' => 1940,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'time',\n 'value' => 'Wie viel Zeit kannst/willst Du für Deine Botschafterrolle pro Woche aufbringen (ungefähr)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Wie viel Zeit kannst/willst Du für Deine Botschafterrolle pro Woche aufbringen (ungefähr)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 440 => \n array (\n 'id' => 1941,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'tox',\n 'value' => 'TOX ID',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'TOX ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 441 => \n array (\n 'id' => 1942,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'tox_desc',\n 'value' => '<a href=\"https://tox.im/\" target=\"_blank\">Tox ist eine sichere OpenSource Skype Alternative</a>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => '<a href=\"https://tox.im/\" target=\"_blank\">Tox ist eine sichere OpenSource Skype Alternative</a>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 442 => \n array (\n 'id' => 1943,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'twitter',\n 'value' => 'Twitter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Twitter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 443 => \n array (\n 'id' => 1944,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'upgrade_bot_success',\n 'value' => 'Danke Dir für Deine Motivation mehr Verantwortung zu übernehmen! Die Anfrage wird schnellstmöglich vom bundesweiten Orga-Team bearbeitet.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Danke Dir für Deine Motivation mehr Verantwortung zu übernehmen! Die Anfrage wird schnellstmöglich vom bundesweiten Orga-Team bearbeitet.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 444 => \n array (\n 'id' => 1945,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'upgrade_request_send',\n 'value' => 'Anfrage erfolgreich versendet!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Anfrage erfolgreich versendet!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 445 => \n array (\n 'id' => 1946,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'upload_new_photo',\n 'value' => 'neues Foto hochladen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'neues Foto hochladen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 446 => \n array (\n 'id' => 1947,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_statistics',\n 'key' => 'active_cities',\n 'value' => 'Aktivste Städte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Aktivste Städte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 447 => \n array (\n 'id' => 1948,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_statistics',\n 'key' => 'stat_whole',\n 'value' => 'Gesamt-Statistik',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gesamt-Statistik',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 448 => \n array (\n 'id' => 1949,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_team',\n 'key' => 'mail_send_success',\n 'value' => 'Deine Nachricht wurde erfolgreich gesendet!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Deine Nachricht wurde erfolgreich gesendet!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 449 => \n array (\n 'id' => 1950,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_team',\n 'key' => 'team',\n 'value' => 'Team',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Team',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 450 => \n array (\n 'id' => 1951,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'pagination',\n 'key' => 'next',\n 'value' => 'Weiter »',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Nächste &raquo;',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 451 => \n array (\n 'id' => 1952,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'pagination',\n 'key' => 'previous',\n 'value' => '« Zurück',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '&laquo; Vorherige',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 452 => \n array (\n 'id' => 1953,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'passwords',\n 'key' => 'password',\n 'value' => 'Passwords must be at least six characters and match the confirmation.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwörter müssen mind. 6 Zeichen haben und gleich der Wiederholung sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 453 => \n array (\n 'id' => 1954,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'passwords',\n 'key' => 'reset',\n 'value' => 'Your password has been reset!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dein Kennwort wurde zurückgesetzt!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 454 => \n array (\n 'id' => 1955,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'passwords',\n 'key' => 'sent',\n 'value' => 'We have e-mailed your password reset link!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Wir haben dir einen Link zum Zurücksetzen deines Kennworts gesendet!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 455 => \n array (\n 'id' => 1956,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'passwords',\n 'key' => 'token',\n 'value' => 'This password reset token is invalid.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Der Token zum Zurücksetzen des Kennworts ist ungültig.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 456 => \n array (\n 'id' => 1957,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'passwords',\n 'key' => 'user',\n 'value' => 'We can\\'t find a user with that e-mail address.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Wir können keinen Benutzer mit der E-Mailadresse finden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 457 => \n array (\n 'id' => 1958,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'addkeys',\n 'value' => 'Schlüssel hinzufügen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel hinzufügen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 458 => \n array (\n 'id' => 1959,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'addkeys-placeholder',\n 'value' => 'Einen Schlüssel pro Zeile hinzufügen, ohne das Gruppenpräfix',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Einen Schlüssel pro Zeile hinzufügen, ohne das Gruppenpräfix',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 459 => \n array (\n 'id' => 1960,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'addsuffixes',\n 'value' => 'Suffixe setzen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Suffixe setzen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 460 => \n array (\n 'id' => 1961,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'addsuffixes-placeholder',\n 'value' => 'Jeden Schlüssel mit Suffixen aus den hier eingegebenen Zeilen hinzufügen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Jeden Schlüssel mit Suffixen aus den hier eingegebenen Zeilen hinzufügen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 461 => \n array (\n 'id' => 1962,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'auto-fill',\n 'value' => 'Automatisch befüllen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Automatisch befüllen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 462 => \n array (\n 'id' => 1963,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'auto-fill-disabled',\n 'value' => 'Befüllen...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Befüllen...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 463 => \n array (\n 'id' => 1964,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'auto-prop-case-disabled',\n 'value' => 'Anwenden...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Anwenden...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 464 => \n array (\n 'id' => 1965,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'auto-translate',\n 'value' => 'Automatisch übersetzen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Automatisch übersetzen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 465 => \n array (\n 'id' => 1966,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'auto-translate-disabled',\n 'value' => 'Übersetzen...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Übersetzen...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 466 => \n array (\n 'id' => 1967,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'cached',\n 'value' => 'Gecached',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gecached',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 467 => \n array (\n 'id' => 1968,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'changed',\n 'value' => 'Geändert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Geändert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 468 => \n array (\n 'id' => 1969,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'check-all',\n 'value' => 'Alle',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Alle',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 469 => \n array (\n 'id' => 1970,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'check-none',\n 'value' => 'Keine',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Keine',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 470 => \n array (\n 'id' => 1971,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'choose-group',\n 'value' => 'Wählen Sie eine Übersetzungsgruppe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Wählen Sie eine Übersetzungsgruppe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 471 => \n array (\n 'id' => 1972,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'choose-group-text',\n 'value' => 'Wählen Sie eine Gruppe, um deren Übersetzungen anzuzeigen. Wenn keine Gruppen sichtbar sind, kontaktieren Sie einen Administrator.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Wählen Sie eine Gruppe, um deren Übersetzungen anzuzeigen. Wenn keine Gruppen sichtbar sind, kontaktieren Sie einen Administrator.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 472 => \n array (\n 'id' => 1973,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'cleardstkeys',\n 'value' => 'Schlüssel bereinigen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel bereinigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 473 => \n array (\n 'id' => 1974,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'clearkeys',\n 'value' => 'Schlüssel bereinigen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel bereinigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 474 => \n array (\n 'id' => 1975,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'clearsrckeys',\n 'value' => 'Schlüssel bereinigen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel bereinigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 475 => \n array (\n 'id' => 1976,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'clearsuffixes',\n 'value' => 'Suffixe bereinigen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Suffixe bereinigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 476 => \n array (\n 'id' => 1977,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'close',\n 'value' => 'Schließen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schließen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 477 => \n array (\n 'id' => 1978,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'confirm-delete',\n 'value' => 'Sind Sie sicher, dass Sie die Übersetzungen der Gruppe\n:group\naus der Datenbank löschen wollen? Änderungen, die noch nicht in die Übersetzungsdateien exportiert wurden, werden verloren gehen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Sind Sie sicher, dass Sie die Übersetzungen der Gruppe\n:group\naus der Datenbank löschen wollen? Änderungen, die noch nicht in die Übersetzungsdateien exportiert wurden, werden verloren gehen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 478 => \n array (\n 'id' => 1979,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'confirm-delete-all',\n 'value' => 'Sind Sie sicher, dass Sie alle Übersetzungen aus der Datenbank löschen wollen?\nÄnderungen, die noch nicht in die Übersetzungsdateien exportiert wurden, werden verloren gehen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Sind Sie sicher, dass Sie alle Übersetzungen aus der Datenbank löschen wollen?\nÄnderungen, die noch nicht in die Übersetzungsdateien exportiert wurden, werden verloren gehen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 479 => \n array (\n 'id' => 1980,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'confirm-find',\n 'value' => 'Sind Sie sicher, dass Sie die Verzeichnisse app und views nach Übersetzungen durchsuchen wollen? Alle gefundenen Übersetzungsschlüssel werden zur Datenbank hinzugefügt und die Quellenangaben werden aktualisiert.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Sind Sie sicher, dass Sie die Verzeichnisse app und views nach Übersetzungen durchsuchen wollen? Alle gefundenen Übersetzungsschlüssel werden zur Datenbank hinzugefügt und die Quellenangaben werden aktualisiert.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 480 => \n array (\n 'id' => 1981,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'copykeys',\n 'value' => 'Schlüssel kopieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel kopieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 481 => \n array (\n 'id' => 1982,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'db-connection',\n 'value' => 'Datenbank',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Datenbank',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 482 => \n array (\n 'id' => 1983,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'delete',\n 'value' => 'Löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 483 => \n array (\n 'id' => 1984,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'delete-all',\n 'value' => 'Alle löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Alle löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 484 => \n array (\n 'id' => 1985,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'deleted',\n 'value' => 'Gelöscht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gelöscht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 485 => \n array (\n 'id' => 1986,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'deletekeys',\n 'value' => 'Schlüssel löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 486 => \n array (\n 'id' => 1987,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'deleting',\n 'value' => 'Löschen...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Löschen...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 487 => \n array (\n 'id' => 1988,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'display-locales',\n 'value' => 'Arbeits-Set',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Arbeits-Set',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 488 => \n array (\n 'id' => 1989,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'done-publishing',\n 'value' => 'Veröffentlichung der Übersetzungen in der Gruppe <strong>:group</strong> abgeschlossen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Veröffentlichung der Übersetzungen in der Gruppe <strong>:group</strong> abgeschlossen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 489 => \n array (\n 'id' => 1990,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'done-publishing-all',\n 'value' => 'Veröffentlichung der Übersetzungen in <strong>allen</strong> Gruppen abgeschlossen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Veröffentlichung der Übersetzungen in <strong>allen</strong> Gruppen abgeschlossen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 490 => \n array (\n 'id' => 1991,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'dst-preview',\n 'value' => 'Zu',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Zu',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 491 => \n array (\n 'id' => 1992,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'dstkey',\n 'value' => 'Zu',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Zu',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 492 => \n array (\n 'id' => 1993,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'dstkeys',\n 'value' => 'Zu Schlüsseln',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Zu Schlüsseln',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 493 => \n array (\n 'id' => 1994,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'dstkeys-placeholder',\n 'value' => 'Fügen Sie einen Schlüssel pro Zeile hinzu, mit oder ohne Gruppenpräfix',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Fügen Sie einen Schlüssel pro Zeile hinzu, mit oder ohne Gruppenpräfix',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 494 => \n array (\n 'id' => 1995,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'enter-translation',\n 'value' => 'Übersetzung eingeben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Übersetzung eingeben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 495 => \n array (\n 'id' => 1996,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'export-warning-text',\n 'value' => 'Achtung: Übersetzungen sind nicht sichtbar, bis sie von einem Administrator veröffentlicht wurden.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Achtung: Übersetzungen sind nicht sichtbar, bis sie von einem Administrator veröffentlicht wurden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 496 => \n array (\n 'id' => 1997,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'find-in-files',\n 'value' => 'Referenzen hinzufügen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Referenzen hinzufügen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 497 => \n array (\n 'id' => 1998,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'group',\n 'value' => 'Gruppe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gruppe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 498 => \n array (\n 'id' => 1999,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'import-add',\n 'value' => 'Nur neue Übersetzungen hinzufügen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Nur neue Übersetzungen hinzufügen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 499 => \n array (\n 'id' => 2000,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'import-all-done',\n 'value' => 'Import abgeschlossen, <strong>:count</strong> Elemente wurden verarbeitet. Laden Sie diese Seite neu, um das Ergebnis zu sehen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Import abgeschlossen, <strong>:count</strong> Elemente wurden verarbeitet. Laden Sie diese Seite neu, um das Ergebnis zu sehen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n ));\n \\DB::table('translations')->insert(array (\n 0 => \n array (\n 'id' => 2001,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'import-done-head',\n 'value' => 'Import abgeschlossen,',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Import abgeschlossen,',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 1 => \n array (\n 'id' => 2002,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'import-done-tail',\n 'value' => 'Elemente wurden verarbeitet. Laden Sie diese Seite neu, um das Ergebnis zu sehen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Elemente wurden verarbeitet. Laden Sie diese Seite neu, um das Ergebnis zu sehen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 2 => \n array (\n 'id' => 2003,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'import-fresh',\n 'value' => 'Alle löschen, dann importieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Alle löschen, dann importieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 3 => \n array (\n 'id' => 2004,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'import-group',\n 'value' => 'Importieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Importieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 4 => \n array (\n 'id' => 2005,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'import-group-done',\n 'value' => 'Import der Gruppe <strong>:group</strong> abgeschlossen, <strong>:count</strong> Elemente wurden verarbeitet. Laden Sie diese Seite neu, um das Ergebnis zu sehen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Import der Gruppe <strong>:group</strong> abgeschlossen, <strong>:count</strong> Elemente wurden verarbeitet. Laden Sie diese Seite neu, um das Ergebnis zu sehen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 5 => \n array (\n 'id' => 2006,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'import-groups',\n 'value' => 'Alle importieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Alle importieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 6 => \n array (\n 'id' => 2007,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'import-replace',\n 'value' => 'Bestehende Übersetzungen ersetzen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bestehende Übersetzungen ersetzen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 7 => \n array (\n 'id' => 2008,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'in-place-edit',\n 'value' => 'In-Place-Bearbeitung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'In-Place-Bearbeitung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 8 => \n array (\n 'id' => 2009,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'interface-locale',\n 'value' => 'Schnittstelle',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schnittstelle',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 9 => \n array (\n 'id' => 2010,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'key',\n 'value' => 'Schlüssel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 10 => \n array (\n 'id' => 2011,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'keyop-count-mustmatch',\n 'value' => 'Die Anzahl der Schlüssel für Quelle und Ziel muss übereinstimmen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Die Anzahl der Schlüssel für Quelle und Ziel muss übereinstimmen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 11 => \n array (\n 'id' => 2012,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'keyop-header',\n 'value' => 'Ergebnis der Schlüsseloperation',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ergebnis der Schlüsseloperation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 12 => \n array (\n 'id' => 2013,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'keyop-header-copy',\n 'value' => 'Schlüssel-Kopieren-Operation für Gruppe <strong>:group</strong>:',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel-Kopieren-Operation für Gruppe <strong>:group</strong>:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 13 => \n array (\n 'id' => 2014,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'keyop-header-delete',\n 'value' => 'Schlüssel-Löschen-Operation für Gruppe <strong>:group</strong>:',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel-Löschen-Operation für Gruppe <strong>:group</strong>:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 14 => \n array (\n 'id' => 2015,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'keyop-header-move',\n 'value' => 'Schlüssel-Verschieben-Operation für Gruppe <strong>:group</strong>:',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel-Verschieben-Operation für Gruppe <strong>:group</strong>:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 15 => \n array (\n 'id' => 2016,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'keyop-header-preview',\n 'value' => 'Schlüssel-Vorschau-Operation für Gruppe <strong>:group</strong>:',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel-Vorschau-Operation für Gruppe <strong>:group</strong>:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 16 => \n array (\n 'id' => 2017,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'keyop-need-group',\n 'value' => 'Schlüsseloperationen benötigen eine Gruppe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüsseloperationen benötigen eine Gruppe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 17 => \n array (\n 'id' => 2018,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'keyop-need-keys',\n 'value' => 'Keine Schlüssel für die Schlüsseloperation angegeben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Keine Schlüssel für die Schlüsseloperation angegeben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 18 => \n array (\n 'id' => 2019,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'keyop-no-match',\n 'value' => 'Kein Schlüssel stimmt überein.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Kein Schlüssel stimmt überein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 19 => \n array (\n 'id' => 2020,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'keyop-wildcard-mustmatch',\n 'value' => 'Der Platzhalter * muss das erste oder letzte Zeichen sein und, wenn vorhanden, beim Quell- und Zielschlüssel an derselben Stelle stehen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Der Platzhalter * muss das erste oder letzte Zeichen sein und, wenn vorhanden, beim Quell- und Zielschlüssel an derselben Stelle stehen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 20 => \n array (\n 'id' => 2021,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'keyop-wildcard-once',\n 'value' => 'Der Platzhalter * darf nur einmal in einem Schlüssel verwendet werden.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Der Platzhalter * darf nur einmal in einem Schlüssel verwendet werden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 21 => \n array (\n 'id' => 2022,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'keyops-not-authorized',\n 'value' => 'Schlüsseloperationen sind auf diesem Server nicht zugelassen. Kontaktieren Sie Ihren Administrator, um diese Einstellung zu ändern.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüsseloperationen sind auf diesem Server nicht zugelassen. Kontaktieren Sie Ihren Administrator, um diese Einstellung zu ändern.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 22 => \n array (\n 'id' => 2023,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'keys',\n 'value' => 'Schlüssel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 23 => \n array (\n 'id' => 2024,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'loading',\n 'value' => 'Importieren...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Importieren...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 24 => \n array (\n 'id' => 2025,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'locale',\n 'value' => 'Lokale',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Lokale',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 25 => \n array (\n 'id' => 2026,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'mismatches',\n 'value' => 'Unpassende Übersetzungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Unpassende Übersetzungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 26 => \n array (\n 'id' => 2027,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'missing',\n 'value' => 'Fehlend',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Fehlend',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 27 => \n array (\n 'id' => 2028,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'missmatched-quotes',\n 'value' => 'Unpassende oder fehlende Anführungszeichen im Attribut :string',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Unpassende oder fehlende Anführungszeichen im Attribut :string',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 28 => \n array (\n 'id' => 2029,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'movekeys',\n 'value' => 'Schlüssel verschieben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel verschieben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 29 => \n array (\n 'id' => 2030,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'preview',\n 'value' => 'Vorschau',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Vorschau',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 30 => \n array (\n 'id' => 2031,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'primary-locale',\n 'value' => 'Primäre Sprache',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Primäre Sprache',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 31 => \n array (\n 'id' => 2032,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'publish',\n 'value' => 'Gruppe veröffentlichen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gruppe veröffentlichen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 32 => \n array (\n 'id' => 2033,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'publish-all',\n 'value' => 'Alle veröffentlichen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Alle veröffentlichen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 33 => \n array (\n 'id' => 2034,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'publishing',\n 'value' => 'Veröffentlichen...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Veröffentlichen...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 34 => \n array (\n 'id' => 2035,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'reload-page',\n 'value' => 'Seite neu laden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Seite neu laden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 35 => \n array (\n 'id' => 2036,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'reset-usage-info',\n 'value' => 'Verwendungsinformationen zurücksetzen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Verwendungsinformationen zurücksetzen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 36 => \n array (\n 'id' => 2037,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'search',\n 'value' => 'Suchen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Suchen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 37 => \n array (\n 'id' => 2038,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'search-done',\n 'value' => 'Suche nach Übersetzungen abgeschlossen. Quellverweise wurden aktualisiert, <strong>:count</strong> neue Übersetzungselemente wurden hinzugefügt.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Suche nach Übersetzungen abgeschlossen. Quellverweise wurden aktualisiert, <strong>:count</strong> neue Übersetzungselemente wurden hinzugefügt.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 38 => \n array (\n 'id' => 2039,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'search-done-head',\n 'value' => 'Suche nach Übersetzungen abgeschlossen,',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Suche nach Übersetzungen abgeschlossen,',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 39 => \n array (\n 'id' => 2040,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'search-done-tail',\n 'value' => 'Elemente gefunden.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Elemente gefunden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 40 => \n array (\n 'id' => 2041,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'search-header',\n 'value' => 'Gefundene Ergebnisse: :count',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gefundene Ergebnisse: :count',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 41 => \n array (\n 'id' => 2042,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'search-translations',\n 'value' => 'Übersetzungen durchsuchen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Übersetzungen durchsuchen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 42 => \n array (\n 'id' => 2043,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'searching',\n 'value' => 'Suchen...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Suchen...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 43 => \n array (\n 'id' => 2044,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'set-usage-info',\n 'value' => 'Verwendungsinformationen setzen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Verwendungsinformationen setzen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 44 => \n array (\n 'id' => 2045,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show',\n 'value' => 'Zeige',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Zeige',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 45 => \n array (\n 'id' => 2046,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show-all',\n 'value' => 'Alle',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Alle',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 46 => \n array (\n 'id' => 2047,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show-changed',\n 'value' => 'Geänderte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Geänderte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 47 => \n array (\n 'id' => 2048,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show-deleted',\n 'value' => 'Gelöschte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gelöschte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 48 => \n array (\n 'id' => 2049,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show-empty',\n 'value' => 'Fehlende',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Fehlende',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 49 => \n array (\n 'id' => 2050,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show-matching',\n 'value' => 'Schlüssel filtern',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel filtern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 50 => \n array (\n 'id' => 2051,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show-matching-text',\n 'value' => 'Schlüssel-RegEx',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel-RegEx',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 51 => \n array (\n 'id' => 2052,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show-need-attention',\n 'value' => 'Brauchen Aufmerksamkeit',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Brauchen Aufmerksamkeit',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 52 => \n array (\n 'id' => 2053,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show-new',\n 'value' => 'Neue',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Neue',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 53 => \n array (\n 'id' => 2054,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show-nonempty',\n 'value' => 'Fehlende ausblenden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Fehlende ausblenden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 54 => \n array (\n 'id' => 2055,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show-source-refs',\n 'value' => 'Quellverweise anzeigen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Quellverweise anzeigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 55 => \n array (\n 'id' => 2056,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show-unpublished',\n 'value' => 'Unveröffentlichte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Unveröffentlichte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 56 => \n array (\n 'id' => 2057,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show-usage-info',\n 'value' => 'Verwendungsinformationen anzeigen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Verwendungsinformationen anzeigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 57 => \n array (\n 'id' => 2058,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show-used',\n 'value' => 'Verwendete',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Verwendete',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 58 => \n array (\n 'id' => 2059,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'source-refs-header',\n 'value' => 'Quellverweise für',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Quellverweise für',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 59 => \n array (\n 'id' => 2060,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'src-preview',\n 'value' => 'Von',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Von',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 60 => \n array (\n 'id' => 2061,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'srckey',\n 'value' => 'Von',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Von',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 61 => \n array (\n 'id' => 2062,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'srckeys',\n 'value' => 'Von Schlüsseln',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Von Schlüsseln',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 62 => \n array (\n 'id' => 2063,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'srckeys-placeholder',\n 'value' => 'Einen Schlüssel pro Zeile hinzufügen, mit oder ohne Gruppenpräfix',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Einen Schlüssel pro Zeile hinzufügen, mit oder ohne Gruppenpräfix',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 63 => \n array (\n 'id' => 2064,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'stats',\n 'value' => 'Dashboard-Ansicht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Dashboard-Ansicht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 64 => \n array (\n 'id' => 2065,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'suffixed-keyops',\n 'value' => 'Schlüsselsuffix-Operationen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüsselsuffix-Operationen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 65 => \n array (\n 'id' => 2066,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'suffixes',\n 'value' => 'Suffixe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Suffixe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 66 => \n array (\n 'id' => 2067,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'total',\n 'value' => 'Gesamt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gesamt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 67 => \n array (\n 'id' => 2068,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'translating-locale',\n 'value' => 'Übersetzen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Übersetzen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 68 => \n array (\n 'id' => 2069,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'translation',\n 'value' => 'Übersetzung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Übersetzung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 69 => \n array (\n 'id' => 2070,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'translation-manager',\n 'value' => 'Übersetzungs-Manager',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Übersetzungs-Manager',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 70 => \n array (\n 'id' => 2071,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'translation-ops',\n 'value' => 'Übersetzungshelfer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Übersetzungshelfer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 71 => \n array (\n 'id' => 2072,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'translations',\n 'value' => 'Übersetzungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Übersetzungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 72 => \n array (\n 'id' => 2073,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'user-admin',\n 'value' => 'Administrator',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Administrator',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 73 => \n array (\n 'id' => 2074,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'user-email',\n 'value' => 'E-Mail-Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'E-Mail-Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 74 => \n array (\n 'id' => 2075,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'user-id',\n 'value' => 'Benutzer-ID',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Benutzer-ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 75 => \n array (\n 'id' => 2076,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'user-locales',\n 'value' => 'Benutzerdefinierte Lokalen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Benutzerdefinierte Lokalen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 76 => \n array (\n 'id' => 2077,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'user-name',\n 'value' => 'Benutzername',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Benutzername',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 77 => \n array (\n 'id' => 2078,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'wildcard-keyops',\n 'value' => 'Platzhalter-Schlüsseloperationen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Platzhalter-Schlüsseloperationen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 78 => \n array (\n 'id' => 2079,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'zip-all',\n 'value' => 'Alle als ZIP komprimieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Alle als ZIP komprimieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 79 => \n array (\n 'id' => 2080,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'zip-group',\n 'value' => 'Gruppe als ZIP komprimieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gruppe als ZIP komprimieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 80 => \n array (\n 'id' => 2081,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'accepted',\n 'value' => 'The :attribute must be accepted.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss akzeptiert werden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 81 => \n array (\n 'id' => 2082,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'active_url',\n 'value' => 'The :attribute is not a valid URL.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist keine gültige URL.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 82 => \n array (\n 'id' => 2083,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'after',\n 'value' => 'The :attribute must be a date after :date.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss ein Datun nach dem :date sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 83 => \n array (\n 'id' => 2084,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'after_or_equal',\n 'value' => 'The :attribute must be a date after or equal to :date.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Das :attribute muss ein Datum nach oder gleich :date sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 84 => \n array (\n 'id' => 2085,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'alpha',\n 'value' => 'The :attribute may only contain letters.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute darf nur Buchstaben enthalten.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 85 => \n array (\n 'id' => 2086,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'alpha_dash',\n 'value' => 'The :attribute may only contain letters, numbers, and dashes.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute darf nur Buchstaben, Nummern und Bindestriche enthalten.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 86 => \n array (\n 'id' => 2087,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'alpha_num',\n 'value' => 'The :attribute may only contain letters and numbers.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute darf nur Buchstaben und Nummern enthalten.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 87 => \n array (\n 'id' => 2088,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'array',\n 'value' => 'The :attribute must be an array.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss ein Array sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 88 => \n array (\n 'id' => 2089,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'before',\n 'value' => 'The :attribute must be a date before :date.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss ein Datum vor dem :date sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 89 => \n array (\n 'id' => 2090,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'before_or_equal',\n 'value' => 'The :attribute must be a date before or equal to :date.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Das :attribute muss ein Datum vor oder gleich dem :date sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 90 => \n array (\n 'id' => 2091,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'between.array',\n 'value' => 'The :attribute must have between :min and :max items.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss zwischen :min und :max Einträge enthalten.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 91 => \n array (\n 'id' => 2092,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'between.file',\n 'value' => 'The :attribute must be between :min and :max kilobytes.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss zwischen :min und :max Kilobytes gross sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 92 => \n array (\n 'id' => 2093,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'between.numeric',\n 'value' => 'The :attribute must be between :min and :max.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss zwischen :min und :max sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 93 => \n array (\n 'id' => 2094,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'between.string',\n 'value' => 'The :attribute must be between :min and :max characters.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss zwischen :min und :max Zeichen lang sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 94 => \n array (\n 'id' => 2095,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'boolean',\n 'value' => 'The :attribute field must be true or false.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute darf nur Wahr oder Falsch sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 95 => \n array (\n 'id' => 2096,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'confirmed',\n 'value' => 'The :attribute confirmation does not match.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute Wiederholung stimmt nicht überein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 96 => \n array (\n 'id' => 2097,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'date',\n 'value' => 'The :attribute is not a valid date.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist kein gültiges Datum.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 97 => \n array (\n 'id' => 2098,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'date_format',\n 'value' => 'The :attribute does not match the format :format.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist nicht im Format: :format.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 98 => \n array (\n 'id' => 2099,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'different',\n 'value' => 'The :attribute and :other must be different.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute und :other müssen unterschiedlich sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 99 => \n array (\n 'id' => 2100,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'digits',\n 'value' => 'The :attribute must be :digits digits.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss :digits Ziffern enthalten.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 100 => \n array (\n 'id' => 2101,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'digits_between',\n 'value' => 'The :attribute must be between :min and :max digits.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss zwischen :min und :max Ziffern enthalten.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 101 => \n array (\n 'id' => 2102,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'dimensions',\n 'value' => 'The :attribute has invalid image dimensions.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Das :attribute hat ungültige Bildabmessungen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 102 => \n array (\n 'id' => 2103,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'distinct',\n 'value' => 'The :attribute field has a duplicate value.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Das :attribute Feld hat einen Wert, der bereits verwendet wurde.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 103 => \n array (\n 'id' => 2104,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'email',\n 'value' => 'The :attribute must be a valid email address.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss eine gültige E-Mailadresse sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 104 => \n array (\n 'id' => 2105,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'exists',\n 'value' => 'The selected :attribute is invalid.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist ungültig.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 105 => \n array (\n 'id' => 2106,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'file',\n 'value' => 'The :attribute must be a file.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Das :attribute muss eine Datei sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 106 => \n array (\n 'id' => 2107,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'filled',\n 'value' => 'The :attribute field must have a value.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist erforderlich.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 107 => \n array (\n 'id' => 2108,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'image',\n 'value' => 'The :attribute must be an image.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss ein Bild sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 108 => \n array (\n 'id' => 2109,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'in',\n 'value' => 'The selected :attribute is invalid.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist ungültig.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 109 => \n array (\n 'id' => 2110,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'in_array',\n 'value' => 'The :attribute field does not exist in :other.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Das :attribute-Feld existiert nicht in :other.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 110 => \n array (\n 'id' => 2111,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'integer',\n 'value' => 'The :attribute must be an integer.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss eine Ganzzahl sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 111 => \n array (\n 'id' => 2112,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'ip',\n 'value' => 'The :attribute must be a valid IP address.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss eine gültige IP-Adresse sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 112 => \n array (\n 'id' => 2113,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'ipv4',\n 'value' => 'The :attribute must be a valid IPv4 address.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a valid IPv4 address.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 113 => \n array (\n 'id' => 2114,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'ipv6',\n 'value' => 'The :attribute must be a valid IPv6 address.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a valid IPv6 address.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 114 => \n array (\n 'id' => 2115,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'json',\n 'value' => 'The :attribute must be a valid JSON string.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss eine gültige JSON-Zeichenkette sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 115 => \n array (\n 'id' => 2116,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'max.array',\n 'value' => 'The :attribute may not have more than :max items.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute darf nicht mehr Einträge enthalten als :max Einträge.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 116 => \n array (\n 'id' => 2117,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'max.file',\n 'value' => 'The :attribute may not be greater than :max kilobytes.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute darf nicht grösser sein als :max Kilobytes.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 117 => \n array (\n 'id' => 2118,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'max.numeric',\n 'value' => 'The :attribute may not be greater than :max.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute darf nicht grösser sein als :max.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 118 => \n array (\n 'id' => 2119,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'max.string',\n 'value' => 'The :attribute may not be greater than :max characters.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute darf nicht grösser sein als :max Zeichen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 119 => \n array (\n 'id' => 2120,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'mimes',\n 'value' => 'The :attribute must be a file of type: :values.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss eine Datei des folgenden Typs sein: :values.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 120 => \n array (\n 'id' => 2121,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'mimetypes',\n 'value' => 'The :attribute must be a file of type: :values.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The :attribute must be a file of type: :values.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 121 => \n array (\n 'id' => 2122,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'min.array',\n 'value' => 'The :attribute must have at least :min items.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss mindestens :min Einträge enthalten.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 122 => \n array (\n 'id' => 2123,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'min.file',\n 'value' => 'The :attribute must be at least :min kilobytes.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss mindestens :min Kilobytes gross sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 123 => \n array (\n 'id' => 2124,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'min.numeric',\n 'value' => 'The :attribute must be at least :min.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss mindestens :min sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 124 => \n array (\n 'id' => 2125,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'min.string',\n 'value' => 'The :attribute must be at least :min characters.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss mindestens :min Zeichen lang sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 125 => \n array (\n 'id' => 2126,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'not_in',\n 'value' => 'The selected :attribute is invalid.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist ungültig.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 126 => \n array (\n 'id' => 2127,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'numeric',\n 'value' => 'The :attribute must be a number.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss eine Zahl sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 127 => \n array (\n 'id' => 2128,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'present',\n 'value' => 'The :attribute field must be present.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Das :attribute-Feld muss vorhanden sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 128 => \n array (\n 'id' => 2129,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'regex',\n 'value' => 'The :attribute format is invalid.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute enthält ein ungültiges Format.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 129 => \n array (\n 'id' => 2130,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'required',\n 'value' => 'The :attribute field is required.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist erforderlich.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 130 => \n array (\n 'id' => 2131,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'required_if',\n 'value' => 'The :attribute field is required when :other is :value.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist erforderlich, wenn :other folgenden Wert hat: :value.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 131 => \n array (\n 'id' => 2132,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'required_unless',\n 'value' => 'The :attribute field is required unless :other is in :values.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist erforderlich, ausser :other enthält :values.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 132 => \n array (\n 'id' => 2133,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'required_with',\n 'value' => 'The :attribute field is required when :values is present.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist erforderlich, wenn :values vorhanden ist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 133 => \n array (\n 'id' => 2134,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'required_with_all',\n 'value' => 'The :attribute field is required when :values is present.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist erforderlich, wenn :values vorhanden ist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 134 => \n array (\n 'id' => 2135,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'required_without',\n 'value' => 'The :attribute field is required when :values is not present.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist erforderlich, wenn :values nicht vorhanden ist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 135 => \n array (\n 'id' => 2136,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'required_without_all',\n 'value' => 'The :attribute field is required when none of :values are present.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist erforderlich, wenn keine von :values vorhanden ist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 136 => \n array (\n 'id' => 2137,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'same',\n 'value' => 'The :attribute and :other must match.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute und :other müssen gleich sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 137 => \n array (\n 'id' => 2138,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'size.array',\n 'value' => 'The :attribute must contain :size items.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss :size Einträge enthalten.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 138 => \n array (\n 'id' => 2139,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'size.file',\n 'value' => 'The :attribute must be :size kilobytes.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss :size Kilobytes gross sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 139 => \n array (\n 'id' => 2140,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'size.numeric',\n 'value' => 'The :attribute must be :size.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss :size gross ein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 140 => \n array (\n 'id' => 2141,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'size.string',\n 'value' => 'The :attribute must be :size characters.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss :size Zeichen enthalten.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 141 => \n array (\n 'id' => 2142,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'string',\n 'value' => 'The :attribute must be a string.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss eine Zeichenkette sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 142 => \n array (\n 'id' => 2143,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'timezone',\n 'value' => 'The :attribute must be a valid zone.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss eine gültige Zeitzone sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 143 => \n array (\n 'id' => 2144,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'unique',\n 'value' => 'The :attribute has already been taken.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist schon vergeben.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 144 => \n array (\n 'id' => 2145,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'uploaded',\n 'value' => 'The :attribute failed to upload.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The :attribute failed to upload.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 145 => \n array (\n 'id' => 2146,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'url',\n 'value' => 'The :attribute format is invalid.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute Format ist ungültig.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 146 => \n array (\n 'id' => 2147,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'custom.attribute-name.rule-name',\n 'value' => 'custom-message',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Individuelle-Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 147 => \n array (\n 'id' => 2148,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'title-cancel-changes',\n 'value' => 'Abbrechen',\n 'created_at' => '2017-08-27 21:25:50',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Abbrechen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 148 => \n array (\n 'id' => 2149,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'title-capitalize',\n 'value' => 'Capitalize text',\n 'created_at' => '2017-08-27 21:26:01',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Capitalize text',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 149 => \n array (\n 'id' => 2150,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'title-capitalize-first-word',\n 'value' => 'Capitalize first word',\n 'created_at' => '2017-08-27 21:26:10',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Capitalize first word',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 150 => \n array (\n 'id' => 2151,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'title-clean-html-markdown',\n 'value' => 'Clean HTML markdown',\n 'created_at' => '2017-08-27 21:26:19',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Clean HTML markdown',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 151 => \n array (\n 'id' => 2152,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'title-convert-key',\n 'value' => 'Convert translation key to text',\n 'created_at' => '2017-08-27 21:26:26',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Convert translation key to text',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 152 => \n array (\n 'id' => 2153,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'title-generate-plurals',\n 'value' => 'Generate plural forms',\n 'created_at' => '2017-08-27 21:26:31',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Generate plural forms',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 153 => \n array (\n 'id' => 2154,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'title-load-last',\n 'value' => 'Load last published/imported value',\n 'created_at' => '2017-08-27 21:26:37',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Load last published/imported value',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 154 => \n array (\n 'id' => 2155,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'title-lowercase',\n 'value' => 'Lowercase text',\n 'created_at' => '2017-08-27 21:26:44',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Lowercase text',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 155 => \n array (\n 'id' => 2156,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'title-reset-editor',\n 'value' => 'Reset editor contents',\n 'created_at' => '2017-08-27 21:26:50',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Reset editor contents',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 156 => \n array (\n 'id' => 2157,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'title-save-changes',\n 'value' => 'Save changes',\n 'created_at' => '2017-08-27 21:26:56',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Save changes',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 157 => \n array (\n 'id' => 2158,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'title-simulated-copy',\n 'value' => 'Copy text to simulated clipboard (page refresh clears contents)',\n 'created_at' => '2017-08-27 21:27:04',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Copy text to simulated clipboard (page refresh clears contents)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 158 => \n array (\n 'id' => 2159,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'title-simulated-paste',\n 'value' => 'Paste text from simulated clipboard',\n 'created_at' => '2017-08-27 21:27:10',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Paste text from simulated clipboard',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 159 => \n array (\n 'id' => 2160,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'title-translate',\n 'value' => 'Translate',\n 'created_at' => '2017-08-27 21:27:16',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Translate',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 160 => \n array (\n 'id' => 2161,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_groups',\n 'key' => 'working_groups_title',\n 'value' => 'foodsharing Arbeitsgruppen',\n 'created_at' => '2017-08-27 21:27:16',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'foodsharing Arbeitsgruppen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 161 => \n array (\n 'id' => 2162,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_groups',\n 'key' => 'working_groups_title',\n 'value' => 'foodsharing working-groups',\n 'created_at' => '2017-08-27 21:27:16',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'foodsharing working-groups',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 162 => \n array (\n 'id' => 2163,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.roles.created',\n 'value' => 'The role was successfully created.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The role was successfully created.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 163 => \n array (\n 'id' => 2164,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.roles.deleted',\n 'value' => 'The role was successfully deleted.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The role was successfully deleted.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 164 => \n array (\n 'id' => 2165,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.roles.updated',\n 'value' => 'The role was successfully updated.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The role was successfully updated.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 165 => \n array (\n 'id' => 2166,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.users.cant_resend_confirmation',\n 'value' => 'The application is currently set to manually approve users.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The application is currently set to manually approve users.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 166 => \n array (\n 'id' => 2167,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.users.confirmation_email',\n 'value' => 'A new confirmation e-mail has been sent to the address on file.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'A new confirmation e-mail has been sent to the address on file.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 167 => \n array (\n 'id' => 2168,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.users.confirmed',\n 'value' => 'The user was successfully confirmed.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The user was successfully confirmed.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 168 => \n array (\n 'id' => 2169,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.users.created',\n 'value' => 'The user was successfully created.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The user was successfully created.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 169 => \n array (\n 'id' => 2170,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.users.deleted',\n 'value' => 'The user was successfully deleted.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The user was successfully deleted.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 170 => \n array (\n 'id' => 2171,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.users.deleted_permanently',\n 'value' => 'The user was deleted permanently.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The user was deleted permanently.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 171 => \n array (\n 'id' => 2172,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.users.restored',\n 'value' => 'The user was successfully restored.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The user was successfully restored.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 172 => \n array (\n 'id' => 2173,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.users.session_cleared',\n 'value' => 'The user\\'s session was successfully cleared.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The user\\'s session was successfully cleared.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 173 => \n array (\n 'id' => 2174,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.users.social_deleted',\n 'value' => 'Social Account Successfully Removed',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Social Account Successfully Removed',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 174 => \n array (\n 'id' => 2175,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.users.unconfirmed',\n 'value' => 'The user was successfully un-confirmed',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The user was successfully un-confirmed',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 175 => \n array (\n 'id' => 2176,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.users.updated',\n 'value' => 'The user was successfully updated.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The user was successfully updated.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 176 => \n array (\n 'id' => 2177,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.users.updated_password',\n 'value' => 'The user\\'s password was successfully updated.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The user\\'s password was successfully updated.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 177 => \n array (\n 'id' => 2178,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'frontend.contact.sent',\n 'value' => 'Your information was successfully sent. We will respond back to the e-mail provided as soon as we can.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your information was successfully sent. We will respond back to the e-mail provided as soon as we can.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 178 => \n array (\n 'id' => 2179,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'auth',\n 'key' => 'general_error',\n 'value' => 'You do not have access to do that.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You do not have access to do that.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 179 => \n array (\n 'id' => 2180,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'auth',\n 'key' => 'socialite.unacceptable',\n 'value' => ':provider is not an acceptable login type.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':provider is not an acceptable login type.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 180 => \n array (\n 'id' => 2181,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'auth',\n 'key' => 'unknown',\n 'value' => 'An unknown error occurred',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'An unknown error occurred',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 181 => \n array (\n 'id' => 2182,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.activate',\n 'value' => 'Activate',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Activate',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 182 => \n array (\n 'id' => 2183,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.change_password',\n 'value' => 'Change Password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Change Password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 183 => \n array (\n 'id' => 2184,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.clear_session',\n 'value' => 'Clear Session',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Clear Session',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 184 => \n array (\n 'id' => 2185,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.confirm',\n 'value' => 'Confirm',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Confirm',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 185 => \n array (\n 'id' => 2186,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.deactivate',\n 'value' => 'Deactivate',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Deactivate',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 186 => \n array (\n 'id' => 2187,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.delete_permanently',\n 'value' => 'Delete Permanently',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Delete Permanently',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 187 => \n array (\n 'id' => 2188,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.login_as',\n 'value' => 'Login As :user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Login As :user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 188 => \n array (\n 'id' => 2189,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.resend_email',\n 'value' => 'Resend Confirmation E-mail',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Resend Confirmation E-mail',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 189 => \n array (\n 'id' => 2190,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.restore_user',\n 'value' => 'Restore User',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Restore User',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 190 => \n array (\n 'id' => 2191,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.unconfirm',\n 'value' => 'Un-confirm',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Un-confirm',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 191 => \n array (\n 'id' => 2192,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.unlink',\n 'value' => 'Unlink',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Unlink',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 192 => \n array (\n 'id' => 2193,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'emails.auth.confirm_account',\n 'value' => 'Confirm Account',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Confirm Account',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 193 => \n array (\n 'id' => 2194,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'emails.auth.reset_password',\n 'value' => 'Reset Password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Reset Password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 194 => \n array (\n 'id' => 2195,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'general.cancel',\n 'value' => 'Cancel',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Cancel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 195 => \n array (\n 'id' => 2196,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'general.continue',\n 'value' => 'Continue',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Continue',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 196 => \n array (\n 'id' => 2197,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'general.crud.create',\n 'value' => 'Create',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Create',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 197 => \n array (\n 'id' => 2198,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'general.crud.delete',\n 'value' => 'Delete',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Delete',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 198 => \n array (\n 'id' => 2199,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'general.crud.edit',\n 'value' => 'Edit',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Edit',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 199 => \n array (\n 'id' => 2200,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'general.crud.update',\n 'value' => 'Update',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Update',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 200 => \n array (\n 'id' => 2201,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'general.crud.view',\n 'value' => 'View',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'View',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 201 => \n array (\n 'id' => 2202,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'general.save',\n 'value' => 'Save',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Save',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 202 => \n array (\n 'id' => 2203,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'general.view',\n 'value' => 'View',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'View',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 203 => \n array (\n 'id' => 2204,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.already_exists',\n 'value' => 'That role already exists. Please choose a different name.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'That role already exists. Please choose a different name.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 204 => \n array (\n 'id' => 2205,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.cant_delete_admin',\n 'value' => 'You can not delete the Administrator role.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You can not delete the Administrator role.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 205 => \n array (\n 'id' => 2206,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.create_error',\n 'value' => 'There was a problem creating this role. Please try again.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem creating this role. Please try again.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 206 => \n array (\n 'id' => 2207,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.delete_error',\n 'value' => 'There was a problem deleting this role. Please try again.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem deleting this role. Please try again.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 207 => \n array (\n 'id' => 2208,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.has_users',\n 'value' => 'You can not delete a role with associated users.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You can not delete a role with associated users.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 208 => \n array (\n 'id' => 2209,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.needs_permission',\n 'value' => 'You must select at least one permission for this role.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You must select at least one permission for this role.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 209 => \n array (\n 'id' => 2210,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.not_found',\n 'value' => 'That role does not exist.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'That role does not exist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 210 => \n array (\n 'id' => 2211,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.update_error',\n 'value' => 'There was a problem updating this role. Please try again.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem updating this role. Please try again.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 211 => \n array (\n 'id' => 2212,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.already_confirmed',\n 'value' => 'This user is already confirmed.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'This user is already confirmed.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 212 => \n array (\n 'id' => 2213,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_confirm',\n 'value' => 'There was a problem confirming the user account.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem confirming the user account.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 213 => \n array (\n 'id' => 2214,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_deactivate_self',\n 'value' => 'You can not do that to yourself.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You can not do that to yourself.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 214 => \n array (\n 'id' => 2215,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_delete_admin',\n 'value' => 'You can not delete the super administrator.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You can not delete the super administrator.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 215 => \n array (\n 'id' => 2216,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_delete_self',\n 'value' => 'You can not delete yourself.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You can not delete yourself.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 216 => \n array (\n 'id' => 2217,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_delete_own_session',\n 'value' => 'You can not delete your own session.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You can not delete your own session.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 217 => \n array (\n 'id' => 2218,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_restore',\n 'value' => 'This user is not deleted so it can not be restored.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'This user is not deleted so it can not be restored.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 218 => \n array (\n 'id' => 2219,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_unconfirm_admin',\n 'value' => 'You can not un-confirm the super administrator.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You can not un-confirm the super administrator.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 219 => \n array (\n 'id' => 2220,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_unconfirm_self',\n 'value' => 'You can not un-confirm yourself.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You can not un-confirm yourself.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 220 => \n array (\n 'id' => 2221,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.create_error',\n 'value' => 'There was a problem creating this user. Please try again.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem creating this user. Please try again.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 221 => \n array (\n 'id' => 2222,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.delete_error',\n 'value' => 'There was a problem deleting this user. Please try again.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem deleting this user. Please try again.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 222 => \n array (\n 'id' => 2223,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.delete_first',\n 'value' => 'This user must be deleted first before it can be destroyed permanently.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'This user must be deleted first before it can be destroyed permanently.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 223 => \n array (\n 'id' => 2224,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.email_error',\n 'value' => 'That email address belongs to a different user.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'That email address belongs to a different user.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 224 => \n array (\n 'id' => 2225,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.mark_error',\n 'value' => 'There was a problem updating this user. Please try again.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem updating this user. Please try again.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 225 => \n array (\n 'id' => 2226,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.not_confirmed',\n 'value' => 'This user is not confirmed.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'This user is not confirmed.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 226 => \n array (\n 'id' => 2227,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.not_found',\n 'value' => 'That user does not exist.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'That user does not exist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 227 => \n array (\n 'id' => 2228,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.restore_error',\n 'value' => 'There was a problem restoring this user. Please try again.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem restoring this user. Please try again.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 228 => \n array (\n 'id' => 2229,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.role_needed_create',\n 'value' => 'You must choose at lease one role.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You must choose at lease one role.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 229 => \n array (\n 'id' => 2230,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.role_needed',\n 'value' => 'You must choose at least one role.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You must choose at least one role.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 230 => \n array (\n 'id' => 2231,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.session_wrong_driver',\n 'value' => 'Your session driver must be set to database to use this feature.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your session driver must be set to database to use this feature.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 231 => \n array (\n 'id' => 2232,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.social_delete_error',\n 'value' => 'There was a problem removing the social account from the user.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem removing the social account from the user.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 232 => \n array (\n 'id' => 2233,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.update_error',\n 'value' => 'There was a problem updating this user. Please try again.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem updating this user. Please try again.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 233 => \n array (\n 'id' => 2234,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.update_password_error',\n 'value' => 'There was a problem changing this users password. Please try again.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem changing this users password. Please try again.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 234 => \n array (\n 'id' => 2235,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.already_confirmed',\n 'value' => 'Your account is already confirmed.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your account is already confirmed.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 235 => \n array (\n 'id' => 2236,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.confirm',\n 'value' => 'Confirm your account!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Confirm your account!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 236 => \n array (\n 'id' => 2237,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.created_confirm',\n 'value' => 'Your account was successfully created. We have sent you an e-mail to confirm your account.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your account was successfully created. We have sent you an e-mail to confirm your account.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 237 => \n array (\n 'id' => 2238,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.created_pending',\n 'value' => 'Your account was successfully created and is pending approval. An e-mail will be sent when your account is approved.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your account was successfully created and is pending approval. An e-mail will be sent when your account is approved.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 238 => \n array (\n 'id' => 2239,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.mismatch',\n 'value' => 'Your confirmation code does not match.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your confirmation code does not match.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 239 => \n array (\n 'id' => 2240,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.not_found',\n 'value' => 'That confirmation code does not exist.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'That confirmation code does not exist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 240 => \n array (\n 'id' => 2241,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.pending',\n 'value' => 'Your account is currently pending approval.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your account is currently pending approval.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 241 => \n array (\n 'id' => 2242,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.resend',\n 'value' => 'Your account is not confirmed. Please click the confirmation link in your e-mail, or <a href=\"http://foodsharing.app/refactor/account/confirm/resend/:user_id\">click here</a> to resend the confirmation e-mail.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your account is not confirmed. Please click the confirmation link in your e-mail, or <a href=\"http://foodsharing.app/refactor/account/confirm/resend/:user_id\">click here</a> to resend the confirmation e-mail.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 242 => \n array (\n 'id' => 2243,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.success',\n 'value' => 'Your account has been successfully confirmed!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your account has been successfully confirmed!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 243 => \n array (\n 'id' => 2244,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.resent',\n 'value' => 'A new confirmation e-mail has been sent to the address on file.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'A new confirmation e-mail has been sent to the address on file.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 244 => \n array (\n 'id' => 2245,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.deactivated',\n 'value' => 'Your account has been deactivated.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your account has been deactivated.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 245 => \n array (\n 'id' => 2246,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.email_taken',\n 'value' => 'That e-mail address is already taken.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'That e-mail address is already taken.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 246 => \n array (\n 'id' => 2247,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.password.change_mismatch',\n 'value' => 'That is not your old password.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'That is not your old password.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 247 => \n array (\n 'id' => 2248,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.password.reset_problem',\n 'value' => 'There was a problem resetting your password. Please resend the password reset email.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem resetting your password. Please resend the password reset email.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 248 => \n array (\n 'id' => 2249,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.registration_disabled',\n 'value' => 'Registration is currently closed.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Registration is currently closed.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 249 => \n array (\n 'id' => 2250,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.none',\n 'value' => 'There is no recent history.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There is no recent history.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 250 => \n array (\n 'id' => 2251,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.none_for_type',\n 'value' => 'There is no history for this type.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There is no history for this type.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 251 => \n array (\n 'id' => 2252,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.none_for_entity',\n 'value' => 'There is no history for this :entity.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There is no history for this :entity.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 252 => \n array (\n 'id' => 2253,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.recent_history',\n 'value' => 'Recent History',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Recent History',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 253 => \n array (\n 'id' => 2254,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.roles.created',\n 'value' => 'created role',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'created role',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 254 => \n array (\n 'id' => 2255,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.roles.deleted',\n 'value' => 'deleted role',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'deleted role',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 255 => \n array (\n 'id' => 2256,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.roles.updated',\n 'value' => 'updated role',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'updated role',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 256 => \n array (\n 'id' => 2257,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.users.changed_password',\n 'value' => 'changed password for user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'changed password for user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 257 => \n array (\n 'id' => 2258,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.users.confirmed',\n 'value' => 'confirmed user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'confirmed user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 258 => \n array (\n 'id' => 2259,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.users.created',\n 'value' => 'created user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'created user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 259 => \n array (\n 'id' => 2260,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.users.deactivated',\n 'value' => 'deactivated user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'deactivated user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 260 => \n array (\n 'id' => 2261,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.users.deleted',\n 'value' => 'deleted user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'deleted user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 261 => \n array (\n 'id' => 2262,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.users.deleted_social',\n 'value' => 'deleted social account',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'deleted social account',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 262 => \n array (\n 'id' => 2263,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.users.permanently_deleted',\n 'value' => 'permanently deleted user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'permanently deleted user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 263 => \n array (\n 'id' => 2264,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.users.updated',\n 'value' => 'updated user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'updated user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 264 => \n array (\n 'id' => 2265,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.users.unconfirmed',\n 'value' => 'un-confirmed user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'un-confirmed user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 265 => \n array (\n 'id' => 2266,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.users.reactivated',\n 'value' => 'reactivated user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'reactivated user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 266 => \n array (\n 'id' => 2267,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.users.restored',\n 'value' => 'restored user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'restored user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 267 => \n array (\n 'id' => 2268,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'http',\n 'key' => '404.title',\n 'value' => 'Page Not Found',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Page Not Found',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 268 => \n array (\n 'id' => 2269,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'http',\n 'key' => '404.description',\n 'value' => 'Sorry, but the page you were trying to view does not exist.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Sorry, but the page you were trying to view does not exist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 269 => \n array (\n 'id' => 2270,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'http',\n 'key' => '503.title',\n 'value' => 'Be right back.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Be right back.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 270 => \n array (\n 'id' => 2271,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'http',\n 'key' => '503.description',\n 'value' => 'Be right back.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Be right back.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 271 => \n array (\n 'id' => 2272,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'general.all',\n 'value' => 'All',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'All',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 272 => \n array (\n 'id' => 2273,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'general.yes',\n 'value' => 'Yes',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Yes',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 273 => \n array (\n 'id' => 2274,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'general.no',\n 'value' => 'No',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'No',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 274 => \n array (\n 'id' => 2275,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'general.custom',\n 'value' => 'Custom',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Custom',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 275 => \n array (\n 'id' => 2276,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'general.actions',\n 'value' => 'Actions',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Actions',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 276 => \n array (\n 'id' => 2277,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'general.active',\n 'value' => 'Active',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Active',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 277 => \n array (\n 'id' => 2278,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'general.buttons.save',\n 'value' => 'Save',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Save',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 278 => \n array (\n 'id' => 2279,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'general.buttons.update',\n 'value' => 'Update',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Update',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 279 => \n array (\n 'id' => 2280,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'general.hide',\n 'value' => 'Hide',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Hide',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 280 => \n array (\n 'id' => 2281,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'general.inactive',\n 'value' => 'Inactive',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Inactive',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 281 => \n array (\n 'id' => 2282,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'general.none',\n 'value' => 'None',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'None',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 282 => \n array (\n 'id' => 2283,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'general.show',\n 'value' => 'Show',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Show',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 283 => \n array (\n 'id' => 2284,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'general.toggle_navigation',\n 'value' => 'Toggle Navigation',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Toggle Navigation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 284 => \n array (\n 'id' => 2285,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.create',\n 'value' => 'Create Role',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Create Role',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 285 => \n array (\n 'id' => 2286,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.edit',\n 'value' => 'Edit Role',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Edit Role',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 286 => \n array (\n 'id' => 2287,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.management',\n 'value' => 'Role Management',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Role Management',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 287 => \n array (\n 'id' => 2288,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.table.number_of_users',\n 'value' => 'Number of Users',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Number of Users',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 288 => \n array (\n 'id' => 2289,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.table.permissions',\n 'value' => 'Permissions',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Permissions',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 289 => \n array (\n 'id' => 2290,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.table.role',\n 'value' => 'Role',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Role',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 290 => \n array (\n 'id' => 2291,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.table.sort',\n 'value' => 'Sort',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Sort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 291 => \n array (\n 'id' => 2292,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.table.total',\n 'value' => 'role total|roles total',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'role total|roles total',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 292 => \n array (\n 'id' => 2293,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.active',\n 'value' => 'Active Users',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Active Users',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 293 => \n array (\n 'id' => 2294,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.all_permissions',\n 'value' => 'All Permissions',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'All Permissions',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 294 => \n array (\n 'id' => 2295,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.change_password',\n 'value' => 'Change Password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Change Password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 295 => \n array (\n 'id' => 2296,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.change_password_for',\n 'value' => 'Change Password for :user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Change Password for :user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 296 => \n array (\n 'id' => 2297,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.create',\n 'value' => 'Create User',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Create User',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 297 => \n array (\n 'id' => 2298,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.deactivated',\n 'value' => 'Deactivated Users',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Deactivated Users',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 298 => \n array (\n 'id' => 2299,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.deleted',\n 'value' => 'Deleted Users',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Deleted Users',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 299 => \n array (\n 'id' => 2300,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.edit',\n 'value' => 'Edit User',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Edit User',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 300 => \n array (\n 'id' => 2301,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.management',\n 'value' => 'User Management',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'User Management',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 301 => \n array (\n 'id' => 2302,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.no_permissions',\n 'value' => 'No Permissions',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'No Permissions',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 302 => \n array (\n 'id' => 2303,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.no_roles',\n 'value' => 'No Roles to set.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'No Roles to set.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 303 => \n array (\n 'id' => 2304,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.permissions',\n 'value' => 'Permissions',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Permissions',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 304 => \n array (\n 'id' => 2305,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.confirmed',\n 'value' => 'Confirmed',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Confirmed',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 305 => \n array (\n 'id' => 2306,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.created',\n 'value' => 'Created',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Created',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 306 => \n array (\n 'id' => 2307,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.email',\n 'value' => 'E-mail',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'E-mail',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 307 => \n array (\n 'id' => 2308,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.id',\n 'value' => 'ID',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 308 => \n array (\n 'id' => 2309,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.last_updated',\n 'value' => 'Last Updated',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Last Updated',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 309 => \n array (\n 'id' => 2310,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.name',\n 'value' => 'Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 310 => \n array (\n 'id' => 2311,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.first_name',\n 'value' => 'First Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'First Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 311 => \n array (\n 'id' => 2312,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.last_name',\n 'value' => 'Last Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Last Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 312 => \n array (\n 'id' => 2313,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.no_deactivated',\n 'value' => 'No Deactivated Users',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'No Deactivated Users',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 313 => \n array (\n 'id' => 2314,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.no_deleted',\n 'value' => 'No Deleted Users',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'No Deleted Users',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 314 => \n array (\n 'id' => 2315,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.roles',\n 'value' => 'Roles',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Roles',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 315 => \n array (\n 'id' => 2316,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.social',\n 'value' => 'Social',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Social',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 316 => \n array (\n 'id' => 2317,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.total',\n 'value' => 'user total|users total',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'user total|users total',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 317 => \n array (\n 'id' => 2318,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.titles.overview',\n 'value' => 'Overview',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Overview',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 318 => \n array (\n 'id' => 2319,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.titles.history',\n 'value' => 'History',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'History',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 319 => \n array (\n 'id' => 2320,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.avatar',\n 'value' => 'Avatar',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Avatar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 320 => \n array (\n 'id' => 2321,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.confirmed',\n 'value' => 'Confirmed',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Confirmed',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 321 => \n array (\n 'id' => 2322,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.created_at',\n 'value' => 'Created At',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Created At',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 322 => \n array (\n 'id' => 2323,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.deleted_at',\n 'value' => 'Deleted At',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Deleted At',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 323 => \n array (\n 'id' => 2324,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.email',\n 'value' => 'E-mail',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'E-mail',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 324 => \n array (\n 'id' => 2325,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.last_updated',\n 'value' => 'Last Updated',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Last Updated',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 325 => \n array (\n 'id' => 2326,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.name',\n 'value' => 'Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 326 => \n array (\n 'id' => 2327,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.first_name',\n 'value' => 'First Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'First Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 327 => \n array (\n 'id' => 2328,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.last_name',\n 'value' => 'Last Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Last Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 328 => \n array (\n 'id' => 2329,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.status',\n 'value' => 'Status',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 329 => \n array (\n 'id' => 2330,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.view',\n 'value' => 'View User',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'View User',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 330 => \n array (\n 'id' => 2331,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.auth.login_box_title',\n 'value' => 'Login',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Login',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 331 => \n array (\n 'id' => 2332,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.auth.login_button',\n 'value' => 'Login',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Login',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 332 => \n array (\n 'id' => 2333,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.auth.login_with',\n 'value' => 'Login with :social_media',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Login with :social_media',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 333 => \n array (\n 'id' => 2334,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.auth.register_box_title',\n 'value' => 'Register',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Register',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 334 => \n array (\n 'id' => 2335,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.auth.register_button',\n 'value' => 'Register',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Register',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 335 => \n array (\n 'id' => 2336,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.auth.remember_me',\n 'value' => 'Remember Me',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Remember Me',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 336 => \n array (\n 'id' => 2337,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.contact.box_title',\n 'value' => 'Contact Us',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Contact Us',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 337 => \n array (\n 'id' => 2338,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.contact.button',\n 'value' => 'Send Information',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Send Information',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 338 => \n array (\n 'id' => 2339,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.passwords.forgot_password',\n 'value' => 'Forgot Your Password?',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Forgot Your Password?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 339 => \n array (\n 'id' => 2340,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.passwords.reset_password_box_title',\n 'value' => 'Reset Password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Reset Password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 340 => \n array (\n 'id' => 2341,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.passwords.reset_password_button',\n 'value' => 'Reset Password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Reset Password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 341 => \n array (\n 'id' => 2342,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.passwords.send_password_reset_link_button',\n 'value' => 'Send Password Reset Link',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Send Password Reset Link',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 342 => \n array (\n 'id' => 2343,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.macros.country.alpha',\n 'value' => 'Country Alpha Codes',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Country Alpha Codes',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 343 => \n array (\n 'id' => 2344,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.macros.country.alpha2',\n 'value' => 'Country Alpha 2 Codes',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Country Alpha 2 Codes',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 344 => \n array (\n 'id' => 2345,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.macros.country.alpha3',\n 'value' => 'Country Alpha 3 Codes',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Country Alpha 3 Codes',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 345 => \n array (\n 'id' => 2346,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.macros.country.numeric',\n 'value' => 'Country Numeric Codes',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Country Numeric Codes',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 346 => \n array (\n 'id' => 2347,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.macros.macro_examples',\n 'value' => 'Macro Examples',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Macro Examples',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 347 => \n array (\n 'id' => 2348,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.macros.state.mexico',\n 'value' => 'Mexico State List',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Mexico State List',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 348 => \n array (\n 'id' => 2349,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.macros.state.us.us',\n 'value' => 'US States',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'US States',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 349 => \n array (\n 'id' => 2350,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.macros.state.us.outlying',\n 'value' => 'US Outlying Territories',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'US Outlying Territories',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 350 => \n array (\n 'id' => 2351,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.macros.state.us.armed',\n 'value' => 'US Armed Forces',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'US Armed Forces',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 351 => \n array (\n 'id' => 2352,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.macros.territories.canada',\n 'value' => 'Canada Province & Territories List',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Canada Province & Territories List',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 352 => \n array (\n 'id' => 2353,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.macros.timezone',\n 'value' => 'Timezone',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Timezone',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 353 => \n array (\n 'id' => 2354,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.user.passwords.change',\n 'value' => 'Change Password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Change Password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 354 => \n array (\n 'id' => 2355,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.avatar',\n 'value' => 'Avatar',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Avatar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 355 => \n array (\n 'id' => 2356,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.created_at',\n 'value' => 'Created At',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Created At',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 356 => \n array (\n 'id' => 2357,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.edit_information',\n 'value' => 'Edit Information',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Edit Information',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 357 => \n array (\n 'id' => 2358,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.email',\n 'value' => 'E-mail',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'E-mail',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 358 => \n array (\n 'id' => 2359,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.last_updated',\n 'value' => 'Last Updated',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Last Updated',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 359 => \n array (\n 'id' => 2360,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.name',\n 'value' => 'Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 360 => \n array (\n 'id' => 2361,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.first_name',\n 'value' => 'First Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'First Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 361 => \n array (\n 'id' => 2362,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.last_name',\n 'value' => 'Last Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Last Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 362 => \n array (\n 'id' => 2363,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.update_information',\n 'value' => 'Update Information',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Update Information',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 363 => \n array (\n 'id' => 2364,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.title',\n 'value' => 'Access Management',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Access Management',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 364 => \n array (\n 'id' => 2365,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.roles.all',\n 'value' => 'All Roles',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'All Roles',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 365 => \n array (\n 'id' => 2366,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.roles.create',\n 'value' => 'Create Role',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Create Role',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 366 => \n array (\n 'id' => 2367,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.roles.edit',\n 'value' => 'Edit Role',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Edit Role',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 367 => \n array (\n 'id' => 2368,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.roles.management',\n 'value' => 'Role Management',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Role Management',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 368 => \n array (\n 'id' => 2369,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.roles.main',\n 'value' => 'Roles',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Roles',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 369 => \n array (\n 'id' => 2370,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.users.all',\n 'value' => 'All Users',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'All Users',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 370 => \n array (\n 'id' => 2371,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.users.change-password',\n 'value' => 'Change Password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Change Password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 371 => \n array (\n 'id' => 2372,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.users.create',\n 'value' => 'Create User',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Create User',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 372 => \n array (\n 'id' => 2373,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.users.deactivated',\n 'value' => 'Deactivated Users',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Deactivated Users',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 373 => \n array (\n 'id' => 2374,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.users.deleted',\n 'value' => 'Deleted Users',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Deleted Users',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 374 => \n array (\n 'id' => 2375,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.users.edit',\n 'value' => 'Edit User',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Edit User',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 375 => \n array (\n 'id' => 2376,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.users.main',\n 'value' => 'Users',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Users',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 376 => \n array (\n 'id' => 2377,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.users.view',\n 'value' => 'View User',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'View User',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 377 => \n array (\n 'id' => 2378,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.log-viewer.main',\n 'value' => 'Log Viewer',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Log Viewer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 378 => \n array (\n 'id' => 2379,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.log-viewer.dashboard',\n 'value' => 'Dashboard',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dashboard',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 379 => \n array (\n 'id' => 2380,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.log-viewer.logs',\n 'value' => 'Logs',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Logs',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 380 => \n array (\n 'id' => 2381,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.sidebar.dashboard',\n 'value' => 'Dashboard',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dashboard',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 381 => \n array (\n 'id' => 2382,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.sidebar.general',\n 'value' => 'General',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'General',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 382 => \n array (\n 'id' => 2383,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.sidebar.system',\n 'value' => 'System',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'System',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 383 => \n array (\n 'id' => 2384,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.language',\n 'value' => 'Language',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Language',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 384 => \n array (\n 'id' => 2385,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.ar',\n 'value' => 'Arabic',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Arabic',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 385 => \n array (\n 'id' => 2386,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.zh',\n 'value' => 'Chinese Simplified',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Chinese Simplified',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 386 => \n array (\n 'id' => 2387,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.zh-TW',\n 'value' => 'Chinese Traditional',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Chinese Traditional',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 387 => \n array (\n 'id' => 2388,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.da',\n 'value' => 'Danish',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Danish',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 388 => \n array (\n 'id' => 2389,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.de',\n 'value' => 'German',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'German',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 389 => \n array (\n 'id' => 2390,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.el',\n 'value' => 'Greek',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Greek',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 390 => \n array (\n 'id' => 2391,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.en',\n 'value' => 'English',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'English',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 391 => \n array (\n 'id' => 2392,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.es',\n 'value' => 'Spanish',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Spanish',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 392 => \n array (\n 'id' => 2393,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.fr',\n 'value' => 'French',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'French',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 393 => \n array (\n 'id' => 2394,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.id',\n 'value' => 'Indonesian',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Indonesian',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 394 => \n array (\n 'id' => 2395,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.it',\n 'value' => 'Italian',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Italian',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 395 => \n array (\n 'id' => 2396,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.ja',\n 'value' => 'Japanese',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Japanese',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 396 => \n array (\n 'id' => 2397,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.nl',\n 'value' => 'Dutch',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dutch',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 397 => \n array (\n 'id' => 2398,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.pt_BR',\n 'value' => 'Brazilian Portuguese',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Brazilian Portuguese',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 398 => \n array (\n 'id' => 2399,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.ru',\n 'value' => 'Russian',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Russian',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 399 => \n array (\n 'id' => 2400,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.sv',\n 'value' => 'Swedish',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Swedish',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 400 => \n array (\n 'id' => 2401,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.th',\n 'value' => 'Thai',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Thai',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 401 => \n array (\n 'id' => 2402,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.tr',\n 'value' => 'Turkish',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Turkish',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 402 => \n array (\n 'id' => 2403,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'navs',\n 'key' => 'general.home',\n 'value' => 'Home',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Home',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 403 => \n array (\n 'id' => 2404,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'navs',\n 'key' => 'general.logout',\n 'value' => 'Logout',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Logout',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 404 => \n array (\n 'id' => 2405,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'navs',\n 'key' => 'frontend.contact',\n 'value' => 'Contact',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Contact',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 405 => \n array (\n 'id' => 2406,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'navs',\n 'key' => 'frontend.dashboard',\n 'value' => 'Dashboard',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dashboard',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 406 => \n array (\n 'id' => 2407,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'navs',\n 'key' => 'frontend.login',\n 'value' => 'Login',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Login',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 407 => \n array (\n 'id' => 2408,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'navs',\n 'key' => 'frontend.macros',\n 'value' => 'Macros',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Macros',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 408 => \n array (\n 'id' => 2409,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'navs',\n 'key' => 'frontend.register',\n 'value' => 'Register',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Register',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 409 => \n array (\n 'id' => 2410,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'navs',\n 'key' => 'frontend.user.account',\n 'value' => 'My Account',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'My Account',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 410 => \n array (\n 'id' => 2411,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'navs',\n 'key' => 'frontend.user.administration',\n 'value' => 'Administration',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Administration',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 411 => \n array (\n 'id' => 2412,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'navs',\n 'key' => 'frontend.user.change_password',\n 'value' => 'Change Password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Change Password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 412 => \n array (\n 'id' => 2413,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'navs',\n 'key' => 'frontend.user.my_information',\n 'value' => 'My Information',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'My Information',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 413 => \n array (\n 'id' => 2414,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'navs',\n 'key' => 'frontend.user.profile',\n 'value' => 'Profile',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Profile',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 414 => \n array (\n 'id' => 2415,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'roles',\n 'key' => 'administrator',\n 'value' => 'Administrator',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Administrator',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 415 => \n array (\n 'id' => 2416,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'roles',\n 'key' => 'user',\n 'value' => 'User',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'User',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 416 => \n array (\n 'id' => 2417,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.access.users.delete_user_confirm',\n 'value' => 'Are you sure you want to delete this user permanently? Anywhere in the application that references this user\\'s id will most likely error. Proceed at your own risk. This can not be un-done.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Are you sure you want to delete this user permanently? Anywhere in the application that references this user\\'s id will most likely error. Proceed at your own risk. This can not be un-done.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 417 => \n array (\n 'id' => 2418,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.access.users.if_confirmed_off',\n 'value' => '(If confirmed is off)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '(If confirmed is off)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 418 => \n array (\n 'id' => 2419,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.access.users.restore_user_confirm',\n 'value' => 'Restore this user to its original state?',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Restore this user to its original state?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 419 => \n array (\n 'id' => 2420,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.dashboard.title',\n 'value' => 'Administrative Dashboard',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Administrative Dashboard',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 420 => \n array (\n 'id' => 2421,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.dashboard.welcome',\n 'value' => 'Welcome',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Welcome',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 421 => \n array (\n 'id' => 2422,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.all_rights_reserved',\n 'value' => 'All Rights Reserved.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'All Rights Reserved.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 422 => \n array (\n 'id' => 2423,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.are_you_sure',\n 'value' => 'Are you sure you want to do this?',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Are you sure you want to do this?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 423 => \n array (\n 'id' => 2424,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.boilerplate_link',\n 'value' => 'Laravel 5 Boilerplate',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Laravel 5 Boilerplate',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 424 => \n array (\n 'id' => 2425,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.continue',\n 'value' => 'Continue',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Continue',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 425 => \n array (\n 'id' => 2426,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.member_since',\n 'value' => 'Member since',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Member since',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 426 => \n array (\n 'id' => 2427,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.minutes',\n 'value' => ' minutes',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ' minutes',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 427 => \n array (\n 'id' => 2428,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.search_placeholder',\n 'value' => 'Search...',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Search...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 428 => \n array (\n 'id' => 2429,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.timeout',\n 'value' => 'You were automatically logged out for security reasons since you had no activity in ',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You were automatically logged out for security reasons since you had no activity in ',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 429 => \n array (\n 'id' => 2430,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.see_all.messages',\n 'value' => 'See all messages',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'See all messages',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 430 => \n array (\n 'id' => 2431,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.see_all.notifications',\n 'value' => 'View all',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'View all',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 431 => \n array (\n 'id' => 2432,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.see_all.tasks',\n 'value' => 'View all tasks',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'View all tasks',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 432 => \n array (\n 'id' => 2433,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.status.online',\n 'value' => 'Online',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Online',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 433 => \n array (\n 'id' => 2434,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.status.offline',\n 'value' => 'Offline',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Offline',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 434 => \n array (\n 'id' => 2435,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.you_have.messages',\n 'value' => '{0} You don\\'t have messages|{1} You have 1 message|[2,Inf] You have :number messages',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '{0} You don\\'t have messages|{1} You have 1 message|[2,Inf] You have :number messages',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 435 => \n array (\n 'id' => 2436,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.you_have.notifications',\n 'value' => '{0} You don\\'t have notifications|{1} You have 1 notification|[2,Inf] You have :number notifications',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '{0} You don\\'t have notifications|{1} You have 1 notification|[2,Inf] You have :number notifications',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 436 => \n array (\n 'id' => 2437,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.you_have.tasks',\n 'value' => '{0} You don\\'t have tasks|{1} You have 1 task|[2,Inf] You have :number tasks',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '{0} You don\\'t have tasks|{1} You have 1 task|[2,Inf] You have :number tasks',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 437 => \n array (\n 'id' => 2438,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.search.empty',\n 'value' => 'Please enter a search term.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Please enter a search term.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 438 => \n array (\n 'id' => 2439,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.search.incomplete',\n 'value' => 'You must write your own search logic for this system.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You must write your own search logic for this system.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 439 => \n array (\n 'id' => 2440,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.search.title',\n 'value' => 'Search Results',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Search Results',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 440 => \n array (\n 'id' => 2441,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.search.results',\n 'value' => 'Search Results for :query',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Search Results for :query',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 441 => \n array (\n 'id' => 2442,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.welcome',\n 'value' => '<p>This is the foodsharing Admin Panel!</p><p>Have Fun!</p>',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '<p>This is the foodsharing Admin Panel!</p><p>Have Fun!</p>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 442 => \n array (\n 'id' => 2443,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'emails.auth.account_confirmed',\n 'value' => 'Your account has been confirmed.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your account has been confirmed.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 443 => \n array (\n 'id' => 2444,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'emails.auth.error',\n 'value' => 'Whoops!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Whoops!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 444 => \n array (\n 'id' => 2445,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'emails.auth.greeting',\n 'value' => 'Hello!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Hello!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 445 => \n array (\n 'id' => 2446,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'emails.auth.regards',\n 'value' => 'Regards,',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Regards,',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 446 => \n array (\n 'id' => 2447,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'emails.auth.trouble_clicking_button',\n 'value' => 'If you’re having trouble clicking the \":action_text\" button, copy and paste the URL below into your web browser:',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'If you’re having trouble clicking the \":action_text\" button, copy and paste the URL below into your web browser:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 447 => \n array (\n 'id' => 2448,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'emails.auth.thank_you_for_using_app',\n 'value' => 'Thank you for using our application!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Thank you for using our application!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 448 => \n array (\n 'id' => 2449,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'emails.auth.password_reset_subject',\n 'value' => 'Reset Password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Reset Password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 449 => \n array (\n 'id' => 2450,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'emails.auth.password_cause_of_email',\n 'value' => 'You are receiving this email because we received a password reset request for your account.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You are receiving this email because we received a password reset request for your account.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 450 => \n array (\n 'id' => 2451,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'emails.auth.password_if_not_requested',\n 'value' => 'If you did not request a password reset, no further action is required.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'If you did not request a password reset, no further action is required.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 451 => \n array (\n 'id' => 2452,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'emails.auth.reset_password',\n 'value' => 'Click here to reset your password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Click here to reset your password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 452 => \n array (\n 'id' => 2453,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'emails.auth.click_to_confirm',\n 'value' => 'Click here to confirm your account:',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Click here to confirm your account:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 453 => \n array (\n 'id' => 2454,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'emails.contact.email_body_title',\n 'value' => 'You have a new contact form request: Below are the details:',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You have a new contact form request: Below are the details:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 454 => \n array (\n 'id' => 2455,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'emails.contact.subject',\n 'value' => 'A new :app_name contact form submission!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'A new :app_name contact form submission!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 455 => \n array (\n 'id' => 2456,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.test',\n 'value' => 'Test',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Test',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 456 => \n array (\n 'id' => 2457,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.based_on.permission',\n 'value' => 'Permission Based - ',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Permission Based - ',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 457 => \n array (\n 'id' => 2458,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.based_on.role',\n 'value' => 'Role Based - ',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Role Based - ',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 458 => \n array (\n 'id' => 2459,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.js_injected_from_controller',\n 'value' => 'Javascript Injected from a Controller',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Javascript Injected from a Controller',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 459 => \n array (\n 'id' => 2460,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_blade_extensions',\n 'value' => 'Using Blade Extensions',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Using Blade Extensions',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 460 => \n array (\n 'id' => 2461,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.array_permissions',\n 'value' => 'Using Access Helper with Array of Permission Names or ID\\'s where the user does have to possess all.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Using Access Helper with Array of Permission Names or ID\\'s where the user does have to possess all.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 461 => \n array (\n 'id' => 2462,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.array_permissions_not',\n 'value' => 'Using Access Helper with Array of Permission Names or ID\\'s where the user does not have to possess all.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Using Access Helper with Array of Permission Names or ID\\'s where the user does not have to possess all.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 462 => \n array (\n 'id' => 2463,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.array_roles',\n 'value' => 'Using Access Helper with Array of Role Names or ID\\'s where the user does have to possess all.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Using Access Helper with Array of Role Names or ID\\'s where the user does have to possess all.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 463 => \n array (\n 'id' => 2464,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.array_roles_not',\n 'value' => 'Using Access Helper with Array of Role Names or ID\\'s where the user does not have to possess all.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Using Access Helper with Array of Role Names or ID\\'s where the user does not have to possess all.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 464 => \n array (\n 'id' => 2465,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.permission_id',\n 'value' => 'Using Access Helper with Permission ID',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Using Access Helper with Permission ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 465 => \n array (\n 'id' => 2466,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.permission_name',\n 'value' => 'Using Access Helper with Permission Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Using Access Helper with Permission Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 466 => \n array (\n 'id' => 2467,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.role_id',\n 'value' => 'Using Access Helper with Role ID',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Using Access Helper with Role ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 467 => \n array (\n 'id' => 2468,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.role_name',\n 'value' => 'Using Access Helper with Role Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Using Access Helper with Role Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 468 => \n array (\n 'id' => 2469,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.view_console_it_works',\n 'value' => 'View console, you should see \\'it works!\\' which is coming from FrontendController@index',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'View console, you should see \\'it works!\\' which is coming from FrontendController@index',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 469 => \n array (\n 'id' => 2470,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.you_can_see_because',\n 'value' => 'You can see this because you have the role of \\':role\\'!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You can see this because you have the role of \\':role\\'!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 470 => \n array (\n 'id' => 2471,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.you_can_see_because_permission',\n 'value' => 'You can see this because you have the permission of \\':permission\\'!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You can see this because you have the permission of \\':permission\\'!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 471 => \n array (\n 'id' => 2472,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.general.joined',\n 'value' => 'Joined',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Joined',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 472 => \n array (\n 'id' => 2473,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.user.change_email_notice',\n 'value' => 'If you change your e-mail you will be logged out until you confirm your new e-mail address.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'If you change your e-mail you will be logged out until you confirm your new e-mail address.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 473 => \n array (\n 'id' => 2474,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.user.email_changed_notice',\n 'value' => 'You must confirm your new e-mail address before you can log in again.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You must confirm your new e-mail address before you can log in again.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 474 => \n array (\n 'id' => 2475,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.user.profile_updated',\n 'value' => 'Profile successfully updated.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Profile successfully updated.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 475 => \n array (\n 'id' => 2476,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.user.password_updated',\n 'value' => 'Password successfully updated.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Password successfully updated.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 476 => \n array (\n 'id' => 2477,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.welcome_to',\n 'value' => 'Welcome to :place',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Welcome to :place',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 477 => \n array (\n 'id' => 2478,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.associated_roles',\n 'value' => 'Associated Roles',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Associated Roles',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 478 => \n array (\n 'id' => 2479,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.dependencies',\n 'value' => 'Dependencies',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dependencies',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 479 => \n array (\n 'id' => 2480,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.display_name',\n 'value' => 'Display Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Display Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 480 => \n array (\n 'id' => 2481,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.group',\n 'value' => 'Group',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Group',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 481 => \n array (\n 'id' => 2482,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.group_sort',\n 'value' => 'Group Sort',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Group Sort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 482 => \n array (\n 'id' => 2483,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.groups.name',\n 'value' => 'Group Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Group Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 483 => \n array (\n 'id' => 2484,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.name',\n 'value' => 'Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 484 => \n array (\n 'id' => 2485,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.first_name',\n 'value' => 'First Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'First Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 485 => \n array (\n 'id' => 2486,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.last_name',\n 'value' => 'Last Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Last Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 486 => \n array (\n 'id' => 2487,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.system',\n 'value' => 'System',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'System',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 487 => \n array (\n 'id' => 2488,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.roles.associated_permissions',\n 'value' => 'Associated Permissions',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Associated Permissions',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 488 => \n array (\n 'id' => 2489,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.roles.name',\n 'value' => 'Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 489 => \n array (\n 'id' => 2490,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.roles.sort',\n 'value' => 'Sort',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Sort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 490 => \n array (\n 'id' => 2491,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.active',\n 'value' => 'Active',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Active',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 491 => \n array (\n 'id' => 2492,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.associated_roles',\n 'value' => 'Associated Roles',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Associated Roles',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 492 => \n array (\n 'id' => 2493,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.confirmed',\n 'value' => 'Confirmed',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Confirmed',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 493 => \n array (\n 'id' => 2494,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.email',\n 'value' => 'E-mail Address',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'E-mail Address',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 494 => \n array (\n 'id' => 2495,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.name',\n 'value' => 'Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 495 => \n array (\n 'id' => 2496,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.last_name',\n 'value' => 'Last Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Last Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 496 => \n array (\n 'id' => 2497,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.first_name',\n 'value' => 'First Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'First Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 497 => \n array (\n 'id' => 2498,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.other_permissions',\n 'value' => 'Other Permissions',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Other Permissions',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 498 => \n array (\n 'id' => 2499,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.password',\n 'value' => 'Password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 499 => \n array (\n 'id' => 2500,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.password_confirmation',\n 'value' => 'Password Confirmation',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Password Confirmation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n ));\n \\DB::table('translations')->insert(array (\n 0 => \n array (\n 'id' => 2501,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.send_confirmation_email',\n 'value' => 'Send Confirmation E-mail',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Send Confirmation E-mail',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 1 => \n array (\n 'id' => 2502,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.email',\n 'value' => 'E-mail Address',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'E-mail Address',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 2 => \n array (\n 'id' => 2503,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.first_name',\n 'value' => 'First Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'First Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 3 => \n array (\n 'id' => 2504,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.last_name',\n 'value' => 'Last Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Last Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 4 => \n array (\n 'id' => 2505,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.name',\n 'value' => 'Full Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Full Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 5 => \n array (\n 'id' => 2506,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.password',\n 'value' => 'Password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 6 => \n array (\n 'id' => 2507,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.password_confirmation',\n 'value' => 'Password Confirmation',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Password Confirmation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 7 => \n array (\n 'id' => 2508,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.phone',\n 'value' => 'Phone',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Phone',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 8 => \n array (\n 'id' => 2509,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.message',\n 'value' => 'Message',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Message',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 9 => \n array (\n 'id' => 2510,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.new_password',\n 'value' => 'New Password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'New Password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 10 => \n array (\n 'id' => 2511,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.new_password_confirmation',\n 'value' => 'New Password Confirmation',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'New Password Confirmation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 11 => \n array (\n 'id' => 2512,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.old_password',\n 'value' => 'Old Password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Old Password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 12 => \n array (\n 'id' => 2513,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.roles.created',\n 'value' => 'Rolle erstellt.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rolle erstellt.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 13 => \n array (\n 'id' => 2514,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.roles.deleted',\n 'value' => 'Rolle gelöscht.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rolle gelöscht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 14 => \n array (\n 'id' => 2515,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.roles.updated',\n 'value' => 'Rolle aktualisiert.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rolle aktualisiert.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 15 => \n array (\n 'id' => 2516,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.users.cant_resend_confirmation',\n 'value' => 'The application is currently set to manually approve users.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The application is currently set to manually approve users.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 16 => \n array (\n 'id' => 2517,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.users.confirmation_email',\n 'value' => 'Eine Aktivierungsmail wurde an die angegebene E-Mailadresse gesendet.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Eine Aktivierungsmail wurde an die angegebene E-Mailadresse gesendet.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 17 => \n array (\n 'id' => 2518,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.users.confirmed',\n 'value' => 'The user was successfully confirmed.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The user was successfully confirmed.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 18 => \n array (\n 'id' => 2519,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.users.created',\n 'value' => 'Benutzer erstellt.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer erstellt.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 19 => \n array (\n 'id' => 2520,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.users.deleted',\n 'value' => 'Benutzer gelöscht.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer gelöscht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 20 => \n array (\n 'id' => 2521,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.users.deleted_permanently',\n 'value' => 'Benutzer permanent gelöscht.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer permanent gelöscht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 21 => \n array (\n 'id' => 2522,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.users.restored',\n 'value' => 'Benutzer wiederhergestellt.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer wiederhergestellt.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 22 => \n array (\n 'id' => 2523,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.users.session_cleared',\n 'value' => 'The user\\'s session was successfully cleared.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The user\\'s session was successfully cleared.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 23 => \n array (\n 'id' => 2524,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.users.social_deleted',\n 'value' => 'Social Account Successfully Removed',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Social Account Successfully Removed',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 24 => \n array (\n 'id' => 2525,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.users.unconfirmed',\n 'value' => 'The user was successfully un-confirmed',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The user was successfully un-confirmed',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 25 => \n array (\n 'id' => 2526,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.users.updated',\n 'value' => 'Benutzer aktualisiert.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer aktualisiert.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 26 => \n array (\n 'id' => 2527,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.users.updated_password',\n 'value' => 'Kennwort des Benutzers aktualisiert.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort des Benutzers aktualisiert.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 27 => \n array (\n 'id' => 2528,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'frontend.contact.sent',\n 'value' => 'Your information was successfully sent. We will respond back to the e-mail provided as soon as we can.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your information was successfully sent. We will respond back to the e-mail provided as soon as we can.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 28 => \n array (\n 'id' => 2529,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'auth',\n 'key' => 'general_error',\n 'value' => 'Du hast keine Berechtigung um dies zu machen.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du hast keine Berechtigung um dies zu machen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 29 => \n array (\n 'id' => 2530,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'auth',\n 'key' => 'socialite.unacceptable',\n 'value' => ':provider ist kein akzeptierter Anmeldetyp.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':provider ist kein akzeptierter Anmeldetyp.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 30 => \n array (\n 'id' => 2531,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'auth',\n 'key' => 'unknown',\n 'value' => 'Ein unbekannter Fehler ist aufgetreten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Ein unbekannter Fehler ist aufgetreten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 31 => \n array (\n 'id' => 2532,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.activate',\n 'value' => 'Aktivieren',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Aktivieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 32 => \n array (\n 'id' => 2533,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.change_password',\n 'value' => 'Kennwort Ändern',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort Ändern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 33 => \n array (\n 'id' => 2534,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.clear_session',\n 'value' => 'Clear Session',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Clear Session',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 34 => \n array (\n 'id' => 2535,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.confirm',\n 'value' => 'Confirm',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Confirm',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 35 => \n array (\n 'id' => 2536,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.deactivate',\n 'value' => 'Deaktivieren',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Deaktivieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 36 => \n array (\n 'id' => 2537,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.delete_permanently',\n 'value' => 'Permanent löschen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Permanent löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 37 => \n array (\n 'id' => 2538,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.login_as',\n 'value' => 'Anmelden als :user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Anmelden als :user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 38 => \n array (\n 'id' => 2539,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.resend_email',\n 'value' => 'Aktivierungsmail erneut senden',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Aktivierungsmail erneut senden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 39 => \n array (\n 'id' => 2540,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.restore_user',\n 'value' => 'Benutzer wiederherstellen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer wiederherstellen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 40 => \n array (\n 'id' => 2541,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.unconfirm',\n 'value' => 'Un-confirm',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Un-confirm',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 41 => \n array (\n 'id' => 2542,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.unlink',\n 'value' => 'Unlink',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Unlink',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 42 => \n array (\n 'id' => 2543,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'emails.auth.confirm_account',\n 'value' => 'Konto bestätigen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Konto bestätigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 43 => \n array (\n 'id' => 2544,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'emails.auth.reset_password',\n 'value' => 'Kennwort zurücksetzen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort zurücksetzen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 44 => \n array (\n 'id' => 2545,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'general.cancel',\n 'value' => 'Abbrechen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Abbrechen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 45 => \n array (\n 'id' => 2546,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'general.continue',\n 'value' => 'Fortsetzen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Fortsetzen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 46 => \n array (\n 'id' => 2547,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'general.crud.create',\n 'value' => 'Erstellen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Erstellen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 47 => \n array (\n 'id' => 2548,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'general.crud.delete',\n 'value' => 'Löschen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 48 => \n array (\n 'id' => 2549,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'general.crud.edit',\n 'value' => 'Bearbeiten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 49 => \n array (\n 'id' => 2550,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'general.crud.update',\n 'value' => 'Aktualisieren',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Aktualisieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 50 => \n array (\n 'id' => 2551,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'general.crud.view',\n 'value' => 'Anzeigen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Anzeigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 51 => \n array (\n 'id' => 2552,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'general.save',\n 'value' => 'Speichern',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Speichern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 52 => \n array (\n 'id' => 2553,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'general.view',\n 'value' => 'Anzeigen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Anzeigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 53 => \n array (\n 'id' => 2554,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.already_exists',\n 'value' => 'Diese Rolle existert schon. Bitte wähle einen anderen Namen.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Diese Rolle existert schon. Bitte wähle einen anderen Namen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 54 => \n array (\n 'id' => 2555,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.cant_delete_admin',\n 'value' => 'Du kannst die Administrator-Rolle nicht löschen.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du kannst die Administrator-Rolle nicht löschen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 55 => \n array (\n 'id' => 2556,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.create_error',\n 'value' => 'Beim Erstellen der Rolle ist ein Fehler aufgetreten. Bitte versuche es erneut.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Beim Erstellen der Rolle ist ein Fehler aufgetreten. Bitte versuche es erneut.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 56 => \n array (\n 'id' => 2557,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.delete_error',\n 'value' => 'Beim Löschen der Rolle ist ein Fehler aufgetrten. Bitte versuche es erneut.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Beim Löschen der Rolle ist ein Fehler aufgetrten. Bitte versuche es erneut.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 57 => \n array (\n 'id' => 2558,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.has_users',\n 'value' => 'Eine Rolle mit zugeordneten Benutzern kann nicht gelöscht werden.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Eine Rolle mit zugeordneten Benutzern kann nicht gelöscht werden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 58 => \n array (\n 'id' => 2559,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.needs_permission',\n 'value' => 'Für diese Rolle muss mind. eine Berechtigung ausgewählt sein.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Für diese Rolle muss mind. eine Berechtigung ausgewählt sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 59 => \n array (\n 'id' => 2560,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.not_found',\n 'value' => 'Diese Rolle existiert nicht.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Diese Rolle existiert nicht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 60 => \n array (\n 'id' => 2561,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.update_error',\n 'value' => 'Beim Aktualisieren der Rolle ist ein Fehler aufgetreten. Bitte versuche es erneut.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Beim Aktualisieren der Rolle ist ein Fehler aufgetreten. Bitte versuche es erneut.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 61 => \n array (\n 'id' => 2562,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.already_confirmed',\n 'value' => 'This user is already confirmed.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'This user is already confirmed.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 62 => \n array (\n 'id' => 2563,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_confirm',\n 'value' => 'There was a problem confirming the user account.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem confirming the user account.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 63 => \n array (\n 'id' => 2564,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_deactivate_self',\n 'value' => 'Du kannst das nicht mit dir selber machen.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du kannst das nicht mit dir selber machen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 64 => \n array (\n 'id' => 2565,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_delete_admin',\n 'value' => 'Du kannst den Haupt-Administrator nicht löschen.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du kannst den Haupt-Administrator nicht löschen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 65 => \n array (\n 'id' => 2566,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_delete_self',\n 'value' => 'Du kannst dich nicht selbst löschen.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du kannst dich nicht selbst löschen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 66 => \n array (\n 'id' => 2567,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_delete_own_session',\n 'value' => 'Du kannst nicht deine eigene Sitzung löschen.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du kannst nicht deine eigene Sitzung löschen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 67 => \n array (\n 'id' => 2568,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_restore',\n 'value' => 'Dieser Benutzer wurde nicht gelöscht und kann daher nicht wiederhergestellt werden.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dieser Benutzer wurde nicht gelöscht und kann daher nicht wiederhergestellt werden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 68 => \n array (\n 'id' => 2569,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_unconfirm_admin',\n 'value' => 'You can not un-confirm the super administrator.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You can not un-confirm the super administrator.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 69 => \n array (\n 'id' => 2570,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_unconfirm_self',\n 'value' => 'You can not un-confirm yourself.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You can not un-confirm yourself.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 70 => \n array (\n 'id' => 2571,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.create_error',\n 'value' => 'Beim Erstellen des Benutzers ist ein Fehler aufgetreten. Bitte versuche es erneut.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Beim Erstellen des Benutzers ist ein Fehler aufgetreten. Bitte versuche es erneut.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 71 => \n array (\n 'id' => 2572,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.delete_error',\n 'value' => 'Beim Löschen des Benutzers ist ein Fehler aufgetreten. Bitte versuche es erneut.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Beim Löschen des Benutzers ist ein Fehler aufgetreten. Bitte versuche es erneut.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 72 => \n array (\n 'id' => 2573,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.delete_first',\n 'value' => 'Dieser Benutzer muß zuerst gelöscht werden bevor er endgültig entfernt werden kann.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dieser Benutzer muß zuerst gelöscht werden bevor er endgültig entfernt werden kann.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 73 => \n array (\n 'id' => 2574,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.email_error',\n 'value' => 'Diese E-Mailadresse ist einem anderem Benutzer zugeordnet.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Diese E-Mailadresse ist einem anderem Benutzer zugeordnet.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 74 => \n array (\n 'id' => 2575,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.mark_error',\n 'value' => 'Beim Aktualisieren des Benutzers ist ein Fehler aufgetreten. Bitte versuche es erneut.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Beim Aktualisieren des Benutzers ist ein Fehler aufgetreten. Bitte versuche es erneut.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 75 => \n array (\n 'id' => 2576,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.not_confirmed',\n 'value' => 'This user is not confirmed.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'This user is not confirmed.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 76 => \n array (\n 'id' => 2577,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.not_found',\n 'value' => 'Dieser Benutzer existiert nicht.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dieser Benutzer existiert nicht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 77 => \n array (\n 'id' => 2578,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.restore_error',\n 'value' => 'Beim Wiederherstelen des Benutzers ist ein Fehler aufgetreten. Bitte versuche es erneut.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Beim Wiederherstelen des Benutzers ist ein Fehler aufgetreten. Bitte versuche es erneut.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 78 => \n array (\n 'id' => 2579,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.role_needed_create',\n 'value' => 'Du musst mind. eine Rolle auswählen.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du musst mind. eine Rolle auswählen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 79 => \n array (\n 'id' => 2580,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.role_needed',\n 'value' => 'Du musst mind. eine Rolle auswählen.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du musst mind. eine Rolle auswählen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 80 => \n array (\n 'id' => 2581,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.session_wrong_driver',\n 'value' => 'Your session driver must be set to database to use this feature.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your session driver must be set to database to use this feature.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 81 => \n array (\n 'id' => 2582,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.social_delete_error',\n 'value' => 'There was a problem removing the social account from the user.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem removing the social account from the user.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 82 => \n array (\n 'id' => 2583,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.update_error',\n 'value' => 'Beim Aktualisieren des Benutzers ist ein Fehler aufgetrten. Bitte versuche es erneut.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Beim Aktualisieren des Benutzers ist ein Fehler aufgetrten. Bitte versuche es erneut.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 83 => \n array (\n 'id' => 2584,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.update_password_error',\n 'value' => 'Das Kennwort den Benutzers konnte nicht geändert werden. Bitte versuche es erneut.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Das Kennwort den Benutzers konnte nicht geändert werden. Bitte versuche es erneut.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 84 => \n array (\n 'id' => 2585,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.already_confirmed',\n 'value' => 'Dein Benutzerkonto wurde schon aktiviert.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dein Benutzerkonto wurde schon aktiviert.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 85 => \n array (\n 'id' => 2586,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.confirm',\n 'value' => 'Benutzerkonto aktivieren!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzerkonto aktivieren!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 86 => \n array (\n 'id' => 2587,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.created_confirm',\n 'value' => 'Dein Benutzerkonto wurde erstellt. Wir haben dir eine Aktivierungsmail gesendet.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dein Benutzerkonto wurde erstellt. Wir haben dir eine Aktivierungsmail gesendet.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 87 => \n array (\n 'id' => 2588,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.created_pending',\n 'value' => 'Your account was successfully created and is pending approval. An e-mail will be sent when your account is approved.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your account was successfully created and is pending approval. An e-mail will be sent when your account is approved.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 88 => \n array (\n 'id' => 2589,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.mismatch',\n 'value' => 'Der Aktivierungscode ist nicht korrekt.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Der Aktivierungscode ist nicht korrekt.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 89 => \n array (\n 'id' => 2590,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.not_found',\n 'value' => 'Der Aktivierungscode existiert nicht.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Der Aktivierungscode existiert nicht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 90 => \n array (\n 'id' => 2591,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.pending',\n 'value' => 'Your account is currently pending approval.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your account is currently pending approval.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 91 => \n array (\n 'id' => 2592,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.resend',\n 'value' => 'Dein Benutzerkonto ist nicht aktiviert. Bitte klicke auf den Link in der Aktivierungsmail, oder <a href=\"http://foodsharing.app/refactor/account/confirm/resend/:user_id\">klicke hier</a> um die Aktivierungsmail erneut zu senden.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dein Benutzerkonto ist nicht aktiviert. Bitte klicke auf den Link in der Aktivierungsmail, oder <a href=\"http://foodsharing.app/refactor/account/confirm/resend/:user_id\">klicke hier</a> um die Aktivierungsmail erneut zu senden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 92 => \n array (\n 'id' => 2593,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.success',\n 'value' => 'Dein Benutzerkonto wurde aktiviert!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dein Benutzerkonto wurde aktiviert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 93 => \n array (\n 'id' => 2594,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.resent',\n 'value' => 'Eine neue Aktivierungsmail wurde an die hinterlegte E-Mailadresse gesendet.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Eine neue Aktivierungsmail wurde an die hinterlegte E-Mailadresse gesendet.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 94 => \n array (\n 'id' => 2595,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.deactivated',\n 'value' => 'Dein Benutzerkonto wurde deaktiviert.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dein Benutzerkonto wurde deaktiviert.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 95 => \n array (\n 'id' => 2596,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.email_taken',\n 'value' => 'Diese E-Mailadresse wird schon verwendet.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Diese E-Mailadresse wird schon verwendet.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 96 => \n array (\n 'id' => 2597,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.password.change_mismatch',\n 'value' => 'Das ist nicht dein altes Kennwort.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Das ist nicht dein altes Kennwort.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 97 => \n array (\n 'id' => 2598,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.password.reset_problem',\n 'value' => 'There was a problem resetting your password. Please resend the password reset email.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem resetting your password. Please resend the password reset email.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 98 => \n array (\n 'id' => 2599,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.registration_disabled',\n 'value' => 'Registrierung ist momentan nicht möglich.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Registrierung ist momentan nicht möglich.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 99 => \n array (\n 'id' => 2600,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.none',\n 'value' => 'Es gibt keinen neuesten Verlauf.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Es gibt keinen neuesten Verlauf.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 100 => \n array (\n 'id' => 2601,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.none_for_type',\n 'value' => 'Es gibt keinen Verlauf für diesen Typ.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Es gibt keinen Verlauf für diesen Typ.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 101 => \n array (\n 'id' => 2602,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.none_for_entity',\n 'value' => 'Es gibt keinen Verlauf für :entity.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Es gibt keinen Verlauf für :entity.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 102 => \n array (\n 'id' => 2603,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.recent_history',\n 'value' => 'Neuester Verlauf',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Neuester Verlauf',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 103 => \n array (\n 'id' => 2604,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.roles.created',\n 'value' => 'Rolle erstellt',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rolle erstellt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 104 => \n array (\n 'id' => 2605,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.roles.deleted',\n 'value' => 'Rolle gelöscht',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rolle gelöscht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 105 => \n array (\n 'id' => 2606,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.roles.updated',\n 'value' => 'Rolle aktualisiert',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rolle aktualisiert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 106 => \n array (\n 'id' => 2607,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.users.changed_password',\n 'value' => 'Kennwort für Benutzer geändert',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort für Benutzer geändert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 107 => \n array (\n 'id' => 2608,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.users.confirmed',\n 'value' => 'confirmed user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'confirmed user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 108 => \n array (\n 'id' => 2609,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.users.created',\n 'value' => 'Benutzer erstellt',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer erstellt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 109 => \n array (\n 'id' => 2610,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.users.deactivated',\n 'value' => 'Benutzer deaktiviert',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer deaktiviert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 110 => \n array (\n 'id' => 2611,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.users.deleted',\n 'value' => 'Benutzer gelöscht',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer gelöscht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 111 => \n array (\n 'id' => 2612,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.users.deleted_social',\n 'value' => 'deleted social account',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'deleted social account',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 112 => \n array (\n 'id' => 2613,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.users.permanently_deleted',\n 'value' => 'Benutzer endgültig gelöscht',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer endgültig gelöscht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 113 => \n array (\n 'id' => 2614,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.users.updated',\n 'value' => 'Benutzer aktualisiert',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer aktualisiert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 114 => \n array (\n 'id' => 2615,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.users.unconfirmed',\n 'value' => 'un-confirmed user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'un-confirmed user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 115 => \n array (\n 'id' => 2616,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.users.reactivated',\n 'value' => 'Benutzer wieder aktiviert',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer wieder aktiviert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 116 => \n array (\n 'id' => 2617,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.users.restored',\n 'value' => 'Benutzer wiederhergestellt',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer wiederhergestellt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 117 => \n array (\n 'id' => 2618,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'http',\n 'key' => '404.title',\n 'value' => 'Seite nicht gefunden',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Seite nicht gefunden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 118 => \n array (\n 'id' => 2619,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'http',\n 'key' => '404.description',\n 'value' => 'Wir konnten die angegebene Seite nicht finden.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Wir konnten die angegebene Seite nicht finden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 119 => \n array (\n 'id' => 2620,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'http',\n 'key' => '503.title',\n 'value' => 'Wir sind gleich wieder da.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Wir sind gleich wieder da.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 120 => \n array (\n 'id' => 2621,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'http',\n 'key' => '503.description',\n 'value' => 'Wir sind gleich wieder da.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Wir sind gleich wieder da.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 121 => \n array (\n 'id' => 2622,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'general.all',\n 'value' => 'Alle',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Alle',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 122 => \n array (\n 'id' => 2623,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'general.yes',\n 'value' => 'Ja',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Ja',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 123 => \n array (\n 'id' => 2624,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'general.no',\n 'value' => 'Nein',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Nein',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 124 => \n array (\n 'id' => 2625,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'general.custom',\n 'value' => 'Erweitert',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Erweitert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 125 => \n array (\n 'id' => 2626,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'general.actions',\n 'value' => 'Aktionen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Aktionen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 126 => \n array (\n 'id' => 2627,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'general.active',\n 'value' => 'Aktiv',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Aktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 127 => \n array (\n 'id' => 2628,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'general.buttons.save',\n 'value' => 'Speichern',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Speichern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 128 => \n array (\n 'id' => 2629,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'general.buttons.update',\n 'value' => 'Aktualisieren',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Aktualisieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 129 => \n array (\n 'id' => 2630,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'general.hide',\n 'value' => 'Verstecken',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Verstecken',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 130 => \n array (\n 'id' => 2631,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'general.inactive',\n 'value' => 'Inaktiv',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Inaktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 131 => \n array (\n 'id' => 2632,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'general.none',\n 'value' => 'Keine',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Keine',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 132 => \n array (\n 'id' => 2633,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'general.show',\n 'value' => 'Anzeigen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Anzeigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 133 => \n array (\n 'id' => 2634,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'general.toggle_navigation',\n 'value' => 'Navigation umschalten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Navigation umschalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 134 => \n array (\n 'id' => 2635,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.create',\n 'value' => 'Rolle erstellen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rolle erstellen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 135 => \n array (\n 'id' => 2636,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.edit',\n 'value' => 'Rolle bearbeiten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rolle bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 136 => \n array (\n 'id' => 2637,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.management',\n 'value' => 'Rollen verwalten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rollen verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 137 => \n array (\n 'id' => 2638,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.table.number_of_users',\n 'value' => 'Anzahl Benutzer',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Anzahl Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 138 => \n array (\n 'id' => 2639,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.table.permissions',\n 'value' => 'Berechtigungen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Berechtigungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 139 => \n array (\n 'id' => 2640,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.table.role',\n 'value' => 'Rolle',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rolle',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 140 => \n array (\n 'id' => 2641,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.table.sort',\n 'value' => 'Sortierung',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Sortierung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 141 => \n array (\n 'id' => 2642,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.table.total',\n 'value' => 'Rolle|Rollen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rolle|Rollen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 142 => \n array (\n 'id' => 2643,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.active',\n 'value' => 'Aktive Benutzer',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Aktive Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 143 => \n array (\n 'id' => 2644,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.all_permissions',\n 'value' => 'Alle Berechtigungen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Alle Berechtigungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 144 => \n array (\n 'id' => 2645,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.change_password',\n 'value' => 'Kennwort ändern',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort ändern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 145 => \n array (\n 'id' => 2646,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.change_password_for',\n 'value' => 'Kennwort für :user ändern',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort für :user ändern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 146 => \n array (\n 'id' => 2647,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.create',\n 'value' => 'Benutzer erstellen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer erstellen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 147 => \n array (\n 'id' => 2648,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.deactivated',\n 'value' => 'Deaktivierte Benutzer',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Deaktivierte Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 148 => \n array (\n 'id' => 2649,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.deleted',\n 'value' => 'Gelöschte Benutzer',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Gelöschte Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 149 => \n array (\n 'id' => 2650,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.edit',\n 'value' => 'Benutzer bearbeiten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 150 => \n array (\n 'id' => 2651,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.management',\n 'value' => 'Benutzer verwalten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 151 => \n array (\n 'id' => 2652,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.no_permissions',\n 'value' => 'Keine Berechtigungen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Keine Berechtigungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 152 => \n array (\n 'id' => 2653,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.no_roles',\n 'value' => 'Keine Rollen vorhanden.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Keine Rollen vorhanden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 153 => \n array (\n 'id' => 2654,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.permissions',\n 'value' => 'Berechtigungen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Berechtigungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 154 => \n array (\n 'id' => 2655,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.confirmed',\n 'value' => 'Bestätigt',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Bestätigt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 155 => \n array (\n 'id' => 2656,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.created',\n 'value' => 'Erstellt',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Erstellt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 156 => \n array (\n 'id' => 2657,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.email',\n 'value' => 'E-Mail',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'E-Mail',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 157 => \n array (\n 'id' => 2658,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.id',\n 'value' => 'ID',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 158 => \n array (\n 'id' => 2659,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.last_updated',\n 'value' => 'Letzte Aktualisierung',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Letzte Aktualisierung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 159 => \n array (\n 'id' => 2660,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.name',\n 'value' => 'Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 160 => \n array (\n 'id' => 2661,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.no_deactivated',\n 'value' => 'Keine deaktivierten Benutzer',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Keine deaktivierten Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 161 => \n array (\n 'id' => 2662,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.no_deleted',\n 'value' => 'Keine gelöschten Benutzer',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Keine gelöschten Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 162 => \n array (\n 'id' => 2663,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.roles',\n 'value' => 'Rollen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rollen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 163 => \n array (\n 'id' => 2664,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.social',\n 'value' => 'Social',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Social',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 164 => \n array (\n 'id' => 2665,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.total',\n 'value' => 'Benutzer|Benutzer',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer|Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 165 => \n array (\n 'id' => 2666,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.titles.overview',\n 'value' => 'Übersicht',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Übersicht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 166 => \n array (\n 'id' => 2667,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.titles.history',\n 'value' => 'Verlauf',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Verlauf',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 167 => \n array (\n 'id' => 2668,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.avatar',\n 'value' => 'Avatar',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Avatar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 168 => \n array (\n 'id' => 2669,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.confirmed',\n 'value' => 'Bestätigt',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Bestätigt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 169 => \n array (\n 'id' => 2670,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.created_at',\n 'value' => 'Erstellt am',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Erstellt am',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 170 => \n array (\n 'id' => 2671,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.deleted_at',\n 'value' => 'Gelöscht am',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Gelöscht am',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 171 => \n array (\n 'id' => 2672,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.email',\n 'value' => 'E-mail',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'E-mail',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 172 => \n array (\n 'id' => 2673,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.last_updated',\n 'value' => 'Zuletzt aktualisiert',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Zuletzt aktualisiert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 173 => \n array (\n 'id' => 2674,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.name',\n 'value' => 'Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 174 => \n array (\n 'id' => 2675,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.status',\n 'value' => 'Status',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 175 => \n array (\n 'id' => 2676,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.view',\n 'value' => 'Benutzer anzeigen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer anzeigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 176 => \n array (\n 'id' => 2677,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.auth.login_box_title',\n 'value' => 'Anmeldung',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Anmeldung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 177 => \n array (\n 'id' => 2678,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.auth.login_button',\n 'value' => 'Anmelden',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Anmelden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 178 => \n array (\n 'id' => 2679,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.auth.login_with',\n 'value' => 'Anmelden mit :social_media',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Anmelden mit :social_media',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 179 => \n array (\n 'id' => 2680,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.auth.register_box_title',\n 'value' => 'Registrieren',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Registrieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 180 => \n array (\n 'id' => 2681,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.auth.register_button',\n 'value' => 'Registrieren',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Registrieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 181 => \n array (\n 'id' => 2682,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.auth.remember_me',\n 'value' => 'An mich errinnern',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'An mich errinnern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 182 => \n array (\n 'id' => 2683,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.contact.box_title',\n 'value' => 'Contact Us',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Contact Us',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 183 => \n array (\n 'id' => 2684,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.contact.button',\n 'value' => 'Send Information',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Send Information',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 184 => \n array (\n 'id' => 2685,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.passwords.forgot_password',\n 'value' => 'Kennwort vergessen?',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort vergessen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 185 => \n array (\n 'id' => 2686,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.passwords.reset_password_box_title',\n 'value' => 'Kennwort zurücksetzen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort zurücksetzen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 186 => \n array (\n 'id' => 2687,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.passwords.reset_password_button',\n 'value' => 'Kennwort zurücksetzen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort zurücksetzen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 187 => \n array (\n 'id' => 2688,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.passwords.send_password_reset_link_button',\n 'value' => 'Link zum zurücksetzen des Kennworts senden',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Link zum zurücksetzen des Kennworts senden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 188 => \n array (\n 'id' => 2689,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.macros.country.alpha',\n 'value' => 'ISO Länder-Code',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'ISO Länder-Code',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 189 => \n array (\n 'id' => 2690,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.macros.country.alpha2',\n 'value' => 'ISO Länder-Code (2 Stellig)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'ISO Länder-Code (2 Stellig)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 190 => \n array (\n 'id' => 2691,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.macros.country.alpha3',\n 'value' => 'ISO Länder-Code (3 Stellig)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'ISO Länder-Code (3 Stellig)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 191 => \n array (\n 'id' => 2692,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.macros.country.numeric',\n 'value' => 'Länder Nummern-Code',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Länder Nummern-Code',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 192 => \n array (\n 'id' => 2693,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.macros.macro_examples',\n 'value' => 'Makro Beispiele',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Makro Beispiele',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 193 => \n array (\n 'id' => 2694,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.macros.state.mexico',\n 'value' => 'Mexico Staaten Liste',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Mexico Staaten Liste',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 194 => \n array (\n 'id' => 2695,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.macros.state.us.us',\n 'value' => 'US Staaten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'US Staaten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 195 => \n array (\n 'id' => 2696,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.macros.state.us.outlying',\n 'value' => 'US Überseeterritorien',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'US Überseeterritorien',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 196 => \n array (\n 'id' => 2697,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.macros.state.us.armed',\n 'value' => 'US-Streitkräfte',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'US-Streitkräfte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 197 => \n array (\n 'id' => 2698,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.macros.territories.canada',\n 'value' => 'Kanada Provinzen & Territorien Liste',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kanada Provinzen & Territorien Liste',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 198 => \n array (\n 'id' => 2699,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.macros.timezone',\n 'value' => 'Zeitzone',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Zeitzone',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 199 => \n array (\n 'id' => 2700,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.user.passwords.change',\n 'value' => 'Kennwort ändern',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort ändern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 200 => \n array (\n 'id' => 2701,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.avatar',\n 'value' => 'Avatar',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Avatar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 201 => \n array (\n 'id' => 2702,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.created_at',\n 'value' => 'Erstellt am',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Erstellt am',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 202 => \n array (\n 'id' => 2703,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.edit_information',\n 'value' => 'Informationen bearbeiten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Informationen bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 203 => \n array (\n 'id' => 2704,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.email',\n 'value' => 'E-Mail',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'E-Mail',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 204 => \n array (\n 'id' => 2705,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.last_updated',\n 'value' => 'Letzte Aktualisierung',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Letzte Aktualisierung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 205 => \n array (\n 'id' => 2706,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.name',\n 'value' => 'Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 206 => \n array (\n 'id' => 2707,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.update_information',\n 'value' => 'Informationen aktualisieren',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Informationen aktualisieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 207 => \n array (\n 'id' => 2708,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.title',\n 'value' => 'Zugriffsverwaltung',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Zugriffsverwaltung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 208 => \n array (\n 'id' => 2709,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.roles.all',\n 'value' => 'Alle Rollen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Alle Rollen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 209 => \n array (\n 'id' => 2710,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.roles.create',\n 'value' => 'Rolle erstellen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rolle erstellen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 210 => \n array (\n 'id' => 2711,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.roles.edit',\n 'value' => 'Rolle bearbeiten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rolle bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 211 => \n array (\n 'id' => 2712,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.roles.management',\n 'value' => 'Rollen verwalten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rollen verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 212 => \n array (\n 'id' => 2713,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.roles.main',\n 'value' => 'Rollen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rollen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 213 => \n array (\n 'id' => 2714,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.users.all',\n 'value' => 'Alle Benutzer',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Alle Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 214 => \n array (\n 'id' => 2715,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.users.change-password',\n 'value' => 'Kennwort ändern',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort ändern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 215 => \n array (\n 'id' => 2716,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.users.create',\n 'value' => 'Benutzer erstellen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer erstellen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 216 => \n array (\n 'id' => 2717,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.users.deactivated',\n 'value' => 'Deaktivierte Benutzer',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Deaktivierte Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 217 => \n array (\n 'id' => 2718,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.users.deleted',\n 'value' => 'Gelöschte Benutzer',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Gelöschte Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 218 => \n array (\n 'id' => 2719,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.users.edit',\n 'value' => 'Benutzer bearbeiten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 219 => \n array (\n 'id' => 2720,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.users.main',\n 'value' => 'Benutzer',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 220 => \n array (\n 'id' => 2721,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.users.view',\n 'value' => 'Benutzer anzeigen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer anzeigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 221 => \n array (\n 'id' => 2722,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.log-viewer.main',\n 'value' => 'Logbuch',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Logbuch',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 222 => \n array (\n 'id' => 2723,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.log-viewer.dashboard',\n 'value' => 'Dashboard',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dashboard',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 223 => \n array (\n 'id' => 2724,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.log-viewer.logs',\n 'value' => 'Logs',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Logs',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 224 => \n array (\n 'id' => 2725,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.sidebar.dashboard',\n 'value' => 'Dashboard',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dashboard',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 225 => \n array (\n 'id' => 2726,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.sidebar.general',\n 'value' => 'Allgemein',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Allgemein',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 226 => \n array (\n 'id' => 2727,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.sidebar.system',\n 'value' => 'System',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'System',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 227 => \n array (\n 'id' => 2728,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.language',\n 'value' => 'Sprache',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Sprache',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 228 => \n array (\n 'id' => 2729,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.ar',\n 'value' => 'العربية (Arabic)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'العربية (Arabic)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 229 => \n array (\n 'id' => 2730,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.zh',\n 'value' => '(Chinese Simplified)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '(Chinese Simplified)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 230 => \n array (\n 'id' => 2731,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.zh-TW',\n 'value' => '(Chinese Traditional)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '(Chinese Traditional)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 231 => \n array (\n 'id' => 2732,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.da',\n 'value' => 'Dänisch (Danish)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dänisch (Danish)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 232 => \n array (\n 'id' => 2733,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.de',\n 'value' => 'Deutsch (German)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Deutsch (German)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 233 => \n array (\n 'id' => 2734,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.el',\n 'value' => '(Greek)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '(Greek)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 234 => \n array (\n 'id' => 2735,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.en',\n 'value' => 'Englisch (English)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Englisch (English)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 235 => \n array (\n 'id' => 2736,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.es',\n 'value' => 'Spanisch (Spanish)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Spanisch (Spanish)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 236 => \n array (\n 'id' => 2737,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.fr',\n 'value' => 'Französisch (French)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Französisch (French)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 237 => \n array (\n 'id' => 2738,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.id',\n 'value' => 'Indonesisch (Indonesian)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Indonesisch (Indonesian)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 238 => \n array (\n 'id' => 2739,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.it',\n 'value' => 'Italienisch (Italian)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Italienisch (Italian)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 239 => \n array (\n 'id' => 2740,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.ja',\n 'value' => 'Japanisch (Japanese)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Japanisch (Japanese)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 240 => \n array (\n 'id' => 2741,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.nl',\n 'value' => 'Niederländisch (Dutch)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Niederländisch (Dutch)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 241 => \n array (\n 'id' => 2742,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.pt_BR',\n 'value' => 'Brasilianisches Portugiesisch (Brazilian Portuguese)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Brasilianisches Portugiesisch (Brazilian Portuguese)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 242 => \n array (\n 'id' => 2743,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.ru',\n 'value' => 'Russisch (Russian)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Russisch (Russian)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 243 => \n array (\n 'id' => 2744,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.sv',\n 'value' => 'Schwedisch (Swedish)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Schwedisch (Swedish)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 244 => \n array (\n 'id' => 2745,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.th',\n 'value' => '(Thai)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '(Thai)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 245 => \n array (\n 'id' => 2746,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.tr',\n 'value' => '(Turkish)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '(Turkish)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 246 => \n array (\n 'id' => 2747,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'navs',\n 'key' => 'general.home',\n 'value' => 'Startseite',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Startseite',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 247 => \n array (\n 'id' => 2748,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'navs',\n 'key' => 'general.logout',\n 'value' => 'Abmelden',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Abmelden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 248 => \n array (\n 'id' => 2749,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'navs',\n 'key' => 'frontend.contact',\n 'value' => 'Contact',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Contact',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 249 => \n array (\n 'id' => 2750,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'navs',\n 'key' => 'frontend.dashboard',\n 'value' => 'Dashboard',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dashboard',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 250 => \n array (\n 'id' => 2751,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'navs',\n 'key' => 'frontend.login',\n 'value' => 'Anmelden',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Anmelden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 251 => \n array (\n 'id' => 2752,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'navs',\n 'key' => 'frontend.macros',\n 'value' => 'Makros',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Makros',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 252 => \n array (\n 'id' => 2753,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'navs',\n 'key' => 'frontend.register',\n 'value' => 'Registrieren',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Registrieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 253 => \n array (\n 'id' => 2754,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'navs',\n 'key' => 'frontend.user.account',\n 'value' => 'Mein Konto',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Mein Konto',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 254 => \n array (\n 'id' => 2755,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'navs',\n 'key' => 'frontend.user.administration',\n 'value' => 'Administration',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Administration',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 255 => \n array (\n 'id' => 2756,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'navs',\n 'key' => 'frontend.user.change_password',\n 'value' => 'Kennwort ändern',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort ändern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 256 => \n array (\n 'id' => 2757,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'navs',\n 'key' => 'frontend.user.my_information',\n 'value' => 'Meine Informationen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Meine Informationen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 257 => \n array (\n 'id' => 2758,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'navs',\n 'key' => 'frontend.user.profile',\n 'value' => 'Profile',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Profile',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 258 => \n array (\n 'id' => 2759,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'roles',\n 'key' => 'administrator',\n 'value' => 'Administrator',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Administrator',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 259 => \n array (\n 'id' => 2760,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'roles',\n 'key' => 'user',\n 'value' => 'Benutzer',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 260 => \n array (\n 'id' => 2761,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.access.users.delete_user_confirm',\n 'value' => 'Bist du dir sicher, dass du diesen Benutzer permanent löschen möchtest? Überall wo die Benutzer-ID referenziert ist, wird es höchstwahrscheinlich zu Fehlern kommen. Fortfahren auf eigenes Risiko. Dies kann nicht rückgängig gemacht werden.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Bist du dir sicher, dass du diesen Benutzer permanent löschen möchtest? Überall wo die Benutzer-ID referenziert ist, wird es höchstwahrscheinlich zu Fehlern kommen. Fortfahren auf eigenes Risiko. Dies kann nicht rückgängig gemacht werden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 261 => \n array (\n 'id' => 2762,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.access.users.if_confirmed_off',\n 'value' => '(Wenn nicht bestätigt)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '(Wenn nicht bestätigt)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 262 => \n array (\n 'id' => 2763,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.access.users.restore_user_confirm',\n 'value' => 'Benutzer in den Originalzustand wiederherstellen?',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer in den Originalzustand wiederherstellen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 263 => \n array (\n 'id' => 2764,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.dashboard.title',\n 'value' => 'Administratives Dashboard',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Administratives Dashboard',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 264 => \n array (\n 'id' => 2765,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.dashboard.welcome',\n 'value' => 'Willkommen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Willkommen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 265 => \n array (\n 'id' => 2766,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.all_rights_reserved',\n 'value' => 'Alle Rechte vorbehalten.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Alle Rechte vorbehalten.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 266 => \n array (\n 'id' => 2767,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.are_you_sure',\n 'value' => 'Bist du dir sicher?',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Bist du dir sicher?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 267 => \n array (\n 'id' => 2768,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.boilerplate_link',\n 'value' => 'Laravel 5 Boilerplate',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Laravel 5 Boilerplate',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 268 => \n array (\n 'id' => 2769,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.continue',\n 'value' => 'Fortsetzen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Fortsetzen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 269 => \n array (\n 'id' => 2770,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.member_since',\n 'value' => 'Mitglied seit',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Mitglied seit',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 270 => \n array (\n 'id' => 2771,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.minutes',\n 'value' => ' Minuten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ' Minuten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 271 => \n array (\n 'id' => 2772,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.search_placeholder',\n 'value' => 'Suchen...',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Suchen...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 272 => \n array (\n 'id' => 2773,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.timeout',\n 'value' => 'Du wurdest aus Sicherheitsgründen automatisch abgemeldet weil du inaktiv warst seit ',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du wurdest aus Sicherheitsgründen automatisch abgemeldet weil du inaktiv warst seit ',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 273 => \n array (\n 'id' => 2774,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.see_all.messages',\n 'value' => 'Alle Nachrichten anzeigen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Alle Nachrichten anzeigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 274 => \n array (\n 'id' => 2775,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.see_all.notifications',\n 'value' => 'Alle anzeigen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Alle anzeigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 275 => \n array (\n 'id' => 2776,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.see_all.tasks',\n 'value' => 'Alle Aufgaben anzeigen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Alle Aufgaben anzeigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 276 => \n array (\n 'id' => 2777,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.status.online',\n 'value' => 'Angemeldet',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Angemeldet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 277 => \n array (\n 'id' => 2778,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.status.offline',\n 'value' => 'Abgemeldet',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Abgemeldet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 278 => \n array (\n 'id' => 2779,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.you_have.messages',\n 'value' => '{0} Du hast keine Nachrichten|{1} Du hast 1 Nachricht|[2,Inf] Du hast :number Nachrichten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '{0} Du hast keine Nachrichten|{1} Du hast 1 Nachricht|[2,Inf] Du hast :number Nachrichten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 279 => \n array (\n 'id' => 2780,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.you_have.notifications',\n 'value' => '{0} Du hast keine Benachrichtigungen|{1} Du hast 1 Benachrichtigung|[2,Inf] Du hast :number Benachrichtigungen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '{0} Du hast keine Benachrichtigungen|{1} Du hast 1 Benachrichtigung|[2,Inf] Du hast :number Benachrichtigungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 280 => \n array (\n 'id' => 2781,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.you_have.tasks',\n 'value' => '{0} Du hast keine Aufgaben|{1} Du hast 1 Aufgabe|[2,Inf] Du hast :number Aufgaben',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '{0} Du hast keine Aufgaben|{1} Du hast 1 Aufgabe|[2,Inf] Du hast :number Aufgaben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 281 => \n array (\n 'id' => 2782,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.search.empty',\n 'value' => 'Bitte gib einen Suchbegriff ein.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Bitte gib einen Suchbegriff ein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 282 => \n array (\n 'id' => 2783,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.search.incomplete',\n 'value' => 'Du musst deinen eigenen Such-Algorithmus für dieses System schreiben.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du musst deinen eigenen Such-Algorithmus für dieses System schreiben.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 283 => \n array (\n 'id' => 2784,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.search.title',\n 'value' => 'Suchergebnisse',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Suchergebnisse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 284 => \n array (\n 'id' => 2785,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.search.results',\n 'value' => 'Suchergebnisse für :query',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Suchergebnisse für :query',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 285 => \n array (\n 'id' => 2786,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.welcome',\n 'value' => '<p>This is the foodsharing Admin Panel!</p>\n\n<p>Have Fun!</p>',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '<p>This is the foodsharing Admin Panel!</p>\n\n<p>Have Fun!</p>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 286 => \n array (\n 'id' => 2787,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'emails.auth.account_confirmed',\n 'value' => 'Your account has been confirmed.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your account has been confirmed.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 287 => \n array (\n 'id' => 2788,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'emails.auth.error',\n 'value' => 'Hoppla!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Hoppla!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 288 => \n array (\n 'id' => 2789,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'emails.auth.greeting',\n 'value' => 'Hallo!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Hallo!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 289 => \n array (\n 'id' => 2790,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'emails.auth.regards',\n 'value' => 'Viele Grüße,',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Viele Grüße,',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 290 => \n array (\n 'id' => 2791,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'emails.auth.trouble_clicking_button',\n 'value' => 'Wenn du Probleme hast den \":action_text\"-Knopf zu drücken, kopiere die URL unten in deinen Web Browser:',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Wenn du Probleme hast den \":action_text\"-Knopf zu drücken, kopiere die URL unten in deinen Web Browser:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 291 => \n array (\n 'id' => 2792,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'emails.auth.thank_you_for_using_app',\n 'value' => 'Danke, dass du diese Anwendung benutzst!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Danke, dass du diese Anwendung benutzst!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 292 => \n array (\n 'id' => 2793,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'emails.auth.password_reset_subject',\n 'value' => 'Dein Link zum Zurücksetzen des Kennworts',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dein Link zum Zurücksetzen des Kennworts',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 293 => \n array (\n 'id' => 2794,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'emails.auth.password_cause_of_email',\n 'value' => 'Du erhältst diese Email weil wir eine Anforderung erhalten haben, das Kennwort für dieses Konto zurückzusetzen.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du erhältst diese Email weil wir eine Anforderung erhalten haben, das Kennwort für dieses Konto zurückzusetzen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 294 => \n array (\n 'id' => 2795,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'emails.auth.password_if_not_requested',\n 'value' => 'Wenn du keine Zurücksetzung deines Kennworts angefordert hast, ist keine weitere Aktion erforderlich.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Wenn du keine Zurücksetzung deines Kennworts angefordert hast, ist keine weitere Aktion erforderlich.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 295 => \n array (\n 'id' => 2796,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'emails.auth.reset_password',\n 'value' => 'Klick hier, um dein Passwort zurückzusetzen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Klick hier, um dein Passwort zurückzusetzen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 296 => \n array (\n 'id' => 2797,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'emails.auth.click_to_confirm',\n 'value' => 'Klick hier, um dein Konto zu aktivieren:',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Klick hier, um dein Konto zu aktivieren:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 297 => \n array (\n 'id' => 2798,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'emails.contact.email_body_title',\n 'value' => 'You have a new contact form request: Below are the details:',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You have a new contact form request: Below are the details:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 298 => \n array (\n 'id' => 2799,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'emails.contact.subject',\n 'value' => 'A new :app_name contact form submission!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'A new :app_name contact form submission!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 299 => \n array (\n 'id' => 2800,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.test',\n 'value' => 'Test',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Test',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 300 => \n array (\n 'id' => 2801,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.based_on.permission',\n 'value' => 'Anhand von Berechtigungen - ',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Anhand von Berechtigungen - ',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 301 => \n array (\n 'id' => 2802,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.based_on.role',\n 'value' => 'Anhand von Rollen - ',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Anhand von Rollen - ',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 302 => \n array (\n 'id' => 2803,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.js_injected_from_controller',\n 'value' => 'Javascript von einem Controller eingefügt',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Javascript von einem Controller eingefügt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 303 => \n array (\n 'id' => 2804,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_blade_extensions',\n 'value' => 'Verwenden von Blade-Erweiterungen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Verwenden von Blade-Erweiterungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 304 => \n array (\n 'id' => 2805,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.array_permissions',\n 'value' => 'Verwenden von Access Helper mit Array von Berechtigungs-Namen oder ID\\'s bei der der Benutzer alle besitzen muss.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Verwenden von Access Helper mit Array von Berechtigungs-Namen oder ID\\'s bei der der Benutzer alle besitzen muss.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 305 => \n array (\n 'id' => 2806,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.array_permissions_not',\n 'value' => 'Verwenden von Access Helper mit Array von Berechtigungs-Namen oder ID\\'s bei der der Benutzer nicht alle besitzen muss.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Verwenden von Access Helper mit Array von Berechtigungs-Namen oder ID\\'s bei der der Benutzer nicht alle besitzen muss.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 306 => \n array (\n 'id' => 2807,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.array_roles',\n 'value' => 'Verwenden von Access Helper mit Array von Rollen-Namen oder ID\\'s bei der der Benutzer alle besitzen muss.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Verwenden von Access Helper mit Array von Rollen-Namen oder ID\\'s bei der der Benutzer alle besitzen muss.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 307 => \n array (\n 'id' => 2808,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.array_roles_not',\n 'value' => 'Verwenden von Access Helper mit Array von Rolen-Namen oder ID\\'s bei der der Benutzer nicht alle besitzen muss.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Verwenden von Access Helper mit Array von Rolen-Namen oder ID\\'s bei der der Benutzer nicht alle besitzen muss.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 308 => \n array (\n 'id' => 2809,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.permission_id',\n 'value' => 'Verwenden von Access Helper mit Berechtigungs-ID',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Verwenden von Access Helper mit Berechtigungs-ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 309 => \n array (\n 'id' => 2810,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.permission_name',\n 'value' => 'Verwenden von Access Helper mit Berechtigungs-Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Verwenden von Access Helper mit Berechtigungs-Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 310 => \n array (\n 'id' => 2811,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.role_id',\n 'value' => 'Verwenden von Access Helper mit Rollen-ID',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Verwenden von Access Helper mit Rollen-ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 311 => \n array (\n 'id' => 2812,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.role_name',\n 'value' => 'Verwenden von Access Helper mit Rollen-Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Verwenden von Access Helper mit Rollen-Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 312 => \n array (\n 'id' => 2813,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.view_console_it_works',\n 'value' => 'Schaue in die Konsole, du solltest \\'it works!\\' sehen, welches vom FrontendController@index kommt',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Schaue in die Konsole, du solltest \\'it works!\\' sehen, welches vom FrontendController@index kommt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 313 => \n array (\n 'id' => 2814,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.you_can_see_because',\n 'value' => 'Du kannst dies sehen, da du folgende Rolle besitzt \\':role\\'!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du kannst dies sehen, da du folgende Rolle besitzt \\':role\\'!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 314 => \n array (\n 'id' => 2815,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.you_can_see_because_permission',\n 'value' => 'Du kannst dies sehen, da du folgende Berechtigung besitzt \\':permission\\'!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du kannst dies sehen, da du folgende Berechtigung besitzt \\':permission\\'!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 315 => \n array (\n 'id' => 2816,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.general.joined',\n 'value' => 'Joined',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Joined',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 316 => \n array (\n 'id' => 2817,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.user.change_email_notice',\n 'value' => 'Wenn du deine Email-Adresse änderst, wirst du abgemeldet, bis du deine neue Email-Adresse bestätigt hast.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Wenn du deine Email-Adresse änderst, wirst du abgemeldet, bis du deine neue Email-Adresse bestätigt hast.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 317 => \n array (\n 'id' => 2818,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.user.email_changed_notice',\n 'value' => 'Du musst deine neue Email-Adresse bestätigen, bevor du dich wieder anmelden kannst.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du musst deine neue Email-Adresse bestätigen, bevor du dich wieder anmelden kannst.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 318 => \n array (\n 'id' => 2819,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.user.profile_updated',\n 'value' => 'Profil aktualisiert.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Profil aktualisiert.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 319 => \n array (\n 'id' => 2820,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.user.password_updated',\n 'value' => 'Passwort aktualisiert.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Passwort aktualisiert.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 320 => \n array (\n 'id' => 2821,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.welcome_to',\n 'value' => 'Wilkommen bei :place',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Wilkommen bei :place',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 321 => \n array (\n 'id' => 2822,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.associated_roles',\n 'value' => 'Zugeordnete Rollen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Zugeordnete Rollen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 322 => \n array (\n 'id' => 2823,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.dependencies',\n 'value' => 'Abhängigkeiten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Abhängigkeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 323 => \n array (\n 'id' => 2824,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.display_name',\n 'value' => 'Anzeige-Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Anzeige-Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 324 => \n array (\n 'id' => 2825,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.group',\n 'value' => 'Gruppe',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Gruppe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 325 => \n array (\n 'id' => 2826,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.group_sort',\n 'value' => 'Gruppen-Sortierung',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Gruppen-Sortierung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 326 => \n array (\n 'id' => 2827,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.groups.name',\n 'value' => 'Gruppen-Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Gruppen-Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 327 => \n array (\n 'id' => 2828,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.name',\n 'value' => 'Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 328 => \n array (\n 'id' => 2829,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.system',\n 'value' => 'System?',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'System?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 329 => \n array (\n 'id' => 2830,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.roles.associated_permissions',\n 'value' => 'Zugeordnerte Berechtigungen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Zugeordnerte Berechtigungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 330 => \n array (\n 'id' => 2831,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.roles.name',\n 'value' => 'Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 331 => \n array (\n 'id' => 2832,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.roles.sort',\n 'value' => 'Sortierung',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Sortierung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 332 => \n array (\n 'id' => 2833,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.active',\n 'value' => 'Aktiv',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Aktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 333 => \n array (\n 'id' => 2834,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.associated_roles',\n 'value' => 'Zugeordnerte Rollen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Zugeordnerte Rollen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 334 => \n array (\n 'id' => 2835,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.confirmed',\n 'value' => 'Bestätigt',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Bestätigt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 335 => \n array (\n 'id' => 2836,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.email',\n 'value' => 'E-Mailadresse',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'E-Mailadresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 336 => \n array (\n 'id' => 2837,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.name',\n 'value' => 'Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 337 => \n array (\n 'id' => 2838,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.other_permissions',\n 'value' => 'Andere Berechtigungen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Andere Berechtigungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 338 => \n array (\n 'id' => 2839,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.password',\n 'value' => 'Kennwort',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 339 => \n array (\n 'id' => 2840,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.password_confirmation',\n 'value' => 'Kennwort (Wdh.)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort (Wdh.)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 340 => \n array (\n 'id' => 2841,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.send_confirmation_email',\n 'value' => 'Bestätigungs E-Mail senden',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Bestätigungs E-Mail senden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 341 => \n array (\n 'id' => 2842,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.email',\n 'value' => 'E-Mailadresse',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'E-Mailadresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 342 => \n array (\n 'id' => 2843,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.name',\n 'value' => 'Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 343 => \n array (\n 'id' => 2844,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.password',\n 'value' => 'Kennwort',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 344 => \n array (\n 'id' => 2845,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.password_confirmation',\n 'value' => 'Kennwort (Wdh.)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort (Wdh.)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 345 => \n array (\n 'id' => 2846,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.phone',\n 'value' => 'Phone',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Phone',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 346 => \n array (\n 'id' => 2847,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.message',\n 'value' => 'Message',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Message',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 347 => \n array (\n 'id' => 2848,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.old_password',\n 'value' => 'Altes Kennwort',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Altes Kennwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 348 => \n array (\n 'id' => 2849,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.new_password',\n 'value' => 'Neues Kennwort',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Neues Kennwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 349 => \n array (\n 'id' => 2850,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.new_password_confirmation',\n 'value' => 'Neues Kennwort (Wdh.)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Neues Kennwort (Wdh.)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 350 =>\n array (\n 'id' => 2851,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.translation.title',\n 'value' => 'Sprachen Management',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Sprachen Management',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 351 =>\n array (\n 'id' => 2852,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.translation.index',\n 'value' => 'Sprach-Variablen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Sprach-Variablen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 352 =>\n array (\n 'id' => 2853,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.translation.title',\n 'value' => 'Language management',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Sprachen Management',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 353 =>\n array (\n 'id' => 2854,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.translation.index',\n 'value' => 'Translation',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Sprach-Variablen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n ));\n \n \n }", "public function getCurrentTranslation(PropelPDO $con = null)\n {\n return $this->getTranslation($this->getLocale(), $con);\n }", "function __(string $translate, string $locale = null, array $values = []) : string\n {\n return I18n::find($translate, $locale, $values);\n }", "public function testFindSingleLocaleBelongsto(): void\n {\n /** @var \\Cake\\ORM\\Table|\\Cake\\ORM\\Behavior\\TranslateBehavior $table */\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n /** @var \\Cake\\ORM\\Table|\\Cake\\ORM\\Behavior\\TranslateBehavior $authors */\n $authors = $table->belongsTo('Authors')->getTarget();\n $authors->addBehavior('Translate', ['fields' => ['name']]);\n\n $table->setLocale('eng');\n $authors->setLocale('eng');\n\n $results = $table->find()\n ->select(['title', 'body'])\n ->orderBy(['title' => 'asc'])\n ->contain(['Authors' => function (SelectQuery $q) {\n return $q->select(['id', 'name']);\n }]);\n\n $expected = [\n [\n 'title' => 'Title #1',\n 'body' => 'Content #1',\n 'author' => ['id' => 1, 'name' => 'May-rianoh', '_locale' => 'eng'],\n '_locale' => 'eng',\n ],\n [\n 'title' => 'Title #2',\n 'body' => 'Content #2',\n 'author' => ['id' => 3, 'name' => 'larry', '_locale' => 'eng'],\n '_locale' => 'eng',\n ],\n [\n 'title' => 'Title #3',\n 'body' => 'Content #3',\n 'author' => ['id' => 1, 'name' => 'May-rianoh', '_locale' => 'eng'],\n '_locale' => 'eng',\n ],\n ];\n $results = array_map(function (EntityInterface $r) {\n return $r->toArray();\n }, $results->toArray());\n $this->assertEquals($expected, $results);\n }", "public function selectLanguage(){\n\t\t\t$query = new Query();\n\n\t\t\t$query->tables = array(\"tbllingua\");\n\t\t\t$query->fields = array(\"id\", \"Lingua\", \"Zona\");\n\n\t\t\tif ($query->Open()){\n\t\t\t\twhile ($row = $query->GetNextRecord(true)){\n\t\t\t\t\t$languages[] = $row;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn $languages;\n\t\t}", "public function hasTranslator(): bool;", "public function getTranslation($key = null, TextsRepository $textsRepository)\n {\n return $textsRepository->findOneBy(array('variable' => $key));\n }", "protected function transMatchExistentKey($match)\n {\n list($matchLang, $matchLangKey) = explode('.', $match);\n $matchLangFilename = $this->langDir.'/'.$matchLang.'.php';\n\n $matchLangFileContent = [];\n if ($this->filesystem->exists($matchLangFilename)) {\n $matchLangFileContent = (array) @require $this->langDir.'/'.$matchLang.'.php';\n }\n\n if (!isset($matchLangFileContent[$matchLangKey])) {\n $matchLangFileContent[$matchLangKey] = '';\n }\n\n $this->filesystem->put($matchLangFilename, $this->buildLangFileContent($matchLangFileContent, true, true));\n }", "public static function getTranslation($text) {\n if (!is_array(self::$cachedTranslations)) {\n self::$cachedTranslations = CachedConferenceApi::getTranslations();\n }\n\n $textMD5 = md5($text);\n if (is_array(self::$cachedTranslations) && isset(self::$cachedTranslations[$textMD5])) {\n return self::$cachedTranslations[$textMD5];\n }\n else {\n return $text;\n }\n }", "public function getTranslationsForLanguage($language);", "public function getTranslations()\n {\n }", "public function testSavingWithNonDefaultLocale(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $table->setEntityClass(TranslateArticle::class);\n I18n::setLocale('fra');\n $translations = [\n 'fra' => ['title' => 'Un article'],\n 'spa' => ['title' => 'Un artículo'],\n ];\n\n $article = $table->get(1);\n foreach ($translations as $lang => $data) {\n $article->translation($lang)->set($data, ['guard' => false]);\n }\n\n $table->save($article);\n $article = $table->find('translations')->where(['Articles.id' => 1])->first();\n $this->assertSame('Un article', $article->translation('fra')->title);\n $this->assertSame('Un artículo', $article->translation('spa')->title);\n }", "private function newEntry(): Translation\n {\n $this->isDisabled = false;\n\n return $this->translation = $this->createTranslation(null, '');\n }", "public function getCurrentTranslatePjax()\n {\n $this->field = Field::getInstance($this->fieldTemplate->field_template_reference,\n $this->fieldReference, $this->fieldTemplate->program_name);\n\n $this->currentTranslateDb = FieldTranslate::find()\n ->where([\n 'common_fields_represent_id' => $this->field->id,\n 'common_language_id' => $this->language->id\n ])->one();\n\n $this->value = $this->currentTranslateDb->value;\n\n return $this->currentTranslateDb;\n }", "function translate (string $original, string $localeOverride = '') : string {\n\t$locale = ($localeOverride === '' ? $_SESSION['locale'] : $localeOverride);\n\t$translation = executeQuery(\n\t\t_BASE_DB_HOOK,\n\t\t'SELECT translated FROM translation WHERE original = ? AND locale = ?;',\n\t\t[['s' => $original], ['s' => $locale]]\n\t);\n\n\tif($translation instanceof mysqli_result){\n\t\t$reader = $translation->fetch_row();\n\t\tif($reader[0]){\n\t\t\treturn $reader[0];\n\t\t}\n\t}\n\treturn $original;\n}", "private function _get_translations_from_file () {\n\n\t\t$lang = file_exists(self::DIR_LANGS . $this->lang . '.php')\n\t\t\t\t\t? $this->lang : $this->_default_lang;\n\n\t\trequire self::DIR_LANGS . $lang . '.php';\n\n\t\treturn $t;\n\n\t}", "function loadTranslation($language = 'en')\n{\n $content = json_decode(file_get_contents(TRANSLATIONS_FOLDER . DS . $language . '.json'), true);\n if ($content && count($content)) {\n return $content;\n } else {\n return $language == 'en' ? array() : loadTranslation('en');\n }\n}", "public function testSaveNewRecordWithOnlyTranslationsNotDefaultLocale(): void\n {\n $table = $this->getTableLocator()->get('Sections');\n $table->getValidator()->add('title', 'notBlank', ['rule' => 'notBlank']);\n $table->addBehavior('Translate', [\n 'fields' => ['title'],\n ]);\n\n $data = [\n '_translations' => [\n 'es' => [\n 'title' => 'Title ES',\n ],\n ],\n ];\n\n $group = $table->newEntity($data);\n $result = $table->save($group);\n $this->assertNotFalse($result, 'Record should save.');\n\n $expected = [\n [\n 'es' => [\n 'title' => 'Title ES',\n 'locale' => 'es',\n ],\n ],\n ];\n $result = $table->find('translations')->where(['id' => $result->id]);\n $this->assertEquals($expected, $this->_extractTranslations($result)->toArray());\n }", "public function translate();", "function localize($phrase) {\n global $translations;\n /* Static keyword is used to ensure the file is loaded only once */\n if ($translations[$phrase])\n return $translations[$phrase];\n else\n return $phrase;\n}", "public function lookFor($word,$lang='tr'){\n\t\t\n\t\tif($lang=='tr')\n\t\t\t$content=file_get_contents($this->enUrl.urlencode($word));\n\t\telse\n\t\t\t$content=$this->fetchTrWord(urlencode($word));\n\t\t\n\t\t$content=mb_convert_encoding($content,'UTF-8','ISO-8859-9');\n\t\t\n\t\tif($content!=false && $this->getWordLang($content)==$lang){\n\t\t\t$this->content=$content;\n\t\t\treturn $content;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public function createLangue($name,$translate){\n\n global $conn;\n\n $request_insert = \"INSERT INTO `langue` (`name`,`translate`) VALUES ('\" . $name . \"','\" . $translate . \"')\";\n\n $conn->query($request_insert);\n }", "public function getTranslationTable()\n {\n return $this->getTableSingular().'_translated';\n }", "function addTransLang($translatorID, $langID) {\n $query = 'select * from translatorLangMap where userID=' . $translatorID . ' and langID=' . $langID;\n $transLangRes = $this->db->dbQuery($query);\n if ($transLangRes->num_rows > 0) return -1;\n\n $tableValues = array('userID' => $translatorID,\n 'langID' => $langID,\n 'approvalStatus' => 0);\n return $this->db->dbInsert('translatorLangMap', $tableValues);\n }" ]
[ "0.61725914", "0.6167329", "0.6068025", "0.6043813", "0.5987521", "0.5928025", "0.5906999", "0.5906999", "0.5906999", "0.5862278", "0.5809974", "0.5802724", "0.57998663", "0.57866126", "0.5785996", "0.5779239", "0.5751672", "0.5748426", "0.5740432", "0.5716688", "0.56720024", "0.5651489", "0.563682", "0.56138545", "0.5571883", "0.5534719", "0.5521125", "0.5512475", "0.551173", "0.5503199", "0.54907084", "0.549043", "0.5454222", "0.5445261", "0.54412967", "0.542679", "0.54149795", "0.5405588", "0.54008687", "0.5385699", "0.53682417", "0.53609484", "0.5351929", "0.53294146", "0.53201723", "0.53144443", "0.53081787", "0.53068554", "0.53068554", "0.5305214", "0.530375", "0.52882713", "0.5259667", "0.52592736", "0.52484834", "0.5242566", "0.5241116", "0.524054", "0.5202371", "0.5182371", "0.5178361", "0.517612", "0.5171867", "0.5169554", "0.51666224", "0.51610994", "0.5154144", "0.51529163", "0.51497436", "0.514858", "0.51478934", "0.5137928", "0.5137924", "0.51377434", "0.5129134", "0.51288885", "0.51206833", "0.5109375", "0.51071334", "0.5106495", "0.5102684", "0.5100704", "0.5098304", "0.509784", "0.50971603", "0.5095395", "0.5091709", "0.50798464", "0.50722736", "0.5067495", "0.50674206", "0.50655425", "0.50637007", "0.5059203", "0.50585955", "0.50566363", "0.5054612", "0.50537395", "0.50468", "0.5041418", "0.50136316" ]
0.0
-1
Set up the configuration of the specific Log Observer.
function setConfig (Array &$conf) { parent::setConfig($conf); $this->_fileheader = '<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head><title>Xaraya HTML Logger</title></head> <body><br /> <table border="1" width="100%" cellpadding="2" cellspacing="0"> <tr align="center"> <th>Time</th> <th>Logging Level</th> <th>Message</th> </tr>'; $this->_buffer = "\r\n".'<tr style="background-color:#e3e3e3;"><th>New Page View</th><th colspan="2">'.$_SERVER["REQUEST_URI"].'</th></tr>'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setupConfig()\n\t{\n\t\tparent::setupConfig();\n\t\t\n\t\tunset($this->config->event_log);\n\t\t$this->config->event_log = new EventLogTemp(\n\t\t\t$this->config->olp_db,\n\t\t\t$this->config->olp_db->db_info['db'],\n\t\t\t$this->config_data->application_id,\n\t\t\t'event_log_new_bbx'\n\t\t);\n\t}", "private function configure() {\n\t\t$manager = LogManager::getLogManager();\n\t\t$cname = $this->getClass()->getName();\n\t\t$this->pattern = $manager->getStringProperty( $cname . '.pattern', \"%h/php%u.log\" );\n\t\t$this->limit = $manager->getIntProperty( $cname . '.limit', 0 );\n\t\tif ($this->limit < 0) {\n\t\t\t$this->limit = 0;\n\t\t}\n\t\t$this->count = $manager->getIntProperty( $cname . '.count', 1 );\n\t\tif ($this->count <= 0) {\n\t\t\t$this->count = 1;\n\t\t}\n\t\t$this->append = $manager->getBooleanProperty( $cname . '.append', false );\n\t\t$this->setLevel( $manager->getLevelProperty( $cname . '.level', Level::$ALL ) );\n\t\t$this->setFilter( $manager->getFilterProperty( $cname . '.filter', null ) );\n\t\t$this->setFormatter( $manager->getFormatterProperty( $cname . '.formatter', new SimpleFormatter() ) );\n\t\ttry {\n\t\t\t$this->setEncoding( $manager->getStringProperty( $cname . '.encoding', null ) );\n\t\t} catch ( \\Exception $e ) {\n\t\t\t$this->setEncoding( null );\n\t\t}\n\t}", "protected function setup() \n {\n if (!isset($this->ini['log'])) {\n $this->fatal_error('The configuration does not define the \\'log\\' setting.');\n }\n\n if (!isset($this->ini['ttl'])) {\n $this->fatal_error('The configuration does not define the \\'ttl\\' setting.');\n }\n\n if (isset($this->ini['redis'])) {\n $this->_redis = new RedisFunctions(\n $this->ini['ttl'], $this->ini['redis']['host'], \n $this->ini['redis']['port'], $this->ini['redis']['timeout']);\n } else {\n $this->fatal_error('The configuration does not define a redis section.');\n }\n\n if ($this->is_parent()) {\n $emails = array();\n if (isset($this->ini['emails'])) {\n foreach ($this->ini['emails'] as $email) {\n $emails[] = $email;\n $this->log(\"Adding $email to notification list.\");\n }\n }\n $this->email_distribution_list = $emails;\n }\n\n $this->_startTime = microtime(true);\n }", "public function setup()\n {\n $this->_config = array(\n 'adapters' => array(\n array(\n 'adapter' => 'Solar_Log_Adapter_File',\n 'events' => 'debug',\n 'file' => Solar_File::tmp('test_solar_log_adapter_multi.debug.log'),\n 'format' => '%e %m',\n ),\n array(\n 'adapter' => 'Solar_Log_Adapter_File',\n 'events' => 'info, notice',\n 'file' => Solar_File::tmp('test_solar_log_adapter_multi.other.log'),\n 'format' => '%e %m',\n ),\n ),\n );\n \n parent::setup();\n @unlink($this->_config['adapters'][0]['file']);\n @unlink($this->_config['adapters'][1]['file']);\n }", "public function __construct(){\n Logger::configure('../../loggingconfiguration.xml');\n // Fetch a logger, it will inherit settings from the root logger\n $this->log = Logger::getLogger(__CLASS__);\n }", "public static function ReconfigureObservers()\r\n\t\t{\r\n\t\t\tif (!self::$observersSetuped)\r\n\t\t\t\tself::setupObservers();\r\n\t\t\t\r\n\t\t\tforeach (self::$EventObservers as &$observer)\r\n\t\t\t{\r\n\t\t\t\tif (method_exists($observer, \"__construct\"))\r\n\t\t\t\t\t$observer->__construct();\r\n\t\t\t}\r\n\t\t}", "public function handleInitConfig(Varien_Event_Observer $observer)\n {\n /*\n * Record the current api key to detect changes\n */\n $this->currentApiKey = Mage::helper('lapostaconnect')->config('api_key');\n }", "protected function setUp()\r\n {\r\n $this->object = new ConfigFileListener;\r\n }", "protected function setupLogger()\n {\n $this->log = new Logger('philip');\n if (isset($this->config['debug']) && $this->config['debug'] == true) {\n $log_path = isset($this->config['log']) ? $this->config['log'] : false;\n\n if (!$log_path) {\n throw new \\Exception(\"If debug is enabled, you must supply a log file location.\");\n }\n\n try {\n $format = \"[%datetime% - %level_name%]: %message%\";\n $handler = new StreamHandler($log_path, Logger::DEBUG);\n $handler->setFormatter(new LineFormatter($format));\n $this->log->pushHandler($handler);\n } catch (\\Exception $e) {\n throw \\Exception(\"Unable to open/read log file.\");\n }\n } else {\n $this->log->pushHandler(new NullHandler());\n }\n }", "public function __construct()\n {\n $log_enhancer_channel_name = config('logging.bkstar123_log_enhancer.channel_name');\n $this->customLogger = Log::channel($log_enhancer_channel_name);\n }", "public function __construct()\n {\n $this->ignorePaths = config('liveintent.logging.ignore_paths', []);\n }", "public function __construct() {\n $this->log = new Logger('HRNParis');\n $this->log->pushHandler(new StreamHandler(__DIR__ .'/errors/error.log', Logger::WARNING));\n\t \n\t $this->eventlog = new Logger('HRNParis');\n $this->eventlog->pushHandler(new StreamHandler(__DIR__ .'/eventlog/events.log', Logger::WARNING));\n\t \n\t try {\n\t $pdo = connection\\PDOConnection::instance();\n\n $this->pdo = $pdo->getConnection( 'mysql:host='.$this->host.';dbname='.$this->database, $this->user, $this->password);\n\t\n\t\t\n\t } catch (\\PDOException $e){\n\t\t echo 'Database Connection Failed';\n\t\t $this->log->addError($e->getMessage());\n\t\t \n\t\t exit;\n\t }\n\t \n $this->basedir = $_SERVER['DOCUMENT_ROOT'].'/';\n\n \n /*\n \t\t// add records to the log\n $this->log->addWarning('Foo');\n $this->log->addError('Bar');\n \n */ \n\t \n }", "private static function Init()\n\t\t{\n\t\tglobal $config;\n\t\tif(isset($config['infolog']))\n\t\t\t{\n\t\t\tself::$info_log=$config['infolog'];\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\tself::$info_log=ROOT_DIR.DS.'log'.DS.'info.log';\n\t\t\t}\n\t\tif(isset($config['errorlog']))\n\t\t\t{\n\t\t\tself::$error_log=$config['errorlog'];\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\tself::$error_log=ROOT_DIR.DS.'log'.DS.'error.log';\n\t\t\t}\n\t\t}", "public function setupConfig()\n {\n registry::getInstance()->set('config', $this->parseConfig());\n }", "protected static function configureInstance()\n\t{\n\t\t$logger = new Logger('Default');\n\t\t$logger->pushHandler(new StreamHandler(__DIR__.'/../../logs/app.log', Logger::DEBUG));\n\n\t\tself::$instance = $logger;\n\t}", "public function initSystemConfig(Varien_Event_Observer $observer)\n {\n $this->getConfigModel()->initSystemConfig($observer->getConfig());\n }", "public function setup()\n {\n $this->config = new Config($this->emailOrMobileNumber, $this->merchantKey);\n }", "public function __construct()\n {\n $this->log = new Monolog('');\n $this->log->pushProcessor(new PsrLogMessageProcessor);\n\n $config = array_merge([\n 'type' => 'daily',\n 'level' => 'debug',\n 'max_files' => 5,\n 'app_file' => 'app.log',\n 'cli_file' => 'cli.log',\n 'permission' => 0664,\n ], config('logger', []));\n\n $file = storage_path('logs/' . $config[is_console() ? 'cli_file' : 'app_file']);\n $levels = $this->log->getLevels();\n $level = $levels[strtoupper($config['level'])];\n $format = \"[%datetime%] %level_name%: %message% %context%\\n\";\n\n switch ($config['type']) {\n case 'single':\n $this->log->pushHandler(\n $handler = new StreamHandler($file, $level, true, $config['permission'], false)\n );\n\n $handler->setFormatter(new LineFormatter($format, null, true, true));\n break;\n case 'daily':\n $this->log->pushHandler(\n $handler = new RotatingFileHandler($file, $config['max_files'], $level, true, $config['permission'], false)\n );\n $handler->setFormatter(new LineFormatter($format, null, true, true));\n break;\n case 'syslog':\n $this->log->pushHandler(\n new SyslogHandler(config('app.name', 'Pletfix'), LOG_USER, $level)\n );\n break;\n case 'errorlog':\n $this->log->pushHandler(\n $handler = new ErrorLogHandler(ErrorLogHandler::OPERATING_SYSTEM, $level)\n );\n $handler->setFormatter(new LineFormatter($format, null, true, true));\n break;\n default:\n throw new RuntimeException('Invalid log type in configuration \"app.log\".');\n }\n }", "protected function setLoggers(): void\n {\n if (config('core-middleware.loggers')) {\n $this->ray = config('core-middleware.loggers.ray');\n $this->log = config('core-middleware.loggers.log');\n }\n }", "protected function setUp()\n { \n $this->log = new \\Zend_Log(new \\Zend_Log_Writer_Stream('php://output'));\n $this->adapter = new ZendLogAdapter($this->log);\n }", "private function configure()\n {\n if ($this->config->get('speed_analyzer.enabled') === null) {\n $this->config->save('speed_analyzer.enabled', true);\n $this->config->save('speed_analyzer.reports.log_sql_queries', true);\n }\n }", "protected function configure() : self\n\t{\n\t\tif (isset($this->config['log_threshold'])) {\n\t\t\t$log_threshold = $this->config['log_threshold'];\n\n\t\t\t/* if they sent in a string split it into a array */\n\t\t\tif (is_string($log_threshold)) {\n\t\t\t\t$log_threshold = explode(',', $log_threshold);\n\t\t\t}\n\n\t\t\t/* is the array empty? */\n\t\t\tif (is_array($log_threshold)) {\n\t\t\t\tif (count($log_threshold) == 0) {\n\t\t\t\t\t$log_threshold = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/* Is all in the array (uppercase or lowercase?) */\n\t\t\tif (is_array($log_threshold)) {\n\t\t\t\tif (array_search('all', $log_threshold) !== false) {\n\t\t\t\t\t$log_threshold = 255;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/* build the bitwise integer */\n\t\t\tif (is_array($log_threshold)) {\n\t\t\t\t$int = 0;\n\n\t\t\t\tforeach ($log_threshold as $t) {\n\t\t\t\t\t$t = strtoupper($t);\n\n\t\t\t\t\tif (isset($this->psr_levels[$t])) {\n\t\t\t\t\t\t$int += $this->psr_levels[$t];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$log_threshold = $int;\n\t\t\t}\n\n\t\t\t$this->_threshold = (int)$log_threshold;\n\n\t\t\t$this->_enabled = ($this->_threshold > 0);\n\t\t}\n\n\t\tisset(self::$func_overload) || self::$func_overload = (extension_loaded('mbstring') && ini_get('mbstring.func_overload'));\n\n\t\tif (isset($this->config['log_file_extension'])) {\n\t\t\t$this->_file_ext = (!empty($this->config['log_file_extension'])) \t? ltrim($this->config['log_file_extension'], '.') : 'php';\n\t\t}\n\n\t\tif (isset($this->config['log_path'])) {\n\t\t\t$this->_log_path = ($this->config['log_path'] !== '') ? $this->config['log_path'] : APPPATH.'logs/';\n\n\t\t\tfile_exists($this->_log_path) || mkdir($this->_log_path, 0755, true);\n\n\t\t\tif (!is_dir($this->_log_path) || !is_really_writable($this->_log_path)) {\n\t\t\t\t/* can't write */\n\t\t\t\t$this->_enabled = false;\n\t\t\t}\n\t\t}\n\n\t\tif (!empty($this->config['log_date_format'])) {\n\t\t\t$this->_date_fmt = $this->config['log_date_format'];\n\t\t}\n\n\t\tif (!empty($this->config['log_file_permissions']) && is_int($this->config['log_file_permissions'])) {\n\t\t\t$this->_file_permissions = $this->config['log_file_permissions'];\n\t\t}\n\n\t\treturn $this;\n\t}", "protected function configure()\n {\n $this->log = new Logger('name');\n $this->log->pushHandler(new StreamHandler('logs/console.log', Logger::INFO));\n $this\n // configure an argument\n ->addArgument('name', InputArgument::OPTIONAL, 'Name of the user greeting.')// ...\n ;\n }", "public function init()\n {\n parent::init();\n self::$plugin = $this;\n\n // Get relevant env settings\n $this->tradeAccountNotificationEmail = getenv('TRADE_ACCOUNT_NOTIFICATION_EMAIL');\n $this->tradeAccountGroupId = getenv('TRADE_ACCOUNT_GROUP_ID');\n\n // Init the customer logger\n $fileTarget = new \\craft\\log\\FileTarget([\n 'logFile' => Craft::getAlias('@storage/logs/craftTradeAccountNotifications.log'),\n 'categories' => ['craft-trade-account-notifications']\n ]);\n Craft::getLogger()->dispatcher->targets[] = $fileTarget;\n\n // On user activation event, check if an email needs to be\n // sent to the client for trade account approval.\n Event::on(\n Users::class,\n Users::EVENT_AFTER_ACTIVATE_USER,\n function (UserEvent $e) {\n CraftTradeAccountNotifications::checkForTradeAccountApplication($e->user);\n }\n );\n\n // On user group change event, check if the user is\n // now in the Trade Account group and, if so, notify them.\n Event::on(\n Users::class,\n Users::EVENT_BEFORE_ASSIGN_USER_TO_GROUPS,\n function (UserGroupsAssignEvent $e) {\n if ($this->tradeAccountGroupId && $e->groupIds && in_array($this->tradeAccountGroupId, $e->groupIds)) {\n CraftTradeAccountNotifications::sendUserNotification($e->userId);\n }\n }\n );\n }", "protected function initialize()\n {\n $this->setupLogger();\n $this->writePidfile();\n $this->addDefaultHandlers();\n }", "public function __construct()\n {\n parent::__construct();\n \\Log::useDailyFiles(storage_path().'/logs/cron123.log');\n\n\t\t$this->logger = \\Log::getMonolog();\n\n\t\t\n }", "public static function init()\n {\n $output = \"[%datetime%] %channel% %level_name% > %message%\\n\\n\";\n $formatter = new LineFormatter($output, null, true);\n\n $stream = new StreamHandler('../debug/main.log');\n\n $stream->setFormatter($formatter);\n\n self::$logger['main'] = new \\Monolog\\Logger('Main');\n self::$logger['main']->pushHandler($stream);\n\n self::$logger['db'] = self::$logger['main']->withName('Database');\n self::$logger['auth'] = self::$logger['main']->withName('Auth');\n self::$logger['upload'] = self::$logger['main']->withName('Uploader');\n\n // self::$logger['exception']\n // = self::$logger['main']->withName('Unhandled');\n // ErrorHandler::register(self::$logger['exception']);\n }", "protected function setupListeners()\n {\n //\n }", "protected function setUp()\n {\n date_default_timezone_set('Asia/Shanghai');\n \n vfsStream::setup('Test');\n \n $this->serviceManager = new ServiceManager(new ServiceManagerConfig(array(\n \t'abstract_factories' => array('Platform\\Log\\LoggerAbstractServiceFactory'), \n )));\n $this->serviceManager->setService('Config', array(\n \t'log' => array(\n \t 'test-log' => array(\n \t 'writers' => array(\n \t array(\n \t 'name' => 'stream', \n \t 'options' => array(\n \t 'stream' => vfsStream::url(\"Test/%pattern%.log\"), \n \t ), \n \t ), \n \t \t), \n \t ), \n ), \n ));\n }", "protected function setUpFromConfig()\n\t{\n\t\t$timeLimit = 4 * 60 * 60;\n\n\t\t$parameters = $this->container->getParameters();\n\t\tif (is_array($parameters) and array_key_exists(\"taskManager\", $parameters)) {\n\t\t\t/// ***** TIMELIMIT ****** //\n\t\t\tif (isset($parameters[\"taskManager\"][\"timeLimit\"])) {\n\t\t\t\t$timeLimit = $parameters[\"taskManager\"][\"timeLimit\"];\n\t\t\t}\n\t\t\t/// ***** MAX HISTORY DAYS ****** //\n\t\t\tif (isset($parameters[\"taskManager\"][\"history\"][\"maxDays\"])) {\n\t\t\t\t$this->maxHistoryDays = (int)$parameters[\"taskManager\"][\"history\"][\"maxDays\"];\n\t\t\t}\n\t\t\t/// ***** MAX HISTORY RECORDS ****** //\n\t\t\tif (isset($parameters[\"taskManager\"][\"history\"][\"maxRecords\"])) {\n\t\t\t\t$this->maxHistoryRecords = (int)$parameters[\"taskManager\"][\"history\"][\"maxRecords\"];\n\t\t\t}\n\t\t}\n\n\t\tset_time_limit($timeLimit);\n\t}", "public function setUp()\n {\n if ($this->getOption('listener') === true) \n $this->addListener(new BlameableListener($this->_options));\n }", "public function __construct()\n {\n $this->setConnection($this->getConfig('database.connection', null));\n $this->setPrefix($this->getConfig('database.prefix', 'tracker_'));\n }", "protected function setup() : void\n {\n $this->subject = new Timezones();\n }", "protected function setup_config() {\n\t\t\t// TODO: Implement setup_config() method.\n\t\t}", "protected static function init()\n {\n if (empty(static::$registry)) {\n static::$registry = new LogEngineRegistery();\n }\n\n if (static::$dirtyConfig) {\n echo '111';\n }\n\n static::$dirtyConfig = false;\n }", "protected function setupLogging()\n\t{\n\t\t// Here we will configure the error logger setup for the application which\n\t\t// is built on top of the wonderful Monolog library. By default we will\n\t\t// build a basic log file setup which creates a single file for logs.\n\n\t\tLog::useFiles(storage_path().'/logs/laravel.log');\n\t}", "public function setup() {\r\n touchConfig([\r\n 'notifyOnNewDiscussion.Sender' => c('Garden.Email.SupportAddress'),\r\n 'notifyOnNewDiscussion.Recipient' => c('Garden.Email.SupportAddress')\r\n ]);\r\n $this->structure();\r\n }", "public function initEventLogger()\n {\n $dispatcher = static::getEventDispatcher();\n\n $logger = $this->newEventLogger();\n\n foreach ($this->listen as $event) {\n $dispatcher->listen($event, function ($eventName, $events) use ($logger) {\n foreach ($events as $event) {\n $logger->log($event);\n }\n });\n }\n }", "public function _on_configuring($config)\n {\n }", "public function execute(Observer $observer)\n {\n Bootstrap::init();\n }", "protected function setUp()\n {\n parent::setUp();\n\n $this->config = Configuration::loadFromArray(\n [\n 'module.enable' => ['preprodwarning' => true],\n ],\n '[ARRAY]',\n 'simplesaml'\n );\n\n $this->session = Session::getSessionFromRequest();\n\n Configuration::setPreLoadedConfig($this->config, 'config.php');\n\n $this->logger = new class () extends Logger {\n public static function info($str)\n {\n // do nothing\n }\n };\n }", "protected function configure()\n {\n $this->publishes([\n __DIR__ . '/../config/laravel-calendar.php' => config_path('laravel-calendar.php'),\n ], 'config');\n\n $this->mergeConfigFrom(\n __DIR__ . '/../config/laravel-calendar.php',\n 'laravel-calender'\n );\n }", "protected function initEventLogger(): void\n {\n $logger = $this->newEventLogger();\n\n foreach ($this->listen as $event) {\n $this->dispatcher->listen($event, function ($eventName, $events) use ($logger) {\n foreach ($events as $event) {\n $logger->log($event);\n }\n });\n }\n }", "public function configure()\n\t{\n\t\t$this->dispatcher->connect('context.load_factories', array($this, 'loadExtraFactories'));\n\t}", "public function execute(Observer $observer)\n { \n\n $writer = new \\Zend\\Log\\Writer\\Stream(BP . '/var/log/category_test.log');\n $logger = new \\Zend\\Log\\Logger();\n $logger->addWriter($writer);\n $logger->info('Enter to category observer: test');\n\n }", "private function initialize() {\n // Lecture de la config du batch\n $this->load_config();\n $GLOBALS['config'] = $this->config;\n // Initialisation du logger\n if (strcasecmp(\"DEBUG\", $this->config->debug_level) == 0) {\n $debug_const = KLogger::DEBUG;\n }\n else if(strcasecmp(\"INFO\", $this->config->debug_level) == 0) {\n $debug_const = KLogger::INFO;\n }\n else if(strcasecmp(\"WARN\", $this->config->debug_level) == 0) {\n $debug_const = KLogger::WARN;\n }\n else if(strcasecmp(\"ERROR\", $this->config->debug_level) == 0) {\n $debug_const = KLogger::ERROR;\n }\n else if(strcasecmp(\"FATAL\", $this->config->debug_level) == 0) {\n $debug_const = KLogger::FATAL;\n }\n else if(strcasecmp(\"OFF\", $this->config->debug_level) == 0) {\n $debug_const = KLogger::OFF;\n }\n $this->log = new KLogger ( $this->config->log_file , $debug_const );\n $GLOBALS['logger'] = $this->log;\n $this->check_conf();\n $this->log->LogDebug(\"Init...OK\");\n\n }", "private function __construct()\n {\n $levels = Conf::inst()->get('log.levels');\n $this->levels = $this->levelNames = array();\n foreach ($levels as $key => $name) {\n $this->levels[$name] = $key;\n $this->levelNames[] = $name;\n }\n\n $loggingLevel = Conf::inst()->get('log.level');\n $this->loggingLevel = $this->levels[$loggingLevel];\n $this->file = fopen(__DIR__ . \"/../log/\" . Conf::inst()->get('log.file'), \"a\");\n }", "public static function bootLoggable()\n {\n static::observe(app(LoggableObserver::class));\n }", "public function configure() {\n\t\t}", "public function configure();", "abstract public function configure();", "public function __construct() {\n\t\t$this->autoSetConfigurationFolder();\n\t}", "private static function _initLog()\n {\n if (!empty(self::$config->log->servers)) {\n $servers = self::$config->log->servers->toArray();\n } else {\n $servers = self::LOG_SERVERS;\n }\n\n if (php_sapi_name() == 'cli') {\n $extra = [\n 'command' => implode(' ', $_SERVER['argv']),\n 'mem' => memory_get_usage(true),\n ];\n } elseif (isset($_REQUEST['udid'])) {\n //for app request\n $extra = [\n 'h' => $_SERVER['HTTP_HOST'] ?? '',\n 'uri' => $_SERVER['REQUEST_URI'] ?? '',\n 'v' => $_REQUEST['v'] ?? '',\n 'd' => $_REQUEST['udid'] ?? '',\n 't' => $_REQUEST['mytoken'] ?? $_REQUEST['mytoken_sid'] ?? '',\n 'os' => $_REQUEST['device_os'] ?? '',\n 'm' => $_REQUEST['device_model'] ?? '',\n 'p' => $_REQUEST['platform'] ?? '',\n 'l' => $_REQUEST['language'] ?? '',\n 'real_ip' => \\Util::getClientIp(),\n ];\n } else {\n //pc or other ?\n $extra = [\n 'h' => $_SERVER['HTTP_HOST'] ?? '',\n 'uri' => $_SERVER['REQUEST_URI'] ?? '',\n 'v' => $_REQUEST['v'] ?? '',\n 't' => $_REQUEST['mytoken'] ?? $_REQUEST['mytoken_sid'] ?? '',\n 'p' => $_REQUEST['platform'] ?? '',\n 'l' => $_REQUEST['language'] ?? '',\n 'ua' => $_SERVER['HTTP_USER_AGENT'] ?? '',\n 'real_ip' => \\Util::getClientIp(),\n ];\n }\n\n if (\\Yaf\\ENVIRON != 'product') {\n \\Log::setLogFile(self::$config->log->path);\n }\n\n LoggerHandler::setServers($servers);\n LoggerHandler::setEnv(\\YAF\\ENVIRON);\n LoggerHandler::setExtra($extra);\n LoggerHandler::setUniqueId($_REQUEST['preRequestId'] ?? self::$request->header('preRequestId'));\n }", "public function configure() {}", "public function configure() {}", "protected function setUp() {\n $this->object = new ConfigHandler;\n }", "public function init()\n\t{\n\t\tif (null === $this->logFile) {\n\t\t\t$this->logFile = ROOT_DIRECTORY . '/cache/logs/system.log';\n\t\t} else {\n\t\t\t$this->logFile = Yii::getAlias($this->logFile);\n\t\t}\n\t\tif ($this->maxLogFiles < 1) {\n\t\t\t$this->maxLogFiles = 1;\n\t\t}\n\t\tif ($this->maxFileSize < 1) {\n\t\t\t$this->maxFileSize = 1;\n\t\t}\n\t}", "public function setUp() {\n\t\tparent::setUp();\n\t\t$streams = CakeLog::configured();\n\t\tforeach ($streams as $stream) {\n\t\t\tCakeLog::drop($stream);\n\t\t}\n\t}", "public function __construct()\n {\n $this->onQueue('email');\n $this->host = config('app.url');\n }", "public function __construct()\n {\n if (!$this->logDirectory) {\n $this->logDirectory = Yii::getAlias('@backend').DIRECTORY_SEPARATOR. 'logs'.DIRECTORY_SEPARATOR;\n\n if (!file_exists($this->logDirectory)) {\n FileHelper::createDirectory($this->logDirectory, 0777);\n }\n }\n\n// $this->config = array_merge($this->config, $config);\n\n// $this->setLogFilePath($this->logDirectory);\n// if(file_exists($this->logFilePath) && !is_writable($this->logFilePath)) {\n// throw new RuntimeException(Yii::t('app', 'The file could not be written to. Check that appropriate permissions have been set.'));\n// }\n// $this->setFileHandle('a');\n//\n// if ( ! self::$fileHandle) {\n// throw new RuntimeException(Yii::t('app', 'The file could not be opened. Check permissions.'));\n// }\n }", "function __construct() {\r\n\t\tparent::__construct();\r\n\t\t$this->log = Logger::getInstance();\r\n\t}", "protected function initializeConfiguration() {}", "protected function initLogger(): void\n {\n $customPath = $this->context->getConfigurationService()->getLogPath();\n $severity = $this->context->getConfigurationService()->getLogSeverity();\n\n Logger::resetErrors();\n $this->logger = Logger::getInstance(__CLASS__, $customPath, $severity);\n }", "public function configure() {\r\n\t\r\n\t}", "private function __construct() {\n $this->config = array(\n // These will all need to be changed to point at your mysql server.\n \"Database\" => array(\n \"Host\" => \"localhost\",\n \"Name\" => \"daeman\",\n \"Username\" => \"daeman\",\n \"Password\" => \"<password>\",\n ),\n );\n }", "private function setupLog()\n {\n $path = JFactory::getConfig()->get('log_path');\n\n $fileName = 'ecr_log.php';\n $entry = '';\n\n if('preserve' == JFactory::getApplication()->input->get('logMode')\n && JFile::exists($path.'/'.$fileName)\n )\n {\n $entry = '----------------------------------------------';\n }\n else if(JFile::exists($path.'/'.$fileName))\n {\n JFile::delete($path.'/'.$fileName);\n }\n\n JLog::addLogger(\n array(\n 'text_file' => $fileName\n , 'text_entry_format' => '{DATETIME}\t{PRIORITY}\t{MESSAGE}'\n , 'text_file_no_php' => true\n )\n , JLog::INFO | JLog::ERROR\n );\n\n if('' != $entry)\n JLog::add($entry);\n\n return $this;\n }", "public function init()\n {\n if ($this->packer == null) {\n $this->packer = new MsgpackOrJsonPacker();\n } else if (!($this->packer instanceof \\Fluent\\Logger\\PackerInterface)) {\n $this->packer = Yii::createComponent($this->packer);\n }\n $this->_logger = new FluentLogger($this->host, $this->port, $this->options, $this->packer);\n }", "public function init() {\n //TODO override and put config intialization code here\n }", "public function init (Observer $obs){\n\t \n\t}", "private function bootConfig(): void\n {\n $baseDir = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR;\n $configDir = $baseDir . 'config' . DIRECTORY_SEPARATOR;\n\n $this->publishes([\n $configDir . 'laravel-database-emails.php' => config_path('laravel-database-emails.php'),\n ], 'laravel-database-emails-config');\n }", "public function configure()\n {\n return $this->afterMaking(function (Report $report) {\n //\n })->afterCreating(function (Report $report) {\n // $url = 'https://source.unsplash.com/random/600x400?topics=nature?sig=123';\n // $report\n // ->addMediaFromUrl($url)\n // ->toMediaCollection('reports');\n });\n }", "protected function logfile_init() { \n if ($this->LOGGING) { \n $this->FILE_HANDLER = fopen($this->LOGFILE,'a') ; \n $this->debug(); \n } \n }", "public function setUp()\n {\n // to avoid side effects from inherited configuration contents\n ConfigurationManager::setConfiguration(new Configuration());\n }", "public function setup()\n {\n // enable our plugins\n $this->enablePlugins('sfDoctrinePlugin');\n $this->enablePlugins('sfDoctrineGuardPlugin');\n $this->enablePlugins('s44BreadcrumbsPlugin');\n $this->enablePlugins('s44MenuPlugin');\n $this->enablePlugins('s44DataGridPlugin');\n $this->enablePlugins('s44V11nPlugin');\n $this->enablePlugins('s44ContentPlugin');\n $this->enablePlugins('sfFormExtraPlugin');\n\n // add a Doctrine2 debug panel listener\n $this->dispatcher->connect('debug.web.load_panels',\n array('sfWebDebugPanelDoctrine2', 'listenToAddPanelEvent')\n );\n }", "public function __construct(Array $config) {\n $this->path = $config['log_file_path'];\n $this->timeFormat = $config['time_format'];\n }", "public function __construct()\n {\n // The __CLASS__ constant holds the class name, in our case \"errMailService\".\n // Therefore this creates a logger named \"errMailService\" (which we configured in the config file)\n $this->log = Logger::getLogger(__CLASS__);\n }", "public function __construct()\n {\n $this->conf = app()->make(ApplicationConfigurator::class);\n parent::__construct();\n }", "public function cfg_setup()\n\t{\n\t\t$this->cfg = AppConfig::get()[\"app\"];\n\t\t$this->cfg[\"app_name\"] = $this->cfg[\"name\"];\n\n\t}", "public function frontInitBefore(Varien_Event_Observer $observer)\n {\n $this->getConfigModel()->initConfigValues();\n }", "function __construct() {\n $conf = config('plugins');\n\n if (!isset($conf->memcached)) {\n $this->conf = (object) array(\n 'servers' => '127.0.0.1:11211',\n );\n } else {\n $this->conf = $conf->memcached;\n }\n\n $this->memcached = new \\Memcached();\n\n if (strpos($this->conf->servers, ',')) {\n $servers = explode(',', $this->conf->servers);\n } else {\n $servers = array($this->conf->servers);\n }\n\n foreach ($servers as $server) {\n $parts = explode(':', $server);\n $this->addServer($parts[0], $parts[1]);\n }\n }", "public function setUp()\n {\n // This listener gets a name to be able to disable and reenable it dynamically during runtime.\n $this->addListener(new TimeIt_Doctrine_CategorisableListener(), 'CategoryListener');\n }", "public static function initialize()\n {\n container()->forgetInstance(ILogger::class);\n container()->instance(ILogger::class, container()->make(ILoggerManagerInterface::class)->newLogger(SwooleMaster::getConfig()->getLogDir(), sprintf(SwooleMaster::getTopic() . sprintf(\"-tasker#%d\", self::$id))));\n }", "function __construct()\r\n\t{\r\n\t\tparent::__construct();\r\n\t\t$this->log = Logger::getInstance();\r\n\t}", "public function boot(): void\n {\n $config = loadConfig('logging');\n $this->container->make('log', [\n 'class' => LogManager::class,\n 'arguments' => [\n 'config' => $config,\n ],\n 'alias' => LoggerInterface::class\n ]);\n }", "protected function initLog( $options = array() )\n {\n\n $config = $this->di['config'];\n\n $this->di['logger'] = function () use ($config)\n {\n\n $logger = new PhLogFileAdapter($config->application->logDir . \"/app.log\");\n\n return $logger;\n\n };\n }", "private function __construct()\n {\n // Overwrite _config from config.ini\n if ($_config = \\Phalcon\\DI::getDefault()->getShared('config')->auth) {\n foreach ($_config as $key => $value) {\n $this->_config[$key] = $value;\n }\n }\n\n $this->_cookies = \\Phalcon\\DI::getDefault()->getShared('cookies');\n $this->_session = \\Phalcon\\DI::getDefault()->getShared('session');\n $this->_security = \\Phalcon\\DI::getDefault()->getShared('security');\n }", "protected function setUp()\n {\n $this->object = new Log();\n }", "function setup(&$Model, $settings = array()){\n $this->__UserLog = Common::getModel('UserLog');\n }", "protected function setUp()\n {\n $this->object = new \\Yana\\Db\\Ddl\\Logs\\Change();\n }", "function Cofiguration()\n\t{\n\t\t//$this->objConMgr = new ConnectionMgr();\n\t}", "function __construct($config = array())\n {\n if ($config instanceof Config) {\n $this->config = $config;\n\n } else if (is_array($config)) {\n $this->config = new Config($config);\n\n } else {\n throw new \\InvalidArgumentException(\n \"Config must be either an array of options or \"\n . \"an instance of \\\\Phin\\\\Server\\\\Config\"\n );\n }\n\n $this->workerPoolSize = $this->config->workerPoolSize;\n $this->events = $this->config->events;\n\n $this->log = new Logger('phin');\n\n $stderrHandler = new StreamHandler(STDERR);\n $stderrHandler->setFormatter(new LineFormatter(\n \"[%datetime%] %channel% (%level_name%): %message%\\n\"\n ));\n\n $this->log->pushHandler($stderrHandler);\n }", "function __construct() {\n $this->logging_enabled = false;\n }", "public function setUp()\r\n {\r\n $this->config += [\r\n 'http_errors' => false,\r\n 'timeout' => 10.0,\r\n 'base_uri' => $this->description->getBaseUri(),\r\n 'apiKey' => 'XXX',\r\n 'projectId' => 000,\r\n ];\r\n }", "private function setup() {\n sfContext::createInstance($this->configuration);\n\n $this->status = TaskStatus::getTaskStatus($this);\n\n $this->logger = new sfFileLogger(\n sfContext::getInstance()->getEventDispatcher(),\n array('file' => './log/tasks/'.get_class($this).'.log'));\n\n if(false === $this->status) {\n $this->log(\"Status row in Database does not exist\");\n $this->status = new TaskStatus();\n $this->status->task_name = get_class($this);\n $this->status->save();\n }\n\n $this->status->description = substr($this->briefDescription, 0, 120);\n\n $this->log(\"Task was executed via cronjob.\");\n }", "function __construct() {\n //invoke the init method of the config object in context\n $this->init();\n }", "public function __construct()\n {\n $this->_config = sspmod_janus_DiContainer::getInstance()->getConfig();\n }", "public function attach(\\SplObserver $observer) {}", "public function attach(\\SplObserver $observer) {}", "public function attach(\\SplObserver $observer) {}", "public function attach(\\SplObserver $observer) {}", "public function attach(\\SplObserver $observer) {}" ]
[ "0.67274505", "0.6367811", "0.6312998", "0.62720644", "0.6145929", "0.6065884", "0.6044928", "0.5966876", "0.59317625", "0.58835465", "0.586487", "0.5860334", "0.5845861", "0.58428824", "0.58263427", "0.5801123", "0.57912135", "0.57882994", "0.577858", "0.57470995", "0.5705236", "0.5690324", "0.5689241", "0.56824416", "0.5675566", "0.5669369", "0.56653905", "0.56562674", "0.55982333", "0.5591008", "0.5574405", "0.557432", "0.55702955", "0.55692214", "0.5566402", "0.55623513", "0.5560449", "0.55438685", "0.5539629", "0.5528119", "0.5524408", "0.5515401", "0.5486626", "0.5476965", "0.54756206", "0.5458404", "0.5451968", "0.5450503", "0.5450081", "0.54486126", "0.54453295", "0.54404175", "0.54261714", "0.5425271", "0.5425271", "0.5421226", "0.5420936", "0.5420526", "0.54186827", "0.5415969", "0.5402824", "0.54009914", "0.5388706", "0.5374162", "0.53625125", "0.5362077", "0.536173", "0.53450674", "0.53414005", "0.533992", "0.5333699", "0.5331245", "0.53286254", "0.53231233", "0.5319253", "0.5308843", "0.5307388", "0.53054667", "0.53019786", "0.5287076", "0.5286247", "0.52834827", "0.52812135", "0.52789456", "0.52774113", "0.52682567", "0.52643204", "0.5256496", "0.5255558", "0.5255333", "0.52514577", "0.5250838", "0.5249518", "0.52330136", "0.52321917", "0.52254486", "0.5222708", "0.5222708", "0.5222708", "0.522177", "0.522177" ]
0.0
-1
Writes a line to the logfile
function _formatMessage($message, $level) { return sprintf("\r\n<tr align=\"center\"><td>%s</td><td>%s</td><td>%s</td></tr>", $this->getTime(), $this->levelToString($level), nl2br(htmlspecialchars($message)).'<br />'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function writeLine($line);", "public function write_to_log($line = '')\n\t{\n\t\tif(!$this->config->allow_write_to_log) return null;\n\n\t\treturn file_put_contents(\n\t\t\t$this->config->log_location,\t\t\t\t\t//File to write to\n\t\t\tdate(DATE_ATOM).\"\\t$line\\n\",\t\t\t\t\t//Line to write\n\t\t\tFILE_APPEND | LOCK_EX);\t\t\t\t\t\t\t//Options\n\t}", "function writeLineToLog($line){\n $logFile = \"log.txt\";\n $fh = fopen($logFile, 'a') or die(\"can't open file\");\n $line .= \"\\n\";\n fwrite($fh, $line);\n fclose($fh);\n}", "public function write($line)\n {\n $time = date('H:i:s');\n $this->output->writeln(\"[{$time}] {$line}\");\n }", "protected function writeLine($line) {\n\t\t$this->fputs($line . \"\\r\\n\");\n\t}", "public static function writeLog(string $line, string $log)\n {\n $logPath = self::filePath($log);\n $file = @fopen($logPath, 'a');\n\n // failed to open/create file, notify\n if (!$file) {\n echo \"<b>Warning:</b> Log file '{$log}' is unwritable, check permissions of the log folder.\";\n } else {\n\n // if the file is full, do not write\n if (@filesize($logPath) < config('app')['log_max_size']) {\n fwrite($file, \"\\r\\n[\". date(config('app')['date_format']) .\"] \". $line);\n fclose($file);\n }\n }\n }", "function logMessage($line) {\r\n\t// Pull the current log contents\r\n $log = file(LACE_LOGFILE);\r\n\r\n // Grab the date of the\r\n // most recent post in the log\r\n $date = (count($log) > 0) ? array_shift($temp = explode('||', $log[0]))\r\n \t: false;\r\n\r\n // Write yesterday to file if necessary\r\n\tif($date !== false && date('d', $date) != date('d'))\r\n $log = newLog($log, $date);\r\n\r\n // Write the new message\r\n $logfile = fopen(LACE_LOGFILE, 'w');\r\n fwrite($logfile, $line.\"\\n\");\r\n\r\n // Write any other remaining messages\r\n if (count($log) > 0)\r\n \t\tfwrite($logfile, implode(\"\\n\", array_map('trim',$log)).\"\\n\");\r\n\r\n \tfclose($logfile);\r\n}", "public function write(Logline $msg) {\n\t\t//syslog has no LOG_TRACE level, so we'll set it to LOG_DEBUG\n\t\tif($level === Logger::TRACE) {\n\t\t\t$level = Logger::DEBUG;\n\t\t}\n\n\t\tforeach ($facilities as $fac) {\n\t\t\t@openlog($this->ident, LOG_PID, $fac);\n\t\t\t@syslog($level, $logline);\n\t\t}\n\t}", "protected function logLine($logLine)\n\t{\n\t\tif (!MAKE_INSTALL_LOG || ($this->logFile == '')) return;\n\t\t$logfp = fopen($this->logFile, 'a+');\n\t\tfwrite($logfp, ($now = time()).', '.gmstrftime('%y-%m-%d %H:%M:%S',$now).' '.$logLine.\"\\n\");\n\t\tfclose($logfp);\n\t}", "public function writeln($line)\n {\n $this->write($line.PHP_EOL);\n }", "public function log($info, $file =\"\", $line = \"\")\n {\n if($this->loggingEnabled)\n {\n try \n {\n $dirpath = $this->logDir.\"/\".date(\"M_Y\");\n $filepath = $dirpath.\"/\".date(\"d_M_Y\").\".log\";\n $header = \"[\".date(\"H:i\");// .\"]: \";\n $header = $file == \"\" && $line == \"\" ? $header.\"]: \" : $header.\" in $file at $line]: \";\n if(!is_dir($dirpath))\n mkdir($dirpath);\n $fh = fopen($filepath,\"a\");\t\n fwrite($fh,$header.$info.\"\\n\");\n }\n catch(exception $ex) {} //check perms\n }\n }", "private function writeLog($msg) {\n\t\t$line = $this->getLogLine($msg);\n\t\tfwrite($this->f, $line);\n\t\tfflush($this->f);\n\t}", "private function logError($file, $line)\n {\n $this->errors[md5($file.$line)] = time();\n $fh = fopen($this->logdir.\"hermes.log\", \"w\");\n if($fh == FALSE)\n return;\n if(flock($fh, LOCK_EX)) //lock file to be safe. may be atomic sometimes. idk \n {\n flock($fh, LOCK_EX);\n fseek($fh, 0 ,SEEK_END);\n foreach($this->errors as $key => $val)\n {\n fputs($fh, $key.' '.$val.\"\\n\");\n }\n flock($fh, LOCK_UN);\n }\n fclose($fh);\n }", "public function writeLine($message);", "function log1($msg)\n{\n if(WRITE_LOG == false)\n return;\n date_default_timezone_set('Europe/Vienna');\n $now = date(\"Y-m-d H:i:s\");\n $line = sprintf(\"%s => %s\\r\\n\", $now, $msg);\n file_put_contents(LOG_FILE, $line, FILE_APPEND);\n}", "public static function write($content)\n {\n $date = new \\DateTime();\n $dateFormat = date_format($date, 'Y-m-d H:i:s');\n $line = \"[$dateFormat]: $content\\n\";\n file_put_contents(self::$logPath, $line, FILE_APPEND | LOCK_EX);\n }", "function addToLog ($content){\n\t\t$file = fopen ('../../data/log.txt', 'a+');\n\n\t\tfwrite ($file, $content);\n\t\tfclose ($file);\n\t}", "function _log($message)\n{\n\tfwrite($GLOBALS['logfile'], date(\"Y-m-d H:i:s :: \", time()) . $message . \"\\n\");\n}", "public function lwrite($message){\n // if file pointer doesn't exist, then open log file\n if (!$this->fp) $this->lopen();\n // define script name\n $script_name = pathinfo($_SERVER['PHP_SELF'], PATHINFO_FILENAME);\n // define current time\n $time = date('m-d-y H:i:s');\n // write current time, script name and message to the log file\n fwrite($this->fp, \"$time ($script_name) $message\\n\");\n }", "public function lwrite($message){\n // if file pointer doesn't exist, then open log file\n if (!$this->fp) $this->lopen();\n // define script name\n $script_name = pathinfo($_SERVER['PHP_SELF'], PATHINFO_FILENAME);\n // define current time\n $time = date('H:i:s');\n // write current time, script name and message to the log file\n fwrite($this->fp, \"$time ($script_name) $message\\n\");\n }", "public function lwrite($message){\n // if file pointer doesn't exist, then open log file\n if (!$this->fp) $this->lopen();\n // define script name\n $script_name = pathinfo($_SERVER['PHP_SELF'], PATHINFO_FILENAME);\n // define current time\n $time = date('H:i:s');\n // write current time, script name and message to the log file\n fwrite($this->fp, \"$time ($script_name) $message\\n\");\n }", "function logWrite($msg) {\n\tglobal $logfile;\n\t$fh = fopen($logfile, 'a');\n\tfwrite($fh, \"$msg\\n\");\n\tfclose($fh);\n}", "public function write()\n {\n echo 'file log write...';\n }", "public function addOutputLine($line);", "protected function log($data) {\n $time = date('Y-m-d h:i:s a', time());\n $line = $time.\" \".$data.PHP_EOL;\n echo $line;\n file_put_contents($this->_directories[\"communication.log\"], $line,FILE_APPEND);\n }", "public function writeLog($msg)\n {\n $logline = PHP_EOL . \"[\" . date('r') . \"]: \" . $msg;\n file_put_contents($this->config['log_file'], $logline, FILE_APPEND);\n }", "public function lwrite($message) {\n\t\t// if file pointer doesn't exist, then open log file\n\t\tif (!$this->fp) {\n\t\t\t$this->lopen();\n\t\t}\n\t\t// define script name\n\t\t$script_name = pathinfo($_SERVER['PHP_SELF'], PATHINFO_FILENAME);\n\t\t// define current time\n\t\t$time = date('H:i:s');\n\t\t// write current time, script name and message to the log file\n\t\tfwrite($this->fp, \"$time ($script_name) $message\". $this->nl);\n\t}", "public function updateLog($value) {\r\n $handle = fopen(dirname(__file__) . '/log', 'a');\r\n fwrite($handle, $value);\r\n fclose($handle);\r\n }", "public function writeLine($text);", "function writeToFile ( $evenLogFullPath , $eventLine )\r\n\t{\r\n\t\t$stream = @fopen( $evenLogFullPath , 'a', false) ;\r\n\t\t$res = fwrite($stream, $eventLine);\r\n\t\tif ( ! $res )\r\n\t\t{\r\n\t\t\t// sleep a little and try again... \r\n\t\t\tusleep ( 50 + rand ( 0,50 ));\r\n\t\t\t$res = fwrite($stream, $eventLine);\r\n\t\t}\r\n\t\tif (is_resource($stream) ) {\r\n fclose($stream);\r\n\t\t}\r\n\t\t\r\n\t\treturn $res;\r\n\t}", "public static function write($logFile, $msg) {\r\n \t$fp = fopen($logFile, 'a');\r\n \t$log = '### '.date('d.m.Y H:i:s:'.substr(microtime(), 2, 3)).' ##############'.\"\\n\".$msg.\"\\n\\n\";\r\n \tfwrite($fp, $log);\r\n \tfclose($fp);\r\n }", "protected function _writeLog($value)\n {\n Mage::log((string) $value, null, self::DEBUG_FILE_NAME);\n }", "public function log ( $msg )\n {\n if ( $this->file_handle == null) {\n $this->openFile();\n }\n\n fwrite($this->file_handle, \"[\" . date(\"H:i:s\") . \"] \" . $msg . \"\\n\");\n }", "function logger($str)\r\n\t\t{\r\n\t\t\t//write log\r\n\t\t\t$log = $str = '' ? PHP_EOL : '[' . date('Y-m-d H:i:s') . '] ' . $str . PHP_EOL;\r\n\t\t\tfile_put_contents('patcher.log', $log, FILE_APPEND | LOCK_EX);\r\n\t\t}", "public function lwrite($message) {\n\t\t// if file pointer doesn't exist, then open log file\n\t\tif (!is_resource($this->fp)) {\n\t\t\t$this->lopen();\n\t\t}\n\t\t// define script name\n\t\t$script_name = pathinfo($_SERVER['PHP_SELF'], PATHINFO_FILENAME);\n\t\t// define current time and suppress E_WARNING if using the system TZ settings\n\t\t// (don't forget to set the INI setting date.timezone)\n\t\t$time = @date('[d/M/Y:H:i:s]');\n\t\t// write current time, script name and message to the log file\n\t\tfwrite($this->fp, \"$time ($script_name) $message\" . PHP_EOL);\n\t}", "public static function add_line(string $log) : string {\n if (empty(self::$taskloginfo)) {\n return $log;\n }\n\n if (empty(self::$fh)) {\n return $log;\n }\n\n if (self::is_current_output_buffer()) {\n fwrite(self::$fh, $log);\n }\n\n if (self::$outputloggedcontent) {\n return $log;\n } else {\n return '';\n }\n }", "public function lwrite($message) {\n // if file pointer doesn't exist, then open log file\n if ($this->debug == 0 && !is_resource($this->fp)) {\n $this->lopen();\n }\n // define current time and suppress E_WARNING if using the system TZ settings\n // (don't forget to set the INI setting date.timezone)\n $time = @date('[d/M/Y H:i:s]');\n // write current time, script name and message to the log file\n if ($this->debug == 1) {\n \techo \"$time $message\" . PHP_EOL;\n } else {\n \tfwrite($this->fp, \"$time $message\" . PHP_EOL);\n }\n }", "public function log($message) {\n global $CFG;\n\n // End of line character (in case it's wrong)\n $eol = \"\\r\\n\";\n\n // Forget if if debugging not enabled.\n if (empty($CFG->debugging)) {\n return;\n }\n\n $filename = $CFG->dirroot . '/log/debug';\n $preamble = date('Y-m-d H:i | ') . $_SERVER['REMOTE_ADDR'];\n if (isset($_SESSION['purchaseid'])) {\n $purchaseid = $_SESSION['purchaseid'];\n $preamble .= '| ID:' . $purchaseid . $eol;\n }\n file_put_contents($filename, $preamble . $message . $eol, LOCK_EX | FILE_APPEND);\n }", "public function log(string $message): void\n {\n $filePointer = fopen($this->file, \"a\");\n\n $logMsg = date('Y-m-d H:i:s') . \"\\t\\t\" . $message . \"\\n\";\n\n //rewind($filePointer);\n fwrite($filePointer, $logMsg);\n fclose($filePointer);\n }", "function add2log($filename,$entry,$debug=true){\n $TimeStamp = date(\"Y-m-dTH:i:s+0000\");\n $entry .= \"\\n\";\n $FileHandle=fopen($filename, \"a\");\n\n if($FileHandle){\n fwrite($FileHandle, \"[ $TimeStamp ] \".$entry);\n fclose($FileHandle);\n\n //~ If debug is enable we also print some infos to the console\n if($debug){ echo($entry); }\n }\n}", "public function lwrite($message) {\n // if file pointer doesn't exist, then open log file\n if (!is_resource($this->fp)) {\n $this->lopen();\n }\n // define script name\n $script_name = pathinfo($_SERVER['PHP_SELF'], PATHINFO_FILENAME);\n // define current time and suppress E_WARNING if using the system TZ settings\n // (don't forget to set the INI setting date.timezone)\n $time = @date('[d/M/Y:H:i:s]');\n // write current time, script name and message to the log file\n fwrite($this->fp, \"$time ($script_name) $message\" . PHP_EOL);\n }", "public function appendLog($message);", "public function write()\n {\n $r=false;\n \n if(!empty($this->buffer))\n {\n foreach($this->buffer as $entry)\n {\n if(empty($this->logs[$entry['log']]))\n {\n $log_file=LOG_LOCATION.'/'.$entry['log'].'.log';\n\n $this->logs[$entry['log']]=fopen($log_file,'a');\n }\n\n if($entry['level']==LOG_LEVEL_ERROR)\n {\n $level_string='ERROR';\n }\n elseif($entry['level']==LOG_LEVEL_WARNING)\n {\n $level_string='WARNING';\n }\n elseif($entry['level']==LOG_LEVEL_NOTICE)\n {\n $level_string='NOTICE';\n }\n else\n {\n $level_string='UNKNOWN';\n }\n\n $log_config=&$this->system->config('log');\n\n $out=date($log_config['timestamp_format']).'|'.$level_string.' - '.$entry['message'].\"\\n\";\n\n if(!empty($this->logs[$entry['log']])&&fwrite($this->logs[$entry['log']],$out))\n {\n $r=true;\n }\n\n if(!$r)\n {\n throw new A_Exception('Could not write to file \"'.$log_file.'\"');\n }\n }\n\n if($r)\n {\n $this->buffer=array();\n }\n }\n }", "public function log($sql)\n {\n $loggerFolder = $this->getLoggerFolder();\n $loggerFile = $this->getLoggerFile();\n $this->assertLogFolderExists($loggerFolder);\n $this->assertFileExists($loggerFile);\n\n if ($this->fileDriver->isWritable($loggerFile)) {\n $fd = $this->fileDriver->fileOpen($loggerFile, 'a');\n $this->fileDriver->fileWrite($fd, $sql . self::LINE_SEPARATOR);\n } else {\n throw new \\Exception(sprintf('Can`t write to file %s', $loggerFile));\n }\n }", "private function do_log($log_type, $log_line='') {\n\t\tswitch ($log_type) {\n\t\t\tcase 'auth_code':\n\t\t\t\t$currDay = date('Y-m-d', time());\n\t\t\t\t$log_file = self::LOG_PATH.\"auth_code_{$currDay}.log\";\n\n\t\t\t\t$time = date('Y-m-d H:i:s', time());\n\t\t\t\t$log = \"[$time][$log_line]\\n\";\n\t\t\t\tfile_put_contents($log_file, $log, FILE_APPEND);\n\t\t\t\tbreak;\n\t\t}\n\t\treturn;\n\t}", "public function log($msg)\n {\n $this->file->filePutContents($this->logFile, $this->config->x_shop_name.\" \".date('c').\" \".var_export($msg, true).\"\\n\", FILE_APPEND | LOCK_EX);\n }", "function log($type, $log) {\n try {\n $fh = fopen($this->logFilePath, 'a');\n fwrite($fh, date($this->dateFormat) . \" - {$type} -> {$log}\" . PHP_EOL);\n fclose($fh);\n } catch(Exception $e) {\n $this->error($e->getMessage());\n }\n }", "function LogMsg ($msg) {\n\t$now = new DateTime();\n\t$now = $now->format('Y/m/d H:i:s');\n\tfile_put_contents (\n\t\t'log/log.txt',\n\t\t$now.' '.$_SERVER['REMOTE_ADDR'].' '.$msg.\"\\r\\n\",\n\t\tLOCK_EX|FILE_APPEND\n\t);\n}", "function alog($line){\n $cur_user = $_SESSION['user']['user_username'];\n $time = getTimestamp();\n writeLineToLog(\"$time - $cur_user - $line\");\n}", "public static function addLog($message, $file = null, $line = null){\n\t\tif(self::$debug_log == false){\n\t\t\treturn true;\n\t\t}\n\n\t\ttry {\n\t\t\t\n\t\t\t$log_file = __DIR__.\"/paytm.log\";\n\t\t\t$handle = fopen($log_file, \"a+\");\n\t\t\t\n\t\t\t// if there is some permission issue\n\t\t\tif($handle == false){\n\t\t\t\treturn \"Unable to write log file (\".$log_file.\"). Please provide appropriate permission to enable log.\";\n\t\t\t}\n\n\t\t\t// append Indian Standard Time for each log\n\t\t\t$date = new DateTime();\n\t\t\t$date->setTimeZone(new DateTimeZone(\"Asia/Kolkata\"));\n\t\t\t$log_entry = $date->format('Y-m-d H:i:s').\"(IST)\".PHP_EOL;\n\n\t\t\tif($file && $line){\n\t\t\t\t$log_entry .= $file.\"#\".$line.PHP_EOL;\n\t\t\t} else if($file){\n\t\t\t\t$log_entry .= $file.PHP_EOL;\n\t\t\t} else if($line){\n\t\t\t\t$log_entry .= $line.PHP_EOL;\n\t\t\t}\n\n\t\t\t$log_entry .= $message.PHP_EOL.PHP_EOL;\n\n\t\t\tfwrite($handle, $log_entry);\n\t\t\tfclose($handle);\n\n\t\t} catch(Exception $e){\n\n\t\t}\n\n\t\treturn true;\n\t}", "protected function _write( $event )\n\t{\n\t\t$this->_checkAndReopen();\n\n\t\t$line = $this->_formatter->format( $event );\n\t\tif ( false === @fwrite( $this->_stream, $line ) )\n\t\t{\n\t\t\tthrow new Miao_Log_Exception( \"Unable to write to stream\" );\n\t\t}\n\t}", "function wLog($path,$param,$sMessage) {\n \n $fp = fopen ($path.\"/\".$param.\".log\", \"a+\");\n if (fputs ($fp, $sMessage.(chr(13)))) {\n return true;\n } else {\n return false;\n }\n fclose ($fp);\n \n}", "public function log($message) {\n\n // End of line character (in case it's wrong)\n $eol = \"\\r\\n\";\n\n // Forget if if debugging not enabled.\n if (empty($_ENV['debugging'])) {\n return;\n }\n\n $filename = $_ENV['dirroot'] . '/log/debug';\n $preamble = date('Y-m-d H:i | ') . $_SERVER['REMOTE_ADDR'];\n if (Session::exists('purchaseid')) {\n $purchaseid = Session::read('purchaseid');\n $preamble .= '| ID:' . $purchaseid . $eol;\n }\n file_put_contents($filename, $preamble . $message . $eol, LOCK_EX | FILE_APPEND);\n }", "function write_log($log_file, $log_message)\t{\n\t\t$mylogfile = fopen($log_file, \"a\") or die(\"Unable to open file!\");\n\t\tfwrite($mylogfile, date('Y-m-d H:i:s') . \" IP:\" . str_pad(get_client_ip(),15) . \" \" . $log_message . \"\\n\");\n\t\tfclose($mylogfile);\n\t}", "private function lWrite($message): void\n {\n // if file pointer doesn't exist, then open log file\n if (!is_resource($this->fp)) {\n $this->lOpen();\n }\n // define script name\n $script_name = pathinfo($_SERVER['PHP_SELF'], PATHINFO_FILENAME);\n // define current time and suppress E_WARNING if using the system TZ settings\n // (don't forget to set the INI setting date.timezone)\n // Get time of request\n $time = @date('d.m.Y H:i:s');\n // Get IP address\n $addr = $_SERVER['REMOTE_ADDR'] ?? 'from cron';\n if (($remote_address = $addr) === '') {\n $remote_address = 'REMOTE_ADDR_UNKNOWN';\n }\n // Get requested script\n// if( ($request_uri = $_SERVER['REQUEST_URI']) === '') {\n// $request_uri = 'REQUEST_URI_UNKNOWN';\n// }\n // write current time, script name and message to the log file\n fwrite($this->fp, \"[$time] [$remote_address] [\" . $this->errorStatus . \"] [$script_name] - $message\" . PHP_EOL);\n }", "protected function log($msg, $file = 'log', $newline = true)\n\t{\n\t\tif ($newline) {\n\t\t\t$msg = date('D, j M H:i:s') . ' ' . $msg . \"\\n\";\n\t\t}\n\t\techo $msg;\n\t\tfile_put_contents(LOG_DIR . $file, $msg, FILE_APPEND);\n\t}", "private static function writeToLogFile($message)\n {\n file_put_contents(Config::get('log_file'), utf8_encode(date(Config::get('time_format')) . ' ' . $message . \"\\n\"), FILE_APPEND);\n }", "public function log($string) \n {\n if (isset($this->_logf)) {\n $stat = fstat($this->_logf);\n if ($stat['nlink'] == 0) {\n $this->_logf = fopen(\"/opt/lampp/temp/geosafe.log\", \"a+\");\n }\n }\n else {\n $this->_logf = fopen(\"/opt/lampp/temp/geosafe.log\", \"a+\");\n }\n fwrite($this->_logf, $string . \"\\n\");\n }", "public static function log($msg){\n\t\tself::createLogExist();\n\n\t\t$fichier = fopen('log/log.txt', 'r+');\n\t\tfputs($fichier, $msg);\n\t}", "protected function write_to_log( $message = '' ) {\r\n\t\t$file = $this->get_file();\r\n\t\t$file .= $message;\r\n\t\t@file_put_contents( $this->file, $file );\r\n\t}", "public function writeLog()\n {\n $redis = self::getClient();\n $redis ->lPush('admin_log',$this->data);\n }", "function writeLog($logmsg)\n{\n global $conf;\n if (! $conf['enable_logging']) {return;}\n if ($conf['logfile']==\"syslog\") {\n syslog(LOG_INFO,$logmsg);\n } else {\n if (!($fp=fopen($conf['logfile'], \"a\"))) {\n return;\n }\n $now=date(\"Y-d-m H:i:s\");\n fputs($fp, \"$now $logmsg\\n\");\n fclose($fp);\n }\n}", "private function log($text){\r\n if ($this->debug){\r\n $fp = fopen('logs/BRUnit_output.txt','a');\r\n fwrite($fp, date('l jS \\of F Y h:i:s A'). ': ' . $text.\"\\n\");\r\n fclose($fp);\r\n }\r\n }", "public function updraftplus_logline($line, $nonce, $level, $uniq_id, $destination) {// phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.Found\n\t\n\t\tif ('progress' != $destination || (defined('WP_CLI') && WP_CLI) || false === $line || false === strpos($line, 'RINFO:')) return $line;\n\n\t\tglobal $updraftplus;\n\n\t\t$updraftplus->output_to_browser($line);\n\n\t\t// Indicate that we have completely handled all logging needed\n\t\treturn false;\n\t}", "protected function _write($event)\n {\n $this->logs[] = $event;\n }", "function write_log($msg) {\n global $transaction_ID;\n $todays_date = date(\"Y-m-d H:i:s\");\n $file = fopen(\"process.log\",\"a\");\n fputs($file,$todays_date. \" [\".$transaction_ID.\"] \". $msg.\"\\n\");\n fclose($file);\n}", "function _log($message) {\n file_put_contents(\n LOG_FILE, \n $message,\n FILE_APPEND\n );\n}", "public function log($message) {\n fwrite(STDOUT, $message . \"\\n\");\n }", "public function log($content) \n {\n echo \"Log to file\";\n }", "public function addLine(string $line, bool $autoSave = false): void{\n if(!$this->gotLogs) throw new LogsFileNotLoaded();\n $date = date(DEFAULT_DATETIME_F);\n $this->cache .= \"\\n[$date] $line\";\n if($autoSave) $this->writeChanges();\n }", "function write_log($text,$level=null) {\r\n\t\tif ($level === null) {\r\n\t\t\t$level = 'DEBUG';\r\n\t\t}\r\n\t\t$caller = getCaller();\r\n\t\t$filename = 'Phlex.log';\r\n\t\t$text = date(DATE_RFC2822) . ' [ '.$level.' ] '.$caller . \" - \" . $text . PHP_EOL;\r\n\t\tif (!file_exists($filename)) { touch($filename); chmod($filename, 0666); }\r\n\t\tif (filesize($filename) > 2*1024*1024) {\r\n\t\t\t$filename2 = \"$filename.old\";\r\n\t\t\tif (file_exists($filename2)) unlink($filename2);\r\n\t\t\trename($filename, $filename2);\r\n\t\t\ttouch($filename); chmod($filename,0666);\r\n\t\t}\r\n\t\tif (!is_writable($filename)) die;\r\n\t\tif (!$handle = fopen($filename, 'a+')) die;\r\n\t\tif (fwrite($handle, $text) === FALSE) die;\r\n\t\tfclose($handle);\r\n\t}", "public function log($msg)\n {\n file_put_contents($this->logFile, $this->shopName.\" \".date('c').\" \".print_r($msg, true).\"\\n\", FILE_APPEND | LOCK_EX);\n }", "public static function line($log_text) {\n\t\tif(\\Config::LOG_DEBUG) {\n\t\t\tself::$log[] = array(\"type\" => \"log\", \"value\" => $log_text);\n\t\t}\n\t}", "function addMessageLine($m){\n global $BackupPath;\n\n $log = $BackupPath . \"backupLog.txt\";\n $message = $m . \" ... \" . date(\"Y-m-d H:i:s\") .\"\\r\\n\";\n echo $message;\n file_put_contents($log, $message.PHP_EOL , FILE_APPEND | LOCK_EX);\n}", "function MCW_logfile($entry) { \n global $mcw_write_log;\n if ($mcw_write_log){ //only used during plugin development\n global $mcw_path;\n $filename = $mcw_path[\"log\"];\n if (!file_exists($filename)){\n $answer = \"file \".$filename.\" does not exist. <br>\";\n } else {\n if (!$handle = fopen($filename, \"a\")) {\n $answer = $answer. \"File \".$filename.\" cannot be opened.<br>\";\n } else {\n // Schreibe $somecontent in die geöffnete Datei.\n $somecontent = '<strong>'.date(\"F j, Y, g:i a\").'</strong> - '.$entry.'<br>'; \n if (!fwrite($handle, $somecontent)) {\n $answer = $answer. \"File \".$filename.\" is not writeable.<br>\";\n } else {\n $answer = $answer.\"done \";\n }\n }\n fclose($handle);\n }\n }\n }", "function logEvent($message)\n\t{\n\t\tdate_default_timezone_set ( \"America/Chicago\" );\n\t\t$time = date( \"Y-m-d H:i:s\");\n\t\t$fp = fopen('files/log.txt', 'a');\n\t\tfwrite($fp, $time.\"-- \");\n\t\tfwrite($fp, $message);\n\t\tfwrite($fp, \"\\n\");\n\t\tfclose($fp);\n\t}", "public function log($process, $message){\n $OldFile = $this->base_url.'logs/oxd-php-server-'.date(\"Y-m-d\") .'.log';\n $person = \"\\n\".date('l jS \\of F Y h:i:s A').\"\\n\".$process.$message.\"\\n\";\n file_put_contents($OldFile, $person, FILE_APPEND | LOCK_EX);\n }", "public function newLineWritten();", "function log_to_file($message) {\n $fh = fopen('superlinks_log.txt', 'a') or die(\"can't open file\");\n fwrite($fh, $message . \"\\n\");\n fclose($fh);\n }", "function logger($msg)\n{\n\n $filename = $_SERVER['DOCUMENT_ROOT'].'/Utils/Logs/log.txt';\n $msg = date(\"[d/m] h:i:sa\") . \": \". $msg . \"\\n\";\n\n file_put_contents( $filename, $msg, FILE_APPEND);\n}", "public function _write_log($type, $result, $user = NULL, $description = NULL);", "function atkWriteLog($text)\n{\n\tif (atkconfig(\"debug\") > 0 && atkconfig(\"debuglog\"))\n\t{\n\t\tatkWriteToFile($text, atkconfig(\"debuglog\"));\n\t}\n}", "public function write()\n {\n echo 'database log write...';\n }", "function to_log($vvod)\n{\n $date = date(\"Y_m_d\");\n $filename = \"logs/log_\".$date.\".txt\";\n $string = date(\"d.m.Y H:i:s\").\" => $vvod\".\"\\n\";\n $f = fopen($filename,\"a+\");\n fwrite($f,$string);\n fclose($f);\n}", "public function write_to_log( $username = '', $text = '', $newline = true )\n\t{\n\t\t$text = print_r( $text, true );\n\t\tif( $newline ) $text .= \"\\n\";\n\t\t$text = str_pad( $username, 8, ' ', STR_PAD_RIGHT ).' : '.$text;\n\t\tfile_put_contents( NHS_LOG_FILE, $text, FILE_APPEND );\n\t}", "function writeLog( $file, $text, $path = 'tmp/logs/' ) {\n\n global $settings; ## Not a perfect solution\n\n if ( $settings[ 'debugging' ] == 'disabled' ) return false; ## Logging is disabled!\n if ( is_writable( $path ) ) return file_put_contents( $path . $file . \".log\", \"[\" . date( \"j.n.Y-G:i\" ) . \"] {$text}\\n\", FILE_APPEND );\n return false;\n\n }", "function log_action($action, $message=\"\"){\n\t\t$logfile = SITE_ROOT.DS.'logs'.DS.'log.txt';\n\t\t\n\t\t// check the file is writable or output error\n\t\t// append new entries to the end of the file\n\t\tif($handle = fopen($logfile, 'a')){ // append\n\t\t\n\t\t\t// Sample Entry: 2012-01-01 13:10:03 | Login: freeze logged in. \n\t\t\t//(for windows newline is \\r\\n) for unix it is just \\n\n\t\t\t$timestamp = date('Y-m-d h:i:s A');\n\t\t\t$content = \"{$timestamp} | {$action}: {$message}\\r\\n\";\n\t\t\tfwrite($handle, $content); \n\t\t\n\t\t\tfclose($handle);\n\t\t} else {\n\t\t\techo \"Could not open file for writing\";\n\t\t}\t\n\t}", "function write_log($message, $logfile='log/session.log') {\n\n \n // Get time of request\n\tif( ($time = $_SERVER['REQUEST_TIME']) == '') {\n\t\t$time = time();\n\t}\n \n // Get IP address\n\tif( ($remote_addr = $_SERVER['REMOTE_ADDR']) == '') {\n\t\t$remote_addr = \"REMOTE_ADDR_UNKNOWN\";\n\t}\n \n // Format the date and time\n\t$date = date(\"Y-m-d H:i:s\", $time);\n \n // Append to the log file\n\tif($fd = @fopen($logfile, \"a\")) {\n\t\t$result = fputcsv($fd, array($date, $remote_addr, $message));\n\t\tfclose($fd);\n\t}\n}", "private function write($string) {\n try {\n if (!file_exists($this->_logWritePath)) {\n $touchy = @touch($this->_logWritePath);\n if (!$touchy) {\n print \"ERROR! Could not create file: {$this->_logWritePath}\";\n return false;\n }\n }\n\n if (!is_writable($this->_logWritePath)) {\n print \"ERROR! Could not write to file: {$this->_logWritePath}\";\n return false;\n }\n\n $overwriteFlag = $this->_overwrite ? 0 : FILE_APPEND;\n return file_put_contents($this->_logWritePath, $string, $overwriteFlag);\n\n } catch (Exception $e) {\n print $e->getMessage();\n }\n return false;\n }", "function WriteLogEss($log) {\r\n//echo $log.'<br/>';\r\n/*\r\n $datum=Date('d.m.Y H:i:s');\r\n $tmp = '/tmp/logESS.txt';\r\n $text = $datum . '-'.$log.chr(10);\r\n $fp = fopen($tmp, 'a');\r\n fwrite($fp, $text);\r\n fclose($fp);\r\n*/\r\n}", "public function log($content){\n \t\ttry{\n \t\t\t$resp = file_put_contents($this->logFileName, date('Y-m-d H:i:s').$content.\"\\n\", FILE_APPEND);\n \t\t\tif($resp){\n \t\t\t\treturn true;\n \t\t\t} else {\n \t\t\t\terror_log(\"UNBXD_MODULE:Error while appending the contents to log file\");\n \t\t\t\treturn false;\n \t\t\t}\n \t\t\treturn true;\n \t\t}catch(Exception $ex) {\n \t\t\terror_log(\"UNBXD_MODULE:Error while appending the contents to log file\");\n \t\t\tMage::throwException($ex->getMessage());\n \t\t\treturn false;\n \t\t}\n \t}", "function logRequest($route, $content) {\n $content = str_replace(\"\\n\", \" \", $content);\n file_put_contents(\"log.txt\", $route . \"\\t\" . date('Y-m-d G:i:s') . \"\\t\" . $content . \"\\n\", FILE_APPEND);\n}", "static function log($message) {\n\t\t$file = dirname(__FILE__).'/../../debug.log';\n\t\t$now = date('r');\n\t\t$oldcontent = file_get_contents($file);\n\t\t$content = $oldcontent . \"\\n\\n== $now ==\\n$message\\n\";\n\t\tfile_put_contents($file, $content);\n\t}", "function writeLog($text)\n {\n $file = fopen(\"../log.txt\", \"a+\") or die(\"Unable to open file!\");\n fwrite($file, $text . \"\\n\");\n fclose($file);\n }", "public function logFileWrite($message, $event_id){\n $log_message = date(\"Y-m-d H:i:s\").\" \".Auth()->user()->associate_id.\" \\\"\".$message.\"\\\" \".$event_id.PHP_EOL;\n $log_message .= file_get_contents(\"assets/log.txt\");\n file_put_contents(\"assets/log.txt\", $log_message);\n }", "protected function writeFinalOutput($line)\n {\n if ($this->has('debug:')) { // Do not write two times\n if ($this->has('Final output sent')) {\n $line = \"\\033[0m\".\"\\033[0;37m\".$line.\"\\033[0m\";\n }\n if ($this->has('Redirect header')) {\n $line = \"\\033[0m\".\"\\033[0;37m\".$line.\"\\033[0m\";\n }\n $line = \"\\033[0;37m\".$line.\"\\033[0m\";\n echo $line.\"\\n\";\n }\n }", "private function outputLine($line) {\n\t\t\techo $line . \"\\n\";\n\t\t}", "public function addLog($log_data)\n {\n // open the file\n $log_file = $this->openFile();\n\n // get current (last) line\n $log_file->seek($this->file_line);\n $this->file_line = $log_file->key() + 1;\n \n // write the log\n $time_of_day = gettimeofday(); \n $timestamp = date('Y-m-d H:i:s.',$time_of_day['sec']) . $time_of_day['usec'];\n \n $log_string = \"\\n\".$timestamp.'|'.implode('|', $log_data);\n $log_file->fwrite($log_string);\n \n // close the file\n $this->closeFile($log_file);\n }", "function log($content=\"\",$loglevel = \"\") {\n\t// si esta desactivado, salimos\n\t//echo \"Veamos: \" .$this->LogFile. \" y \" .$this->LogLevel.\"<br>\"; // DEBUG\n\n\tif (!$this->LogLevel) return;\n\t \n\t// abrimos el fichero\n\t$file = fopen($this->LogFile,\"a\");\n\t$cn = \"<log date='\" . date(\"j-m-Y G:i:s\") . \"'>$content</log>\\n\";\n\t\n\tfputs($file, $cn);\n\t//Cerramos fichero\n\tfclose($file);\n }", "function postToLog($message) {\n\n\tglobal $log_file;\n\n\t// Get formatted timestamp.\n\t$timestamp = date(\"[m.d.y] g:ia\");\n\n\t// Prepend timestamp to message.\n\t$message = \"\\n\" . $timestamp . \": \" . $message;\n\t\n\t// Post message to log.\n\tfwrite($log_file, $message);\n\n}", "public function log($message)\n {\n $file = $this->_homePath . DIRECTORY_SEPARATOR . 'streamwatch.log';\n $message = date('Y-m-d H:i:s') . ' -- ' . $message . \"\\n\";\n file_put_contents($file, $message, FILE_APPEND);\n }" ]
[ "0.75400054", "0.75249296", "0.7417698", "0.7369495", "0.72433937", "0.7158869", "0.71014476", "0.68983173", "0.6857145", "0.67281044", "0.6641994", "0.6619323", "0.65970665", "0.6543908", "0.6516909", "0.65153325", "0.6496455", "0.64835614", "0.64813644", "0.6468679", "0.6468679", "0.6428884", "0.64205164", "0.64180857", "0.6383879", "0.637507", "0.6348149", "0.63163185", "0.6315077", "0.6301097", "0.6279123", "0.6272265", "0.62648106", "0.6257189", "0.6242684", "0.6229313", "0.622922", "0.6225329", "0.62109905", "0.61798835", "0.6179196", "0.6173578", "0.6170849", "0.6162648", "0.61565274", "0.6149767", "0.61362547", "0.61292565", "0.61204827", "0.61092734", "0.6106378", "0.61034614", "0.6100289", "0.6091914", "0.60873324", "0.6084578", "0.60823506", "0.6069164", "0.6054544", "0.6045727", "0.6041175", "0.6040153", "0.6038526", "0.6022278", "0.60141087", "0.6010317", "0.6004225", "0.5997128", "0.5990859", "0.598624", "0.59786355", "0.59782714", "0.597784", "0.5974077", "0.596985", "0.59503", "0.59496415", "0.5945169", "0.59442353", "0.59335715", "0.5927308", "0.5919412", "0.59170246", "0.5914967", "0.5913971", "0.5895438", "0.589489", "0.5890154", "0.5877526", "0.5872101", "0.5870268", "0.5869255", "0.5856234", "0.5850736", "0.5847808", "0.584124", "0.58245933", "0.58210427", "0.58197665", "0.5812502", "0.580486" ]
0.0
-1
Constructs a new instance.
public function __construct( $settings = array(), $type = 'products' ) { $this->settings = $settings; $this->type = $type; $this->attributes = $this->parse_attributes( array( 'paginate' => $settings['pro_pagi'], 'cache' => false, ) ); $this->query_args = $this->parse_query_args(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function construct()\n\t\t{\n\t\t}", "public static function create() {}", "public static function create() {}", "public static function create() {}", "public function construct() {\n\n }", "public function newInstance();", "public function newInstance();", "public function new()\n\t{\n\t\t//\n\t}", "public function new()\n\t{\n\t\t//\n\t}", "static function create(): self;", "public static function create() {\n\t\treturn new self();\n\t}", "function _construct(){ }", "public static function create()\n\t\t{\n\t\t\treturn new self();\n\t\t}", "final private function __construct() {}", "final private function __construct() {}", "public static function create()\n\t{\n\t\treturn new self;\n\t}", "final private function __construct() { }", "final private function __construct() { }", "final private function __construct() { }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "final private function __construct() {\n\t\t\t}", "function _construct() {\n \t\n\t\t\n\t}", "public static function init()\n {\n return new self();\n }", "public static function create(): self\n {\n return new self();\n }", "public static function create(): self\n {\n return new self();\n }", "private final function __construct() {}", "public static function create() {\n return new self();\n }", "public static function newInstance()\n {\n $instance = new self;\n return $instance;\n }", "public function new()\n {\n //\n }", "public function new()\n {\n //\n }", "protected final function __construct() {}", "function __constructor(){}", "public function newInstance()\n {\n return new self();\n }", "public static function factory()\n {\n return new self;\n }", "final private function __construct()\n {\n }", "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 function __construct() {}", "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 function __construct() {}", "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 function __construct() {}", "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 function __construct() {}", "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 function __construct() {}", "private function __construct() {}" ]
[ "0.788931", "0.7846304", "0.7846304", "0.7846304", "0.7807218", "0.7780937", "0.7780937", "0.7778157", "0.7778157", "0.76381433", "0.7614227", "0.75758034", "0.75375015", "0.75213355", "0.75213355", "0.74167675", "0.7398893", "0.7398893", "0.7398893", "0.7392102", "0.7392102", "0.7392102", "0.7392102", "0.7392102", "0.7392102", "0.7392102", "0.7392102", "0.7392102", "0.7392102", "0.7392102", "0.7392102", "0.7392102", "0.7392102", "0.7392102", "0.7392102", "0.7392102", "0.7392102", "0.7392102", "0.7392102", "0.7392102", "0.73812795", "0.73799247", "0.7355723", "0.7351351", "0.7351351", "0.7349384", "0.7348801", "0.73151076", "0.73036224", "0.73036224", "0.7276766", "0.72724146", "0.72585577", "0.72543776", "0.72138554", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756", "0.720756" ]
0.0
-1
Override the original `get_query_results` with modifications that: 1. Remove `pre_get_posts` action if `is_added_product_filter`.
protected function get_query_results() { $query = $GLOBALS['wp_query']; $paginated = ! $query->get( 'no_found_rows' ); // Check is_object to indicate it's called the first time. if ( ! empty( $query->posts ) && is_object( $query->posts[0] ) ) { $query->posts = array_map( function ( $post ) { return $post->ID; }, $query->posts ); } $results = (object) array( 'ids' => wp_parse_id_list( $query->posts ), 'total' => $paginated ? (int) $query->found_posts : count( $query->posts ), 'total_pages' => $paginated ? (int) $query->max_num_pages : 1, 'per_page' => (int) $query->get( 'posts_per_page' ), 'current_page' => $paginated ? (int) max( 1, $query->get( 'paged', 1 ) ) : 1, ); return $results; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function flatsome_pre_get_posts_action( $query ) {\r\n global $flatsome_opt;\r\n\r\n $action = isset($_GET['action']) ? $_GET['action'] : '';\r\n // Stop if searching from admin\r\n if($action == 'woocommerce_json_search_products') {\r\n return;\r\n }\r\n\r\n if($action == 'woocommerce_json_search_products_and_variations') {\r\n return;\r\n }\r\n // Include posts and pages in ajax search.\r\n if(defined('DOING_AJAX') && DOING_AJAX && !empty($query->query_vars['s']) && $flatsome_opt['search_result']) {\r\n $query->query_vars['post_type'] = array( $query->query_vars['post_type'], 'post', 'page' );\r\n $query->query_vars['meta_query'] = new WP_Meta_Query( array( 'relation' => 'OR', $query->query_vars['meta_query'] ) );\r\n }\r\n}", "public static function action_before_query() {\n\t\t\tif ( function_exists( 'pmpro_search_filter' ) ) {\n\t\t\t\tremove_filter( 'pre_get_posts', 'pmpro_search_filter' );\n\t\t\t}\n\t\t}", "public function pre_get_posts( $query ) {\r\n if ( is_admin() || ! $query->is_main_query() ){\r\n return;\r\n }\r\n // only apply to products\r\n if ( !is_post_type_archive( 'product' ) ){\r\n return;\r\n }\r\n\r\n $tax_query = array();\r\n // add meta_query elements\r\n if( !empty( get_query_var( 'workshop-specialty' ) ) ){\r\n $tax_query[] = array( \r\n //this sets our pattern so it pulls in all meta keys that start with 'workshop_month_year'\r\n 'taxonomy' => 'specialty', \r\n 'field' => 'slug', \r\n 'terms' => get_query_var( 'workshop-specialty' ),\r\n );\r\n }\r\n\r\n if( count( $tax_query ) > 1 ){\r\n $tax_query['relation'] = 'AND';\r\n }\r\n if( count( $tax_query ) > 0 ){\r\n $query->set( 'tax_query', $tax_query );\r\n }\r\n }", "function sm_pre_get_posts( $query ) {\n // check if the user is requesting an admin page \n // or current query is not the main query\n if ( is_admin() || ! $query->is_main_query() ){\n return;\n }\n\n // edit the query only when post type is 'accommodation'\n // if it isn't, return\n if ( !is_post_type_archive( 'product' ) ){\n return;\n }\n $post_type = 'product';\n $meta_query = array();\n $keyword = '';\n\n if( isset($_GET['keyword']) && !empty($_GET['keyword']) ){\n $keyword = $_GET['keyword'];\n }\n\n if( !empty( $keyword ) ){\n $query->set('post_type', $post_type);\n $query->set( 's', $keyword );\n //$query->set( 'category_name', $keyword );\n }\n return $query;\n \n}", "function es_filter_products_query( &$query ) {\n\tglobal $typenow, $wp_query;\n\n\tif ( 'product' == $typenow ) {\n\t\tif ( isset( $_GET['allow_backorders_filter'] ) && ! empty ( $_GET['allow_backorders_filter'] ) ) {\n\t\t\t$backorders = array(\n 'key' => '_backorders',\n 'value' => $_GET['allow_backorders_filter'],\n 'compare' => '='\n );\n\t\t\t\n\t\t\t$meta_query_array[] = $backorders;\n\t\t\t//$query->query_vars['meta_value'] = $_GET['allow_backorders_filter'];\n\t\t\t//$query->query_vars['meta_key'] = '_backorders';\n\t\t}\n\t\t\n\t\tif ( isset( $_GET['price_filter'] ) && ! empty ( $_GET['price_filter'] ) ) {\n\t\t\t\n\t\t\tif ( $_GET['price_filter'] == 'member-price' )\n\t\t\t\t$prices = array(\n\t\t\t\t\t'key' => 'member_price',\n\t\t\t\t\t'value' => 0,\n\t\t\t\t\t'compare' => '>'\n\t\t\t\t);\n\t\t\telseif ( $_GET['price_filter'] == 'sale-price' )\n\t\t\t\t$prices = array(\n\t\t\t\t\t'key' => '_sale_price',\n\t\t\t\t\t'value' => 0,\n\t\t\t\t\t'compare' => '>'\n\t\t\t\t);\n\t\t\t\n\t\t\t$meta_query_array[] = $prices;\n\t\t\t//$query->query_vars['meta_value'] = $_GET['allow_backorders_filter'];\n\t\t\t//$query->query_vars['meta_key'] = '_backorders';\n\t\t}\n\t\t\n\t\tif (!empty($meta_query_array))\n\t\t\t$query->query_vars['meta_query'] = $meta_query_array;\n\t}\n}", "function search_pre_get_posts( $query ){\n\n\t// If user is not requesting admin page\n\tif ( !is_admin() &&\n\t\t// and if it is the main query\n\t\t$query->is_main_query() &&\n\t\t// and if it is the search page being displayed\n\t\tis_search() ||\n\t\t// ...or the tag archive page\n\t\tis_tag() ||\n\t\t// ...or the category archive page\n\t\tis_category() )\n\t\t{\n\t\t\t// continue with query\n\t\t}\n\t\telse{\n\t\t\t// Otherwise, exit\n\t\t\treturn;\n\t\t}\n\n\t\t// For general filter results, exclude irrelavant types such as pages\n\t\t$cur_post_type = get_query_var('post_type');\n\t\tif ($cur_post_type) {\n\t\t\tswitch ($cur_post_type) {\n\t\t\t\tcase 'post':\n\t\t\t\t\t// echo \"type: post\";\n\t\t\t\t\t$query->set( 'post_type', ['post'] );\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'projects':\n\t\t\t\t\t// echo \"type: projects\";\n\t\t\t\t\t$query->set( 'post_type', ['projects'] );\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'series':\n\t\t\t\t\t// echo \"type: series\";\n\t\t\t\t\t$query->set( 'post_type', ['series'] );\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\t$query->set( 'post_type', [ 'post', 'projects', 'series' ] );\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t// If on the blog archive page, set to only posts\n\t\t}else if (is_home() ) {\n\t\t\t$query->set( 'post_type', ['post'] );\n\t\t}\n\t\telse{\n\t\t\t$query->set( 'post_type', [ 'post', 'projects', 'series' ] );\n\t\t}\n\n\t\t$courses = get_query_var('courses_tax');\n\t\tif ($courses) {\n\t\t\t// echo 'Courses: ' . $courses .'<br>';\n\t\t\t$query->set('tax_query', array(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'taxonomy' => 'courses_tax',\n\t\t\t\t\t\t\t'field' => 'slug',\n\t\t\t\t\t\t\t'terms' => $courses,\n\t\t\t\t\t\t),\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t}\n\n\n\t$date = get_query_var('date');\n\tif ($date) {\n\t\t$date = explode(' ', $date);\n\t\t$month = date('n', strtotime($date[0])); //convert month from string to number (no 0's preceding)\n\t\t$year = $date[1];\n\t\t// echo 'Month: ' . $month . ' Year: ' . $year .'<br>';\n\t\t$query->set('date_query', array(\n\t\t\t\tarray(\n\t\t\t\t\t'year' => $year,\n\t\t\t\t\t'month' => $month\n\t\t\t\t),\n\t\t\t));\n\t}\n\n\t$category = get_query_var('category_name');\n\tif ($category) {\n\t\t// echo 'category: ' . $category .'<br>';\n\t\t$query->set('category_name', $category);\n\t}\n\n\t// print_r($query);\n\n}", "function my_pre_get_posts( $query ) {\n if( is_admin() ) return;\n \n \n // bail early if not main query\n // - allows custom code / plugins to continue working\n if( !$query->is_main_query() ) return;\n \n \n // get meta query\n $meta_query = $query->get('meta_query');\n\n \n // loop over filters\n foreach( $GLOBALS['my_query_filters'] as $key => $name ) {\n \n // continue if not found in url\n if( empty($_GET[ $name ]) ) {\n \n continue;\n \n }\n \n \n // get the value for this filter\n // eg: http://www.website.com/events?city=melbourne,sydney\n $value = explode(',', $_GET[ $name ]);\n \n \n // append meta query\n $meta_query[] = array(\n 'key' => $name,\n 'value' => $value,\n 'compare' => 'IN',\n );\n \n } \n \n \n // update meta query\n $query->set('meta_query', $meta_query);\n\n}", "function my_pre_get_posts($query)\n{\n // validate\n if (is_admin()) {\n return $query;\n }\n\n if (isset($query->query_vars['post_type']) && ($query->query_vars['post_type'] == 'portfolio' || $query->query_vars['post_type'] == 'lighting')) {\n $query->set('orderby', 'meta_value_num');\n $query->set('meta_key', 'item-order-priority');\n $query->set('order', 'DESC');\n }\n // always return\n return $query;\n\n}", "function ind_pre_get_posts(&$query) {\r\n\tif (\r\n\t\tisset( $query->query_vars['post_status'] ) && $query->query_vars['post_status'] == 'draft'\r\n\t\t&& isset( $query->query_vars['post_type'] ) && $query->query_vars['post_type'] == 'post'\r\n\t\t&& isset( $query->query_vars['author'] ) && $query->query_vars['author'] == $GLOBALS['current_user']->ID\r\n\t\t&& isset( $query->query_vars['posts_per_page'] ) && $query->query_vars['posts_per_page'] == 5\r\n\t\t&& isset( $query->query_vars['orderby'] ) && $query->query_vars['orderby'] == 'modified'\r\n\t\t&& isset( $query->query_vars['order'] ) && $query->query_vars['order'] == 'DESC'\r\n\t\t) {\r\n\t\t// show all post types\r\n\t\t$query->query_vars['post_type'] = 'any';\r\n\t\t// show 10 drafts\r\n\t\t$query->query_vars['posts_per_page'] = 10;\r\n\t\t// if admin or editor, show drafts of all users\r\n\t\tif ( current_user_can( 'administrator' ) || current_user_can( 'editor' ) ) {\r\n\t\t\tunset( $query->query_vars['author'] );\r\n\t\t}\r\n\t}\r\n\r\n\tif ( $query->is_admin ) return;\r\n\r\n\tif ( !$query->is_main_query() ) return;\r\n\r\n\tif (!empty($query->query['post_type']) && ( $query->query['post_type'] == 'memberlevel' ) ) return;\r\n\r\n\tif ( $query->is_search ) {\r\n\t\t$query->set( 'posts_per_page', -1);\r\n\t \tif ( ! empty( $query->query_vars['filter'] ) ) {\r\n\t \t\t$query->set( 'post_type', $query->query_vars['filter'] );\r\n\t\t\tunset( $query->query['filter'] );\r\n \t\t} else if ( !empty( $_GET['filter'] ) ) {\r\n\t\t\t$query->set( 'post_type', $_GET['filter'] );\r\n\t \t} else {\r\n\t\t\t$query->set( 'post_type', array( 'hotel', 'restaurant', 'shop', 'activity', 'itinerary', 'library', 'article', 'offer', 'insidertrip' ) );\r\n\t\t}\r\n\t}\r\n\r\n\tif ( is_archive() ) {\r\n\t\tif ( !empty($query->query['post_type']) && in_array($query->query['post_type'], array(\r\n\t\t\t\t\t\t'hotel',\r\n\t\t\t\t\t\t'restaurant',\r\n\t\t\t\t\t\t'shop',\r\n\t\t\t\t\t\t'activity',\r\n\t\t\t\t\t\t'offer'\r\n\t\t\t\t\t)\r\n\t\t\t\t)\r\n\t\t\t) {\r\n\t\t\t$query->set('orderby', array( 'post_title' => 'ASC' ) );\r\n\r\n\t } else if ( !empty($query->query['post_type']) && $query->query['post_type'] == 'article' && getLastPathSegment($_SERVER['REQUEST_URI']) !== 'features' ) {\r\n\t\t // order articles by reverse date except features page\r\n\t\t$query->set( 'orderby', array( 'date' => 'DESC' ) );\r\n\t }\r\n\t}\r\n}", "public static function pre_get_posts( $query ) {\n\t\t\t$admin_helpers = Tribe__Admin__Helpers::instance();\n\n\t\t\tif ( $query->is_main_query() && is_home() ) {\n\t\t\t\t/**\n\t\t\t\t * The following filter will remove the virtual page from the option page and return a 0 as it's not\n\t\t\t\t * set when the SQL query is constructed to avoid having a is_page() instead of a is_home().\n\t\t\t\t */\n\t\t\t\tadd_filter( 'option_page_on_front', array( __CLASS__, 'default_page_on_front' ) );\n\t\t\t\t// check option for including events in the main wordpress loop, if true, add events post type\n\t\t\t\tif ( tribe_get_option( 'showEventsInMainLoop', false ) ) {\n\t\t\t\t\t$query->query_vars['post_type'] = isset( $query->query_vars['post_type'] )\n\t\t\t\t\t\t? ( array ) $query->query_vars['post_type']\n\t\t\t\t\t\t: array( 'post' );\n\n\t\t\t\t\tif ( ! in_array( Tribe__Events__Main::POSTTYPE, $query->query_vars['post_type'] ) ) {\n\t\t\t\t\t\t$query->query_vars['post_type'][] = Tribe__Events__Main::POSTTYPE;\n\t\t\t\t\t}\n\t\t\t\t\t$query->tribe_is_multi_posttype = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( $query->tribe_is_multi_posttype ) {\n\t\t\t\tdo_action( 'log', 'multi_posttype', 'default', $query->tribe_is_multi_posttype );\n\t\t\t\tadd_filter( 'posts_fields', array( __CLASS__, 'multi_type_posts_fields' ), 10, 2 );\n\t\t\t\tadd_filter( 'posts_join', array( __CLASS__, 'posts_join' ), 10, 2 );\n\t\t\t\tadd_filter( 'posts_join', array( __CLASS__, 'posts_join_venue_organizer' ), 10, 2 );\n\t\t\t\tadd_filter( 'posts_distinct', array( __CLASS__, 'posts_distinct' ) );\n\t\t\t\tadd_filter( 'posts_orderby', array( __CLASS__, 'posts_orderby' ), 10, 2 );\n\t\t\t\tdo_action( 'tribe_events_pre_get_posts', $query );\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( $query->tribe_is_event || $query->tribe_is_event_category ) {\n\n\t\t\t\tif ( ! ( $query->is_main_query() && 'month' === $query->get( 'eventDisplay' ) ) ) {\n\t\t\t\t\tadd_filter( 'option_page_on_front', array( __CLASS__, 'default_page_on_front' ) );\n\t\t\t\t\tadd_filter( 'posts_fields', array( __CLASS__, 'posts_fields' ), 10, 2 );\n\t\t\t\t\tadd_filter( 'posts_join', array( __CLASS__, 'posts_join' ), 10, 2 );\n\t\t\t\t\tadd_filter( 'posts_join', array( __CLASS__, 'posts_join_venue_organizer' ), 10, 2 );\n\t\t\t\t\tadd_filter( 'posts_where', array( __CLASS__, 'posts_where' ), 10, 2 );\n\t\t\t\t\tadd_filter( 'posts_distinct', array( __CLASS__, 'posts_distinct' ) );\n\t\t\t\t} else {\n\n\t\t\t\t\t// reduce number of queries triggered by main WP_Query on month view\n\t\t\t\t\t$query->set( 'posts_per_page', 1 );\n\t\t\t\t\t$query->set( 'no_found_rows', true );\n\t\t\t\t\t$query->set( 'cache_results', false );\n\t\t\t\t\t$query->set( 'update_post_meta_cache', false );\n\t\t\t\t\t$query->set( 'update_post_term_cache', false );\n\t\t\t\t\tdo_action( 'tribe_events_pre_get_posts', $query );\n\n\t\t\t\t\treturn $query;\n\t\t\t\t}\n\n\t\t\t\t// if a user selects a date in the event bar we want it to persist as long as possible\n\t\t\t\tif ( ! empty( $_REQUEST['tribe-bar-date'] ) ) {\n\t\t\t\t\t$query->set( 'eventDate', $_REQUEST['tribe-bar-date'] );\n\t\t\t\t\tdo_action( 'log', 'changed eventDate to tribe-bar-date', 'tribe-events-query', $_REQUEST['tribe-bar-date'] );\n\t\t\t\t}\n\n\t\t\t\t// if a user provides a search term we want to use that in the search params\n\t\t\t\tif ( ! empty( $_REQUEST['tribe-bar-search'] ) ) {\n\t\t\t\t\t$query->query_vars['s'] = $_REQUEST['tribe-bar-search'];\n\t\t\t\t}\n\n\t\t\t\t$query->set( 'eventDisplay', $query->get( 'eventDisplay', Tribe__Events__Main::instance()->displaying ) );\n\n\t\t\t\t// By default we'll hide events marked as \"hidden from event listings\" unless\n\t\t\t\t// the query explicity requests they be exposed\n\t\t\t\t$maybe_hide_events = (bool) $query->get( 'hide_upcoming', true );\n\n\t\t\t\t//@todo stop calling EOD cutoff transformations all over the place\n\n\t\t\t\tif ( ! empty( $query->query_vars['eventDisplay'] ) ) {\n\t\t\t\t\tswitch ( $query->query_vars['eventDisplay'] ) {\n\t\t\t\t\t\tcase 'custom':\n\t\t\t\t\t\t\t// if the eventDisplay is 'custom', all we're gonna do is make sure the start and end dates are formatted\n\t\t\t\t\t\t\t$start_date = $query->get( 'start_date' );\n\n\t\t\t\t\t\t\tif ( $start_date ) {\n\t\t\t\t\t\t\t\t$start_date_string = $start_date instanceof DateTime\n\t\t\t\t\t\t\t\t\t? $start_date->format( Tribe__Date_Utils::DBDATETIMEFORMAT )\n\t\t\t\t\t\t\t\t\t: $start_date;\n\n\t\t\t\t\t\t\t\t$query->set( 'start_date', date_i18n( Tribe__Date_Utils::DBDATETIMEFORMAT, strtotime( $start_date_string ) ) );\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$end_date = $query->get( 'end_date' );\n\n\t\t\t\t\t\t\tif ( $end_date ) {\n\t\t\t\t\t\t\t\t$end_date_string = $end_date instanceof DateTime\n\t\t\t\t\t\t\t\t\t? $end_date->format( Tribe__Date_Utils::DBDATETIMEFORMAT )\n\t\t\t\t\t\t\t\t\t: $end_date;\n\n\t\t\t\t\t\t\t\t$query->set( 'end_date', date_i18n( Tribe__Date_Utils::DBDATETIMEFORMAT, strtotime( $end_date_string ) ) );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'month':\n\n\t\t\t\t\t\t\t// make sure start and end date are set\n\t\t\t\t\t\t\tif ( $query->get( 'start_date' ) == '' ) {\n\t\t\t\t\t\t\t\t$event_date = ( $query->get( 'eventDate' ) != '' )\n\t\t\t\t\t\t\t\t\t? $query->get( 'eventDate' )\n\t\t\t\t\t\t\t\t\t: date_i18n( Tribe__Date_Utils::DBDATETIMEFORMAT );\n\t\t\t\t\t\t\t\t$query->set( 'start_date', tribe_beginning_of_day( $event_date ) );\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif ( $query->get( 'end_date' == '' ) ) {\n\t\t\t\t\t\t\t\t$query->set( 'end_date', tribe_end_of_day( $query->get( 'start_date' ) ) );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$query->set( 'hide_upcoming', $maybe_hide_events );\n\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'day':\n\t\t\t\t\t\t\t$event_date = $query->get( 'eventDate' ) != '' ? $query->get( 'eventDate' ) : date( 'Y-m-d', current_time( 'timestamp' ) );\n\t\t\t\t\t\t\t$query->set( 'eventDate', $event_date );\n\t\t\t\t\t\t\t$beginning_of_day = strtotime( tribe_beginning_of_day( $event_date ) );\n\t\t\t\t\t\t\t$query->set( 'start_date', date_i18n( Tribe__Date_Utils::DBDATETIMEFORMAT, $beginning_of_day ) );\n\t\t\t\t\t\t\t$query->set( 'end_date', tribe_end_of_day( $event_date ) );\n\t\t\t\t\t\t\t$query->set( 'posts_per_page', - 1 ); // show ALL day posts\n\t\t\t\t\t\t\t$query->set( 'hide_upcoming', $maybe_hide_events );\n\t\t\t\t\t\t\t$query->set( 'order', self::set_order( 'ASC', $query ) );\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'single-event':\n\t\t\t\t\t\t\tif ( $query->get( 'eventDate' ) != '' ) {\n\t\t\t\t\t\t\t\t$query->set( 'start_date', $query->get( 'eventDate' ) );\n\t\t\t\t\t\t\t\t$query->set( 'eventDate', $query->get( 'eventDate' ) );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'all':\n\t\t\t\t\t\tcase 'list':\n\t\t\t\t\t\tdefault: // default display query\n\t\t\t\t\t\t\t$event_date = ( $query->get( 'eventDate' ) != '' )\n\t\t\t\t\t\t\t\t? $query->get( 'eventDate' )\n\t\t\t\t\t\t\t\t: date_i18n( Tribe__Date_Utils::DBDATETIMEFORMAT );\n\t\t\t\t\t\t\tif ( ! $query->tribe_is_past ) {\n\t\t\t\t\t\t\t\t$query->set( 'start_date', ( '' != $query->get( 'eventDate' ) ? tribe_beginning_of_day( $event_date ) : tribe_format_date( current_time( 'timestamp' ), true, 'Y-m-d H:i:00' ) ) );\n\t\t\t\t\t\t\t\t$query->set( 'end_date', '' );\n\t\t\t\t\t\t\t\t$query->set( 'order', self::set_order( 'ASC', $query ) );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// on past view, set the passed date as the end date\n\t\t\t\t\t\t\t\t$query->set( 'start_date', '' );\n\t\t\t\t\t\t\t\t$query->set( 'end_date', $event_date );\n\t\t\t\t\t\t\t\t$query->set( 'order', self::set_order( 'DESC', $query ) );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$query->set( 'orderby', self::set_orderby( null, $query ) );\n\t\t\t\t\t\t\t$query->set( 'hide_upcoming', $maybe_hide_events );\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$query->set( 'hide_upcoming', $maybe_hide_events );\n\t\t\t\t\t$query->set( 'start_date', date_i18n( Tribe__Date_Utils::DBDATETIMEFORMAT ) );\n\t\t\t\t\t$query->set( 'orderby', self::set_orderby( null, $query ) );\n\t\t\t\t\t$query->set( 'order', self::set_order( null, $query ) );\n\t\t\t\t}\n\n\t\t\t\t// eventCat becomes a standard taxonomy query - will need to deprecate and update views eventually\n\t\t\t\tif ( ! in_array( $query->get( Tribe__Events__Main::TAXONOMY ), array( '', '-1' ) ) ) {\n\t\t\t\t\t$tax_query[] = array(\n\t\t\t\t\t\t'taxonomy' => Tribe__Events__Main::TAXONOMY,\n\t\t\t\t\t\t'field' => 'slug',\n\t\t\t\t\t\t'terms' => $query->get( Tribe__Events__Main::TAXONOMY ),\n\t\t\t\t\t\t'include_children' => apply_filters( 'tribe_events_query_include_children', true ),\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\t// Only add the postmeta hack if it's not the main admin events list\n\t\t\t\t// Because this method filters out drafts without EventStartDate.\n\t\t\t\t// For this screen we're doing the JOIN manually in Tribe__Events__Admin_List\n\n\t\t\t\tif ( ! Tribe__Admin__Helpers::instance()->is_screen( 'edit-tribe_events' ) ) {\n\t\t\t\t\t$event_start_key = Tribe__Events__Timezones::is_mode( 'site' )\n\t\t\t\t\t\t? '_EventStartDateUTC'\n\t\t\t\t\t\t: '_EventStartDate';\n\n\t\t\t\t\t$meta_query[] = array(\n\t\t\t\t\t\t'key' => $event_start_key,\n\t\t\t\t\t\t'type' => 'DATETIME',\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// filter by Venue ID\n\t\t\tif ( $query->tribe_is_event_query && $query->get( 'venue' ) != '' ) {\n\t\t\t\t$meta_query[] = array(\n\t\t\t\t\t'key' => '_EventVenueID',\n\t\t\t\t\t'value' => $query->get( 'venue' ),\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// filter by Organizer ID\n\t\t\tif ( $query->tribe_is_event_query && $query->get( 'organizer' ) != '' ) {\n\t\t\t\t$meta_query[] = array(\n\t\t\t\t\t'key' => '_EventOrganizerID',\n\t\t\t\t\t'value' => $query->get( 'organizer' ),\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// enable pagination setup\n\t\t\tif ( $query->tribe_is_event_query && $query->get( 'posts_per_page' ) == '' ) {\n\t\t\t\t$query->set( 'posts_per_page', (int) tribe_get_option( 'postsPerPage', 10 ) );\n\t\t\t}\n\n\t\t\t// hide upcoming events from query (only not in admin)\n\t\t\tif ( $query->tribe_is_event_query && $query->get( 'hide_upcoming' ) && ! $query->get( 'suppress_filters' ) ) {\n\t\t\t\t$hide_upcoming_ids = self::getHideFromUpcomingEvents();\n\t\t\t\tif ( ! empty( $hide_upcoming_ids ) ) {\n\t\t\t\t\t// Merge if there is any items and remove empty items\n\t\t\t\t\t$hide_upcoming_ids = array_filter( array_merge( $hide_upcoming_ids, (array) $query->get( 'post__not_in' ) ) );\n\n\t\t\t\t\t$query->set( 'post__not_in', $hide_upcoming_ids );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( $query->tribe_is_event_query && ! empty( $meta_query ) ) {\n\t\t\t\t// setup default relation for meta queries\n\t\t\t\t$meta_query['relation'] = 'AND';\n\t\t\t\t$meta_query_combined = array_merge( (array) $meta_query, (array) $query->get( 'meta_query' ) );\n\t\t\t\t$query->set( 'meta_query', $meta_query_combined );\n\t\t\t}\n\n\t\t\tif ( $query->tribe_is_event_query && ! empty( $tax_query ) ) {\n\t\t\t\t// setup default relation for tax queries\n\t\t\t\t$tax_query_combined = array_merge( (array) $tax_query, (array) $query->get( 'tax_query' ) );\n\t\t\t\t$query->set( 'tax_query', $tax_query_combined );\n\t\t\t}\n\n\t\t\tif ( $query->tribe_is_event_query ) {\n\t\t\t\tadd_filter( 'posts_orderby', array( __CLASS__, 'posts_orderby' ), 10, 2 );\n\t\t\t}\n\n\t\t\tif ( $query->tribe_is_event_query ) {\n\t\t\t\tdo_action( 'tribe_events_pre_get_posts', $query );\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * If is in the admin remove the event date & upcoming filters, unless is an ajax call\n\t\t\t * It's important to note that `tribe_remove_date_filters` needs to be set before calling\n\t\t\t * self::should_remove_date_filters() to allow the date_filters to be actually removed\n\t\t\t */\n\t\t\tif ( self::should_remove_date_filters( $query ) ) {\n\t\t\t\tremove_filter( 'option_page_on_front', array( __CLASS__, 'default_page_on_front' ) );\n\t\t\t\tremove_filter( 'posts_where', array( __CLASS__, 'posts_where' ), 10, 2 );\n\t\t\t\tremove_filter( 'posts_fields', array( __CLASS__, 'posts_fields' ) );\n\t\t\t\tremove_filter( 'posts_orderby', array( __CLASS__, 'posts_orderby' ), 10, 2 );\n\t\t\t\t$query->set( 'post__not_in', '' );\n\n\t\t\t\t// set the default order for posts within admin lists\n\t\t\t\tif ( ! isset( $query->query['order'] ) ) {\n\t\t\t\t\t$query->set( 'order', 'DESC' );\n\t\t\t\t} else {\n\t\t\t\t\t// making sure we preserve the order supplied by the query string even if it is overwritten above\n\t\t\t\t\t$query->set( 'order', $query->query['order'] );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $query;\n\t\t}", "function get_all_product_posts($query ) {\n if (is_post_type_archive( 'product') && !is_admin() && $query->is_main_query()) {\n $query->set('posts_per_page' , '16');\n $query->set('orderby', 'title');\n $query->set('order' , 'ASC');\n } //elseif for categories\n}", "public function the_posts( $posts, $query = false ) {\n\t\tWC()->query->unfiltered_product_ids = $this->results;\n\t\tWC()->query->filtered_product_ids = $this->results;\n\t\tWC()->query->layered_nav_product_ids = $this->results;\n\n\t\treturn $posts;\n\t}", "function wptouch_custom_posts_pre_get_posts( $query ) {\n\t$settings = foundation_get_settings();\n\tif ( !$settings->enable_custom_post_types ) {\n\t\treturn $query;\n\t}\n\t\n\tif ( is_attachment() ) {\n\t\treturn $query;\n\t}\n\t\n\t// Right now only support custom post types on the home page and single post pages\n\tif ( ( is_single() && !is_page() ) || is_home() ) {\t\n\t\t// Only employ this logic for when the mobile theme is showing\n\t\tif ( wptouch_is_mobile_theme_showing() ) {\n\t\t\t$settings = foundation_get_settings();\n\t\t\t\n\t\t\t$post_types = wptouch_custom_posts_get_list( true );\n\t\t\tif ( $post_types && count( $post_types ) ) {\t\t\t\n\t\t\t\t$post_type_array = array();\n\t\t\t\t\n\t\t\t\tforeach( $post_types as $post_type ) {\n\t\t\t\t\t$setting_name = wptouch_custom_posts_get_name_for_post_type( $post_type );\n\t\t\t\t\tif ( isset( $settings->$setting_name ) && $settings->$setting_name ) {\n\t\t\t\t\t\t$post_type_array[] = $post_type;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tif ( count( $post_type_array ) ) {\t\n\t\t\t\t// Determine the original post type in the query\n\t\t\t\t$original_post_type = false;\t\t\t\n\t\t\t\tif ( isset( $query->queried_object ) ) {\n\t\t\t\t\t$original_post_type = $query->queried_object->post_type;\n\t\t\t\t} else if ( isset( $query->query_vars['post_type'] ) ) {\n\t\t\t\t\t$original_post_type = $query->query_vars['post_type'];\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tif ( $original_post_type ) {\n\t\t\t\t\t$page_for_posts = get_option( 'page_for_posts' );\n\t\t\t\t\tif ( isset( $query->queried_object_id ) && ( $query->queried_object_id == $page_for_posts ) ) {\n\t\t\t\t\t\t// we're on the posts page\n\t\t\t\t\t\t$custom_post_types = apply_filters( 'wptouch_custom_posts_pre_get', array_merge( array( 'post' ), $post_type_array ) );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ( !is_array( $original_post_type ) ) {\n\t\t\t\t\t\t\t$original_post_type = array( $original_post_type );\n\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t$custom_post_types = apply_filters( 'wptouch_custom_posts_pre_get', array_merge( $original_post_type, $post_type_array ) );\n\t\t\t\t\t}\t\n\t\t\t\t\t\n\t\t\t\t\t$query->set( 'post_type', $custom_post_types );\t\t\n\t\t\t\t} else {\n\t\t\t\t\t// We're on the home page or possibly another page for a normal site\n\t\t\t\t\t$custom_post_types = apply_filters( 'wptouch_custom_posts_pre_get', array_merge( array( 'post' ), $post_type_array ) );\n\t\t\t\t\t$query->set( 'post_type', $custom_post_types );\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t\n\treturn $query;\n}", "public function pre_get_posts( $query ) {\n\n\t\t// Lets not break stuff\n\t\tif ( is_admin() || ! $query->is_main_query() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Search pagination\n\t\tif ( is_search() ) {\n\t\t\t$query->set( 'posts_per_page', get_theme_mod( 'search_posts_per_page', '10' ) );\n\t\t\treturn;\n\t\t}\n\n\t\t// Exclude categories from the main blog\n\t\tif ( ( is_home() || is_page_template( 'templates/blog.php' ) ) && function_exists( 'wpex_blog_exclude_categories' ) ) {\n\t\t\twpex_blog_exclude_categories( false );\n\t\t\treturn;\n\t\t}\n\n\t\t// Category pagination\n\t\t$terms = get_terms( 'category' );\n\t\tif ( ! empty( $terms ) ) {\n\t\t\tforeach ( $terms as $term ) {\n\t\t\t\tif ( is_category( $term->slug ) ) {\n\t\t\t\t\t$term_id = $term->term_id;\n\t\t\t\t\t$term_data = get_option( \"category_$term_id\" );\n\t\t\t\t\tif ( $term_data ) {\n\t\t\t\t\t\tif ( ! empty( $term_data['wpex_term_posts_per_page'] ) ) {\n\t\t\t\t\t\t\t$query->set( 'posts_per_page', $term_data['wpex_term_posts_per_page'] );\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "function legacy_post_in( $filtered_posts ) {\n\t\tglobal $wp_query;\n\n\t\tif ( $this->is_woocommerce_search()\n\t\t && function_exists( 'SWP' )\n\t\t && ! isset( $_GET['orderby'] )\n\t\t && $query = get_search_query() ) {\n\n\t\t\t$searchwp_engine = 'default';\n\t\t\t$searchwp = SWP();\n\t\t\t$swppg = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;\n\n\t\t\tadd_filter( 'searchwp_load_posts', '__return_false' );\n\t\t\tadd_filter( 'searchwp_posts_per_page', array( $this, 'set_pagination' ) );\n\n\t\t\t// force SearchWP to only consider the filtered posts\n\t\t\tif ( ! empty( $filtered_posts ) ) {\n\t\t\t\t$this->filtered_posts = $filtered_posts;\n\t\t\t\tadd_filter( 'searchwp_include', array( $this, 'include_filtered_posts' ) );\n\t\t\t}\n\n\t\t\t// don't log this search, it's redundant\n\t\t\tadd_filter( 'searchwp_log_search', '__return_false' );\n\t\t\t$this->results = $searchwp->search( $searchwp_engine, $query, $swppg );\n\t\t\tremove_filter( 'searchwp_log_search', '__return_false' );\n\n\t\t\tremove_filter( 'searchwp_load_posts', '__return_false' );\n\t\t\tremove_filter( 'searchwp_posts_per_page', array( $this, 'set_pagination' ) );\n\n\t\t\t$filtered_posts = array_intersect( $this->results, (array) $filtered_posts );\n\t\t\t$filtered_posts = array_unique( $filtered_posts );\n\n\t\t\t// also set our WooCommerce Instance IDs\n\t\t\tWC()->query->unfiltered_product_ids = $this->results;\n\t\t}\n\n\t\treturn (array) $filtered_posts;\n\t}", "function oppen_pre_get_posts($query) {\n /*if ($_GET['infinity'] === 'scrolling' && !$query->is_category('blogg')) {\n return;\n }*/\n\n // If we're in the admin, don't modify the query\n if (is_admin()) {\n return;\n }\n\n // If we're on the front page, fetch the 3 latest blog posts\n if ($query->is_home() && $query->is_main_query()) {\n $query->set('is_category_blog', true);\n $query->set('category_name', 'blogg');\n $query->set('showposts', 3);\n return;\n }\n\n // If we're on the blog category page, increase the post\n // limit to 90 posts and order descending by date.\n if (!$query->is_home() && $query->is_category('blogg')) {\n $query->set('showposts', 9);\n $query->set('orderby', 'date');\n $query->set('order', 'desc');\n } else {\n // Otherwise, order ascending by title\n $query->set('orderby', 'title');\n $query->set('order', 'asc');\n }\n}", "function delivery_pre_get_posts( $query ) {\n\n\t// Bail if not home or not main query.\n\tif ( ! $query->is_home() || ! $query->is_main_query() ) {\n\t\treturn;\n\t}\n\n\t$page_on_front = get_option( 'page_on_front' );\n\n\t// Bail if the blog page is not the front page.\n\tif ( ! empty( $page_on_front ) ) {\n\t\treturn;\n\t}\n\n\t// Get the tag.\n\t$featured = get_theme_mod( 'delivery_featured_posts', 'featured' );\n\n\t// Bail if no featured posts.\n\tif ( ! $featured ) {\n\t\treturn;\n\t}\n\n\t// Get the tag name.\n\t$exclude = get_term_by( 'name', $featured, 'post_tag' );\n\n\t// Exclude the main query.\n\tif ( ! empty( $exclude ) ) {\n\t\t$query->set( 'tag__not_in', $exclude->term_id );\n\t}\n\n}", "public function hookActionAdminProductsListingResultsModifier(&$hookParams)\n {\n $hookParams['products'] = ProductsCollection::make($hookParams['products'])\n ->sortBy('alternative_description')\n ->all()\n ;\n }", "private function setupPostFilter()\n {\n if (! is_admin()) {\n $post_types = $this->setting('search-options/post-types');\n if (! $post_types) {\n $post_types = $this->setting('post-types');\n }\n\n if ($post_types && (count($post_types) > 1)) {\n add_action('pre_get_posts', function ($query) use ($post_types) {\n if (($query->is_home() && $query->is_main_query()) || ($query->is_search()) || ($query->is_tag())) {\n if ($query->is_search()) {\n if ($post_types) {\n $query->set('post_type', $post_types);\n }\n } else {\n if ($post_types) {\n $query->set('post_type', $post_types);\n }\n }\n\n if ($this->preGetPostsCallback) {\n call_user_func($this->preGetPostsCallback, $query);\n }\n }\n });\n }\n }\n\n if ($this->setting('search-options/fulltext-search')) {\n\t add_filter('posts_search', function($search, $query){\n\t\t if ($query->is_main_query() && $query->is_search()) {\n\t\t\t if (empty($query->get('s'))) {\n\t\t\t\t return ' ';\n\t\t\t }\n\n\t\t\t global $wpdb;\n\t\t\t return $wpdb->prepare(\" AND MATCH($wpdb->posts.post_title, $wpdb->posts.post_content) AGAINST(%s)\", '*' . $query->get('s') . '*');\n\t\t } else {\n\t\t\t return $search;\n\t\t }\n\t }, 10000, 2);\n\n\n\t add_filter('posts_orderby', function($orderby, $query){\n\t\t if ($query->is_main_query() && $query->is_search()) {\n\t\t\t global $wpdb;\n\n\t\t\t return \" $wpdb->posts.post_date DESC\";\n\t\t } else {\n\t\t\t return $orderby;\n\t\t }\n\t }, 10000, 2);\n }\n\n // Below alter the way wordpress searches\n $search_tags = $this->setting('search-options/search-tags');\n if ($search_tags) {\n add_filter('posts_join', function ($join, $query) {\n global $wpdb;\n if ($query->is_main_query() && $query->is_search()) {\n $join .= \"\n LEFT JOIN\n (\n {$wpdb->term_relationships}\n INNER JOIN\n {$wpdb->term_taxonomy} ON {$wpdb->term_taxonomy}.term_taxonomy_id = {$wpdb->term_relationships}.term_taxonomy_id\n INNER JOIN\n {$wpdb->terms} ON {$wpdb->terms}.term_id = {$wpdb->term_taxonomy}.term_id\n )\n ON {$wpdb->posts}.ID = {$wpdb->term_relationships}.object_id \";\n }\n\n return $join;\n }, 10, 2);\n\n // change the wordpress search\n add_filter('posts_where', function ($where, $query) {\n global $wpdb;\n if ($query->is_main_query() && $query->is_search()) {\n $user = wp_get_current_user();\n $user_where = '';\n $status = [\"'publish'\"];\n if (! empty($user->ID)) {\n $status[] = \"'private'\";\n\n $user_where .= \" AND {$wpdb->posts}.post_author = \".esc_sql($user->ID);\n }\n $user_where .= \" AND {$wpdb->posts}.post_status IN( \".implode(',', $status).' )';\n\n $where .= \" OR (\n {$wpdb->term_taxonomy}.taxonomy IN( 'category', 'post_tag' )\n AND\n {$wpdb->terms}.name LIKE '%\".esc_sql(get_query_var('s')).\"%'\n {$user_where}\n )\";\n }\n\n return $where;\n }, 10, 2);\n\n // change the wordpress search\n add_filter('posts_groupby', function ($groupby, $query) {\n global $wpdb;\n if ($query->is_main_query() && $query->is_search()) {\n $groupby = \"{$wpdb->posts}.ID\";\n }\n\n return $groupby;\n }, 10, 2);\n }\n }", "function fellowships_pre_get_posts( $query ) {\r\r\n\t// or current query is not the main query\r\r\n\tif ( is_admin() || ! $query->is_main_query() ){\r\r\n\t\treturn;\r\r\n\t}\r\r\n\r\r\n\tif('fellowships' != $query->query['post_type']) {\r\r\n\t\treturn;\r\r\n\t}\t\r\r\n\t\r\r\n\t$fellowships_cat = get_query_var( 'fellowships_cat' );\r\r\n\t$fellowships_year = get_query_var( 'fellowships_year' );\r\r\n\r\r\n $tax_query = array('relation' => 'AND');\r\r\n\r\r\n\r\r\n\t// add tax_query elements\r\r\n\tif( !empty( $fellowships_year ) ){\r\r\n\t\t$tax_query[] = array(\r\r\n\t\t\t'taxonomy' => 'felowship_year',\r\r\n\t\t\t'field' => 'slug',\r\r\n\t\t\t'terms' => $fellowships_year,\t\r\r\n\t\t);\r\r\n\t}\r\r\n\r\r\n\r\r\n\r\r\n\tif( !empty( $fellowships_cat ) ){\r\r\n\t\t$query->set( 'order', 'ASC');\r\r\n\t\t$tax_query[] = array(\r\r\n\t\t\t'taxonomy' => 'felowship_category',\r\r\n\t\t\t'field' => 'slug',\r\r\n\t\t\t'terms' => $fellowships_cat,\r\r\n\t\t);\r\r\n\t}\r\r\n\r\r\n\t// add tax_query ele\r\r\n\t$query->set( 'tax_query', $tax_query);\r\r\n}", "function posts_results_intercept( $posts ) {\n\t\t\tif ( 1 != count( $posts ) ) {\n\t\t\t\treturn $posts;\n\t\t\t}\n\t\t\t$post = $posts[0];\n\t\t\t$status = get_post_status( $post );\n\n\t\t\t// if the post being requested is 'publish' then we don't care and just return the\n\t\t\tif ( 'publish' != $status && $this->can_view_draft( $post->ID ) ) {\n\t\t\t\t$this->shared_post = $post;\n\t\t\t}\n\n\t\t\treturn $posts;\n\t\t}", "public static function pre_get_posts(&$query)\n {\n if (isset($query->query_vars['orderby']))\n {\n if (in_array($query->query_vars['orderby'], array('meta_value', 'meta_value_num')) && !is_null($query->query_vars['order']))\n {\n self::$meta_order = $query->query_vars['order'];\n }\n\n if (!is_null($query->query_vars['meta_key']))\n {\n self::$meta_key = $query->query_vars['meta_key'];\n }\n }\n }", "public function query_posts()\n {\n }", "function product_query( $q, $woocommerce ) {\n\t\tglobal $wp_query;\n\n\t\t$this->woocommerce_query = $q;\n\t\t$this->woocommerce = $woocommerce;\n\n\t\tif ( $this->is_woocommerce_search() ) {\n\t\t\t$q->set( 's', '' );\n\t\t}\n\n\t\t// if SearchWP found search results we want the order of results to be returned by SearchWP weight in descending order\n\t\tif ( $this->is_woocommerce_search() && apply_filters( 'searchwp_woocommerce_force_weight_sort', true ) ) {\n\t\t\t$wp_query->set( 'order', 'DESC' );\n\t\t\t$wp_query->set( 'orderby', 'post__in' );\n\n\t\t\t// if it's not the main Search page, it's the WooCommerce Shop page\n\t\t\tif ( ! is_search() && wc_get_page_id( 'shop' ) == get_queried_object_id() ) {\n\t\t\t\t$wp_query->set( 's', '' );\n\t\t\t}\n\t\t}\n\t}", "function tennis_pre_get_posts( $query ) {\n\t// check if the user is requesting an admin page \n\t// or current query is not the main query\n\tif ( is_admin() || ! $query->is_main_query() ){\n\t\treturn;\n\t}\n\n\t$my_post_types = array( 'tenniseventcpt' );\n\t \n\tif( ! is_singular( $my_post_types) && ! is_post_type_archive( $my_post_types ) ) {\n\t return $template;\n\t}\n\n\t$manage = get_query_var( 'manage' );\n\n\t// add meta_query elements\n\tif( !empty( $manage ) ){\n\t\t$query->set( 'meta_key', 'manage' );\n\t\t$query->set( 'meta_value', $manage );\n\t\t$query->set( 'meta_compare', '=' );\n\t}\n\n}", "function main_query_mods( $query ) {\n // check http://codex.wordpress.org/Conditional_Tags to play with other queries\n if(!$query->is_main_query()) {\n return;\n }\n if(is_category()) { // is_tag can be used here for tags\n $query->set('posts_per_page',8);\n }\n}", "public function pre_get_posts( $query ) {\n\n\t\tif ( ! is_admin() && $query->is_main_query() ) {\n\t\t\t$query->set( 'posts_per_page', 1 );\n\t\t}\n\t}", "function pre_get_posts($query)\n\t\t{\n\t\t\tif(is_category() || is_tag() || is_archive())\n\t\t\t{\n\n\t\t\t\tif (is_admin()) return $query;\n\n\t\t\t\t$query_type = get_query_var('post_type');\n\n\t\t\t\tif ($query_type)\n\t\t\t\t{\n\t\t\t\t\t//if (!is_array($query_type)) $query_type = array($query_type);\n\n\t\t\t\t\tif (in_array('post', $query_type) && !in_array('video', $query_type))\n\t\t\t\t\t\t$query_type[] = 'video';\n\t\t\t\t}\n\t\t\t\telse //default\n\t\t\t\t\t{\n\t\t\t\t\t$query_type = array('post', 'video');\n\t\t\t\t}\n\n\t\t\t\t$query->set('post_type', $query_type);\n\t\t\t}\n\n\t\t\treturn $query;\n\t\t}", "function apptivo_recent_products($per_page=8,$orderby='date',$order='desc')\n{\n\twp_reset_query();\n\t$args = array(\n\t\t'post_type'\t=> 'item',\n\t\t'post_status' => 'publish',\t \n\t\t'posts_per_page' => $per_page,\n\t\t'orderby' => $orderby,\n\t\t'order' => $order,\n\t 'meta_key' \t=> '_apptivo_sale_price',\n\t\t'meta_query' => array(\n\tarray('key' => '_apptivo_enabled','value' => 'yes','compare' => '=','type' => 'CHAR')\n\t)\n\t);\n\n\tquery_posts($args);\n}", "function post_in( $filtered_posts ) {\n\t\tglobal $wp_query;\n\n\t\tif ( ! class_exists( 'SWP_Query' ) ) {\n\t\t\treturn $filtered_posts;\n\t\t}\n\n\t\t// WooCommerce 2.6 introduced tax/meta query piggybacking that's much better\n\t\tif ( function_exists( 'WC' ) && function_exists( 'SWP' ) && ! empty( WC()->version ) && version_compare( WC()->version, '2.6.0', '<' ) ) {\n\t\t\treturn $this->legacy_post_in( $filtered_posts );\n\t\t}\n\n\t\t$search_query = urldecode( stripslashes( get_search_query() ) );\n\n\t\tif ( $this->is_woocommerce_search()\n\t\t\t// && ! isset( $_GET['orderby'] )\n\t\t\t&& $search_query === $this->original_query ) {\n\n\t\t\tif ( ! empty( $this->results ) ) {\n\t\t\t\treturn $this->results;\n\t\t\t}\n\n\t\t\t$searchwp_engine = 'default';\n\t\t\t$swppg = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;\n\n\t\t\t// force SearchWP to only consider the filtered posts\n\t\t\tif ( ! empty( $filtered_posts ) ) {\n\t\t\t\t$this->filtered_posts = $filtered_posts;\n\t\t\t\tadd_filter( 'searchwp\\post__in', array( $this, 'include_filtered_posts' ) );\n\t\t\t\tadd_filter( 'searchwp_include', array( $this, 'include_filtered_posts' ) ); // SearchWP 3.x compat.\n\t\t\t}\n\n\t\t\tdo_action( 'searchwp_woocommerce_before_search', $this );\n\n\t\t\tif ( ! apply_filters( 'searchwp_woocommerce_log_searches', true ) ) {\n\t\t\t\tadd_filter( 'searchwp\\statistics\\log', '__return_false' );\n\t\t\t\tadd_filter( 'searchwp_log_search', '__return_false' ); // SearchWP 3.x compat.\n\t\t\t}\n\n\t\t\t$wc_query = new WC_Query();\n\n\t\t\t$args = array(\n\t\t\t\t's' => $this->original_query,\n\t\t\t\t'engine' => $searchwp_engine,\n\t\t\t\t'page' => $swppg,\n\t\t\t\t'fields' => 'ids',\n\t\t\t\t'posts_per_page' => -1,\n\t\t\t\t'tax_query' => $wc_query->get_tax_query(),\n\t\t\t\t'meta_query' => $wc_query->get_meta_query(),\n\t\t\t);\n\n\t\t\t// WooCommerce 3.0 has additional params for get_tax_query() and get_meta_query()\n\t\t\tif ( function_exists( 'WC' ) && ! empty( WC()->version ) && version_compare( WC()->version, '3.0.0', '>=' ) ) {\n\t\t\t\t$args['tax_query'] = $wc_query->get_tax_query( array(), true );\n\t\t\t\t$args['meta_query'] = $wc_query->get_meta_query( array(), true );\n\t\t\t}\n\n\t\t\t$args = apply_filters( 'searchwp_woocommerce_query_args', $args );\n\n\t\t\t$results = new SWP_Query( $args );\n\n\t\t\t$this->results = $results->posts;\n\n\t\t\t// Force 'no results' if the results are empty\n\t\t\tif ( empty( $this->results ) ) {\n\t\t\t\t$this->results = array( 0 );\n\t\t\t}\n\n\n\t\t\t// Once our search has run we don't want to interfere any any subsequent queries\n\t\t\tadd_filter( 'searchwp\\native\\short_circuit', '__return_true' );\n\t\t\tadd_filter( 'searchwp_force_wp_query', '__return_true' ); // SearchWP 3.x compat.\n\t\t\tadd_filter( 'searchwp_short_circuit', '__return_true' ); // SearchWP 3.x compat.\n\n\t\t\treturn $this->results;\n\t\t} elseif( ! empty( $this->results ) ) {\n\t\t\treturn $this->results;\n\t\t} // End if().\n\n\t\treturn (array) $filtered_posts;\n\t}", "function ams_get_all_products_info() {\n global $wpdb;\n\n $results = $wpdb->get_results(\n $wpdb->prepare(\n \"SELECT DISTINCT $wpdb->posts.ID, $wpdb->postmeta.meta_value\n FROM $wpdb->posts, $wpdb->postmeta\n WHERE $wpdb->posts.ID = $wpdb->postmeta.post_id \n AND $wpdb->posts.post_type = %s\n AND $wpdb->postmeta.meta_key = %s \n \",\n 'product', '_wca_amazon_affiliate_asin'\n )\n );\n\n $products_search_count = get_option( 'wca_products_search_count' );\n $data = array();\n $products_count = 0;\n $total_view_count = 0;\n $total_product_direct_redirected = 0;\n $total_product_added_to_cart = 0;\n\n foreach ( $results as $row ) {\n\n $data['asin'][] = $row->meta_value;\n $data['id'][] = $row->ID;\n\n $view = get_post_meta( $row->ID, 'ams_product_views_count', true );\n $total_view_count = $total_view_count + ( int )$view;\n\n $product_direct_redirected = get_post_meta( $row->ID, 'ams_product_direct_redirected', true );\n $total_product_direct_redirected = $total_product_direct_redirected + ( int )$product_direct_redirected;\n\n $product_added_to_cart = get_post_meta( $row->ID, 'ams_product_added_to_cart', true );\n $total_product_added_to_cart = $total_product_added_to_cart + ( int )$product_added_to_cart;\n\n $products_count++;\n }\n\n $data['total_view_count'] = $total_view_count;\n $data['total_product_direct_redirected'] = $total_product_direct_redirected;\n $data['total_product_added_to_cart'] = $total_product_added_to_cart;\n $data['products_count'] = $products_count;\n $data['products_search_count'] = $products_search_count;\n return $data;\n}", "public function action_pre_get_posts( &$query ) {\n\n\t\tif ( $query->is_main_query() && $query->is_home() ) {\n\t\t\t$query->query['post_type'] = 'attachment';\n\t\t\t$query->query_vars['post_type'] = 'attachment';\n\t\t\t$query->query_vars['post_status'] = 'inherit';\n\t\t\t$query->query_vars['post_status'] = 'inherit';\n\t\t}\n\n\t}", "public function add_query_filter_wptc(){\n\t\t// add_filter('query', array($this->hooks_handler_obj, 'wtc_record_query'), 10);\n\t}", "function wprt_custom_search_query( $query ) {\n\tif ( is_admin() || ! $query->is_main_query() )\n\t\treturn;\n\n\tif ( isset( $_GET['post_type'] ) && ( $_GET['post_type'] == 'product' ) )\n\t\treturn;\n\n\tif ( isset( $_GET['post_type'] ) && ( $_GET['post_type'] == 'campaign' ) )\n\t\treturn;\n\n\tif ( $query->is_search() ) {\n \t$in_search_post_types = get_post_types( array( 'exclude_from_search' => false ) );\n\n\t $post_types_to_remove = array( 'product', 'campaign' );\n\n\t foreach ( $post_types_to_remove as $post_type_to_remove ) {\n\t\t\tif ( is_array( $in_search_post_types ) \n\t\t\t\t&& in_array( $post_type_to_remove, $in_search_post_types ) \n\t\t\t) {\n\t\t\t\tunset( $in_search_post_types[ $post_type_to_remove ] );\n\t\t\t\t$query->set( 'post_type', $in_search_post_types );\n\t\t\t}\n\t }\n\t}\n}", "function _enable_sitepress_query_filters( $args ) {\n\t\tif ( isset( $args->_default_query ) ) {\n\t\t\t$args->_default_query['suppress_filters'] = false;\n\t\t}\n\t\treturn $args;\n\t}", "function get_filtered_term_product_counts_query( $query ) {\n\t\tglobal $wpdb;\n\n\t\tif ( empty( $this->results ) ) {\n\t\t\treturn $query;\n\t\t}\n\n\t\t// If we've found results and there are supposed to be zero results, we need to force that here\n\t\tif ( 1 === count( $this->results ) && isset( $this->results[0] ) && 0 === $this->results[0] ) {\n\t\t\t$query['where'] .= \" AND 1 = 0\";\n\t\t} else {\n\t\t\t// Modify the WHERE clause to also include SearchWP-provided results\n\t\t\t$query['where'] .= \" AND {$wpdb->posts}.ID IN (\" . implode( ',', array_map( 'absint', $this->results ) ) . \")\";\n\t\t}\n\n\t\treturn $query;\n\t}", "function handle_custom_query_var($query, $query_vars)\n {\n // Add Category IDS\n if (!empty($query_vars['category_ids'])) {\n $query['tax_query'][] = array(\n 'taxonomy' => 'product_cat',\n 'field' => 'term_id',\n 'terms' => $query_vars['category_ids'],\n 'operator' => 'IN'\n );\n }\n\n // Add Tag IDS\n if (!empty($query_vars['tag_ids'])) {\n $query['tax_query'][] = array(\n 'taxonomy' => 'product_tag',\n 'field' => 'term_id',\n 'terms' => $query_vars['tag_ids'],\n 'operator' => 'IN'\n );\n }\n\n // Custom Order By\n if (!empty($query_vars['order-by'])) {\n // Disable WooCommerce OrderBy\n $query['orderby'] = 'none';\n\n // Add Custom order-by\n $order_by = trim($query_vars['order-by']);\n switch ($order_by) {\n case \"views\":\n $query['orderby'] = 'meta_value_num';\n $query['meta_key'] = 'views';\n break;\n case \"comment_count\":\n $query['orderby'] = 'comment_count';\n break;\n case \"price\":\n $query['orderby'] = 'meta_value_num';\n $query['meta_key'] = '_price';\n break;\n case \"total_sales\":\n $query['orderby'] = 'meta_value_num';\n $query['meta_key'] = 'total_sales';\n break;\n case \"rating\":\n $query['orderby'] = 'meta_value_num';\n $query['meta_key'] = '_wc_average_rating';\n break;\n }\n }\n\n// echo '<pre>';\n// print_r($query);\n// exit;\n return $query;\n }", "function _sf_get_listing_query($args) {\n\t\t\n\t\t//echo '<pre>'; print_r($args); exit;\n\t\t\n\t\t//// IF OUR FEATURED ONES ARE ON TOP AND WE ARE NOT SORTING BY MOST RELEVANT\n\t\tif(ddp('lst_featured') == 'on' && _sf_get_list_sort() == 'relevant') {\n\t\t\t\n\t\t\tglobal $paged;\n\t\t\t$posts_per_page = $args['posts_per_page'];\n\t\t\t\n\t\t\t//// CREATES A NEW ARGUMENT AND CREATES OUR FIRST QUERY FOR FEATURED ONES\n\t\t\t$f_args = $args;\n\t\t\t\n\t\t\t//// CREATES A QUERY WITH THEM ALL FOR PAGINATION PURPOSES\n\t\t\t$query = array(new WP_Query($args));\n\t\t\t\n\t\t\t//// ADDS TO OUR ARGUMENTS\n\t\t\t$f_args['meta_query'][] = array(\n\t\t\t\t\n\t\t\t\t'key' => 'featured',\n\t\t\t\t'value' => 'on',\n\t\t\t\t'compare' => '=',\n\t\t\t\n\t\t\t);\n\t\t\t\n\t\t\t///// CREATES OUR NEW QUERY\n\t\t\t$f_query = new WP_Query($f_args);\n\t\t\t\n\t\t\t///// IF WE HAVE STUFF TO SHOW WE ADD IT TO OUR QUERY\n\t\t\tif($f_query->post_count > 0) { $query[] = $f_query; }\n\t\t\t\n\t\t\t///// NOW WE NEED TO CALCULATE WHETHER WE WILL FILL THE ENTIRE PAGE WITH FEATURED ONES, ELSE WE LOOP NORMAL ONES AS WELL\n\t\t\tif($f_query->post_count < $posts_per_page) {\n\t\t\t\t\n\t\t\t\t//// NOW WE LOOP OUR NORMAL ONES\n\t\t\t\t$args['meta_query'][] = array(\n\t\t\t\t\n\t\t\t\t\t'key' => 'featured',\n\t\t\t\t\t'value' => 'on',\n\t\t\t\t\t'compare' => '!=',\n\t\t\t\t\n\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t//// MAKES SURE PAGED IS 1\n\t\t\t\tif($paged == 0) { $paged = 1; }\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t//// IF WE ARE STILL SHOWING SOME FEATURED PROPERTIES\n\t\t\t\tif($paged == $f_query->max_num_pages) {\n\t\t\t\t\t\n\t\t\t\t\t$args['posts_per_page'] = ($posts_per_page - $f_query->post_count);\n\t\t\t\t\t$args['paged'] = 0;\n\t\t\t\t\t\n\t\t\t\t\t//// CREATES THE NON FEATURED QUERY\n\t\t\t\t\t$query[] = new WP_Query($args);\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\t//// NOW WE HAVE ONLY NORMAL PROPERTIES TO SHOW\n\t\t\t\t\t\n\t\t\t\t\t//// FINDS THE OFFSET OF NORMAL PROPERTIES\n\t\t\t\t\t$f_args['paged'] = 0;\n\t\t\t\t\t$featuredQuery = new WP_Query($f_args);\n\t\t\t\t\t\n\t\t\t\t\t//// FINDS THE LEFT OVERS FOR FEATURED ITEMS\n\t\t\t\t\t$totalFeaturedItems = $featuredQuery->found_posts;\n\t\t\t\t\tfor($i=1; $i<$featuredQuery->max_num_pages; $i++) { $totalFeaturedItems = $totalFeaturedItems - $args['posts_per_page']; }\n\t\t\t\t\t$offset = ($posts_per_page - $totalFeaturedItems);\n\t\t\t\t\t\n\t\t\t\t\t//// FINALLY GETS THE PAGINATION BASED ON THE CURRENT PAGINATION AND THE MAX NUMBER OF PAGES FOR FEATURED ITEMS\n\t\t\t\t\t$newPaged = ($paged - $featuredQuery->max_num_pages);\n\t\t\t\t\tif($newPaged == 1) { $newPaged = 0; }\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t//// CHANGES OUR ARGUMENT QUERY\n\t\t\t\t\t$args['paged'] = $newPaged;\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t//// OFFSET\n\t\t\t\t\t$args['offset'] = $offset;\n\t\t\t\t\tif($featuredQuery->found_posts == 0) { unset($args['offset']); }\n\t\t\t\t\t\n\t\t\t\t\t///// CREATES THIS QUERY\n\t\t\t\t\t$query[] = new WP_Query($args);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\t//// GETS THE QUERY LOOP THEM ALL\n\t\t\t$query = new WP_Query($args);\n\t\t\t\n\t\t}\n\t\t\n\t\t//die('a');\n\t\t\n\t\treturn $query;\n\t\t\n\t}", "protected function query_filters( $query_vars ) {\n\t\tif ( isset( $query_vars['orderby'] ) ) {\n\t\t\tif ( 'price' === $query_vars['orderby'] ) {\n\t\t\t\t$query_vars = array_merge( $query_vars, array(\n\t\t\t\t\t// phpcs:ignore WordPress.VIP.SlowDBQuery.slow_db_query_meta_key\n\t\t\t\t\t'meta_key' => '_price',\n\t\t\t\t\t'orderby' => 'meta_value_num',\n\t\t\t\t) );\n\t\t\t}\n\t\t\tif ( 'sku' === $query_vars['orderby'] ) {\n\t\t\t\t$query_vars = array_merge( $query_vars, array(\n\t\t\t\t\t// phpcs:ignore WordPress.VIP.SlowDBQuery.slow_db_query_meta_key\n\t\t\t\t\t'meta_key' => '_sku',\n\t\t\t\t\t'orderby' => 'meta_value',\n\t\t\t\t) );\n\t\t\t}\n\t\t}\n\n\t\tif ( isset( $query_vars['product_type'] ) ) {\n\t\t\tif ( 'downloadable' === $query_vars['product_type'] ) {\n\t\t\t\t$query_vars['product_type'] = '';\n\t\t\t\t$query_vars['meta_value'] = 'yes'; // phpcs:ignore WordPress.VIP.SlowDBQuery.slow_db_query_meta_value\n\t\t\t\t$query_vars['meta_key'] = '_downloadable'; // phpcs:ignore WordPress.VIP.SlowDBQuery.slow_db_query_meta_key\n\t\t\t} elseif ( 'virtual' === $query_vars['product_type'] ) {\n\t\t\t\t$query_vars['product_type'] = '';\n\t\t\t\t$query_vars['meta_value'] = 'yes'; // phpcs:ignore WordPress.VIP.SlowDBQuery.slow_db_query_meta_value\n\t\t\t\t$query_vars['meta_key'] = '_virtual'; // phpcs:ignore WordPress.VIP.SlowDBQuery.slow_db_query_meta_key\n\t\t\t}\n\t\t}\n\n\t\tif ( isset( $_GET['product_shipping_class'] ) && '0' === $_GET['product_shipping_class'] ) { // WPCS: input var ok.\n\t\t\t$query_vars['tax_query'][] = array(\n\t\t\t\t'taxonomy' => 'product_shipping_class',\n\t\t\t\t'field' => 'id',\n\t\t\t\t'terms' => get_terms( 'product_shipping_class', array( 'fields' => 'ids' ) ),\n\t\t\t\t'operator' => 'NOT IN',\n\t\t\t);\n\t\t}\n\n\t\tif ( ! empty( $_GET['stock_status'] ) ) {\n\t\t\tif ( ! isset( $query_vars['meta_query'] ) ) {\n\t\t\t\t$query_vars['meta_query'] = array(); // phpcs:ignore WordPress.VIP.SlowDBQuery.slow_db_query_meta_query\n\t\t\t}\n\n\t\t\t$query_vars['meta_query'][] = array(\n\t\t\t\t'key' => '_stock_status',\n\t\t\t\t'value' => wc_clean( wp_unslash( $_GET['stock_status'] ) ),\n\t\t\t);\n\t\t}\n\n\t\t// Search using CRUD.\n\t\tif ( ! empty( $query_vars['s'] ) ) {\n\t\t\t$data_store = WC_Data_Store::load( 'product' );\n\t\t\t$ids = $data_store->search_products( wc_clean( wp_unslash( $query_vars['s'] ) ), '', true, true );\n\t\t\t$query_vars['post__in'] = array_merge( $ids, array( 0 ) );\n\t\t\t$query_vars['product_search'] = true;\n\t\t\tunset( $query_vars['s'] );\n\t\t}\n\n\t\treturn $query_vars;\n\t}", "public function apply_filters_in_request() {\n\n\t\t\t$args = jet_smart_filters()->query->get_query_args();\n\n\t\t\tif ( ! $args ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tadd_filter( 'jet-engine/listing/grid/posts-query-args', array( $this, 'add_query_args' ), 10, 2 );\n\n\t\t}", "function apptivo_featured_products($per_page=8,$orderby='date',$order='desc')\n{\n\twp_reset_query();\n\t$args = array(\n\t\t'post_type'\t=> 'item',\n\t\t'post_status' => 'publish',\t \n\t\t'posts_per_page' => $per_page,\n\t\t'orderby' => $orderby,\n\t\t'order' => $order,\n\t 'meta_key' \t=> '_apptivo_sale_price',\n\t\t'meta_query' => array(\n\tarray('key' => '_apptivo_featured','value' => 'yes','compare' => '=','type' => 'CHAR'),\n\tarray('key' => '_apptivo_enabled','value' => 'yes','compare' => '=','type' => 'CHAR')\n\t)\n\t);\n\n\tquery_posts($args);\n}", "function searchfilter($query) {\n \n if ($query->is_search && !is_admin() ) {\n $query->set('post_type',array('post', 'product'));\n }\n \n return $query;\n }", "function product_archive_query_args($productIDs, $selectedSort, $offset = 0) {\n $meta_key = '';\n $orderby = '';\n\n if( isset( $selectedSort )) {\n if( $selectedSort === 'sku' ) {\n $meta_key = '_sku';\n $orderby = 'meta_value';\n $order = 'ASC';\n } elseif ( $selectedSort === 'yukon' ) {\n $meta_key = '_is_yukon';\n $orderby = 'meta_value';\n $order = 'DESC';\n } elseif ( $selectedSort === 'price' ) {\n $meta_key = check_user_price_level();\n $orderby = 'meta_value_num';\n $order = 'ASC';\n }\n }\n\n $args = array(\n 'post_type' => 'product',\n 'post__in' => $productIDs,\n 'posts_per_page' => 25,\n 'offset' => $offset,\n 'meta_key' => $meta_key,\n 'orderby' => $orderby,\n 'order' => $order,\n );\n\n return $args;\n}", "function hijack_query_vars() {\n\t\tglobal $wp_query;\n\n\t\tif ( $this->is_woocommerce_search()\n\t\t\t&& ( function_exists( 'SWP' ) || defined( 'SEARCHWP_VERSION' ) )\n\t\t\t&& ! isset( $_GET['orderby'] )\n\t\t\t&& $this->original_query ) {\n\n\t\t\t$wp_query->set( 'post__in', array() );\n\t\t\t$wp_query->set( 's', '' );\n\n\t\t\tif ( isset( $wp_query->query['s'] ) ) {\n\t\t\t\tunset( $wp_query->query['s'] );\n\t\t\t}\n\t\t}\n\t}", "public function modify_search_filter( $query ) {\n\n\t\t\tif ( $query->is_main_query() && $query->is_search() && cyprus_get_settings( 'search_results_per_page' ) ) {\n\t\t\t\t$query->set( 'posts_per_page', cyprus_get_settings( 'search_results_per_page' ) );\n\t\t\t}\n\n\t\t\tif ( is_search() && $query->is_search ) {\n\n\t\t\t\tif ( isset( $_GET ) && ( 2 < count( $_GET ) || ( 2 == count( $_GET ) && ! isset( $_GET['lang'] ) ) ) ) {\n\t\t\t\t\treturn $query;\n\t\t\t\t}\n\n\t\t\t\t$search_content = cyprus_get_settings( 'search_content' );\n\n\t\t\t\tif ( 'all-no-pages' === $search_content ) {\n\t\t\t\t\t$query->set( 'post_type', array( 'post', 'product', 'tribe_events' ) );\n\t\t\t\t} elseif ( 'posts' === $search_content ) {\n\t\t\t\t\t$query->set( 'post_type', 'post' );\n\t\t\t\t} elseif ( 'pages' === $search_content ) {\n\t\t\t\t\t$query->set( 'post_type', 'page' );\n\t\t\t\t} elseif ( 'woocommerce' == $search_content ) {\n\t\t\t\t\t$query->set( 'post_type', 'product' );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $query;\n\t\t}", "public function preProcess()\r\n\t{\t\t\r\n\t\tif(!Module::isInstalled('agilesearchbyzipcode'))return parent::preProcess();\r\n\t\tif(Tools::getValue('is_zipcode_search') != 1)return parent::preProcess();\r\n\r\n\t\t$this->productSort();\r\n\t\t$this->n = abs((int)(Tools::getValue('n', Configuration::get('PS_PRODUCTS_PER_PAGE'))));\r\n\t\t$this->p = abs((int)(Tools::getValue('p', 1)));\r\n \r\n $centerLat = Tools::getValue('asbz_centerLat');\r\n $centerLng = Tools::getValue('asbz_centerLng');\r\n $search_scope = Configuration::get('ASBZ_SEARCH_SCOPE');\r\n \r\n include_once(dirname(__FILE__) . \"/../../modules/agilesearchbyzipcode/ProdLocation.php\");\r\n $products = ProdLocation::searchProducts(self::$cookie->id_lang,$centerLat,$centerLng,$search_scope,Tools::getValue('orderby'),Tools::getValue('orderway'));\r\n\t\t$nbProducts = count($products);\r\n\t\t$this->pagination($nbProducts);\r\n\t\tself::$smarty->assign(array(\r\n\t\t'search_products' => $products,\r\n\t\t'nbProducts' => $nbProducts,\r\n\t\t'search_tag' => '',\r\n\t\t'search_query' => Tools::getValue('asbz_zipcode'),\r\n\t\t'ref' =>'',\r\n\t\t'search_zipcode' => Tools::getValue('asbz_zipcode'),\r\n\t\t'homeSize' => Image::getSize('home')));\r\n\t\tself::$smarty->assign('add_prod_display', Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'));\r\n\t}", "function tmpl_get_related_posts_query(){ \r\n\t\r\n\tglobal $post,$claimpost,$sitepress;\r\n\t$claimpost = $post;\t\r\n\t$tmpdata = get_option('templatic_settings');\r\n\tif(@$tmpdata['related_post_numbers']==0 && $tmpdata['related_post_numbers']!=''){\r\n\t\treturn '';\t\r\n\t}\r\n\t$related_post = @$tmpdata['related_post'];\r\n\t$related_post_numbers = ( @$tmpdata['related_post_numbers'] ) ? @$tmpdata['related_post_numbers'] : 3;\r\n\t$taxonomies = get_object_taxonomies( (object) array( 'post_type' => $post->post_type,'public' => true, '_builtin' => true ));\t\r\n\t/* get location wise post type */\r\n\t$location_post_type = ',' . implode(',', get_option('location_post_type'));\r\n\tremove_all_actions('posts_where');\r\n\t\r\n\tif($post->ID !=''){\r\n\tif($related_post=='tags')\r\n\t{\t\t\r\n\t\t $terms = wp_get_post_terms($post->ID, $taxonomies[1], array(\"fields\" => \"ids\"));\t\r\n\t\t $postQuery = array(\r\n\t\t\t'post_type' => $post->post_type,\r\n\t\t\t'post_status' => 'publish',\r\n\t\t\t'tax_query' => array( \r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t'taxonomy' =>$taxonomies[1],\r\n\t\t\t\t\t\t\t'field' => 'ID',\r\n\t\t\t\t\t\t\t'terms' => $terms,\r\n\t\t\t\t\t\t\t'operator' => 'IN'\r\n\t\t\t\t\t\t) \r\n\t\t\t\t\t ),\r\n\t\t\t'posts_per_page'=> apply_filters('tmpl_related_post_per_page',$related_post_numbers),\r\n\t\t\t'orderby' => 'rand',\r\n\t\t\t'post__not_in' => array($post->ID)\r\n\t\t);\r\n\t}\r\n\telse\r\n\t{\t\t\r\n\t \r\n $terms = wp_get_post_terms($post->ID, $taxonomies[0], array(\"fields\" => \"ids\"));\t\r\n\t\t $postQuery = apply_filters('tmpl_related_post_custom', array(\r\n\t\t\t'post_type' => $post->post_type,\r\n\t\t\t'post_status' => 'publish',\r\n\t\t\t'tax_query' => array( \r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t'taxonomy' =>$taxonomies[0],\r\n\t\t\t\t\t\t\t'field' => 'ID',\r\n\t\t\t\t\t\t\t'terms' => $terms,\r\n\t\t\t\t\t\t\t'operator' => 'IN'\r\n\t\t\t\t\t\t) \r\n\t\t\t\t\t ),\r\n\t\t\t'posts_per_page'=> apply_filters('tmpl_related_post_per_page',$related_post_numbers),\t\t\t\r\n\t\t\t'ignore_sticky_posts'=>1,\r\n\t\t\t'orderby' => 'rand',\r\n\t\t\t'post__not_in' => array($post->ID),\r\n \r\n\t\t));\r\n}\r\n\t}\r\n\tif(is_plugin_active('sitepress-multilingual-cms/sitepress.php')){\r\n\t\tremove_action( 'parse_query', array( $sitepress, 'parse_query' ) );\r\n\t}\r\n\t\r\n\tif(is_plugin_active('Tevolution-LocationManager/location-manager.php') && strpos($location_post_type,','.$post->post_type) !== false ){\r\n\t\tadd_filter('posts_where', 'location_related_posts_where_filter');\r\n\t}\r\n\t\r\n\t$my_query = new wp_query($postQuery);\r\n\t\r\n\t\r\n\tif(is_plugin_active('Tevolution-LocationManager/location-manager.php')){\r\n\t\tremove_filter('posts_where', 'location_related_posts_where_filter');\r\n\t}\r\n\t\r\n\treturn $my_query;\r\n }", "protected function prepare_objects_query( $request ) {\n\t\t$args = parent::prepare_objects_query( $request );\n\n\t\t// Set post_status.\n\t\t$args['post_status'] = $request['status'];\n\n\t\t// Set custom args to handle later during clauses.\n\t\t$custom_keys = array(\n\t\t\t'sku',\n\t\t\t'min_price',\n\t\t\t'max_price',\n\t\t\t'stock_status',\n\t\t\t'low_in_stock',\n\t\t);\n\t\tforeach ( $custom_keys as $key ) {\n\t\t\tif ( ! empty( $request[ $key ] ) ) {\n\t\t\t\t$args[ $key ] = $request[ $key ];\n\t\t\t}\n\t\t}\n\n\t\t// Taxonomy query to filter products by type, category,\n\t\t// tag, shipping class, and attribute.\n\t\t$tax_query = array();\n\n\t\t// Map between taxonomy name and arg's key.\n\t\t$taxonomies = array(\n\t\t\t'product_cat' => 'category',\n\t\t\t'product_tag' => 'tag',\n\t\t\t'product_shipping_class' => 'shipping_class',\n\t\t);\n\n\t\t// Set tax_query for each passed arg.\n\t\tforeach ( $taxonomies as $taxonomy => $key ) {\n\t\t\tif ( ! empty( $request[ $key ] ) ) {\n\t\t\t\t$tax_query[] = array(\n\t\t\t\t\t'taxonomy' => $taxonomy,\n\t\t\t\t\t'field' => 'term_id',\n\t\t\t\t\t'terms' => $request[ $key ],\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\t// Filter product type by slug.\n\t\tif ( ! empty( $request['type'] ) ) {\n\t\t\t$tax_query[] = array(\n\t\t\t\t'taxonomy' => 'product_type',\n\t\t\t\t'field' => 'slug',\n\t\t\t\t'terms' => $request['type'],\n\t\t\t);\n\t\t}\n\n\t\t// Filter by attribute and term.\n\t\tif ( ! empty( $request['attribute'] ) && ! empty( $request['attribute_term'] ) ) {\n\t\t\tif ( in_array( $request['attribute'], wc_get_attribute_taxonomy_names(), true ) ) {\n\t\t\t\t$tax_query[] = array(\n\t\t\t\t\t'taxonomy' => $request['attribute'],\n\t\t\t\t\t'field' => 'term_id',\n\t\t\t\t\t'terms' => $request['attribute_term'],\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\t// Build tax_query if taxonomies are set.\n\t\tif ( ! empty( $tax_query ) ) {\n\t\t\tif ( ! empty( $args['tax_query'] ) ) {\n\t\t\t\t$args['tax_query'] = array_merge( $tax_query, $args['tax_query'] ); // WPCS: slow query ok.\n\t\t\t} else {\n\t\t\t\t$args['tax_query'] = $tax_query; // WPCS: slow query ok.\n\t\t\t}\n\t\t}\n\n\t\t// Filter featured.\n\t\tif ( is_bool( $request['featured'] ) ) {\n\t\t\t$args['tax_query'][] = array(\n\t\t\t\t'taxonomy' => 'product_visibility',\n\t\t\t\t'field' => 'name',\n\t\t\t\t'terms' => 'featured',\n\t\t\t\t'operator' => true === $request['featured'] ? 'IN' : 'NOT IN',\n\t\t\t);\n\t\t}\n\n\t\t// Filter by tax class.\n\t\tif ( ! empty( $request['tax_class'] ) ) {\n\t\t\t$args['meta_query'] = $this->add_meta_query( // WPCS: slow query ok.\n\t\t\t\t$args,\n\t\t\t\tarray(\n\t\t\t\t\t'key' => '_tax_class',\n\t\t\t\t\t'value' => 'standard' !== $request['tax_class'] ? $request['tax_class'] : '',\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\n\t\t// Filter by on sale products.\n\t\tif ( is_bool( $request['on_sale'] ) ) {\n\t\t\t$on_sale_key = $request['on_sale'] ? 'post__in' : 'post__not_in';\n\t\t\t$on_sale_ids = wc_get_product_ids_on_sale();\n\n\t\t\t// Use 0 when there's no on sale products to avoid return all products.\n\t\t\t$on_sale_ids = empty( $on_sale_ids ) ? array( 0 ) : $on_sale_ids;\n\n\t\t\t$args[ $on_sale_key ] += $on_sale_ids;\n\t\t}\n\n\t\t// Force the post_type argument, since it's not a user input variable.\n\t\tif ( ! empty( $request['sku'] ) ) {\n\t\t\t$args['post_type'] = array( 'product', 'product_variation' );\n\t\t} else {\n\t\t\t$args['post_type'] = $this->post_type;\n\t\t}\n\n\t\t$orderby = $request->get_param( 'orderby' );\n\t\t$order = $request->get_param( 'order' );\n\n\t\t$ordering_args = WC()->query->get_catalog_ordering_args( $orderby, $order );\n\t\t$args['orderby'] = $ordering_args['orderby'];\n\t\t$args['order'] = $ordering_args['order'];\n\t\tif ( $ordering_args['meta_key'] ) {\n\t\t\t$args['meta_key'] = $ordering_args['meta_key']; // WPCS: slow query ok.\n\t\t}\n\n\t\treturn $args;\n\t}", "function ep_bp_setup() {\n\tadd_action( 'pre_get_posts', 'ep_bp_translate_args', 20 ); // after elasticpress ep_improve_default_search()\n\n\t// $wp_query->is_search is not set until parse_query\n\tadd_action( 'parse_query', function() {\n\t\tif ( is_search() ) {\n\t\t\tadd_action( 'wp_enqueue_scripts', 'ep_bp_enqueue_style' );\n\t\t\tadd_action( 'wp_enqueue_scripts', 'ep_bp_enqueue_scripts' );\n\n\t\t\t// these actions are removed at the end of ep_bp_get_sidebar()\n\t\t\tadd_action( 'is_active_sidebar', '__return_true' );\n\t\t\tadd_action( 'dynamic_sidebar_before', 'ep_bp_get_sidebar' );\n\n\t\t\tadd_filter( 'the_permalink', 'ep_bp_filter_the_permalink' );\n\n\t\t\t// temporarily filter titles to include post type in results\n\t\t\tadd_action( 'loop_start', function() {\n\t\t\t\tadd_filter( 'the_title', 'ep_bp_filter_result_titles', 1, 20 );\n\t\t\t\tadd_filter( 'author_link', 'ep_bp_filter_result_author_link' );\n\t\t\t} );\n\t\t\tadd_action( 'loop_end', function() {\n\t\t\t\tremove_filter( 'the_title', 'ep_bp_filter_result_titles', 1, 20 );\n\t\t\t\tremove_filter( 'author_link', 'ep_bp_filter_result_author_link' );\n\t\t\t} );\n\t\t}\n\t} );\n\n\t// these don't require conditions since they only trigger during ep functions in the first place\n\tadd_filter( 'ep_formatted_args', 'ep_bp_filter_ep_formatted_args' );\n\tadd_filter( 'ep_indexable_post_types', 'ep_bp_post_types' );\n\tadd_filter( 'ep_index_name', 'ep_bp_filter_ep_index_name', 10, 2 );\n\tadd_filter( 'ep_default_index_number_of_shards', 'ep_bp_filter_ep_default_index_number_of_shards' );\n\tadd_filter( 'ep_sync_taxonomies', 'ep_bp_whitelist_taxonomies' );\n\tadd_filter( 'ep_search_request_path', 'ep_bp_filter_ep_search_request_path' );\n\tadd_filter( 'ep_search_results_array', 'ep_bp_filter_ep_search_results_array' );\n\tadd_filter( 'ep_config_mapping', 'ep_bp_filter_ep_config_mapping' );\n\tadd_filter( 'ep_elasticpress_enabled', 'ep_bp_filter_ep_elasticpress_enabled', 20, 2 ); // after ep_integrate_search_queries()\n\n\tadd_action( 'ep_wp_cli_pre_index', function() {\n\t\t// replace the bbpress filter with a filter when ep syncs\n\t\t// bbpress is overzealous and excludes more posts than it should\n\t\tremove_action( 'pre_get_posts', 'bbp_pre_get_posts_normalize_forum_visibility', 4 );\n\t\tadd_filter( 'ep_post_sync_kill', 'ep_bp_filter_ep_post_sync_kill', 10, 3 );\n\n\t\t// prevent infinite loops as bbpress waffles with reply titles\n\t\tadd_filter( 'bbp_get_topic_id', function( $bbp_topic_id, $topic_id ) {\n\t\t\tif ( $bbp_topic_id === 0 && $topic_id === 0 ) {\n\t\t\t\tthe_post();\n\t\t\t}\n\n\t\t\treturn $bbp_topic_id;\n\t\t}, 10, 2 );\n\t} );\n}", "function custom_post_order_query( $wp_query ){\n\n\t//exclude admin pages, we wat to display posts as default since admin can check the post order from the submanu page\n\t// check the settings to see if the user wants custom post display or WordPress default\n\tif( ! is_admin() && get_option( 'dd_custom_post_order_on_off', 'on' ) === 'on' ){\n\n\t\t\t// target the main query and archive pages\n\t\t\tif( $wp_query->is_main_query() || $wp_query->is_post_type_archive()){\n\n\t\t\t\tif( $_GET[ 'orderby' ] ){\n\t\t\t\t\t$wp_query->set( 'orderby', $_GET[ 'orderby' ] );\n\t\t\t\t\t$wp_query->set( 'order', $_GET[ 'order' ] );\n\n\t\t\t\t} else {\n\n\t\t\t\t\t$wp_query->set( 'meta_key', 'post_order' );\n\t\t\t\t\t$wp_query->set( 'orderby', 'meta_value_num' );\n\t\t\t\t\t$wp_query->set( 'order', 'ASC' );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n}", "function jb_dripdeals_loadmore_ajax_handler()\n{\n $args = json_decode(stripslashes($_POST['query']), true);\n $args['paged'] = $_POST['page'] + 1; // we need next page to be loaded\n $args['post_status'] = 'publish';\n\n\n //run the query\n $prop = new WP_Query($args);\n\n if ($prop->have_posts()):\n // run the loop\n \n \n while($prop->have_posts()) {\n $prop->the_post();\n $pid = get_the_ID();\n $product = wc_get_product($pid);\n ?>\n <div class=\"col-xl-4 col-lg-4 col-md-4 col-sm-6 margin product\">\n <div class=\"brand_box\">\n <a href=\"<?php the_permalink() ?>\">\n <img src=\"<?php the_post_thumbnail_url() ?>\" alt=\"<?php the_title()?>\" />\n <h3>₦<strong class=\"red\"><?php echo number_format($product->get_sale_price(), 2, '.', ','); ?></strong></h3>\n <span> <a href=\"<?php the_permalink() ?>\" ><?php the_title() ?></a></span>\n <i><img src=\"<?php echo get_theme_file_uri('images/star.png')?>\"/></i>\n <i><img src=\"<?php echo get_theme_file_uri('images/star.png')?>\"/></i>\n <i><img src=\"<?php echo get_theme_file_uri('images/star.png')?>\"/></i>\n <i><img src=\"<?php echo get_theme_file_uri('images/star.png')?>\"/></i>\n </a>\n </div>\n </div>\n <?php \n }\n endif;\n die; // here we exit the script and even no wp_reset_query() required!\n}", "function catch_search( &$query ) {\n\tif ( !is_admin() && $query->is_main_query() ) :\n\t\tif ( isset( $_GET['buscar'] ) ) :\n\t\t\t$query->set( 'posts_per_page', 4 );\n\t\t\t$query->set( 'es_busqueda_vivienda', 1 );\n\t\tendif;\n\tendif;\n\t//remove_action( 'pre_get_posts', 'custom_post_author_archive' ); // run once!\n}", "public function get_items_query_clauses( $args, $wp_query ) {\n\t\tglobal $wpdb;\n\n\t\tif ( $wp_query->get( 'search' ) ) {\n\t\t\t$search = \"'%\" . $wpdb->esc_like( $wp_query->get( 'search' ) ) . \"%'\";\n\t\t\t$args['join'] = $this->append_product_sorting_table_join( $args['join'] );\n\t\t\t$args['where'] .= \" AND ({$wpdb->posts}.post_title LIKE {$search}\";\n\t\t\t$args['where'] .= wc_product_sku_enabled() ? ' OR wc_product_meta_lookup.sku LIKE ' . $search . ')' : ')';\n\t\t}\n\n\t\tif ( $wp_query->get( 'sku' ) ) {\n\t\t\t$skus = explode( ',', $wp_query->get( 'sku' ) );\n\t\t\t// Include the current string as a SKU too.\n\t\t\tif ( 1 < count( $skus ) ) {\n\t\t\t\t$skus[] = $wp_query->get( 'sku' );\n\t\t\t}\n\t\t\t$args['join'] = $this->append_product_sorting_table_join( $args['join'] );\n\t\t\t$args['where'] .= ' AND wc_product_meta_lookup.sku IN (\"' . implode( '\",\"', array_map( 'esc_sql', $skus ) ) . '\")';\n\t\t}\n\n\t\tif ( $wp_query->get( 'min_price' ) ) {\n\t\t\t$args['join'] = $this->append_product_sorting_table_join( $args['join'] );\n\t\t\t$args['where'] .= $wpdb->prepare( ' AND wc_product_meta_lookup.min_price >= %f ', floatval( $wp_query->get( 'min_price' ) ) );\n\t\t}\n\n\t\tif ( $wp_query->get( 'max_price' ) ) {\n\t\t\t$args['join'] = $this->append_product_sorting_table_join( $args['join'] );\n\t\t\t$args['where'] .= $wpdb->prepare( ' AND wc_product_meta_lookup.max_price <= %f ', floatval( $wp_query->get( 'max_price' ) ) );\n\t\t}\n\n\t\tif ( $wp_query->get( 'stock_status' ) ) {\n\t\t\t$args['join'] = $this->append_product_sorting_table_join( $args['join'] );\n\t\t\t$args['where'] .= $wpdb->prepare( ' AND wc_product_meta_lookup.stock_status = %s ', $wp_query->get( 'stock_status' ) );\n\t\t}\n\n\t\tif ( $wp_query->get( 'low_in_stock' ) ) {\n\t\t\t$low_stock = absint( max( get_option( 'woocommerce_notify_low_stock_amount' ), 1 ) );\n\t\t\t$args['join'] = $this->append_product_sorting_table_join( $args['join'] );\n\t\t\t$args['where'] .= $wpdb->prepare( ' AND wc_product_meta_lookup.stock_quantity <= %d', $low_stock );\n\t\t}\n\n\t\treturn $args;\n\t}", "function my_post_queries( $query ) {\n\t if (!is_admin() && $query->is_main_query()){\n\n\t // alter the query for the home and category pages \n\n\t if(is_home()){\n\t $query->set('posts_per_page', 4);\n\t }\n\n\t if(is_category() || is_archive() || is_tag() || is_search()){\n\t $query->set('posts_per_page', 3);\n\t }\n\n\t }\n\t}", "function dacig_register_filters( $output ) {\n\tadd_filter( 'pre_get_posts', 'dacig_allow_filters' );\n\tadd_filter( 'the_posts', 'dacig_modify_the_posts' );\n\n\treturn $output;\n}", "function cs_woocommerce_result_count() {\n\tglobal $woocommerce, $wp_query;\n\t?>\n <div class=\"filter-sec\">\n\t\t<div class=\"select-sec\">\n <?php\n\tif ( ! woocommerce_products_will_display() )\n\treturn;\n\t?>\n <span>\n <?php\n $paged = max( 1, $wp_query->get( 'paged' ) );\n $per_page = $wp_query->get( 'posts_per_page' );\n $total = $wp_query->found_posts;\n $first = ( $per_page * $paged ) - $per_page + 1;\n $last = min( $total, $wp_query->get( 'posts_per_page' ) * $paged );\n \n if ( 1 == $total ) {\n _e( 'Showing the single result', 'woocommerce' );\n } elseif ( $total <= $per_page || -1 == $per_page ) {\n printf( __( 'Showing all %d results', 'woocommerce' ), $total );\n } else {\n printf( _x( 'Showing %1$d–%2$d of %3$d results', '%1$d = first, %2$d = last, %3$d = total', 'woocommerce' ), $first, $last, $total );\n }\n ?>\n </span>\n <?php woocommerce_get_template( 'loop/orderby.php' ); ?>\n </div>\n </div>\n\t<?php\n\t\n}", "function thrive_dashboard_get_products()\n{\n $products = array();\n $products = apply_filters('thrive_dashboard_installed_products', $products);\n\n return $products;\n}", "function woocommerce_product_query_meta_query( $meta_query ) {\n\n\t\t$proceed = apply_filters( 'searchwp_woocommerce_consider_visibility', true );\n\n\t\tif ( empty( $proceed ) ) {\n\t\t\treturn $meta_query;\n\t\t}\n\n\t\tif ( isset( $meta_query['visibility'] ) && $this->is_woocommerce_search() ) {\n\t\t\tunset( $meta_query['visibility'] );\n\t\t}\n\n\t\treturn $meta_query;\n\t}", "private function setup_filters() {\n\n\t\tadd_filter( 'pre_option_posts_per_page', array( $this, 'filter_posts_per_page' ) );\n\n\t\tadd_filter( 'plugins_url', array( $this, 'filter_plugins_url' ) );\n\n\t}", "function wcfmu_products_filter_menu() {\r\n\tglobal $WCFM, $WCFMu, $wp_query;\r\n\t\r\n\t$wcfmu_products_menus = apply_filters( 'wcfmu_products_menus', array( 'all' => __( 'All', 'wc-frontend-manager-ultimate'), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'publish' => __( 'Published', 'wc-frontend-manager-ultimate'),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'draft' => __( 'Draft', 'wc-frontend-manager-ultimate'),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'pending' => __( 'Pending', 'wc-frontend-manager-ultimate')\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) );\r\n\t\r\n\t$product_status = ! empty( $_GET['product_status'] ) ? sanitize_text_field( $_GET['product_status'] ) : 'all';\r\n\t$count_products = wp_count_posts( 'product' );\r\n\t$count_products->all = $count_products->publish + $count_products->pending + $count_products->draft;\r\n\t?>\r\n\t<ul class=\"wcfm_products_menus\">\r\n\t\t<?php\r\n\t\t$is_first = true;\r\n\t\tforeach( $wcfmu_products_menus as $wcfmu_products_menu_key => $wcfmu_products_menu) {\r\n\t\t\t?>\r\n\t\t\t<li class=\"wcfm_products_menu_item\">\r\n\t\t\t\t<?php\r\n\t\t\t\tif($is_first) $is_first = false;\r\n\t\t\t\telse echo \" | \";\r\n\t\t\t\t?>\r\n\t\t\t\t<a class=\"<?php echo ( $wcfmu_products_menu_key == $product_status ) ? 'active' : ''; ?>\" href=\"<?php echo get_wcfm_products_url( $wcfmu_products_menu_key ); ?>\"><?php echo $wcfmu_products_menu . ' ('. $count_products->$wcfmu_products_menu_key .')'; ?></a>\r\n\t\t\t</li>\r\n\t\t\t<?php\r\n\t\t}\r\n\t\t?>\r\n\t</ul>\r\n\t\r\n\t<div class=\"wcfm_products_filter_wrap wcfm_filters_wrap\">\r\n\t<?php\t\r\n\t// Category Filtering\r\n\t$product_categories = get_terms( 'product_cat', 'orderby=name&hide_empty=0&parent=0' );\r\n\t$categories = array();\r\n\t\r\n\techo '<select id=\"dropdown_product_cat\" name=\"dropdown_product_cat\" class=\"dropdown_product_cat\" style=\"width: 150px;\">';\r\n\t echo '<option value=\"\" selected=\"selected\">' . __( 'Select a category', 'wc-frontend-manager-ultimate' ) . '</option>';\r\n\t\tif ( $product_categories ) {\r\n\t\t\t$WCFM->library->generateTaxonomyHTML( 'product_cat', $product_categories, $categories );\r\n\t\t}\r\n\techo '</select>';\r\n\t\r\n\t// Type filtering\r\n\t$product_types = apply_filters( 'wcfm_product_types', array('simple' => __('Simple Product', 'wc-frontend-manager'), 'variable' => __('Variable Product', 'wc-frontend-manager'), 'grouped' => __('Grouped Product', 'wc-frontend-manager'), 'external' => __('External/Affiliate Product', 'wc-frontend-manager') ) );\r\n\t$output = '<select name=\"product_type\" id=\"dropdown_product_type\" style=\"width: 160px;\">';\r\n\t$output .= '<option value=\"\">' . __( 'Show all product types', 'wc-frontend-manager-ultimate' ) . '</option>';\r\n\t\r\n\tforeach ( $product_types as $product_type_name => $product_type_label ) {\r\n\t\t$output .= '<option value=\"' . $product_type_name . '\">' . $product_type_label . '</option>';\r\n\t\r\n\t\tif ( 'simple' == $product_type_name ) {\r\n\t\t\t\r\n\t\t\t$product_type_options = apply_filters( 'wcfm_non_allowd_product_type_options', array( 'virtual' => 'virtual', 'downloadable' => 'downloadable' ) ); \r\n\t\t\t\r\n\t\t\tif( !empty( $product_type_options['downloadable'] ) ) {\r\n\t\t\t\t$output .= '<option value=\"downloadable\" > &rarr; ' . __( 'Downloadable', 'wc-frontend-manager-ultimate' ) . '</option>';\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif( !empty( $product_type_options['virtual'] ) ) {\r\n\t\t\t\t$output .= '<option value=\"virtual\" > &rarr; ' . __( 'Virtual', 'wc-frontend-manager-ultimate' ) . '</option>';\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t$output .= '</select>';\r\n\t\r\n\techo apply_filters( 'woocommerce_product_filters', $output );\r\n\t\r\n\t\r\n\t$is_marketplace = wcfm_is_marketplace();\r\n\t$user_arr = array( '' => __('All Vendors', 'wc-frontend-manager' ) );\r\n\tif( $is_marketplace ) {\r\n\t\tif( !wcfm_is_vendor() ) {\r\n\t\t\tif( $is_marketplace == 'wcpvendors' ) {\r\n\t\t\t\t$vendors = WC_Product_Vendors_Utils::get_vendors();\r\n\t\t\t\tif( !empty( $vendors ) ) {\r\n\t\t\t\t\tforeach ( $vendors as $vendor ) {\r\n\t\t\t\t\t\t$user_arr[$vendor->term_id] = esc_html( $vendor->name );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$args = array(\r\n\t\t\t\t\t'role__in' => array( 'dc_vendor', 'vendor' ),\r\n\t\t\t\t\t'orderby' => 'login',\r\n\t\t\t\t\t'order' => 'ASC',\r\n\t\t\t\t\t'count_total' => false,\r\n\t\t\t\t\t'fields' => array( 'ID', 'display_name' )\r\n\t\t\t\t ); \r\n\t\t\t\t$all_users = get_users( $args );\r\n\t\t\t\tif( !empty( $all_users ) ) {\r\n\t\t\t\t\tforeach( $all_users as $all_user ) {\r\n\t\t\t\t\t\t$user_arr[$all_user->ID] = $all_user->display_name;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t$WCFM->wcfm_fields->wcfm_generate_form_field( array(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"dropdown_vendor\" => array( 'type' => 'select', 'options' => $user_arr, 'attributes' => array( 'style' => 'width: 150px;' ) )\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ) );\r\n\t\t}\r\n\t}\r\n\t\r\n\techo '</div>';\r\n}", "function childtheme_override_search_loop() {\r\n\tglobal $post;\r\n\tglobal $wp_query;\r\n\t$post_type = false;\r\n\r\n\t$rendered_terms = array();\r\n\t$search = urldecode( $_GET['s'] );\r\n\t$search = sanitize_text_field( $search );\r\n\r\n\tif ( ! empty( $_GET['filter'] ) ) {\r\n\t\t$post_type = urldecode( $_GET['filter'] );\r\n\t\t$post_type = sanitize_key( $post_type );\r\n\t}\r\n\r\n\tif ( $post_type ) {\r\n\t\t$post_type_object = get_post_type_object($post_type);\r\n\t\t$categories = array ( $post_type => $post_type_object->labels->name );\r\n\t} else {\r\n\t\t$categories = array(\r\n\t\t\t'destinations' => __('Destination Guides','indagare'), // destination taxonomy\r\n\t\t\t'hotel' => __('Hotels','indagare'),\r\n\t\t\t'restaurant' => __('Restaurants','indagare'),\r\n\t\t\t'shop' => __('Shops','indagare'),\r\n\t\t\t'activity' => __('Activities','indagare'),\r\n\t\t\t'article' => __('Articles','indagare'),\r\n\t\t\t'itinerary' => __('Itineraries','indagare'),\r\n\t\t\t'library' => __('Libraries','indagare'),\r\n\t\t\t'offer' => __('Offers','indagare'),\r\n\t\t\t'insidertrip' => __('Insider Trips','indagare'),\r\n\t\t);\r\n\t}\r\n\r\n\t$searchresults = array();\r\n\t$loaded_pid = array();\r\n\r\n\t$homeid = get_option('page_on_front');\r\n\r\n\twhile ( have_posts() ) {\r\n\t\tthe_post();\r\n\t\t// remove home from results\r\n\t\t$postid = get_the_ID();\r\n\t\tif ( $homeid !== $postid ) {\r\n\t\t\t$termid = false;\r\n\t\t\tif($postid == -1) {\r\n\t\t\t\t$postid = 'term:'.$post->term_id;\r\n\t\t\t\t$termid = true;\r\n\t\t\t}\r\n\t\t\tif ( !in_array( $postid, $loaded_pid ) ) {\r\n\t\t\t\t$loaded_pid[] = $postid;\r\n\t\t\t\tif($termid) {\r\n\t\t\t\t\t$searchresults[$post->post_type][] = $post;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$sort = $post->post_title . ' '. $post->ID;\r\n\t\t\t\t\tif($post->post_type == 'article') {\r\n\t\t\t\t\t\t$sort = $post->post_date . ' '. $post->ID;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$searchresults[$post->post_type][$sort] = $post;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tforeach ($categories as $group => $t) {\r\n\r\n\t\t/* We'll also perform a check to see if there are results for a post type. If there isn't, we'll omit it from the results */\r\n\r\n\t\tif (!array_key_exists($group, $searchresults))\r\n\t\t\tcontinue;\r\n\r\n\t\tif ( $group !== 'destinations' ) {\r\n\t\t\techo '<section class=\"related-articles contain results\">'.\"\\n\";\r\n\t\t}\r\n\r\n\t\techo '<div class=\"header divider\">';\r\n\r\n\t\tif ( $group == 'destinations' ) {\r\n\t\t\techo '<h2>'.__('Destination Guides','indagare').'</h2>'.\"\\n\";\r\n\t\t} else {\r\n\t\t\techo '<h2>'.$t.'</h2>'.\"\\n\";\r\n\t\t}\r\n\r\n\t\tif ( $group !== 'destinations' ) {\r\n\t\t\tif ( empty( $_GET['filter'] ) ) {\r\n\t\t\t\tif ( count( $searchresults[$group] ) > INDG_SEARCHPAGE_SECTIONCOUNT ) {\r\n\t\t\t\t\techo '<p class=\"view-more\"><a href=\"/?s='.urlencode( $search ).'&filter='.$group.'\">'.__('View All Results','indagare').'</a></p>'.\"\\n\";\r\n\t\t\t\t\tif($group == 'article') {\r\n\t\t\t\t\t\tksort($searchresults[$group]);\r\n\t\t\t\t\t\t$newarray = array_slice($searchresults[$group],-8,8,true);\r\n\t\t\t\t\t\trsort($newarray);\r\n\t\t\t\t\t\t$searchresults[$group] = $newarray;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$keys = array_rand($searchresults[$group],INDG_SEARCHPAGE_SECTIONCOUNT);\r\n\t\t\t\t\t\t$newarray = array();\r\n\t\t\t\t\t\tforeach($keys as $k) {\r\n\t\t\t\t\t\t\t$newarray[$k] = $searchresults[$group][$k];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$searchresults[$group] = $newarray;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if ($group == 'article') {\r\n\t\t\t\tksort($searchresults[$group]);\r\n\t\t\t\trsort($searchresults[$group]);\r\n\t\t\t}\r\n\t\t\tksort($searchresults[$group]);\r\n\t\t}\r\n\r\n\t\techo '</div>'.\"\\n\";\r\n\r\n\t\tif ( $group == 'destinations' ) {\r\n\t\t\techo '<section class=\"all-destinations contain\" location=\"AAAA\">'.\"\\n\";\r\n\t\t}\r\n\r\n\t\t/* Ok, we now need to spit out any post data we want to display in our results */\r\n\r\n\t\t$destlist = array();\r\n\t\t$destcount = 0;\r\n\t\t$destskip = 0;\r\n\r\n\t\tforeach ($searchresults[$group] as $post) {\r\n\t\t\tif ( $group == 'destinations' && empty( $_GET['filter'] ) ) {\r\n\r\n\t\t\t\t$destination = get_term_by( 'name', $post->post_title, 'destinations' );\r\n\t\t\t\t$destinationid = $destination->term_id;\r\n\t\t\t\t$destinationstree = destinationstaxtree($destination->term_id);\r\n\t\t\t\t$dest = $destinationstree['dest'];\r\n\t\t\t\t$reg = $destinationstree['reg'];\r\n\t\t\t\t$top = $destinationstree['top'];\r\n\t\t\t\t$depth = $destinationstree['depth'];\r\n\r\n\t\t\t\tif ( $depth!==3 && $destcount > 0 && !in_array($destinationid,$destlist) ) {\r\n\t\t\t\t\t$destlist[] = $destinationid;\r\n\t\t\t\t\t$destskip = 0;\r\n\t\t\t\t} else if ( $depth!==3 && $destcount == 0 ) {\r\n\t\t\t\t\t$destlist[] = $destinationid;\r\n\t\t\t\t\t$destskip = 0;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$destskip = 1;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$destcount++;\r\n\r\n//\t\t\t\techo $depth;\r\n\r\n\t\t\t\tif ( $depth == 1 ) {\r\n\t\t\t\t\t$destinations = get_terms( 'destinations', array( 'child_of' => $reg->term_id , 'parent' => $reg->term_id, 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => false) );\r\n\t\t\t\t} else if ( $depth == 2 ) {\r\n\t\t\t\t\t$destinations = get_terms( 'destinations', array( 'include' => array($destination->term_id), 'hide_empty' => false) );\r\n\t\t\t\t}\r\n\r\n//\t\t\t\t\t\tif ( $destinations && $depth !== 3 && $destskip == 0 ) {\r\n\t\t\t\tif ( $destinations && $destskip == 0 ) {\r\n\t\t\t\t\tforeach ( $destinations as $term ) {\r\n\t\t\t\t\t\tif(!in_array($term->term_id, $rendered_terms)) {\r\n\t\t\t\t\t\t\t$rendered_terms[] = $term->term_id;\r\n\t\t\t\t\t\t\tprint render_destination_term($top, $reg, $term);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\techo '<article id=\"post-'.get_the_ID().'\" ';\r\n\t\t\t\tpost_class('contain');\r\n\t\t\t\techo '>';\r\n\t\t\t\tthematic_postheader();\r\n\t\t\t\techo '<div class=\"entry-content\">';\r\n\t\t\t\tthematic_content();\r\n\t\t\t\techo '</div><!-- .entry-content -->';\r\n\t\t\t\tthematic_postfooter();\r\n\t\t\t\techo '</article><!-- #post -->';\r\n\t\t\t}\r\n\t\t}\r\n\t\techo '</section>'.\"\\n\";\r\n\r\n\t}\r\n\r\n}", "public static function posts_results( $posts ) {\n\t\t\tif ( tribe( 'tec.front-page-view' )->is_page_on_front() ) {\n\t\t\t\tremove_filter( 'option_page_on_front', array( __CLASS__, 'default_page_on_front' ) );\n\t\t\t}\n\t\t\treturn $posts;\n\t\t}", "function wpsites_query( $query ) {\nif ( $query->is_archive() && $query->is_main_query() && !is_admin() ) {\n $query->set( 'posts_per_page', 100 );\n }\n}", "public function postsPreQuery(?array $posts, WP_Query $query): ?array\n {\n if ($this->filtersSuppressed($query) === true) {\n $filters = $this->wordpress->getFilters();\n\n // Only unset filter if the user access filter is active\n if ($this->extractOwnFilters($filters) === true) {\n $query->query_vars['suppress_filters'] = false;\n\n if (isset($filters['posts_results']) === true) {\n $this->wordpressFilters['posts_results'] = $filters['posts_results'];\n unset($filters['posts_results']);\n }\n\n $this->wordpress->setFilters($filters);\n }\n }\n\n return $posts;\n }", "function top_store_search_site(){\n $results = new WP_Query( array(\n 'post_type' => 'product',\n 'post_status' => 'publish',\n 'nopaging' => true,\n 'posts_per_page'=> 100,\n 's' => esc_html($_POST['match']),\n ) );\n $items = array();\n if ( !empty( $results->posts ) ) {\n foreach ( $results->posts as $result ) {\n $items[] = $result->post_title;\n }\n }\n wp_send_json_success( $items );\n}", "function es_custom_product_filters( $output ) {\n\tglobal $wp_query;\n\t\n\tforeach ( $wp_query->query_vars['meta_query'] as $key => $value ) {\n\t\tif ( $value['key'] == '_backorders' ) {\n\t\t\t$current_backorders_value = isset( $value['value'] ) ? $value['value'] : '';\n\t\t}\n\t\telseif ( $value['key'] == 'member_price' ) {\n\t\t\t$curent_price_value = isset( $value['value'] ) ? $value['value'] : '';\n\t\t\t$current_price_key = $value['key'];\n\t\t}\n\t\telseif ( $value['key'] == '_sale_price' ) {\n\t\t\t$curent_price_value = isset( $value['value'] ) ? $value['value'] : '';\n\t\t\t$current_price_key = $value['key'];\n\t\t}\n\t}\n\t\n\t//$current_backorders_value = isset( $wp_query->query_vars['meta_value'] ) ? $wp_query->query_vars['meta_value'] : '';\n\t\n\t$output .= '<select id=\"allow-backorders-filter\" class=\"backorders\" name=\"allow_backorders_filter\">';\n\t$output .= '<option value=\"\" ' . selected( $current_backorders_value, '', false ) . '>' . __( 'Allow backorders?', 'woocommerce' ) . '</option>';\n\t//<option selected=\"selected\" value=\"\">Allow backorders?</option>';\n\n\t$options = array(\n\t\t'no' => __( 'Do not allow', 'woocommerce' ),\n\t\t'notify' => __( 'Allow, but notify customer', 'woocommerce' ),\n\t\t'yes' => __( 'Allow', 'woocommerce' )\n\t);\n\t\n\tforeach ( $options as $key => $value ) {\n\t\t$output .= '<option value=\"' . esc_attr( $key ) . '\"' . selected( $current_backorders_value, $key, false ) . '>'. $value .'</option>';\n\t}\n\t\n\t$output .= '</select>';\n\t\n\t$output .='<select id=\"price-filter\" class=\"\" name=\"price_filter\">\n\t\t\t\t<option value=\"\" ' . selected( $curent_price_value, '', false ) . '>Show All Prices</option>\n\t\t\t\t<option value=\"member-price\" ' . selected( $current_price_key, 'member_price', false ) . '>Member Prices</option>\n\t\t\t\t<option value=\"sale-price\" ' . selected( $current_price_key, '_sale_price', false ) . '>Sale Prices</option>\n\t\t\t\t</select>';\n\t\n\treturn $output;\n}", "function university_adjust_queries($query) {\n // Adjust Programs Query\n if (\n !is_admin()\n AND is_post_type_archive('program')\n AND $query->is_main_query()\n ) {\n $query->set('orderby', 'title');\n $query->set('order', 'asc');\n $query->set('posts_per_page', -1);\n\n }\n // Adjust Events Query\n if (\n ! is_admin()\n AND is_post_type_archive('event')\n AND $query->is_main_query()\n ) {\n $today = date('Ymd');\n $query->set('meta_key', 'event_date');\n $query->set('orderby', 'meta_value_num');\n $query->set('order', 'asc');\n $query->set('meta_query', [\n [\n 'key' => 'event_date',\n 'compare' => '>=',\n 'value' => $today,\n 'type' => 'numeric'\n ]\n ]);\n }\n}", "public function filter_query_args($query_args)\r\n {\r\n global $user_ID;\r\n $query = $_REQUEST['query'];\r\n\r\n if (isset($query['meta_key'])) {\r\n $query_args['meta_key'] = $query['meta_key'];\r\n if (isset($query['meta_value'])) {\r\n $query_args['meta_value'] = $query['meta_value'];\r\n }\r\n\r\n if (isset($query['meta_compare'])) {\r\n $query_args['meta_compare'] = $query['meta_compare'];\r\n }\r\n }\r\n\r\n $query_args['post_type'] = 'mjob_order';\r\n\r\n if(!isset($query['is_task']) || $query['is_task'] == false) {\r\n $query_args['author'] = $user_ID;\r\n }\r\n\r\n $query_args['post_status'] = 'any';\r\n if( isset($query['post_status']) ){\r\n if( $query['post_status'] == 'finished' ){\r\n $query['post_status'] = array('delivery', 'finished');\r\n }\r\n $query_args['post_status'] = $query['post_status'];\r\n }\r\n\r\n // If post_status is all\r\n if(isset($query['is_task']) && $query['is_task'] == true && empty($query['post_status'])) {\r\n $query_args['post_status'] = array(\r\n 'publish',\r\n 'late',\r\n 'delivery',\r\n 'disputing',\r\n 'disputed',\r\n 'finished'\r\n );\r\n }\r\n return $query_args;\r\n }", "function ajax_filter_get_posts( $post ) {\n\n\t// Verify nonce\n\tif( !isset( $_POST['afp_nonce'] ) || !wp_verify_nonce( $_POST['afp_nonce'], 'afp_nonce' ) )\n\t\tdie('Permission denied');\n\n\t$category = $_POST['category'];\n\t$tag = $_POST['tag'];\n\t$postType = $_POST['postType'];\n\t\n\t$postTypeArray = explode(',',$postType);\n\t\n\t$categoryArray = explode(',',$category);\n\t$search = $_POST['search'];\n\t$author = $_POST['author'];\n\t//excluded posts\n\t$exclude = $_POST['ids'];\n\t//what type of filter?\n\t$filterType = $_POST['filterType'];\n\t//what is the selection?\n\t$selection = $_POST['selection'];\n\t$selectionArray = explode(',',$selection);\n\t//are we filtering or loading more?\n\t$loadMore = $_POST['loadMore'];\n\t//what type of page are we on?\n\t$pageType = $_POST['pageType'];\n\t//if we are on a category or tag page, what is the term?\n\t$pageCategory = $_POST['pageCategory'];\n\n\t//separate the year and month\n\t$year = $selectionArray[0];\n\t$month = $selectionArray[1];\n\t\n\tif($month) {\n\t\t$month = $month;\n\t} else {\n\t\t$month = '';\n\t}\n\n\n\tif($loadMore == 'true') {\n\t\t//if we are loading more\n\n\t\tif($filterType == 'author') {\n\t\t\t\t//if load more on author archive\n\t\t\t\t$args = array(\n\t\t\t\t\t'posts_per_page' \t=> 10,\n\t\t\t\t\t'orderby'\t\t\t=> 'date',\n\t\t\t\t\t'order' \t\t\t=> 'DESC',\n\t\t\t\t\t'post_status' \t\t=> 'publish',\n\t\t\t\t\t'post__not_in'\t\t=> $exclude,\n\t\t\t\t\t'author_name'\t\t=> $selection\n\t\t\t\t); \n\t\t} else if($filterType == 'year' && $pageType == 'category') {\n\t\t\t//if filtering by year on a category page and loading more\n\t\t\t$args = array(\n\t\t\t\t'posts_per_page' \t=> 10,\n\t\t\t\t'orderby'\t\t\t=> 'date',\n\t\t\t\t'order' \t\t\t=> 'DESC',\n\t\t\t\t'post_type' \t\t=> 'post',\n\t\t\t\t'post_status' \t\t=> 'publish',\n\t\t\t\t'post__not_in'\t\t=> $exclude,\n\t\t\t\t'cat'\t\t\t\t=> $pageCategory,\n\t\t\t\t'date_query' => array(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'year' => $year,\n\t\t\t\t\t\t\t'month' => $month\n\t\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t); \n\t\t} else if($filterType == 'year' && $pageType == 'tag') {\n\t\t\t//if filtering by year on a tag page and loading more\n\t\t\t$args = array(\n\t\t\t\t'posts_per_page' \t=> 10,\n\t\t\t\t'orderby'\t\t\t=> 'date',\n\t\t\t\t'order' \t\t\t=> 'DESC',\n\t\t\t\t'post_type' \t\t=> 'post',\n\t\t\t\t'post_status' \t\t=> 'publish',\n\t\t\t\t'post__not_in'\t\t=> $exclude,\n\t\t\t\t'tag_id'\t\t\t=> $pageCategory,\n\t\t\t\t'date_query' => array(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'year' => $year,\n\t\t\t\t\t\t\t'month' => $month\n\t\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t); \n\t\t} else if($filterType == 'year' && $pageType == 'press') {\n\t\t\t//if filtering by year on press page and loading more\n\t\t\t$args = array(\n\t\t\t\t'posts_per_page' \t=> 10,\n\t\t\t\t'orderby'\t\t\t=> 'date',\n\t\t\t\t'order' \t\t\t=> 'DESC',\n\t\t\t\t'post_type' \t\t=> 'press',\n\t\t\t\t'post_status' \t\t=> 'publish',\n\t\t\t\t'post__not_in'\t\t=> $exclude,\n\t\t\t\t'date_query' => array(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'year' => $year,\n\t\t\t\t\t\t\t'month' => $month\n\t\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t); \n\t\t} else if($filterType == 'press_tag') {\n\t\t\t//if filtering by press_tag on press page and loading more\n\t\t\t$args = array(\n\t\t\t\t'posts_per_page' \t=> 10,\n\t\t\t\t'orderby'\t\t\t=> 'date',\n\t\t\t\t'order' \t\t\t=> 'DESC',\n\t\t\t\t'post_type' \t\t=> 'press',\n\t\t\t\t'post_status' \t\t=> 'publish',\n\t\t\t\t'post__not_in'\t\t=> $exclude,\n\t\t\t\t'tax_query' \t\t=> array(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'taxonomy' => 'press_tag',\n\t\t\t\t\t\t\t'field' => 'term_id',\n\t\t\t\t\t\t\t'terms' => $selection,\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t); \n\t\t} else if($filterType == 'category' && $pageType == 'blog') {\n\t\t\t//if loading more on a category page\n\t\t\t$args = array(\n\t\t\t\t'posts_per_page' \t=> 10,\n\t\t\t\t'orderby'\t\t\t=> 'date',\n\t\t\t\t'order' \t\t\t=> 'DESC',\n\t\t\t\t'post_type' \t\t=> 'post',\n\t\t\t\t'post_status' \t\t=> 'publish',\n\t\t\t\t'post__not_in'\t\t=> $exclude,\n\t\t\t\t'category__in'\t\t=> $selectionArray \n\t\t\t); \n\t\t} else if($pageType == 'blog') {\n\t\t\t//if loading more on blog landing page\n\t\t\t$args = array(\n\t\t\t\t'posts_per_page' \t=> 10,\n\t\t\t\t'orderby'\t\t\t=> 'date',\n\t\t\t\t'order' \t\t\t=> 'DESC',\n\t\t\t\t'post_type' \t\t=> 'post',\n\t\t\t\t'post_status' \t\t=> 'publish',\n\t\t\t\t'post__not_in'\t\t=> $exclude,\n\t\t\t); \n\t\t} else if($filterType == 'category') {\n\t\t\t//if loading more on a category page\n\t\t\t$args = array(\n\t\t\t\t'posts_per_page' \t=> 10,\n\t\t\t\t'orderby'\t\t\t=> 'date',\n\t\t\t\t'order' \t\t\t=> 'DESC',\n\t\t\t\t'post_type' \t\t=> 'post',\n\t\t\t\t'post_status' \t\t=> 'publish',\n\t\t\t\t'post__not_in'\t\t=> $exclude,\n\t\t\t\t'category__in'\t\t=> $selectionArray \n\t\t\t); \n\t\t} else if($pageType == 'press') {\n\t\t\t//if loading more on a press page\n\t\t\t$args = array(\n\t\t\t\t'posts_per_page' \t=> 10,\n\t\t\t\t'orderby'\t\t\t=> 'date',\n\t\t\t\t'order' \t\t\t=> 'DESC',\n\t\t\t\t'post_type' \t\t=> 'press',\n\t\t\t\t'post_status' \t\t=> 'publish',\n\t\t\t\t'post__not_in'\t\t=> $exclude,\n\t\t\t); \n\t\t} else if($filterType == 'tag') {\n\t\t\t//if loading more on a tag page\n\t\t\t$args = array(\n\t\t\t\t'posts_per_page' \t=> 10,\n\t\t\t\t'orderby'\t\t\t=> 'date',\n\t\t\t\t'order' \t\t\t=> 'DESC',\n\t\t\t\t'post_type' \t\t=> 'post',\n\t\t\t\t'post_status' \t\t=> 'publish',\n\t\t\t\t'post__not_in'\t\t=> $exclude,\n\t\t\t\t'tag__in'\t\t\t=> $selectionArray \n\t\t\t); \n\t\t} else if($filterType == 'type') {\n\t\t\t//if filtering by post type\n\t\t\t$args = array(\n\t\t\t\t'posts_per_page' \t=> 10,\n\t\t\t\t'orderby'\t\t\t=> 'date',\n\t\t\t\t'order' \t\t\t=> 'DESC',\n\t\t\t\t'post_type' \t\t=> $selectionArray,\n\t\t\t\t'post_status' \t\t=> 'publish',\n\t\t\t\t's'\t\t\t\t\t=> $search,\n\t\t\t\t'post__not_in'\t\t=> $exclude,\n\t\t\t); \n\t\t}\t\n\t} else {\n\t\t//if we are filtering\n\n\t\tif($filterType == 'year' && $pageType == 'category') {\n\t\t\t//if filtering by year on a category page\n\t\t\t$args = array(\n\t\t\t\t'posts_per_page' \t=> 10,\n\t\t\t\t'orderby'\t\t\t=> 'date',\n\t\t\t\t'order' \t\t\t=> 'DESC',\n\t\t\t\t'post_type' \t\t=> 'post',\n\t\t\t\t'post_status' \t\t=> 'publish',\n\t\t\t\t'cat'\t\t\t\t=> $pageCategory,\n\t\t\t\t'date_query' \t\t=> array(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'year' => $year,\n\t\t\t\t\t\t\t'month' => $month\n\t\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t); \n\t\t} else if($filterType == 'year' && $pageType == 'tag') {\n\t\t\t//if filtering by year on a tag page\n\t\t\t$args = array(\n\t\t\t\t'posts_per_page' \t=> 10,\n\t\t\t\t'orderby'\t\t\t=> 'date',\n\t\t\t\t'order' \t\t\t=> 'DESC',\n\t\t\t\t'post_type' \t\t=> 'post',\n\t\t\t\t'post_status' \t\t=> 'publish',\n\t\t\t\t'tag_id'\t\t\t=> $pageCategory,\n\t\t\t\t'date_query' \t\t=> array(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'year' => $year,\n\t\t\t\t\t\t\t'month' => $month\n\t\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t); \n\t\t} else if($filterType == 'year' && $pageType == 'press') {\n\t\t\t//if filtering by year on a press page\n\t\t\t$args = array(\n\t\t\t\t'posts_per_page' \t=> 10,\n\t\t\t\t'orderby'\t\t\t=> 'date',\n\t\t\t\t'order' \t\t\t=> 'DESC',\n\t\t\t\t'post_type' \t\t=> 'press',\n\t\t\t\t'post_status' \t\t=> 'publish',\n\t\t\t\t'date_query' \t\t=> array(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'year' => $year,\n\t\t\t\t\t\t\t'month' => $month\n\t\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t); \n\t\t} else if($filterType == 'press_tag' && $pageType == 'press') {\n\t\t\t//if filtering by press tag on a press page\n\t\t\t$args = array(\n\t\t\t\t'posts_per_page' \t=> 10,\n\t\t\t\t'orderby'\t\t\t=> 'date',\n\t\t\t\t'order' \t\t\t=> 'DESC',\n\t\t\t\t'post_type' \t\t=> 'press',\n\t\t\t\t'post_status' \t\t=> 'publish',\n\t\t\t\t'tax_query' \t\t=> array(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'taxonomy' => 'press_tag',\n\t\t\t\t\t\t\t'field' => 'term_id',\n\t\t\t\t\t\t\t'terms' => $selection,\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t); \n\t\t} else if($filterType == 'category' && $pageType == 'blog') {\n\t\t\t//if filtering by category on blog landing page\n\t\t\t$args = array(\n\t\t\t\t'posts_per_page' \t=> 10,\n\t\t\t\t'orderby'\t\t\t=> 'date',\n\t\t\t\t'order' \t\t\t=> 'DESC',\n\t\t\t\t'post_type' \t\t=> 'post',\n\t\t\t\t'post_status' \t\t=> 'publish',\n\t\t\t\t'cat'\t\t\t\t=> $selection,\n\t\t\t); \n\t\t} else if($filterType == 'type') {\n\t\t\t//if filtering by post type\n\t\t\t$args = array(\n\t\t\t\t'posts_per_page' \t=> 10,\n\t\t\t\t'orderby'\t\t\t=> 'date',\n\t\t\t\t'order' \t\t\t=> 'DESC',\n\t\t\t\t'post_type' \t\t=> $selectionArray,\n\t\t\t\t'post_status' \t\t=> 'publish',\n\t\t\t\t's'\t\t\t\t\t=> $search,\n\t\t\t\t'post__not_in'\t\t=> $exclude,\n\t\t\t); \n\t\t}\n \n\n\t}\n\n\t$query = new WP_Query( $args );\n\t$count = $query->post_count;\n\n\tif ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post();\n\t\t\t\t\n\t\t\tif($search) {\n\t\t\t\t$search = 'true';\n\t\t\t} else {\n\t\t\t\t$search = 'false';\n\t\t\t}\n\n\t\t\t$postID = get_the_ID();\n\t\t\t$maxPages = $query->max_num_pages;\n\t\t\t$link = get_the_permalink($postID);\n\t\t\t$postType = get_post_type($postID);\n\t\t\t$category = get_the_category($postID);\n\t\t\t$thumbnail = get_the_post_thumbnail_url($postID, 'full');\n\n\t\t\tif($thumbnail) {\n\t\t\t\t $thumbnail = '<div class=\"image-wrapper\"><img width=\"800\" height=\"800\" src=\"'.$thumbnail.'\" class=\"attachment-square size-square wp-post-image\" alt=\"\"></div>';\n\t\t\t\t $thumbnailClass = ' feed-item-image';\n\t\t\t} else {\n\t\t\t\t$thumbnail = '';\n\t\t\t\t$thumbnailClass = '';\n\t\t\t}\n\n\n\n\t\t\t$results = '';\n\n\t\t\tif(($postType == 'post') || ($search == 'true') || ($postType == 'press')) {\n\t\t\t\t$results = '<li class=\"new-elements load-item feed-item background-white'.$thumbnailClass.'\" data-post-id=\"'.$postID.'\" data-max-pages=\"'.$maxPages.'\" data-results-count=\"'.$count.'\">'.$thumbnail.'<a href=\"'.$link.'\" class=\"full-link\"></a><div class=\"feed-item-inner padding-mobile-20\"><time class=\"caption margin-mobile-bottom-20\"><a href=\"/category/'.$category[0]->slug.'\">'.$category[0]->name.'</a></time><h2 class=\"headline3 margin-mobile-bottom-10\"><a href=\"'.$link.'\">'.get_the_title($postID).'</a></h2><p>'.excerpt(15).'</p><a href=\"'.$link.'\" class=\"cta-link cta-link-small cta-link-absolute\">Posted '.get_the_time('F j, Y').' &mdash; Read more</a></div></li>';\n\t\t\t\t\n\t\t\t} else if($postType == 'challenges') {\n\t\t\t\t$results = '<li class=\"new-elements load-item feed-item news-item no-indent background-white\" data-post-id=\"'.$postID.'\" data-max-pages=\"'.$maxPages.'\" data-results-count=\"'.$count.'\"> <a class=\"full-link\" href=\"'.$link.'\"></a><h5 class=\"eyebrow margin-mobile-bottom-10\">'.get_field('challenges_header', $postID).'</h5><h3 class=\"headline2-alt\">'.get_the_title($postID).'</h3></li>';\n\t\t\t} else if($postType == 'campaigns') {\n\t\t\t\t$results = '<div class=\"new-elements load-item small-content-item feed-item column pure-u-lg-12-12 pure-u-md-12-12 pure-u-sm-12-12\" data-post-id=\"'.$postID.'\" data-max-pages=\"'.$maxPages.'\" data-results-count=\"'.$count.'\"><a href=\"'.$link.'\" class=\"full-link\"></a><div class=\"small-content-inner\"><div class=\"small-image\"><img alt=\"'.get_the_title($postID).'\" src=\"'.get_the_post_thumbnail_url($postID, 'full').'\" title=\"'.get_the_title($postID).'\"></div><div class=\"small-content\"><h2 class=\"headline2-alt\"><a href=\"'.$link.'\">'.get_the_title($postID).'</a></h2><p class=\"margin-mobile-bottom-10 margin-tablet-landscape-bottom-20 margin-mobile-top-10 margin-tablet-landscape-top-20\">'.excerpt(30).'</p><a class=\"cta-link cta-link-small\" href=\"'.$link.'\" title=\"Read more\">Read more</a></div></div></div>';\n\t\t\t} else {\n\t\t\t\t$results = '<li class=\"new-elements load-item feed-item background-white'.$thumbnailClass.'\" data-post-id=\"'.$postID.'\" data-max-pages=\"'.$maxPages.'\" data-results-count=\"'.$count.'\">'.$thumbnail.'<a href=\"'.$link.'\" class=\"full-link\"></a><div class=\"feed-item-inner padding-mobile-20\"><time class=\"caption margin-mobile-bottom-20\">'.get_the_time('F j, Y').'</time><h2 class=\"headline3 margin-mobile-bottom-10\"><a href=\"'.$link.'\">'.get_the_title($postID).'</a></h2><p>'.excerpt(15).'</p><a href=\"'.$link.'\" class=\"cta-link cta-link-small cta-link-absolute\">Read more</a></div></li>';\n\t\t\t}\n\t\t\t\t\t\t\t\n\n\t\t\t$result['response'][] = $results;\n\t\t\t$result['status'] = 'done';\n\t\n\tendwhile; else:\n\t\t$result['response'] = '<li class=\"feed-item load-item padding-mobile-20 padding-tablet-landscape-40 padding-tablet-landscape-left-85 component-theme-white padding-tablet-landscape-right-85\" data-max-pages=\"0\" data-results-count=\"0\"><h3 class=\"headline3\">There is no content that matches your filter</h3></li>';\n\t\t$result['status'] = '404';\n\tendif;\n \n\t$result = json_encode($result);\n\techo $result;\n\t\n\n\tdie();\n}", "function apptivo_ecommerce_recent_products( $atts )\n{\n\n\n\tglobal $apptivo_ecommerce_loop;\n\n\textract(shortcode_atts(array(\n\t 'featured' =>'',\n\t 'per_page' => '8',\n\t 'columns' \t=> '4',\n\t 'pagination_type'=>'',\n\t 'orderby' => 'date',\n\t 'order'=>'desc'\n\t ), $atts));\n\n\t $apptivo_ecommerce_loop['columns'] = $columns;\n\t $apptivo_ecommerce_loop['page_id'] = get_the_ID();\n\t $apptivo_ecommerce_loop['pagination_type'] = $pagination_type;\n\n\t $featured_type = trim(strtolower($featured));\n\t if( $featured_type == 'yes')\n\t {\n\t \t$meta_query = array(\n\t \tarray('key' => '_apptivo_featured','value' => 'yes','compare' => '==','type' => 'CHAR'),\n\t \tarray('key' => '_apptivo_enabled','value' => 'yes','compare' => '=','type' => 'CHAR')\n\t \t);\n\t }else if( $featured_type == 'no' )\n\t {\n\t \t$meta_query = array(\n\t \tarray('key' => '_apptivo_featured','value' => 'no','compare' => '==','type' => 'CHAR'),\n\t \tarray('key' => '_apptivo_enabled','value' => 'yes','compare' => '=','type' => 'CHAR')\n\t \t);\n\n\t }else{\n\t \t$meta_query = array(\n\t \tarray('key' => '_apptivo_enabled','value' => 'yes','compare' => '=','type' => 'CHAR')\n\t \t);\n\t }\n\n\t $args = array(\n\t\t'post_type'\t=> 'item',\n\t 'paged' => get_query_var('paged'),\t\n\t\t'post_status' => 'publish',\n\t\t'posts_per_page' => $per_page,\n\t\t'orderby' => $orderby,\n\t\t'order' => $order,\n\t 'meta_key' \t=> '_apptivo_sale_price',\n\t\t'meta_query' => $meta_query\n\t );\n\n\t query_posts($args);\n\t ob_start();\n\t apptivo_ecommerce_get_template_part( 'custom', 'products');\n\t wp_reset_query();\n\t return ob_get_clean();\n\n}", "function ajarFilterProducts() {\n $args = array(\n 'post_type' => 'producto',\n 'posts_per_page' => -1, /* REcibir todos los productos */\n 'order' => 'ASC',\n 'orderby' => 'title',\n \n );\n\n if ($_POST['categoria']) {\n $args['tax_query'] = array(\n array(\n 'taxonomy' => 'categoria-productos',\n 'field' => 'slug',\n 'terms' => $_POST['categoria']\n )\n );\n }\n\n $products = new WP_Query($args);\n $return = array();\n if ($products->have_posts()) {\n\n while ($products->have_posts()) {\n $products->the_post();\n $return[] = array(\n 'imagen' => get_the_post_thumbnail(get_the_id(), 'large'),\n 'link' => get_the_permalink(),\n 'titulo' => get_the_title(),\n );\n }\n\n }\n wp_send_json($return);\n}", "function filter_posts( $posts ) {\r\n global $wp_query, $wpdb;\r\n\r\n $filtered_posts = array();\r\n\r\n //if empty\r\n if ( empty( $posts ) )\r\n return $posts;\r\n\r\n //other filter\r\n\r\n $wpc_settings = get_option( 'wpc_settings' );\r\n\r\n foreach( $posts as $post ) {\r\n\r\n\r\n //add no follow, no index on plugin pages\r\n if ( isset( $wpc_settings['pages'] )\r\n && is_array( $wpc_settings['pages'] )\r\n && in_array( $post->ID, array_values ( $wpc_settings['pages'] ) ) ) {\r\n\r\n add_action( 'wp_head', array( &$this, 'add_meta_to_plugin_pages' ), 99 );\r\n }\r\n\r\n //for logout\r\n if ( isset( $wpc_settings['pages'] ) && $post->ID == $wpc_settings['pages']['login_page_id'] ) {\r\n //make logout\r\n if ( isset( $_REQUEST['logout'] ) && 'true' == $_REQUEST['logout'] ) {\r\n wp_logout();\r\n }\r\n }\r\n\r\n\r\n //for portal page\r\n if ( isset( $wpc_settings['pages'] ) && $post->ID == $wpc_settings['pages']['portal_page_id'] ) {\r\n if ( is_user_logged_in() ) {\r\n if ( isset( $wp_query->query_vars['wpc_page_value'] ) && '' != $wp_query->query_vars['wpc_page_value'] ) {\r\n\r\n $new_post = get_page_by_path( $wp_query->query_vars['wpc_page_value'], object, 'clientspage' );\r\n if ( $new_post ) {\r\n\r\n $user_id = get_current_user_id();\r\n\r\n $user_ids = get_post_meta( $new_post->ID, 'user_ids', true );\r\n $groups_id = get_post_meta( $new_post->ID, 'groups_id', true ) ;\r\n\r\n //get clients from Client Circles\r\n if ( is_array( $groups_id ) && 0 < count( $groups_id ) )\r\n foreach( $groups_id as $group_id ) {\r\n $user_ids = array_merge( $user_ids, $this->get_group_clients_id( $group_id ) );\r\n }\r\n\r\n if ( is_array( $user_ids ) && 0 < count( $user_ids ) )\r\n $user_ids = array_unique( $user_ids );\r\n\r\n //filter posts for manager\r\n if ( ( !empty( $user_ids ) && in_array( $user_id, $user_ids ) ) || current_user_can( 'administrator' ) ) {\r\n\r\n //replace placeholders in content\r\n if ( isset( $new_post->post_content ) ) {\r\n $args = array( 'client_id' => $user_id );\r\n $new_post->post_content = $this->replace_placeholders( $new_post->post_content, $args, 'portal_page' );\r\n }\r\n\r\n $wp_query->is_page = true;\r\n $wp_query->is_home = false;\r\n $wp_query->is_singular = true;\r\n\r\n //set title and content for PP\r\n $post->post_title = $new_post->post_title;\r\n $post->post_content = $new_post->post_content;\r\n\r\n //set title for PP needs for some themes\r\n $this->current_plugin_page['title'] = $new_post->post_title;\r\n //replace title for PP needs for some themes\r\n add_filter( 'the_title', array( &$this, 'change_portal_page_title' ), 99, 2 );\r\n\r\n $filtered_posts[] = $post;\r\n continue;\r\n }\r\n\r\n wp_redirect( wpc_client_get_slug( 'error_page_id' ) );\r\n exit;\r\n }\r\n }\r\n }\r\n continue;\r\n }\r\n elseif ( isset( $wpc_settings['pages'] ) && $post->ID == $wpc_settings['pages']['hub_page_id'] ) {\r\n if ( is_user_logged_in() ) {\r\n\r\n $wpc_cl_hubpage_id = 0;\r\n\r\n //for hub preview\r\n if ( isset( $wp_query->query_vars['wpc_page'] ) && 'hub_preview' == $wp_query->query_vars['wpc_page'] && current_user_can( 'administrator' ) ) {\r\n if ( isset( $wp_query->query_vars['wpc_page_value'] ) && '' != $wp_query->query_vars['wpc_page_value'] ) {\r\n $client = get_users( array( 'role' => 'wpc_client', 'meta_key' => 'wpc_cl_hubpage_id', 'meta_value' => $wp_query->query_vars['wpc_page_value'], 'fields' => 'ID' ) );\r\n\r\n if ( isset( $client[0] ) && $client[0] ) {\r\n $client_id = $client[0];\r\n $wpc_cl_hubpage_id = $wp_query->query_vars['wpc_page_value'];\r\n }\r\n }\r\n } else {\r\n $client_id = get_current_user_id();\r\n\r\n $wpc_cl_hubpage_id = get_user_meta( $client_id, 'wpc_cl_hubpage_id', true );\r\n }\r\n\r\n if ( 0 < $wpc_cl_hubpage_id ) {\r\n $hub_page = get_post( $wpc_cl_hubpage_id );\r\n if ( $hub_page ) {\r\n\r\n //set title for PP needs for some themes\r\n $this->current_plugin_page['post_id'] = $post->ID;\r\n $this->current_plugin_page['hub_id'] = $wpc_cl_hubpage_id;\r\n $this->current_plugin_page['title'] = $hub_page->post_title;\r\n\r\n //change HUB title\r\n if ( !isset( $wpc_settings['show_hub_title'] ) || 'yes' == $wpc_settings['show_hub_title'] ) {\r\n //set title and content for PP\r\n $post->post_title = $hub_page->post_title;\r\n //replace title for HUB needs for some themes\r\n add_filter( 'the_title', array( &$this, 'change_hub_page_title' ), 99, 2 );\r\n }\r\n\r\n }\r\n }\r\n\r\n $filtered_posts[] = $post;\r\n continue;\r\n } else {\r\n do_action( 'wp_client_redirect', $this->get_login_url() );\r\n exit;\r\n }\r\n }\r\n\r\n //add all other posts\r\n $filtered_posts[] = $post;\r\n }\r\n\r\n\r\n return $filtered_posts;\r\n }", "function theme_custom_query($query)\n{\n if (is_admin() && !$query->is_main_query()) {\n return;\n }\n // if ($query->is_tax('custom-tax')) {\n // $query->set('post_type', 'custom');\n // }\n}", "function mafiran_per_page_query( $query ) {\n\n $taxonomy = is_tax() ? get_queried_object()->taxonomy:\"\";\n\n $is_taxonomy = in_array( $taxonomy , array( 'product-category' ) );\n\n if ( $query->is_main_query() && ! $query->is_feed() && ! is_admin() && $is_taxonomy ) {\n $query->set( 'posts_per_page', '2' ); //Change this number to anything you like.\n }\n\n $post_type = $query->get('post_type');\n\n $is_post_type = in_array( $post_type , array( 'product' , 'project' ) );\n\n if ( $query->is_main_query() && ! $query->is_feed() && ! is_admin() && $is_post_type && is_post_type_archive() ) {\n $query->set( 'posts_per_page', '2' ); //Change this number to anything you like.\n }\n\n $is_post_type = in_array( $post_type , array( 'service' ) );\n\n if ( $query->is_main_query() && ! $query->is_feed() && ! is_admin() && $is_post_type && is_post_type_archive() ) {\n $query->set( 'posts_per_page', '80' ); //Change this number to anything you like.\n }\n\n}", "function accouk_mywork_andertons_rpp($query) {\n if (!is_admin() && $query->is_main_query() && is_category('andertons')) {\n $query->set( 'posts_per_page', '-1' );\n }\n}", "function my_custom_get_posts( $query ) {\n\t//prevent the forms from being hidden on the backend\n\tif ( is_admin() ) {\n\t\treturn;\n\t}\n\t\n\t//limit the query to only Give forms.\n\tif ( $query->is_post_type_archive( 'give_forms' ) ) {\n\t\t$query->set( 'post__not_in', array( 1, 13, 266 ) );\n\t}\n}", "private function init_hooks(){ \r\n add_filter('parse_query',array($this,'bamobile_mobiconnector_add_type_to_posts_rest_api'));\r\n add_action('init',array($this,'bamobile_mobiconnector_add_show_in_rest_to_post_type'), 25);\r\n add_filter('rest_request_after_callbacks',array($this,'bamobile_mobiconnector_change_response_post_details'), 10, 3 );\r\n add_filter('rest_request_after_callbacks',array($this, 'bamobile_change_error_max_page'), 10, 3 );\t\r\n }", "function listing_fields_collection()\r\n{\r\n\tglobal $wpdb,$post;\r\n\tremove_all_actions('posts_where');\r\n\t$cus_post_type = get_post_type();\r\n\t$args = \r\n\tarray( 'post_type' => 'custom_fields',\r\n\t'posts_per_page' => -1\t,\r\n\t'post_status' => array('publish'),\r\n\t'meta_query' => array(\r\n\t 'relation' => 'AND',\r\n\t\tarray(\r\n\t\t\t'key' => 'post_type_'.$cus_post_type.'',\r\n\t\t\t'value' => $cus_post_type,\r\n\t\t\t'compare' => '=',\r\n\t\t\t'type'=> 'text'\r\n\t\t),\r\n\t\tarray(\r\n\t\t\t'key' => 'show_on_page',\r\n\t\t\t'value' => array('user_side','both_side'),\r\n\t\t\t'compare' => 'IN'\r\n\t\t),\r\n\t\tarray(\r\n\t\t\t'key' => 'is_active',\r\n\t\t\t'value' => '1',\r\n\t\t\t'compare' => '='\r\n\t\t),\r\n\t\tarray(\r\n\t\t\t'key' => 'show_on_listing',\r\n\t\t\t'value' => '1',\r\n\t\t\t'compare' => '='\r\n\t\t)\r\n\t),\r\n\t\t'meta_key' => 'sort_order',\r\n\t\t'orderby' => 'meta_value',\r\n\t\t'order' => 'ASC'\r\n\t);\r\n\t$post_query = null;\r\n\tadd_filter('posts_join', 'custom_field_posts_where_filter');\r\n\t$post_query = new WP_Query($args);\r\n\tremove_filter('posts_join', 'custom_field_posts_where_filter');\r\n\treturn $post_query;\r\n}", "private function table_data()\r\n {\r\n // default arguments array\r\n $arguments = array('post_type' => 'product', 'posts_per_page' => 100);\r\n\r\n // filter part of the table data\r\n if ($_REQUEST['filter_action'] === 'Filter') {\r\n $arguments['action'] = -1;\r\n $arguments['paged'] = 1;\r\n $arguments['action2'] = -1;\r\n if ($_REQUEST['product_type'] !== '') {\r\n $arguments['product_type'] = $_REQUEST['product_type'];\r\n } elseif ($_REQUEST['stock_status'] !== '') {\r\n $arguments['stock_status'] = $_REQUEST['stock_status'];\r\n } elseif ($_REQUEST['product_cat'] !== '') {\r\n $arguments['product_cat'] = $_REQUEST['product_cat'];\r\n }\r\n }\r\n\r\n // var_dump($arguments);\r\n // die();\r\n\r\n $query = new WP_Query($arguments);\r\n // }\r\n\r\n if ($query->have_posts()) {\r\n while ($query->have_posts()) : $query->the_post();\r\n\r\n\r\n $product_id = get_the_ID();\r\n // var_dump($product_id);\r\n // die();\r\n $product = wc_get_product($product_id);\r\n $name = '<a href=\"' . esc_url(admin_url('post.php?post=' . get_the_ID() . ' &action=edit')) . ' \">' . esc_html(get_the_title()) . '</a>';\r\n $sku = get_post_meta($product_id, '_sku', true);\r\n $price = get_post_meta($product_id, '_price', true) . 'din';\r\n $terms = get_the_terms($product_id, 'product_cat');\r\n if (! $terms) {\r\n echo '<span class=\"na\">&ndash;</span>';\r\n } else {\r\n $termlist = array();\r\n foreach ($terms as $term) {\r\n $termlist[] = '<a href=\"' . esc_url(admin_url('edit.php?product_cat=' . $term->slug . '&post_type=product')) . ' \">' . esc_html($term->name) . '</a>';\r\n $termlists = implode(', ', $termlist);\r\n }\r\n }\r\n $date = '<span class=\"date_published\">Published on: ' . $product->get_date_created() .'</span>';\r\n\r\n $data[] = array(\r\n 'id' => $product_id,\r\n 'name' => $name,\r\n 'sku' => $sku,\r\n 'price' => $price,\r\n 'categories' => $termlists,\r\n 'date' => $date\r\n );\r\n endwhile;\r\n // var_dump($data);\r\n // die();\r\n return $data;\r\n } else {\r\n echo __('No products found');\r\n }\r\n\r\n wp_reset_postdata();\r\n die();\r\n }", "function be_change_event_posts_per_page( $query ) {\n\n\tif( $query->is_main_query() && !is_admin() && is_category( 'exhibitions' ) ) {\n\t\t$query->set( 'posts_per_page', '18' );\n\t\t$query-> set('tag__not_in',array(173));\n\t}\n\n\tif( $query->is_main_query() && !is_admin() && is_category( 'downloads' ) ) {\n\t\t$query->set( 'posts_per_page', '12' );\n\t}\n\n\tif( $query->is_main_query() && !is_admin() && is_category( 'news' ) ) {\n\t\t$query->set( 'posts_per_page', '10' );\n\t}\n\n\tif( $query->is_main_query() && !is_admin() && is_tax( 'news-themes' ) ) {\n\t\t$query->set( 'posts_per_page', '10' );\n\t}\n\n}", "protected function get_posts_query_args($post_type)\n {\n }", "function wpse45436_posts_filter( $query ){\n global $pagenow;\n $type = 'policy';\n if (isset($_GET['post_type'])) {\n $type = $_GET['post_type'];\n }\n if ( 'policy' == $type && is_admin() && $pagenow=='edit.php' && isset($_GET['ADMIN_FILTER_FIELD_VALUE']) && $_GET['ADMIN_FILTER_FIELD_VALUE'] != '') {\n $query->query_vars['meta_key'] = 'responsible_office';\n $query->query_vars['meta_value'] = $_GET['ADMIN_FILTER_FIELD_VALUE'];\n }\n}", "function genesisawesome_portfolio_items( $query ) {\n\n if( $query->is_main_query() && is_post_type_archive( 'portfolio' ) && ! is_admin() ) {\n $query->set( 'nopaging', true );\n }\n\n}", "function home_page_feature_listing( &$query){\r\n\tif(isset($_REQUEST['post_type']) && $_REQUEST['post_type'] !=''):\r\n\t\t$post_type= @$query->query_vars['post_type'];\r\n\telse:\r\n\t\t$post_type='';\r\n\tendif;\r\n\tif(is_home() || @is_front_page() || (get_option('show_on_front') == 'posts' && (!is_archive() && !is_single() && !is_page() && !is_tax()) )){\r\n\t\t$tmpdata = get_option('templatic_settings');\r\n\t\t$home_listing_type_value = @$tmpdata['home_listing_type_value'];\r\n\t\tif(!empty($home_listing_type_value)){\r\n\t\t\t$attach = array('attachment');\r\n\t\t\tif(is_array($home_listing_type_value))\r\n\t\t\t\t$merge = array_merge($home_listing_type_value,$attach);\r\n\t\t\t\t\r\n\t\t\tif($post_type=='booking_custom_field'):\r\n\t\t\t\t$query->set('post_type',$post_type); /* set custom field post type*/\r\n\t\t\telse:\r\n\t\t\t\t$query->set('post_type', @$merge); /* set post type events */\r\n\t\t\tendif;\r\n\t\t}\r\n\t\t$query->set('post_status',array('publish')); /* set post type events */\r\n\t}else{\r\n\t\tremove_action('pre_get_posts', 'home_page_feature_listing');\r\n\t}\r\n}", "public function on_filter( $query ) {\n\t global $post_type, $pagenow;\n \tif( !$pagenow == 'edit.php' || \n \t\t$post_type != $this->get_id() || \n \t\t!$query->is_main_query() ) {\n \t\treturn;\n \t}\n\n \tforeach ($this->args['columns'] as $key => $col) {\n\t\t\tif( empty( $col['filter_cb'] ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif( !isset( $_GET[$key] ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$col['filter_cb']( $query, $_GET[$key] );\n \t}\n\n \treturn $query;\n\t}", "function search_filter($query) {\n\t if ($query->is_search && !is_admin() ) {\n\t $query->set('post_type',array('post','page'));\n\t }\n\t return $query;\n\t}", "public function add_query_filters( $query ) {\n if ( ! $this->is_geolocation_show_on_shop_page() ) {\n return;\n }\n\n $this->latitude = isset( $_GET['latitude'] ) ? $_GET['latitude'] : null;\n $this->longitude = isset( $_GET['longitude'] ) ? $_GET['longitude'] : null;\n $this->distance = isset( $_GET['distance'] ) ? $_GET['distance'] : 0;\n\n add_filter( 'posts_fields_request', array( $this, 'posts_fields_request' ) );\n add_filter( 'posts_join_request', array( $this, 'posts_join_request' ) );\n add_filter( 'posts_groupby_request', array( $this, 'posts_groupby_request' ) );\n }", "protected function alterQueryArgs() {\n\n $this->get = filter_input_array(INPUT_GET, FILTER_SANITIZE_STRING);\n $this->post = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRING);\n $this->request = VTCore_Wordpress_Utility::arrayMergeRecursiveDistinct($this->post, $this->get);\n\n $this->request = array_unique(array_filter((array) $this->request));\n\n // Processing ajax callback\n if (isset($this->request['value'])\n && $this->request['value'] == 'userloop'\n && isset($this->request['data'])) {\n\n $this->request['data'] = VTCore_Wordpress_Utility::wpParseLargeArgs($this->request['data']);\n\n }\n\n\n // Make WP_User_Query behaves like WP_Query\n if ($this->query['number']) {\n\n // Pagination with paged as WP_Query does\n if (!isset($this->query['paged'])) {\n $this->query['paged'] = 1;\n }\n\n // WpPager needs this for sane pagination\n $this->set('paged', $this->query['paged']);\n\n // Build the offset based on page and number per page\n $this->query['offset'] = $this->query['number'] * max(0, ($this->query['paged'] - 1));\n }\n\n do_action('vtcore_wordpress_user_query_args_alter', $this);\n\n }", "function template_ajax_pagination_home() {\n\n\t// CONSTRUCT QUERY\n $query_vars = json_decode( stripslashes( $_GET['query_vars'] ), true );\n //$query_vars['paged'] = $_GET['page'];\n $query_vars['category_name'] = $_GET['category'];\n $query_vars['post_status'] = 'publish';\n\n // MAKE QUERY\n $posts = new WP_Query( $query_vars );\n $GLOBALS['wp_query'] = $posts;\n \n print_r($posts);\n\n // FORM RETURN STRING FROM SEARCH RESULTS\n if( $posts->have_posts() ) {\n\n\t\t$counter = 1;\n while ( $posts->have_posts() ) { \n $posts->the_post();\n\n\t\t\t// \n \t\tget_template_part( 'loop', get_post_format() );\n\n\t\t\t//\n\t\t\t$counter++;\n }\n }\n \n\n\t//finish\n die();\n}", "function admin_ajax_action_result() {\n\n\tif ( ! ( isset( $_POST['add_nonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['add_nonce'] ) ), 'admin-ajax-demo-nonce' ) ) ) {\n\n\t\tdie( 'Permission denied!!!' );\n\n\t}\n\n\t$args_get_posts = array(\n\t\t'post_type' => 'post',\n\t\t'post_status' => 'publish',\n\t\t'post_per_page' => 5,\n\t\t'fields' => 'ids',\n\t);\n\n\t$result = new WP_Query( $args_get_posts );\n\t$result = $result->posts;\n\n\t?>\n\n\t<ol>\n\t<?php\n\tforeach ( $result as $post_id ) {\n\n\t\t?>\n\n\t\t<h3><li><?php printf( '<a href=\"%s\">%s</a>', esc_url( get_permalink( $post_id ) ), esc_html( get_the_title( $post_id ) ) ); ?></li><h3>\n\n\t\t<?php\n\n\t}\n\n\t?>\n\t</ol>\n\n\t<?php\n\n\tdie();\n}", "function results_are_paged()\n {\n }", "public static function parse_posts_filter( $query ){\n\t\t\tglobal $pagenow;\n\t\t\t$type = 'post';\n\t\t\tif (isset($_GET['post_type'])) {\n\t\t\t\t$type = $_GET['post_type'];\n\t\t\t}\n\t\t\tif ( self::$post_type == $type && is_admin() && $pagenow=='edit.php' && isset($_GET['ADMIN_FILTER_FIELD_VALUE']) && $_GET['ADMIN_FILTER_FIELD_VALUE'] != '') {\n\t\t\t\t$query->query_vars['meta_key'] = 'meta_menucat';\n\t\t\t\t$query->query_vars['meta_value'] = $_GET['ADMIN_FILTER_FIELD_VALUE'];\n\t\t\t}\n\t\t}", "function mySearchPostsFilter($query) {\n\tif ($query->is_search) {\n\t\t$query->set('cat','2'); // your category IDs\n\t}\n\treturn $query;\n}", "protected function preprocessQueryObject() {\n\n $this->get = filter_input_array(INPUT_GET, FILTER_SANITIZE_STRING);\n $this->post = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRING);\n $this->request = VTCore_Wordpress_Utility::arrayMergeRecursiveDistinct($this->post, $this->request);\n\n // Processing pager\n // this has to be linked with wppager to\n // work properly and both object context id\n // must be the same\n if ($this->getContext('id')\n && isset($this->get['paged-' . $this->getContext('id')])\n && is_numeric($this->get['paged-' . $this->getContext('id')])) {\n\n $this->getContext('query')->set('paged', $this->get['paged-' . $this->getContext('id')]);\n }\n\n\n // Processing WpTermList\n // This must be linked to WpTermLIst object\n // to get the term_id\n if (isset($this->get['term-' . $this->getContext('id')])\n && is_numeric($this->get['term-' . $this->getContext('id')])\n && !empty($this->get['term-' . $this->getContext('id')])\n && isset($this->get['tax-' . $this->getContext('id')])) {\n\n $this->taxQuery[] = array(\n 'taxonomy' => $this->get['tax-' . $this->getContext('id')],\n 'field' => 'term_id',\n 'terms' => (int) $this->get['term-' . $this->getContext('id')],\n );\n }\n\n return $this;\n }", "function project_filtering_method(){\n\n \n $sdg_category = $_POST['sdg_category'] != 0 ? $_POST['sdg_category'] : -1;\n $location = $_POST['kommune'];\n $company_type = str_replace(' ', '', $_POST['company_type']);\n $search_term = $_POST['search'];\n $post_amount = $_POST['post_amount'];\n \n\n if ($_POST['sdg_category'] != 0) {\n $tax_query = [\n [\n 'taxonomy' => 'category',\n 'terms' => $sdg_category,\n 'include_children' => true // Remove if you need posts from term 7 child terms\n ],\n ];\n }else{\n $tax_query = [];\n }\n\n if ($_POST['kommune'] != 0) {\n if (strpos($location, 'region') !== false) {\n $location = str_replace('region_', '', $location );\n $query = array(\n 'relation'\t\t=> 'AND',\n array(\n 'key'\t \t=> 'regions',\n 'value'\t \t=> $location,\n 'compare' \t=> '===',\n ),\n );\n \n }elseif (strpos($location, 'commune') !== false) {\n $location = str_replace('commune_', '', $location );\n $query = array(\n 'relation'\t\t=> 'AND',\n array(\n 'key'\t \t=> 'commune',\n 'value'\t \t=> $location,\n 'compare' \t=> '===',\n ),\n );\n \n }\n }else{\n $query = [];\n }\n \n \n if ($post_amount == 2) {\n $startfrom = 0;\n }else{\n $startfrom = $post_amount;\n }\n\n $get_all_posts = get_posts(array(\n 'posts_per_page' => $post_amount,\n 'offset' => $startfrom, \n 'post_status' => 'publish', // Show only the published posts\n 'post_type' => 'projects',\n 'orderby' => 'date',\n 's' => $search_term,\n 'order' => 'DESC',\n 'meta_query'\t=> $query,\n 'tax_query' => $tax_query,\n \n ));\n $results = [];\n\n if ($get_all_posts && !empty($get_all_posts)) : \n $formatted_posts['posts'] = [];\n foreach($get_all_posts as $post):\n\n if ( isset($post->ID) ) {\n \n $author = get_userdata($post->post_author);\n $user_company = get_field('company_type', 'user_'. $author->ID);\n $user_label = str_replace(' ', '', $user_company['label']);\n $project_location = get_field('project_location', $post->ID);\n $company_validate = urlencode($user_label) === urlencode($company_type) ? true : false;\n $image = get_the_post_thumbnail_url($post->ID, 'medium');\n $sdg_logo = get_field('logo', 'user_' . $post->post_author);\n $title = wp_html_excerpt( $post->post_title, 75, '&#8230;' );\n $category_id = get_field('main_goal', $post->ID);\n $sdg_id = get_field('sdg_id', 'category_'.$category_id);\n if($company_type == '0'){\n \n $results['post_items'][$post->ID] = [\n 'post_title' => $title,\n 'post_excerpt' => $post->post_excerpt,\n 'post_date' => $post->post_date,\n 'post_url' => get_permalink($post->ID),\n 'post_id' => $post->ID,\n 'post_image' => $image,\n 'post_type' => $post->post_type,\n 'post_company' => $user_company['label'],\n 'post_company_logo' => $sdg_logo['url'],\n 'post_company_name' => get_field('name', 'user_'. $author->ID),\n 'post_category' => get_the_category($post->ID),\n 'post_category_id' => $sdg_id,\n 'post_location' => $project_location,\n ];\n \n }else{\n if ($company_validate == true) {\n\n $results['post_items'][$post->ID] = [\n 'post_title' => $title,\n 'post_excerpt' => $post->post_excerpt,\n 'post_date' => $post->post_date,\n 'post_url' => get_permalink($post->ID),\n 'post_id' => $post->ID,\n 'post_image' => $image,\n 'post_type' => $post->post_type,\n 'post_company' => $user_company['label'],\n 'post_company_logo' => $sdg_logo['url'],\n 'post_company_name' => get_field('name', 'user_'. $author->ID),\n 'post_category' => get_the_category($post->ID),\n 'post_location' => $project_location,\n ];\n }\n \n }\n \n }else{\n $results['post_items'] = false;\n }\n \n endforeach;\n\n $results['post_items'] = $results['post_items'] == [] ? false : $results['post_items'];\n echo json_encode($results);\n \n\n else: \n $results['post_items'] = 'undefined';\n echo json_encode($results);\n endif;\n //send back the responseBodyJson to frontend\n //it will be send tot the call_back function\n \n die();\n}", "function ridizain_filter_featured_posts( $posts ){\r\n\r\n$ridizain_options = get_option( 'featured-content' );\r\n\r\nif ( $ridizain_options ) {\r\n $tag_name = $ridizain_options['tag-name'];\r\n} else {\r\n $tag_name = 'showcase';\r\n}\r\n\r\n// At this point in the filter we are recalling the layout and content count.\r\n$layout = get_theme_mod( 'featured_content_layout' );\r\n$max_posts = get_theme_mod( 'num_posts_' . $layout );\r\n$orderby = get_theme_mod( 'ridizain_featured_orderby' );\r\n$order = get_theme_mod( 'ridizain_featured_order' );\r\n// Here we determine what content type we are going to feature - Posts, Pages or a Custom Post Type.\r\n$content_type = get_theme_mod( 'featured_content_custom_type' );\r\n\r\n// Now we put it all together before returning it in a new post array ready for output.\r\n$args = array(\r\n 'tag' => $tag_name,\r\n 'posts_per_page' => $max_posts,\r\n 'post_type' => array( $content_type ),\r\n 'orderby' => $orderby,\r\n 'order' => $order,\r\n 'post_status' => 'publish',\r\n);\r\n\r\n$new_post_array = get_posts( $args );\r\n\r\nif ( count($new_post_array) > 0 ) {\r\n return $new_post_array;\r\n} else {\r\n return $posts;\r\n}\r\n\r\n}", "function filter_posts( $params ) {\n global $wpdb;\n\n $facet = $params['facet'];\n $selected_values = $params['selected_values'];\n $unit = empty( $facet['unit'] ) ? 'mi' : $facet['unit'];\n $earth_radius = ( 'mi' == $unit ) ? 3959 : 6371;\n\n if ( empty( $selected_values ) || empty( $selected_values[0] ) ) {\n return 'continue';\n }\n\n $lat = (float) $selected_values[0];\n $lng = (float) $selected_values[1];\n $radius = (float) $selected_values[2];\n\n $sql = \"\n SELECT DISTINCT post_id, ( $earth_radius * acos(\n greatest( -1, least( 1, ( /* acos() must be between -1 and 1 */\n cos( radians( $lat ) ) *\n cos( radians( facet_value ) ) *\n cos( radians( facet_display_value ) - radians( $lng ) ) +\n sin( radians( $lat ) ) *\n sin( radians( facet_value ) )\n ) ) )\n ) ) AS distance\n FROM {$wpdb->prefix}facetwp_index\n WHERE facet_name = '{$facet['name']}'\n HAVING distance < $radius\n ORDER BY distance\";\n\n $this->ordered_posts = [];\n $this->distance = [];\n\n if ( apply_filters( 'facetwp_proximity_store_distance', false ) ) {\n $results = $wpdb->get_results( $sql );\n foreach ( $results as $row ) {\n $this->ordered_posts[] = $row->post_id;\n $this->distance[ $row->post_id ] = $row->distance;\n }\n }\n else {\n $this->ordered_posts = $wpdb->get_col( $sql );\n }\n\n return $this->ordered_posts;\n }", "function SearchFilter($query) {\nif ($query->is_search) {\n$query->set('post_type', 'post');\n}\nreturn $query;\n}", "function SearchFilter($query) {\nif ($query->is_search) {\n$query->set('post_type', 'post');\n}\nreturn $query;\n}", "function wp_filter_pre_oembed_result($result, $url, $args)\n {\n }", "protected function afterQuery() {\n\n // Make WP_User_Query behaves like WP_Query\n if ($this->query['number'] && $this->total_users) {\n $this->max_num_pages = ceil($this->total_users / $this->query['number']);\n }\n\n foreach ($this->results as $key => $user) {\n if ($user instanceof WP_User) {\n do_action('vtcore_wordpress_pre_get_user_object', $this->results[$key]);\n }\n }\n }" ]
[ "0.71587384", "0.68928057", "0.6805471", "0.6724863", "0.6647144", "0.6647091", "0.6622306", "0.6487935", "0.6321969", "0.6304115", "0.6252806", "0.6201029", "0.61367464", "0.6126372", "0.61204284", "0.6116696", "0.60802346", "0.60330534", "0.60243326", "0.59265137", "0.58888245", "0.5858191", "0.58258814", "0.5808739", "0.58020425", "0.57979804", "0.5788281", "0.5784739", "0.5779191", "0.5776829", "0.5754959", "0.5705047", "0.5694792", "0.56910366", "0.56879646", "0.5682721", "0.56646097", "0.5657573", "0.56289756", "0.5613607", "0.55828804", "0.5579386", "0.5565657", "0.5554374", "0.5546326", "0.55232674", "0.55226064", "0.5518447", "0.55183965", "0.54850096", "0.5475313", "0.5453932", "0.5452321", "0.54463613", "0.5438303", "0.5424891", "0.54198027", "0.5418306", "0.5408091", "0.5403104", "0.53962684", "0.5387941", "0.5385026", "0.53829", "0.53777224", "0.53715235", "0.53640974", "0.53628755", "0.5351105", "0.53356594", "0.53293186", "0.5323201", "0.5320551", "0.5319466", "0.53131866", "0.529701", "0.52937704", "0.5285969", "0.5283922", "0.5274991", "0.5271424", "0.52665627", "0.5265976", "0.5253856", "0.52531207", "0.5251925", "0.52448946", "0.52408266", "0.52378553", "0.5236351", "0.522785", "0.52254725", "0.52248544", "0.5224642", "0.5223533", "0.52194774", "0.52153414", "0.520788", "0.520788", "0.5205189", "0.51989853" ]
0.0
-1
/ Initialize action controller here
public function init() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function init()\n {\n /* Initialize action controller here */\n }", "public function init()\n {\n /* Initialize action controller here */\n }", "protected function initializeController() {}", "protected function initializeAction() {}", "protected function initializeAction() {}", "protected function initializeAction() {}", "protected function initAction()\n {\n }", "protected function initializeAction() {\n\t\t/* Merge flexform and setup settings\n\t\t * \n\t\t */\n\t\t$this->settings['action'] = $this->actionMethodName;\n\t}", "public function initializeAction() {}", "public function initializeAction() {}", "public function initializeAction() {}", "public function initializeAction() {}", "public function initializeAction() {}", "public function initializeAction() {\n\n\t}", "public function __construct(){\r\n $app = Application::getInstance();\r\n $this->_controller = $app->getController();\r\n }", "protected function initializeAction() {\n\t\t$this->akismetService->setCurrentRequest($this->request->getHttpRequest());\n\t}", "public function __construct($controller,$action) {\n\t\tparent::__construct($controller, $action);\n\t\t\n\t}", "public function init()\n {\n $controller = $this->router->getController();\n $action = $this->router->getAction();\n $params = $this->router->getParams();\n\n $objController = registerObject($controller);\n\n call_user_func_array([$objController, $action], $params);\n }", "public function __construct($controller, $action) {\n parent::__construct($controller, $action); //parent is Controller.php\n }", "protected function initAction()\r\n {\r\n $return = false;\r\n\r\n // parse request URI\r\n $parts_url = parse_url(strtolower(trim($_SERVER['REQUEST_URI'], '/')));\r\n // @TODO: fix\r\n $parts_url_array = explode('/', $parts_url['path']);\r\n list($this->controllerName, $this->itemId) = $parts_url_array;\r\n\r\n // parse method\r\n $this->requestMethod = strtolower($_SERVER['REQUEST_METHOD']);\r\n\r\n switch ($this->requestMethod) {\r\n case 'get':\r\n // default actions for GET\r\n if ($this->controllerName == 'login' || $this->controllerName == 'logout') {\r\n $this->actionName = $this->controllerName;\r\n $this->controllerName = 'users';\r\n } elseif (is_null($this->itemId)) {\r\n $this->actionName = 'index';\r\n } else {\r\n $this->actionName = 'view';\r\n }\r\n break;\r\n case 'post':\r\n // default action for POST\r\n $this->actionName = 'add';\r\n break;\r\n case 'put':\r\n // default action for PUT\r\n $this->actionName = 'edit';\r\n break;\r\n case 'delete':\r\n // default action for DELETE\r\n $this->actionName = 'delete';\r\n break;\r\n }\r\n\r\n if (!$this->controllerName) {\r\n $this->controllerName = 'main';\r\n }\r\n if (!$this->actionName) {\r\n $this->actionName = 'index';\r\n }\r\n\r\n // get, check & requre class\r\n $className = sprintf('mob%s', ucfirst($this->controllerName));\r\n $className = 'pages\\\\' . $className;\r\n \r\n if (class_exists($className)) {\r\n //create a instance of the controller\r\n $this->controller = new $className();\r\n\r\n //check if the action exists in the controller. if not, throw an exception.\r\n $actionName = sprintf('action%s', ucfirst($this->actionName));\r\n if (method_exists($this->controller, $actionName) !== false) {\r\n $this->action = $actionName;\r\n // set request params\r\n if ($this->itemId) {\r\n $this->controller->setParams(array('id' => $this->itemId));\r\n }\r\n $this->controller->setRequestParams($this->requestMethod);\r\n\r\n $return = true;\r\n } else {\r\n $this->controller->httpStatusCode = HTTP_STATUS_METHOD_NOT_ALLOWED;\r\n// throw new \\Exception('Action is invalid.');\r\n }\r\n } else {\r\n $this->controller = new clsMobController();\r\n $this->controller->httpStatusCode = HTTP_STATUS_NOT_FOUND;\r\n// throw new \\Exception('Controller class is invalid.');\r\n }\r\n\r\n return $return;\r\n }", "public function __construct()\n {\n // Prepare the action for execution, leveraging constructor injection.\n }", "public function __construct() {\n // filter controller, action and params\n $url = filter_input(INPUT_GET, 'url', FILTER_SANITIZE_URL); // $_GET['url']\n $params = explode('/', trim($url, '/'));\n\n // store first and seccond params, removing them from params list\n $controller_name = ucfirst(array_shift($params)); // uppercase classname\n $action_name = array_shift($params);\n\n require_once APP . 'config.php';\n\n // default controller and action\n if (empty($controller_name)) {\n $controller_name = AppConfig::DEFAULT_CONTROLLER;\n }\n if (empty($action_name)) {\n $action_name = AppConfig::DEFAULT_ACTION;\n }\n\n // load requested controller\n if (file_exists(APP . \"Controller/$controller_name.php\")) {\n require CORE . \"Controller.php\";\n require CORE . \"Model.php\";\n require APP . \"Controller/$controller_name.php\";\n $controller = new $controller_name();\n\n // verify if action is valid\n if (method_exists($controller, $action_name)) {\n call_user_func_array(array($controller, $action_name), $params);\n $controller->render(\"$controller_name/$action_name\"); // skipped if already rendered\n } else {\n // action not found\n $this->notFound();\n }\n } else {\n // controller not found\n $this->notFound();\n }\n }", "public static function init() {\n\t\tself::setup_actions();\n\t}", "protected function initializeAction()\n\t{\n\t\tparent::init('Form');\n\t}", "public function initController()\n {\n $this->model = new AliveSettingServiceMeta();\n\n $this->middleware([\n\n ]);\n }", "public function init() {\n\n $this->jobs = new Hb_Jobs();\n if ($this->_request->getActionName() == 'view') {\n\n $this->_request->setActionName('index');\n }\n\n $this->searchParams = $this->_request->getParams();\n $this->view->searchParams = $this->searchParams;\n\n $this->view->actionName = $this->_request->getActionName();\n }", "protected function initializeAction()\n {\n $this->extKey = GeneralUtility::camelCaseToLowerCaseUnderscored('BwrkOnepage');\n /** @var LanguageAspect $languageAspect */\n $languageAspect = GeneralUtility::makeInstance(Context::class)->getAspect('language');\n $this->languageUid = $languageAspect->getId();\n }", "protected function initializeAction()\n {\n parent::initializeAction();\n $this->customer = SubjectResolver::get()\n ->forClassName(Customer::class)\n ->forPropertyName('user')\n ->resolve();\n }", "public function initialize()\n {\n parent::initialize();\n $this->loadComponent('RequestHandler');\n $this->loadComponent('Flash');\n $this->loadComponent('Cookie');\n $this->cors();\n\n $currentController = $this->request->getParam('controller');\n // pr($currentController); die();\n if($currentController == 'Tenants'){\n $currentController = 'TenantUsers';\n }\n if($currentController == 'CorporateClients'){\n $currentController = 'CorporateClientUsers';\n // pr($currentController);die();\n }\n // $currentController = $this->request->params['controller'];\n $loginAction = $this->Cookie->read('loginAction');\n if(!$loginAction){\n $loginAction = ['controller' => $currentController,'action' => 'login'];\n }\n // pr($loginAction);die;\n $this->loadComponent('Auth',[\n 'loginAction' => ['controller' => $currentController,'action' => 'login'],\n 'authenticate' => [\n 'Form' =>\n [\n 'userModel' => $currentController,\n 'fields' => ['username' => 'email', 'password' => 'password']\n ]\n ],\n 'authorize'=> ['Controller'],\n 'loginAction' => $loginAction,\n 'loginRedirect' => $loginAction,\n 'logoutRedirect' => $loginAction \n\n ]);\n // $this->loadComponent('Auth', [\n\n // 'unauthorizedRedirect' => false,\n // 'checkAuthIn' => 'Controller.initialize',\n\n // // If you don't have a login action in your application set\n // // 'loginAction' to false to prevent getting a MissingRouteException.\n // 'loginAction' => false\n // ]);\n /*\n * Enable the following components for recommended CakePHP security settings.\n * see https://book.cakephp.org/3.0/en/controllers/components/security.html\n */\n }", "public function init() {\n\t\t$this->load_actions();\n\t}", "public function init()\r\n {\r\n\r\n /* Initialize action controller here */\r\n\r\n //=====================================must add in all Controller class constructor ===================================//\r\n if(defined('SITEURL')) $this->site_url = SITEURL;\r\n if(defined('SITEASSET')) $this->site_asset = SITEASSET;\r\n $this->view->site_url = $this->site_url;\r\n $this->view->site_asset = $this->site_asset;\r\n Zend_Loader::loadClass('Signup');\r\n Zend_Loader::loadClass('User');\r\n Zend_Loader::loadClass('Request');\r\n //Zend_Loader::loadClass('mailerphp');\r\n\t\t//Zend_Loader::loadClass('Permission');\r\n\r\n\r\n //-----------------------------------------------authenticate logged in user---------------------------------------------//\r\n Zend_Loader::loadClass('LoginAuth');\r\n $this->view->ob_LoginAuth = $this->sessionAuth = new LoginAuth();\r\n\r\n $this->sessionAuth->login_user_check();\r\n\r\n $this->sessionAuth->cookie_check();\r\n $this->view->server_msg = $this->sessionAuth->msg_centre();\r\n\r\n //-----------------------------------------------authenticate logged in user---------------------------------------------//\r\n unset($_SESSION['tranzgo_session']['export_list']);\r\n $this->view->ControllerName = $this->_request->getControllerName();\r\n $this->view->page_id = ($_SESSION['tranzgo_session']['role_id']==1)?'5':'7';\r\n //______________________________________must add in all Controller class constructor _____________________________________//\r\n\r\n\r\n }", "public function __construct() {\n\t\t\t$this->init_globals();\n\t\t\t$this->init_actions();\n\t\t}", "public function __construct()\n\t{\n\t\t$this->actionable = \"\";\n\t\t$this->action_taken = \"\";\n\t\t$this->action_summary = \"\";\n\t\t$this->resolution_summary = \"\";\n\t\t\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\t}", "public function __init()\n\t{\n\t\t// This code will run before your controller's code is called\n\t}", "function __construct()\n\t\t{\n\t\t\tparent::__construct();\n\t\t\t$this->_actionModel = new Action_Model();//khoi tao class\n\t\t}", "protected function initController() {\n\t\tif (!isset($_GET['controller'])) {\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$controllerClass = $_GET['controller'].\"Controller\";\n\t\tif (!class_exists($controllerClass)) {\n\t\t\t//Console::error(@$_GET['controller'].\" doesn't exist\");\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$this->controller = new $controllerClass();\n\t}", "protected function initializeAction() {\t\n\t\t$this->persdataRepository = t3lib_div::makeInstance('Tx_PtConference_Domain_Repository_persdataRepository');\n\t}", "public function __construct()\n\t{\n\t\t$this->actionable = \"\";\n\t\t$this->action_taken = \"\";\n\t\t$this->action_summary = \"\";\n\t\t$this->media_values = array(\n\t\t\t101 => Kohana::lang('ui_main.all'),\n\t\t\t102 => Kohana::lang('actionable.actionable'),\n\t\t\t103 => Kohana::lang('actionable.urgent'),\n\t\t\t104 => Kohana::lang('actionable.action_taken')\n\t\t);\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\t}", "public function __construct() {\n\n list($null,$controller, $action, $id) = explode(\"/\", $_SERVER['PATH_INFO']);\n \n $this->urlValues['base'] = \"http://\" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];\n $this->urlValues['controller'] = $controller ? $controller : \"home\";\n $this->urlValues['action'] = $action;\n $this->urlValues['id'] = $id;\n\n $this->controllerName = strtolower($this->urlValues['controller']);\n $this->controllerClass = ucfirst(strtolower($this->urlValues['controller'])) . \"Controller\";\n\n if ($this->urlValues['action'] == \"\") {\n $this->action = \"index\";\n } else {\n $this->action = $this->urlValues['action'];\n }\n }", "protected function _initControllers()\n\t{\n\t\treturn;\n\t}", "public function init()\n {\n $this->vars['CRUD']['Object'] = $this;\n $this->kernel = kernel();\n\n // Dynamic initialization\n if (! $this->modelName) {\n $modelRefl = new ReflectionClass($this->modelClass);\n $this->modelName = $modelRefl->getShortName();\n }\n\n\n if (! $this->crudId) {\n $this->crudId = \\Phifty\\Inflector::getInstance()->underscore($this->modelName);;\n }\n if (! $this->templateId) {\n $this->templateId = $this->crudId;\n }\n\n // Derive options from request\n if ($request = $this->getRequest()) {\n if ($useFormControls = $request->param('_form_controls')) {\n $this->actionViewOptions['submit_btn'] = true;\n $this->actionViewOptions['_form_controls'] = true;\n }\n }\n\n $this->reflect = new ReflectionClass($this);\n $this->namespace = $ns = $this->reflect->getNamespaceName();\n\n // XXX: currently we use FooBundle\\FooBundle as the main bundle class.\n $bundleClass = \"$ns\\\\$ns\";\n if (class_exists($bundleClass)) {\n $this->bundle = $this->vars['Bundle'] = $bundleClass::getInstance($this->kernel);\n } else {\n $bundleClass = \"$ns\\\\Application\";\n $this->bundle = $this->vars['Bundle'] = $bundleClass::getInstance($this->kernel);\n }\n\n $this->vars['Handler'] = $this;\n $this->vars['Controller'] = $this;\n\n // anyway, we have the model classname, and the namespace, \n // we should be able to registerRecordAction automatically, so we don't have to write the code.\n if ($this->registerRecordAction) {\n $self = $this;\n $this->kernel->event->register('phifty.before_action',function() use($self) {\n $self->kernel->action->registerAction('RecordActionTemplate', array(\n 'namespace' => $self->namespace,\n 'model' => $self->modelName,\n 'types' => (array) $self->registerRecordAction\n ));\n });\n }\n\n\n $this->initPermissions();\n\n /*\n * TODO: Move this to before render CRUD page, keep init method simple\n\n if ( $this->isI18NEnabled() ) {\n $this->primaryFields[] = 'lang';\n }\n */\n $this->initNavBar();\n }", "public function _initialize()\n {\n $this->cate=CONTROLLER_NAME;\n }", "protected function initializeActionEntries() {}", "protected function initializeAction() {\n\t\t$this->feusers = $this->feusersRepository->findByUid( $GLOBALS['TSFE']->fe_user->user['uid'] ) ;\n\t\t$this->schule = $this->feusers->getSchule();\n\t\n\t\t$this->extKey = $this->request->getControllerExtensionKey();\n\t\t$this->extPath = t3lib_extMgm::extPath($this->extKey);\n\t\n\t\t$this->importClassFile = $this->extPath.'Classes/tmp/class.importtext.php';\n\t\t$this->importClass = 'ImportText';\n\t \n\t\tif ( $this->settings[pidAjaxContainerKlassenuebersicht] > 0) $this->pidAjaxContainerKlassenuebersicht = (int) $this->settings[pidAjaxContainerKlassenuebersicht];\n\t\n\t}", "public function init(){\r\n\t$this->_helper->_acl->allow('public',NULL);\r\n\t$this->_flashMessenger = $this->_helper->getHelper('FlashMessenger');\r\n\t$this->_contexts = array('xml','json');\r\n\t$this->_helper->contextSwitch()\r\n\t\t->setAutoDisableLayout(true)\r\n\t\t->addActionContext('oneto50k',$this->_contexts)\r\n\t\t->addActionContext('index',$this->_contexts)\r\n\t\t->initContext();\r\n\t}", "private function loadController() : void\n\t{\n\t\t$this->controller = new $this->controllerName($this->request);\n\t}", "public function initBaseController();", "public function init() {\n $this->_flashMessenger = $this->_helper->getHelper('FlashMessenger');\n\t\t$this->_helper->acl->allow('public',null);\n\t\t$this->_helper->contextSwitch()\n\t\t\t ->setAutoDisableLayout(true)\n\t\t\t ->addActionContext('index', array('xml','json'))\n ->initContext();\n\t}", "public function __construct()\n {\n // Call the CI_Controller constructor\n parent::__construct();\n }", "public function __construct()\n\t{\t\t\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\t}", "public function initAction() : object\n {\n /**\n * Show all movies.\n */\n $response = $this->app->response;\n return $response->redirect(\"cms/posts\");\n }", "protected function initializeAction() {\n\t\t$this->frontendUserRepository = t3lib_div::makeInstance('Tx_GrbFeusermanager_Domain_Repository_FrontendUserRepository');\n\t}", "public function contentControllerInit()\n\t{\n\t}", "protected function initializeAction()\n {\n parent::initializeAction();\n\n $query = GeneralUtility::_GET('q');\n if ($query !== null) {\n $this->request->setArgument('q', $query);\n }\n }", "public function __construct()\n {\n $this->setAction('index', array('idle', 'toggleEnabled', 'expunge'));\n }", "public static function init() {\n\t\t$_GET = App::filterGET();\n\t\t\n\t\t// Checken of er params zijn meegegeven\n\t\ttry {\n\t\t\tif (count($_GET) == 0) {\n\t\t\t\t$_GET[0] = '';\n\t\t\t}\n\t\t\t\n\t\t\t// Is de eerste param een controller ? Anders een pageView\n\t\t\tif (self::isController($_GET[0])) {\n\t\t\t\t$controllerName = self::formatAsController($_GET[0]);\n\t\t\t\t$controller = self::loadController($controllerName);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// Er is sprake van een pageview\n\t\t\t\t$controllerName = 'PagesController';\n\t\t\t\t$controller = self::loadController($controllerName);\n\t\t\t}\n\t\t\t\n\t\t\t$action = self::getAction($controller);\n\t\t\t$controller->setAction($action);\n\n\t\t\t// Try to exec the action\n\t\t\ttry {\n\t\t\t\tself::dispatchAction($controller, $action);\n\t\t\t}\n\t\t\tcatch(ActionDoesNotExistException $ex) {\n\n\t\t\t\techo $action;\n\t\t\t\t// Action bestaat niet\n\t\t\t\t$controller = self::loadController('ErrorController');\n\t\t\t\t\n\t\t\t\t// Als development is ingeschakeld, dan de ware error tonen, anders een 404 pagina\n\t\t\t\tif (Config::DEVELOPMENT)\n\t\t\t\t\t$action = self::formatAsAction('invalidAction');\n\t\t\t\telse\n\t\t\t\t\t$action = self::formatAsAction('notFound');\n\t\t\t\t\t\n\t\t\t\t$controller->setAction($action);\n\t\t\t\tself::dispatchAction($controller, $action);\n\t\t\t}\n\t\t\tcatch(MissingArgumentsException $ex) {\n\t\t\t\t$controller = self::loadController('ErrorController');\n\t\t\t\t\n\t\t\t\t// Als development is ingeschakeld, dan de ware error tonen, anders een 404 pagina\n\t\t\t\tif (Config::DEVELOPMENT)\n\t\t\t\t\t$action = self::formatAsAction('missingArguments');\n\t\t\t\telse\n\t\t\t\t\t$action = self::formatAsAction('notFound');\n\t\t\t\t\t\n\t\t\t\t$controller->setAction($action);\n\t\t\t\tself::dispatchAction($controller, $action);\n\t\t\t}\n\t\t\t\n\t\t\t// Try to render the view\n\t\t\ttry {\n\t\t\t\t$controller->render();\n\t\t\t}\n\t\t\tcatch(ViewDoesNotExistException $ex) {\n\t\t\t\t// View bestaat niet\n\t\t\t\t$controller = self::loadController('ErrorController');\n\t\t\t\tif (Config::DEVELOPMENT)\n\t\t\t\t\t$action = self::formatAsAction('invalidView');\n\t\t\t\telse\n\t\t\t\t\t$action = self::formatAsAction('notFound');\n\t\t\t\t\n\t\t\t\t$controller->setAction($action);\n\t\t\t\tself::dispatchAction($controller, $action);\n\t\t\t\t\n\t\t\t\t$controller->render();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch(NoValidTemplateException $ex) {\n\t\t\techo 'Invalid template';\n\t\t}\n\t\tcatch(IsNotControllerException $ex) {\n\t\t\techo 'Controller not found';\n\t\t}\n\t}", "public function init()\r\n { \r\n //date_default_timezone_set('America/Phoenix');\r\n $ajaxContext = $this->_helper->getHelper('AjaxContext');\r\n\t$ajaxContext->addActionContext('list', 'html')\r\n ->addActionContext('edit', 'html')\r\n ->addActionContext('dashboard', 'html')\r\n ->addActionContext('handler', 'html')\r\n ->initContext();\r\n $auth = Zend_Auth::getInstance();\r\n $action = Zend_Controller_Front::getInstance()->getRequest()->getActionName();\r\n $type = $this->getRequest()->getParam('type');\r\n if (!$auth->hasIdentity() && $action!='handler') {\r\n //echo \"THIS IS AN ERROR: \".$action;\r\n $this->_redirect('login', array('UseBaseUrl' => true));\r\n }\r\n }", "public function __construct()\n {\n $this->model = new MainModel();\n $this->params[\"pagination\"][\"totalItemsPerPage\"] = 5;\n view()->share ('controllerName', $this->controllerName);//đặt controllerName cho all action\n }", "public function __construct()\n\t{\t\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\t}", "public function __construct()\n\t{\t\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\t}", "public function init() {\n $this->_temporizador = new Trf1_Admin_Timer ();\n $this->_temporizador->Inicio();\n\n /* Initialize action controller here */\n $this->view->titleBrowser = 'e-Sisad';\n }", "public function __construct()\n\t{\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\t}", "function __construct()\n {\n parent::Controller();\n }", "public function controller()\n\t{\n\t\n\t}", "public function init() {\n\t\t\t\t\t\t$this->view->controller = $this->_request->getParam ( 'controller' );\n\t\t\t\t\t\t$this->view->action = $this->_request->getParam ( 'action' );\n\t\t\t\t\t\t$this->getLibBaseUrl = new Zend_View_Helper_BaseUrl ();\n\t\t\t\t\t\t$this->GetModelOrganize = new Application_Model_ModOrganizeDb ();\n\t\t\t\t\t\t$this->_helper->ajaxContext->addActionContext('deleteOrganisme1','json')->initContext();\n\t\t\t\t\t\t// call function for dynamic sidebar\n\t\t\t\t\t\t$this->_Categories = new Application_Model_ModCatTerm ();\n\t\t\t\t\t\t$parent_id = $this->_getParam ( 'controller' );\n\t\t\t\t\t\t$this->view->secondSideBar = $this->_Categories->showCateParent ( $parent_id );\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public function initializeAction() {\t\t\n\t\t$this->contactRepository = t3lib_div::makeInstance('Tx_Addresses_Domain_Repository_ContactRepository');\t\n\t}", "public function init() {\n\t$this->_flashMessenger = $this->_helper->getHelper('FlashMessenger');\n\t$this->_helper->acl->allow('public',null);\n\t$this->_helper->contextSwitch()\n\t\t->setAutoDisableLayout(true)\n\t\t->addActionContext('index', array('xml','json'))\n\t\t->addActionContext('mint', array('xml','json'))\n\t\t->initContext();\n }", "public function __construct()\n {\n if (get_called_class() != 'ApplicationController') {\n $this->_set_default_layout();\n $this->_vars = new stdClass();\n $this->_init();\n }\n }", "public function initializeAction() {\n parent::initializeAction();\n $this->umDiv = new Tx_Magenerator_Domain_UserManagement_Div();\n }", "public function __construct() {\n\n // Get the URL elements.\n $url = $this->_parseUrl();\n\n // Checks if the first URL element is set / not empty, and replaces the\n // default controller class string if the given class exists.\n if (isset($url[0]) and ! empty($url[0])) {\n $controllerClass = CONTROLLER_PATH . ucfirst(strtolower($url[0]));\n unset($url[0]);\n if (class_exists($controllerClass)) {\n $this->_controllerClass = $controllerClass;\n }\n }\n\n // Replace the controller class string with a new instance of the it.\n $this->_controllerClass = new $this->_controllerClass;\n\n // Checks if the second URL element is set / not empty, and replaces the\n // default controller action string if the given action is a valid class\n // method.\n if (isset($url[1]) and ! empty($url[1])) {\n if (method_exists($this->_controllerClass, $url[1])) {\n $this->_controllerAction = $url[1];\n unset($url[1]);\n }\n }\n\n // Check if the URL has any remaining elements, setting the controller\n // parameters as a rebase of it if true or an empty array if false.\n $this->_controllerParams = $url ? array_values($url) : [];\n\n // Call the controller and action with parameters.\n call_user_func_array([$this->_controllerClass, $this->_controllerAction], $this->_controllerParams);\n }", "public function actionInit()\n {\n $this->initRoles($this->roles);\n $this->initPermissions($this->permissions);\n $this->initDependencies($this->dependencies);\n }", "public function getControllerAction() {}", "public function __construct($action = '') {\n\t\t$this->app = Application::app();\n\t\t$this->setAction($action);\n\t}", "function initialize(Controller $controller) {\n $this->controller=&$controller;\n \t}", "public function __construct($controller, $action) {\n parent::__construct($controller, $action);\n $this->loadModel('Baskets');\n $this->loadModel('Orders');\n $this->loadModel('Messages');\n $this->loadModel('Products');\n\n if(Session::exists(BUYER_SESSION_NAME)) {\n $this->view->totalProductInBasket = $this->BasketsModel->countProductInBasket();\n $this->view->totalOrders = $this->OrdersModel->countSentOrder();\n $this->view->msgCount = $this->MessagesModel->unReadMessages();\n } elseif(Session::exists(STORE_SESSION_NAME)) {\n $this->view->msgCount = $this->MessagesModel->unReadMessages();\n $this->view->newOrders = $this->OrdersModel->newOrders(Session::get(STORE_SESSION_NAME));\n }\n\n $this->view->setLayout('details');\n }", "function initialize(Controller $controller) {\n $this->controller = $controller;\n }", "public function __construct() {\n if (isset($_GET['rc'])) {\n $this->url = rtrim($_GET['rc'], '/'); // We don't want no empty arg\n $this->args = explode('/', $this->url);\n }\n \n // Load index controller by default, or first arg if specified\n $controller = ($this->url === null) ? 'null' : array_shift($this->args);\n $this->controllerName = ucfirst($controller);\n\n // Create controller and call method\n $this->route();\n // Make the controller display something\n $this->controllerClass->render();\n }", "public function __construct() {\r\n\t\t\r\n\t\tSession::init();\n\t\tif (!Session::get('local'))\n\t\t\tSession::set('local', DEFAULT_LANGUAGE);\r\n\t\t\r\n\t\t$this->getUrl();\r\n\t\t\r\n\t\t//No controller is specified.\r\n\t\tif (empty($this->url[0])) {\r\n\t\t\t$this->loadDefaultController();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t$this->loadCurrentController();\r\n\t\t$this->callControllerMethod();\r\n\r\n\t}", "public function __construct() {\n $this->urlValues = $_GET;\n if (!isset($this->urlValues['c'])) {\n $this->controllerName = \"home\";\n $this->controllerClass = \"HomeController\";\n } else {\n $this->controllerName = strtolower($this->urlValues['c']);\n $this->controllerClass = ucfirst(strtolower($this->urlValues['c'])) . \"Controller\";\n }\n \n if (!isset($this->urlValues['a'])) {\n $this->action = \"index\";\n } else {\n $this->action = $this->urlValues['a']; \n }\n }", "public function preAction() {\n $this->apiBrowser = new ApiBrowser();\n\n $basePath = $this->request->getBasePath();\n $this->namespaceAction = $basePath . '/namespace/';\n $this->classAction = $basePath . '/class/';\n $this->searchAction = $basePath . '/search';\n }", "function __construct($controller, $action)\n {\n global $inflect;\n\n $this->renderPage = true;\n $this->renderHeader = true;\n \t\n\t\t$this->requireUser = false;\n\t\t \n $this->_controller = ucfirst($controller);\n $this->_action = $action;\n \n $model = ucfirst($inflect->singularize($controller));\n $this->$model = new $model;\n\n $this->_template = new Template($controller, $action);\n }", "public function init()\n {\n $this->ctrlModel = new Admin_Model_Acl_ControllersActions();\n $this->dbCtrl = new Admin_Model_DbTable_Acl_ModuleController();\n }", "public function setup_actions() {}", "public function init(){\r\n\t\t$this->_data = $this->_request->getParams();\r\n $controller = $this->_data['controller']; //Get controller\r\n $action = $this->_data['action']; //Get action\r\n \r\n $loadfunction = new Default_Model_Common();\r\n foreach($loadfunction->loadFunction($controller) as $value){\r\n if($action == $value['action']){\r\n $load = new $value['model_load']();\r\n $this->view->$value['varname'] = $load->$value['function_load']();\r\n }\r\n }\r\n\r\n $this->view->lang = Zend_Registry::get(\"lang\"); //load language\r\n \r\n //List menu\r\n $listmenu = Zend_Registry::get(\"listmenu\");\r\n $this->view->listmenu = $listmenu;\r\n \r\n $this->view->selectaccount = ' class=\"selected\"';\r\n }", "function __construct() {\n\t\t\n\t\tparent::__construct();\n\t\t\n\t\t// skip the timestamp check for this app\n\t\tSession::check(true);\n\t\t$this->data[\"showActions\"] = true;\n\t\t$this->data[\"csrfToken\"] = CSRF::generateToken();\n\t\t\n\t}", "abstract public function getControllerAction();", "public function _construct($controller,$view){\r\n $this->controller = $controller;\r\n }", "public function initialize()\n { $model= new \\Yabasi\\ModelController();\n $this->setSchema($model->model());\n $this->setSource(\"notification\");\n }", "protected function __construct() {\n\t\t\tadd_action( 'init', array( $this, 'action__init' ), 11 );\n\t\t}", "public function init()\n {\n $this->ctrlActionModel = new Admin_Model_Acl_ControllersActions();\n $this->dbController = new Admin_Model_DbTable_Acl_ModuleController();\n $this->dbAction = new Admin_Model_DbTable_Acl_Action();\n }", "public function init()\n {\n $this->projectController->init();\n }", "function __construct() {\n\t\t\t$this->register_actions();\t\t\n\t\t\t$this->register_filters();\n\t\t}", "public function __construct() {\n // Call Module constructur\n parent::__construct();\n\n // Add additional route\n $this->_actions['GET']['/people/:id'] = 'people';\n }", "public function initialize()\n {\n $model= new \\Yabasi\\ModelController();\n $this->setSchema($model->model());\n $this->setSource(\"refund\");\n }", "function Controller()\n\t{\t\t\n\t\t$this->method = \"showView\";\n\t\tif (array_key_exists(\"method\", $_REQUEST))\n\t\t\t$this->method = $_REQUEST[\"method\"];\n\t\t\t\t\n\t\t$this->icfTemplating = new IcfTemplating();\n\t\t$this->tpl =& $this->icfTemplating->getTpl();\n\t\t$this->text =& $this->icfTemplating->getText();\t\t\n\t\t$this->controllerMessageArray = array();\n\t\t$this->pageTitle = \"\";\n\t\t$this->dateFormat = DateFormatFactory::getDateFormat();\n\t\t$this->controllerData =& $this->newControllerData();\n\t}", "function __contrruct(){ //construdor do controller, nele é possivel carregar as librari, helpers, models que serão utilizados nesse controller\n\t\tparent::__contrruct();//Chamando o construtor da classe pai\n\t}", "function __construct($module,$controller,$action) {\n\t\t$this->action = $action;\n\t\t$this->controller = preg_replace('%Controller$%','',$controller);\n\t\t$this->module = $module;\n\n\t\t$jadeCacheDir = J::path(\"App/Cache/Jade/$this->module/$this->controller\");\n\t\t(is_dir($jadeCacheDir)) || mkdir($jadeCacheDir,0777,true);\n\t\t$this->cacheFile = J::path(\"$jadeCacheDir/$this->action.php\");\n\t\t$this->viewFile = J::path(\"App/Modules/$this->module/Views/$this->controller/$this->action.jade\");\n\t}", "public function __construct()\n {\n $url = $this->getUrl();\n // Look in controllers folder for first value and ucwords(); will capitalise first letter \n if (isset($url[0]) && file_exists('../app/controllers/' . ucwords($url[0]) . '.php')) {\n $this->currentController = ucwords($url[0]); // Setting the current controllers name to the name capitilised first letter\n unset($url[0]); \n }\n\n // Require the controller\n require_once '../app/controllers/' . $this->currentController . '.php';\n // Taking the current controller and instantiating the controller class \n $this->currentController = new $this->currentController;\n // This is checking for the second part of the URL\n if (isset($url[1])) {\n if (method_exists($this->currentController, $url[1])) { // Checking the seond part of the url which is the corresponding method from the controller class\n $this->currentMethod = $url[1];\n unset($url[1]);\n }\n }\n\n // Get params, if no params, keep it empty\n $this->params = $url ? array_values($url) : []; \n\n // Call a callback with array of params\n call_user_func_array([$this->currentController, $this->currentMethod], $this->params);\n }", "public function __construct() {\n\t\tparent::__construct();\n\t\t$this->view = new ViewController();\t\t\n\t}", "public function __construct()\n {\n $this->controller = new Controller;\n $this->error_message = 'bad request or duplicate data';\n }", "public function controller()\n {\n $method = $_SERVER['REQUEST_METHOD'];\n if ($method == 'GET') {\n $this->getController();\n };\n if ($method == 'POST') {\n check_csrf();\n $this->createController();\n };\n }" ]
[ "0.89566046", "0.89566046", "0.82057846", "0.80040884", "0.80040884", "0.8004028", "0.7928566", "0.7802862", "0.7750365", "0.7750365", "0.7750365", "0.7750365", "0.7750365", "0.7741994", "0.76497424", "0.7542271", "0.7541656", "0.7458589", "0.7430627", "0.7382884", "0.73493266", "0.73307425", "0.7321889", "0.73055863", "0.7295852", "0.7274981", "0.72531754", "0.7246773", "0.7212456", "0.72057885", "0.71661454", "0.71535975", "0.7130195", "0.7116122", "0.70873964", "0.7080964", "0.7078719", "0.70654655", "0.7053619", "0.7048942", "0.7036025", "0.7028192", "0.6996098", "0.69914645", "0.6983108", "0.69822043", "0.6978827", "0.69710267", "0.69653803", "0.6934731", "0.69341296", "0.6926329", "0.692468", "0.69113386", "0.6909758", "0.6896174", "0.68904704", "0.6874338", "0.68700373", "0.68700373", "0.6862786", "0.6847179", "0.6844484", "0.68443036", "0.68056643", "0.6804595", "0.68018633", "0.67917275", "0.6769771", "0.676602", "0.6765842", "0.67582476", "0.67257833", "0.6721477", "0.6721169", "0.67196625", "0.67082113", "0.6707143", "0.6706214", "0.67023355", "0.6700337", "0.669937", "0.6695276", "0.66930395", "0.6692887", "0.6688026", "0.66866106", "0.66839683", "0.6674853", "0.6667438", "0.6658782", "0.66509074", "0.6642763", "0.66400504", "0.6634305", "0.6610988", "0.6610453", "0.66071516", "0.66062886", "0.6600459", "0.6599095" ]
0.0
-1
Go through all validations
public function isValid() { $this->requiredFilter(); $this->othersFilter(); $shipping = $this->cart->getMethods('shipping'); if (!empty($shipping['methods'])) { $this->shippingFilter(); } $payment = $this->cart->getMethods('payment'); if (!empty($payment['methods'])) { $this->paymentFilter($payment['methods']); } if (!$this->fieldsFilter($this->order->getFields())) { $this->addError(null, _wp('Contact fields are empty')); } $this->minimalFilter(); if (!$this->errors) { $captcha = !empty($this->settings['shared_display_settings']) ? !empty($this->settings['product']['captcha']) : !empty($this->settings[$this->cart->getType()]['captcha']); // Капча if ($captcha && !wa()->getCaptcha()->isValid()) { $this->addError(null, _wp('Captcha is not correct')); } } return $this->errors ? false : true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validate()\n {\n foreach ( $this->rules as $key => $rules ) {\n foreach ( $rules as $type => $rule ) {\n if ( $this->hasErrors( $key ) )\n break;\n $this->validateRule( $key, $type, $rule );\n }\n }\n }", "private function proccess()\n {\n foreach ($this->validate as $name => $value) {\n $rules = $this->rules[$name];\n \n /* Let's see is this value a required, e.g not empty */\n if (preg_match('~req~', $rules)) {\n if ($this->isEmpty($value)) {\n $this->errors[] = $this->filterName($name) . ' can\\'t be empty, please enter required data.';\n continue; // We will display only one error per input\n }\n }\n \n /**\n * Let's see is this value needs to be integer\n */\n if (preg_match('~int~', $rules)) {\n if (!$this->isInt($value)) {\n $this->errors[] = $this->filterName($name) . ' is not number, please enter number.';\n continue; // We will display only one error per input\n }\n }\n \n /**\n * Let's see is this value needs to be text\n */\n if (preg_match('~text~', $rules)) {\n if (!$this->isText($value)) {\n $this->errors[] = $this->filterName($name) . ' is not text, please enter only letters.';\n continue; // We will display only one error per input\n }\n }\n \n /* This is good input */\n $this->data[$name] = $value;\n }\n }", "public function validateAll(): void\n\t{\n\t\tif (!$this->isValid()) {\n\t\t\tthrow new Validator\\Exception(reset($this->errors) ?: 'Validation failed');\n\t\t}\n\t}", "function validate()\n\t{\n\t\t//echo sizeof($this->arr_validators);\n\t\tfor($i = 0; $i < sizeof($this->arr_validators); $i++)\n\t\t{\n\t\t\t$obj_validator = $this->arr_validators[$i];\n\t\t\t$obj_validator->validate();\n\t\t}\n\t}", "protected function _runValidation() {\n\n $this->_forceFail = false;\n\n foreach ($_POST as $inputName => $inputVal) {\n $_POST[$inputName] = trim($_POST[$inputName]);\n\n if (array_key_exists($inputName, $this->_ruleSets)) {\n foreach ($this->_parseRuleString($this->_ruleSets[$inputName]) as $eachRule) {\n $this->_validateRule($inputName, $_POST[$inputName], $eachRule);\n }\n }\n }\n\n if (empty($this->_errorSet) && $this->_forceFail === false) {\n $this->_formSuccess = true;\n }\n return;\n }", "public function validate(): void\n {\n $this->validatingValue = method_exists($this, 'getValue') ? $this->getValue() : $this->validatingValue;\n\n /**\n * Executes each of the validation closures in reversed order only if the $validatingChain\n * property isn't empty.\n */\n if (!empty($this->validatingChain)) {\n foreach (array_reverse($this->validatingChain) as $function) {\n $function();\n }\n }\n }", "public function validar()\n {\n foreach ($this->reglas as $campo => $listadoReglas) {\n foreach ($listadoReglas as $regla) {\n $this->aplicarValidacion($campo, $regla);\n }\n }\n }", "public static function validateAll()\n {\n\n foreach ($_SESSION as $key => $value) {\n\n if (strpos($key, \"form_\") !== false) {\n\n $id = $value[\"form_id\"];\n\n if (!empty($_POST[\"check\"])) {\n\n self::validate($id);\n }\n }\n }\n }", "protected function prepareValidations() {}", "abstract public function runValidation();", "public function validate() {\n // loop through validators and run them\n foreach($this->form_fields as $field) {\n $field->valid = TRUE;\n // validate required items\n if ($field->required) {\n if ((strlen($field->value) == 0) || (empty($field->value)) || (is_null($field->value)) ) {\n $field->valid = FALSE; $this->form_errors++; \n if ((isset($field->default_error)) && (!empty($field->default_error))) {\n $field->error = $field->default_error;\n }\n else {\n $field->error = \"This field is required\";\n }\n }\n }\n // run validators for items that are not already failed\n if (($field->valid) && (!empty($field->validator)) && (is_array($field->validator))) {\n\n // skip empty fields\n if (empty($field->value)) { continue; }\n\n foreach($field->validator as $validator) {\n // run the function\n if (call_user_func($validator['func'],$field->value)) {\n $field->valid = TRUE;\n }\n else {\n $field->valid = FALSE; $this->form_errors++; \n if ((isset($validator['message'])) && (!empty($validator['message']))) {\n $field->error = $validator['message'];\n }\n else if ((isset($field->default_error)) && (!empty($field->default_error))) {\n $field->error = $field->default_error;\n }\n else {\n $field->error = \"This field contains an invalid value\";\n }\n // break out of the loop. No need to continue with validations if one has failed\n break;\n }\n }\n }\n $this->form_validated = TRUE;\n // run the post validate method to levy modifications against the validated input\n $this->postValidate();\n }\n return;\n }", "function validateAll(){\n foreach($this->fields as $field){\n $val = $_POST[$field['id']];\n if($field['validate']){\n switch($field['type']){\n case \"email\":\n if(!filter_var($val, FILTER_VALIDATE_EMAIL)){\n $this->fields[$field['id']]['class'] .= \" error\";\n $this->has_errors = true;\n }\n break;\n case \"number\":\n if(!is_numeric($val)){\n $this->fields[$field['id']]['class'] .= \" error\";\n $this->has_errors = true;\n }else{\n if(isset($this->fields[$field['id']]['min'])){\n if($this->fields[$field['id']]['min'] > $val){\n $this->fields[$field['id']]['class'] .= \" error\";\n $this->has_errors = true;\n }\n }\n if(isset($this->fields[$field['id']]['max'])){\n if($this->fields[$field['id']]['max'] < $val){\n $this->fields[$field['id']]['class'] .= \" error\";\n $this->has_errors = true;\n }\n }\n }\n break;\n case \"password\":\n if($this->fields[$field['id']]['compare']){\n $compareWith = $this->fields[$field['id']]['compare'];\n if($val != $_POST[$compareWith]){\n $this->fields[$field['id']]['class'] .= \" error\";\n $this->fields[$compareWith]['class'] .= \" error\";\n $this->has_errors = true;\n }else if(!$this->validatePassword($val) || !$this->validatePassword($_POST[$compareWith])){\n $this->fields[$field['id']]['class'] .= \" error\";\n $this->fields[$compareWith]['class'] .= \" error\";\n $this->has_errors = true;\n }\n }else{\n if(!$this->validatePassword($val)){\n $this->fields[$field['id']]['class'] .= \" error\";\n $this->has_errors = true;\n }\n }\n break;\n case \"date\":\n if(!$this->validateDate($val)){\n $this->fields[$field['id']]['class'] .= \" error\";\n $this->has_errors = true;\n }else{\n if(isset($this->fields[$field['id']]['min'])){\n $min = $this->fields[$field['id']]['min'];\n if($this->compareDates($min, $val)){\n $this->fields[$field['id']]['class'] .= \" error\";\n $this->has_errors = true;\n }\n }\n if(isset($this->fields[$field['id']]['max'])){\n $max = $this->fields[$field['id']]['max'];\n if($this->compareDates($val, $max)){\n $this->fields[$field['id']]['class'] .= \" error\";\n $this->has_errors = true;\n }\n }\n }\n break;\n case \"radio\":\n if(!$val){\n $this->fields[$field['id']]['error'] .= \" error\";\n }\n break;\n default:\n if(!$val){\n $this->fields[$field['id']]['class'] .= \" error\";\n }\n }\n }\n }\n return ($this->has_errors ? false : true);\n }", "public function validate()\r\n {\r\n //clean out the errors in the errors array\r\n $this->errors = array(); //set it equal to a new empty array to clear the items in the array\r\n\r\n // need find a way to check each property\r\n // lets uses a naming convention that any function that begins with 'validate_'\r\n //will be executed in this method\r\n $methods = get_class_methods($this);\r\n $validationResults = array();\r\n foreach($methods as $func)\r\n {\r\n //see if the function begins with the text 'validate_'\r\n if(strpos($func,'validate_')===0)\r\n {\r\n //call the method with the name stored in the $func variable\r\n $validationResults[] = call_user_func([$this,$func]);\r\n }\r\n }\r\n //check to see if any of the property validation functions returned false\r\n return !in_array(false,$validationResults);\r\n\r\n }", "public function Validate()\n\t{\n\t\t//\n\t\t// Traverse object.\n\t\t//\n\t\tforeach( $this as $condition => $statements )\n\t\t\t$this->_ValidateCondition( $condition, $statements, 0 );\n\t\n\t}", "protected function runValidate()\n {\n Validate::run($this->request);\n }", "public function validations() {\n $this->form_validation->set_rules('name', 'Name', 'trim|required|alpha');\n $this->form_validation->set_rules('age', 'Age', 'trim|required|is_natural_no_zero|max_length[2]');\n $this->form_validation->set_rules('dob', 'Date Of Birth', 'trim|required');\n $this->form_validation->set_rules('profession', 'Select Profession', 'trim|required');\n $this->form_validation->set_rules('locality', 'Locality', 'trim|required|alpha');\n $this->form_validation->set_rules('guests', 'No. of Guests', 'trim|required');\n $this->form_validation->set_rules('address', 'Address', 'trim|required');\n }", "private function validate() {\n $this->valid = (1 === count($this->marriages));\n }", "public function validate() {\n // Validate each form field\n foreach ($this->fields as $field => $value) {\n \n // If the field value is empty\n if (empty($value)) {\n // If the field is set as required, throw error\n if (isset($this->rules[$field]['required'])) {\n $this->errors[$field][] = self::ERROR_REQUIRED;\n }\n }\n // Else, if the field has a value and is declared in Rules\n else if (isset($this->rules[$field])) {\n \n // Remove 'required' from list of callable functions.\n // We already did this check above.\n unset($this->rules[$field]['required']);\n \n foreach ($this->rules[$field] as $rule => $rule_value) {\n /**\n * For each rule specified for an element,\n * call a function with the same name, e.g. 'email()' when\n * checking whether a field value is a valid email address.\n * \n * This replaces the previous switch statement, and reduces\n * the need to iterate through each switch case for every\n * rule. \n */\n call_user_func_array(\n // Function is in this instance, named identical to rule\n array($this, $rule),\n // Pass the Field name, Field value, and Rule value\n array($field, $value, $rule_value)\n );\n }\n }\n }\n \n // Return validation result\n if (empty($this->errors)) {\n return TRUE;\n }\n else {\n return FALSE;\n }\n }", "public function validateAll()\n {\n $result = $this->validate();\n\n foreach ($this->relations() as $relation) {\n\n $relAttr = $relation['attribute'];\n $relModel = $this->$relAttr;\n\n if (ArrayHelper::isIndexed($relModel)) {\n foreach ($relModel as $model) {\n /* @var Model $model */\n $result = $model->validate() && $result;\n\n if ($model->hasErrors()) {\n $this->addErrors($model->getErrors());\n }\n }\n } else {\n /* @var Model $relModel */\n $result = $relModel->validate() && $result;\n\n if ($relModel->hasErrors()) {\n $this->addErrors($relModel->getErrors());\n }\n }\n }\n\n return $result;\n }", "public function validate()\n\t{\n\t\t$this->errors = [];\n\n\t\t$this->validateConfig();\n\n\t\t// there is no point to continue if config is not valid against the schema\n\t\tif($this->isValid()) {\n\t\t\t$this->validateRepetitions();\n\t\t\t$this->validateMode();\n\t\t\t$this->validateClasses();\n\t\t\t$this->validateTestData();\n\t\t}\n\t}", "public function validate() {\n\n // Tell ourselves that the client has initiated validation.\n $this->hasRanValidation = true;\n\n // Sanitize and filter all of our field data.\n $this->filterFields();\n\n // Validate each field individually.\n foreach ($this->fields as $field) {\n\n // Skip fields with no rules.\n if (!$field->getGumpRules()) {\n continue;\n }\n\n // Validate this field.\n $fieldError = $field->validate();\n\n // Add any errors to our error log.\n if ($fieldError) {\n $this->addError($field, $fieldError);\n }\n }\n }", "protected function _validate() {\n\t}", "private function collectValidateErrors()\n {\n // collect errors from current model\n $this->addModelErrors();\n }", "function validate()\n\t\t{\n\t\t\tif(count($this->validateFields)==0 || !is_array($this->validateFields)){\n\t\t\t\treturn false;\n\t\t\t}else{\n\t\t\t\t$error\t=\t0;\n\t\t\t\t$fieldPos=1;\n\t\t\t\t//First Validate For Empty on all fields //\n\t\t\t\tforeach($this->validateFields as $key=>$val){\n\t\t\t\t\t\n\t\t\t\t\t$checkedError\t=\t0;\n\t\t\t\t\t$parts\t=\texplode(\"/\",$val);\n\t\t\t\t\t$label\t=\t$parts[0];\n\t\t\t\t\t$valids\t=\texplode(\"|\",$parts[1]);\t\n\t\t\t\t\tif(in_array(\"EMPTY\",$valids) && $checkedError==0){\n\t\t\t\t\t\tif($this->validateEmpty($key)){\n\t\t\t\t\t\t\t$error++;\n\t\t\t\t\t\t\t$this->setError(\"Enter Mandatory Fields \");\n\t\t\t\t\t\t\t$checkedError\t=\t1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$fieldPos++;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif($error==0){\n\t\t\t\t\t$fieldPos=1;\n\t\t\t\t\tforeach($this->validateFields as $key=>$val){\n\t\t\t\t\t\n\t\t\t\t\t\t$checkedError\t=\t0;\n\t\t\t\t\t\t$parts\t=\texplode(\"/\",$val);\n\t\t\t\t\t\t$label\t=\t$parts[0];\n\t\t\t\t\t\t$valids\t=\texplode(\"|\",$parts[1]);\t\t\t\t\t\t\n\t\t\t\t\t\tif(in_array(\"EMAIL\",$valids)){\n\t\t\t\t\t\t\tif(!$this->validateEmail($key) && $checkedError==0 && $error==0){\n\t\t\t\t\t\t\t\t$error++;\n\t\t\t\t\t\t\t\t$this->setError(\"Invalid email id in field -\".$label.\"-\");\n\t\t\t\t\t\t\t\t$checkedError=1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\tif(in_array(\"NUMBER\",$valids)){\n\t\t\t\t\t\t\tif(!$this->validateNumeric($key) && $checkedError==0 && $error==0){\n\t\t\t\t\t\t\t\t$error++;\n\t\t\t\t\t\t\t\t$this->setError(\"Enter Numeric in field -\".$label.\"-\");\n\t\t\t\t\t\t\t\t$checkedError=1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(in_array(\"FILTER\",$valids)){\n\t\t\t\t\t\t\tif($this->validateSpecial($key) && $checkedError==0 && $error==0){\n\t\t\t\t\t\t\t\t$error++;\n\t\t\t\t\t\t\t\t$this->setError(\"Special chars not allowed in field -\".$label.\"-\");\n\t\t\t\t\t\t\t\t$checkedError=1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(in_array(\"URL\",$valids)){\n\t\t\t\t\t\t\tif(!$this->validateUrl($key) && $checkedError==0 && $error==0){\n\t\t\t\t\t\t\t\t$error++;\n\t\t\t\t\t\t\t\t$this->setError(\"Invalid website address in field -\".$label.\"-\");\n\t\t\t\t\t\t\t\t$checkedError=1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$fieldPos++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\t\t\t\t\n\t\t\t\n\t\t\tif($error==0){\n\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "public function validate_fields() {\n \n\t\t//...\n \n }", "public function validate(): void\n {\n $errors = $this->getErrors();\n $this->throwExceptionIfErrors($errors);\n }", "public function run() {\n \n foreach( $this->validation_rules as $var=>$opt) {\n \n /*\n $default_opt = [\n 'min' => false,\n 'max' => false,\n 'required' => false,\n ];\n $opt = array_merge($default_opt,$opt);\n */\n \n //if compulsary field is not set then no point validating further\n if(isset($opt['set']) && !$this->is_set($var)) {\n continue;\n } \n \n /* Trim whitespace from beginning and end of variable */\n if( array_key_exists('trim', $opt) ) {\n $this->source[$var] = trim( $this->source[$var] );\n }\n \n $is_required = false;\n \n //if required field is empty then no point validating further\n if( isset($opt['required']) && !$this->not_empty($var) ) {\n continue;\n }\n \n if( isset($opt['required']) ) {\n unset($opt['required']);\n $is_required = true;\n }\n \n if( isset($opt['set']) )\n unset($opt['set']);\n \n if( isset($opt['trim']) )\n unset($opt['trim']);\n \n foreach( $opt as $rule_type=>$rule_val ) {\n $raw_field_value = isset($this->source[$var]) ? $this->source[$var] : false;\n \n /*\n if(is_string($raw_field_value) && strlen($raw_field_value) == 0 && !$is_required)\n continue;\n */\n $result = true;\n if( method_exists($this, 'validate_'.$rule_type) ) {\n $t_params = is_array($rule_val) ? array_merge([$var], $rule_val) : [$var, $rule_val];\n //$result = call_user_func_array([$this, 'validate_'.$rule_type], [$var, $rule_val]);\n $result = call_user_func_array([$this, 'validate_'.$rule_type], $t_params);\n }\n elseif( method_exists($this->caller_obj, $rule_type) ) {\n $t_params = is_array($rule_val) ? array_merge([$this, $raw_field_value], $rule_val) : [$this, $raw_field_value, $rule_val];\n $result = call_user_func_array([$this->caller_obj, $rule_type], $t_params);\n }\n elseif( function_exists($rule_type) ) {\n $t_params = is_array($rule_val) ? array_merge([$this, $raw_field_value], $rule_val) : [$this, $raw_field_value, $rule_val];\n $result = call_user_func_array($rule_type, $t_params);\n }\n \n if($result === false)\n break;\n }\n }\n }", "public function validate()\n\t{\n\t\t$this->vars['errors'] = $this->validation_errors();\n\t}", "protected function setupValidation()\n {\n }", "public function doValidate(){\n if (!is_array($this->getValidates())){\n throw new \\Exception(\"dose this function must call setValidate() function first.\");\n }\n\n foreach($this->getValidates() as $k => $v){\n //$v = (ValidateData)$v;\n if (TextUtils::isEmpty($v->getInput()) && $v->getRequire() == true){\n $v->setResult(false);\n }else{\n $v->setResult(true);\n }\n\n if ($v->getResult() && !TextUtils::isEmpty($v->getInput())){\n switch($v->getValidator()){\n case ValidateData::VALIDATOR_CUSTOM:\n $v->setResult($this->check($v->getInput(),$v->getRegexp()));\n break;\n case ValidateData::VALIDATOR_COMPARE:\n $result = false;\n if (!TextUtils::isEmpty($v->getOperator())){\n switch ($v->getOperator()){\n case ValidateData::OPERATOR_EQUIVALENT:\n $result = $v->getInput() == $v->getTo();\n break;\n case ValidateData::OPERATOR_GREATER:\n $result = $v->getInput() > $v->getTo();\n break;\n case ValidateData::OPERATOR_LESS:\n $result = $v->getInput() < $v->getTo();\n break;\n case ValidateData::OPERATOR_EQUIVALENT_GREATER:\n $result = $v->getInput() >= $v->getTo();\n break;\n case ValidateData::OPERATOR_EQUIVALENT_LESS:\n $result = $v->getInput() <= $v->getTo();\n break;\n case ValidateData::OPERATOR_NOT_EQUIVALENT:\n $result = $v->getInput() != $v->getTo();\n break;\n }\n\n }\n $v->setResult($result);\n break;\n case ValidateData::VALIDATOR_LENGTH:\n $len = mb_strlen($v->getInput(),'UTF-8');\n $v->setResult($len >= $v->getMin());\n if ($v->getMax() > $v->getMin()){\n $v->setResult($len <= $v->getMax() && $len >= $v->getMin());\n }\n\n break;\n\n case ValidateData::VALIDATOR_RANGE:\n $v->setResult((int)$v->getInput() >= $v->getMin());\n if ($v->getMax() > $v->getMin()){\n $v->setResult((int)$v->getInput() <= $v->getMax() && (int)$v->getInput() >= $v->getMin());\n }\n\n break;\n default:\n $v->setResult($this->check($v->getInput(),$this->getValidator($v->getValidator())));\n break;\n }\n }\n }\n return $this->getError();\n }", "function everythingValid() {\n foreach($this->validation_log as $v) {\n if($v['status'] == self::VALIDATION_ERROR) {\n return false;\n } // if\n } // foreach\n \n return true;\n }", "private static function validation()\n {\n $files = ['Validator', 'ValidationResult'];\n $folder = static::$root.'Validation'.'/';\n\n self::call($files, $folder);\n\n //Initiate the validation surface\n Validator::ini();\n }", "public function validation();", "public abstract function validation();", "function validate() {\n // @todo Remove module_load_include() call when moving to Drupal core.\n module_load_include('inc', 'fapitng', '/includes/fapitng.validate');\n foreach ($this->validate_callbacks as $callback => $info) {\n if (!call_user_func_array($callback, array_merge(array($this->value), $info['arguments']))) {\n $this->errors[] = $info['message'];\n }\n }\n if ($this->errors) {\n $this->request['invalid_elements'][$this->id] = $this;\n }\n $this->validateInputElements($this->children);\n\n if (!empty($this->request['invalid_elements'])) {\n $this->request['rebuild'] = TRUE;\n return FALSE;\n }\n return TRUE;\n }", "protected function validate()\n {\n }", "public function runValidation() {\n if ($this->formSubmitted()) {\n $this->_runValidation();\n }\n return;\n }", "public function validate_fields() {\n \n\t\t\n \n\t\t}", "public function validation_errors()\n\t{\n\t\t$errors = array();\n\n\t\tforeach ($this->validators as $fld=>$arr)\n\t\t{\n\t\t\tforeach ($arr as $vl)\n\t\t\t{\n\t\t\t\t$vl->page = $this;\n\n\t\t\t\tif (!$vl->validate($fld, $this->vars))\n\t\t\t\t{\n\t\t\t\t\t$errors[$fld] = $vl->error_message($fld, $this->vars);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $errors;\n\t}", "function Validation()\n {\n $validate1 = array(\n 'FIRST_NAME' => array(\n 'mustNotEmpty' => array(\n 'rule' => 'notEmpty',\n 'message' => 'First name could not be blank',\n 'last' => true)\n ),\n \n 'DOB' => array(\n 'mustNotEmpty' => array(\n 'rule' => 'notEmpty',\n 'message' => 'Date Of Birth could not be blank',\n 'last' => true)\n ),\n 'FATHER_NAME' => array(\n 'mustNotEmpty' => array(\n 'rule' => 'notEmpty',\n 'message' => 'Father Name could not be blank',\n 'last' => true)\n ),\n 'RELIGION' => array(\n 'mustNotEmpty' => array(\n 'rule' => 'notEmpty',\n 'message' => 'Religion could not be blank',\n 'last' => true)\n ),\n 'CAST' => array(\n 'mustNotEmpty' => array(\n 'rule' => 'notEmpty',\n 'message' => 'Cast could not be blank',\n 'last' => true)\n ),\n 'SUB_CAST' => array(\n 'mustNotEmpty' => array(\n 'rule' => 'notEmpty',\n 'message' => 'Sub Cast could not be blank',\n 'last' => true)\n ),\n 'CAST_CAT_ID' => array(\n 'mustNotEmpty' => array(\n 'rule' => array('comparison', '!=', 0),\n 'message' => 'Please select Cast Category',\n 'last' => true)\n ),\n 'CLASS_ID' => array(\n 'mustNotEmpty' => array(\n 'rule' => array('comparison', '!=', 0),\n 'message' => 'Please select Class',\n 'last' => true)\n ),\n 'MEDIUM_ID' => array(\n 'mustNotEmpty' => array(\n 'rule' => array('comparison', '!=', 0),\n 'message' => 'Please select Medium',\n 'last' => true)\n ),\n 'PASSWORD' => array(\n 'mustNotEmpty' => array(\n 'rule' => 'notEmpty',\n 'message' => 'Please enter password',\n 'allowEmpty' => true,\n 'on' => 'create',\n 'last' => true),\n 'between' => array(\n 'rule' => array('between', 6, 25),\n 'message' => 'Password between 6 and 25 chars',\n 'required' => false,\n 'allowEmpty' => true,\n ),\n ),\n 'CONFIRM_PASSWORD' => array(\n 'mustMatch' => array(\n 'rule' => array('verifies'),\n 'message' => 'Both passwords must match',\n 'last' => true),\n ),\n 'COUNTRY_ID' => array(\n 'mustNotEmpty' => array(\n 'rule' => array('comparison', '!=', 0),\n 'message' => 'Please select Country',\n 'last' => true)\n ),\n\t\t\t 'GROUP' => array(\n 'mustNotEmpty' => array(\n 'rule' => 'notEmpty',\n 'message' => 'Group could not be blank',\n 'last' => true),\n\t\t\t 'mustNotEmpty' => array(\n 'rule' => array('comparison', '!=', 0),\n 'message' => 'Please select Group',\n 'last' => true)\n \t\t ),\n \n \n \n );\n $this->validate = $validate1;\n return $this->validates();\n }", "public static function validate() {}", "public function validate()\n {\n if ($this->amount <= 0) {\n $this->errors[0] = 'Wpisz poprawną kwotę!';\n }\n \n if (!isset($this->payment)) {\n $this->errors[1] = 'Wybierz sposób płatności!';\n }\n \n if (!isset($this->category)) {\n $this->errors[2] = 'Wybierz kategorię!';\n }\n }", "protected function localValidation()\n\t\t{\n\t\t}", "function passes() {\n return $this->startValidation();\n }", "public function validate() {\r\n // Name - this is required\r\n if ($this->description == '') {\r\n $this->errors[] = 'Description is required';\r\n } \r\n \r\n // Category number - must be a number\r\n if (!is_numeric($this->category)) {\r\n $this->category = 0;\r\n } \r\n \r\n // Item number - must be a number\r\n if (!is_numeric($this->item)) {\r\n $this->item = 0;\r\n } \r\n }", "public function validate() {\n }", "public function validate() {\n }", "public function validation()\n {\n $this->validate(new PresenceOf(\n array(\n \"field\" => \"timestamp\",\n \"message\" => \"The field timestamp is required\"\n )\n ));\n\n $this->validate(new Regex(\n array(\n \"field\" => \"ip\",\n \"pattern\" => '/^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\z/',\n \"message\" => \"The email must be unique\"\n )\n ));\n\n $this->validate(new Numericality(\n array(\n \"field\" => \"load_threshold\",\n \"message\" => \"The load threshold must be numeric\"\n )\n ));\n\n return $this->validationHasFailed() != true;\n }", "private function validaAll()\r\n {\r\n $this->setId(filter_input(INPUT_POST, 'id') ?? time())\r\n ->setTitle(filter_input(INPUT_POST, 'title', FILTER_SANITIZE_SPECIAL_CHARS))\r\n ->setContent(filter_input(INPUT_POST, 'content', FILTER_SANITIZE_SPECIAL_CHARS))\r\n ->setBeginningDate(filter_input(INPUT_POST, 'beginning_date', FILTER_SANITIZE_SPECIAL_CHARS))\r\n ->setEndingDate(filter_input(INPUT_POST, 'ending_date', FILTER_SANITIZE_SPECIAL_CHARS));\r\n\r\n // Inicia a Validação dos dados\r\n $this->validaId()\r\n ->validaTitle()\r\n ->validaContent()\r\n ->validaBeginningDate()\r\n ->validaEndingDate();\r\n }", "public function validate()\n {\n // query for validation information\n // set the validation flag\n // close database\n }", "public function validate()\n {\n foreach ($this->rules() as $attribute => $rules) {\n $value = $this->{$attribute};\n foreach ($rules as $rule) {\n $ruleName = $rule;\n if (!is_string($ruleName)) {\n $ruleName = $rule[0];\n }\n if ($ruleName === self::RULE_REQUIRED && !$value) {\n $this->addErrorForRule($attribute, self::RULE_REQUIRED);\n }\n if ($ruleName === self::RULE_EMAIL && !filter_var($value, FILTER_VALIDATE_EMAIL)) {\n $this->addErrorForRule($attribute, self::RULE_EMAIL);\n }\n if ($ruleName === self::RULE_MIN && strlen($value) < $rule['min']) {\n $this->addErrorForRule($attribute, self::RULE_MIN, $rule);\n }\n if ($ruleName === self::RULE_MAX && strlen($value) > $rule['max']) {\n $this->addErrorForRule($attribute, self::RULE_MAX, $rule);\n }\n if ($ruleName === self::RULE_MATCH && $value !== $this->{$rule['match']}) {\n $rule['match'] = $this->getLabel($rule['match']);\n $this->addErrorForRule($attribute, self::RULE_MATCH, $rule);\n }\n if ($ruleName === self::RULE_UNIQUE) {\n $className = $rule['class'];\n $uniqueAttr = $rule['attribute'] ?? $attribute;\n $tableName = $className::tableName();\n $statement = Application::$app->db->prepare(\"SELECT * FROM $tableName WHERE $uniqueAttr = :attr\");\n $statement->bindValue(\":attr\", $value);\n $statement->execute();\n $record = $statement->fetchObject();\n if ($record) {\n $this->addErrorForRule($attribute, self::RULE_UNIQUE, ['field' => $this->getLabel($attribute)]);\n }\n }\n }\n }\n\n return empty($this->errors);\n }", "public function validate();", "public function validate();", "public function validate();", "public function validate();", "public function validate();", "public function validate();", "public function validate();", "public function validate();", "public function validate();", "public function validate();", "public function validate();", "public function validate();", "function validate() {\n foreach ($this->validate_callbacks as $callback => $info) {\n $info += array(\n 'arguments' => array(),\n );\n if (!call_user_func_array($callback, array_merge(array($this->value), $info['arguments']))) {\n $this->errors[] = $info['message'];\n $this->form->request['invalid_elements'][$this->id] = $this;\n }\n }\n\n return empty($this->errors);\n }", "function validate()\n\t{\n\t}", "public function validationElements(){\n $return=TRUE;\n foreach(self::getElements() as $key=>$items){\n if(\n NULL!==$items->getValidators() &&\n is_array($items->getValidators()) &&\n count($items->getValidators())\n ){\n $result=self::validationElement($items);\n $return=(TRUE===$result && TRUE!==$return)?$return:$result;\n }\n \n }\n return $return;\n }", "public function validate(): bool\n {\n foreach ($this->rules() as $attribute => $rules) {\n\n $value = $this->{$attribute};\n //We loop twice because some rules have array rules within them\n foreach ($rules as $rule) {\n /* If $rule is a string take the $rule and assign it to to $ruleName*/\n $ruleName = $rule;\n /* If $rule is not a string i.e an array, take the first element of the array i.e.\n *$rule[0] and assign it to to $ruleName\n */\n if(!is_string($rule))\n {\n $ruleName = $rule[0];\n }\n /*\n * If any attribute has a rule required and no value exists, add an error to the\n * errors array and pass the attribute and the rule as parameters to the addErrors function\n */\n if($ruleName === self::RULE_REQUIRED && !$value)\n {\n $this->addErrors($attribute, self::RULE_REQUIRED);\n }\n /*\n * If any attribute has a rule email and the value does not pass as valid email, add to the\n * errors array and pass the attribute and the rule as parameters to the addErrors function\n */\n\n if($ruleName === self::RULE_EMAIL && !filter_var($value, FILTER_VALIDATE_EMAIL))\n {\n $this->addErrors($attribute, self::RULE_EMAIL);\n }\n\n /*\n * If any attribute has a rule match and the value does not match with the value passed\n * in the rule array where this rule is found i.e $this->{$rule['match']} which corresponds\n * to password, so in short, $this->password, if they don't match add error to the\n * errors array and pass the attribute and the rule as parameters to the addErrors function\n */\n\n if($ruleName === self::RULE_MATCH && $value !== $this->{$rule['match']})\n {\n $this->addErrors($attribute, self::RULE_MATCH);\n }\n\n /*\n * This control structure if the user input is unique to the database. If it is not,\n * it adds an error to the errors array and pass the attribute and\n * the rule as parameters to the addErrors function\n * The model class that returns the unique set of rules also returns the tableName and the attributes\n * (column names in db) specific to that model class\n * The unique rule is rendered differently to cater for various classes, an array with the unique\n * rule passed along with the self::class that calls the active model class which extends to model\n * and attr is also passed along withe corresponding attribute (this is optional)\n *\n */\n\n if($ruleName === self::RULE_UNIQUE)\n {\n /*\n * Here, the active class is gotten along with the tablename and attribute which we\n * call uniqueAttr specific to the active model class\n */\n $className = $rule['class'];\n $tableName = $className::tableName();\n $uniqueAttr = $rule['attr'] ?? $attribute;\n\n /*\n * We prepare a statement that selects all from the tablename gotten where uniqueAttr\n * is typed param :attr (to avoid sql injection)\n * :attr is bound to $value which is the user input (remember data was loaded before\n * passing it through the validate() function) and executed and object of the result is fetched\n */\n\n $statement = Application::$app->db->prepare(\"SELECT * FROM $tableName WHERE $uniqueAttr = :attr\");\n $statement->bindValue(\":attr\", $value);\n $statement->execute();\n $record = $statement->fetchObject();\n\n /*\n * If a record exists, add an Error, if not it returns true\n */\n if($record)\n {\n $this->addErrors($uniqueAttr, self::RULE_UNIQUE);\n }\n\n }\n /*\n * Added a rule valid start date and valid end date that check if the start date is before\n * the current date and if the end date is before the start date of the project\n * If the rule name has valid_start_date and the value is before (here we use < )\n * the date of today which is passed as a corresponding value of start_date in the\n * RULE_VALID_START_DATE array that is passed. Then add an error for the corresponding\n * attribute and rule passing them as arguments in the addErrors function\n */\n\n if ($ruleName === self::RULE_VALID_START_DATE && $value < $rule['start_date'])\n {\n $this->addErrors('start_date', self::RULE_VALID_START_DATE);\n }\n\n /*\n * If the attribute has rule valid_end_date and the value is before or equal to the\n * day of the project start date. Then add an error for the corresponding\n * attribute and rule passing them as arguments in the addErrors function\n */\n\n if ($ruleName === self::RULE_VALID_END_DATE && $value <= $this->{$rule['end_date']})\n {\n $this->addErrors('end_date', self::RULE_VALID_END_DATE);\n }\n\n }\n }\n /*\n * If all the above conditions are met it means validation passed for the data that was passed\n * to the validate function. If so it means the errors array is empty\n * Then if validate passed, return if empty errors array, as true. If errors array is not empty\n * validate function returns false\n */\n return empty($this->errors);\n\n }", "protected function performValidation()\n {\n // no required arguments\n }", "public function validate()\n {\n if ($this->_bypassValidation === true) {\n return;\n }\n \n $result = $this->initValidator()->validateAll();\n if (is_array($result)) {\n throw new Zikula_Exception($result['message'], $result['code'], $result['debugArray']);\n }\n }", "function validate() {\n\t\t$this->_validationErrors = array();\n\t\tif (null === $this->getsession_id()) {\n\t\t\t$this->_validationErrors[] = 'session_id must not be null';\n\t\t}\n\t\tif (null === $this->getclassroom_id()) {\n\t\t\t$this->_validationErrors[] = 'classroom_id must not be null';\n\t\t}\n\t\tif (null === $this->getname()) {\n\t\t\t$this->_validationErrors[] = 'name must not be null';\n\t\t}\n\t\treturn 0 === count($this->_validationErrors);\n\t}", "protected function _processForm() {\n\t\t$formValidators = $this->getElement()->getValidators();\n\n\t\t$constraints = array();\n\t\tforeach ($formValidators as $validator) {\n\t\t\t$situations = array();\n\t\t\t$conditions = array();\n\t\t\tif (isset($validator['situations'])) {\n\t\t\t\tforeach ($validator['situations'] as $name => $validators) {\n\t\t\t\t\t$situations[$name] = $this->_generateClientSideValidation($name, $this->_convertFormValidation($validators), false);\n\t\t\t\t}\n\t\t\t}\n\t\t\tforeach ($validator['conditions'] as $name => $validators) {\n\t\t\t\t// Make the field trigger itself.\n\t\t\t\tif (!array_key_exists($name, $this->_validationTriggers)) {\n\t\t\t\t\t$this->_validationTriggers[$name] = array();\n\t\t\t\t}\n\t\t\t\t$this->_validationTriggers[$name][$name] = true;\n\n\t\t\t\t$clientsideValidation = $this->_generateClientSideValidation($name, $this->_convertFormValidation($validators));\n\t\t\t\tif (isset($validator['message'])) {\n\t\t\t\t\tforeach ($clientsideValidation as $rule => & $message) {\n\t\t\t\t\t\t$message = $validator['message'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$this->_validatedFields[$name][] = array(\n\t\t\t\t\t'situations' => $situations,\n\t\t\t\t\t'conditions' => array($name => $clientsideValidation)\n\t\t\t\t);\n\n\t\t\t\t// Now ensure that each element that determines whether the condition needs to be satisfied trigger the checks on this element.\n\t\t\t\tforeach (array_keys($situations) as $trigger) {\n\t\t\t\t\t$this->_validationTriggers[$trigger][$name] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function check() {\n $field = null;\n $this->_errors = [];\n $fields = $this->_getField();\n\n foreach ($this->_constraints as $constraints) {\n foreach ($fields as $value) {\n switch ($constraints['type']) {\n case self::EQUAL:\n if ($value != $constraints['value']) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n\n case self::DIFFERENT:\n if ($value == $constraints['value']) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n\n case self::MORETHAN:\n if ($value <= $constraints['value']) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n\n case self::LESSTHAN:\n if ($value >= $constraints['value']) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n\n case self::BETWEEN:\n if ($value < $constraints['value'][0] || $value > $constraints['value'][1]) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n\n case self::IN:\n if (!in_array($value, $constraints['value'])) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n\n case self::NOTIN:\n if (in_array($value, $constraints['value'])) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n\n case self::LENGTH:\n if (strlen($value) != $constraints['value']) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n\n case self::LENGTHMIN:\n if (strlen($value) < $constraints['value']) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n\n case self::LENGTHMAX:\n if (strlen($value) > $constraints['value']) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n\n case self::LENGTHIN:\n if (!in_array(strlen($value), $constraints['value'])) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n\n case self::LENGTHBETWEEN:\n if (strlen($value) < $constraints['value'][0] || strlen($value) > $constraints['value'][1]) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n\n case self::REGEX:\n if (!preg_match($constraints['value'], $value)) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n\n case self::URL:\n if (!filter_var($value, FILTER_VALIDATE_URL)) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n\n case self::MAIL:\n if (!filter_var($value, FILTER_VALIDATE_EMAIL)) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n\n case self::INT:\n if (!filter_var($value, FILTER_VALIDATE_INT)) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n\n case self::FLOAT:\n if (!filter_var($value, FILTER_VALIDATE_FLOAT)) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n\n case self::ALPHA:\n if (!preg_match('#^([a-zA-Z]+)$#', $value)) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n\n case self::ALPHANUM:\n if (!preg_match('#^([a-zA-Z0-9]+)$#', $value)) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n\n case self::ALPHADASH:\n if (!preg_match('#^([a-zA-Z0-9_-]+)$#', $value)) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n\n case self::IP:\n if (!filter_var($value, FILTER_VALIDATE_IP)) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n\n case self::SQL:\n /** @var $value \\Gcs\\Framework\\Core\\Orm\\Entity\\Entity */\n\n $sql = new Sql();\n $sql->query('query-form-validation', $constraints['value']['query']);\n $sql->vars('value', $value);\n\n if (count($constraints['value']['vars']) > 0) {\n $sql->vars($constraints['value']['vars']);\n }\n\n $data = $sql->fetch('query-form-validation', Sql::PARAM_FETCHCOLUMN);\n\n $querySuccess = true;\n\n switch ($constraints['value']['constraint']) {\n case '==':\n if ($data != $constraints['value']['value']) {\n $querySuccess = false;\n }\n break;\n\n case '!=':\n if ($data == $constraints['value']['value']) {\n $querySuccess = false;\n }\n break;\n\n case '>':\n if ($data <= $constraints['value']['value']) {\n $querySuccess = false;\n }\n break;\n\n case '<':\n if ($data >= $constraints['value']['value']) {\n $querySuccess = false;\n }\n break;\n }\n\n if (!$querySuccess) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n\n case self::CUSTOM:\n /** @var object[] $constraints */\n if ($constraints['value']->filter() == false) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['value']->error()]);\n }\n break;\n }\n }\n\n switch ($constraints['type']) {\n case self::COUNT:\n if (count($fields) != $constraints['value']) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n\n case self::COUNTMIN:\n if (count($fields) < $constraints['value']) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n\n case self::COUNTMAX:\n if (count($fields) > $constraints['value']) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n\n case self::COUNTIN:\n /** @var array $constraints */\n if (!in_array(count($fields), $constraints['value'])) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n\n case self::EXIST:\n if (count($fields) == 1 && $fields[0] == null) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n\n case self::NOTEXIST:\n if (count($fields) == 1 && $fields[0] != null) {\n array_push($this->_errors, ['name' => $this->_field, 'field' => $this->_label, 'message' => $constraints['message']]);\n }\n break;\n }\n }\n }", "public function validateRules();", "public function prepareValidators()\n {\n $validators = $this->getValidatorBuilder()->build();\n\n if (!$validators) return;\n\n foreach($validators as $validator)\n $this->validators[] = $validator;\n }", "public function validate(){\n\t\t// Loop through model's rules array.\n\t\tforeach($this->rules() as $field => $rules){\n\t\t\t// Take the value of field this rule is for.\n\t\t\t$value = $this->{$field};\n\t\t\t// Loop through all rules for this field.\n\t\t\tforeach($rules as $rule){\n\t\t\t\t$ruleType = $rule;\n\t\t\t\t// If the rule is an array, not string, read its type from first index.\n\t\t\t\tif(is_array($ruleType)){\n\t\t\t\t\t$ruleType = $ruleType[0];\n\t\t\t\t}\n\n\t\t\t\t// Rule: field is required.\n\t\t\t\tif($ruleType === 'required' && !$value){\n\t\t\t\t\t$this->addError($field, 'required', $rule);\n\t\t\t\t}\n\t\t\t\t// Rule: field value must validate as email.\n\t\t\t\telse if($ruleType === 'email' && !filter_var($value, FILTER_VALIDATE_EMAIL)){\n\t\t\t\t\t$this->addError($field, 'email', $rule);\n\t\t\t\t}\n\t\t\t\t// Rule: string length comparisons.\n\t\t\t\telse if($ruleType === 'length'){\n\t\t\t\t\t// String has rule for minimum length.\n\t\t\t\t\tif(array_key_exists('min', $rule) && $rule['min'] > strlen($value)){\n\t\t\t\t\t\t$this->addError($field, 'min', $rule);\n\t\t\t\t\t}\n\t\t\t\t\t// String has rule for maximum length.\n\t\t\t\t\tif(array_key_exists('max', $rule) && $rule['max'] < strlen($value)){\n\t\t\t\t\t\t$this->addError($field, 'max', $rule);\n\t\t\t\t\t}\n\t\t\t\t\t// String has rule for exact length.\n\t\t\t\t\tif(array_key_exists('equal', $rule) && $rule['equal'] != strlen ($value)){\n\t\t\t\t\t\t$this->addError($field, 'equal', $rule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Rule: field value must match comparison field's value.\n\t\t\t\telse if($ruleType === 'compare' && $value != $this->{$rule['field']}){\n\t\t\t\t\t$this->addError($field, 'compare', $rule);\n\t\t\t\t}\n\t\t\t\t// Rule: number comparisons.\n\t\t\t\telse if($ruleType === 'numeric'){\n\t\t\t\t\t// Value must validate to an integer number.\n\t\t\t\t\tif(array_key_exists('integer', $rule) && $rule['integer'] && filter_var($value, FILTER_VALIDATE_INT) === FALSE){\n\t\t\t\t\t\t$this->addError($field, 'integer', $rule);\n\t\t\t\t\t}\n\t\t\t\t\t// Value must validate to float number.\n\t\t\t\t\telse if((!array_key_exists('integer', $rule) || (array_key_exists('integer', $rule) && !$rule['integer'])) && filter_var($value, FILTER_VALIDATE_FLOAT) === FALSE){\n\t\t\t\t\t\t$this->addError($field, 'numeric', $rule);\n\t\t\t\t\t}\n\t\t\t\t\t// Value must be at least a minimum number.\n\t\t\t\t\tif(array_key_exists('min', $rule) && $rule['min'] > floatval($value)){\n\t\t\t\t\t\t$this->addError($field, 'numericmin', $rule);\n\t\t\t\t\t}\n\t\t\t\t\t// Value cannot be larger than a maximum number.\n\t\t\t\t\tif(array_key_exists('max', $rule) && $rule['max'] < floatval($value)){\n\t\t\t\t\t\t$this->addError($field, 'numericmax', $rule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Rule: unique database entry.\n\t\t\t\telse if($ruleType === 'unique'){\n\t\t\t\t\t// Check for match in database.\n\t\t\t\t\t$found = $this->findOne([\"$field\" => \"$value\"]);\n\t\t\t\t\tif($found){\n\t\t\t\t\t\t$this->addError($field, 'unique', $rule);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t// Rule: on action only.\n\t\t\t\telse if($ruleType === 'on'){\n\t\t\t\t\t// If field is used on create only and request is not for create, field is not used.\n\t\t\t\t\tif($rule['action'] === 'create' && !$this->isCreate()){\n\t\t\t\t\t\t$this->ignoreFields[] = $field;\n\t\t\t\t\t}\n\t\t\t\t\t// IF field is used on update only and request is not for update, field is not used.\n\t\t\t\t\telse if($rule['action'] === 'update' && !$this->isUpdate()){\n\t\t\t\t\t\t$this->ignoreFields[] = $field;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn empty($this->errors);\n\t}", "public function validation()\n\t{\n\t\t//\n\t\t\t\n\t\t\t\treturn true;\n\t\t\t\n\t}", "protected function preValidate() {}", "public function validate()\n {\n }", "public function validate()\n {\n }", "abstract public function validate();", "abstract public function validate();", "public function validate()\n {\n // TODO implement this\n }", "protected function configureValidations()\n {\n }", "public static function validate()\n\t{\n\t\tself::engine()->validate();\n\t}", "function validate( $values )\n {\n\n $this->errorCount = 0;\n $this->errors = array();\n\n foreach ( $this->rules as $rule ) {\n $key = $rule[\"key\"];\n\n switch( $rule['type']) {\n case \"required\":\n if (!$this->validRequired($values[$rule['key']])\n ) {\n $this->errors[] = \"Field $key is required\";\n $this->errorCount++;\n }\n break;\n case \"minlenght\":\n if (!$this->validMinLength($values[$rule['key']])\n ) {\n $this->errors[]\n = \"Field $key must have at least \" .\n $rule['arg'] . \" characters.\";\n $this->errorCount++;\n }\n break;\n case \"maxlenght\":\n if (!$this->validMaxLength($values[$rule['key']])\n ) {\n $this->errors[]\n = \"Field $key must have at most \" .\n $rule['arg'] . \" characters.\";\n $this->errorCount++;\n }\n break;\n case \"email\":\n if (!$this->validEmail($values[$rule['key']])\n ) {\n $this->errors[] = \"Field $key must be a valid email\";\n $this->errorCount++;\n }\n break;\n case \"url\":\n if (!$this->validUrl($values[$rule['key']])\n ) {\n $this->errors[] = \"Field $key must be a valid url\";\n $this->errorCount++;\n }\n break;\n case \"integer\":\n if (!$this->validInt($values[$rule['key']])\n ) {\n $this->errors[] = \"Field $key must be a valid integer\";\n $this->errorCount++;\n }\n break;\n case \"IP\":\n if (!$this->validIP($values[$rule['key']])\n ) {\n $this->errors[] = \"Field $key must be a valid IP address\";\n $this->errorCount++;\n }\n break;\n case \"regex\":\n if (!$this->validateRegEx($rule['arg'], $values[$rule['key']])\n ) {\n $this->errors[]\n = \"Field $key must be have the regular \" .\n \"expression pattern \" . $rule['arg'];\n $this->errorCount++;\n }\n break;\n } // end switch\n } // end foreach\n\n if ($this->errorCount > 0 ) {\n return false;\n } else {\n return true;\n }\n\n }", "public function validation()\n {\n $validator = new Validation();\n\n //Validating 'number' field to only contain digits\n $validator->add(\n 'number',\n new Digit(\n [\n 'field' => 'number',\n 'message' => 'You must enter a numeric values for this field',\n ]\n )\n );\n\n //Validating 'street' field to not be null or empty\n $validator->add(\n 'street',\n new PresenceOf(\n [\n 'field' => 'street',\n 'message' => 'You must enter a value before submitting the form',\n ]\n )\n );\n\n //Validating 'zipcode' field to not be null or empty\n $validator->add(\n 'zipcode',\n new PresenceOf(\n [\n 'field' => 'zipcode',\n 'message' => 'You must enter a value before submitting the form',\n ]\n )\n );\n\n //Validating 'city' field to not be null or empty\n $validator->add(\n 'city',\n new PresenceOf(\n [\n 'field' => 'city',\n 'message' => 'You must enter a value before submitting the form',\n ]\n )\n );\n \n // Validate the validator\n return $this->validate($validator);\n }", "public function validateForm(){\n foreach(self::$fields as $field){\n if(!array_key_exists($field, $this->data)){\n trigger_error(\"$field is not presented in data\");\n return;\n } \n }\n $this->validateUsername();\n $this->validatePassword();\n $this->validateEmail();\n $this->validateFullname();\n return $this->errors;\n }", "function fails() {\n return !($this->startValidation());\n }", "private function process()\n {\n foreach ($this->rules as $key => $rule)\n {\n $exp = explode('|', $rule);\n\n foreach ($exp as $method)\n {\n if (strstr($method, ':')) list($method, $param) = explode(':', $method, 2);\n else $param = '';\n \n $input = array_get($this->input, $key);\n\n if (method_exists($this, \"process_$method\") === false)\n {\n if (!$input) continue;\n \n if (array_key_exists($method, self::$custom))\n {\n if (call_user_func(self::$custom[$method], $input, $param, $this) !== true) $this->set_error($key, $method);\n } else {\n throw new ValidatorNotFound(\"No validator exists for [$method]\");\n }\n } else {\n if (($input || $method == 'required') && $this->{\"process_$method\"}($input, $param, $this) !== true) $this->set_error($key, $method);\n }\n }\n }\n }", "public function validation()\n {\n\n }", "public function validate() {\n if (!$this->_data) {\n return false;\n }\n\n $fields = $this->getFields();\n $messages = $this->getMessages();\n\n foreach ($this->_data as $field => $value) {\n if (empty($this->_rules[$field])) {\n continue;\n }\n\n foreach ($this->_rules[$field] as $rule => $params) {\n $options = $params['options'];\n $arguments = $options;\n array_unshift($arguments, $value);\n\n // Use G11n if it is available\n if (class_exists('Titon\\G11n\\Utility\\Validate')) {\n $class = 'Titon\\G11n\\Utility\\Validate';\n } else {\n $class = 'Titon\\Utility\\Validate';\n }\n\n if (!call_user_func(array($class, 'hasMethod'), $rule)) {\n throw new InvalidValidationRuleException(sprintf('Validation rule %s does not exist', $rule));\n }\n\n // Prepare messages\n $message = $params['message'];\n\n if (!$message && isset($messages[$rule])) {\n $message = $messages[$rule];\n }\n\n if ($message) {\n $message = String::insert($message, array_map(function($value) {\n return is_array($value) ? implode(', ', $value) : $value;\n }, $options + array(\n 'field' => $field,\n 'title' => $fields[$field]\n )));\n } else {\n throw new InvalidValidationRuleException(sprintf('Error message for rule %s does not exist', $rule));\n }\n\n if (!call_user_func_array(array($class, $rule), $arguments)) {\n $this->addError($field, $message);\n break;\n }\n }\n }\n\n return empty($this->_errors);\n }", "public function validation()\n {\n $this->assertFalse($this->denyValidator->validate(123));\n $this->assertFalse($this->denyValidator->validate('1234'));\n $this->assertFalse($this->denyValidator->validate(true));\n $this->assertFalse($this->denyValidator->validate(null));\n $this->assertFalse($this->denyValidator->validate(new stdClass()));\n }", "function formValidation() {\n #Firstname Validation\n if (isset($_POST['firstname']) && $_POST['firstname']) {\n if (strlen($_POST['firstname']) < 2) {\n $this->formErrors[] = \"First name must be at least 2 characters long.\";\n }\n if (!valid_text($_POST['firstname'])) {\n $this->formErrors[] = \"First name contains invalid characters. Check for quotes.\";\n }\n } else {\n $this->formErrors[] = \"First name is a required field\";\n }\n #Lastname Validation\n if (isset($_POST['lastname']) && $_POST['lastname']) {\n if (strlen($_POST['lastname']) < 2) {\n $this->formErrors[] = \"Last name must be at least 2 characters long.\";\n }\n if (!valid_text($_POST['lastname'])) {\n $this->formErrors[] = \"Last name contains invalid characters. Check for quotes.\";\n }\n } else {\n $this->formErrors[] = \"Last name is a required field\";\n }\n #Address One Validation\n if (isset($_POST['addressOne']) && $_POST['addressOne']) {\n //Do nothing .. Not doing any AVS checks, so hopefully they give us a good address\n \n } else {\n $this->formErrors[] = \"Address Field One is required\";\n }\n #City Validation\n if (isset($_POST['city']) && $_POST['city']) {\n //Do nothing .. Not doing any AVS checks, so hopefully they give us a good city\n \n } else {\n $this->formErrors[] = \"City is required\";\n }\n #State Validation\n if (isset($_POST['state']) && $_POST['state']) {\n //Do nothing .. Not doing any AVS checks, so hopefully they give us a good state\n \n } else {\n $this->formErrors[] = \"State is required\";\n }\n #Postal Code Validation\n if (isset($_POST['postalCode']) && $_POST['postalCode']) {\n //Do nothing .. Not doing any AVS checks, so hopefully they give us a good zip\n \n } else {\n $this->formErrors[] = \"Zipcode is required\";\n }\n #Email Validation\n if (isset($_POST['email']) && $_POST['email']) {\n if (validate_email(format_trim($_POST['email']))) {\n //Do nothing .. its a valid email, i guess\n \n } else {\n $this->formErrors[] = \"Email is not valid.\";\n }\n }\n #Position Validation\n \n /** - This is no longer required because position is a radio button with a default value.\n if ((isset($_POST['goalie']) && $_POST['goalie'] == \"on\")\n || (isset($_POST['defense']) && $_POST['defense'] == \"on\")\n || (isset($_POST['center']) && $_POST['center'] == \"on\")\n || (isset($_POST['wing']) && $_POST['wing'] == \"on\")) {\n //Do nothing .. At least one position is checked\n } else {\n $this->formErrors[] = \"Must provide at least one position you would like to play. (Goalie, Defense, Center, Wing)\";\n }\n */\n #Jersey Information Validation\n #Jersey Choice 1 Validation\n //(isset($_POST['jerseyNumChoiceTwo']) && $_POST['jerseyNumChoiceTwo']) || $_POST['jerseyNumChoiceTwo'] == 0\n if ((isset($_POST['jerseyNumChoiceOne']) && $_POST['jerseyNumChoiceOne'] > - 1) || $_POST['jerseyNumChoiceOne'] == 0) {\n //if (is_numeric($_POST['jerseyNumChoiceOne']) && is_int(intval($_POST['jerseyNumChoiceOne']))) {\n if (strlen($_POST['jerseyNumChoiceOne']) == strlen(intval($_POST['jerseyNumChoiceOne']))) {\n if (intval($_POST['jerseyNumChoiceOne']) < 0 || intval($_POST['jerseyNumChoiceOne']) > 99) {\n $this->formErrors[] = \"Jersey Number Choice 1 must be between 0 - 99.\";\n }\n } else {\n $this->formErrors[] = \"Must provide a valid jersey number for Choice 1. (0 - 99)\";\n }\n } else {\n $this->formErrors[] = \"Must provide a valid jersey number for Choice 1. (0 - 99)\";\n }\n #Jersey Choice 2 Validation\n if ((isset($_POST['jerseyNumChoiceTwo']) && $_POST['jerseyNumChoiceTwo'] > - 1) || $_POST['jerseyNumChoiceTwo'] == 0) {\n if (strlen($_POST['jerseyNumChoiceTwo']) == strlen(intval($_POST['jerseyNumChoiceTwo']))) {\n if (intval($_POST['jerseyNumChoiceTwo']) < 0 || intval($_POST['jerseyNumChoiceTwo']) > 99) {\n $this->formErrors[] = \"Jersey Number Choice 2 must be between 0 - 99.\";\n }\n } else {\n $this->formErrors[] = \"Must provide a valid jersey number for Choice 2. (0 - 99)\";\n }\n } else {\n $this->formErrors[] = \"Must provide a valid jersey number for Choice 2. (0 - 99)\";\n }\n #Jersey Choice 3 Validation\n if ((isset($_POST['jerseyNumChoiceThree']) && $_POST['jerseyNumChoiceThree'] > - 1) || $_POST['jerseyNumChoiceThree'] == 0) {\n if (strlen($_POST['jerseyNumChoiceThree']) == strlen(intval($_POST['jerseyNumChoiceThree']))) {\n if (intval($_POST['jerseyNumChoiceThree']) < 0 || intval($_POST['jerseyNumChoiceThree']) > 99) {\n $this->formErrors[] = \"Jersey Number Choice 3 must be between 0 - 99.\";\n }\n } else {\n $this->formErrors[] = \"Must provide a valid jersey number for Choice 3. (0 - 99)\";\n }\n } else {\n $this->formErrors[] = \"Must provide a valid jersey number for Choice 3. (0 - 99)\";\n }\n #Will Sub? Validation\n if (isset($_POST['willSub']) && $_POST['willSub'] == \"Y\") {\n if ((isset($_POST['sunSub']) && $_POST['sunSub'] == \"on\") || (isset($_POST['monSub']) && $_POST['monSub'] == \"on\") || (isset($_POST['tueSub']) && $_POST['tueSub'] == \"on\") || (isset($_POST['wedSub']) && $_POST['wedSub'] == \"on\") || (isset($_POST['thuSub']) && $_POST['thuSub'] == \"on\") || (isset($_POST['friSub']) && $_POST['friSub'] == \"on\") || (isset($_POST['satSub']) && $_POST['satSub'] == \"on\")) {\n //Do nothing, they picked a day that they can sub\n \n } else {\n $this->formErrors[] = \"Since you answered yes to: Will you sub?, you must indicate at least one day you are willing to sub.\";\n }\n }\n return $this->get_formErrors();\n }", "public function validates()\n {\n if( ! $this->hydrated)\n {\n $this->hydrate();\n }\n\n return $this->runValidation($this->elements, $this->rules);\n }", "function validates($data){\n\t\t$errors = array();\n\t\tforeach($this->validates as $k=>$v){\n\t\t\tif(!isset($data->$k)){\n\t\t\t\t$errors[$k] = $v['message'];\n\t\t\t}else{\n\t\t\t\tif($v['rule'] == 'notEmpty'){\n\t\t\t\t\tif(empty($data->$k)){\n\t\t\t\t\t\t$errors[$k] = $v['message'];\n\t\t\t\t\t} \n\t\t\t\t}elseif(!preg_match( '/^'.$v['rule'] .'$/', $data->$k)){\n\t\t\t\t\t$errors[$k] = $v['message'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->errors = $errors;\n\n\t\tif(isset($this->Form)){\n\t\t\t$this->Form->errors = $errors;\n\t\t}\n\t\tif(empty($errors)){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public static function validate()\n {\n parent::validate();\n foreach(static::getRules() as $field => $rules)\n {\n if(array_key_exists('captcha', $rules))\n {\n $captchaResponse = \\helper\\Captcha::recaptchaValidate($_POST[$rules['captcha']], $_POST[$field]);\n // if captcha error...\n if($captchaResponse !== true)\n {\n static::$errors[] = array($field => _('Incorrect captcha solution'));\n }\n }\n }\n return (0 === count(static::$errors));\n }", "public function validate()\n {\n return $this->validateId()\n && $this->validateCreatedAt()\n && $this->validateOnBoardingPercentage()\n && $this->validateCountApplication()\n && $this->validateCountAcceptedApplications();\n }", "public static function applyValidation() {\n foreach (self::$_rules as $rk => $rv) {\n $_element = self::$_rules[$rk];\n if (is_array($_element)) {\n foreach ($_element as $key => $ruleValue) {\n if (!self::$_elements[$rk]['inValid']) {\n $method = \"_\" . $key;\n self::$_inputElement = $rk;\n self::$_elementValue = self::$_values[$rk];\n self::$_validationRule = $key;\n self::$_ruleValue = $ruleValue;\n\n self::$method();\n }\n }\n }\n }\n\n if (count(self::$_response) == 0) {\n return true;\n }\n\n return self::$_response;\n }", "protected function mainValidation()\n {\n $this->validator->add(\n 'title',\n new StringLength([\n 'max' => 50\n ])\n );\n\n $this->validator->add(\n 'description',\n new StringLength([\n 'max' => 200,\n 'allowEmpty' => true\n ])\n );\n }", "public function validateAll()\n {\n $errorMsgs = array();\n return $errorMsgs;\n }", "public function validate()\n {\n return $this->ensureExtensionLoaded() &&\n $this->validateSourceLocation() &&\n $this->validateCondition() &&\n $this->validateExpressions();\n }" ]
[ "0.7908606", "0.7775859", "0.7438388", "0.7438083", "0.72354776", "0.7232886", "0.7225855", "0.72098666", "0.7090998", "0.6970611", "0.6954771", "0.69534194", "0.69190234", "0.69086576", "0.68880403", "0.68835235", "0.6826548", "0.678263", "0.67487085", "0.6705239", "0.66913337", "0.6679063", "0.6674549", "0.6609888", "0.65890497", "0.65683275", "0.6566806", "0.6565196", "0.65431374", "0.6518133", "0.64906454", "0.64863336", "0.645247", "0.6446916", "0.64046186", "0.64022046", "0.6386457", "0.6372463", "0.63531625", "0.6352817", "0.6341148", "0.63403326", "0.63003194", "0.6297195", "0.6292766", "0.62927645", "0.62927645", "0.6290937", "0.62889177", "0.6284985", "0.6280548", "0.6278247", "0.6278247", "0.6278247", "0.6278247", "0.6278247", "0.6278247", "0.6278247", "0.6278247", "0.6278247", "0.6278247", "0.6278247", "0.6278247", "0.62742054", "0.62449354", "0.62335426", "0.62240577", "0.6211267", "0.6198254", "0.6179242", "0.6173733", "0.61664444", "0.61652315", "0.6164477", "0.6162627", "0.61572045", "0.6156265", "0.61453074", "0.61453074", "0.61387587", "0.61387587", "0.61340755", "0.6132689", "0.6123846", "0.6120798", "0.6114023", "0.6113034", "0.6108916", "0.61049855", "0.6093305", "0.60870385", "0.60777414", "0.6070649", "0.606941", "0.6063553", "0.60587543", "0.60556734", "0.60433984", "0.6042271", "0.60358053", "0.6033887" ]
0.0
-1
Add error to array
public function addError($field_id, $message) { if ($field_id) { $this->errors[$field_id] = $message; } else { $this->errors[] = $message; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addError(array $error)\n {\n $this->errors[] = $error;\n }", "private function addError($error){\n $this->_errors[] = $error; \n }", "public function addError($error) {\n if (is_array($error)) {\n $this->errors = array_merge($this->errors, $error);\n } else {\n $this->errors[] = $error;\n }\n }", "protected function errorAdd($error){\r\n //array_merge($this->errors,array('error'=>$error));\r\n $this->_errors['error']=$error;\r\n $this->_errorcnt++;\r\n }", "function add_to_error_array($field = '', $message = '')\n {\n if ( ! isset($this->_error_array[$field]))\n {\n $this->_error_array[$field] = $message;\n }\n\n return;\n }", "public function addError($error){\n $this->_errors[] = $error;\n }", "protected function add_error($error){\n\t\t$this->errors[] = $error;\n\t}", "private function pushError($error=null)\n\t{\n\t\tif(!is_null($error)){\n\t\t\t$this->errors[] = $error;\n\t\t}\n\t\treturn;\n\t}", "function pushError( $error );", "function add($error) {\n\t\t$this->errors[] = $error;\n\t}", "private function addError($error) {\n $this->_errors[] = $error;\n }", "function add_error($msg) {\n\t\t$this->errors[] = $msg;\n\t}", "public function addError($message) {\n $this->errors = array_merge($this->errors, (array) $message);\n }", "public function add($error)\n\t{\n\t\t$this->error[] = $error;\n\t}", "private function processError($error){\n\t\t$this->errors[] = $error;\n\t}", "static function error($error)\n {\n global $template_vars;\n $template_vars['errors'][] = $error;\n }", "function add_error(&$log, $message){\n if(!is_array($log)) return;\n\n $log[] = array(\n \"type\" => \"error\",\n \"message\" => $message\n );\n}", "public function addError($field, $error)\n {\n $this->errors[$field][] = $error;\n }", "public function add_error($error)\n {\n\n $this->erorr = true;\n $this->errors[] = $error;\n\n $this->set_errors();\n\n }", "public function addError($value)\n {\n $error = new Error($value);\n array_push($this->errors, $error);\n }", "public function addError($field, $error) {\n $this->errors[$field] = $error;\n }", "function setError ($msg) {\r\n $this->errors[]=$msg;\r\n }", "public function addError($msg)\n\t{\n\t\t// Add to error array\n\t\t$this->errors[] = $msg;\n\t}", "public function addError($attribute,$error)\n\t{\n\t\t$this->_errors[$attribute][]=$error;\n\t}", "function insertErrorList($msg){\n\t\t$this->_errorList[] = array(\"msg\" => $msg);\n\t}", "function registerError($error)\n{\n global $system_errors;\n $system_errors[] = $error;\n}", "public function addErrors(array $errors): void\n {\n $this->errors = $errors;\n }", "public function error()\n\t{\n\t\treturn [];\n\t}", "protected function pushError($field, $field_error)\n {\n if (!empty($field_error)) {\n $this->errors[$field][] = $field_error;\n }\n }", "function recordError($errorMessage){\n \n\t\t if(!is_array($this->errors)){\n\t\t\t\t$errors = array();\n\t\t }\n\t\t else{\n\t\t\t\t$errors = $this->errors;\n\t\t }\n\t\t\n\t\t $errors[] = $errorMessage;\n\t\t $this->errors = $errors;\n \n\t }", "function appendErrorMsg($string){\n\t\t$this->error[$this->errorIndex] = $string;\n\t\t$this->errorIndex++;\n\t}", "public function getErrors():array;", "public function getErrors(): array;", "public function getErrors(): array;", "public function getErrors(): array;", "public function getErrorList() {\n\t\treturn array();\n\n\t}", "public function addError( $attribute, $error ) {\n $this->errors[$attribute][] = $error;\n }", "function set_errArr ($err, $err_code, $err_descr, &$errArr) {\n\t$errArr[ERR_CODE] = $err_code;\n\t$errArr[ERR_DESCR] = $err_descr; \n\tif ($err == NULL) {\n\t\t$errArr[ERR_LONG_DESCR] = ZERO_LENGTH_STRING;\n\t}\n\telse {\n\t\t$errArr[ERR_LONG_DESCR] = $err->getMessage();\n\t}\n}", "public function addError($attribute, $error = '')\n {\n $arr = $this->_getProperty('_errors');\n $arr[$attribute][] = $error;\n $this->_setProperty('_errors', $arr);\n }", "function PushError($fctname,$msg,$desc=false){\n\t\t$error=array();\n\t\t$error['time']=time();\n\t\t$error['fctname']=$fctname;\n\t\t$error['msg']=$msg;\n\t\t$error['desc']=$desc;\n\t\tif($desc) $tmp=' ('.$desc.')'; else $tmp='';\n\t\t$this->SendMSG($fctname.': '.$msg.$tmp);\n\t\treturn(array_push($this->_error_array,$error));\n\t}", "public function getErrors() : array;", "public function AddError($err){\n\t\t$this->Add($err);\n\t}", "public function addError($message)\n {\n $this->_errors[] = $message;\n }", "public function appendErrors($body, $index = null)\n {\n if ($index) {\n $this->errors[$index] = $body;\n } else {\n $this->errors[] = $body;\n }\n }", "public function addError($message, $index = NULL)\n\t{\n\t\tif (isset($index)) {\n\t\t\tif (!isset($this->_errors[$index]) || !in_array($message, $this->_errors[$index], TRUE)) {\n\t\t\t\t$this->_errors[$index][] = $message;\n\t\t\t\t$this->_valid = FALSE;\n\t\t\t}\n\t\t} else {\n\t\t\tif (!isset($this->_errors['__ERRORS__']) || !in_array($message, $this->_errors['__ERRORS__'], TRUE)) {\n\t\t\t\t$this->_errors['__ERRORS__'][] = $message;\n\t\t\t\t$this->_valid = FALSE;\n\t\t\t}\n\t\t}\n\t}", "public function setError($msg)\n {\n array_push($this->errors, $msg);\n }", "public static function arrErrors()\n {\n $a[PHP_INT_MAX] = 'This is the end!';\n $a[] = 'Off the deep end';\n\n // Offsets in non-array variables\n $url = 'https://unlikelysource.com/';\n if ($url[-1] == '/') {\n $url = substr($url, 0, -1);\n }\n\n echo $url;\n }", "private function addError(string $type, string $error)\n {\n $this->errorBucket[$type][] = $error;\n }", "public function clearError() {\n $this->errors = array();\n }", "function setErrors( array $errors );", "public function posa_error($msg)\n {\n $this->error [] = $msg;\n }", "public function getError()\n {\n if (empty($this->error) != true){\n end($this->error); //Pointer to the end\n $key = key($this->error); //Get the key of last element\n $ret = array( \"code\" => $key, \"description\" => $this->error[$key] );\n reset($this->error);\n }else{\n $ret = array( \"code\" => \"get_error\", \"description\" => \"No are errors to show\" );\n }\n \n return $ret;\n }", "public function addErrors(array $msgs)\n\t{\n\t\tforeach($msgs as $msg) {\n\t\t\t$this->addError($msg);\n\t\t}\n\t}", "protected function addError($data, $event)\n {\n $firstTrace = end($event['trace']);\n reset($event['trace']);\n\n $this->errors[] = [\n 'message' => $data['message'],\n 'severity' => $data['severity'],\n 'file' => str_replace($this->buildPath, '', $firstTrace['file']),\n 'line' => $firstTrace['line'],\n ];\n }", "private function err_to_array() {\n return array(\n 'code' => $this->code,\n 'reason' => $this->http_status_code_string($this->code),\n 'message' => $this->message,\n );\n }", "public function AddError($err){\n\t\t$this->Add($err->getMessage());\n\t}", "public function addError($error){\n\t\t$this->errors[]=$error;\n\t\treturn $this;\n\t}", "private function addError($rule,$msg=\"\") {\n\t\t$this->errors[] = (isset($rule['message'])) ? (string)$rule['message'] : $msg;\n\t}", "public function addErrors(array $errors)\n {\n foreach ($errors as $error) {\n $this -> addError( $error);\n }\n }", "public function errorsArray()\n {\n return $this->errors;\n }", "function getErrors()\n\t{\n\t\treturn [];\n\t}", "public function getError() {\n\t\t$error = array();\n\t\t$error['message'] = $this->err_message;\n\t\t$error['code'] = $this->err_code;\n\t\treturn $error;\n\t}", "final public function getError():array\n {\n return $this->errors;\n }", "private function set_error( $key )\n\t{\n\t\tglobal $path;\n\t\tif( isset($this->err_code[$key]) && isset($this->err_code[$key]) )\n\t\t{\t\n\t\t\t$this->arr_error[].= $this->err_label[$key]; // => array_push\n\t\t\t// DEV -->\n\t\t\t$this->num_error += $this->err_code[$key];\n\t\t\t// <-- DEV\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttrigger_error( $key . ' undefined');\n\t\t\texit;\n\t\t}\n\t}", "public function addError(FieldError $error, PropertyPathIterator $pathIterator = null, $type = null)\n {\n $this->errors[] = $error;\n }", "public function addApiError($error)\n {\n $this->errors['api'] = $error;\n }", "private function addError($key, $err_message){\n $this->errors[$key] = $err_message;\n }", "private function setErrors()\n {\n $this->errors = [\n 'error_no' => curl_errno($this->curl),\n 'error' => curl_error($this->curl),\n ];\n }", "public function setError($error) {\n if (is_array($this->errors)) {\n $this->errors = $error;\n }\n }", "private function addError($fieldname, $error){\n $this->_errors[$fieldname] = $error;\n }", "public function error (string $error) : void {\n\t\t$this->errors [] = $error;\n\t}", "public function set_error($msg)\n\t{\n\t\tif (is_array($msg))\n\t\t{\n\t\t\tforeach ($msg as $val)\n\t\t\t{\n\t\t\t\t$msg = ($this->CI->lang->line($val) == FALSE) ? $val : $this->CI->lang->line($val);\n\t\t\t\t$this->error_msg[] = $msg;\n\t\t\t\tlog_message('error', $msg);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$msg = ($this->CI->lang->line($msg) == FALSE) ? $msg : $this->CI->lang->line($msg);\n\t\t\t$this->error_msg[] = $msg;\n\t\t\tlog_message('error', $msg);\n\t\t}\n\t}", "public function addError($field, $rule, $message) {\n if (!isset($this->_errors[$field])) $this->_errors[$field] = array();\n $this->_errors[$field][$rule] = array(\n 'message' => $message\n );\n }", "private function addValidationError()\n {\n $validationError = new ValidationError();\n $validationError->setValidationCode($this->validation->getValidationCode());\n if ($this->eachFieldName && $this->eachIndex) {\n $eachField = $this->formDataHandler->getFormValue($this->eachFieldName);\n $eachFieldValue = $eachField[$this->eachIndex][$this->formFieldName];\n $validationError->setFormValue($eachFieldValue);\n $validationError->setFormField($this->eachFieldName);\n $validationError->setEachFieldName($this->formFieldName);\n $validationError->setEachIndex($this->eachIndex);\n } else {\n $validationError->setFormValue($this->formDataHandler->getFormValue($this->formFieldName));\n $validationError->setFormField($this->formFieldName);\n }\n if ($this->errorText) {\n $validationError->setCustomErrorText($this->errorText);\n }\n $this->validationErrorHandler->addValidationError($validationError);\n }", "public static function errors(): array\n\t{\n\t\treturn self::$errorsArray;\n\t}", "public function addErrorLog($data)\n {\n if(is_array($data) || is_object($data)){\n $this->addError(json_encode($data));\n }else{\n $this->addError($data);\n }\n }", "private function addError( $key, $val ) {\r\n $this->errors[$key] = $val;\r\n }", "private function _error($msg = '')\n {\n return array('error' => $msg);\n }", "private function error(): array\n {\n $error = [];\n $pdoError = $this->statement->errorInfo();\n if (empty($pdoError[0]) || $pdoError[0] == '00000')\n return $error;\n\n $error['code'] = isset($pdoError[1]) ? $pdoError[0] . '/' . $pdoError[1] : $pdoError[0];\n if (isset($pdoError[2]))\n $error['message'] = $pdoError[2];\n\n return $error;\n }", "protected function pushToErrors(string $error): void\n {\n $this->errors->push($error);\n }", "public function errors();", "public function errors();", "function error_register($login, $email, $pass, $pass_bis)\n{\n $error_array = array_merge(error_email($email), error_login($login), error_password($pass, $pass_bis));\n return ($error_array);\n}", "public function add_error( $errormessage ) {\n\t\t$this->errors[] = $errormessage;\n\t\treturn;\n\t}", "public function testErrorMessageArray()\n {\n $errorResponse = json_decode('{\n \"error\": {\n \"code\": \"UNPROCESSABLE_ENTITY\",\n \"message\": [\"Bad format\", \"Bad format 2\"],\n \"errors\": []\n }\n }', true);\n\n try {\n Requestor::handleApiError(null, 404, $errorResponse);\n } catch (EasyPostException $error) {\n $this->assertEquals('Bad format, Bad format 2', $error->getMessage());\n }\n }", "function init_errArr ($function_name) {\n\treturn(array(ERR_CODE=>0, ERR_FUNCTION_NAME=>$function_name, ERR_DESCR=>\"\",\n\t\tERR_LONG_DESCR=>\"\", ERR_SQLSTATE=>\"\", ERR_SQLSTATE_MSG=>\"\", ERR_AFFECTED_ROWS=>0, ERR_INSERT_ID=>0));\n}", "public function addValidationResult(array $errors)\n {\n foreach ($errors as $field => $error) {\n if (is_array($error)) {\n foreach ($error as $inerror) {\n $this->addError($field, $inerror);\n }\n } else {\n $this->addError($field, $error);\n }\n }\n }", "public static function pushError($key, $value) {\n $_SESSION['errors'][$key] = $value;\n }", "function errorLogin() {\n\t\t\t\n\t$loginError = new stdClass();\n\t$loginError->type = 'message';\n\t$loginError->message = $GLOBALS['lang']['error_login_login'];\n\t\n\t$returnArray = array(\n\t\t'error' => array()\n\t);\n\tarray_push($returnArray['error'], $loginError);\n\t\n\treturn $returnArray;\n}", "function result_array_error($re)\n{\n return rjErr(get_return_errormsg($re));\n}", "protected function addToErrorLog($error) {\n $add = $error['DETAILS'];\n unset($add['ErrorCode']);\n unset($add['ErrorMessage']);\n $add['Action'] = $error['APIACTION'];\n\n MagnaDB::gi()->insert(TABLE_MAGNA_COMPAT_ERRORLOG, array(\n 'mpID' => $this->mpID,\n 'errormessage' => $error['ERRORMESSAGE'],\n 'dateadded' => date('Y-m-d H:i:s'),\n 'additionaldata' => serialize($add),\n ));\n }", "public function addError($attribute, $error) {\n if (!array_key_exists($attribute, $this->_data))\n $this->_data[$attribute] = null;\n \n parent::addError($attribute, $error);\n FErrorHandler::logError($error);\n }", "function add_error($input, $message)\n {\n }", "public function add_error_message( $message ) {\n\t\t$this->messages[] = $message;\n\t\t$this->is_valid = false;\n\t}", "private function resetErrors() {\n $this->errors = array();\n }", "static function set_error($errors, $message = '') {\r\n\t\t$old_error\t= \\Config::get('user_error');\r\n \r\n if(is_array($errors)) {\r\n foreach ($errors as $errors_key => $errors_value) {\r\n foreach ($errors_value as $error_key => $error_value) {\t\t\t\t\r\n $old_error[$errors_key][]\t= $error_value;\r\n }\r\n }\r\n }else {\r\n $old_error[$errors][]\t= $message;\r\n }\r\n\r\n\t\t\\Config::set('user_error',$old_error);\r\n\t\treturn $old_error;\r\n }", "public function flushErrors(): array {\n $errors = $this->_errors;\n $this->_errors = [];\n\n return $errors;\n }", "public function add_error($where, $msg){\r\n\r\n\t\t$this->log_error($where, $msg);\r\n\r\n\t\t$this->errors[] = $msg;\r\n\r\n\t\t$msg_array = array(\r\n\t\t\t\t'type' => 'error',\r\n\t\t\t\t'class' => $this::ERR_MSG_CLASS,\r\n\t\t\t\t'text' => $msg\r\n\t\t);\r\n\r\n\t\t$this->all_messages[] = $msg_array;\r\n\t}", "public function allErrorOrWarning() {\n\n return @array_merge($this->errorMsg,$this->warningMsg);\n }", "public function addErrors($errors) {\n $total = $this->getErrors() + $errors;\n $this->setErrors($total);\n }", "public function getError(): array\n {\n return $this->errorMessages;\n }" ]
[ "0.73633647", "0.7362446", "0.73595804", "0.73238975", "0.7295425", "0.72566444", "0.71731126", "0.7117955", "0.7051364", "0.7000979", "0.6939063", "0.69220185", "0.6919344", "0.6889448", "0.6791111", "0.6738942", "0.6686186", "0.6669196", "0.6654055", "0.6623098", "0.6561969", "0.65549016", "0.65286124", "0.6522384", "0.65139043", "0.650703", "0.65027124", "0.6488763", "0.64353013", "0.6431895", "0.6425555", "0.6358369", "0.6357271", "0.6357271", "0.6357271", "0.63466907", "0.63262457", "0.63164306", "0.63147765", "0.631114", "0.6301065", "0.6267039", "0.62612075", "0.6261067", "0.625778", "0.6224325", "0.6215413", "0.621166", "0.6196453", "0.61869895", "0.6173942", "0.6173182", "0.61730605", "0.6171833", "0.61708593", "0.6169752", "0.6163318", "0.6159493", "0.6150074", "0.6128608", "0.61189365", "0.61031616", "0.6100885", "0.60972935", "0.6083627", "0.60832846", "0.608287", "0.60814047", "0.6081064", "0.607782", "0.6073026", "0.6066657", "0.6056294", "0.60516614", "0.60504025", "0.6047568", "0.6016513", "0.6010582", "0.60093105", "0.60093075", "0.599449", "0.599449", "0.5959854", "0.5946525", "0.593604", "0.5929802", "0.5908538", "0.59082067", "0.590347", "0.5899535", "0.5896394", "0.58859384", "0.5883706", "0.58776534", "0.58655703", "0.58588785", "0.58546203", "0.5851916", "0.5849156", "0.58468735", "0.58436364" ]
0.0
-1
Filter fields, if someone is trying to fake them
public function fieldsFilter($fields) { foreach ($fields as $k => $f) { if (!$this->isFieldExist($k)) { unset($fields[$k]); } } return $fields; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function filterFields();", "abstract protected function filterFieldvalue();", "private function filterFields() {\n\n // Initialize an associate array of our field name and value pairs.\n $values = array();\n\n // Initialize an associate array of our field name and filters pairs.\n $filters = array();\n\n // Populate the arrays.\n foreach ($this->fields as $field) {\n if ($field->getFilters()) {\n $values[$field->getName()] = $field->getValue();\n $filters[$field->getName()] = $field->getFilters();\n }\n }\n\n // Load an instance of GUMP to use to sanitize and filter our field values.\n $gump = new \\GUMP();\n\n // Sanitize the field values.\n $values = $gump->sanitize($values);\n\n // Pass the arrays to GUMP and let it do the heavy-lifting.\n $values = $gump->filter($values, $filters);\n\n // Set the values of all fields to their filtered values.\n foreach ($values as $name => $value) {\n $this->passValue($name, $value);\n }\n }", "abstract protected function filterField(): string;", "protected function restrict_fields()\n {\n }", "public function filter($fields)\n {\n }", "function advanced_settings_fields_filter1($fields) {\n $model_config = WYSIJA::get('config', 'model');\n if ($model_config->getValue('premium_key')) {\n unset($fields['bounce_email']);\n }\n return $fields;\n }", "function _ting_boost_field_filter($element) {\n return !(empty($element['field_name']) || empty($element['field_value']));\n}", "function filter_field() {\n $data['email'] = addslashes(filter_var($_POST['email'], FILTER_VALIDATE_EMAIL));\n $data['username'] = addslashes(filter_var($_POST['username'], FILTER_SANITIZE_STRING));\n $data['password'] = addslashes(strip_tags($_POST['password']));\n $data['name'] = addslashes(filter_var($_POST['name'], FILTER_SANITIZE_STRING));\n $data['surname'] = addslashes(filter_var($_POST['surname'], FILTER_SANITIZE_STRING));\n \n if(isset($_POST['bio']))\n $data['bio'] = addslashes(filter_var($_POST['bio'], FILTER_SANITIZE_STRING));\n else\n $data['bio'] = null;\n\n foreach ($data as $key => $value) {\n if($value != null && $value === false)\n launch_error(\"Problem with your data, try changing them.\");\n }\n\n return $data;\n}", "function rest_filter_response_fields($response, $server, $request)\n {\n }", "function filterFields ( $fields )\n\t{\n\t\tif (!is_array($fields) )\n\t\t{\n\t\t\treturn array() ;\n\t\t}\n\t\t\n\t\tif ( empty($fields) )\n\t\t{\n\t\t\treturn $fields ;\n\t\t}\n\t\t$ffields = array () ;\n\t\tforeach ( $fields as &$f )\n\t\t{\n\t\t\tif ( ake ( $f , $this->_fields ) )\n\t\t\t{\n\t\t\t\t$ffields[] = $f ;\n\t\t\t}\n\t\t}\n\t\treturn $ffields ;\n\t}", "function filter_field($data, $field)\n {\n return array_intersect_key($data, array_fill_keys($field, ''));\n }", "abstract public function getFieldsSearchable();", "public function test_rest_filter_response_fields_single_field_filter() {\n\t\t$response = new WP_REST_Response();\n\t\t$response->set_data(\n\t\t\tarray(\n\t\t\t\t'a' => 0,\n\t\t\t\t'b' => 1,\n\t\t\t\t'c' => 2,\n\t\t\t)\n\t\t);\n\t\t$request = array(\n\t\t\t'_fields' => 'b',\n\t\t);\n\n\t\t$response = rest_filter_response_fields( $response, null, $request );\n\t\t$this->assertSame( array( 'b' => 1 ), $response->get_data() );\n\t}", "public function useAllFields() {\n $this->__onlyFields = array();\n }", "public function test_rest_filter_response_fields_no_request_filter() {\n\t\t$response = new WP_REST_Response();\n\t\t$response->set_data( array( 'a' => true ) );\n\t\t$request = array();\n\n\t\t$response = rest_filter_response_fields( $response, null, $request );\n\t\t$this->assertSame( array( 'a' => true ), $response->get_data() );\n\t}", "function Page_FilterValidated() {\n\n\t\t// Example:\n\t\t//global $MyTable;\n\t\t//$MyTable->MyField1->SearchValue = \"your search criteria\"; // Search value\n\n\t}", "function Page_FilterValidated() {\n\n\t\t// Example:\n\t\t//global $MyTable;\n\t\t//$MyTable->MyField1->SearchValue = \"your search criteria\"; // Search value\n\n\t}", "protected function prepare_fields()\n {\n }", "public function global_filter_field_expr()\n {\n\n // filtering $_GET\n if (is_array(ctx()->getRequest()->get()) && ! empty(ctx()->getRequest()->get()))\n {\n foreach (ctx()->getRequest()->get() as $key => $val){\n $key=$this->_clean_input_keys($key);\n if($key){\n ctx()->getRequest()->get($key, $this->_clean_input_field_expr($val));\n }\n }\n\n }\n\n // filtering $_POST\n if (is_array(ctx()->getRequest()->post()) && ! empty(ctx()->getRequest()->post()))\n {\n foreach (ctx()->getRequest()->post() as $key => $val){\n $key=$this->_clean_input_keys($key);\n if($key){\n ctx()->getRequest()->post($key, $this->_clean_input_field_expr($val));\n }\n }\n }\n\n // filtering $_COOKIE\n if (is_array(ctx()->getRequest()->cookie()) && ! empty(ctx()->getRequest()->cookie()))\n {\n foreach (ctx()->getRequest()->cookie() as $key => $val){\n $key=$this->_clean_input_keys($key);\n if($key){\n ctx()->getRequest()->cookie($key, $this->_clean_input_field_expr($val));\n }\n\n }\n }\n\n\n // filtering $_REQUEST\n if (is_array(ctx()->getRequest()->request()) && ! empty(ctx()->getRequest()->request()))\n {\n foreach (ctx()->getRequest()->request() as $key => $val){\n $key=$this->_clean_input_keys($key);\n if($key){\n ctx()->getRequest()->request($key, $this->_clean_input_field_expr($val));\n }\n }\n }\n\n }", "protected function getExcludeFields() {}", "private function formFilter($fields)\n {\n $fields = trim($fields);\n $fields = str_replace('\\'id', '//\\'id', $fields);\n $fields = str_replace('\\'remember_token', '//\\'remember_token', $fields);\n $fields = str_replace('\\'email_verified_at', '//\\'email_verified_at', $fields);\n $fields = str_replace('\\'created_at', '//\\'created_at', $fields);\n $fields = str_replace('\\'updated_at', '//\\'updated_at', $fields);\n\n return $fields;\n }", "function Page_FilterValidated() {\n\n\t\t// Example:\n\t\t//$this->MyField1->SearchValue = \"your search criteria\"; // Search value\n\n\t}", "function Page_FilterValidated() {\n\n\t\t// Example:\n\t\t//$this->MyField1->SearchValue = \"your search criteria\"; // Search value\n\n\t}", "public static function getFilterableFields(): array\n {\n return ['name', 'accessCode'];\n }", "function sanitizeFields()\n\t{\n\t\tif(isset($this->sanitize) && isset($this->data[$this->name]))\n\t\t{\n\t\t\tforeach($this->data[$this->name] as $field => $value)\n\t\t\t{\n\t\t\t\tif(isset($this->sanitize[$field]))\n\t\t\t\t{\n\t\t\t\t\tif(!is_array($this->sanitize[$field]))\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->data[$this->name][$field] = $this->sanitize($this->data[$this->name][$field], $this->sanitize[$field]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tforeach($this->sanitize[$field] as $action)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->data[$this->name][$field] = $this->sanitize($this->data[$this->name][$field], $action);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "function query() {\n // Do nothing: fake field.\n }", "function getEnableFieldsToBeIgnored() ;", "public function test_rest_filter_response_fields_multi_field_filter() {\n\t\t$response = new WP_REST_Response();\n\t\t$response->set_data(\n\t\t\tarray(\n\t\t\t\t'a' => 0,\n\t\t\t\t'b' => 1,\n\t\t\t\t'c' => 2,\n\t\t\t\t'd' => 3,\n\t\t\t\t'e' => 4,\n\t\t\t\t'f' => 5,\n\t\t\t)\n\t\t);\n\t\t$request = array(\n\t\t\t'_fields' => 'b,c,e',\n\t\t);\n\n\t\t$response = rest_filter_response_fields( $response, null, $request );\n\t\t$this->assertSame(\n\t\t\tarray(\n\t\t\t\t'b' => 1,\n\t\t\t\t'c' => 2,\n\t\t\t\t'e' => 4,\n\t\t\t),\n\t\t\t$response->get_data()\n\t\t);\n\t}", "public function sanitize_input_fields()\n {\n }", "public function getShouldFieldBeOverlaidData() {}", "public function cleanseFields() {\n $this->dictionary->remove('nospam');\n $this->dictionary->remove('blank');\n $submitVar = $this->controller->getProperty('submitVar');\n if (!empty($submitVar)) {\n $this->dictionary->remove($submitVar);\n }\n }", "public function filterFields($fields, $context = null)\n {\n $fields->youtube->hidden = !$this->type || $this->type == 'image';\n $fields->image->hidden = $this->type == 'youtube';\n $fields->href->hidden = $this->type == 'youtube';\n $fields->is_new_window->hidden = $this->type == 'youtube';\n }", "public function addFilterFields($fields=array()){\n \tif(empty($fields)) return ;\n\n \t$this->filterFields = !is_array($fields) ? explode(',',$fields) : $fields;\n \t\n }", "public function beforeSet()\n {\n// $this->modx->log(modx::LOG_LEVEL_ERROR, print_r($this->getProperties(),1));\n// $field = trim($this->getProperty('field_id'));\n// if (empty($field)) {\n// $this->modx->error->addField('field_id', $this->modx->lexicon('seofilter_fieldids_err_field_id'));\n// } elseif ($this->modx->getCount($this->classKey, array('field_id' => $field))) {\n// $this->modx->error->addField('field_id', $this->modx->lexicon('seofilter_fieldids_err_ae'));\n// }\n\n return parent::beforeSet();\n }", "function acf_allow_unfiltered_html()\n{\n}", "private static function _getFilter() {}", "function filterName($field) {\n // Limpiar el nombre del usuario\n $sanitizeField = filter_var(trim($field), FILTER_SANITIZE_STRING);\n\n // Validate user name\n if (filter_var($sanitizeField, FILTER_VALIDATE_REGEXP, array(\"options\" => array(\"regexp\" => \"/^[a-zA-Z\\s]+$/\")))) {\n return $sanitizeField;\n } else {\n return false;\n }\n}", "private function filter_fields_by_user_status( $all_fields = array(), $filter_attribute = 'none' ) {\n // Filter criteria:\n // 1. If the provided filter_attribute is missing or \"none\", return all fields\n // 2. if the field attribute is \"all\", return that field\n // 3. If the field attribute is \"member\", return if the user is logged in\n return array_filter(\n $all_fields,\n function( $field ) use ( $filter_attribute ) {\n return ( 'none' === $filter_attribute ) ||\n ( 'all' === $field[ $filter_attribute ] ) ||\n ( is_user_logged_in() && ( 'member' === $field[ $filter_attribute ] ) );\n }\n );\n }", "public function filter_akismet_fields( $akismet_fields, $form, $entry, $action ) {\n\t\t$this->log_debug( sprintf( '%s(): action: %s; form: %d; entry: %d.', __METHOD__, $action, rgar( $form, 'id' ), rgar( $entry, 'id' ) ) );\n\n\t\t$settings = $this->get_form_settings( $form );\n\n\t\tif ( empty( $settings ) ) {\n\t\t\t$this->log_debug( __METHOD__ . '(): settings not configured; using defaults.' );\n\t\t\t$settings = $this->form_settings->get_default_settings( $form, $entry );\n\t\t}\n\n\t\t$this->log_debug( __METHOD__ . '(): settings => ' . print_r( $settings, true ) );\n\n\t\t// Use this variable instead of reassigning $akismet_fields to make it clear that we never use the original data.\n\t\t$gf_akismet_fields = $this->akismet_fields_filter->get_fields( $settings, $form, $entry, $action, $akismet_fields );\n\n\t\t$this->log_debug( __METHOD__ . '(): $akismet_fields => ' . print_r( $gf_akismet_fields, true ) );\n\n\t\tadd_action( 'http_api_debug', array( $this, 'handle_akismet_response' ), 10, 5 );\n\n\t\treturn $gf_akismet_fields;\n\t}", "private function registerUsableFields(): void\n {\n $this->attributeList = $this->filterSystemControlFields(\n \\get_object_vars($this)\n );\n }", "function FilterData()\n\t{\n\t\t// Username and password should be trimmed, because we trim it on authentication\n\t\t$this->username = trim($this->username);\n\t\t$this->password = trim($this->password);\n\t}", "public function testFilteringWithBadInputs()\n {\n $sanitizer = new InputFilter();\n $sanitizer->setInputs(array(\n 'field1' => '100abc',\n 'field2' => 'kevin@gmailcom'\n ))\n ->setRequired('field1')\n ->filter('field1', array(\n FILTER_VALIDATE_INT\n ))\n ->setRequired('field2')\n ->filter('field2', array(\n FILTER_VALIDATE_EMAIL\n ), 'Valid email required')\n ->setRequired('field3', 'Field3 is required')\n ->filter('field3', array(\n FILTER_SANITIZE_STRING\n ))\n ->sanitize();\n\n $this->assertTrue($sanitizer->hasErrors());\n $errors = $sanitizer->getErrors();\n\n $this->assertNotEmpty($errors);\n\n $this->assertArrayHasKey('field1', $errors);\n\n $this->assertArrayHasKey('field2', $errors);\n $this->assertEquals('Valid email required', $errors['field2']);\n\n $this->assertArrayHasKey('field3', $errors);\n $this->assertEquals('Field3 is required', $errors['field3']);\n }", "protected function getFilterableFields() {\n $fields = $this->config->getFilterableFields();\n\n if(count($fields) == 0) {\n return false;\n }\n\n return $fields;\n }", "function get_filtered_input($form) {\n $filter_parameters = [];\n foreach ($form['fields'] as $id => $value) {\n if (isset($value['filter'])) {\n $filter_parameters[$id] = $value['filter'];\n } else {\n $filter_parameters[$id] = FILTER_SANITIZE_SPECIAL_CHARS;\n }\n }\n return filter_input_array(INPUT_POST, $filter_parameters);\n}", "private function exampleFields()\n {\n }", "protected function preValidate()\n {\n $this->setFilter( preg_quote($this->getFilter()) );\n }", "public function testFields()\n {\n $obj_query = new \\Search\\Query();\n $this->assertEmpty($obj_query->getReturnFields());\n $obj_query->fields(['a', 'b']);\n $this->assertEquals(['a', 'b'], $obj_query->getReturnFields());\n $obj_query2 = $obj_query->fields(['c', 'd']);\n $this->assertEquals(['c', 'd'], $obj_query->getReturnFields());\n $this->assertSame($obj_query, $obj_query2);\n }", "protected function getAllFieldsAreEmpty() {}", "public function filterAllowedFields(array $fields = array()) {\n $allowedFields = $this->controller->getProperty('allowedFields','');\n if (!empty($allowedFields)) {\n $allowedFields = is_array($allowedFields) ? $allowedFields : explode(',',$allowedFields);\n $userGroupField = $this->controller->getProperty('usergroupsField','');\n $usernameField = $this->controller->getProperty('usernameField','username');\n $fullnameField = $this->controller->getProperty('fullnameField','fullname');\n $passwordField = $this->controller->getProperty('passwordField','password');\n $emailField = $this->controller->getProperty('emailField','email');\n array_push($allowedFields,$usernameField,$fullnameField,$passwordField,'password_confirm',$emailField,'class_key');\n if (!empty($userGroupField)) array_push($allowedFields,$userGroupField);\n $allowedFields = array_unique($allowedFields);\n foreach ($fields as $k => $v) {\n if (!in_array($k,$allowedFields)) unset($fields[$k]);\n }\n }\n return $fields;\n }", "function _prepareFilter(&$controller){\n \t\n\t\t$filter = array();\n if(isset($controller->data)){\n foreach($controller->data as $model=>$fields){\n foreach($fields as $key=>$field){\n if($field == ''){\n unset($controller->data[$model][$key]);\n }\n }\n }\n \n App::import('Sanitize');\n $sanit = new Sanitize();\n $controller->data = $sanit->clean($controller->data);\n $filter = $controller->data;\n }\n \n if (empty($filter)){\n \t\t$filter = $this->_checkParams($controller); \t\n }\n $controller->data = $filter;\n }", "function pfb_match_filter_field($flent, $fields) {\n\tif (isset($fields)) {\n\t\tforeach ($fields as $key => $field) {\n\t\t\tif (empty($field)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (strpos($field, '!') !== FALSE) {\n\t\t\t\t$field = substr($field, 1);\n\t\t\t\t$field_regex = str_replace('/', '\\/', str_replace('\\/', '/', $field));\n\t\t\t\tif (@preg_match(\"/{$field_regex}/i\", $flent[$key])) {\n\t\t\t\t\treturn FALSE;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$field_regex = str_replace('/', '\\/', str_replace('\\/', '/', $field));\n\t\t\t\tif (!@preg_match(\"/{$field_regex}/i\", $flent[$key])) {\n\t\t\t\t\treturn FALSE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn TRUE;\n}", "abstract public function supported_fields();", "protected function getFilterField(){\n $aField = parent::getFilterField();\n $oRequest = AMI::getSingleton('env/request');\n if(!$oRequest->get('category', 0)){\n $aField['disableSQL'] = TRUE;\n }\n return $aField;\n }", "public function testGetFields()\n\t{\n\t\t// Remove the following lines when you implement this test.\n\t\t$this->markTestIncomplete(\n\t\t\t'This test has not been implemented yet.'\n\t\t);\n\t}", "public function testQueryFirewallFields()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "protected function filterParams()\n {\n }", "protected function initFilterFields(): void\n {\n $this->filterSliderFields = $this->filterSliderFields();\n $this->filterNumericFields = $this->filterNumericFields();\n $this->filterDropdownFields = $this->filterDropdownFields();\n }", "public function cleanField($field)\n\t{\n\t\t//by default... we dont clean anything\n\t}", "public function filterFields($fields, $context = null)\n {\n if (!isset($fields->deleted, $fields->deleted_at)) {\n return;\n }\n\n $user = BackendAuth::getUser();\n\n if (!$user->hasAnyAccess(['rantiz.gateway.access_delete'])) {\n $fields->deleted->hidden = true;\n $fields->deleted_at->hidden = true;\n }\n else {\n $fields->deleted->hidden = false;\n $fields->deleted_at->hidden = false;\n }\n }", "public function testMissingFields()\n {\n $arrayFilterConfig = array(\n 'fields' => array(\n array(\n 'field' => '',\n 'value' => 'News')),\n 'fstat' => array(),\n 'search' => array()\n );\n \n $this->setExpectedException(\n 'InvalidArgumentException',\n 'Cannot add condition. Field must be a non-empty string.'\n );\n $filter = new P4Cms_Record_Filter($arrayFilterConfig);\n }", "public static function getExcludeFields() {}", "public function filtering();", "public function filterFields($fields, $context = null)\n\t{\n\t\tif (!isset($fields->published, $fields->published_at)) {\n\t\t\treturn;\n\t\t}\n\n\t\t$user = BackendAuth::getUser();\n\n\t\tif (!$user->hasAnyAccess(['jetminds.job.access_publish'])) {\n\t\t\t$fields->published->hidden = true;\n\t\t\t$fields->published_at->hidden = true;\n\t\t}\n\t\telse {\n\t\t\t$fields->published->hidden = false;\n\t\t\t$fields->published_at->hidden = false;\n\t\t}\n\t}", "public function getEnableFieldsToBeIgnored() {}", "protected function filteredFields($fields, $data) \n\t{\n\t\t$filtered = array();\n\t\tforeach ($fields as $field) {\n\t\t\tif (in_array($field, array_keys($data))) {\n\t\t\t\t$filtered[$field] = $data[$field];\n\t\t\t} else {\n\t\t\t\tthrow new \\Exception(\"A required field \\\"{$field}\\\" does not exist in the given array!\");\n\t\t\t}\n\t\t}\n\t\treturn $filtered;\n\t}", "function acf_filter_attrs($attrs)\n{\n}", "function _acf_do_prepare_local_fields()\n{\n}", "function _prepare_filter_data () {\n\t\t// Filter session array name\n\t\t$this->_filter_name\t= $_GET[\"object\"].\"_filter\";\n\t\t// Connect common used arrays\n\t\tif (file_exists(INCLUDE_PATH.\"common_code.php\")) {\n\t\t\tinclude (INCLUDE_PATH.\"common_code.php\");\n\t\t}\n\t\t// Fields in the filter\n\t\t$this->_fields_in_filter = array(\n\t\t\t\"engine\",\n\t\t\t\"text\",\n\t\t);\n\t}", "public function testUnfilteredProperties()\n {\n $this->visit('/properties')\n ->see('Victorian townhouse')\n ->see('Five bedroom mill conversion')\n ->see('Shack in the desert');\n }", "function acf_validate_field( $field ) {\n\t\t\n\t\t// 5.5.6 - changed filter name\n\t\t$field = apply_filters( \"acf/get_valid_field/type={$field['type']}\", $field );\n\t\t$field = apply_filters( \"acf/get_valid_field\", $field );\n\t\t\n\t\t\n\t\t// return\n\t\treturn $field;\n\t\t\n\t}", "public function filterFields($fields, $context = null)\n {\n $values = post('QuoteFields');\n $tax_id = (int)$values['tax_id'];\n $price_ht = (float)$values['price_ht'];\n if($tax_id == 0)\n {\n $tax_id = (int)$this->getTaxIdAttribute();\n }\n\n if($context == 'update')\n {\n $field_id = (int)post('manage_id');\n $field = QuoteFields::find($field_id);\n $tax_id = $field->tax->id;\n }\n $calculator = new Calculator((float)$price_ht, Tax::find($tax_id));\n if($values){\n $fields->price_ttc->value = $calculator->getPriceTTC();\n }\n \n\n }", "function advanced_settings_fields_filter2($fields) {\n $model_config = WYSIJA::get('config', 'model');\n if ($model_config->getValue('premium_key')) {\n $fields['dkim'] = array(\n 'type' => 'dkim',\n 'label' => __('DKIM signature', WYSIJA),\n 'desc' => __('Improve your spam score. Mailpoet can sign all your emails with DKIM. [link]Read more.[/link]', WYSIJA),\n 'link' => '<a href=\"http://docs.mailpoet.com/article/21-email-authentication-spf-and-dkim\" target=\"_blank\" title=\"' . __(\"Preview page\", WYSIJA) . '\">');\n }\n return $fields;\n }", "function filter_pre_load_value($null, $post_id, $field)\n {\n }", "protected function prepareFields($fields)\n {\n return collect(is_callable($fields) ? $fields() : $fields)->each(function($field){\n })->all();\n }", "function sanitize_form_input_values(array $fields): array\n{\n $filter_params = [];\n\n foreach ($fields['fields'] as $field_key => $field) {\n $filter_params[$field_key] = $field['filter'] ?? FILTER_SANITIZE_SPECIAL_CHARS;\n }\n\n return filter_input_array(INPUT_POST, $filter_params);\n}", "private function filters() {\n\n\n\t}", "protected function __fields() {\n $Fields = array_keys(get_object_vars($this));\n if (!empty ($this->__onlyFields)) {\n $Fields = $this->__onlyFields;\n }\n $NewFields = array();\n foreach ($Fields as $field) {\n if (in_array ($field, array ('__bound', '__Data', 'cleaned_data', 'label_suffix', 'required_suffix', 'is_editable', 'suppress_errors'))) continue;\n if (!is_object($this->$field)) continue;\n if (!empty ($this->disabled[$field])) continue;\n if (in_array ($field, $this->__Exclude)) continue;\n $NewFields[] = $field;\n }\n return $NewFields;\n }", "public function useOnlyFields (array $Fields) {\n $this->__onlyFields = $Fields;\n }", "private function _setupFiltering()\n\t{\n\t\tglobal $txt;\n\n\t\t// We'll escape some strings...\n\t\t$db = database();\n\n\t\t// You can filter by any of the following columns:\n\t\t$filters = array(\n\t\t\t'id_member' => $txt['username'],\n\t\t\t'ip' => $txt['ip_address'],\n\t\t\t'session' => $txt['session'],\n\t\t\t'url' => $txt['error_url'],\n\t\t\t'message' => $txt['error_message'],\n\t\t\t'error_type' => $txt['error_type'],\n\t\t\t'file' => $txt['file'],\n\t\t\t'line' => $txt['line'],\n\t\t);\n\n\t\t$filter = $this->_req->getQuery('filter', 'trim', null);\n\t\t$value = $this->_req->getQuery('value', 'trim', null);\n\n\t\t// Set up the filtering...\n\t\tif (isset($value, $filters[$filter]))\n\t\t{\n\t\t\t$filter = array(\n\t\t\t\t'variable' => $filter,\n\t\t\t\t'value' => array(\n\t\t\t\t\t'sql' => in_array($filter, array('message', 'url', 'file'))\n\t\t\t\t\t\t? base64_decode(strtr($value, array(' ' => '+')))\n\t\t\t\t\t\t: $db->escape_wildcard_string($value),\n\t\t\t\t),\n\t\t\t\t'href' => ['filter' => $filter, 'value' => $value],\n\t\t\t\t'entity' => $filters[$filter]\n\t\t\t);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (isset($filter, $value))\n\t\t\t{\n\t\t\t\tunset($this->_req->query->filter, $this->_req->query->value);\n\t\t\t}\n\n\t\t\t$filter = [];\n\t\t}\n\n\t\treturn $filter;\n\t}", "protected function filterSliderFields(): array\n {\n return [];\n }", "function showField($diak,$field) {\n if (!isset($diak[$field]) || $diak[$field]==\"\")\n return false;\n if (($diak[$field][0]!=\"~\") || isUserLoggedOn()) {\n if (ltrim($diak[$field],\"~\")!=\"\") {\n return true;\n } else {\n return false;\n }\n }\n return false;\n\n}", "function ppCleanField(&$field) {\n if (gettype($field) == \"string\" ) {\n $field = ppPrepareForDB($field);\n }\n}", "protected function set_filters() {\n\t\t# Ignore all items with undefined price\n\t\t$this->generator->addFilter(\n\t\t\tfunction (\n\t\t\t\tarray $sf_product\n\t\t\t) {\n\t\t\t\t$sf_product = reset( $sf_product );\n\n\t\t\t\t/** @var Product $sf_product */\n\t\t\t\treturn ! empty( $sf_product->get_price() );\n\t\t\t}\n\t\t);\n\t}", "function acf_get_valid_field($field = \\false)\n{\n}", "public function providedFields();", "public function getModlogOmitFields();", "function genesisawesome_custom_filters( $filters ) {\n\n\t$filters['email'] = 'sanitize_email';\n\t$filters['integer'] = 'genesisawesome_intval';\n\n\treturn $filters;\n\n}", "function SetupAutoSuggestFilters($fld) {\n\t\tglobal $gsLanguage;\n\t\tswitch ($fld->FldVar) {\n\t\t}\n\t}", "public function getFields() {}", "public function getFields() {}", "public function getFields() {}", "function filterName($field){\n // Sanitize user name\n $field = filter_var(trim($field), FILTER_SANITIZE_STRING);\n\n // Validate user name\n if(filter_var($field, FILTER_VALIDATE_REGEXP, array(\"options\"=>array(\"regexp\"=>\"/^[a-zA-Z\\s]+/\")))){\n return $field;\n }else{\n return FALSE;\n }\n}", "protected function prepareFields($fields)\n {\n $fields = KoomehAmenity::get()->sortBy('field')->map(function($amenity) {\n $field = Boolean::class;\n\n if ($amenity->field == 'number') {\n $field = Number::class;\n } \n\n if ($amenity->field == 'text') {\n $field = Text::class;\n } \n\n $fillUsing = function($request, $model, $attribute, $requestAttribute) use ($amenity) {\n if ($value = $request->get($requestAttribute)) {\n return function() use ($model, $value, $amenity) {\n $model->amenities()->attach($amenity->getKey(), compact('value'));\n };\n }\n };\n\n $resolveUsing = function($request, $resource) use ($amenity) {\n $attached = $resource->amenities->find($amenity->getKey());\n\n return data_get($attached, 'pivot.value');\n };\n\n return $field::make($amenity->name, \"amenities_{$amenity->getKey()}\")\n ->required($amenity->required ? true : false)\n ->rules($amenity->required ? 'required' : 'nullable')\n ->fillUsing($fillUsing)\n ->resolveUsing($resolveUsing);\n })->prepend($this->fakeField());\n\n return parent::prepareFields($fields);\n }", "function SetupAutoSuggestFilters($fld) {\n\t\tglobal $grLanguage;\n\t\tswitch ($fld->FldVar) {\n\t\t}\n\t}", "function _ting_ranking_field_filter($element) {\n return !empty($element['field_name']);\n}", "abstract protected function fields();", "abstract protected function fields();", "protected function setupFields()\n {\n }", "public function FilterAddressFields($field)\n\t{\n\t\tif(!$field) {\n\t\t\treturn false;\n\t\t}\n\t\telse {\n\t\t\treturn true;\n\t\t}\n\t}" ]
[ "0.7940202", "0.75456846", "0.73670083", "0.7305144", "0.71075594", "0.69332415", "0.6740268", "0.6570253", "0.64529693", "0.64044", "0.62660354", "0.62193227", "0.61961216", "0.6194759", "0.61807454", "0.61569154", "0.61050504", "0.61050504", "0.60985917", "0.60941494", "0.6064258", "0.60518223", "0.60476094", "0.60476094", "0.60224414", "0.6009698", "0.5977648", "0.596208", "0.5932754", "0.592795", "0.5918749", "0.5914529", "0.59115094", "0.5894989", "0.5889568", "0.58646834", "0.586393", "0.58489233", "0.5844659", "0.5842657", "0.5826931", "0.5811705", "0.5810561", "0.58063394", "0.58003265", "0.580027", "0.5791928", "0.57824653", "0.5780955", "0.577938", "0.57531583", "0.57477576", "0.57460153", "0.5742657", "0.5742372", "0.57415193", "0.5725865", "0.5723108", "0.5722037", "0.5716402", "0.57104117", "0.5706471", "0.5694197", "0.56777614", "0.56751823", "0.56682545", "0.56519467", "0.5645947", "0.56440014", "0.56403095", "0.5639085", "0.5635839", "0.5631285", "0.5604071", "0.5603619", "0.5601684", "0.5596558", "0.55912435", "0.5589832", "0.5585058", "0.5583128", "0.5582596", "0.55821013", "0.5562095", "0.5555924", "0.55553377", "0.55551887", "0.5553408", "0.5551753", "0.55506396", "0.55506396", "0.55506396", "0.55465686", "0.5545933", "0.55359733", "0.5535869", "0.55300045", "0.55300045", "0.55296683", "0.55198896" ]
0.57126766
60
Check, if field is really exist
private function isFieldExist($field_id) { static $all_fields; static $address_fields; if ($all_fields === null) { $all_fields = waContactFields::getAll(); $address_fields = !empty($all_fields['address']) ? $all_fields['address']->getFields() : array(); } if (strpos($field_id, "::")) { $parts = explode("::", $field_id); $field_type = $parts[0]; $field_id = $parts[1]; } else { $field_type = "contact"; } if ( ($field_type == 'contact' && isset($all_fields[$field_id])) || ($field_type == 'address' && isset($address_fields[$field_id])) ) { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasField();", "public function fieldExists($fieldName) {}", "public function existsField($key){ return array_key_exists($key,$this->field_map); }", "function fieldExists ( $name )\n\t{\n\t\treturn ake ( $name , $this->_fields ) ;\n\t}", "function field_exists($field) {\n\t\tif (method_exists($this, 'set_'.$field)) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif ($this->columns && key_exists($field, $this->columns)) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif(isset($this->associations[$field])) {\n\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function testFieldExists(): void\n {\n // setup\n $arr = [\n 'f1' => 1,\n 'f2' => 2\n ];\n $arr2 = new \\stdClass();\n $arr2->f3 = 3;\n\n // test body and assertions\n $this->assertTrue(Fetcher::fieldExists($arr, 'f1'));\n $this->assertTrue(Fetcher::fieldExists($arr, 'f2'));\n $this->assertFalse(Fetcher::fieldExists($arr, 'f3'));\n $this->assertTrue(Fetcher::fieldExists($arr2, 'f3'));\n $this->assertFalse(Fetcher::fieldExists($arr2, 'f4'));\n }", "public function has($_field);", "public function hasField($key){ return !empty($this->field_map[$key]); }", "function tep_field_exists($table,$field) {\n $describe_query = tep_db_query(\"describe $table\");\n while($d_row = tep_db_fetch_array($describe_query))\n {\n if ($d_row[\"Field\"] == \"$field\")\n return true;\n }\n return false;\n }", "public function fieldExists($field) {\n\t\tif (strstr($field, \".\")) {\n\t\t\t// use the path to get to the data poing\n\t\t\t$fieldParts = explode(\".\", $field);\n\t\t\t$key = array_pop($fieldParts);\n\t\t\t\n\t\t\t// add the field parts to the entityPath to get the correct model\n\t\t\tEntity::_setEntityPath($fieldParts);\n\t\t} else {\n\t\t\t$key = $field;\n\t\t\t$fieldParts = array();\n\t\t}\n\t\t\n\t\t$model = Entity::currentPathClass();\n\t\t\n\t\tEntity::_revertEntityPath(count($fieldParts));\n\t\t\n\t\tApp::uses($model, \"Model\");\n\n\t\t// if field is not defined in db, and it's not a defined html helper func, then just print whatever it is\n\t\t$types = $this->entityFields($model);\n\t\t\n\t\tif (@$types[$key] == \"virtual\") {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tif (isset($types[$key]))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t}", "public function hasField(string $name): bool;", "function tep_field_exists($table,$field) {\n\n $describe_query = tep_db_query(\"describe $table\");\n while($d_row = tep_db_fetch_array($describe_query))\n {\n if ($d_row[\"Field\"] == \"$field\")\n return true;\n }\n\n return false;\n }", "public function hasField() {\n return $this->_has(1);\n }", "public function hasField() {\n return $this->_has(1);\n }", "public function hasField() {\n return $this->_has(1);\n }", "public function hasField(string $field): bool;", "public static function isExist()\n\t{\n\t\t$fields = self::getFields();\n\t\treturn !empty($fields);\n\t}", "function hasField($fieldName);", "function _pgsql_field_exists($table, $field) {\n $sql = '\n SELECT\n a.attname,\n pg_catalog.format_type(a.atttypid, a.atttypmod) AS \"Datatype\"\n FROM\n pg_catalog.pg_attribute a\n WHERE\n a.attnum > 0\n AND NOT a.attisdropped\n AND a.attrelid = (\n SELECT c.oid\n FROM pg_catalog.pg_class c\n LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace\n WHERE c.relname ~ ' . \"'^($table)\\$' \n AND pg_catalog.pg_table_is_visible(c.oid)\n )\n AND a.attname = '$field' \";\n $r = db_query($sql);\n $row = db_row($r['result']);\n if($row) {\n return true;\n }\n return false;\n}", "public function hasField(){\n return $this->_has(2);\n }", "protected static function isField($key) {\n\t\t\treturn array_key_exists($key, static::$_fields);\n\t\t}", "public function fieldExists($table, $field) {\n if ($this->tableExists($table) && isset($this->schema[$table]['fields'][$field])) {\n return true;\n }\n else return false;\n }", "public function hasField($fieldName): bool;", "private function isField($fld)\n {\n return isset($this->columns->{$fld});\n }", "function IsFieldExist($Table, $field = 'img')\n {\n $image = NULL;\n\n $tmp_db = DBs::getInstance();;\n $q = \"SELECT * FROM `\".$Table.\"` WHERE 1 LIMIT 1\";\n $res = $tmp_db->db_Query($q);\n //echo '<br>q='.$q.' res='.$res.' $tmp_db->result='.$tmp_db->result;\n if ( !$res ) return false;\n if ( !$tmp_db->result ) return false;\n\n $i = 0;\n while ($i < mysql_num_fields($tmp_db->result)) {\n $meta = mysql_fetch_field($tmp_db->result, $i);\n if ($meta) {\n if ($meta->name==$field) return true;\n }\n $i++;\n }\n return false;\n }", "public function hasField($field){\n\t\t#if[compile-time]\n\t\tCoreType::assertString($field);\n\t\t#endif\n\t\t$this->_connect();\n\t\t$fields = $this->_getAttributes();\n\t\treturn in_array($field, $fields);\n\t}", "public function is_valid_field() {\n\t\tglobal $wpdb, $bp;\n\n\t\t$retval = $wpdb->get_row( $wpdb->prepare( \"SELECT id FROM {$bp->profile->table_name_fields} WHERE id = %d\", $this->field_id ) );\n\n\t\treturn apply_filters_ref_array( 'xprofile_data_is_valid_field', array( (bool)$retval, $this ) );\n\t}", "function _mysql_field_exists($table, $field) {\n $sql = \"SHOW COLUMNS FROM $table LIKE '$field'\";\n $r = db_query($sql);\n $row = db_row($r['result']);\n\n if($row) {\n return true;\n }\n return false;\n}", "public function hasValue(string $field): bool;", "public function hasField($fieldName) {\n\t\t// @todo naive implementation, improve me according to the needs. Check if info is not yet in cache.\n\t\treturn isset($this->tca['columns'][$fieldName]) || in_array($fieldName, array('uid'));\n\t}", "public function delegateFieldExists(&$result, $drupal_table_name, $field_name);", "public function fieldExists( $table, $field, $fname = __METHOD__ ) {\n\t\t$info = $this->fieldInfo( $table, $field );\n\n\t\treturn (bool)$info;\n\t}", "public function testValidateFieldExistsFieldNotSet()\n {\n $this->expectException(FieldNotFoundException::class);\n $this->expectExceptionMessage(\"Missing field: bar[foo]\");\n TestJsConnect::validateFieldExists(\"foo\", [], \"bar\");\n }", "public function hasField($name ) {\n return isset($this->fields[$name]);\n }", "public function fieldExists($field)\n\t{\n\t\treturn array_key_exists($field, $this->fields);\n\t}", "public function fieldExists($field)\n\t{\n\t\treturn array_key_exists($field, $this->fields);\n\t}", "public function hasField($fieldName) {\n return array_key_exists($fieldName, $this->getDataDesc());\n }", "public function requireValidFieldName($field)\n {\n // here\n\n if (!isset($this->aFields[$field]))\n {\n throw new DataModel_E_NoSuchField($field, $this->getModelName());\n }\n }", "public function testFieldExists()\n {\n $config = [\n 'gcon_condition_text1' => 'field1',\n 'gcon_condition_text2' => \\Gems\\Conditions::COMPARATOR_EQUALS,\n 'gcon_condition_text3' => 5,\n 'gcon_condition_text4' => '',\n ];\n\n $this->condition->exchangeArray($config);\n\n $fieldCodes = [\n 'f__1' => 'test',\n 'f__2' => 'field1'\n ];\n\n $trackEngine = $this->_getEngineMock($fieldCodes);\n $tracker = $this->getMockBuilder('Gems_Tracker')\n ->disableOriginalConstructor()\n ->getMock();\n\n $tracker->expects($this->any())\n ->method('getTrackEngine')\n ->will($this->returnValue($trackEngine));\n\n $this->condition->answerRegistryRequest('tracker', $tracker);\n\n $valid = $this->condition->isValid(1, ['gro_id_track' => 1]);\n\n $this->assertTrue($valid);\n }", "public function hasField($key) {\n return isset($this->getFields()[$key]);\n }", "function validate_user_exists(string $field_input, array &$field): bool\n{\n if (!App::$db->getRowWhere('users', ['email' => $field_input])) {\n $field['error'] = 'User with this email does not exist';\n\n return false;\n }\n\n return true;\n}", "public function __isset($field) {\n\t\treturn $this->offsetExists($field);\n\t}", "function check_if_field_exits($id_field='', $id_app=''){\n\t\ttry{\n\t\t\t$this->db->select('*');\n\t\t\t$this->db->from('fields');\n\t\t\t$this->db->where('id', $id_field);\n\t\t\t$this->db->where('id_wapp', $id_app);\n\t\t\t$result = $this->db->get()->row();\n\t\t\t//echo $this->db->last_query();\n\t\t\tif($result){\n\t\t\t\treturn $result;\n\t\t\t}else{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}catch(Exception $e){\n\t\t\tlog_message('debug','Error al tratar de traer los datos de un campo din�mico');\n\t\t\treturn FALSE;\n\t\t}\n\t}", "public function __isset( $field )\n {\n return array_key_exists( $field, $this->_original );\n }", "public function hasField($name) {\n return array_key_exists($name, $this->fields);\n }", "public function hasFields(){ return !empty($this->field_map); }", "public function has_fields()\n {\n }", "public function __isset($field)\n\t{\n\t\treturn array_key_exists($field, $this->group);\n\t}", "public function fieldNameExists($value) {\n // Prefix with 'field_'.\n $field_name = 'field_' . $value;\n\n // We need to check inactive fields as well, so we can't use\n // field_info_fields().\n return (bool) field_read_fields(array('field_name' => $field_name), array('include_inactive' => TRUE));\n }", "private function checkIsExists(): bool\n {\n $where = [\n $this->table. '.vendorId' => $this->vendorId,\n $this->table. '.campaign' => $this->campaign,\n ];\n\n if (!is_null($this->id)) {\n $where[$this->table. '.id !='] = $this->id;\n }\n\n $id = $this->readImproved([\n 'what' => [$this->table. '.id'],\n 'where' => $where\n ]);\n\n return !is_null($id);\n }", "public function hasField($field)\r\n {\r\n return isset($this->fields[$field]);\r\n }", "function f_fieldExists($link, $table, $column, $column_attr = \"VARCHAR( 255 ) NULL\") {\r\n $exists = false;\r\n $columns = mysqli_query($link, \"SHOW COLUMNS FROM $table LIKE '\".$column.\"'\");\r\n //ferror_log(\"SQL: $sql \". \"returns \". $num_rows . \" rows.\");\r\n $exists = ( mysqli_num_rows($columns) )?TRUE:FALSE;\r\n if (!$exists) {\r\n ferror_log(\"ALTER TABLE `$table` ADD `$column` $column_attr\");\r\n if (mysqli_query($link, \"ALTER TABLE `$table` ADD `$column` $column_attr\")) {\r\n return TRUE;\r\n }\r\n } else {\r\n return TRUE;\r\n }\r\n return FALSE;\r\n}", "public function checkForField( $field, $table );", "public function checkRecordIsExist ($field,$table,$idrecord,$opt=\"integer\");", "public function isField($key,$val){\n $ret_bool = false;\n if($this->existsField($key)){\n $ret_bool = $this->getField($key) == $val;\n }//if\n return $ret_bool;\n }", "public function hasFields(){\n return $this->_has(1);\n }", "public function hasField($name)\n {\n return array_key_exists($name, $this->fields);\n }", "public function isField() : bool\n {\n return null == $this->fields || empty($this->fields);\n }", "public function hasField($field): bool\n {\n return isset($this->fields[$field]);\n }", "public function hasField($field)\n {\n return array_key_exists($field, $this->fieldsByName);\n }", "public function hasField(string $field): bool\n {\n return $this->getCardFor($field) !== null;\n }", "private function _field_exists($dbname,$tablename,$field){\n \t$fields=$this->_read_frame($dbname,$tablename);\n \tif(($key=array_search($field,$fields,TRUE)) === FALSE )\n return FALSE;\n \treturn $key;\n }", "public function exists($field)\n {\n return $this->indexOfKey($field)>=0;\n }", "private function hasField($name)\r\n\t{\r\n\t\tforeach ($this->fields as $field)\r\n\t\t{\r\n\t\t\tif ($field instanceOf TableField && $field->name == $name)\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public function testFieldNotExists()\n {\n $config = [\n 'gcon_condition_text1' => 'field2',\n 'gcon_condition_text2' => \\Gems\\Conditions::COMPARATOR_EQUALS,\n 'gcon_condition_text3' => 5,\n 'gcon_condition_text4' => '',\n ];\n\n $this->condition->exchangeArray($config);\n\n $fieldCodes = [\n 'f__1' => 'test',\n 'f__2' => 'field1'\n ];\n\n $trackEngine = $this->_getEngineMock($fieldCodes);\n $tracker = $this->getMockBuilder('Gems_Tracker')\n ->disableOriginalConstructor()\n ->getMock();\n\n $tracker->expects($this->any())\n ->method('getTrackEngine')\n ->will($this->returnValue($trackEngine));\n\n $this->condition->answerRegistryRequest('tracker', $tracker);\n\n $valid = $this->condition->isValid(1, ['gro_id_track' => 1]);\n\n $this->assertFalse($valid);\n }", "public function hasField(string $name): bool\n {\n return array_key_exists($name, $this->checkNotNull($name, 'name')->fieldDefinitions);\n }", "public function haveField($name) {\n return $this->body->haveField($name);\n }", "function check_exits_field($code,$field, $table, &$db, $id = 0)\n{\n\tif($id<>0) $cond = \" AND id <> '\".$id.\"'\";\n\telse $cond = \"\";\n\n\t$sql_check = \"SELECT count(*) FROM \".$table.\" WHERE `\".$field.\"` = '\".$code.\"'\".$cond;\n\t$sql_check = $db->sql_query($sql_check) or die(mysql_error());\n\t$exits \t = $db->sql_fetchfield(0);\n\tif($exits)return true;\n\telse return false;\n}", "private function checkIsExists(): bool\n {\n $id = $this->readImproved([\n 'what' => [$this->table. '.id'],\n 'where' => [\n $this->table. '.listId' => $this->listId,\n $this->table. '.campaignId' => $this->campaignId,\n ]\n ]);\n\n return !is_null($id);\n }", "public function offsetExists($field)\n {\n return $this[$field] !== null;\n }", "public function hasProperty($field);", "public function isMissing($field) {\n return in_array($field, $this->missing);\n }", "function fieldIsSet($field) {\n\treturn array_key_exists($field,$_GET) && $_GET[$field]; \n}", "public function isField($field_name){\n\t\treturn isset($this->Fields[$field_name]) && is_object($this->Fields[$field_name]);\n\t}", "public function hasField(string $name, string $class=null): bool;", "function is_set($field) {\n\t\treturn isset($this->data[$field]) || isset($this->associations[$field]);\n\n\t}", "public function hasFields()\n {\n return null !== @$this->fields;\n }", "function exists($conn, $fieldName, $fieldValue) {\n\t$sql = \"select count(*) from users where $fieldName='$fieldValue'\";\n\t$result = $conn->query($sql);\n\t$row = $result->fetch_assoc();\n\t$count = $row['count(*)'];\n\tif($count > 0) {\n\t\treturn true;\n\t} else {\n\t\treturn false;\n\t}\n}", "public static function has($field)\n {\n $data = self::getData();\n return isset($data[$field]);\n }", "public function hasFields()\n {\n return !empty($this->fields);\n }", "public function check () {\n $modelName = $this->field->model->name;\n $fieldName = $this->field->name;\n $bean = $this->field->model->bean;\n $ctx = @$this->field->constraints['context'];\n $update = $ctx ? strpos(\",,{$ctx->value},\", ',update,') : true;\n return $this->dispatch(\n (!$this->value) || ($this->field && $this->field->value) || ($bean->id && !$update),\n \"{$this->field->title} is required\"\n );\n }", "public function __isset($key) {\n return isset($this->_fields[$key]);\n }", "public function testValidateFieldExistsFieldEmptyOK()\n {\n $actual = TestJsConnect::validateFieldExists(\n \"foo\",\n [\"foo\" => \"\"],\n \"bar\",\n false\n );\n $this->assertSame(\"\", $actual);\n }", "public function testGetInvalidFieldName()\r\n\t\t{\r\n\t\t\tORM::init('mysql:host=localhost;dbname=rocket_orm', 'orm_username', 'orm_password');\r\n\t\t\t\r\n\t\t\t$user = User::load(1);\r\n\t\t\t\r\n\t\t\t$user->get('doesnotexistfieldname');\r\n\t\t}", "function validate_user_unique(string $field_input, array &$field): bool\n{\n if (App::$db->getRowWhere('users', ['email' => $field_input])) {\n $field['error'] = 'User already exists';\n\n return false;\n }\n\n return true;\n}", "public function hasField($str_name)\n {\n return isset($this->arr_defined_fields[$str_name]);\n }", "public function hExists($key, $field) {\n return $this->redis ? $this->redis->hExists($key, $field) : false;\n }", "function check_additional_fields_name($field_name, $field_id) {\r\n\t\t$sql = \"SELECT field_id FROM sys_man_additional_fields WHERE field_name = ? AND field_id <> ? \";\r\n\t\t$sql = $this->clean_sql($sql);\r\n\t\t$data = array(\"$field_name\", \"$field_id\");\r\n\t\t$query = $this->db->query($sql, $data);\r\n\t\t$result = $query->result();\r\n\t\treturn ($result);\r\n\t}", "function check_exits_idField($code,$field, $table, &$db)\n{\n\n\t$sql_check = \"SELECT * FROM \".$table.\" WHERE `\".$field.\"` = '\".$code.\"'\";\n\t$sql_check = $db->sql_query($sql_check) or die(mysql_error());\n\t$exits \t = $db->sql_fetchfield(0);\n\tif($exits)return true;\n\telse return false;\n}", "public function hasField($field)\n {\n return isset($this->fields[$field]);\n }", "function acf_field_type_exists($type = '')\n{\n}", "public function __isset(string $field): bool\n\t{\n\t\treturn $this->hasValue($field);\n\t}", "public function fieldHasSync($field)\n {\n\treturn $this->fetch('select [id] from [fields] where [name] = %s and [table] = %s and [hash] = %s',\n\t $field->getName(),\n\t $field->getModel()->getTableName(),\n\t $field->getHash()\n\t) === false ? false : true;\n }", "public static function isPicklistExist(string $fieldName): bool\n\t{\n\t\treturn \\App\\Db::getInstance()->isTableExists(\"vtiger_{$fieldName}\");\n\t}", "public function isFieldName($fieldName)\n {\n return array_key_exists($fieldName, $this->_row);\n }", "function test_get_field_method_exists() {\n $wpNonce = new \\Fazleelahhee\\Inpsyde\\WPNonce();\n $this->assertTrue(\n method_exists($wpNonce, 'getField'),\n 'Class does not have method createField'\n );\n }", "function hasValidDataField()\r\n {\r\n $result=false;\r\n\r\n if ($this->_datafield!=\"\")\r\n {\r\n if ($this->_datasource!=null)\r\n {\r\n if ($this->_datasource->Dataset!=null)\r\n {\r\n $result=true;\r\n }\r\n }\r\n }\r\n\r\n return($result);\r\n }", "private function collectionHasRecord($field)\n {\n return (bool)$this->$field->count();\n }", "public function valid () {\n return isset($this->__fields[key($this->__fields)]);\n }", "public function hasRepeatedObjField()\n {\n return count($this->get(self::REPEATED_OBJ_FIELD)) !== 0;\n }" ]
[ "0.7953629", "0.7864522", "0.7537926", "0.7520184", "0.7483497", "0.74450856", "0.73891866", "0.73628217", "0.7284987", "0.7266403", "0.7254329", "0.72423977", "0.71889013", "0.71889013", "0.71889013", "0.71868515", "0.71654385", "0.7165039", "0.70807207", "0.7068807", "0.7009602", "0.7001219", "0.6952157", "0.69383746", "0.68977314", "0.6881654", "0.6880323", "0.6864135", "0.6856517", "0.68553334", "0.68301445", "0.6788457", "0.67656726", "0.6732896", "0.67209643", "0.67209643", "0.67129314", "0.67098933", "0.6705161", "0.6689011", "0.6683969", "0.6670053", "0.66685486", "0.6659869", "0.6655752", "0.66527677", "0.66335994", "0.6633446", "0.6624346", "0.6619482", "0.66000986", "0.6579862", "0.65788233", "0.6577696", "0.6556188", "0.6555693", "0.6527831", "0.65273446", "0.6510789", "0.65102446", "0.6501156", "0.64879864", "0.646679", "0.645094", "0.6441619", "0.6439459", "0.6436823", "0.64285684", "0.64227045", "0.6421234", "0.6383544", "0.63799757", "0.63679224", "0.63483393", "0.6342262", "0.63381386", "0.633773", "0.63271976", "0.6322465", "0.63223344", "0.63156855", "0.63107395", "0.6282811", "0.6278305", "0.62759256", "0.6272538", "0.6266914", "0.62668335", "0.6266527", "0.62661844", "0.6259831", "0.6256743", "0.6247773", "0.6217772", "0.6205845", "0.62032527", "0.6200506", "0.61939365", "0.6188832", "0.61785287" ]
0.62539333
92
Get all shipping errors
private function getShippingErrors($errors) { $error_msg = ''; foreach ($errors as $error) { if (is_array($error)) { foreach ($error as $e) { if (is_string($e)) { $error_msg .= ' ' . $e; } } } elseif (is_string($error)) { $error_msg .= ' ' . $error; } } return $error_msg; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllerrors() {\n return $this->errors;\n }", "public function allError() {\n return $this->errorMsg;\n }", "public static function createShipmentsError(): array\n {\n $wsdl = __DIR__ . '/../../_files/bcs-3.3.2/geschaeftskundenversand-api-3.3.2.wsdl';\n $singleResponse = __DIR__ . '/../../_files/createshipment/singleShipmentError.xml';\n $multiResponse = __DIR__ . '/../../_files/createshipment/multiShipmentError.xml';\n\n $authStorage = AuthenticationStorageProvider::authSuccess();\n\n $singleLabelRequest = ShipmentRequestProvider::createSingleShipmentError();\n $singleLabelResponse = \\file_get_contents($singleResponse);\n\n $multiLabelRequest = ShipmentRequestProvider::createMultiShipmentError();\n $multiLabelResponse = \\file_get_contents($multiResponse);\n\n return [\n 'single label validation error' => [$wsdl, $authStorage, $singleLabelRequest, $singleLabelResponse],\n 'multi label validation error' => [$wsdl, $authStorage, $multiLabelRequest, $multiLabelResponse],\n ];\n }", "function getErrors()\n\t{\n\t\treturn [];\n\t}", "public function get_error_objects() {\n return $this->errors;\n }", "public function getErrors();", "public function getErrors();", "public function getErrors();", "public function getErrors();", "public function get_errors() {\n $res = array();\n foreach($this->errors as $error) {\n $res[] = $error->errormsg;\n }\n return $res;\n }", "public function get_errors() {\n\t\treturn $this->errors->get_error_messages();\n\t}", "function getErrors() {\n\t\treturn $this->_arc2_RemoteStore->getErrors();\n\t}", "public function getError()\n {\n $errors = self::$errors;\n self::$errors = array();\n return $errors;\n }", "public function getErrors() {\n\t\treturn $this->errorBag;\n\t}", "public function get_list_errors()\n\t{\n\t\treturn $this->errors;\n\t}", "public function getErrors()\n {\n return $this->messageBag->all();\n }", "function get_errors() {\n\t\treturn $this->errors;\n\t}", "public function get_errors() {\n\t\treturn $this->errors;\n\t}", "public function get_errors()\n {\n return $this->errors;\n }", "public function get_errors()\n {\n return $this->errors;\n }", "public function get_errors()\n {\n return $this->errors;\n }", "public function getErrors(){\r\n return $this->_errors['error'];\r\n }", "public function get_errors() {\n return $this->errors;\n }", "public function get_errors() {\n return $this->errors;\n }", "public function get_errors(){\n\n\t\treturn $this->errors;\n\n\t}", "function requestErrors() {\n return $this->errors;\n }", "public function getErrorList() {\n\t\treturn array();\n\n\t}", "public function errors()\n {\n // return new \\ArrayList($this->errorList.values());\n }", "public function errors()\n {\n return $this->getRules()->getMessageBag()->all();\n }", "public function getValidationErrors() {\n\t\t$out = array();\n\t\t$this->loadFields();\n\t\tforeach($this->fields as $field) {\n\t\t\t$out = array_merge($out, $field->getValidationErrors());\n\t\t}\n\t\tif ((!$this->lat || !$this->lng) && !$this->feature_id) {\n\t\t\t$out[] = \"You must set a location!\";\n\t\t}\n\t\treturn $out;\n\t}", "protected final function requestErrors(): array\n {\n return $this->errors;\n }", "public function errors()\n {\n return $this->provider->getMessageBag();\n }", "public function getErrors ()\n {\n\n return $this->errors;\n\n }", "public function getErrors(): array\n {\n return $this->errors;\n }", "public function getErrors(): array\n {\n return $this->errors;\n }", "public function getErrors(): array\n {\n return $this->errors;\n }", "public function getErrors(): array\n {\n return $this->errors;\n }", "public function getErrors(): array\n {\n return $this->errors;\n }", "public function getErrors(): array\n {\n return $this->errors;\n }", "public function getErrors(): array\n {\n return $this->errors;\n }", "public function getErrors()\n {\n return $this->errors;\n }", "public function getErrors()\n {\n return $this->errors;\n }", "public function getErrors()\n {\n return $this->errors;\n }", "public function getErrors()\n {\n return $this->errors;\n }", "public function getErrors()\n {\n return $this->errors;\n }", "public function getErrors()\n {\n return $this->errors;\n }", "public function getErrors()\n {\n return $this->errors;\n }", "public function getErrors()\n {\n return $this->errors;\n }", "public function getErrors()\n {\n return $this->errors;\n }", "public function getErrors()\n {\n return $this->errors;\n }", "public function getErrors()\n {\n return $this->errors;\n }", "public function getErrors()\n {\n return $this->errors;\n }", "public function getErrors()\n {\n return $this->errors;\n }", "public function getErrors()\n {\n return $this->errors;\n }", "public function getErrors()\n {\n return $this->errors;\n }", "public function getErrors()\n {\n return $this->_errors;\n }", "public function getErrors()\n {\n return $this->_errors;\n }", "public function getErrors() {\n return $this->_errors;\n }", "public function getErrors() {\n return $this->errors;\n }", "public function getErrors() {\n return $this->errors;\n }", "public function getErrors() {\n return $this->errors;\n }", "public function getErrors () : array {\n\t\treturn $this->errors;\n\t}", "function getErrors()\n {\n ksort($this->errors);\n $e = array();\n foreach ($this->errors as $v) foreach ($v as $e[]) {}\n return $e;\n }", "public function getError(): array\n {\n return $this->errorMessages;\n }", "public function getErrors() {\r\n return $this->errors;\r\n }", "public function getErrors() {\r\n\t\treturn $this->errors;\r\n\t}", "public function getErrors()\n {\n return $this->getProperty(OperationInterface::BPMN_PROPERTY_ERRORS, new Collection);\n }", "public function getErrors() {\n\t\treturn $this->errors;\n\t}", "public function getErrors() {\n return $this->errors;\n }", "public function getErrors()\n {\n return $this->_getChildrenByName('error');\n }", "public function getErrors()\r\n\t{\r\n\t\treturn $this->errors;\r\n\t}", "function getErrors();", "public function error()\n\t{\n\t\treturn [];\n\t}", "public function getErrors()\n\t{\n\t\treturn $this->errors;\n\t}", "public function getErrors()\n\t{\n\t\treturn $this->errors;\n\t}", "public function getErrors()\n\t{\n\t\treturn $this->errors;\n\t}", "public function getErrors()\n\t{\n\t\treturn $this->errors;\n\t}", "public function getErrors()\n\t{\n\t\treturn $this->errors;\n\t}", "public function getErrors()\n {\n return $this->errors;\n }", "public function getErrors()\n {\n return $this->processerrors;\n }", "public function getErrors()\r\n {\r\n return $this->errors;\r\n }", "public function getErrors()\n {\n return $this->errors; \n }", "public function getErrors()\n\t{\n\t\treturn $this->_errors;\n\t}", "public function getErrors()\n\t\t{\n\t\t\treturn $this->errors;\n\t\t}", "public function getErrors() {\n\treturn $this->_errors; \n }", "public function getErrors()\n\t{\n\t\treturn $this->_errorMessage;\n\t}", "function getListOfErrors() {\n\t\treturn $this->errorList;\n\t}", "public final function getErrors()\n {\n return $this->errors;\n }", "function getErrors()\n\t{\n\t\treturn $this->_errors;\n\t}", "public function getErrors(){\n return $this->_errors;\n }", "public function getErrors() : array\n {\n return $this->errors;\n }", "public function returnErrors() {\n return $this->_errorSet;\n }", "public function errors()\n\t{\n\t\treturn $this->_errors['errors'];\n\t}", "public function errors()\n\t{\n\t\treturn $this->_errors['errors'];\n\t}", "public function getErrors()\n {\n return $this->getBag()->toArray();\n }", "public function errors()\n {\n return $this->errors;\n }", "public function errors()\n {\n return $this->errors;\n }", "public function errors()\n {\n return $this->errors;\n }", "final public function getError():array\n {\n return $this->errors;\n }", "public function getErrors()\n {\n return self::$errors;\n }" ]
[ "0.71521854", "0.7002981", "0.6898814", "0.67515016", "0.674763", "0.66678643", "0.66678643", "0.66678643", "0.66678643", "0.6663338", "0.6632478", "0.6605556", "0.65888894", "0.65854657", "0.65661466", "0.6562612", "0.65162134", "0.6516055", "0.65133137", "0.65133137", "0.65133137", "0.6513271", "0.650768", "0.650768", "0.6506554", "0.6477062", "0.645765", "0.64550745", "0.644653", "0.64368474", "0.64145964", "0.6404947", "0.6400138", "0.63956106", "0.63956106", "0.63956106", "0.63956106", "0.63956106", "0.63956106", "0.63956106", "0.6385527", "0.6385527", "0.6385527", "0.6385527", "0.6385527", "0.6385527", "0.6385527", "0.6385527", "0.6385527", "0.6385527", "0.6385527", "0.6385527", "0.6385527", "0.6385527", "0.6385527", "0.6385437", "0.6385437", "0.63727015", "0.63680786", "0.63680786", "0.63680786", "0.63674057", "0.63662773", "0.6364536", "0.6364328", "0.63642484", "0.636265", "0.6362437", "0.6359873", "0.6357968", "0.6355539", "0.6351126", "0.6348931", "0.6336405", "0.6336405", "0.6336405", "0.6336405", "0.6336405", "0.6336219", "0.6323663", "0.6319269", "0.6318197", "0.63175297", "0.63161224", "0.63117594", "0.6296839", "0.62912494", "0.6290116", "0.62741727", "0.62734884", "0.6266684", "0.62649685", "0.6262178", "0.6262178", "0.6253479", "0.62388176", "0.62388176", "0.62388176", "0.6237511", "0.623537" ]
0.6971756
2
Creates data provider instance with search query applied
public function search($params) { $query = GrcPackage::find(); // add conditions that should always apply here $dataProvider = new ActiveDataProvider([ 'query' => $query, ]); $query->joinWith(['mealPlan']); $query->joinWith(['room']); $dataProvider->sort->attributes['mealPlan'] = [ 'asc' => ['grc_meal_plan.name' => SORT_ASC], 'desc' => ['grc_meal_plan.name' => SORT_DESC], ]; $dataProvider->sort->attributes['room'] = [ 'asc' => ['rooms.name' => SORT_ASC], 'desc' => ['rooms.name' => SORT_DESC], ]; $this->load($params); if (!$this->validate()) { // uncomment the following line if you do not want to return any records when validation fails // $query->where('0=1'); return $dataProvider; } // grid filtering conditions $query->andFilterWhere([ 'id' => $this->id, 'room_id' => $this->room_id, 'meal_plan_id' => $this->meal_plan_id, 'price' => $this->price, 'active' => $this->active, 'created_by' => $this->created_by, 'created_at' => $this->created_at, 'updated_at' => $this->updated_at, ]); $query->andFilterWhere(['like', 'grc_meal_plan.name', $this->mealPlan]); $query->andFilterWhere(['like', 'rooms.name', $this->room]); //var_dump($query->prepare(Yii::$app->db->queryBuilder)->createCommand()->rawSql); return $dataProvider; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function searchQueryDataProvider() {}", "public function search()\n {\n $q = $this->getQuery();\n $dataProvider = new ActiveDataProvider([\n 'query' => $q,\n ]);\n\n return $dataProvider;\n }", "public function getQueryDataProvider() {}", "public function search() {\n // Get CDbCriteria instance\n $dbCriteria = new CDbCriteria;\n // Search for client name\n $dbCriteria->compare('name', Yii::app()->request->getQuery('name', ''), true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $dbCriteria,\n 'pagination' => array(\n 'pageSize' => 10,\n ),\n ));\n }", "protected function getDataProviders()\n {\n $searchModel = $this->getSearchModel();\n $queryParams = Yii::$app->request->queryParams;\n $dataProvider = $searchModel->search($queryParams);\n return [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider\n ];\n }", "public function search()\n {\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('url', $this->url);\n $criteria->compare('type', $this->type);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n 'pagination' => array('pageSize' => 100),\n ));\n }", "public function backendSearch()\n {\n $criteria = new CDbCriteria();\n\n return new CActiveDataProvider(\n __CLASS__,\n array(\n 'criteria' => $criteria,\n )\n );\n }", "public function search() {\n\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t'criteria' => $this->getSearchCriteria(),\n\t\t\t'sort' => array(\n\t\t\t\t'defaultOrder' => 't.id DESC',\n\t\t\t\t'attributes' => array(\n\t\t\t\t\t'client_id' => array(\n\t\t\t\t\t\t'asc' => 'client_name asc',\n\t\t\t\t\t\t'desc' => 'client_name desc',\n\t\t\t\t\t),\n\t\t\t\t\t'*',\n\t\t\t\t),\n\t\t\t),\n\t\t\t'pagination' => array(\n\t\t\t\t'pageSize' => Yii::app()->config->get('global.per_page'),)\n\t\t));\n\t}", "public function search()\n {\n $criteria = new CDbCriteria;\n $criteria->compare('id', $this->id, true);\n $criteria->compare('level', $this->level);\n $criteria->compare('text', $this->text, true);\n $criteria->compare('ip_create', $this->ip_create, true);\n\n return new ActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function createSearchQuery()\n {\n $query = new SearchQuery($this->elastic);\n $query->listeners = $this->listeners;\n return $query;\n }", "public function search()\n {\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('state', $this->state);\n $criteria->compare('type','0');\n return new ActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function prepareDataProvider()\n\t{\n\t $searchModel = new \\app\\models\\ClearanceSearch(); \n\t\treturn $searchModel->search(\\Yii::$app->request->queryParams);\n\n\t}", "public function search()\n {\n $criteria = new CDbCriteria;\n $criteria->compare('authorname', $this->authorname, true);\n return new CActiveDataProvider($this, array('criteria' => $criteria, ));\n }", "public function getDataProvider(array $query = []);", "protected function prepareDataProvider()\n {\n if ($this->prepareDataProvider !== null) {\n return call_user_func($this->prepareDataProvider, $this);\n }\n\n\t\t/* @var $modelClass \\yii\\db\\BaseActiveRecord */\n $modelClass = $this->modelClass;\n\t\t$query = $modelClass::find();\n\t\t\n\t\t$filters = ActionHelpers::getFilter();\n\t\t\n\t\tforeach($filters as $filter) {\n\t\t\t$query->andFilterWhere($filter);\n\t\t}\n\t\t\n\t\tif($with = ActionHelpers::getWith()) {\n $query->with($with);\n }\n\n return new ActiveDataProvider([\n 'query' => $query,\n 'pagination' => [\n 'pageSize' => ActionHelpers::getLimit()\n ],\n 'sort'=> ActionHelpers::getSort()\n // 'sort'=> ['defaultOrder' => ['id'=>SORT_DESC]]\n ]);\n }", "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('entity_id', $this->entity_id);\n $criteria->compare('dbname', $this->dbname, true);\n $criteria->compare('isfiltered', $this->isfiltered);\n $criteria->compare('filtertype', $this->filtertype);\n $criteria->compare('alias', $this->alias, true);\n $criteria->compare('enabled', $this->enabled);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n 'pagination' => false,\n ));\n }", "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that should not be searched.\n\t\t$criteria = new \\CDbCriteria;\n\n\t\tforeach (array_keys($this->defineAttributes()) as $name)\n\t\t{\n\t\t\t$criteria->compare($name, $this->$name);\n\t\t}\n\n\t\treturn new \\CActiveDataProvider($this, array(\n\t\t\t'criteria' => $criteria\n\t\t));\n\t}", "public function search()\n\t{\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('type',$this->type,true);\n\t\t$criteria->compare('memo',$this->memo,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function search()\n {\n $query = Hotel::find();\n // add conditions that should always apply here\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n ]);\n \n // grid filtering conditions\n $query->availables($this->quantity_of_guests);\n $query->andFilterWhere([\n 'hotel_id' => $this->hotel_id,\n 'price_per_guest' => $this->price_per_guest,\n ]);\n $query->andFilterWhere(['like', 'city_name', $this->city_name]);\n return $dataProvider;\n \n }", "public function search()\n\t{\n\t $criteria=new CDbCriteria;\n\t\t\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('projection',$this->projection,true);\n\t\t$criteria->compare('username',Yii::app()->user->id);\n\t\t$criteria->compare('title',$this->title);\n\t\t$criteria->compare('url',$this->url);\n\t return new CActiveDataProvider(get_class($this), array(\n\t 'criteria'=> $criteria,\n\t 'sort'=>array(\n\t 'defaultOrder'=>'name ASC',\n\t ),\n\t 'pagination'=>array(\n\t 'pageSize'=>10\n\t ),\n\t ));\n\t}", "private function _getDataProvider($query, $params){\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n ]);\n\n if (!($this->load($params) && $this->validate())) {\n return $dataProvider;\n }\n\n $query->andFilterWhere([\n 'user_id' => $this->user_id,\n 'profile_id' => $this->profile_id,\n 'authentication_method_id' => $this->authentication_method_id,\n 'status' => $this->status,\n 'created_at' => $this->created_at,\n 'updated_at' => $this->updated_at,\n ]);\n\n $query->andFilterWhere(['like', 'username', $this->username])\n ->andFilterWhere(['like', 'auth_key', $this->auth_key])\n ->andFilterWhere(['like', 'password_hash', $this->password_hash])\n ->andFilterWhere(['like', 'password_reset_token', $this->password_reset_token])\n ->andFilterWhere(['like', 'email', $this->email]);\n\n return $dataProvider;\n }", "public function getMetadataQueryProviderWrapper();", "protected function prepareDataProvider()\n {\n \t$modelClass = $this->modelClass;\n\n $orderBy='id';\n if (isset($_GET['orderBy'])) $orderBy=$_GET['orderBy'];\n\n $orderByDir='DESC';\n if (isset($_GET['orderByDir'])) $orderByDir=$_GET['orderByDir'];\n\n $limit=20;\n if (isset($_GET['limit'])) $limit=$_GET['limit'];\n\n $order = \"$orderBy $orderByDir\";\n\n \t$dataProvider = new ActiveDataProvider([\n 'query' => $modelClass::find()->limit($limit)->with('supplier')->orderBy($order),\n 'pagination' => [\n 'pageSize' => $limit,\n ],\n ]);\n\n \treturn $dataProvider;\n }", "public function makeSearch() \n {\n $this->setSelect($this->qb);\n $this->setAssociations($this->qb);\n $this->setWhere($this->qb);\n $this->setOrderBy($this->qb);\n $this->setLimit($this->qb);\n\n return $this;\n }", "public function search()\n\t{\n\t\t$criteria = new CDbCriteria;\n\t\t//TODO: update search criteria\n\t\t$criteria->compare('id', $this->id, true);\n\t\t$criteria->compare('event_id', $this->event_id, true);\n\t\t$criteria->compare('standard_intervention_exists', $this->standard_intervention_exists);\n\t\t$criteria->compare('details', $this->details);\n\t\t$criteria->compare('interventions_id', $this->interventions_id);\n\t\t$criteria->compare('description', $this->description);\n\t\t$criteria->compare('patient_factors', $this->patient_factors);\n\t\t$criteria->compare('patient_factor_details', $this->patient_factor_details);\n\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t'criteria' => $criteria,\n\t\t));\n\t}", "public function search()\n\t{\n\t\t$criteria = new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('title',$this->title,true);\n\t\t$criteria->compare('description',$this->description,true);\n\t\t$criteria->compare('keywords',$this->keywords,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public static function new_search_record()\n\t{\n\t\treturn new user_record_search();\n\t}", "public function search() {\n\n\t\t$criteria = new CDbCriteria;\n\n\t\t$criteria->compare('id', $this->id);\n\t\t$criteria->compare('content', $this->content, true);\n\t\t$criteria->compare('score', $this->score);\n\t\t$criteria->compare('author', $this->author, true);\n\t\t$criteria->compare('type', $this->type);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria' => $criteria,\n\t\t));\n\t}", "public function search()\n {\n $criteria = new CDbCriteria;\n $criteria->compare('uid', $this->uid);\n $criteria->compare('token', $this->token, true);\n $criteria->compare('created', $this->created, true);\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search() {\n\n $this->entity = $this->name;\n $this->conditions = $this->_getSearchConditions();\n $this->joins = $this->_getSearchJoins();\n $this->orders = $this->_getSearchOrder();\n $this->limit = $this->_getSearchLimit();\n $this->maxLimit = $this->_getSearchMaxLimit();\n $this->offset = $this->_getSearchOffset();\n $this->fields = $this->_getSearchFields();\n $this->group = $this->_getSearchGroup();\n\n// $this->setVar('entity', $this->name);\n// $this->setVar('conditions', $this->_getSearchConditions());\n// $this->setVar('joins', $this->_getSearchJoins());\n// $this->setVar('orders', $this->_getSearchOrder());\n// $this->setVar('limit', $this->_getSearchLimit());\n// $this->setVar('maxLimit', $this->_getSearchMaxLimit());\n// $this->setVar('offset', $this->_getSearchOffset());\n// $this->setVar('fields', $this->_getSearchFields());\n// $this->setVar('group', $this->_getSearchGroup());\n//\n// $this->setVar('baseAdditionalElements', $this->additionalElements);\n $this->getFieldsForSearchFunction = '_extractSearchFields';\n\n return $this->baseSearch();\n }", "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('keyword_id', $this->keyword_id);\n $criteria->compare('visits', $this->visits);\n $criteria->compare('page_views', $this->page_views);\n $criteria->compare('parsing', $this->parsing);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n 'pagination' => array('pageSize' => 50),\n ));\n }", "protected function getNewSearchModel()\n {\n $searchModelName = $this->getSearchModelName();\n return new $searchModelName;\n }", "public function search()\n\t{\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('name',$this->name,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function searchdatas(){\r\n\t\t// should not be searched.\r\n\t\t$conditions=array();\r\n\t\t$params=array();\r\n\t\t$page_params=array();\r\n\t\t$criteria=new CDbCriteria;\r\n\t\t$sort=new CSort();\r\n \t$sort->attributes=array();\r\n \t$sort->defaultOrder=\"t.create_time ASC\";\r\n \t$sort->params=$page_params;\r\n\t\treturn new CActiveDataProvider(get_class($this), array(\r\n\t\t\t'criteria'=>array(\r\n\t\t\t 'condition'=>'',\r\n\t\t\t 'params'=>array(),\r\n\t\t\t 'with'=>array(\"User\",\"District\"),\r\n\t\t\t),\r\n\t\t\t'pagination'=>array(\r\n 'pageSize'=>'20',\r\n 'params'=> $page_params,\r\n ),\r\n 'sort'=>$sort,\r\n\t\t));\r\n\t}", "public function search()\n {\n\n $query = Board::find()->where(['user_id' => $this->user_id]);\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n 'pagination' => [\n 'pageSize' => 10,\n ],\n 'sort' => [\n 'defaultOrder' => [\n 'created_at' => SORT_DESC,\n\n ]\n ],\n ]);\n\n return $dataProvider;\n }", "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('post_id', $this->post_id);\n $criteria->compare('language_id', $this->language_id);\n $criteria->compare('header', $this->header, true);\n $criteria->compare('text', $this->text, true);\n\t\t$criteria->compare('rating',$this->rating);\n\t\t$criteria->compare('author_id',$this->author_id);\n\t\t$criteria->compare('date_add',$this->date_add,true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search()\n {\n $criteria = new CDbCriteria;\n\n $criteria->compare('t.id', $this->id);\n $criteria->compare('who', $this->who);\n $criteria->compare('date', $this->date, true);\n $criteria->compare('text', $this->text, true);\n $criteria->compare('rate', $this->rate);\n $criteria->compare('knowledge', $this->knowledge);\n $criteria->compare('behavior', $this->behavior);\n $criteria->compare('motivation', $this->motivation);\n $criteria->compare('rate', $this->who_ip);\n $criteria->compare('is_checked', $this->is_checked);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n 'pagination' => array(\n 'pageSize' => '50',\n ),\n 'sort' => array(\n 'defaultOrder' => array(\n 'date' => CSort::SORT_DESC,\n ),\n ),\n ));\n }", "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('name', $this->name, true);\n $criteria->compare('latitude', $this->latitude);\n $criteria->compare('longitude', $this->longitude);\n $criteria->compare('type', $this->type, true);\n $criteria->compare('vicinity', $this->vicinity, true);\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function parametersAndQueriesDataProvider() {}", "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('region_id', $this->region_id);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search()\n\t{\n\t\t $this->StateProcess(get_class($this).'_'.Y::app()->params['cfgName']);\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('title',$this->title,true);\n $criteria->compare('title_adm',$this->title,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n 'sort'=>array('defaultOrder'=>'id DESC'),\n 'pagination'=>array('pageSize'=>Config::$data['base']->pageSize)\n\t\t));\n\t}", "public function search($params,$query=null)\n {\n if(!$query) $query = RestClient::find();\n\n $query = $query->joinWith(['hospital']) \n ->joinWith(['hospital.sales']);\n //$query = $query->joinWith('mingrui_comments');\n // add conditions that should always apply here\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n ]);\n\n $this->load($params);\n \n if (!$this->validate()) {\n // uncomment the following line if you do not want to return any records when validation fails\n // $query->where('0=1');\n //var_dump($params);exit;\n return $dataProvider;\n }\n \n // grid filtering conditions\n $query->andFilterWhere([\n 'rest_client.id' => $this->id, \n 'age' => $this->age, \n 'hospital_id' => $this->hospital_id, \n ]);\n\n $query->andFilterWhere(['like', 'rest_client.name', $this->name])\n ->andFilterWhere(['like', 'sex', $this->sex])\n ->andFilterWhere(['like', 'birthplace', $this->birthplace])\n ->andFilterWhere(['like', 'email', $this->email])\n ->andFilterWhere(['like', 'tel', $this->tel])\n ->andFilterWhere(['like', 'school', $this->school])\n ->andFilterWhere(['like', 'education', $this->education])\n ->andFilterWhere(['like', 'experience', $this->experience])\n ->andFilterWhere(['like', 'employed', $this->employed])\n ->andFilterWhere(['like', 'department', $this->department])\n ->andFilterWhere(['like', 'worktime', $this->worktime])\n ->andFilterWhere(['like', 'position', $this->position])\n ->andFilterWhere(['like', 'speciality', $this->speciality])\n ->andFilterWhere(['like', 'hobby', $this->hobby])\n ->andFilterWhere(['like', 'notes', $this->notes])\n ->andFilterWhere(['like', 'zhuren', $this->zhuren])\n ->andFilterWhere(['like', 'pianhao', $this->pianhao]) \n ->andFilterWhere(['like', 'rest_danwei.name', $this->hospitalname])\n ->andFilterWhere(['like', 'rest_sales.name', $this->salesname])\n ;\n\n // echo $query->createCommand()->getRawSql(); exit; \n return $dataProvider;\n }", "public function search()\n\t{\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('agreement',$this->agreement);\n\t\t$criteria->compare('date',$this->date,true);\n\t\t$criteria->compare('user',$this->user);\n\t\t$criteria->compare('new_status',$this->new_status);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function search()\n {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id, true);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('description', $this->description, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search() {\n\n\t\t$criteria = $this->getDbCriteria();\n\n\t\t$criteria->compare('id', $this->id);\n\t\t$criteria->compare('subject', $this->subject, true);\n\t\t$criteria->compare('status', $this->status);\n\t\t$criteria->compare('template.name', $this->template_id, true);\n\n\t\t$sort = new CSort;\n\t\t$sort->defaultOrder = 'id DESC';\n\n\t\treturn new NActiveDataProvider($this, array(\n\t\t\t\t\t'criteria' => $criteria,\n\t\t\t\t\t'sort' => $sort,\n\t\t\t\t\t'pagination' => array(\n\t\t\t\t\t\t'pageSize' => 20,\n\t\t\t\t\t),\n\t\t\t\t));\n\t}", "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=new CDbCriteria;\n\n $criteria->compare('id',$this->id,true);\n $criteria->compare('query_id',$this->query_id,true);\n $criteria->compare('se_id',$this->se_id,true);\n $criteria->compare('se_page',$this->se_page,true);\n $criteria->compare('se_url',$this->se_url,true);\n $criteria->compare('visits',$this->visits);\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n 'pagination' => array('pageSize' => 25),\n ));\n }", "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('acquisition_date_id', $this->acquisition_date_id);\n $criteria->compare('acquisition_type_id', $this->acquisition_type_id);\n $criteria->compare('location_id', $this->location_id);\n $criteria->compare('number', $this->number, true);\n $criteria->compare('annotation', $this->annotation, true);\n $criteria->compare('location_coordinates_id', $this->location_coordinates_id);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search()\n {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('name', $this->name, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "protected function _initSearch()\n {\n $this->where['is_del'] = array('eq', 1);\n $this->order = 'create_time desc';\n }", "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('id_client', $this->id_client);\n $criteria->compare('first_name', $this->first_name, true);\n $criteria->compare('last_name', $this->last_name, true);\n $criteria->compare('date_birth', $this->date_birth, true);\n $criteria->compare('gender', $this->gender);\n\n return new CActiveDataProvider(get_class($this), array(\n 'criteria' => $criteria,\n ));\n }", "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('domain', $this->domain, true);\n $criteria->compare('ru_domain', $this->ru_domain, true);\n $criteria->compare('page', $this->ru_domain);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function applyDefaultSearchQuery(\\yii\\data\\ActiveDataProvider &$dataProvider);", "protected function _initSearch()\n {\n $this->where['is_del'] = array('eq', 0);\n $this->order = 'create_time desc';\n }", "public static function new_search_record()\n\t{\n\t\treturn new league_record_search();\n\t}", "public function search()\n {\n $query = Story::find()\n ->owner()\n ->globalChannel()\n ->orderBy(['_id' => SORT_ASC])\n ->active();\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n 'pagination' => false\n ]);\n\n return $dataProvider;\n }", "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('project_id', $this->project_id);\n $criteria->compare('num', $this->num);\n $criteria->compare('team_strength', $this->team_strength);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "private function instantiate_search_page() {\n // Build the search_types_fields and search_types_label arrays out of post_types_defs\n $search_types_fields = array();\n $search_types_label = array();\n foreach ( $this->post_type_defs as $post_type ) {\n $search_types_fields[ $post_type[ 'slug' ] ] = $post_type[ 'fields' ];\n $search_types_label[ $post_type[ 'slug' ] ] = $post_type[ 'plural_name' ];\n }\n $this->search_page = new HRHS_Search( array(\n // Using the default slug and title for now\n 'search_types_fields' => $search_types_fields,\n 'search_types_label' => $search_types_label\n ) );\n }", "public function search()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('title',$this->title,true);\n\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function search($query);", "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('sex', $this->sex);\n $criteria->compare('mobile', $this->mobile, true);\n $criteria->compare('idcard', $this->idcard, true);\n $criteria->compare('password', $this->password, true);\n $criteria->compare('place_ids', $this->place_ids, true);\n $criteria->compare('depart_id', $this->depart_id);\n $criteria->compare('bank', $this->bank, true);\n $criteria->compare('bank_card', $this->bank_card, true);\n $criteria->compare('address', $this->address, true);\n $criteria->compare('education', $this->education, true);\n $criteria->compare('created', $this->created);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id, true);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('summ', $this->summ, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id, true);\n $criteria->compare('company_id', Yii::app()->user->company_id);\n $criteria->compare('zone_id', $this->zone_id, true);\n $criteria->compare('low_qty_threshold', $this->low_qty_threshold);\n $criteria->compare('high_qty_threshold', $this->high_qty_threshold);\n $criteria->compare('created_date', $this->created_date, true);\n $criteria->compare('created_by', $this->created_by, true);\n $criteria->compare('updated_date', $this->updated_date, true);\n $criteria->compare('updated_by', $this->updated_by, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('nrs', $this->nrs, true);\n $criteria->compare('supplier_name', $this->supplier_name, true);\n $criteria->compare('npwp', $this->npwp, true);\n $criteria->compare('bank_name', $this->bank_name, true);\n $criteria->compare('bank_account_number', $this->bank_account_number, true);\n $criteria->compare('created_at', $this->created_at, true);\n $criteria->compare('created_by', $this->created_by);\n $criteria->compare('updated_at', $this->updated_at, true);\n $criteria->compare('updated_by', $this->updated_by);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n 'sort' => array(\n 'defaultOrder' => 'id DESC',\n ),\n ));\n }", "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('code',$this->code,true);\n\t\t$criteria->compare('title',$this->title,true);\n\t\t$criteria->compare('did',$this->did);\n\t\t$criteria->compare('date_prod',$this->date_prod,true);\n\t\t$criteria->compare('kind',$this->kind,true);\n\t\t$criteria->compare('len',$this->len,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria = new CDbCriteria;\n\n\t\t$criteria->compare('id', $this->id);\n\t\t$criteria->compare('code', $this->code, true);\n\t\t$criteria->compare('name', $this->name, true);\n\t\t$criteria->compare('printable_name', $this->printable_name, true);\n\t\t$criteria->compare('iso3', $this->iso3, true);\n\t\t$criteria->compare('numcode', $this->numcode);\n\t\t$criteria->compare('is_default', $this->is_default);\n\t\t$criteria->compare('is_highlight', $this->is_highlight);\n\t\t$criteria->compare('is_active', $this->is_active);\n\t\t$criteria->compare('date_added', $this->date_added);\n\t\t$criteria->compare('date_modified', $this->date_modified);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria' => $criteria,\n\t\t));\n\t}", "public function search($params)\n {\n $this->__search($params);\n\n // grid filtering conditions\n $this->query\n\t ->andFilterWhere([\n\t 'id' => $this->id,\n\t 'ord' => $this->ord,\n\t 'type' => $this->type,\n\t ])\n\t ->andFilterWhere(['like', 'code', $this->code])\n ->andFilterWhere(['like', 'name', $this->name]);\n\n return $this->dataProvider;\n }", "public function createQuery() {}", "public function createQuery() {}", "public function createQuery() {}", "public function createQuery() {}", "public function search()\n {\n // @todo Please modify the following code to remove attributes that should not be searched.\n $criteria = new CDbCriteria();\n \n $criteria->compare('question_id', $this->question_id);\n $criteria->compare('student_id', $this->student_id);\n $criteria->compare('answer_id', $this->answer_id);\n $criteria->compare('answer_text', $this->answer_text, true);\n $criteria->compare('answer_number', $this->answer_number, true);\n $criteria->compare('exec_time', $this->exec_time);\n $criteria->compare('result', $this->result);\n $criteria->compare('test_result', $this->test_result);\n \n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria\n ));\n }", "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('createDate', $this->createDate);\n $criteria->compare('lastUpdated', $this->lastUpdated);\n $criteria->compare('trackingKey', $this->trackingKey);\n $criteria->compare('email', $this->email);\n $criteria->compare('leadscore', $this->leadscore);\n\n if (!Yii::app()->user->isGuest) {\n $pageSize = Profile::getResultsPerPage();\n } else {\n $pageSize = 20;\n }\n\n return new SmartActiveDataProvider(get_class($this), array(\n 'pagination' => array(\n 'pageSize' => $pageSize,\n ),\n 'criteria' => $criteria,\n ));\n }", "public function search() {\n// @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('description', $this->description, true);\n $criteria->compare('type', $this->type, true);\n $criteria->compare('options', $this->options, true);\n $criteria->compare('autoreplys', $this->autoreplys, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function googleSearch()\n {\n $search = new \\Hoor\\Search\\Google(get_search_query(), $this->getIndex());\n $this->data['search'] = $search;\n $this->data['results'] = $search->results;\n }", "protected function addSearchConfigs()\n {\n\n $this['textQueryBuilder'] = function () {\n return new TextQueryBuilder();\n };\n\n $this['searchManager'] = function ($c) {\n return new SearchManager($c['databaseAdapter'], $c['queue'], $c['request'], array(\n $c['textQueryBuilder']\n ));\n };\n\n }", "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('tbl_customer_supplier', $this->tbl_customer_supplier, true);\n $criteria->compare('id_customer', $this->id_customer, true);\n $criteria->compare('id_supplier', $this->id_supplier, true);\n $criteria->compare('title', $this->title, true);\n $criteria->compare('date_add', $this->date_add, true);\n $criteria->compare('date_upd', $this->date_upd, true);\n $criteria->compare('active', $this->active);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public static function search()\n {\n return self::filterSearch([\n 'plot_ref' => 'string',\n 'plot_name' => 'string',\n 'plot_start_date' => 'string',\n 'user.name' => self::filterOption([\n 'select' => 'id',\n 'label' => trans_title('users', 'plural'),\n 'fields' => ['id', 'name'],\n //ComboBox user list base on the current client\n //See in App\\Models\\Users\\UsersScopes\n 'model' => app(User::class)->bySearch(),\n ]),\n 'client.client_name' => self::filterOption([\n 'conditional' => Credentials::hasRoles(['admin', 'admin-gv']),\n 'select' => 'client_id',\n 'label' => trans_title('clients', 'plural'),\n 'model' => Client::class,\n 'fields' => ['id', 'client_name']\n ])\n ]);\n }", "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria = new CDbCriteria;\n\n\t\t$criteria->compare('id', $this->id);\n\t\t$criteria->compare('name', $this->name, true);\n\t\t$criteria->compare('district_id', $this->district_id);\n\t\t$criteria->compare('active', $this->active);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t\t\t'criteria' => $criteria,\n\t\t\t\t));\n\t}", "public function search()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria = new CDbCriteria;\n\n\t\t$criteria->compare('issue_date', $this->issue_date, true);\n\n\t\treturn new CActiveDataProvider($this, array('criteria' => $criteria,));\n\t}", "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('hol_id', $this->hol_id);\n $criteria->compare('loc_id', $this->loc_id);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search($params)\n {\n $this->__search($params);\n\n // grid filtering conditions\n $this->query\n\t ->andFilterWhere(['id' => $this->id])\n\t ->andFilterWhere(['like', 'description', $this->description])\n ->andFilterWhere(['like', 'type', $this->type]);\n\n return $this->dataProvider;\n }", "public function search()\r\n\t{\r\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\r\n\r\n\t\t$criteria = new CDbCriteria;\r\n\r\n\t\t$criteria->compare('doc_num', $this->doc_num, true);\r\n\t\t$criteria->compare('doc_num2', $this->doc_num2);\r\n\t\t$criteria->compare('doc_date', $this->doc_date, true);\r\n\r\n\t\treturn new CActiveDataProvider($this, array(\r\n\t\t\t'criteria' => $criteria,\r\n\t\t));\r\n\t}", "public function search()\n {\n $criteria = new CDbCriteria();\n\n $criteria->compare('productCategoryId', $this->productCategoryId, true);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('level', $this->level);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search() {\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria = new CDbCriteria;\n\n\t\t$criteria->compare('id', $this->id);\n\t\t$criteria->compare('name', $this->name, true);\n\t\t$criteria->compare('wikilink', $this->wikilink, true);\n\t\t$criteria->compare('picture', $this->picture, true);\n\t\t$criteria->compare('score', $this->score);\n\t\t$criteria->compare('modification_date', $this->modification_date, true);\n\t\t$criteria->compare('featured', $this->featured);\n\t\t$criteria->compare('users_found', $this->users_found);\n\t\t$criteria->compare('gpsdata', $this->gpsdata);\n\t\t$criteria->compare('category', $this->category);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria' => $criteria,\n\t\t));\n\t}", "public function scopeSearch($query){\n if (request()->has('search_query') && !empty(request()->search_query) && request()->has('search_columns') && !empty(request()->search_columns) ) {\n \t$query = $this->getQuery($query , request()->search_columns , request()->search_query );\n }else{\n \tif (request()->has('search_query') && !empty(request()->search_query)) {\n \t\t$query = $this->getQuery($query , $this->fillable , request()->search_query );\n \t}\n }\n\n \n \n \n \n \n return $query;\n }", "public function search()\n {\n $criteria=new CDbCriteria;\n\n $criteria->compare('id',$this->id);\n $criteria->compare('title',$this->title,true);\n $criteria->compare('text',$this->text,true);\n $criteria->compare('author_id',$this->author_id);\n $criteria->compare('editor_id',$this->editor_id);\n $criteria->compare('crated_at',$this->crated_at,true);\n $criteria->compare('edited_at',$this->edited_at,true);\n $criteria->compare('publish_at',$this->publich_at,true);\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('date_start',$this->date_start,true);\n\t\t$criteria->compare('date_end',$this->date_end,true);\n\t\t$criteria->compare('count_attempt',$this->count_attempt);\n\t\t$criteria->compare('count_questions',$this->count_questions);\n\t\t$criteria->compare('description',$this->description,true);\n\t\t$criteria->compare('date_create',$this->date_create,true);\n\t\t$criteria->compare('author',$this->author,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('latitud',$this->latitud,true);\n\t\t$criteria->compare('longitud',$this->longitud,true);\n\t\t$criteria->compare('telefono',$this->telefono,true);\n\t\t$criteria->compare('direccion',$this->direccion,true);\n\t\t$criteria->compare('web',$this->web,true);\n\t\t$criteria->compare('activo',$this->activo);\n\t\t$criteria->compare('userId',$this->userId);\n\t\t$criteria->compare('ratingGeneral',$this->ratingGeneral);\n\t\t$criteria->compare('youtubeUrl',$this->youtubeUrl,true);\n\t\t$criteria->compare('esDestacado',$this->esDestacado);\n\t\t$criteria->compare('aprobado',$this->aprobado);\n $criteria->compare('regionId',$this->regionId);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function search()\n\t{\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('id_user',$this->id_user);\n\t\t$criteria->compare('id_answer',$this->id_answer);\n\t\t$criteria->compare('mark',$this->mark);\n\t\t$criteria->compare('comment',$this->comment,true);\n\t\t$criteria->compare('time',$this->time,true);\n\t\t$criteria->compare('read_mark',$this->read_mark,true);\n\t\t$criteria->compare('marked_by',$this->marked_by,true);\n\t\t\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n// $criteria->compare('name', $this->name, true);\n $criteria->compare('description', $this->description, true);\n// $criteria->compare('alias', $this->alias, true);\n// $criteria->compare('module', $this->module, true);\n $criteria->compare('crud', $this->crud, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('ID',$this->ID);\n\t\t$criteria->compare('UserID',$this->UserID);\n\t\t$criteria->compare('ProviderID',$this->ProviderID);\n\t\t$criteria->compare('Date',$this->Date,true);\n\t\t$criteria->compare('RawID',$this->RawID);\n\t\t$criteria->compare('Document',$this->Document,true);\n\t\t$criteria->compare('State',$this->State,true);\n\t\t$criteria->compare('Temperature',$this->Temperature,true);\n\t\t$criteria->compare('Conditions',$this->Conditions,true);\n\t\t$criteria->compare('Expiration',$this->Expiration,true);\n\t\t$criteria->compare('Comments',$this->Comments,true);\n\t\t$criteria->compare('Quantity',$this->Quantity,true);\n\t\t$criteria->compare('Type',$this->Type,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t\t'pagination'=>array(\n \t'pageSize'=>Yii::app()->params['defaultPageSize'], \n ),\n\t\t));\n\t}", "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('sn',$this->sn,true);\n\t\t$criteria->compare('fn',$this->fn,true);\n\t\t$criteria->compare('region',$this->region);\n\t\t$criteria->compare('postal',$this->postal,true);\n\t\t$criteria->compare('inn',$this->inn,true);\n\t\t$criteria->compare('ogrn',$this->ogrn,true);\n\t\t$criteria->compare('okpo',$this->okpo,true);\n\t\t$criteria->compare('adress',$this->adress,true);\n\t\t$criteria->compare('tel',$this->tel,true);\n\t\t$criteria->compare('fax',$this->fax,true);\n\t\t$criteria->compare('okved',$this->okved,true);\n\t\t$criteria->compare('oid',$this->oid,true);\n\t\t$criteria->compare('hits',$this->hits);\n\t\t$criteria->compare('st',$this->st);\n\t\t$criteria->compare('alias',$this->alias,true);\n\t\t$criteria->compare('alias2',$this->alias2,true);\n\t\t$criteria->compare('alias3',$this->alias3,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('cardid', $this->cardid, true);\n $criteria->compare('subclassid', $this->subclassid, true);\n $criteria->compare('cardname', $this->cardname, true);\n\n return new ActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id, true);\n $criteria->compare('pid', $this->pid, true);\n $criteria->compare('userName', $this->userName, true);\n $criteria->compare('userEmail', $this->userEmail, true);\n $criteria->compare('text', $this->text, true);\n $criteria->compare('userId', $this->userId, true);\n $criteria->compare('visibility', $this->visibility);\n $criteria->compare('date', $this->date, true);\n $criteria->compare('type', $this->type, true);\n $criteria->compare('recordId', $this->recordId, true);\n $criteria->compare('info', $this->info, true);\n $criteria->compare('new', $this->new, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('user', $this->user, true);\n $criteria->compare('amount', $this->amount);\n $criteria->compare('currency', $this->currency, true);\n $criteria->compare('valid_from', $this->valid_from, true);\n $criteria->compare('valid_to', $this->valid_to, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search () {\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria = new CDbCriteria;\n\n\t\t$criteria->compare('id', $this->id);\n\t\t$criteria->compare('title', $this->title, true);\n\t\t$criteria->compare('description', $this->description, true);\n\t\t$criteria->compare('type', $this->type);\n\t\t$criteria->compare('required', $this->required);\n\t\t$criteria->compare('cId', $this->cId);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t 'criteria' => $criteria,\n\t\t ));\n\t}", "private function new_search()\n {\n $this->template = FALSE;\n \n $articulo = new articulo();\n $codfamilia = '';\n if( isset($_REQUEST['codfamilia']) )\n {\n $codfamilia = $_REQUEST['codfamilia'];\n }\n \n $con_stock = isset($_REQUEST['con_stock']);\n $this->results = $articulo->search($this->query, 0, $codfamilia, $con_stock);\n \n /// añadimos la busqueda\n foreach($this->results as $i => $value)\n {\n $this->results[$i]->query = $this->query;\n $this->results[$i]->dtopor = 0;\n }\n \n header('Content-Type: application/json');\n echo json_encode($this->results);\n }", "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('frequency_band',$this->frequency_band,true);\n\n\t\t$criteria->compare('date_of_issue',$this->date_of_issue,true);\n\n\t\t$criteria->compare('date_of_renewal',$this->date_of_renewal,true);\n\n\t\t$criteria->compare('emission',$this->emission,true);\n\n\t\t$criteria->compare('tolerance',$this->tolerance,true);\n\n\t\t$criteria->compare('application_vsat_id',$this->application_vsat_id,true);\n\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\t\t/*\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('percent_discount',$this->percent_discount,true);\n\t\t$criteria->compare('taxable',$this->taxable);\n\t\t$criteria->compare('id_user_created',$this->id_user_created);\n\t\t$criteria->compare('id_user_modified',$this->id_user_modified);\n\t\t$criteria->compare('date_created',$this->date_created,true);\n\t\t$criteria->compare('date_modified',$this->date_modified,true);\n\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t\t*/\n\t}", "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('first_name', $this->first_name, true);\n $criteria->compare('last_name', $this->last_name, true);\n $criteria->compare('address', $this->address, true);\n $criteria->compare('contact_number', $this->contact_number, true);\n $criteria->compare('city', $this->city, true);\n $criteria->compare('gender', $this->gender, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria = new CDbCriteria;\n\t\t$criteria->select = 'createDate, employeeId';\n\t\t$criteria->distinct = true;\n\t\t$criteria->addCondition('employeeId=\"' . $this->employeeId . '\" AND createDate between \"' . $this->startDate . '\" AND \"' . $this->endDate . '\"');\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria' => $criteria,\n\t\t));\n\t}" ]
[ "0.7773856", "0.674291", "0.65721744", "0.6503215", "0.6472826", "0.6389071", "0.63745373", "0.6287255", "0.62671757", "0.62457365", "0.62425256", "0.62123144", "0.61969537", "0.6172912", "0.61250603", "0.6123412", "0.6116283", "0.61031115", "0.6101092", "0.608637", "0.6081774", "0.6081262", "0.6073599", "0.60723656", "0.60405684", "0.6040201", "0.6035497", "0.60331875", "0.60318124", "0.60199106", "0.6013893", "0.5998194", "0.59764904", "0.59671843", "0.59620416", "0.59579474", "0.59551156", "0.5941564", "0.5935285", "0.590389", "0.5899341", "0.5895071", "0.5894937", "0.5888715", "0.58834034", "0.5882613", "0.58762497", "0.58638185", "0.5860362", "0.5846486", "0.58438134", "0.5839541", "0.5829547", "0.5825096", "0.5821819", "0.5821492", "0.5816446", "0.5815201", "0.58059967", "0.58025193", "0.57952476", "0.5785819", "0.57808983", "0.57782406", "0.57766914", "0.5775805", "0.57744527", "0.57744527", "0.57744527", "0.57722074", "0.5771512", "0.5770783", "0.5769345", "0.57683945", "0.57675093", "0.576178", "0.57557786", "0.5747564", "0.5746954", "0.5745489", "0.5741678", "0.57375383", "0.57335705", "0.57302207", "0.57280165", "0.5726227", "0.57238483", "0.57218784", "0.5715393", "0.57136387", "0.5713353", "0.5711261", "0.5710481", "0.571002", "0.57075536", "0.57075375", "0.57060134", "0.5704971", "0.5703576", "0.57000446", "0.5696112" ]
0.0
-1
Prepares the role collection by transforming the config array to an object structure
private function prepareRoleCollection (array $roleConfiguration) { /** @var Role[] $preparedRoles */ $preparedRoles = []; foreach ($roleConfiguration as $roleKey => $configuration) { $preparedRoles[$roleKey] = Role::createFromConfiguration($roleKey, $configuration); } // Transform the Actions to Roles foreach ($roleConfiguration as $roleKey => $configuration) { if (!isset($configuration["actions"]) || !is_array($configuration["actions"])) { continue; } foreach ($configuration["actions"] as $action) { if (!isset($preparedRoles[$action])) { $preparedRoles[$action] = new BaseRole($action); } } $includedActions = array_map( function ($role) use ($preparedRoles) { return $preparedRoles[$role]; }, $configuration["actions"] ); $preparedRoles[$roleKey]->setIncludedActions($includedActions); } foreach ($roleConfiguration as $roleKey => $configuration) { if (!isset($configuration["included_roles"]) || !is_array($configuration["included_roles"])) { continue; } $includedRoles = array_map( function ($role) use ($preparedRoles) { return $preparedRoles[$role]; }, $configuration["included_roles"] ); $preparedRoles[$roleKey]->setIncludedRoles($includedRoles); } return $preparedRoles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function initRoles()\n {\n $this->roles = new ArrayCollection();\n }", "public function prepare_roles () {\n $roles = [];\n // Get non-empty user roles.\n $available_roles = count_users();\n // Get role titles.\n $wp_roles = wp_roles();\n // Creates an array with each role's data\n foreach ($wp_roles->role_names as $role_name => $role_title) {\n if ( array_key_exists( $role_name, $available_roles['avail_roles'] ) && (int)$available_roles['avail_roles'][ $role_name ] ) {\n\n $roles[ $role_name ] = [\n 'name' => $role_name,\n 'title' => translate_user_role( $role_title ),\n 'count' => (int)$available_roles['avail_roles'][ $role_name ]\n ];\n }\n }\n $this->roles = $roles;\n }", "function populate_roles()\n {\n }", "function populate_roles_210()\n {\n }", "public function init() {\n $config_array = $this->config->toArray();\n $prev_role = null;\n\n foreach ($config_array as $role => $permissions) {\n $prev_role = $this->addUserRole($role, $prev_role);\n \n if(empty($permissions) || !is_array($permissions)) {\n continue;\n }\n \n foreach($permissions as $controller => $actionList) {\n $controller = $this->addController($controller);\n $priviliges = $this->getPriviliges($actionList);\n \n $this->allow($role, $controller, $priviliges);\n } \n }\n }", "public function init_roles()\n {\n }", "public function __construct()\n {\n $this->roles = new ArrayCollection();\n }", "function populate_roles_230()\n {\n }", "function populate_roles_280()\n {\n }", "function populate_roles_250()\n {\n }", "protected function _initRoles () {\r\n\r\n\t\t$bFreshData = false;\r\n\r\n\t\tif (self::$_bUseCache) {\r\n\t\t\t$oCacheManager = Kwgl_Cache::getManager();\r\n\t\t\t$oAclCache = $oCacheManager->getCache('acl');\r\n\r\n\t\t\tif (($aRoleListing = $oAclCache->load(self::CACHE_IDENTIFIER_ROLES)) === false) {\r\n\t\t\t\t// Not Cached or Expired\r\n\r\n\t\t\t\t$bFreshData = true;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$bFreshData = true;\r\n\t\t}\r\n\r\n\t\tif ($bFreshData) {\r\n\t\t\t// Get Roles from the Database\r\n\t\t\t$oDaoRole = Kwgl_Db_Table::factory('System_Role'); /* @var $oDaoRole Dao_System_Role */\r\n\t\t\t//$aRoleListing = $oDaoRole->fetchAll();\r\n\t\t\t$aRoleListing = $oDaoRole->getRoles();\r\n\r\n\t\t\tif (self::$_bUseCache) {\r\n\t\t\t\t$oAclCache->save($aRoleListing, self::CACHE_IDENTIFIER_ROLES);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tforeach ($aRoleListing as $aRoleDetail) {\r\n\t\t\t$sRoleName = $aRoleDetail['name'];\r\n\t\t\tif (is_null($aRoleDetail['parent'])) {\r\n\t\t\t\t// Add the Role if it hasn't been defined yet\r\n\t\t\t\tif (!$this->hasRole($sRoleName)) {\r\n\t\t\t\t\t$this->addRole(new Zend_Acl_Role($sRoleName));\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t// Parent Role assigned\r\n\t\t\t\t$sRoleParentName = $aRoleDetail['parent'];\r\n\t\t\t\t// Add the Parent Role if the Parent Role hasn't been defined yet\r\n\t\t\t\tif (!$this->hasRole($sRoleParentName)) {\r\n\t\t\t\t\t$this->addRole(new Zend_Acl_Role($sRoleParentName));\r\n\t\t\t\t}\r\n\t\t\t\t$this->addRole(new Zend_Acl_Role($sRoleName), $sRoleParentName);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function populate_roles_270()\n {\n }", "private function setRoles() {\r\n\t\t$all_roles = array(); $role = Model_Role::retrieve(); \r\n\t\tforeach ($role->fetchEntries(array(\r\n \t\t'NAME', 'PARENT' => new Data_Column('PARENT_ROLE_ID', null, $role, 'NAME'))) as $rel)\r\n\t\t{\t\r\n \t\t$all_roles[$rel['NAME']] = array($rel['PARENT']);\r\n\t\t}\r\n\t\t\r\n\t\t// get users with role reslationship \r\n\t\t$userRole = Model_User_Role::retrieve(); \r\n\t\tforeach ($userRole->fetchEntries(array(\r\n \t\t'NAME' => new Data_Column('USER_ID', null, $userRole, 'LOGIN'),\r\n \t\t'PARENT' => new Data_Column('ROLE_ID', null, $userRole, 'NAME')), null, true) as $rel)\r\n\t\t{\t\t\t\r\n\t\t // one user can belong to more than one role\r\n\t\t\tif (array_key_exists($rel['NAME'], $all_roles))\r\n\t\t array_push($all_roles[$rel['NAME']], $rel['PARENT']);\r\n\t\t else\r\n\t\t $all_roles[$rel['NAME']] = array($rel['PARENT']);\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\t// now register all roles and users from database as application roles\r\n\t\tforeach ($all_roles as $name => $roles) {\r\n\t\t $this->_registerRole($name, $all_roles);\r\n\t\t}\r\n\t\t\r\n\t\t//$this->_registerRole('Guest', array());\r\n\t}", "private function createRoleHierarchy($config) {}", "function um_roles_init( $wp_roles = null ) {\r\n\r\n\t\t\t//Add UM role data to WP Roles\r\n\t\t\tforeach ( $wp_roles->roles as $roleID => $role_data ) {\r\n\t\t\t\t$role_meta = get_option( \"um_role_{$roleID}_meta\" );\r\n\r\n\t\t\t\tif ( ! empty( $role_meta ) )\r\n\t\t\t\t\t$wp_roles->roles[$roleID] = array_merge( $role_data, $role_meta );\r\n\t\t\t}\r\n\r\n\r\n\t\t\t//Add custom UM roles\r\n\t\t\t$roles = array();\r\n\r\n\t\t\t$role_keys = get_option( 'um_roles' );\r\n\r\n\t\t\tif ( $role_keys ) {\r\n\r\n\t\t\t\tforeach ( $role_keys as $role_key ) {\r\n\t\t\t\t\t$role_meta = get_option( \"um_role_{$role_key}_meta\" );\r\n\t\t\t\t\tif ( $role_meta ) {\r\n\t\t\t\t\t\t//$role_meta['name'] = 'UM ' . $role_meta['name'];\r\n\t\t\t\t\t\t$roles['um_' . $role_key] = $role_meta;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tforeach ( $roles as $role_id => $details ) {\r\n\t\t\t\t\t$capabilities = ! empty( $details['wp_capabilities'] ) ? array_keys( $details['wp_capabilities'] ) : array();\r\n\t\t\t\t\t$details['capabilities'] = array_fill_keys( array_values( $capabilities ), true );\r\n\t\t\t\t\tunset( $details['wp_capabilities'] );\r\n\t\t\t\t\t$wp_roles->roles[$role_id] = $details;\r\n\t\t\t\t\t$wp_roles->role_objects[$role_id] = new \\WP_Role( $role_id, $details['capabilities'] );\r\n\t\t\t\t\t$wp_roles->role_names[$role_id] = $details['name'];\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\t// Return the modified $wp_roles array\r\n\t\t\treturn $wp_roles;\r\n\t\t}", "private function loadUserRoles()\n {\n $this->userRoles = [];\n\n $roles = Yaml::parse(file_get_contents($this->configFilePath));\n if (is_array($roles) && !empty($roles['user_roles'])) {\n foreach ($roles['user_roles'] as $role => $ids) {\n !empty($this->userRoles[$role]) ? $this->userRoles[$role] += $ids : $this->userRoles[$role] = $ids;\n }\n }\n }", "function populate_roles_160()\n {\n }", "public function __construct()\n\t{\n\t\t$this->roles = new ArrayCollection();\n\t}", "function populate_roles_260()\n {\n }", "function populate_roles_300()\n {\n }", "private function setRolesFromDB(){\n $connection = new Connection();\n $link = $connection->connect();\n $result = $link->query(\"SELECT role_id FROM user_has_role WHERE user_id = '$this->id'\");\n $roles = new UserRoles();\n foreach ($result as $record){\n $roles[] = new Role('id', $record['role_id']);\n }\n $this->setRoles($roles);\n $connection = null;\n }", "public function __construct()\n {\n $this->roles = new ArrayCollection();\n $this->users = new ArrayCollection();\n $this->rolesNames = null;\n }", "protected function _setupRoles()\n {\n $this->_acl->addRole( new Zend_Acl_Role('guest') );\n $this->_acl->addRole( new Zend_Acl_Role('user') );\n }", "public function __construct() {\n $this->configs = new ArrayCollection();\n }", "public function __construct()\n {\n $this->roles = [\n \n [\n 'name' => 'administrator',\n 'pengguna' => [\n 'ramdan'\n ],\n 'permissions' => [\n 'anggota-create',\n 'anggota-update',\n 'anggota-delete'\n ]\n ],\n\n ];\n }", "protected function initRoles($user_id) {\n $res= $_POST['link']->query(\"SELECT t1.role_id, t2.role_name FROM user_role as t1\n JOIN roles as t2 ON t1.role_id = t2.role_id\n WHERE t1.user_id = $user_id\");\n\n $this->roles= new crmRole($res[0]['role_id'], $res[0]['role_name']);\n\n// while($row = $sth->fetch(PDO::FETCH_ASSOC)) {\n// $this->roles[$row[\"role_name\"]] = Role::getRolePerms($row[\"role_id\"]);\n// }\n }", "protected function get_roles_data()\n {\n }", "public function __construct()\n {\n parent::__construct();\n $this->timestamps = FALSE;\n $this->return_as = 'array';\n $this->has_one[\"auth_role\"] = array(\"auth_role\", \"role_id\", \"role_id\"); \n }", "function process_config( $config ) {\n \n // clean form data\n $config->hosts = array_map( 'trim', $config->hosts );\n $config->hosts = array_filter( $config->hosts );\n \n $config->roles = array_intersect_key( $config->roles, $config->hosts );\n \n $config->hosts = array_values( $config->hosts );\n $config->roles = array_values( $config->roles );\n \n $config->roles = array_map('trim', $config->roles );\n \n // set defaults\n $config = $this->set_defaults( $config );\n \n // delete previous hosts and roles configuration from db\n foreach ( range(0, 9) as $i ) {\n unset_config('host'.$i, 'auth/imap_plus');\n unset_config('role'.$i, 'auth/imap_plus');\n }\n \n // save to db\n foreach ( $config->hosts as $key=>$val ) {\n set_config( 'host'.$key, $val, 'auth/imap_plus' );\n set_config( 'role'.$key, $config->roles[$key], 'auth/imap_plus' );\n }\n \n set_config('type', $config->type, 'auth/imap_plus');\n set_config('port', $config->port, 'auth/imap_plus');\n set_config('changepasswordurl', $config->changepasswordurl, 'auth/imap_plus');\n \n return true;\n }", "public function setRole() {\n\n $res= $_POST['link']->query(\"SELECT t2.perm_name FROM role_perm as t1\n JOIN permissions as t2 ON t1.perm_id = t2.perm_id\n WHERE t1.role_id = $this->rol_id\");\n\n\n foreach($res as $item)\n $this->role_perm[]= $item['perm_name'];\n }", "protected function _setupMapperArray()\n\t{\n\t\t$this->mapperArray = array();\n\t\t\n\t\t$this->mapperArray['property_id'] = 'properties_id';\n\t\t$this->mapperArray['sort_order'] = 'sort_order';\n\t\t\n\t\t$this->mapperArray['name'] = 'properties_name';\n\t\t$this->mapperArray['admin_name'] = 'properties_admin_name';\n\t}", "public function setAllRoles()\n {\n Role::create(['name' => 'Member']);\n Role::create(['name' => 'Creator']);\n Role::create(['name' => 'Admin']);\n }", "protected function loadRoles()\r\n {\r\n foreach($this->roles as $role) {\r\n if($role->getParent())\r\n $this->addRole(new Role($role->getName()), new Role($role->getParent()->getName()));\r\n else\r\n $this->addRole(new Role($role->getName()));\r\n\r\n if($role->getDeveloper())\r\n $this->allow($role->getName(), array(), array());\r\n }\r\n\r\n return $this;\r\n }", "public function loadRole(){\n global $db;\n $sql = \"SELECT * FROM {$this->role2acc_table} WHERE role_admin_id = '{$this->admin_id}'\";\n $role2acc = $db->query($sql,2);\n $_SESSION[\"roles\"] = array();\n foreach($role2acc as $x){\n $role = $x->role_id;\n \n if(!in_array($role,$_SESSION[\"roles\"])&& isset($role)){\n $_SESSION[\"roles\"][] = $role;\n }\n } \n /*\n * LOAD smaller roles\n */\n $udahdi = array();\n $sem = (sizeof($_SESSION['roles'])? $_SESSION[\"roles\"] : array());\n while(sizeof($sem)>0){\n $r = array_pop($sem);\n if(!in_array($r,$udahdi)){\n $sql = \"SELECT * FROM {$this->role2role_table} WHERE role_big = '$r'\";\n $role2role = $db->query($sql,2);\n foreach($role2role as $ri){\n if(!in_array($ri->role_small,$_SESSION[\"roles\"]) && $ri->role_small!=\"\"){\n $_SESSION[\"roles\"][] = $ri->role_small;\n $sem[] = $ri->role_small;\n }\n }\n $udahdi[]=$r;\n }\n }\n $this->roles = $_SESSION['roles'];\n }", "private function process_roles( $roles = array() ){\n\t\tif( empty( $roles ) ) throw new \\Exception( 'No Roles provided to Process' );\n\t\t$processed_roles = array();\n\t\t$role_size = sizeof($roles);\n\t\t// Capabilities cascade from Left To Right\n\t\tfor( $i=0; $i<$role_size; $i++ ){\n\t\t\t$role = $roles[$i];\n\t\t\t$rs = array_slice( $roles, 0, ($i+1) );\n\t\t\t$name = ucfirst($role);\n\t\t\t$caps = $this->format_caps( $role, $rs );\n\t\t\t$processed_roles[$role] = (object) ['name' => $name, 'capabilities' => $caps];\n\t\t}\n\n\t\treturn $processed_roles;\n\n\t}", "public function setRoles()\n {\n if (!array_key_exists(User::ROLE_ADMINISTRATOR, Yii::$app->authManager->getRolesByUser(Yii::$app->user->getId()))) {\n $array = Yii::$app->authManager->getRoles();\n unset($array[self::ADMINISTRATOR]);\n } else {\n $array = Yii::$app->authManager->getRoles();\n }\n\n $roles = ArrayHelper::map(Yii::$app->authManager->getRoles(), 'name', 'name');\n\n $now = Yii::$app->authManager->getRolesByUser(Yii::$app->user->getId());\n\n //unset($roles[array_search('super_administrator', $roles)]);\n unset($roles[array_search('user', $roles)]);\n\n foreach ($roles as $key => $role) {\n $roles[$key] = Yii::t('backend', $role);\n }\n\n if (array_key_exists(User::ROLE_CUSTOMER, Yii::$app->authManager->getRolesByUser(Yii::$app->user->getId()))) {\n $key = array_search(User::ROLE_CUSTOMER, $roles);\n $roles = array_intersect_key($roles, [$key => $roles[$key]]);\n }\n\n return $roles;\n }", "private function checkConfig() {\n\n $roleModelName = Configure::read('acl.aro.role.model');\n\n if (! empty($roleModelName)) {\n $this->set('roleModelName', $roleModelName);\n $this->set('userModelName', Configure::read('acl.aro.user.model'));\n $this->set('rolePkName', $this->getRolePrimaryKeyName());\n $this->set('userPkName', $this->getUserPrimaryKeyName());\n $this->set('roleFkName', $this->_getRoleForeignKeyName());\n\n $this->authorizeAdmins();\n\n if (Configure::read('acl.check_act_as_requester')) {\n $is_requester = true;\n\n if (! $this->AclManager->checkAclRequester(\n Configure::read('acl.aro.user.model'))) {\n $this->set('model_is_not_requester', false);\n $is_requester = false;\n }\n\n if (! $this->AclManager->checkAclRequester(\n Configure::read('acl.aro.role.model'))) {\n $this->set('role_is_not_requester', false);\n $is_requester = false;\n }\n\n if (! $is_requester) {\n $this->render('Acl.Aros/admin_not_acl_requester');\n }\n }\n } else {\n $this->Session->setFlash(\n __d('acl',\n 'The role model name is unknown. The ACL plugin bootstrap.php file has to be loaded in order to work. (see the README file)'),\n 'flash_error', null, 'plugin_acl');\n }\n }", "function setup_roles_and_memberships(){\n $data_node = load_csv('node', get_csv_data_filepath('mt_memberships', 'node'));\n $data_uc_products = load_csv('uc_products', get_csv_data_filepath('mt_memberships', 'uc_products'));\n $data_uc_product_features = load_csv('uc_product_features', get_csv_data_filepath('mt_memberships', 'uc_product_features'));\n $data_uc_roles_products = load_csv('uc_roles_products', get_csv_data_filepath('mt_memberships', 'uc_roles_products'));\n \n for($row=1;$row<=count($data_uc_products['uc_products']);$row++){\n create_membership_and_role(\n $data_node['node'][$row],\n $data_uc_products['uc_products'][$row],\n $data_uc_product_features['uc_product_features'][$row],\n $data_uc_roles_products['uc_roles_products'][$row]);\n }\n }", "public function init()\n {\n parent::init();\n\n foreach ($this->rules as $rule) {\n if (isset($rule['roles']) && !empty($rule['roles'])) {\n $this->user = Instance::ensure($this->user, User::class);\n break;\n }\n }\n\n foreach ($this->rules as $i => $rule) {\n if (is_array($rule)) {\n $this->rules[$i] = \\Yii::createObject(array_merge([\n 'class' => AccessControlRule::class\n ], $rule));\n }\n }\n }", "abstract protected function getRoles();", "public function prepareUserAndRole() : void\n {\n if ($this->option(\"refresh\") != \"false\") {\n $this->cleanRoleAndPermissionTables();\n }\n\n $this->role = Role::find(config('system.roles.admin.id'));\n if (!$this->role) {\n $this->role = Role::create([\n 'id' => config('system.roles.admin.id'),\n 'name' => config('system.roles.admin.name')\n ]);\n $this->info('Role Created Successfully');\n }\n\n $user = User::find(1);\n\n if (!$user) {\n $user = User::create([\n 'name' => config('system.company.name'),\n 'email' => config('system.company.email'),\n 'password' => Hash::make(config('system.company.password')),\n 'lang' => 'en',\n 'admin_theme' => null,\n 'agent_type' => 1,\n 'image' => null,\n 'remember_token' => null,\n 'type' => 'admin',\n 'agents_can_assign' => null,\n 'agent_status_id' => null,\n 'whats_app_text' => config('system.company.description'),\n 'update_dashboard' => '0',\n 'created_at' => '2019-01-01 00:00:00',\n 'updated_at' => '2019-01-01 00:00:00',\n ]);\n\n $user->assignRole($this->role);\n\n $this->info('User Created Successfully And Role assign to him');\n } else {\n if (!$user->hasRole(config('system.roles.admin.id'))) {\n $user->assignRole($this->role);\n $this->info('Role Added Successfully');\n }\n }\n }", "public function run()\n {\n foreach (Config::get('blog.defaults.role') as $role) {\n DB::table('roles')->insert([\n 'name' => $role,\n ]);\n }\n }", "function sync_roles( $user ) {\n\t\tif ( array_key_exists( $this->auth_host_index, $this->config->roles) ) {\n $role_id = $this->config->roles[$this->auth_host_index];\n if ( $role_id != 0 ) {\n $systemcontext = get_context_instance( CONTEXT_SYSTEM );\n role_assign( $role_id, $user->id, $systemcontext->id, 'auth_imap_plus' );\n }\n }\n\t}", "public function run()\n {\n $roles = CsvFile::load(dirname(__FILE__) . '/csv/roles.csv')->read();\n\n foreach ($roles as $role)\n {\n Role::create(array_filter($role));\n }\n }", "public function loadCollection(array $config);", "protected function bootstrapConfig()\n {\n if (is_array($this->config) || $this->configInBootstrap) {\n return;\n }\n $this->configInBootstrap = true;\n $id = $this->getConfigClassId();\n if (!array_key_exists($id, self::$configCache['config'])) {\n $this->initConfig();\n $lazy = [];\n foreach ($this->config as $name => $value) {\n if ($value === null) {\n $lazy[$name] = true;\n }\n }\n self::$configCache['config'][$id] = $this->config;\n self::$configCache['lazy_init'][$id] = $lazy;\n }\n $this->config = self::$configCache['config'][$id];\n $this->configPendingLazyInit = self::$configCache['lazy_init'][$id];\n $this->configInBootstrap = false;\n }", "public static function getConfigCollection($config)\n {\n $default = array(\n 'base_url' => 'http://manage.encoding.com'\n );\n $required = array(\n 'userid',\n 'userkey'\n );\n\n $config = Collection::fromConfig(\n $config,\n $default,\n array('base_url', 'userid', 'userkey')\n );\n\n return $config;\n }", "protected function _initialize()\n {\n $this->_setupRoles();\n $this->_setupResources();\n $this->_setupPrivileges();\n $this->_saveAcl();\n }", "public function __construct() {\n if (($this->role = self::$cache->get_value(self::ROLE_KEY)) === false) {\n self::$db->prepared_query(\"\n SELECT slug, artist_role_id, sequence, name, title, collection\n FROM artist_role\n ORDER BY artist_role_id\n \");\n $this->role = self::$db->to_array('slug', MYSQLI_ASSOC, false);\n self::$cache->cache_value(self::ROLE_KEY, $this->role, 86400 * 30);\n }\n }", "protected function _prepareCollection()\n {\n $collection = $this->collectionFactory->create();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "private function configure() {\n\t\t$statement = $this -> database -> query(\"SELECT * FROM worlds\");\n\t\twhile ($worldData = $statement -> fetch(PDO::FETCH_ASSOC)) {\n\t\t\t$this -> worlds[$worldData['world']] = new World($worldData);\n\t\t}\n\t\t$statement = $this -> database -> query(\"SELECT * FROM server.configs\");\n\t\twhile ($configData = $statement -> fetch(PDO::FETCH_ASSOC)) {\n\t\t\t$this -> configs[$configData['key_']] = new Config($configData['key_'], $configData['value'], $configData['dataType']);\n\t\t}\n\t}", "public function __construct(array $attributes = [])\n {\n parent::__construct($attributes);\n $this->collection = config('entrust.roles_table');\n }", "function rets_bsf_loadroles () {\n\n $role = array();\n $ary = user_roles();\n foreach ($ary as $key => $value) {\n\tswitch ($value) {\n\t case ('basic membership') :\n $role[$key] = 'Basic';\n\t break;\n\t case ('gold membership') :\n\t $role[$key] = 'Gold';\n\t break;\n case ('platinum membership') :\n $role[$key] = 'Platinum';\n\t break;\n case ('team membership') :\n $role[$key] = 'Team';\n\t break;\n\t\tcase ('Agent') :\t\t\t\t\t\t// agent sites only have \"agents\"\n \t$role[$key] = 'Agent';\n\t break;\n\t}\n }\n return $role;\n}", "public function run()\n {\n foreach ($this->data as $d) {\n Role::create([\n 'name' => $d['role'],\n 'description' => $d['description']\n ]);\n }\n }", "function reset_role( $role ) {\n $default_roles = array(\n 'administrator' => array(\n 'switch_themes' => 1,\n 'edit_themes' => 1,\n 'activate_plugins' => 1,\n 'edit_plugins' => 1,\n 'edit_users' => 1,\n 'edit_files' => 1,\n 'manage_options' => 1,\n 'moderate_comments' => 1,\n 'manage_categories' => 1,\n 'manage_links' => 1,\n 'upload_files' => 1,\n 'import' => 1,\n 'unfiltered_html' => 1,\n 'edit_posts' => 1,\n 'edit_others_posts' => 1,\n 'edit_published_posts' => 1,\n 'publish_posts' => 1,\n 'edit_pages' => 1,\n 'read' => 1,\n 'level_10' => 1,\n 'level_9' => 1,\n 'level_8' => 1,\n 'level_7' => 1,\n 'level_6' => 1,\n 'level_5' => 1,\n 'level_4' => 1,\n 'level_3' => 1,\n 'level_2' => 1,\n 'level_1' => 1,\n 'level_0' => 1,\n 'edit_others_pages' => 1,\n 'edit_published_pages' => 1,\n 'publish_pages' => 1,\n 'delete_pages' => 1,\n 'delete_others_pages' => 1,\n 'delete_published_pages' => 1,\n 'delete_posts' => 1,\n 'delete_others_posts' => 1,\n 'delete_published_posts' => 1,\n 'delete_private_posts' => 1,\n 'edit_private_posts' => 1,\n 'read_private_posts' => 1,\n 'delete_private_pages' => 1,\n 'edit_private_pages' => 1,\n 'read_private_pages' => 1,\n 'delete_users' => 1,\n 'create_users' => 1,\n 'unfiltered_upload' => 1,\n 'edit_dashboard' => 1,\n 'update_plugins' => 1,\n 'delete_plugins' => 1,\n 'install_plugins' => 1,\n 'update_themes' => 1,\n 'install_themes' => 1,\n 'update_core' => 1,\n 'list_users' => 1,\n 'remove_users' => 1,\n 'add_users' => 1,\n 'promote_users' => 1,\n 'edit_theme_options' => 1,\n 'delete_themes' => 1,\n 'export' => 1,\n ),\n \n 'editor' => array(\n 'moderate_comments' => 1,\n 'manage_categories' => 1,\n 'manage_links' => 1,\n 'upload_files' => 1,\n 'unfiltered_html' => 1,\n 'edit_posts' => 1,\n 'edit_others_posts' => 1,\n 'edit_published_posts' => 1,\n 'publish_posts' => 1,\n 'edit_pages' => 1,\n 'read' => 1,\n 'level_7' => 1,\n 'level_6' => 1,\n 'level_5' => 1,\n 'level_4' => 1,\n 'level_3' => 1,\n 'level_2' => 1,\n 'level_1' => 1,\n 'level_0' => 1,\n 'edit_others_pages' => 1,\n 'edit_published_pages' => 1,\n 'publish_pages' => 1,\n 'delete_pages' => 1,\n 'delete_others_pages' => 1,\n 'delete_published_pages' => 1,\n 'delete_posts' => 1,\n 'delete_others_posts' => 1,\n 'delete_published_posts' => 1,\n 'delete_private_posts' => 1,\n 'edit_private_posts' => 1,\n 'read_private_posts' => 1,\n 'delete_private_pages' => 1,\n 'edit_private_pages' => 1,\n 'read_private_pages' => 1,\n ),\n \n 'author' => array(\n 'upload_files' => 1,\n 'edit_posts' => 1,\n 'edit_published_posts' => 1,\n 'publish_posts' => 1,\n 'read' => 1,\n 'level_2' => 1,\n 'level_1' => 1,\n 'level_0' => 1,\n 'delete_posts' => 1,\n 'delete_published_posts' => 1,\n ),\n \n 'contributor' => array(\n 'edit_posts' => 1,\n 'read' => 1,\n 'level_1' => 1,\n 'level_0' => 1,\n 'delete_posts' => 1,\n ),\n \n 'subscriber' => array(\n 'read' => 1,\n 'level_0' => 1,\n ),\n \n 'display_name' => array(\n 'administrator' => 'Administrator',\n 'editor'\t=> 'Editor',\n 'author'\t=> 'Author',\n 'contributor' => 'Contributor',\n 'subscriber'\t=> 'Subscriber',\n ),\n \n );\n \n $role = strtolower( $role );\n \n remove_role( $role );\n \n return add_role( $role, $default_roles['display_name'][$role], $default_roles[$role] );\n}", "public function run()\n {\n foreach($this->roles as $role){\n if(!(Roles::where('key', '=', $role['key'])->get()[0] ?? false)){\n Roles::create($role);\n }\n }\n }", "public function run()\n {\n Role::create([\n 'name' => 'none',\n 'display_name' => 'بدون نقش',\n 'description' => 'هیچ نقشی ندارد'\n ]);\n\n $accounts = [\n [\n 'user' => [\n 'name' => 'Hamid',\n 'family' => 'Madanizadegan',\n 'username' => 'Hamin Madanizadegan',\n 'mobile' => '09121111111',\n 'phone' => '02112345678',\n 'avatar' => 'files/_test/' . rand(1, 10) . '.jpg',\n 'email' => 'madanizadegan@gmail.com',\n 'password' => '123',\n 'remember_token' => str_random(10),\n 'is_active' => true\n ],\n 'role' => [\n 'name' => 'superAdmin',\n 'display_name' => 'ادمین کل',\n 'description' => 'دسترسی به تمامی امکانات سایت',\n ]\n ],\n [\n 'user' => [\n 'name' => 'پشتیبان',\n 'family' => 'سیستم',\n 'username' => 'پشتیبان سیستم',\n 'mobile' => '09125878084',\n 'phone' => '09125878084',\n 'avatar' => 'files/_test/' . rand(1, 10) . '.jpg',\n 'email' => 'qwe@qwe.com',\n 'password' => 'qwe',\n 'remember_token' => str_random(10),\n 'is_active' => true\n ],\n 'role' => [\n 'name' => 'supporter',\n 'display_name' => 'پشتیبان سایت',\n 'description' => 'دسترسی تقریبی به تمامی امکانات سایت',\n ]\n ],\n [\n 'user' => [\n 'name' => 'modir',\n 'family' => 'modir',\n 'username' => 'modir-modir',\n 'mobile' => 'xxxxxxxxxxx',\n 'phone' => 'xxxxxxxxxxx',\n 'avatar' => 'files/_test/' . rand(1, 10) . '.jpg',\n 'email' => 'modir@gmail.com',\n 'password' => 'modir',\n 'remember_token' => str_random(10),\n 'is_active' => true\n ],\n 'role' => [\n 'name' => 'admin',\n 'display_name' => 'صاحب سیستم',\n 'description' => 'خریدار سایت - دسترسی کل و دسترسی ایجاد نقش ها',\n ]\n ]\n ];\n\n $permissions = [\n [\n 'title' => 'پنل',\n 'detail' => [\n [\n 'name' => 'admin-panel',\n 'display_name' => 'پنل مدیریت',\n 'description' => 'توانایی مشاهده پنل مدیریت',\n ]\n ]\n ],\n [\n 'title' => 'کاربران',\n 'detail' => [\n [\n 'name' => 'create-user',\n 'display_name' => 'ایجاد کاربر جدید',\n 'description' => 'توانایی ایجاد کاربر جدید',\n ],\n [\n 'name' => 'read-user',\n 'display_name' => 'مشاهده کاربران',\n 'description' => 'توانایی مشاهده کاربران',\n ],\n [\n 'name' => 'edit-user',\n 'display_name' => 'ویرایش کاربران',\n 'description' => 'توانایی ویرایش کاربران',\n ],\n [\n 'name' => 'delete-user',\n 'display_name' => 'حذف کاربران',\n 'description' => 'توانایی حذف کاربران',\n ],\n ]\n ],\n [\n 'title' => 'نقش و دسترسی ها',\n 'detail' => [\n [\n 'name' => 'create-acl',\n 'display_name' => 'ایجاد نقش و دسترسی جدید',\n 'description' => 'توانایی ایجاد نقش و دسترسی جدید',\n ],\n [\n 'name' => 'read-acl',\n 'display_name' => 'مشاهده نقش ها و دسترسی ها',\n 'description' => 'توانایی مشاهده نقش ها و دسترسی ها',\n ],\n [\n 'name' => 'edit-acl',\n 'display_name' => 'ویرایش نقش ها و دسترسی ها',\n 'description' => 'توانایی ویرایش نقش ها و دسترسی ها',\n ],\n [\n 'name' => 'delete-acl',\n 'display_name' => 'حذف نقش ها و دسترسی ها',\n 'description' => 'توانایی حذف نقش ها و دسترسی ها',\n ],\n ]\n ],\n [\n 'title' => 'بلاگ',\n 'detail' => [\n ['name' => 'create-blog',\n 'display_name' => 'ایجاد بلاگ',\n 'description' => 'توانایی ایجاد بلاگ',\n ],\n [\n 'name' => 'read-blog',\n 'display_name' => 'مشاهده بلاگ',\n 'description' => 'توانایی مشاهده بلاگ',\n ],\n [\n 'name' => 'edit-blog',\n 'display_name' => 'ویرایش بلاگ',\n 'description' => 'توانایی ویرایش بلاگ',\n ],\n [\n 'name' => 'delete-blog',\n 'display_name' => 'حذف بلاگ',\n 'description' => 'توانایی حذف بلاگ',\n ],\n ]\n ],\n [\n 'title' => 'کلمات کلیدی',\n 'detail' => [\n [\n 'name' => 'create-tag',\n 'display_name' => 'ایجاد کلمات کلیدی',\n 'description' => 'توانایی ایجاد کلمات کلیدی',\n ],\n [\n 'name' => 'read-tag',\n 'display_name' => 'مشاهده کلمات کلیدی',\n 'description' => 'توانایی مشاهده کلمات کلیدی',\n ],\n [\n 'name' => 'edit-tag',\n 'display_name' => 'ویرایش کلمات کلیدی',\n 'description' => 'توانایی ویرایش کلمات کلیدی',\n ],\n [\n 'name' => 'delete-tag',\n 'display_name' => 'حذف کلمات کلیدی',\n 'description' => 'توانایی حذف کلمات کلیدی',\n ],\n ]\n ],\n [\n 'title' => 'نظرات',\n 'detail' => [\n [\n 'name' => 'create-comment',\n 'display_name' => 'ایجاد نظر',\n 'description' => 'توانایی ایجاد نظر',\n ],\n [\n 'name' => 'read-comment',\n 'display_name' => 'مشاهده نظر',\n 'description' => 'توانایی مشاهده نظر',\n ],\n [\n 'name' => 'edit-comment',\n 'display_name' => 'ویرایش نظر',\n 'description' => 'توانایی ویرایش نظر',\n ],\n [\n 'name' => 'delete-comment',\n 'display_name' => 'حذف نظر',\n 'description' => 'توانایی حذف نظر',\n ],\n ]\n ],\n [\n 'title' => 'دسته بندی',\n 'detail' => [\n [\n 'name' => 'create-category',\n 'display_name' => 'ایجاد دسته بندی',\n 'description' => 'توانایی ایجاد دسته بندی',\n ],\n [\n 'name' => 'read-category',\n 'display_name' => 'مشاهده دسته بندی',\n 'description' => 'توانایی مشاهده دسته بندی',\n ],\n [\n 'name' => 'edit-category',\n 'display_name' => 'ویرایش دسته بندی',\n 'description' => 'توانایی ویرایش دسته بندی',\n ],\n [\n 'name' => 'delete-category',\n 'display_name' => 'حذف دسته بندی',\n 'description' => 'توانایی حذف دسته بندی',\n ]\n ]\n ],\n [\n 'title' => 'درباره ما',\n 'detail' => [\n [\n 'name' => 'read-about',\n 'display_name' => 'مشاهده درباره ما',\n 'description' => 'توانایی مشاهده درباره ما',\n ],\n [\n 'name' => 'edit-about',\n 'display_name' => 'ویرایش درباره ما',\n 'description' => 'توانایی ویرایش درباره ما',\n ]\n ]\n ],\n [\n 'title' => 'تماس با ما',\n 'detail' => [\n [\n 'name' => 'read-contact',\n 'display_name' => 'مشاهده تماس با ما',\n 'description' => 'توانایی مشاهده تماس با ما',\n ],\n [\n 'name' => 'edit-contact',\n 'display_name' => 'ویرایش تماس با ما',\n 'description' => 'توانایی ویرایش تماس با ما',\n ],\n [\n 'name' => 'delete-contact',\n 'display_name' => 'حذف تماس با ما',\n 'description' => 'توانایی حذف تماس با ما',\n ]\n ]\n ],\n [\n 'title' => 'چرا ما',\n 'detail' => [\n [\n 'name' => 'create-why-choose-us',\n 'display_name' => 'ایجاد چرا ما',\n 'description' => 'توانایی ایجاد چرا ما',\n ],\n [\n 'name' => 'read-why-choose-us',\n 'display_name' => 'مشاهده چرا ما',\n 'description' => 'توانایی مشاهده چرا ما',\n ],\n [\n 'name' => 'edit-why-choose-us',\n 'display_name' => 'ویرایش چرا ما',\n 'description' => 'توانایی ویرایش چرا ما',\n ],\n [\n 'name' => 'delete-why-choose-us',\n 'display_name' => 'حذف چرا ما',\n 'description' => 'توانایی حذف چرا ما',\n ]\n ]\n ],\n [\n 'title' => 'طرح',\n 'detail' => [\n [\n 'name' => 'create-plan',\n 'display_name' => 'ایجاد طرح',\n 'description' => 'توانایی ایجاد طرح',\n ],\n [\n 'name' => 'read-plan',\n 'display_name' => 'مشاهده طرح',\n 'description' => 'توانایی مشاهده طرح',\n ],\n [\n 'name' => 'edit-plan',\n 'display_name' => 'ویرایش طرح',\n 'description' => 'توانایی ویرایش طرح',\n ],\n [\n 'name' => 'delete-plan',\n 'display_name' => 'حذف طرح',\n 'description' => 'توانایی حذف طرح',\n ]\n ]\n ],\n [\n 'title' => 'سرویس',\n 'detail' => [\n [\n 'name' => 'create-service',\n 'display_name' => 'ایجاد سرویس',\n 'description' => 'توانایی ایجاد سرویس',\n ],\n [\n 'name' => 'read-service',\n 'display_name' => 'مشاهده سرویس',\n 'description' => 'توانایی مشاهده سرویس',\n ],\n [\n 'name' => 'edit-service',\n 'display_name' => 'ویرایش سرویس',\n 'description' => 'توانایی ویرایش سرویس',\n ],\n [\n 'name' => 'delete-service',\n 'display_name' => 'حذف سرویس',\n 'description' => 'توانایی حذف سرویس',\n ]\n ]\n ],\n [\n 'title' => 'نمونه کار',\n 'detail' => [\n [\n 'name' => 'create-sample',\n 'display_name' => 'ایجاد نمونه کار',\n 'description' => 'توانایی ایجاد نمونه کار',\n ],\n [\n 'name' => 'read-sample',\n 'display_name' => 'مشاهده نمونه کار',\n 'description' => 'توانایی مشاهده نمونه کار',\n ],\n [\n 'name' => 'edit-sample',\n 'display_name' => 'ویرایش نمونه کار',\n 'description' => 'توانایی ویرایش نمونه کار',\n ],\n [\n 'name' => 'delete-sample',\n 'display_name' => 'حذف نمونه کار',\n 'description' => 'توانایی حذف نمونه کار',\n ]\n ]\n ],\n ];\n\n foreach ($permissions as $permission) {\n $permissionTitle = PermissionTitle::create(['title' => $permission['title']]);\n foreach ($permission['detail'] as $detail) {\n $permissionTitle->permissions()->create($detail);\n }\n }\n\n $permissions = Permission::get()->pluck('id')->toArray();\n\n foreach ($accounts as $account) {\n $role = Role::create($account['role'])->attachPermissions($permissions);\n $user = User::create($account['user']);\n\n $user->attachRole($role['id']);\n\n $user->attachPermissions($permissions);\n }\n\n }", "public static function manageRole(){\n $rolelist = [];\n $db = Db::getInstance(); \t \n $req = $db->query('SELECT * FROM hp_role'); \n foreach($req->fetchAll() as $row) {\n $rolelist[] = $row;\n }\n return $rolelist;\n \n }", "public function roles();", "public function roles();", "public function roles();", "public function roles();", "public static function prepareRow(array $row, array $config) {\n /* USERNAME */\n $preferred_username = (strtolower($row[0] .\".\". $row[1]));\n $i = 0;\n while (self::usernameExists($i ? $preferred_username . $i : $preferred_username)) {\n $i++;\n }\n $username = $i ? $preferred_username . $i : $preferred_username;\n //ROW: 0 | 1 | 2 | 3 | 4 | 5\n //csv file: FirstName|LastName|EMAIL|Organization|Role|Access\n\n //Add either Partner or Manager role. Or if NULL then no role\n $roles = array();\n if(strlen($row[4]) > 0 && strcmp($row[4], \"NULL\") !=0) {\n $roles = array(strtolower($row[4]));\n }\n\n //Change row 5 to Active if Approved\n if($row[5] == \"Approved\") {\n $row[5] = \"Active\";\n }\n if($row[5] == \"Block\") {\n $row[5] = \"Blocked\";\n }\n\n //STATUS - Drupal status is either Active or Blocked\n $status = ($row[5] == \"Active\") ? 1 :0;\n $organization = $row[3];\n $user = [\n 'uid' => NULL,\n 'name' => mb_convert_encoding($username, \"UTF-8\", \"auto\"),\n 'field_first_name' => mb_convert_encoding($row[0], \"UTF-8\", \"auto\"),\n 'field_last_name' => $row[1],\n 'pass' => NULL,\n 'mail' => $row[2],\n 'status' => $status,\n 'created' => REQUEST_TIME,\n 'roles' => array_values($roles),\n 'field_membership_status' => $row[5],\n 'field_organization' => $row[3]\n ];\n\n return $user;\n }", "public function run()\n\t{\n\t\t\\DB::table('assigned_roles')->truncate();\n \n\t\t\\DB::table('assigned_roles')->insert(array (\n\t\t\t0 => \n\t\t\tarray (\n\t\t\t\t'id' => '1',\n\t\t\t\t'user_id' => '1',\n\t\t\t\t'role_id' => '1',\n\t\t\t\t'created_at' => '2014-07-18 05:55:06',\n\t\t\t\t'updated_at' => '2014-07-18 05:55:06',\n\t\t\t),\n\t\t\t1 => \n\t\t\tarray (\n\t\t\t\t'id' => '2',\n\t\t\t\t'user_id' => '1',\n\t\t\t\t'role_id' => '2',\n\t\t\t\t'created_at' => '2014-07-18 05:55:06',\n\t\t\t\t'updated_at' => '2014-07-18 05:55:06',\n\t\t\t),\n\t\t\t2 => \n\t\t\tarray (\n\t\t\t\t'id' => '3',\n\t\t\t\t'user_id' => '1',\n\t\t\t\t'role_id' => '3',\n\t\t\t\t'created_at' => '2014-07-18 05:55:06',\n\t\t\t\t'updated_at' => '2014-07-18 05:55:06',\n\t\t\t),\n\t\t\t3 => \n\t\t\tarray (\n\t\t\t\t'id' => '4',\n\t\t\t\t'user_id' => '1',\n\t\t\t\t'role_id' => '4',\n\t\t\t\t'created_at' => '2014-07-18 05:55:06',\n\t\t\t\t'updated_at' => '2014-07-18 05:55:06',\n\t\t\t),\n\t\t\t4 => \n\t\t\tarray (\n\t\t\t\t'id' => '5',\n\t\t\t\t'user_id' => '1',\n\t\t\t\t'role_id' => '5',\n\t\t\t\t'created_at' => '2014-07-18 05:55:06',\n\t\t\t\t'updated_at' => '2014-07-18 05:55:06',\n\t\t\t),\n\t\t\t5 => \n\t\t\tarray (\n\t\t\t\t'id' => '6',\n\t\t\t\t'user_id' => '2',\n\t\t\t\t'role_id' => '1',\n\t\t\t\t'created_at' => '2014-07-18 05:55:06',\n\t\t\t\t'updated_at' => '2014-07-18 05:55:06',\n\t\t\t),\n\t\t\t6 => \n\t\t\tarray (\n\t\t\t\t'id' => '7',\n\t\t\t\t'user_id' => '2',\n\t\t\t\t'role_id' => '2',\n\t\t\t\t'created_at' => '2014-07-18 05:55:06',\n\t\t\t\t'updated_at' => '2014-07-18 05:55:06',\n\t\t\t),\n\t\t\t7 => \n\t\t\tarray (\n\t\t\t\t'id' => '8',\n\t\t\t\t'user_id' => '2',\n\t\t\t\t'role_id' => '3',\n\t\t\t\t'created_at' => '2014-07-18 05:55:06',\n\t\t\t\t'updated_at' => '2014-07-18 05:55:06',\n\t\t\t),\n\t\t\t8 => \n\t\t\tarray (\n\t\t\t\t'id' => '9',\n\t\t\t\t'user_id' => '2',\n\t\t\t\t'role_id' => '4',\n\t\t\t\t'created_at' => '2014-07-18 05:55:06',\n\t\t\t\t'updated_at' => '2014-07-18 05:55:06',\n\t\t\t),\n\t\t\t9 => \n\t\t\tarray (\n\t\t\t\t'id' => '10',\n\t\t\t\t'user_id' => '2',\n\t\t\t\t'role_id' => '5',\n\t\t\t\t'created_at' => '2014-07-18 05:55:06',\n\t\t\t\t'updated_at' => '2014-07-18 05:55:06',\n\t\t\t),\n\t\t\t10 => \n\t\t\tarray (\n\t\t\t\t'id' => '16',\n\t\t\t\t'user_id' => '4',\n\t\t\t\t'role_id' => '3',\n\t\t\t\t'created_at' => '2014-07-18 05:55:06',\n\t\t\t\t'updated_at' => '2014-07-18 05:55:06',\n\t\t\t),\n\t\t\t11 => \n\t\t\tarray (\n\t\t\t\t'id' => '17',\n\t\t\t\t'user_id' => '4',\n\t\t\t\t'role_id' => '6',\n\t\t\t\t'created_at' => '2014-07-18 05:55:06',\n\t\t\t\t'updated_at' => '2014-07-18 05:55:06',\n\t\t\t),\n\t\t\t12 => \n\t\t\tarray (\n\t\t\t\t'id' => '18',\n\t\t\t\t'user_id' => '5',\n\t\t\t\t'role_id' => '6',\n\t\t\t\t'created_at' => '2014-07-18 05:55:06',\n\t\t\t\t'updated_at' => '2014-07-18 05:55:06',\n\t\t\t),\n\t\t\t13 => \n\t\t\tarray (\n\t\t\t\t'id' => '20',\n\t\t\t\t'user_id' => '7',\n\t\t\t\t'role_id' => '8',\n\t\t\t\t'created_at' => '2014-07-18 05:55:06',\n\t\t\t\t'updated_at' => '2014-07-18 05:55:06',\n\t\t\t),\n\t\t\t14 => \n\t\t\tarray (\n\t\t\t\t'id' => '21',\n\t\t\t\t'user_id' => '8',\n\t\t\t\t'role_id' => '8',\n\t\t\t\t'created_at' => '2014-07-18 05:55:06',\n\t\t\t\t'updated_at' => '2014-07-18 05:55:06',\n\t\t\t),\n\t\t\t15 => \n\t\t\tarray (\n\t\t\t\t'id' => '22',\n\t\t\t\t'user_id' => '6',\n\t\t\t\t'role_id' => '6',\n\t\t\t\t'created_at' => '2014-07-19 09:33:23',\n\t\t\t\t'updated_at' => '2014-07-19 09:33:23',\n\t\t\t),\n\t\t\t16 => \n\t\t\tarray (\n\t\t\t\t'id' => '23',\n\t\t\t\t'user_id' => '9',\n\t\t\t\t'role_id' => '8',\n\t\t\t\t'created_at' => '2014-07-19 09:45:35',\n\t\t\t\t'updated_at' => '2014-07-19 09:45:35',\n\t\t\t),\n\t\t\t17 => \n\t\t\tarray (\n\t\t\t\t'id' => '24',\n\t\t\t\t'user_id' => '10',\n\t\t\t\t'role_id' => '6',\n\t\t\t\t'created_at' => '2014-08-07 10:11:42',\n\t\t\t\t'updated_at' => '2014-08-07 10:11:42',\n\t\t\t),\n\t\t\t18 => \n\t\t\tarray (\n\t\t\t\t'id' => '25',\n\t\t\t\t'user_id' => '11',\n\t\t\t\t'role_id' => '6',\n\t\t\t\t'created_at' => '2014-08-07 10:30:12',\n\t\t\t\t'updated_at' => '2014-08-07 10:30:12',\n\t\t\t),\n\t\t\t19 => \n\t\t\tarray (\n\t\t\t\t'id' => '26',\n\t\t\t\t'user_id' => '14',\n\t\t\t\t'role_id' => '8',\n\t\t\t\t'created_at' => '2014-08-14 05:36:21',\n\t\t\t\t'updated_at' => '2014-08-14 05:36:21',\n\t\t\t),\n\t\t\t20 => \n\t\t\tarray (\n\t\t\t\t'id' => '28',\n\t\t\t\t'user_id' => '15',\n\t\t\t\t'role_id' => '6',\n\t\t\t\t'created_at' => '2014-09-08 18:38:06',\n\t\t\t\t'updated_at' => '2014-09-08 18:38:06',\n\t\t\t),\n\t\t\t21 => \n\t\t\tarray (\n\t\t\t\t'id' => '29',\n\t\t\t\t'user_id' => '16',\n\t\t\t\t'role_id' => '6',\n\t\t\t\t'created_at' => '2014-09-08 23:23:33',\n\t\t\t\t'updated_at' => '2014-09-08 23:23:33',\n\t\t\t),\n\t\t\t22 => \n\t\t\tarray (\n\t\t\t\t'id' => '30',\n\t\t\t\t'user_id' => '3',\n\t\t\t\t'role_id' => '6',\n\t\t\t\t'created_at' => '2014-09-10 15:43:05',\n\t\t\t\t'updated_at' => '2014-09-10 15:43:05',\n\t\t\t),\n\t\t\t23 => \n\t\t\tarray (\n\t\t\t\t'id' => '32',\n\t\t\t\t'user_id' => '18',\n\t\t\t\t'role_id' => '6',\n\t\t\t\t'created_at' => '2014-09-17 12:38:55',\n\t\t\t\t'updated_at' => '2014-09-17 12:38:55',\n\t\t\t),\n\t\t\t24 => \n\t\t\tarray (\n\t\t\t\t'id' => '33',\n\t\t\t\t'user_id' => '19',\n\t\t\t\t'role_id' => '1',\n\t\t\t\t'created_at' => '2014-10-25 18:55:53',\n\t\t\t\t'updated_at' => '2014-10-25 18:55:53',\n\t\t\t),\n\t\t\t25 => \n\t\t\tarray (\n\t\t\t\t'id' => '35',\n\t\t\t\t'user_id' => '20',\n\t\t\t\t'role_id' => '6',\n\t\t\t\t'created_at' => '2014-10-29 10:50:29',\n\t\t\t\t'updated_at' => '2014-10-29 10:50:29',\n\t\t\t),\n\t\t\t26 => \n\t\t\tarray (\n\t\t\t\t'id' => '36',\n\t\t\t\t'user_id' => '22',\n\t\t\t\t'role_id' => '6',\n\t\t\t\t'created_at' => '2014-11-11 20:53:05',\n\t\t\t\t'updated_at' => '2014-11-11 20:53:05',\n\t\t\t),\n\t\t\t27 => \n\t\t\tarray (\n\t\t\t\t'id' => '37',\n\t\t\t\t'user_id' => '23',\n\t\t\t\t'role_id' => '6',\n\t\t\t\t'created_at' => '2014-11-11 20:58:10',\n\t\t\t\t'updated_at' => '2014-11-11 20:58:10',\n\t\t\t),\n\t\t\t28 => \n\t\t\tarray (\n\t\t\t\t'id' => '38',\n\t\t\t\t'user_id' => '21',\n\t\t\t\t'role_id' => '6',\n\t\t\t\t'created_at' => '2014-11-18 19:38:56',\n\t\t\t\t'updated_at' => '2014-11-18 19:38:56',\n\t\t\t),\n\t\t\t29 => \n\t\t\tarray (\n\t\t\t\t'id' => '39',\n\t\t\t\t'user_id' => '24',\n\t\t\t\t'role_id' => '6',\n\t\t\t\t'created_at' => '2015-01-10 08:26:57',\n\t\t\t\t'updated_at' => '2015-01-10 08:26:57',\n\t\t\t),\n\t\t));\n\t}", "static function assign($roles)\n {\n $org = &self::$users[self::$user][self::$org];\n\n if(!isset($org))\n $org = [];\n\n foreach((array)$roles as $role)\n array_push($org, $role);\n\n return __CLASS__;\n }", "public function create()\n\t{\n\t\t// $roles = Role::get();\n\t}", "private function prepareConfiguration()\n {\n $configuration = array();\n\n foreach ($this->configProvider->getIds() as $entityConfigId) {\n $className = $entityConfigId->getClassName();\n $fields = $this->configProvider->filter(\n function (ConfigInterface $fieldConfig) {\n return $fieldConfig->is('available_in_template');\n },\n $className\n );\n\n if (count($fields)) {\n $configuration[$className] = array();\n foreach ($fields as $fieldConfig) {\n $configuration[$className][] = 'get' . strtolower($fieldConfig->getId()->getFieldName());\n }\n }\n }\n\n return $configuration;\n }", "public function __construct()\r\n\t{\r\n\t\t$db=Zend_Registry::get('connectDb');\r\n\t\t\r\n\t\t$sql='\tSELECT admin_role.role_id,privilege.module_name,privilege.controller_name,privilege.action_name \r\n\t\t\t\tFROM privilege, rule, admin_role\r\n\t\t\t\tWHERE admin_role.role_id = rule.object_id\r\n\t\t\t\tAND rule.privilege_id = privilege.privilege_id';\r\n\t\t$resources=$db->query($sql);\r\n\r\n\t\t//\r\n\t\t$sql='SELECT DISTINCT(controller_name) FROM privilege';\r\n\t\t$allResources=$db->query($sql);\r\n\t\t\r\n\t\t$sql='SELECT role_id, name FROM admin_role';\r\n\t\t$role=$db->query($sql);\r\n\t\t\r\n\t\t//Loop roles and put them in an assoc array by ID\r\n\t\t$roleArray = array();\r\n\t\tforeach ($role as $r)\r\n\t\t{\r\n\t\t\t$role=new Zend_Acl_Role($r['role_id']);\r\n\t\t\t$this->addRole($role);\r\n\t\t\t$roleArray[$r['role_id']] = $role;\r\n\t\t}\r\n\t\t\r\n\t\t//\r\n\t\tforeach ($allResources as $r)\r\n\t\t{\r\n\t\t\t$allResources=new Zend_Acl_Resource($r['controller_name']);\r\n\t\t\t$this->add($allResources);\r\n\t\t}\r\n\t\t\r\n\t\tforeach ($resources as $r)\r\n\t\t{\r\n\t\t\t$resources=new Zend_Acl_Resource($r['controller_name']);\r\n\t\t\t$action=$r['action_name'];\r\n\t\t\t$role=$roleArray[$r['role_id']];\r\n\t\t\t$this->allow($role,$resources,$action);\r\n\t\t}\r\n\t\t\r\n\t\t/*$check=null;\r\n\t\t\r\n\t\tforeach ($resources as $r)\r\n\t\t{\r\n\t\t\t$resources=new Zend_Acl_Resource($r['controller_name']);\r\n\t\t\tif($check!=$r['controller_name'])\r\n\t\t\t{\r\n\t\t\t\t$this->add($resources);\r\n\t\t\t\t$check=$r['controller_name'];\r\n\t\t\t}\r\n\t\t\t$action=$r['action_name'];\r\n\t\t\t$role = $roleArray[$r['role_id']];\r\n\t\t\t$this->allow($role,$resources,$action);\r\n\t\t}*/\r\n\t\t//access the ACL variable from anywhere\r\n\t\t//Zend_Registry::set('acl', $this);\r\n\t}", "private function prepare(){\r\n \r\n $autoload = &$this->settings->autoload; \r\n \r\n if(isset($autoload)){\r\n \r\n foreach($autoload AS $key => $class){\r\n \r\n $settings = &$this->settings->{$key};\r\n \r\n if(isset($settings)){\r\n\r\n $this->{$key} = new $class($settings);\r\n }\r\n }\r\n }\r\n }", "protected function _prepareCollection()\n {\n $collection = Mage::getModel('lavi_news/news')->getResourceCollection();\n\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "private function buildObject($request, $role)\n {\n $role->name = $request->get('name');\n\n $role->slug_name= Str::slug($request->get('name'));\n\n $role->description = $request->get('description');\n\n $role->status = $request->get('status');\n }", "public function toArray($request)\n {\n // return parent::toArray($request);\n return [\n 'id' => $this->id,\n 'email' => $this->email,\n 'name' => $this->getName($this->id),\n 'role' => new RoleResource($this->role),\n ];\n }", "protected function _initConfig()\n {\n Zend_Registry::set('config', $this->getOptions());\n Zend_Registry::set('acl', new Application_Model_Acl());\n }", "protected function registerRoles()\n {\n if (! is_dir($path = resource_path('roles'))) {\n return;\n }\n\n $files = Finder::create()\n ->in($path)\n ->name('*.php')\n ->notName('defaults.php');\n\n $bouncer = app(Bouncer::class);\n $bouncer->seeder(function () use ($bouncer, $files) {\n collect($files)->each(function ($file) use ($bouncer) {\n $role = require $file->getRealPath();\n $name = $role['name'];\n $permissions = $role['permissions'];\n\n $bouncer->allow(\"$name\")->to($permissions);\n });\n });\n }", "private function save_new_roles(){\n\t\tupdate_option( 'war_old_user_roles', json_encode( $this->new_roles ), false );\n\t}", "public function prepareMenuConfig($config): array\n {\n if (is_string($config)) {\n Configure::load($config);\n $config = Configure::read($this->_defaultConfig['configKey']);\n }\n\n foreach ($config as $mainItem => &$mainData) {\n if (isset($mainData['url']) && !$this->Auth->urlAllowed($mainData['url'])) {\n unset($config[$mainItem]);\n continue;\n }\n\n if (!empty($mainData['children']) && !$this->_hasAllowedChildren($mainData['children'])) {\n unset($config[$mainItem]);\n continue;\n }\n\n if (isset($mainData['shouldRender']) && !$mainData['shouldRender']()) {\n unset($config[$mainItem]);\n continue;\n }\n\n $this->_isItemActive($mainData);\n\n $visibleChildCount = 0;\n if (!empty($mainData['children'])) {\n $activeChildCount = 0;\n $visibleChildCount = count($mainData['children']);\n foreach ($mainData['children'] as $subItem => &$subData) {\n if (isset($subData['shouldRender']) && !$subData['shouldRender']()) {\n unset($mainData['children'][$subItem]);\n $visibleChildCount--;\n continue;\n }\n\n $allowed = (!isset($subData['url']) || (isset($subData['url']) && $this->Auth->urlAllowed($subData['url'])));\n\n if ($allowed) {\n if ($this->_isItemActive($subData)) {\n $activeChildCount++;\n }\n } else {\n $visibleChildCount--;\n }\n }\n\n if ($activeChildCount > 1) {\n foreach ($mainData['children'] as $subItem => &$subData) {\n $subData['active'] = false;\n }\n }\n }\n\n // if the main item has no displayable children, remove it.\n if ($visibleChildCount === 0 && isset($config['children']) && count($config['children']) > 0) {\n unset($config[$mainItem]);\n }\n }\n unset($mainData, $subData);\n\n //set active status\n if (empty($this->_controllerActive)) {\n $this->_controllerActive = $this->_currentUrl['controller'];\n }\n foreach ($config as &$mainData) {\n $mainData['active'] = '';\n if (!empty($mainData['url']) && !empty($this->_actionActive)) {\n if ($mainData['url']['controller'] == $this->_controllerActive && $mainData['url']['action'] == $this->_actionActive) {\n $mainData['active'] = true;\n }\n } elseif (!empty($mainData['url']) && $mainData['url']['controller'] == $this->_controllerActive) {\n $mainData['active'] = true;\n }\n if (!empty($mainData['children'])) {\n foreach ($mainData['children'] as &$subData) {\n $subData['active'] = '';\n if (!empty($subData['url']) && !empty($this->_actionActive)) {\n if ($subData['url']['controller'] == $this->_controllerActive && $subData['url']['action'] == $this->_actionActive) {\n $subData['active'] = true;\n $mainData['active'] = true;\n }\n } elseif (!empty($subData['url']) && $subData['url']['controller'] == $this->_controllerActive) {\n $mainData['active'] = true;\n }\n }\n }\n }\n\n return $config;\n }", "protected function _prepareCollection()\n\t{\n\t\t$collection = Mage::getResourceModel($this->_getCollectionClass());\n\t\t$this->setCollection($collection);\n\t\t \n\t\treturn parent::_prepareCollection();\n\t}", "public function run()\n {\n DB::table('roles')\n ->insert(array_map(fn ($name) => [\n 'name' => $name\n ], self::INITIAL_ROLES));\n }", "public function preprocessData()\n {\n $data = $this->getData();\n $preData = [\n 'replace' => null,\n 'remove' => null,\n 'append' => null,\n ];\n\n // Set the data to change and data to remove.\n if (!empty($data['role'])) {\n $preData['remove']['o:role'] = $data['role'];\n }\n if (array_key_exists('is_active', $data) && in_array($data['is_active'], ['0', '1'])) {\n $preData['remove']['o:is_active'] = $data['is_active'];\n }\n\n // Set remaining elements according to attribute data-collection-action.\n $processeds = [\n 'role', 'is_active',\n 'csrf', 'id', 'o:id',\n ];\n foreach ($data as $key => $value) {\n if (is_numeric($key) || in_array($key, $processeds)\n || is_null($value) || $value === ''\n ) {\n continue;\n }\n $collectionAction = $this->has($key)\n ? $this->get($key)->getAttribute('data-collection-action')\n : 'replace';\n $preData[$collectionAction][$key] = $value;\n }\n\n return array_filter($preData);\n }", "private function load_roles() {\n $query = $this->PDO->prepare(\"SELECT * FROM rol\");\n $query->execute();\n return $query->fetchAll(PDO::FETCH_ASSOC);\n }", "public function fromArray($data) {\n $this->_login = isset($data['login'])?$data['login']:null;\n $this->_authenticated = isset($data['authenticated'])?$data['authenticated']:false;\n $this->_roles = isset($data['roles'])?$data['roles']:array();\n return $this;\n }", "protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel($this->_getCollectionClass());\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "public function create()\n {\n $roles = Role::pluck('name','name')->all();\n return $roles;\n }", "public function __prepare()\n {\n $config = $this->objectManager->get(\\Magento\\Mtf\\Config\\DataInterface::class);\n // Prepare config data\n $configData['dbHost'] = $config->get('install/0/host/0');\n $configData['dbUser'] = $config->get('install/0/user/0');\n $configData['dbPassword'] = $config->get('install/0/password/0');\n $configData['dbName'] = $config->get('install/0/dbName/0');\n $configData['baseUrl'] = $config->get('install/0/baseUrl/0');\n $configData['admin'] = $config->get('install/0/backendName/0');\n\n return ['configData' => $configData];\n }", "public function __construct()\n {\n $this->Role = new Role();\n }", "function psp_add_role_caps()\n{\n $roles = array('manager');\n\n // Loop through each role and assign capabilities\n foreach ($roles as $the_role) {\n\n $role = get_role($the_role);\n\n $role->add_cap('read');\n $role->add_cap('create_cpt_project');\n $role->add_cap('create_private_cpt_project');\n $role->add_cap('read_cpt_project');\n $role->add_cap('read_private_cpt_project');\n $role->add_cap('edit_cpt_project');\n $role->add_cap('edit_published_cpt_project');\n $role->add_cap('publish_cpt_project');\n $role->add_cap('delete_private_cpt_project');\n $role->add_cap('delete_published_cpt_project');\n\n }\n}", "public function & GetRoles ();", "public function exchangeArray($data) {\n $this->id = (isset($data['id'])) ? $data['id'] : null;\n $this->name = (isset($data['name'])) ? $data['name'] : null;\n $this->email = (isset($data['email'])) ? $data['email'] : null;\n $this->designation = (isset($data['designation'])) ? $data['designation'] : null;\n $this->eid = (isset($data['eid'])) ? $data['eid'] : null;\n $this->process = (isset($data['process'])) ? $data['process'] : null;\n $this->doj = (isset($data['doj'])) ? $data['doj'] : null;\n $this->period = (isset($data['period'])) ? $data['period'] : null;\n $this->complete = (isset($data['complete'])) ? $data['complete'] : '0'; //0 for not completed\n $this->pswd = (isset($data['pswd'])) ? $data['pswd'] : null; \n $this->change_pswd = (isset($data['change_pswd'])) ? $data['change_pswd'] : '0'; \n $this->mgr1_name = (isset($data['mgr1_name'])) ? $data['mgr1_name'] : null; \n $this->mgr1_email = (isset($data['mgr1_email'])) ? $data['mgr1_email'] : null; \n $this->mgr2_name = (isset($data['mgr2_name'])) ? $data['mgr2_name'] : null; \n $this->mgr2_email = (isset($data['mgr2_email'])) ? $data['mgr2_email'] : null; \n $this->parent = (isset($data['parent'])) ? $data['parent'] : null; \n $this->role = (isset($data['role'])) ? $data['role'] : null; \n $this->make_disable = (isset($data['make_disable'])) ? $data['make_disable'] : '0'; \n }", "public function initialize()\n {\n $this->setSchema(\"test\");\n $this->setSource(\"role_admin\");\n// $this->belongsTo('admin_id', 'Application\\Common\\Models\\Admins', 'id', ['alias' => 'Admins']);\n// $this->belongsTo('role_id', 'Application\\Common\\Models\\Roles', 'id', ['alias' => 'Roles']);\n }", "public function setRoles(array $roles);", "protected function _prepareCollection()\n {\n /* @var $collection Belvg_Storelocator_Model_Resource_Location_Collection */\n $collection = Mage::getModel('storelocator/location')->getResourceCollection();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "public function __construct() {\n //parent::__construct();\n\n $model = new AclModel();\n //$sections = new Sections();\n $privileges = new PrivilegesModel();\n $roles = new Roles();\n\n $this->recursiveRolesFill($roles->getTree());\n\n foreach($privileges->getResourcesArray() as $name)\n {\n $this->addResource($name);\n }\n\n foreach($model->getRules() as $rule)\n {\n $this->allow($rule->role, $rule->resource, $rule->privilege);\n }\n }", "protected function initConfig()\n {\n $this->config = [];\n }", "public function run() {\n $filePath = database_path(). '/seeders/core/CoreRole.json';\n $str = file_get_contents($filePath);\n $json = json_decode( preg_replace('/[\\x00-\\x1F\\x80-\\xFF]/', '', $str), true );\n foreach ($json as $value) {\n $rowdata = new Role();\n $rowdata->id = $value[\"id\"];\n $rowdata->role_code = $value[\"roleCode\"];\n $rowdata->description = $value[\"description\"];\n $rowdata->is_active = $value[\"isActive\"];\n $rowdata->created_by = 0;\n $rowdata->save();\n }\n }", "protected function _prepareCollection()\n {\n $userId = Mage::getSingleton('admin/session')->getUser()->getId();\n\n /* var $collection Gri_Cms_Model_Mysql4_Version_Collection */\n $collection = Mage::getModel('gri_cms/page_version')->getCollection()\n ->addPageFilter($this->getPage())\n ->addVisibilityFilter($userId,\n Mage::getSingleton('gri_cms/config')->getAllowedAccessLevel())\n ->addUserColumn()\n ->addUserNameColumn();\n\n if (!$this->getParam($this->getVarNameSort())) {\n $collection->addNumberSort();\n }\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "public function init($roles){\n if (isset($roles)){\n $this->roles = $roles;\n $this->initiated = true;\n }\n }", "public function setUp()\n {\n $this->rolesProvider = new RolesProvider();\n }", "public function findRoles() {\n\t\t\n\t}", "public function exchangeArray(array $array)\n {\n $this->setId($array['id']);\n $this->setRole($array['role']);\n $this->setEmail($array['email']);\n $this->setPass($array['pass']);\n $this->setFirstname($array['firstname']);\n $this->setLastname($array['lastname']);\n }", "public function setRoles($roles = [])\n {\n\n $rolesPermissionsToUpdate = Role::whereIn('name',$roles);\n $rolesPermissionsToDelete = $this->roles()->whereNotIn('role_id',$rolesPermissionsToUpdate->pluck('id')->toArray())->where('user_id',$this->id);\n\n UserRole::whereIn('role_id',$rolesPermissionsToDelete->pluck('id')->toArray())->where('user_id',$this->id)->delete();\n\n $diff = array_intersect($rolesPermissionsToUpdate->pluck('name')->toArray(),$roles);\n\n if (sizeOf($diff) > 0)\n {\n collect($diff)->each(function($roleName) use ($rolesPermissionsToUpdate){\n\n $role = Role::where('name',$roleName)->first();\n\n UserRole::create([\n 'user_id' => $this->id,\n 'role_id' => $role->id\n ]);\n\n });\n }\n\n }" ]
[ "0.651543", "0.6459314", "0.63163155", "0.6082414", "0.6079896", "0.6076733", "0.59649056", "0.59382", "0.5932665", "0.5878208", "0.58428675", "0.5842759", "0.5796369", "0.57815933", "0.5777986", "0.57746005", "0.5755798", "0.5731589", "0.57267827", "0.5722221", "0.545373", "0.54481465", "0.5389967", "0.5381605", "0.5250634", "0.5179865", "0.51020545", "0.50909704", "0.50731254", "0.5067584", "0.5053212", "0.5011266", "0.5007336", "0.4999058", "0.498173", "0.49518585", "0.4951132", "0.49347198", "0.4923609", "0.4910051", "0.48934746", "0.48808065", "0.48779052", "0.48626602", "0.48592547", "0.4848794", "0.48434758", "0.48429468", "0.48364604", "0.48319083", "0.4824345", "0.48183683", "0.4807635", "0.47979647", "0.47950795", "0.47801408", "0.4779447", "0.4771072", "0.4758779", "0.4758779", "0.4758779", "0.4758779", "0.4752139", "0.4746498", "0.4742525", "0.47422975", "0.47351062", "0.4732583", "0.4729582", "0.47294226", "0.47293264", "0.47169456", "0.47101945", "0.47081053", "0.47046092", "0.47028095", "0.46998462", "0.46892613", "0.46873635", "0.46801135", "0.4675591", "0.46717", "0.46626616", "0.46614754", "0.46606383", "0.46579447", "0.46480286", "0.4643378", "0.46414655", "0.4639374", "0.46378827", "0.46342194", "0.46340117", "0.46332422", "0.46313772", "0.4624608", "0.46217388", "0.46140814", "0.4609407", "0.4608286" ]
0.62321943
3
Finds all included roles of a set of base roles
public function getAllIncludedRoles (array $roles) { $allIncludedRoles = []; foreach ($this->normalizeRoleList($roles) as $role) { $includedRoleCollection = []; $this->findIncludedRoles($role, $includedRoleCollection); $allIncludedRoles = array_replace($allIncludedRoles, $includedRoleCollection); $includedActionCollection = []; $this->findIncludedActions($role, $includedActionCollection); $allIncludedRoles = array_replace($allIncludedRoles, $includedActionCollection); } return $allIncludedRoles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getInheritedRoles(array $roles): array;", "public function findRoles() {\n\t\t\n\t}", "abstract protected function getRoles();", "public function get_all_roles(){\n\t\treturn ORM::factory('role')->find_all()->as_array();\n\t}", "private function get_all_roles(){\n return Role::all();\n }", "function get_all_roles() {\n return get_records('role', '', '', 'sortorder ASC');\n}", "public function get_all_roles()\n {\n return App\\Role::all();\n }", "public function getAllAvailableRoles ()\n {\n return array_filter(\n $this->roleCollection,\n function (BaseRole $role)\n {\n if ($role instanceof Role)\n {\n return !$role->isHidden();\n }\n\n //remove all BaseRoles\n return false;\n }\n );\n }", "function getAllRoles(){\r\n $data = new \\Cars\\Data\\Common($this->app);\r\n return $data->getAllRoles();\r\n }", "public function getAllRoles(): array;", "public function getRoles(): iterable\n {\n return [];\n }", "public function retrieveAllRoles()\n {\n return $this->invoker->getAllRoles($this->factory->createNewRolesObject());\n\n }", "public function & GetRoles ();", "function yith_ywraq_get_roles(){\n global $wp_roles;\n return array_merge( array( 'all' => __( 'All', 'yith-woocommerce-request-a-quote' ) ), $wp_roles->get_names() );\n }", "public function roles(): MorphToMany;", "public function roles();", "public function roles();", "public function roles();", "public function roles();", "public function getAllRoles()\n {\n return \\EntityManager::getRepository('stoykov\\Ohrana\\Models\\Doctrine\\Role')->findAll();\n }", "public function getRoles()\n {\n #obsolete, I don't wnat user roles, I want the permission those roles are linked to\n # so I just need a getPermissions once, store those constants in a small session array\n #$roles = $this->roles;\n\n #d($roles);\n\n #foreach ($roles as $role) {\n # echo $role->name;\n #}\n }", "public function getAllRolesWithParentRoles() {\n return RoleHelper::getUserParentRoles($this);\n }", "function get_all_roles($params = array())\n {\n $this->db->order_by('roles_id', 'desc');\n if(isset($params) && !empty($params))\n {\n $this->db->limit($params['limit'], $params['offset']);\n }\n return $this->db->get('roles')->result_array();\n }", "public function getAllRoles()\n {\n return $this->roles;\n }", "public function get_roles()\n {\n $users_roles = user_role_active_record::search()->where('uid', $this->uid)->exec();\n $roles = array();\n foreach ($users_roles as $users_role) {\n $roles[] = role_active_record::search()->where('rid', $users_role->rid)->execOne();\n }\n return $roles;\n }", "public function roleListAll() {\n $this->_adminUserDao = new AdminUserDao();\n\n $ret = array();\n $roles = $this->_adminroledao->getAll();\n foreach ($roles as $role) {\n $user = $this->_adminUserDao->getRow(array(array('username', '=', $role->owner)));\n if($user){\n $ret[$role->owner]['role'][] = $role;\n $ret[$role->owner]['user'] = $user;\n }else{\n if($role->owner == config('admin.user.super_user.username')){\n $ret[$role->owner]['role'][] = $role;\n// $ret[$role->owner]['user'] = (new AdminUserDao())->fill(config('admin.user.super_user'));\n// $ret[$role->owner]['user'] = $this->_adminUserDao->getRow(array(array('id', '=', config('admin.user\n $ret[$role->owner]['user']['username'] = $role->owner;\n }\n }\n }\n return $ret;\n }", "protected function getRoles() {\n return $this->roleStorage->loadMultiple();\n }", "public function getRoles()\n {\n $roles = $this->getExplicitRoles();\n\n if (!$roles) {\n return null;\n }\n\n $finalRoles = array();\n foreach ($roles as $role) {\n $childRoles = $role->getChildRoles();\n\n foreach ($childRoles as $childRole) {\n if (!in_array($childRole, $finalRoles)) {\n $finalRoles[] = $childRole;\n }\n }\n\n if (!in_array($role, $finalRoles)) {\n $finalRoles[] = $role;\n }\n }\n\n return $finalRoles;\n }", "public function getAll()\n {\n try{\n return $this->roles;\n }\n catch (\\Exception $exception)\n {\n return null;\n }\n }", "private function rebuild_cache_for_typical_roles() {\n\t\t$common_roles = array(\n\t\t\tarray('guest'),\n\t\t\tarray('subscriber'),\n\t\t);\n\n\t\tforeach($common_roles as $roles) {\n\t\t\t$this->get_allowed_article_ids_for_user($roles);\n\t\t\t$this->get_allowed_topic_ids_for_user($roles);\n\t\t}\n\t}", "public function getRoles(): array;", "public function rolesForUser();", "public function getAllRoles()\n {\n return $this->repository->getAllRoles();\n }", "public function all()\n {\n $roles = collect($this->table()->where('user_id', $this->user->id())->get());\n\n if ($roles->isEmpty()) {\n return collect();\n }\n\n return $roles; // todo: groups\n }", "protected abstract function getAllowedRoles();", "public function getAvailableRoles() ;", "public function getAllRoles()\n {\n $id = $this->get(TableFactory::getUserModel()\n ->getPrimaryKey());\n\n return Cache::remember(sprintf(Constants::CACHE_ROLES, $id), function() use ($id) {\n return TableFactory::getRoleModel()\n ->find()\n ->matching('Users', function(Query $query) use ($id) {\n return $query->where(['Users.id' => $id]);\n })\n ->toArray();\n });\n }", "public function getRoles()\n {\n $roles = array();\n \n foreach ($this->roles as $role) {\n $roles = array_merge($roles, $role->getRecursiveNames());\n }\n \n return array_unique($roles);\n }", "public static function roles(){\n self::init();\n\n return array_keys(AUTH_USER_ROLES);\n }", "public function getRoles()\n {\n // get roles of own Publisher, note: WITHOUT role 'ROLE_PUBLISHER'\n $roles = $this->publisher->getRoles();\n\n if (($key = array_search('ROLE_PUBLISHER', $roles)) !== false) {\n unset($roles[$key]);\n }\n\n // merge all roles of this and own Publisher\n $roles = array_merge($this->roles, $roles);\n\n foreach ($this->getGroups() as $group) {\n $roles = array_merge($roles, $group->getRoles());\n }\n\n // we need to make sure to have at least one role\n $roles[] = static::ROLE_DEFAULT;\n\n return array_unique($roles);\n }", "public static function roles(){\n return array(\n UserRoles::ACCOUNTANT,\n UserRoles::AUTHOR,\n UserRoles::CONTENT_MANAGER,\n UserRoles::TEACHER_CONSULTANT,\n UserRoles::TRAINER,\n UserRoles::TENANT\n );\n }", "public function getRoles()\n {\n\n $rolesReturn = [];\n $roles = $this->roles()->with(['role'])->get();\n\n $rolesReturn = $roles->pluck('role.name');\n\n // Add Standard role to the user roles\n\n if($rolesReturn->contains(config('user.standardRole')) === false)\n {\n $rolesReturn->push(config('user.standardRole'));\n }\n\n return $rolesReturn;\n\n }", "private function setRoles() {\r\n\t\t$all_roles = array(); $role = Model_Role::retrieve(); \r\n\t\tforeach ($role->fetchEntries(array(\r\n \t\t'NAME', 'PARENT' => new Data_Column('PARENT_ROLE_ID', null, $role, 'NAME'))) as $rel)\r\n\t\t{\t\r\n \t\t$all_roles[$rel['NAME']] = array($rel['PARENT']);\r\n\t\t}\r\n\t\t\r\n\t\t// get users with role reslationship \r\n\t\t$userRole = Model_User_Role::retrieve(); \r\n\t\tforeach ($userRole->fetchEntries(array(\r\n \t\t'NAME' => new Data_Column('USER_ID', null, $userRole, 'LOGIN'),\r\n \t\t'PARENT' => new Data_Column('ROLE_ID', null, $userRole, 'NAME')), null, true) as $rel)\r\n\t\t{\t\t\t\r\n\t\t // one user can belong to more than one role\r\n\t\t\tif (array_key_exists($rel['NAME'], $all_roles))\r\n\t\t array_push($all_roles[$rel['NAME']], $rel['PARENT']);\r\n\t\t else\r\n\t\t $all_roles[$rel['NAME']] = array($rel['PARENT']);\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\t// now register all roles and users from database as application roles\r\n\t\tforeach ($all_roles as $name => $roles) {\r\n\t\t $this->_registerRole($name, $all_roles);\r\n\t\t}\r\n\t\t\r\n\t\t//$this->_registerRole('Guest', array());\r\n\t}", "public function getRoles()\n {\n $roles = [];\n foreach ($this->roles as $role) {\n $roles[$role->role] = true;\n }\n return $roles;\n }", "static public function get_all_roles() {\n\t\tif ( ! function_exists( 'get_editable_roles' ) ) {\n\t\t\trequire_once( ABSPATH . 'wp-admin/includes/user.php' );\n\t\t}\n\n\t\t$editable_roles = get_editable_roles();\n\t\t$roles = array();\n\t\t$caps = apply_filters( 'fl_builder_user_access_capabilities', array( 'edit_posts' ) );\n\n\t\tforeach ( $editable_roles as $role => $data ) {\n\t\t\tforeach ( $caps as $cap ) {\n\t\t\t\tif ( isset( $data['capabilities'][ $cap ] ) && 1 == $data['capabilities'][ $cap ] ) {\n\t\t\t\t\t$roles[ $role ] = $data['name'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $roles;\n\t}", "public function getRoles()\n {\n }", "public function getRoles()\n {\n }", "public function getRoles()\n {\n }", "public function getRoles()\n {\n $roles = $this->roles;\n foreach ($this->getGroups() as $group) {\n $roles = array_merge($roles, $group->getRoles());\n }\n // we need to make sure to have at least one role\n $roles[] = static::ROLE_DEFAULT;\n \n return array_unique($roles);\n }", "function get_all_roles()\n {\n $this->db->order_by('role', 'asc');\n return $this->db->get('tbl_roles')->result_array();\n }", "function populate_roles()\n {\n }", "public function getRoles() {\n $ds = \\dibi::dataSource(\"\n SELECT r.*, rr.name AS parent_name\n FROM users_roles AS r\n LEFT JOIN users_roles AS rr ON rr.id = r.parent_id\n \");\n\n return $ds;\n }", "function get_role_list() {\n\t\treturn $this->db->get('system_security.security_role');\n\t\t\n\t}", "public function setRoles()\n {\n if (!array_key_exists(User::ROLE_ADMINISTRATOR, Yii::$app->authManager->getRolesByUser(Yii::$app->user->getId()))) {\n $array = Yii::$app->authManager->getRoles();\n unset($array[self::ADMINISTRATOR]);\n } else {\n $array = Yii::$app->authManager->getRoles();\n }\n\n $roles = ArrayHelper::map(Yii::$app->authManager->getRoles(), 'name', 'name');\n\n $now = Yii::$app->authManager->getRolesByUser(Yii::$app->user->getId());\n\n //unset($roles[array_search('super_administrator', $roles)]);\n unset($roles[array_search('user', $roles)]);\n\n foreach ($roles as $key => $role) {\n $roles[$key] = Yii::t('backend', $role);\n }\n\n if (array_key_exists(User::ROLE_CUSTOMER, Yii::$app->authManager->getRolesByUser(Yii::$app->user->getId()))) {\n $key = array_search(User::ROLE_CUSTOMER, $roles);\n $roles = array_intersect_key($roles, [$key => $roles[$key]]);\n }\n\n return $roles;\n }", "public function findAll() {\n\n // Récupération des différents type d'utilisateur\n $result = $this->getDb()->fetchAll(\"select * from roles order by nom asc\");\n \n $roles = array();\n foreach ($result as $row) {\n $roles[$row['id']] = $this->buildDomainObject($row);\n }\n return $roles;\n }", "public function getAll()\n {\n return $this->roles->whereStatus(1)->orderBy('id', 'desc')->get();\n }", "public function roles()\n {\n\n return Role::all();\n }", "public function getRoles()\n {\n $roles = $this->roles;\n\n foreach ($this->getGroups() as $group) {\n $roles = array_merge($roles, $group->getRoles());\n }\n\n // we need to make sure to have at least one role\n $roles[] = static::ROLE_DEFAULT;\n\n return array_unique($roles);\n }", "public function getRoles()\n {\n $roles = $this->roles;\n\n foreach ($this->getGroups() as $group) {\n $roles = array_merge($roles, $group->getRoles());\n }\n\n // we need to make sure to have at least one role\n $roles[] = static::ROLE_DEFAULT;\n\n return array_unique($roles);\n }", "public function getRoles() {\n return \\array_filter(Role::getMap(), [ $this, 'hasRole' ], \\ARRAY_FILTER_USE_KEY);\n }", "private function getRoles()\n\t{\n\t\tif (!isset($this->roles)) {\n\t\t\t$this->roles = $this->roles()\n\t\t\t\t->with('permissions')\n\t\t\t\t->withCount('users')\n\t\t\t\t->get();\n\t\t}\n\t\treturn $this->roles;\n\t}", "public function getRoles()\n\t{\n\t\t$roles = array();\n\n\t\tforeach($this->getSteps() as $step)\n\t\t{\n\t\t\t$roles = array_merge($roles, $step->getRoles());\n\t\t}\n\n\t\treturn array_unique($roles);\n\t}", "private function load_roles() {\n $query = $this->PDO->prepare(\"SELECT * FROM rol\");\n $query->execute();\n return $query->fetchAll(PDO::FETCH_ASSOC);\n }", "public function all()\n {\n $qb = $this->em->createQueryBuilder();\n $qb->select('r')\n ->from(Role::class, 'r');\n\n return $qb->getQuery()->getResult();\n }", "function getAllRoles() {\n // connexion à la BDD\n $db = connect();\n // requête\n $query = $db -> prepare('SELECT DISTINCT role FROM users');\n // exécution\n $query -> execute();\n // renvoie un tableau associatif\n return $query -> fetchAll();\n}", "function allroles()\n\t{\n\t\t// take the last role id\n\t\t$offset = $this->input->get('offset') ? $this->input->get('offset') : 0;\n\t\t// fetch 10 role from server\n\t\t$perpage = 10;\n\t\t// take search parameters\n\t\t$query['search'] = $this->input->get('search');\n\n\t\t// response object\n\t\t$jsonData = array('success' => false, 'data' => array(), 'links' => '');\n\n\t\t// total rows in roles table according to search query\n\t\t$total_rows = $this->role_model->fetch_total_role_rows($query);\n\t\t// fetch 10 roles start from 'offset' where query\n\t\t$roles = $this->role_model->fetch_all_roles($perpage, $offset, $query);\n\t\t// config data to create pagination\n\t\t$obj = array(\n\t\t\t'base_url' => base_url().'role/allroles/',\n\t\t\t'per_page' => $perpage,\n\t\t\t'uri_segment' => 2,\n\t\t\t'total_rows' => $total_rows\n\t\t);\n\t\t/**\n\t\t * if roles is not empty\n\t\t * @response object\n\t\t * \t success => everything all right\n\t\t * data => rolelist\n\t\t * \t links => pagination links\n\t\t */\n\t\tif (count($roles) > 0) {\n\t\t\t$jsonData['success'] = true;\n\t\t\t$jsonData['data'] = $roles;\n\t\t\t$jsonData['links'] = $this->custom->paginate($obj);\n\t\t}\n\t\t// responde send\n\t\techo json_encode($jsonData);\n\t}", "public function getProductionRoles();", "public function getRoles() {\n return DB::table('dx_users_roles as ur')\n ->join('dx_roles as r', 'r.id', '=', 'ur.role_id')\n ->select('r.id', 'r.title', DB::raw('COUNT(*) as total_users'))\n ->where('r.is_system', '=', '0')\n ->groupBy('r.id')\n ->orderBy('r.title')\n ->get();\n }", "public function getAllowedRoles()\n {\n $userRole = $this->getRole();\n if ($userRole === 'master') {\n $output = $this->acl->getRoles();\n return array_combine($output, $output);\n }\n\n $output = array($userRole => $userRole);\n foreach ($this->acl->getRoles() as $role) {\n if (! $this->acl->inheritsRole($role, $userRole, true)) {\n $output[$role] = $role;\n }\n }\n unset($output['master']);\n return $output;\n }", "public function getRoles() {\n return $this->getRelation(\"roles\");\n }", "private function findIncludedRoles (Role $role, array &$includedRoleCollection)\n {\n // check whether we already visited this role\n // this is required as we need a safeguard against cyclic role hierarchies\n if (isset($includedRoleCollection[$role->getRole()]))\n {\n return;\n }\n\n // mark current role as included\n $includedRoleCollection[$role->getRole()] = $role;\n\n foreach ($role->getActions() as $includedAction)\n {\n $includedRoleCollection[$includedAction->getRole()] = $includedAction;\n }\n\n foreach ($role->getIncludedRoles() as $includedRole)\n {\n $this->findIncludedRoles($includedRole, $includedRoleCollection);\n }\n }", "function get_roles_on_exact_context($context) {\n\n global $CFG;\n\n return get_records_sql(\"SELECT r.*\n FROM {$CFG->prefix}role_assignments ra,\n {$CFG->prefix}role r\n WHERE ra.roleid = r.id\n AND ra.contextid = $context->id\");\n\n}", "public function getRoles()\n {\n return $this->hasMany(AuthRole::className(), ['id' => 'role_id'])->viaTable('auth_user_role', ['user_id' => 'id']);\n }", "protected function getRoles(): array\n {\n $output = [];\n $options = [];\n $options['unlimited'] = true;\n $options['where'] = [\n 'userrole_priority' => '< 10000',\n ];\n $options['sortOrders'] = [['sort' => 'userrole_priority', 'order' => 'ASC']];\n $UserRolesDb = new \\Rdb\\Modules\\RdbAdmin\\Models\\UserRolesDb($this->Container);\n $output['listRoles'] = $UserRolesDb->listItems($options);\n\n unset($options, $UserRolesDb);\n return $output;\n }", "function getSubRoleId3($self = true, $role_id=0){\n //echo M('role')->getLastSql();\n //dump($all_role);\n\n $role_id = session('role_id');\n $below_role = getSubRole3($role_id, $all_role);\n\n //dump($below_role);\n\n if ($self) {\n $below_ids[] = $role_id;\n }\n foreach ($below_role as $key=>$value) {\n $below_ids[] = $value['role_id'];\n }\n //dump($below_ids);exit;\n\n return array_unique($below_ids);\n}", "function get_roles( $add_default = false, $exclude = null ){\r\n\t\t\tglobal $wp_roles;\r\n\r\n\t\t\tif ( empty( $wp_roles ) ) {\r\n\t\t\t\treturn array();\r\n\t\t\t}\r\n\r\n\t\t\t$roles = $wp_roles->role_names;\r\n\r\n\t\t\tif ( $add_default ) {\r\n\t\t\t\t$roles[0] = $add_default;\r\n\t\t\t}\r\n\r\n\t\t\tif ( $exclude ) {\r\n\t\t\t\tforeach( $exclude as $role ) {\r\n\t\t\t\t\tunset( $roles[$role] );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn $roles;\r\n\t\t}", "public function roles()\n {\n $this->roles = $this->Role->list($_SESSION['guild_id']);\n }", "public function getUsersRoles()\n\t{\n\t\t$db = $this->getDbTable()->getAdapter();\n\t\t$select = $db->select()\n\t\t\t->from(array('u' => 'users'), array('user_id', 'name', 'surname', 'patronymic'))\n\t\t\t->joinLeft(array('ur' => 'users_roles'),\n\t\t\t\t'ur.user_id = u.user_id', array('role_id'));\n\t\treturn $db->fetchAll($select);\t\n\t}", "function get_roles(){\n\t\t$this->db->select('*');\n\t\t$q = $this->db->get('user_role');\n\n\t\treturn $q->result_array();\n\t}", "function get_user_roles($context, $userid=0, $checkparentcontexts=true, $order='c.contextlevel DESC, r.sortorder ASC', $view=false) {\n\n global $USER, $CFG, $db;\n\n if (empty($userid)) {\n if (empty($USER->id)) {\n return array();\n }\n $userid = $USER->id;\n }\n // set up hidden sql\n $hiddensql = ($view && !has_capability('moodle/role:viewhiddenassigns', $context))? ' AND ra.hidden = 0 ':'';\n\n if ($checkparentcontexts && ($parents = get_parent_contexts($context))) {\n $contexts = ' ra.contextid IN ('.implode(',' , $parents).','.$context->id.')';\n } else {\n $contexts = ' ra.contextid = \\''.$context->id.'\\'';\n }\n\n return get_records_sql('SELECT ra.*, r.name, r.shortname\n FROM '.$CFG->prefix.'role_assignments ra,\n '.$CFG->prefix.'role r,\n '.$CFG->prefix.'context c\n WHERE ra.userid = '.$userid.\n ' AND ra.roleid = r.id\n AND ra.contextid = c.id\n AND '.$contexts . $hiddensql .\n ' ORDER BY '.$order);\n}", "public function getRoles()\n {\n $roles = $this->roles;\n\n return array_unique($roles);\n }", "public function getRoles()\n {\n return $this->getRelation('roles');\n }", "public function get_roles() {\n return DB::query(Database::SELECT, 'SELECT * FROM roles WHERE id > 1')\n ->as_object()\n ->execute($this->db);\n }", "function rets_bsf_loadroles () {\n\n $role = array();\n $ary = user_roles();\n foreach ($ary as $key => $value) {\n\tswitch ($value) {\n\t case ('basic membership') :\n $role[$key] = 'Basic';\n\t break;\n\t case ('gold membership') :\n\t $role[$key] = 'Gold';\n\t break;\n case ('platinum membership') :\n $role[$key] = 'Platinum';\n\t break;\n case ('team membership') :\n $role[$key] = 'Team';\n\t break;\n\t\tcase ('Agent') :\t\t\t\t\t\t// agent sites only have \"agents\"\n \t$role[$key] = 'Agent';\n\t break;\n\t}\n }\n return $role;\n}", "public static function getAll()\n {\n return Role::with(['permissions'])->get();\n }", "function getAll()\n\t{\n\t\t$this->db->order_by(\"roleName\",\"ASC\");\n\t\t$query = $this->db->get('roles');\n\t\treturn $query;\n\t}", "public function getRoles(){\n $sql = \"SELECT * FROM rol\";\n\n foreach ($this->bd->query($sql) as $res) {\n $this->rol[] = $res;\n }\n return $this->rol;\n }", "public static function get_roles( $include_admin = true ) {\n\t\t// Get all available roles.\n\t\t$roles = wp_roles()->get_names();\n\n\t\t// Admins can manage the settings, so he should have all access.\n\t\tif ( ! $include_admin ) {\n\t\t\tunset( $roles['administrator'] );\n\t\t}\n\n\t\t/**\n\t\t * Filter hook to add/remove roles to settings.\n\t\t *\n\t\t * @param array $roles Roles.\n\t\t *\n\t\t * @since 3.2.0\n\t\t */\n\t\treturn apply_filters( 'beehive_permissions_roles', $roles );\n\t}", "public function getRoles()\n\t{\n\t\treturn $this->roles->toArray();\n\t}", "public function getRoles(): array\n {\n $roles = $this->userRoles->map(function($role){\n return $role->getTitle();\n })->toArray();\n\n $roles[] = 'ROLE_USER';\n // guarantee every user at least has ROLE_USER\n //$roles[] = 'ROLE_USER';\n\n return $roles;\n }", "public function getRoleList(): array\n\t{\n\t\tif (!empty(static::$roles))\n\t\t{\n\t\t\treturn static::$roles;\n\t\t}\n\t\t\n\t\t$roles = [];\n\t\t$roleListResult = CCrmRole::GetList(\n\t\t\t['ID' => 'ASC', ],\n\t\t\t['=GROUP_CODE' => self::ROLE_GROUP_CODE,]\n\t\t);\n\t\t\n\t\twhile ($role = $roleListResult->Fetch())\n\t\t{\n\t\t\t$roles[] = $role;\n\t\t}\n\t\tstatic::$roles = $roles;\n\t\t\n\t\treturn $roles;\n\t}", "public function getRoles()\n {\n return $this->userRoles->toArray();\n /*$roles = array();\n foreach ($this->userRoles as $role) {\n $roles[] = $role->getRole();\n }\n\n return $roles;*/\n }", "public function getRoles()\n {\n $roles = Role::lists('name','id');\n\n return $roles;\n }", "public static function getListRole(){\n return SentinelRole::where('company_id_fk',Sentinel::getUser()->company_id_fk)->orWhere('company_id_fk')->lists('name','id')->all();\n }", "public function getRoles()\n {\n return $this->acl->getRoleAndParents($this->getRole());\n }", "public function getRoles($includeSuperuser=true, $sort=true)\n\t{\n\t\t$exclude = $includeSuperuser===false ? array($this->superuserName) : array();\n\t \t$roles = $this->getAuthItems(CAuthItem::TYPE_ROLE, null, null, $sort, $exclude);\n\t \t$roles = $this->attachAuthItemBehavior($roles);\n\t \treturn $roles;\n\t}", "function getAllUsersWithRoles() {\n $statement = 'SELECT user.id, username, role, email, banned FROM user INNER JOIN \n role_lov role_lov ON user.role_id = role_lov.id ORDER BY user.id';\n $query = $this->prepare($statement);\n $query->execute();\n return $query->fetchAll();\n }", "public function getRoles()\n {\n return $this->getMemberRoles()->toArray();\n }", "public function getRoles()\n {\n return [$this->role];\n }", "public function getRoles()\n {\n return [$this->role];\n }" ]
[ "0.682549", "0.67702436", "0.6651614", "0.6566481", "0.6533605", "0.6295143", "0.6274251", "0.62578166", "0.62457794", "0.61202466", "0.60954857", "0.6079924", "0.6079796", "0.6073887", "0.60581505", "0.6025232", "0.6025232", "0.6025232", "0.6025232", "0.5991206", "0.5977351", "0.5951608", "0.5919435", "0.59041846", "0.5887479", "0.58722216", "0.58719176", "0.5851063", "0.58431995", "0.5817241", "0.580291", "0.5789054", "0.578082", "0.5741328", "0.5739115", "0.5733998", "0.57142735", "0.57051927", "0.56998813", "0.5688024", "0.5686237", "0.56805515", "0.56762046", "0.56675863", "0.566509", "0.56389", "0.56389", "0.56389", "0.56317055", "0.5617927", "0.5615401", "0.5608678", "0.56028557", "0.5600194", "0.5593109", "0.5592009", "0.5589791", "0.5586502", "0.5586502", "0.557869", "0.55765486", "0.55737716", "0.5561213", "0.5556323", "0.5543347", "0.5535896", "0.55310524", "0.55062526", "0.5495042", "0.54839975", "0.5466694", "0.54585516", "0.54570353", "0.54566646", "0.5445147", "0.5444077", "0.54428613", "0.544215", "0.54410183", "0.54369587", "0.5433239", "0.54328245", "0.54287785", "0.5421527", "0.54163504", "0.541075", "0.5392855", "0.5390173", "0.53892154", "0.53878075", "0.53859806", "0.5385755", "0.5384207", "0.53831106", "0.5378589", "0.5375343", "0.53733", "0.5369813", "0.53683263", "0.53683263" ]
0.57849455
32
Finds all included roles
private function findIncludedRoles (Role $role, array &$includedRoleCollection) { // check whether we already visited this role // this is required as we need a safeguard against cyclic role hierarchies if (isset($includedRoleCollection[$role->getRole()])) { return; } // mark current role as included $includedRoleCollection[$role->getRole()] = $role; foreach ($role->getActions() as $includedAction) { $includedRoleCollection[$includedAction->getRole()] = $includedAction; } foreach ($role->getIncludedRoles() as $includedRole) { $this->findIncludedRoles($includedRole, $includedRoleCollection); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function get_all_roles(){\n return Role::all();\n }", "public function findRoles() {\n\t\t\n\t}", "public function get_all_roles(){\n\t\treturn ORM::factory('role')->find_all()->as_array();\n\t}", "public function get_all_roles()\n {\n return App\\Role::all();\n }", "function get_all_roles() {\n return get_records('role', '', '', 'sortorder ASC');\n}", "public function getAllRoles()\n {\n return \\EntityManager::getRepository('stoykov\\Ohrana\\Models\\Doctrine\\Role')->findAll();\n }", "function getAllRoles(){\r\n $data = new \\Cars\\Data\\Common($this->app);\r\n return $data->getAllRoles();\r\n }", "public function getAllRoles(): array;", "public function retrieveAllRoles()\n {\n return $this->invoker->getAllRoles($this->factory->createNewRolesObject());\n\n }", "private function load_roles() {\n $query = $this->PDO->prepare(\"SELECT * FROM rol\");\n $query->execute();\n return $query->fetchAll(PDO::FETCH_ASSOC);\n }", "public function getAll()\n {\n try{\n return $this->roles;\n }\n catch (\\Exception $exception)\n {\n return null;\n }\n }", "protected function getRoles() {\n return $this->roleStorage->loadMultiple();\n }", "public function roles()\n {\n\n return Role::all();\n }", "public function & GetRoles ();", "public function roles();", "public function roles();", "public function roles();", "public function roles();", "abstract protected function getRoles();", "public function getRoles()\n {\n #obsolete, I don't wnat user roles, I want the permission those roles are linked to\n # so I just need a getPermissions once, store those constants in a small session array\n #$roles = $this->roles;\n\n #d($roles);\n\n #foreach ($roles as $role) {\n # echo $role->name;\n #}\n }", "public function getAllRoles()\n {\n $id = $this->get(TableFactory::getUserModel()\n ->getPrimaryKey());\n\n return Cache::remember(sprintf(Constants::CACHE_ROLES, $id), function() use ($id) {\n return TableFactory::getRoleModel()\n ->find()\n ->matching('Users', function(Query $query) use ($id) {\n return $query->where(['Users.id' => $id]);\n })\n ->toArray();\n });\n }", "public function getAllRoles()\n {\n return $this->roles;\n }", "public function getAll()\n {\n return $this->roles->whereStatus(1)->orderBy('id', 'desc')->get();\n }", "function get_role_list() {\n\t\treturn $this->db->get('system_security.security_role');\n\t\t\n\t}", "public function all()\n {\n $qb = $this->em->createQueryBuilder();\n $qb->select('r')\n ->from(Role::class, 'r');\n\n return $qb->getQuery()->getResult();\n }", "public function getRoles(): iterable\n {\n return [];\n }", "public function getRoles(): array;", "public function rolesForUser();", "function get_all_roles($params = array())\n {\n $this->db->order_by('roles_id', 'desc');\n if(isset($params) && !empty($params))\n {\n $this->db->limit($params['limit'], $params['offset']);\n }\n return $this->db->get('roles')->result_array();\n }", "function getAll()\n\t{\n\t\t$this->db->order_by(\"roleName\",\"ASC\");\n\t\t$query = $this->db->get('roles');\n\t\treturn $query;\n\t}", "function get_all_roles()\n {\n $this->db->order_by('role', 'asc');\n return $this->db->get('tbl_roles')->result_array();\n }", "public function get_roles() {\n return DB::query(Database::SELECT, 'SELECT * FROM roles WHERE id > 1')\n ->as_object()\n ->execute($this->db);\n }", "public function getRoles(){\n $db = new MainModel();\n $query = \"SELECT r.id as idRol, r.name as nameRol from roles as r\";\n return $response = $db->consultQueryAll($query);\n }", "public function getRoles() {\n return DB::table('dx_users_roles as ur')\n ->join('dx_roles as r', 'r.id', '=', 'ur.role_id')\n ->select('r.id', 'r.title', DB::raw('COUNT(*) as total_users'))\n ->where('r.is_system', '=', '0')\n ->groupBy('r.id')\n ->orderBy('r.title')\n ->get();\n }", "public function roles()\n {\n $this->roles = $this->Role->list($_SESSION['guild_id']);\n }", "public function getAllRoles()\n {\n return $this->repository->getAllRoles();\n }", "public function get_roles()\n {\n $users_roles = user_role_active_record::search()->where('uid', $this->uid)->exec();\n $roles = array();\n foreach ($users_roles as $users_role) {\n $roles[] = role_active_record::search()->where('rid', $users_role->rid)->execOne();\n }\n return $roles;\n }", "public function all()\n {\n $roles = collect($this->table()->where('user_id', $this->user->id())->get());\n\n if ($roles->isEmpty()) {\n return collect();\n }\n\n return $roles; // todo: groups\n }", "public function getRoles() {\n $ds = \\dibi::dataSource(\"\n SELECT r.*, rr.name AS parent_name\n FROM users_roles AS r\n LEFT JOIN users_roles AS rr ON rr.id = r.parent_id\n \");\n\n return $ds;\n }", "public function roles(): MorphToMany;", "public function findAll() {\n\n // Récupération des différents type d'utilisateur\n $result = $this->getDb()->fetchAll(\"select * from roles order by nom asc\");\n \n $roles = array();\n foreach ($result as $row) {\n $roles[$row['id']] = $this->buildDomainObject($row);\n }\n return $roles;\n }", "public static function getListRole(){\n return SentinelRole::where('company_id_fk',Sentinel::getUser()->company_id_fk)->orWhere('company_id_fk')->lists('name','id')->all();\n }", "public function getRoles()\n {\n }", "public function getRoles()\n {\n }", "public function getRoles()\n {\n }", "function yith_ywraq_get_roles(){\n global $wp_roles;\n return array_merge( array( 'all' => __( 'All', 'yith-woocommerce-request-a-quote' ) ), $wp_roles->get_names() );\n }", "public function getAvailableRoles() ;", "function getAllRoles() {\n // connexion à la BDD\n $db = connect();\n // requête\n $query = $db -> prepare('SELECT DISTINCT role FROM users');\n // exécution\n $query -> execute();\n // renvoie un tableau associatif\n return $query -> fetchAll();\n}", "public function roleListAll() {\n $this->_adminUserDao = new AdminUserDao();\n\n $ret = array();\n $roles = $this->_adminroledao->getAll();\n foreach ($roles as $role) {\n $user = $this->_adminUserDao->getRow(array(array('username', '=', $role->owner)));\n if($user){\n $ret[$role->owner]['role'][] = $role;\n $ret[$role->owner]['user'] = $user;\n }else{\n if($role->owner == config('admin.user.super_user.username')){\n $ret[$role->owner]['role'][] = $role;\n// $ret[$role->owner]['user'] = (new AdminUserDao())->fill(config('admin.user.super_user'));\n// $ret[$role->owner]['user'] = $this->_adminUserDao->getRow(array(array('id', '=', config('admin.user\n $ret[$role->owner]['user']['username'] = $role->owner;\n }\n }\n }\n return $ret;\n }", "public static function getAll()\n {\n return Role::with(['permissions'])->get();\n }", "public function getRoles()\n {\n $roles = Role::lists('name','id');\n\n return $roles;\n }", "function allroles()\n\t{\n\t\t// take the last role id\n\t\t$offset = $this->input->get('offset') ? $this->input->get('offset') : 0;\n\t\t// fetch 10 role from server\n\t\t$perpage = 10;\n\t\t// take search parameters\n\t\t$query['search'] = $this->input->get('search');\n\n\t\t// response object\n\t\t$jsonData = array('success' => false, 'data' => array(), 'links' => '');\n\n\t\t// total rows in roles table according to search query\n\t\t$total_rows = $this->role_model->fetch_total_role_rows($query);\n\t\t// fetch 10 roles start from 'offset' where query\n\t\t$roles = $this->role_model->fetch_all_roles($perpage, $offset, $query);\n\t\t// config data to create pagination\n\t\t$obj = array(\n\t\t\t'base_url' => base_url().'role/allroles/',\n\t\t\t'per_page' => $perpage,\n\t\t\t'uri_segment' => 2,\n\t\t\t'total_rows' => $total_rows\n\t\t);\n\t\t/**\n\t\t * if roles is not empty\n\t\t * @response object\n\t\t * \t success => everything all right\n\t\t * data => rolelist\n\t\t * \t links => pagination links\n\t\t */\n\t\tif (count($roles) > 0) {\n\t\t\t$jsonData['success'] = true;\n\t\t\t$jsonData['data'] = $roles;\n\t\t\t$jsonData['links'] = $this->custom->paginate($obj);\n\t\t}\n\t\t// responde send\n\t\techo json_encode($jsonData);\n\t}", "public function listAll()\n {\n $roles = $this->model->lists('name', 'id');\n\n return $roles;\n }", "public function loadrolesAction(){\n $roles=Doctrine_Query::create()\n\t ->select(\"r.ID, r.role\")\n\t ->from(\"Roles r\")\n \t ->execute(null,Doctrine::HYDRATE_ARRAY);\n $this->emitTableResult($roles);\n }", "public function getRoles(): array {\n\t\t$sql = 'SELECT id, name FROM roles';\n\t\treturn $this->queryRows($sql);\n\t}", "public function roles()\n {\n return $this->belongsToMany(config('gate.models.role'));\n }", "public function getRoles() {\n return $this->getRelation(\"roles\");\n }", "public function getRoles(){\n $sql = \"SELECT * FROM rol\";\n\n foreach ($this->bd->query($sql) as $res) {\n $this->rol[] = $res;\n }\n return $this->rol;\n }", "function get_roles(){\n\t\t$this->db->select('*');\n\t\t$q = $this->db->get('user_role');\n\n\t\treturn $q->result_array();\n\t}", "private function getRoles()\n\t{\n\t\tif (!isset($this->roles)) {\n\t\t\t$this->roles = $this->roles()\n\t\t\t\t->with('permissions')\n\t\t\t\t->withCount('users')\n\t\t\t\t->get();\n\t\t}\n\t\treturn $this->roles;\n\t}", "public function getRolesList()\n\t{\n\t\t$roles = Role::select('name as text', 'id')->get();\n\t\treturn $roles;\n\t}", "public function roles()\n {\n return $this->belongsToMany(Role::class, null, \"context_ids\", \"role_ids\");\n }", "public function getRoles()\n {\n return $this->getRelation('roles');\n }", "public function getRoleList()\n\t{\n\t\t$this->db->select('*');\n\t\t$this->db->from('tbl_role');\n\t\t$this->db->where('role_status', '1');\n\t\t$this->db->where('role_id !=', '1');\n\t\t$query = $this->db->get();\n\t\treturn $query->result() ;\n\t}", "function getRolesList(){\r\n\t\t$sql=\"select * from m_employee_roles\";\r\n\t\t$res=$this->db->query($sql);\r\n\t\tif($res->num_rows()){\r\n\t\t\treturn $res->result_array($sql);\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public function count_all_roles(){\n\t\treturn ORM::factory('role')->count_all();\n\t}", "public function roles() {\n $roleClass = config('cani.models.role');\n $rolePropertieInPermission = config('cani.collections.role_permissions_propertie');\n \n return $this->belongsToMany(\n $roleClass, null, $rolePropertieInPermission . '._id'\n );\n }", "public function getAllMoviesAndRoles() {\n \t$stmt = $this->DB->prepare (\"SELECT actors.first_name,actors.last_name,roles.role,movies.name FROM roles JOIN actors ON actors.id = roles.actor_id JOIN movies ON movies.id = roles.movie_id\");\n \t$stmt->execute();\n\n \treturn $stmt->fetchAll ( PDO::FETCH_ASSOC);\n }", "function getAllUsersWithRoles() {\n $statement = 'SELECT user.id, username, role, email, banned FROM user INNER JOIN \n role_lov role_lov ON user.role_id = role_lov.id ORDER BY user.id';\n $query = $this->prepare($statement);\n $query->execute();\n return $query->fetchAll();\n }", "public function getRoleList()\r\n\t{\r\n\t\t$this->db->select('*');\r\n\t\t$this->db->from('tbl_role');\r\n\t\t$this->db->where('role_status', '1');\r\n\t\t$this->db->where('role_id !=', '1');\r\n\t\t$query = $this->db->get();\r\n\t\treturn $query->result() ;\r\n\t}", "public function index()\n {\n return Role::all();\n }", "public function index()\n {\n return Role::all();\n }", "public function getRoles()\n {\n\n $rolesReturn = [];\n $roles = $this->roles()->with(['role'])->get();\n\n $rolesReturn = $roles->pluck('role.name');\n\n // Add Standard role to the user roles\n\n if($rolesReturn->contains(config('user.standardRole')) === false)\n {\n $rolesReturn->push(config('user.standardRole'));\n }\n\n return $rolesReturn;\n\n }", "public function findAllByRole($role)\n {\n \treturn $this->createQueryBuilder('u')\n \t->where('u.role = '.$role)\n \t->getQuery()\n \t->getResult();\n \t;\n }", "public function ObtenerRolesSupeAdmin()\r\n {\r\n return Rol::all();\r\n }", "public function getRoles()\n {\n $roles = Role::all();\n\n return Datatables::of($roles)\n ->editColumn('routes', function ($role) {\n return htmlentities(strlen($role->getOriginal('routes')) > 50 ? substr($role->getOriginal('routes'), 0, 50) : $role->getOriginal('routes'));\n })\n ->addColumn('actions', function ($role) {\n $editBtn = '<a style=\"margin-right: 0.2em;\" href=\"' . url('admin/roles/' . $role->id . '/edit/') . '\" title=\"Edit\"><i class=\"fa fa-2 fa-pencil\"></i></a>';\n $deleteBtn = '';\n if ($role->name != 'Admin') {\n $deleteBtn = '&nbsp;<a href=\"' . url('admin/roles/' . $role->id) . '\" class=\"message_box text-danger\" data-box=\"#message-box-delete\" data-action=\"DELETE\" title=\"Permanent Delete\"><i class=\"fa fa-2 fa-remove\"></i></i></a>';\n }\n return $editBtn . $deleteBtn;\n })->make(true);\n }", "public function roles()\n {\n return $this->belongsToMany(Role::class);\n }", "public function allByRole($role) {\n\t}", "public function roles()\n\t{\n\t\treturn $this->belongsToMany('Regulus\\Identify\\Models\\Role', Auth::getTableName('user_roles'))\n\t\t\t->withTimestamps()\n\t\t\t->orderBy('display_order')\n\t\t\t->orderBy('name');\n\t}", "public function get_roles()\n {\n $query=$this->db->get('tbl_roles');\n return $query->result();\n }", "public function index()\n {\n return Roles::all();\n }", "public function getRoles() {\n return \\array_filter(Role::getMap(), [ $this, 'hasRole' ], \\ARRAY_FILTER_USE_KEY);\n }", "public function roles()\n {\n return $this->belongsToMany(Role::class);\n }", "public function roles()\n {\n return $this->belongsToMany(Role::class);\n }", "public function roles()\n {\n return $this->belongsToMany(Role::class);\n }", "public function roles()\n {\n return $this->belongsToMany(Role::class);\n }", "public function roles()\n {\n return $this->belongsToMany(Role::class);\n }", "public function roles()\n {\n return $this->belongsToMany(Role::class);\n }", "public function roles()\n {\n return $this->belongsToMany(Role::class);\n }", "public function roles()\n {\n return $this->belongsToMany(Role::class);\n }", "public function roles()\n {\n return $this->belongsToMany(Role::class);\n }", "public function roles()\n {\n return $this->belongsToMany(Role::class);\n }", "public function getRoles()\n\t{\n\t\treturn $this->roles->toArray();\n\t}", "public function roles()\n {\n return $this->hasMany(Role::class);\n }", "public function roles()\n {\n return $this->belongsToMany(\n Config::get('able.role'),\n Config::get('able.role_group_table'),\n Config::get('able.group_foreign_key'),\n Config::get('able.role_foreign_key')\n );\n }", "public static function roles(){\n self::init();\n\n return array_keys(AUTH_USER_ROLES);\n }", "public function roles()\n {\n return $this->hasMany('Role');\n }", "public function roles()\n {\n return $this->belongsToMany(config('rpac.models.role'))->withTimestamps();\n }", "public function roles()\n {\n return $this->belongsToMany(Authorization::roleModel())->using(RolePivot::class);\n }", "public function roles()\n {\n return $this->belongsToMany(UserManager::package()->config('models.role'))\n ->withTimestamps();\n }", "function roles_get() {\n\n $result_set = $this->model_all->getTableDataInArray(\"app_roles\", array(\"id!=\" => \"1\"), \"id,role_name,short_form\");\n if (($result_set['total_rows']) > 0) {\n $result[\"status\"] = 1;\n $result[\"message\"] = \"Records Found\";\n $result[\"roles\"] = $result_set['records'];\n $this->response($result, 200);\n exit;\n } else {\n $result[\"status\"] = 0;\n $result[\"message\"] = \"Detais Not Found\";\n $this->response($result, 200);\n exit;\n }\n }" ]
[ "0.7671724", "0.7614393", "0.75556386", "0.7462421", "0.73989534", "0.7222105", "0.7181698", "0.7104861", "0.6905092", "0.689775", "0.6881105", "0.6862726", "0.68364644", "0.6792274", "0.6788554", "0.6788554", "0.6788554", "0.6788554", "0.6781595", "0.67585343", "0.6741461", "0.67315936", "0.67042804", "0.66968375", "0.66966456", "0.6695", "0.6663032", "0.66544944", "0.6628311", "0.6624515", "0.66232306", "0.66150415", "0.65885514", "0.6584841", "0.6583972", "0.6579987", "0.65286934", "0.6525052", "0.65231985", "0.6520169", "0.65062755", "0.6491382", "0.64907545", "0.64907545", "0.64907545", "0.6479626", "0.6465287", "0.6462171", "0.6460894", "0.6457481", "0.6452262", "0.64442855", "0.64402145", "0.6426723", "0.64242464", "0.6420116", "0.6388718", "0.6387545", "0.63868886", "0.63735545", "0.63256085", "0.6322359", "0.630949", "0.63029593", "0.6296328", "0.62935907", "0.6283271", "0.62765133", "0.6275777", "0.62683177", "0.62608147", "0.62608147", "0.6259682", "0.6258364", "0.625723", "0.62562484", "0.6256", "0.6252983", "0.624415", "0.6237924", "0.6235609", "0.6232601", "0.62296164", "0.62296164", "0.62296164", "0.62296164", "0.62296164", "0.62296164", "0.62296164", "0.62296164", "0.62296164", "0.62296164", "0.6226506", "0.62164736", "0.6214232", "0.6212322", "0.62048376", "0.61903214", "0.6184213", "0.61816543", "0.61793923" ]
0.0
-1
Finds all included roles
private function findIncludedActions (Role $role, array &$includedActionCollection) { foreach ($role->getActions() as $action) { /** @var $action BaseRole */ if (isset($includedRoleCollection[$action->getRole()])) { return; } $includedActionCollection[$action->getRole()] = $action; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function get_all_roles(){\n return Role::all();\n }", "public function findRoles() {\n\t\t\n\t}", "public function get_all_roles(){\n\t\treturn ORM::factory('role')->find_all()->as_array();\n\t}", "public function get_all_roles()\n {\n return App\\Role::all();\n }", "function get_all_roles() {\n return get_records('role', '', '', 'sortorder ASC');\n}", "public function getAllRoles()\n {\n return \\EntityManager::getRepository('stoykov\\Ohrana\\Models\\Doctrine\\Role')->findAll();\n }", "function getAllRoles(){\r\n $data = new \\Cars\\Data\\Common($this->app);\r\n return $data->getAllRoles();\r\n }", "public function getAllRoles(): array;", "public function retrieveAllRoles()\n {\n return $this->invoker->getAllRoles($this->factory->createNewRolesObject());\n\n }", "private function load_roles() {\n $query = $this->PDO->prepare(\"SELECT * FROM rol\");\n $query->execute();\n return $query->fetchAll(PDO::FETCH_ASSOC);\n }", "public function getAll()\n {\n try{\n return $this->roles;\n }\n catch (\\Exception $exception)\n {\n return null;\n }\n }", "protected function getRoles() {\n return $this->roleStorage->loadMultiple();\n }", "public function roles()\n {\n\n return Role::all();\n }", "public function & GetRoles ();", "public function roles();", "public function roles();", "public function roles();", "public function roles();", "abstract protected function getRoles();", "public function getRoles()\n {\n #obsolete, I don't wnat user roles, I want the permission those roles are linked to\n # so I just need a getPermissions once, store those constants in a small session array\n #$roles = $this->roles;\n\n #d($roles);\n\n #foreach ($roles as $role) {\n # echo $role->name;\n #}\n }", "public function getAllRoles()\n {\n $id = $this->get(TableFactory::getUserModel()\n ->getPrimaryKey());\n\n return Cache::remember(sprintf(Constants::CACHE_ROLES, $id), function() use ($id) {\n return TableFactory::getRoleModel()\n ->find()\n ->matching('Users', function(Query $query) use ($id) {\n return $query->where(['Users.id' => $id]);\n })\n ->toArray();\n });\n }", "public function getAllRoles()\n {\n return $this->roles;\n }", "public function getAll()\n {\n return $this->roles->whereStatus(1)->orderBy('id', 'desc')->get();\n }", "function get_role_list() {\n\t\treturn $this->db->get('system_security.security_role');\n\t\t\n\t}", "public function all()\n {\n $qb = $this->em->createQueryBuilder();\n $qb->select('r')\n ->from(Role::class, 'r');\n\n return $qb->getQuery()->getResult();\n }", "public function getRoles(): iterable\n {\n return [];\n }", "public function getRoles(): array;", "public function rolesForUser();", "function get_all_roles($params = array())\n {\n $this->db->order_by('roles_id', 'desc');\n if(isset($params) && !empty($params))\n {\n $this->db->limit($params['limit'], $params['offset']);\n }\n return $this->db->get('roles')->result_array();\n }", "function getAll()\n\t{\n\t\t$this->db->order_by(\"roleName\",\"ASC\");\n\t\t$query = $this->db->get('roles');\n\t\treturn $query;\n\t}", "function get_all_roles()\n {\n $this->db->order_by('role', 'asc');\n return $this->db->get('tbl_roles')->result_array();\n }", "public function get_roles() {\n return DB::query(Database::SELECT, 'SELECT * FROM roles WHERE id > 1')\n ->as_object()\n ->execute($this->db);\n }", "public function getRoles(){\n $db = new MainModel();\n $query = \"SELECT r.id as idRol, r.name as nameRol from roles as r\";\n return $response = $db->consultQueryAll($query);\n }", "public function getRoles() {\n return DB::table('dx_users_roles as ur')\n ->join('dx_roles as r', 'r.id', '=', 'ur.role_id')\n ->select('r.id', 'r.title', DB::raw('COUNT(*) as total_users'))\n ->where('r.is_system', '=', '0')\n ->groupBy('r.id')\n ->orderBy('r.title')\n ->get();\n }", "public function roles()\n {\n $this->roles = $this->Role->list($_SESSION['guild_id']);\n }", "public function getAllRoles()\n {\n return $this->repository->getAllRoles();\n }", "public function get_roles()\n {\n $users_roles = user_role_active_record::search()->where('uid', $this->uid)->exec();\n $roles = array();\n foreach ($users_roles as $users_role) {\n $roles[] = role_active_record::search()->where('rid', $users_role->rid)->execOne();\n }\n return $roles;\n }", "public function all()\n {\n $roles = collect($this->table()->where('user_id', $this->user->id())->get());\n\n if ($roles->isEmpty()) {\n return collect();\n }\n\n return $roles; // todo: groups\n }", "public function getRoles() {\n $ds = \\dibi::dataSource(\"\n SELECT r.*, rr.name AS parent_name\n FROM users_roles AS r\n LEFT JOIN users_roles AS rr ON rr.id = r.parent_id\n \");\n\n return $ds;\n }", "public function roles(): MorphToMany;", "public function findAll() {\n\n // Récupération des différents type d'utilisateur\n $result = $this->getDb()->fetchAll(\"select * from roles order by nom asc\");\n \n $roles = array();\n foreach ($result as $row) {\n $roles[$row['id']] = $this->buildDomainObject($row);\n }\n return $roles;\n }", "public static function getListRole(){\n return SentinelRole::where('company_id_fk',Sentinel::getUser()->company_id_fk)->orWhere('company_id_fk')->lists('name','id')->all();\n }", "public function getRoles()\n {\n }", "public function getRoles()\n {\n }", "public function getRoles()\n {\n }", "function yith_ywraq_get_roles(){\n global $wp_roles;\n return array_merge( array( 'all' => __( 'All', 'yith-woocommerce-request-a-quote' ) ), $wp_roles->get_names() );\n }", "public function getAvailableRoles() ;", "function getAllRoles() {\n // connexion à la BDD\n $db = connect();\n // requête\n $query = $db -> prepare('SELECT DISTINCT role FROM users');\n // exécution\n $query -> execute();\n // renvoie un tableau associatif\n return $query -> fetchAll();\n}", "public function roleListAll() {\n $this->_adminUserDao = new AdminUserDao();\n\n $ret = array();\n $roles = $this->_adminroledao->getAll();\n foreach ($roles as $role) {\n $user = $this->_adminUserDao->getRow(array(array('username', '=', $role->owner)));\n if($user){\n $ret[$role->owner]['role'][] = $role;\n $ret[$role->owner]['user'] = $user;\n }else{\n if($role->owner == config('admin.user.super_user.username')){\n $ret[$role->owner]['role'][] = $role;\n// $ret[$role->owner]['user'] = (new AdminUserDao())->fill(config('admin.user.super_user'));\n// $ret[$role->owner]['user'] = $this->_adminUserDao->getRow(array(array('id', '=', config('admin.user\n $ret[$role->owner]['user']['username'] = $role->owner;\n }\n }\n }\n return $ret;\n }", "public static function getAll()\n {\n return Role::with(['permissions'])->get();\n }", "public function getRoles()\n {\n $roles = Role::lists('name','id');\n\n return $roles;\n }", "function allroles()\n\t{\n\t\t// take the last role id\n\t\t$offset = $this->input->get('offset') ? $this->input->get('offset') : 0;\n\t\t// fetch 10 role from server\n\t\t$perpage = 10;\n\t\t// take search parameters\n\t\t$query['search'] = $this->input->get('search');\n\n\t\t// response object\n\t\t$jsonData = array('success' => false, 'data' => array(), 'links' => '');\n\n\t\t// total rows in roles table according to search query\n\t\t$total_rows = $this->role_model->fetch_total_role_rows($query);\n\t\t// fetch 10 roles start from 'offset' where query\n\t\t$roles = $this->role_model->fetch_all_roles($perpage, $offset, $query);\n\t\t// config data to create pagination\n\t\t$obj = array(\n\t\t\t'base_url' => base_url().'role/allroles/',\n\t\t\t'per_page' => $perpage,\n\t\t\t'uri_segment' => 2,\n\t\t\t'total_rows' => $total_rows\n\t\t);\n\t\t/**\n\t\t * if roles is not empty\n\t\t * @response object\n\t\t * \t success => everything all right\n\t\t * data => rolelist\n\t\t * \t links => pagination links\n\t\t */\n\t\tif (count($roles) > 0) {\n\t\t\t$jsonData['success'] = true;\n\t\t\t$jsonData['data'] = $roles;\n\t\t\t$jsonData['links'] = $this->custom->paginate($obj);\n\t\t}\n\t\t// responde send\n\t\techo json_encode($jsonData);\n\t}", "public function listAll()\n {\n $roles = $this->model->lists('name', 'id');\n\n return $roles;\n }", "public function loadrolesAction(){\n $roles=Doctrine_Query::create()\n\t ->select(\"r.ID, r.role\")\n\t ->from(\"Roles r\")\n \t ->execute(null,Doctrine::HYDRATE_ARRAY);\n $this->emitTableResult($roles);\n }", "public function getRoles(): array {\n\t\t$sql = 'SELECT id, name FROM roles';\n\t\treturn $this->queryRows($sql);\n\t}", "public function roles()\n {\n return $this->belongsToMany(config('gate.models.role'));\n }", "public function getRoles() {\n return $this->getRelation(\"roles\");\n }", "public function getRoles(){\n $sql = \"SELECT * FROM rol\";\n\n foreach ($this->bd->query($sql) as $res) {\n $this->rol[] = $res;\n }\n return $this->rol;\n }", "function get_roles(){\n\t\t$this->db->select('*');\n\t\t$q = $this->db->get('user_role');\n\n\t\treturn $q->result_array();\n\t}", "private function getRoles()\n\t{\n\t\tif (!isset($this->roles)) {\n\t\t\t$this->roles = $this->roles()\n\t\t\t\t->with('permissions')\n\t\t\t\t->withCount('users')\n\t\t\t\t->get();\n\t\t}\n\t\treturn $this->roles;\n\t}", "public function getRolesList()\n\t{\n\t\t$roles = Role::select('name as text', 'id')->get();\n\t\treturn $roles;\n\t}", "public function roles()\n {\n return $this->belongsToMany(Role::class, null, \"context_ids\", \"role_ids\");\n }", "public function getRoles()\n {\n return $this->getRelation('roles');\n }", "public function getRoleList()\n\t{\n\t\t$this->db->select('*');\n\t\t$this->db->from('tbl_role');\n\t\t$this->db->where('role_status', '1');\n\t\t$this->db->where('role_id !=', '1');\n\t\t$query = $this->db->get();\n\t\treturn $query->result() ;\n\t}", "function getRolesList(){\r\n\t\t$sql=\"select * from m_employee_roles\";\r\n\t\t$res=$this->db->query($sql);\r\n\t\tif($res->num_rows()){\r\n\t\t\treturn $res->result_array($sql);\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public function count_all_roles(){\n\t\treturn ORM::factory('role')->count_all();\n\t}", "public function roles() {\n $roleClass = config('cani.models.role');\n $rolePropertieInPermission = config('cani.collections.role_permissions_propertie');\n \n return $this->belongsToMany(\n $roleClass, null, $rolePropertieInPermission . '._id'\n );\n }", "public function getAllMoviesAndRoles() {\n \t$stmt = $this->DB->prepare (\"SELECT actors.first_name,actors.last_name,roles.role,movies.name FROM roles JOIN actors ON actors.id = roles.actor_id JOIN movies ON movies.id = roles.movie_id\");\n \t$stmt->execute();\n\n \treturn $stmt->fetchAll ( PDO::FETCH_ASSOC);\n }", "function getAllUsersWithRoles() {\n $statement = 'SELECT user.id, username, role, email, banned FROM user INNER JOIN \n role_lov role_lov ON user.role_id = role_lov.id ORDER BY user.id';\n $query = $this->prepare($statement);\n $query->execute();\n return $query->fetchAll();\n }", "public function getRoleList()\r\n\t{\r\n\t\t$this->db->select('*');\r\n\t\t$this->db->from('tbl_role');\r\n\t\t$this->db->where('role_status', '1');\r\n\t\t$this->db->where('role_id !=', '1');\r\n\t\t$query = $this->db->get();\r\n\t\treturn $query->result() ;\r\n\t}", "public function index()\n {\n return Role::all();\n }", "public function index()\n {\n return Role::all();\n }", "public function getRoles()\n {\n\n $rolesReturn = [];\n $roles = $this->roles()->with(['role'])->get();\n\n $rolesReturn = $roles->pluck('role.name');\n\n // Add Standard role to the user roles\n\n if($rolesReturn->contains(config('user.standardRole')) === false)\n {\n $rolesReturn->push(config('user.standardRole'));\n }\n\n return $rolesReturn;\n\n }", "public function findAllByRole($role)\n {\n \treturn $this->createQueryBuilder('u')\n \t->where('u.role = '.$role)\n \t->getQuery()\n \t->getResult();\n \t;\n }", "public function ObtenerRolesSupeAdmin()\r\n {\r\n return Rol::all();\r\n }", "public function getRoles()\n {\n $roles = Role::all();\n\n return Datatables::of($roles)\n ->editColumn('routes', function ($role) {\n return htmlentities(strlen($role->getOriginal('routes')) > 50 ? substr($role->getOriginal('routes'), 0, 50) : $role->getOriginal('routes'));\n })\n ->addColumn('actions', function ($role) {\n $editBtn = '<a style=\"margin-right: 0.2em;\" href=\"' . url('admin/roles/' . $role->id . '/edit/') . '\" title=\"Edit\"><i class=\"fa fa-2 fa-pencil\"></i></a>';\n $deleteBtn = '';\n if ($role->name != 'Admin') {\n $deleteBtn = '&nbsp;<a href=\"' . url('admin/roles/' . $role->id) . '\" class=\"message_box text-danger\" data-box=\"#message-box-delete\" data-action=\"DELETE\" title=\"Permanent Delete\"><i class=\"fa fa-2 fa-remove\"></i></i></a>';\n }\n return $editBtn . $deleteBtn;\n })->make(true);\n }", "public function roles()\n {\n return $this->belongsToMany(Role::class);\n }", "public function allByRole($role) {\n\t}", "public function roles()\n\t{\n\t\treturn $this->belongsToMany('Regulus\\Identify\\Models\\Role', Auth::getTableName('user_roles'))\n\t\t\t->withTimestamps()\n\t\t\t->orderBy('display_order')\n\t\t\t->orderBy('name');\n\t}", "public function get_roles()\n {\n $query=$this->db->get('tbl_roles');\n return $query->result();\n }", "public function index()\n {\n return Roles::all();\n }", "public function getRoles() {\n return \\array_filter(Role::getMap(), [ $this, 'hasRole' ], \\ARRAY_FILTER_USE_KEY);\n }", "public function roles()\n {\n return $this->belongsToMany(Role::class);\n }", "public function roles()\n {\n return $this->belongsToMany(Role::class);\n }", "public function roles()\n {\n return $this->belongsToMany(Role::class);\n }", "public function roles()\n {\n return $this->belongsToMany(Role::class);\n }", "public function roles()\n {\n return $this->belongsToMany(Role::class);\n }", "public function roles()\n {\n return $this->belongsToMany(Role::class);\n }", "public function roles()\n {\n return $this->belongsToMany(Role::class);\n }", "public function roles()\n {\n return $this->belongsToMany(Role::class);\n }", "public function roles()\n {\n return $this->belongsToMany(Role::class);\n }", "public function roles()\n {\n return $this->belongsToMany(Role::class);\n }", "public function getRoles()\n\t{\n\t\treturn $this->roles->toArray();\n\t}", "public function roles()\n {\n return $this->hasMany(Role::class);\n }", "public function roles()\n {\n return $this->belongsToMany(\n Config::get('able.role'),\n Config::get('able.role_group_table'),\n Config::get('able.group_foreign_key'),\n Config::get('able.role_foreign_key')\n );\n }", "public static function roles(){\n self::init();\n\n return array_keys(AUTH_USER_ROLES);\n }", "public function roles()\n {\n return $this->hasMany('Role');\n }", "public function roles()\n {\n return $this->belongsToMany(config('rpac.models.role'))->withTimestamps();\n }", "public function roles()\n {\n return $this->belongsToMany(Authorization::roleModel())->using(RolePivot::class);\n }", "public function roles()\n {\n return $this->belongsToMany(UserManager::package()->config('models.role'))\n ->withTimestamps();\n }", "function roles_get() {\n\n $result_set = $this->model_all->getTableDataInArray(\"app_roles\", array(\"id!=\" => \"1\"), \"id,role_name,short_form\");\n if (($result_set['total_rows']) > 0) {\n $result[\"status\"] = 1;\n $result[\"message\"] = \"Records Found\";\n $result[\"roles\"] = $result_set['records'];\n $this->response($result, 200);\n exit;\n } else {\n $result[\"status\"] = 0;\n $result[\"message\"] = \"Detais Not Found\";\n $this->response($result, 200);\n exit;\n }\n }" ]
[ "0.7671724", "0.7614393", "0.75556386", "0.7462421", "0.73989534", "0.7222105", "0.7181698", "0.7104861", "0.6905092", "0.689775", "0.6881105", "0.6862726", "0.68364644", "0.6792274", "0.6788554", "0.6788554", "0.6788554", "0.6788554", "0.6781595", "0.67585343", "0.6741461", "0.67315936", "0.67042804", "0.66968375", "0.66966456", "0.6695", "0.6663032", "0.66544944", "0.6628311", "0.6624515", "0.66232306", "0.66150415", "0.65885514", "0.6584841", "0.6583972", "0.6579987", "0.65286934", "0.6525052", "0.65231985", "0.6520169", "0.65062755", "0.6491382", "0.64907545", "0.64907545", "0.64907545", "0.6479626", "0.6465287", "0.6462171", "0.6460894", "0.6457481", "0.6452262", "0.64442855", "0.64402145", "0.6426723", "0.64242464", "0.6420116", "0.6388718", "0.6387545", "0.63868886", "0.63735545", "0.63256085", "0.6322359", "0.630949", "0.63029593", "0.6296328", "0.62935907", "0.6283271", "0.62765133", "0.6275777", "0.62683177", "0.62608147", "0.62608147", "0.6259682", "0.6258364", "0.625723", "0.62562484", "0.6256", "0.6252983", "0.624415", "0.6237924", "0.6235609", "0.6232601", "0.62296164", "0.62296164", "0.62296164", "0.62296164", "0.62296164", "0.62296164", "0.62296164", "0.62296164", "0.62296164", "0.62296164", "0.6226506", "0.62164736", "0.6214232", "0.6212322", "0.62048376", "0.61903214", "0.6184213", "0.61816543", "0.61793923" ]
0.0
-1